mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-21 05:41:43 +03:00
2a9c1bf3fa
This reverts commit 738481ff71
.
45 lines
1001 B
Plaintext
45 lines
1001 B
Plaintext
/- *resource
|
|
/+ store=graph-store, graph, default-agent, verb, dbug, pull-hook
|
|
~% %graph-pull-hook-top ..is ~
|
|
|%
|
|
+$ card card:agent:gall
|
|
++ config
|
|
^- config:pull-hook
|
|
:* %graph-store
|
|
update:store
|
|
%graph-update
|
|
%graph-push-hook
|
|
==
|
|
--
|
|
::
|
|
%- agent:dbug
|
|
^- agent:gall
|
|
%- (agent:pull-hook config)
|
|
^- (pull-hook:pull-hook config)
|
|
|_ =bowl:gall
|
|
+* this .
|
|
def ~(. (default-agent this %|) bowl)
|
|
dep ~(. (default:pull-hook this config) bowl)
|
|
::
|
|
++ on-init on-init:def
|
|
++ on-save !>(~)
|
|
++ on-load on-load:def
|
|
++ on-poke on-poke:def
|
|
++ on-peek on-peek:def
|
|
++ on-arvo on-arvo:def
|
|
++ on-fail on-fail:def
|
|
++ on-agent on-agent:def
|
|
++ on-watch on-watch:def
|
|
++ on-leave on-leave:def
|
|
++ on-pull-nack
|
|
:: TODO: archive the graph
|
|
on-pull-nack:dep
|
|
::
|
|
++ on-pull-kick
|
|
|= =resource
|
|
^- (unit path)
|
|
=/ maybe-time (peek-log:graph resource)
|
|
?~ maybe-time `/
|
|
`/(scot %da u.maybe-time)
|
|
--
|