mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
5f4fc28bc9
Improved the namespacing by dropping the app prefix on types, e.g. chat-hook-action -> action. Compensated for shadowing by importing the /sur files behind a face. End result is that a chat-hook-action becomes an action:hook. Splits chat-json into lib/chat-{hook,store,view}. Uses ^? on changes files in /lib and /sur to discourage deeply nested importing.
55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
^?
|
|
|%
|
|
+$ serial @uvH
|
|
::
|
|
+$ letter
|
|
$% [%text text=cord]
|
|
[%url url=cord]
|
|
[%code expression=cord output=(list tank)]
|
|
[%me narrative=cord]
|
|
==
|
|
::
|
|
+$ envelope
|
|
$: uid=serial
|
|
number=@
|
|
author=ship
|
|
when=time
|
|
=letter
|
|
==
|
|
::
|
|
+$ config
|
|
$: length=@
|
|
read=@
|
|
==
|
|
::
|
|
+$ mailbox
|
|
$: =config
|
|
envelopes=(list envelope)
|
|
==
|
|
::
|
|
+$ inbox (map path mailbox)
|
|
::
|
|
+$ configs (map path config)
|
|
::
|
|
+$ diff
|
|
$% [%create =path] :: %create: create a mailbox at path
|
|
[%delete =path] :: %delete: delete a mailbox at path
|
|
[%message =path =envelope] :: %message: append a message to mailbox
|
|
[%read =path] :: %read: set mailbox to read
|
|
==
|
|
::
|
|
+$ action
|
|
$% :: %messages: append a list of messages to mailbox
|
|
::
|
|
[%messages =path envelopes=(list envelope)]
|
|
diff
|
|
==
|
|
::
|
|
+$ update
|
|
$% [%keys keys=(set path)]
|
|
[%config =path =config]
|
|
[%messages =path start=@ud end=@ud envelopes=(list envelope)]
|
|
diff
|
|
==
|
|
--
|