mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
fc9f17ae23
also change !< to crash on failure
64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
|_ [=bowl:mall =agent:mall]
|
|
++ handle-init
|
|
`agent
|
|
::
|
|
++ handle-extract-state
|
|
~& "extracting empty state for {<dap.bowl>}"
|
|
!>(~)
|
|
::
|
|
++ handle-upgrade-state
|
|
|= old-state=vase
|
|
~& "updating agent {<dap.bowl>} by throwing away old state"
|
|
`agent
|
|
::
|
|
++ handle-poke
|
|
|= =cage
|
|
~& "unexpected poke to {<dap.bowl>} with mark {<p.cage>}"
|
|
~| "unexpected poke to {<dap.bowl>} with mark {<p.cage>}"
|
|
!!
|
|
::
|
|
++ handle-subscribe
|
|
|= =path
|
|
~& "unexpected subscription to {<dap.bowl>} on path {<path>}"
|
|
~| "unexpected subscription to {<dap.bowl>} on path {<path>}"
|
|
!!
|
|
::
|
|
++ handle-unsubscribe
|
|
|= path
|
|
`agent
|
|
::
|
|
++ handle-peek
|
|
|= path
|
|
~| "unexpected scry into {<dap.bowl>} on path {<path>}"
|
|
!!
|
|
::
|
|
++ handle-agent-response
|
|
|= [=wire =gift:agent:mall]
|
|
?- -.gift
|
|
%poke-ack `agent
|
|
%subscription-ack `agent
|
|
%subscription-close
|
|
~| "unexpected subscription closure to {<dap.bowl>} on wire {<wire>}"
|
|
!!
|
|
::
|
|
%subscription-update
|
|
~| "unexpected subscription update to {<dap.bowl>} on wire {<wire>}"
|
|
~| "with mark {<p.cage.gift>}"
|
|
!!
|
|
::
|
|
%http-response
|
|
~| "unexpected http-response to {<dap.bowl>} on wire {<wire>}"
|
|
!!
|
|
==
|
|
::
|
|
++ handle-arvo-response
|
|
|= [=wire =sign-arvo]
|
|
~| "unexpected system response {<-.sign-arvo>} to {<dap.bowl>} on wire {<wire>}"
|
|
!!
|
|
::
|
|
++ handle-error
|
|
|= [=term =tang]
|
|
%- (slog leaf+"error in {<dap.bowl>}" >term< tang)
|
|
`agent
|
|
--
|