2020-09-01 04:54:39 +03:00
|
|
|
:: graph-store [landscape]
|
|
|
|
::
|
|
|
|
::
|
2020-07-07 02:31:57 +03:00
|
|
|
/+ store=graph-store, sigs=signatures, res=resource, default-agent, dbug
|
2020-06-23 19:16:12 +03:00
|
|
|
~% %graph-store-top ..is ~
|
2020-06-02 00:07:31 +03:00
|
|
|
|%
|
|
|
|
+$ card card:agent:gall
|
|
|
|
+$ versioned-state
|
|
|
|
$% state-0
|
2020-10-29 06:11:18 +03:00
|
|
|
state-1
|
2020-11-10 22:56:19 +03:00
|
|
|
state-2
|
2020-06-02 00:07:31 +03:00
|
|
|
==
|
2020-06-23 21:09:31 +03:00
|
|
|
::
|
2020-06-02 00:07:31 +03:00
|
|
|
+$ state-0 [%0 network:store]
|
2020-10-29 06:11:18 +03:00
|
|
|
+$ state-1 [%1 network:store]
|
2020-11-10 22:56:19 +03:00
|
|
|
+$ state-2 [%2 network:store]
|
2020-10-29 06:11:18 +03:00
|
|
|
::
|
2020-06-10 23:47:18 +03:00
|
|
|
++ orm orm:store
|
|
|
|
++ orm-log orm-log:store
|
2020-11-12 23:00:59 +03:00
|
|
|
+$ debug-input [%validate-graph =resource:store]
|
2020-06-02 00:07:31 +03:00
|
|
|
--
|
|
|
|
::
|
2020-11-10 22:56:19 +03:00
|
|
|
=| state-2
|
2020-06-02 00:07:31 +03:00
|
|
|
=* state -
|
|
|
|
::
|
|
|
|
%- agent:dbug
|
|
|
|
^- agent:gall
|
2020-06-23 19:16:12 +03:00
|
|
|
~% %graph-store-agent ..card ~
|
2020-06-02 00:07:31 +03:00
|
|
|
|_ =bowl:gall
|
|
|
|
+* this .
|
|
|
|
def ~(. (default-agent this %|) bowl)
|
|
|
|
::
|
|
|
|
++ on-init [~ this]
|
|
|
|
++ on-save !>(state)
|
|
|
|
++ on-load
|
2020-10-29 06:11:18 +03:00
|
|
|
|= =old=vase
|
2020-06-02 00:07:31 +03:00
|
|
|
^- (quip card _this)
|
2020-10-29 06:11:18 +03:00
|
|
|
=+ !<(old=versioned-state old-vase)
|
|
|
|
=| cards=(list card)
|
2020-10-29 07:07:47 +03:00
|
|
|
|^
|
2020-10-29 06:11:18 +03:00
|
|
|
?- -.old
|
|
|
|
%0
|
|
|
|
%_ $
|
|
|
|
-.old %1
|
2020-10-29 07:07:47 +03:00
|
|
|
::
|
|
|
|
validators.old
|
|
|
|
(~(put in validators.old) %graph-validator-link)
|
|
|
|
::
|
|
|
|
cards
|
|
|
|
%+ weld cards
|
|
|
|
%+ turn
|
|
|
|
~(tap in (~(put in validators.old) %graph-validator-link))
|
|
|
|
|= validator=@t
|
|
|
|
^- card
|
|
|
|
=/ =wire /validator/[validator]
|
|
|
|
=/ =rave:clay [%sing %b [%da now.bowl] /[validator]]
|
|
|
|
[%pass wire %arvo %c %warp our.bowl [%home `rave]]
|
2020-10-29 06:11:18 +03:00
|
|
|
::
|
|
|
|
graphs.old
|
|
|
|
%- ~(run by graphs.old)
|
|
|
|
|= [=graph:store q=(unit mark)]
|
|
|
|
^- [graph:store (unit mark)]
|
2020-10-29 07:07:47 +03:00
|
|
|
:- (convert-unix-timestamped-graph graph)
|
2020-10-29 06:11:18 +03:00
|
|
|
?^ q q
|
|
|
|
`%graph-validator-link
|
2020-10-29 07:07:47 +03:00
|
|
|
::
|
|
|
|
update-logs.old
|
|
|
|
%- ~(run by update-logs.old)
|
2020-11-12 23:40:12 +03:00
|
|
|
|=(a=* *update-log:store)
|
2020-10-29 06:11:18 +03:00
|
|
|
==
|
|
|
|
::
|
2020-11-10 22:56:19 +03:00
|
|
|
%1
|
|
|
|
%_ $
|
2020-11-19 05:02:42 +03:00
|
|
|
-.old %2
|
|
|
|
graphs.old (~(run by graphs.old) change-revision-graph)
|
2020-11-10 22:56:19 +03:00
|
|
|
::
|
|
|
|
update-logs.old
|
|
|
|
%- ~(run by update-logs.old)
|
2020-11-12 23:40:12 +03:00
|
|
|
|=(a=* *update-log:store)
|
2020-11-10 22:56:19 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
%2 [cards this(state old)]
|
2020-10-29 06:11:18 +03:00
|
|
|
==
|
2020-10-29 07:07:47 +03:00
|
|
|
::
|
2020-11-10 22:56:19 +03:00
|
|
|
++ change-revision-graph
|
|
|
|
|= [=graph:store q=(unit mark)]
|
|
|
|
^- [graph:store (unit mark)]
|
|
|
|
|^
|
|
|
|
:_ q
|
|
|
|
?+ q graph
|
|
|
|
[~ %graph-validator-link] convert-links
|
|
|
|
[~ %graph-validator-publish] convert-publish
|
2020-10-29 07:07:47 +03:00
|
|
|
==
|
|
|
|
::
|
2020-11-10 22:56:19 +03:00
|
|
|
++ convert-links
|
|
|
|
%+ gas:orm *graph:store
|
|
|
|
%+ turn (tap:orm graph)
|
|
|
|
|= [=atom =node:store]
|
|
|
|
^- [^atom node:store]
|
|
|
|
:: top-level
|
|
|
|
::
|
|
|
|
:+ atom post.node
|
|
|
|
?: ?=(%empty -.children.node)
|
|
|
|
[%empty ~]
|
|
|
|
:- %graph
|
|
|
|
%+ gas:orm *graph:store
|
|
|
|
%+ turn (tap:orm p.children.node)
|
|
|
|
|= [=^atom =node:store]
|
|
|
|
^- [^^atom node:store]
|
|
|
|
:: existing comments get turned into containers for revisions
|
|
|
|
::
|
|
|
|
:^ atom
|
|
|
|
post.node(contents ~, hash ~)
|
|
|
|
%graph
|
|
|
|
%+ gas:orm *graph:store
|
2020-11-19 05:02:42 +03:00
|
|
|
:_ ~ :- %1
|
2020-11-10 22:56:19 +03:00
|
|
|
:_ [%empty ~]
|
|
|
|
post.node(index (snoc index.post.node atom), hash ~)
|
2020-10-29 07:07:47 +03:00
|
|
|
::
|
2020-11-10 22:56:19 +03:00
|
|
|
++ convert-publish
|
|
|
|
%+ gas:orm *graph:store
|
|
|
|
%+ turn (tap:orm graph)
|
|
|
|
|= [=atom =node:store]
|
|
|
|
^- [^atom node:store]
|
|
|
|
:: top-level
|
|
|
|
::
|
|
|
|
:+ atom post.node
|
|
|
|
?: ?=(%empty -.children.node)
|
|
|
|
[%empty ~]
|
|
|
|
:- %graph
|
|
|
|
%+ gas:orm *graph:store
|
|
|
|
%+ turn (tap:orm p.children.node)
|
|
|
|
|= [=^atom =node:store]
|
|
|
|
^- [^^atom node:store]
|
|
|
|
:: existing container for publish note revisions
|
|
|
|
::
|
|
|
|
?+ atom !!
|
|
|
|
%1 [atom node]
|
|
|
|
%2
|
|
|
|
:+ atom post.node
|
2020-11-12 23:00:59 +03:00
|
|
|
?: ?=(%empty -.children.node)
|
|
|
|
[%empty ~]
|
2020-11-10 22:56:19 +03:00
|
|
|
:- %graph
|
|
|
|
%+ gas:orm *graph:store
|
|
|
|
%+ turn (tap:orm p.children.node)
|
|
|
|
|= [=^^atom =node:store]
|
|
|
|
^- [^^^atom node:store]
|
|
|
|
:+ atom post.node(contents ~, hash ~)
|
|
|
|
:- %graph
|
|
|
|
%+ gas:orm *graph:store
|
2020-11-19 05:02:42 +03:00
|
|
|
:_ ~ :- %1
|
2020-11-10 22:56:19 +03:00
|
|
|
:_ [%empty ~]
|
|
|
|
post.node(index (snoc index.post.node atom), hash ~)
|
|
|
|
==
|
2020-10-29 07:07:47 +03:00
|
|
|
--
|
|
|
|
::
|
|
|
|
++ maybe-unix-to-da
|
|
|
|
|= =atom
|
|
|
|
^- @
|
|
|
|
:: (bex 127) is roughly 226AD
|
|
|
|
?. (lte atom (bex 127))
|
|
|
|
atom
|
|
|
|
(add ~1970.1.1 (div (mul ~s1 atom) 1.000))
|
|
|
|
::
|
|
|
|
++ convert-unix-timestamped-node
|
|
|
|
|= =node:store
|
|
|
|
^- node:store
|
2020-10-30 03:23:08 +03:00
|
|
|
=. index.post.node
|
|
|
|
(convert-unix-timestamped-index index.post.node)
|
2020-10-29 07:07:47 +03:00
|
|
|
?. ?=(%graph -.children.node)
|
|
|
|
node
|
2020-10-30 03:23:08 +03:00
|
|
|
:+ post.node
|
2020-10-30 03:20:35 +03:00
|
|
|
%graph
|
2020-10-29 07:07:47 +03:00
|
|
|
(convert-unix-timestamped-graph p.children.node)
|
|
|
|
::
|
2020-10-30 03:20:35 +03:00
|
|
|
++ convert-unix-timestamped-index
|
|
|
|
|= =index:store
|
|
|
|
(turn index maybe-unix-to-da)
|
|
|
|
::
|
2020-10-29 07:07:47 +03:00
|
|
|
++ convert-unix-timestamped-graph
|
|
|
|
|= =graph:store
|
|
|
|
%+ gas:orm *graph:store
|
|
|
|
%+ turn
|
|
|
|
(tap:orm graph)
|
|
|
|
|= [=atom =node:store]
|
|
|
|
^- [^atom node:store]
|
|
|
|
:- (maybe-unix-to-da atom)
|
|
|
|
(convert-unix-timestamped-node node)
|
|
|
|
--
|
2020-06-02 00:07:31 +03:00
|
|
|
::
|
2020-06-26 21:38:11 +03:00
|
|
|
++ on-watch
|
|
|
|
~/ %graph-store-watch
|
|
|
|
|= =path
|
|
|
|
^- (quip card _this)
|
|
|
|
|^
|
|
|
|
?> (team:title our.bowl src.bowl)
|
|
|
|
=/ cards=(list card)
|
|
|
|
?+ path (on-watch:def path)
|
|
|
|
[%updates ~] ~
|
|
|
|
[%keys ~] (give [%keys ~(key by graphs)])
|
|
|
|
[%tags ~] (give [%tags ~(key by tag-queries)])
|
|
|
|
==
|
|
|
|
[cards this]
|
|
|
|
::
|
|
|
|
++ give
|
2020-06-30 04:14:55 +03:00
|
|
|
|= =update-0:store
|
2020-06-26 21:38:11 +03:00
|
|
|
^- (list card)
|
2020-06-30 04:14:55 +03:00
|
|
|
[%give %fact ~ [%graph-update !>([%0 now.bowl update-0])]]~
|
2020-06-26 21:38:11 +03:00
|
|
|
--
|
|
|
|
::
|
2020-06-02 00:07:31 +03:00
|
|
|
++ on-poke
|
2020-06-23 19:16:12 +03:00
|
|
|
~/ %graph-store-poke
|
2020-06-02 00:07:31 +03:00
|
|
|
|= [=mark =vase]
|
|
|
|
^- (quip card _this)
|
|
|
|
|^
|
|
|
|
?> (team:title our.bowl src.bowl)
|
|
|
|
=^ cards state
|
|
|
|
?+ mark (on-poke:def mark vase)
|
2020-06-26 21:38:11 +03:00
|
|
|
%graph-update (graph-update !<(update:store vase))
|
2020-11-12 23:00:59 +03:00
|
|
|
%noun (debug !<(debug-input vase))
|
2020-06-02 00:07:31 +03:00
|
|
|
==
|
|
|
|
[cards this]
|
|
|
|
::
|
2020-06-26 21:38:11 +03:00
|
|
|
++ graph-update
|
|
|
|
|= =update:store
|
2020-06-02 00:07:31 +03:00
|
|
|
^- (quip card _state)
|
2020-06-05 22:22:36 +03:00
|
|
|
|^
|
2020-06-26 21:38:11 +03:00
|
|
|
?> ?=(%0 -.update)
|
2020-10-28 22:37:26 +03:00
|
|
|
=? p.update =(p.update *time) now.bowl
|
2020-06-30 04:14:55 +03:00
|
|
|
?- -.q.update
|
|
|
|
%add-graph (add-graph +.q.update)
|
|
|
|
%remove-graph (remove-graph +.q.update)
|
|
|
|
%add-nodes (add-nodes p.update +.q.update)
|
|
|
|
%remove-nodes (remove-nodes p.update +.q.update)
|
|
|
|
%add-signatures (add-signatures p.update +.q.update)
|
|
|
|
%remove-signatures (remove-signatures p.update +.q.update)
|
|
|
|
%add-tag (add-tag +.q.update)
|
|
|
|
%remove-tag (remove-tag +.q.update)
|
|
|
|
%archive-graph (archive-graph +.q.update)
|
|
|
|
%unarchive-graph (unarchive-graph +.q.update)
|
|
|
|
%run-updates (run-updates +.q.update)
|
2020-07-07 02:31:57 +03:00
|
|
|
%keys ~|('cannot send %keys as poke' !!)
|
|
|
|
%tags ~|('cannot send %tags as poke' !!)
|
|
|
|
%tag-queries ~|('cannot send %tag-queries as poke' !!)
|
2020-06-05 22:22:36 +03:00
|
|
|
==
|
|
|
|
::
|
2020-06-12 20:50:22 +03:00
|
|
|
++ add-graph
|
2020-11-12 23:40:12 +03:00
|
|
|
|= $: =resource:store
|
|
|
|
=graph:store
|
|
|
|
mark=(unit mark:store)
|
|
|
|
overwrite=?
|
|
|
|
==
|
2020-06-12 20:50:22 +03:00
|
|
|
^- (quip card _state)
|
2020-11-12 23:40:12 +03:00
|
|
|
?> ?| overwrite
|
|
|
|
?& !(~(has by archive) resource)
|
|
|
|
!(~(has by graphs) resource)
|
|
|
|
== ==
|
2020-07-07 02:31:57 +03:00
|
|
|
?> (validate-graph graph mark)
|
|
|
|
:_ %_ state
|
|
|
|
graphs (~(put by graphs) resource [graph mark])
|
|
|
|
update-logs (~(put by update-logs) resource (gas:orm-log ~ ~))
|
2020-11-12 23:40:12 +03:00
|
|
|
archive (~(del by archive) resource)
|
2020-07-31 00:43:40 +03:00
|
|
|
validators
|
|
|
|
?~ mark validators
|
|
|
|
(~(put in validators) u.mark)
|
2020-07-07 02:31:57 +03:00
|
|
|
==
|
|
|
|
%- zing
|
2020-11-12 23:40:12 +03:00
|
|
|
:~ (give [/updates /keys ~] [%add-graph resource graph mark overwrite])
|
2020-07-07 02:31:57 +03:00
|
|
|
?~ mark ~
|
2020-07-31 00:43:40 +03:00
|
|
|
?: (~(has in validators) u.mark) ~
|
2020-10-29 07:07:47 +03:00
|
|
|
=/ wire /validator/[u.mark]
|
2020-07-07 02:31:57 +03:00
|
|
|
=/ =rave:clay [%sing %b [%da now.bowl] /[u.mark]]
|
|
|
|
[%pass wire %arvo %c %warp our.bowl [%home `rave]]~
|
2020-06-12 20:50:22 +03:00
|
|
|
==
|
2020-06-05 22:22:36 +03:00
|
|
|
::
|
|
|
|
++ remove-graph
|
|
|
|
|= =resource:store
|
|
|
|
^- (quip card _state)
|
2020-06-30 04:14:55 +03:00
|
|
|
?< (~(has by archive) resource)
|
2020-06-05 22:22:36 +03:00
|
|
|
?> (~(has by graphs) resource)
|
2020-06-10 19:08:49 +03:00
|
|
|
:- (give [/updates /keys ~] [%remove-graph resource])
|
2020-06-09 21:48:05 +03:00
|
|
|
%_ state
|
2020-06-09 00:44:51 +03:00
|
|
|
graphs (~(del by graphs) resource)
|
2020-06-30 04:14:55 +03:00
|
|
|
update-logs (~(del by update-logs) resource)
|
2020-06-09 00:44:51 +03:00
|
|
|
==
|
2020-06-05 22:22:36 +03:00
|
|
|
::
|
|
|
|
++ add-nodes
|
2020-07-07 02:31:57 +03:00
|
|
|
|= $: =time
|
|
|
|
=resource:store
|
|
|
|
nodes=(map index:store node:store)
|
|
|
|
==
|
2020-06-05 22:22:36 +03:00
|
|
|
^- (quip card _state)
|
2020-06-12 20:27:43 +03:00
|
|
|
|^
|
2020-07-07 02:31:57 +03:00
|
|
|
=/ [=graph:store mark=(unit mark:store)]
|
|
|
|
(~(got by graphs) resource)
|
2020-06-30 04:14:55 +03:00
|
|
|
=/ =update-log:store (~(got by update-logs) resource)
|
|
|
|
=. update-log
|
|
|
|
(put:orm-log update-log time [%0 time [%add-nodes resource nodes]])
|
2020-06-12 20:27:43 +03:00
|
|
|
::
|
|
|
|
:- (give [/updates]~ [%add-nodes resource nodes])
|
|
|
|
%_ state
|
2020-06-30 04:14:55 +03:00
|
|
|
update-logs (~(put by update-logs) resource update-log)
|
2020-06-12 20:27:43 +03:00
|
|
|
graphs
|
|
|
|
%+ ~(put by graphs)
|
|
|
|
resource
|
2020-07-22 01:57:44 +03:00
|
|
|
:_ mark
|
|
|
|
(add-node-list resource graph mark (sort-nodes nodes))
|
2020-06-12 20:27:43 +03:00
|
|
|
==
|
2020-06-05 22:22:36 +03:00
|
|
|
::
|
2020-07-22 01:57:44 +03:00
|
|
|
++ sort-nodes
|
|
|
|
|= nodes=(map index:store node:store)
|
|
|
|
^- (list [index:store node:store])
|
|
|
|
%+ sort ~(tap by nodes)
|
2020-07-22 02:01:46 +03:00
|
|
|
|= [p=[=index:store *] q=[=index:store *]]
|
2020-07-22 01:57:44 +03:00
|
|
|
^- ?
|
2020-07-22 03:37:28 +03:00
|
|
|
(lth (lent index.p) (lent index.q))
|
2020-07-22 01:57:44 +03:00
|
|
|
::
|
2020-06-05 22:22:36 +03:00
|
|
|
++ add-node-list
|
|
|
|
|= $: =resource:store
|
|
|
|
=graph:store
|
2020-07-07 02:31:57 +03:00
|
|
|
mark=(unit mark:store)
|
2020-06-05 22:22:36 +03:00
|
|
|
node-list=(list [index:store node:store])
|
|
|
|
==
|
|
|
|
^- graph:store
|
|
|
|
?~ node-list graph
|
|
|
|
=* index -.i.node-list
|
|
|
|
=* node +.i.node-list
|
|
|
|
%_ $
|
|
|
|
node-list t.node-list
|
2020-07-21 21:04:18 +03:00
|
|
|
graph (add-node-at-index graph index node mark)
|
2020-06-05 22:22:36 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ add-node-at-index
|
2020-07-21 21:04:18 +03:00
|
|
|
=| parent-hash=(unit hash:store)
|
2020-06-09 21:48:05 +03:00
|
|
|
|= $: =graph:store
|
|
|
|
=index:store
|
|
|
|
=node:store
|
2020-07-07 02:31:57 +03:00
|
|
|
mark=(unit mark:store)
|
2020-06-09 21:48:05 +03:00
|
|
|
==
|
2020-06-05 22:22:36 +03:00
|
|
|
^- graph:store
|
2020-07-21 21:04:18 +03:00
|
|
|
?< ?=(~ index)
|
2020-07-28 22:03:09 +03:00
|
|
|
~| "validation of node failed using mark {<mark>}"
|
2020-07-07 02:31:57 +03:00
|
|
|
?> (validate-graph (gas:orm ~ [i.index node]~) mark)
|
2020-06-05 22:22:36 +03:00
|
|
|
=* atom i.index
|
2020-06-10 19:08:49 +03:00
|
|
|
%^ put:orm
|
|
|
|
graph
|
|
|
|
atom
|
2020-06-18 22:59:50 +03:00
|
|
|
:: add child
|
|
|
|
::
|
2020-06-09 00:44:51 +03:00
|
|
|
?~ t.index
|
2020-06-09 21:48:05 +03:00
|
|
|
=* p post.node
|
|
|
|
=/ =validated-portion:store
|
2020-07-21 21:04:18 +03:00
|
|
|
[parent-hash author.p time-sent.p contents.p]
|
2020-07-22 23:32:47 +03:00
|
|
|
=/ =hash:store `@ux`(sham validated-portion)
|
2020-07-31 01:02:04 +03:00
|
|
|
?~ hash.p node(signatures.post *signatures:store)
|
|
|
|
~| "signatures do not match the calculated hash"
|
2020-09-04 08:35:03 +03:00
|
|
|
?> (are-signatures-valid:sigs our.bowl signatures.p hash now.bowl)
|
2020-06-18 22:59:50 +03:00
|
|
|
~| "hash of post does not match calculated hash"
|
|
|
|
?> =(hash u.hash.p)
|
|
|
|
node
|
|
|
|
:: recurse children
|
|
|
|
::
|
2020-07-31 01:06:48 +03:00
|
|
|
=/ parent=node:store
|
|
|
|
~| "index does not exist to add a node to!"
|
|
|
|
(need (get:orm graph atom))
|
2020-06-10 19:08:49 +03:00
|
|
|
%_ parent
|
|
|
|
children
|
|
|
|
^- internal-graph:store
|
|
|
|
:- %graph
|
|
|
|
%_ $
|
|
|
|
index t.index
|
|
|
|
parent-hash hash.post.parent
|
2020-06-05 22:22:36 +03:00
|
|
|
graph
|
2020-06-10 19:08:49 +03:00
|
|
|
?: ?=(%graph -.children.parent)
|
|
|
|
p.children.parent
|
|
|
|
(gas:orm ~ ~)
|
2020-06-05 22:22:36 +03:00
|
|
|
==
|
|
|
|
==
|
|
|
|
--
|
|
|
|
::
|
|
|
|
++ remove-nodes
|
2020-06-30 04:14:55 +03:00
|
|
|
|= [=time =resource:store indices=(set index:store)]
|
2020-06-05 22:22:36 +03:00
|
|
|
^- (quip card _state)
|
2020-06-12 20:27:43 +03:00
|
|
|
|^
|
2020-07-07 02:31:57 +03:00
|
|
|
=/ [=graph:store mark=(unit mark:store)]
|
|
|
|
(~(got by graphs) resource)
|
|
|
|
=/ =update-log:store (~(got by update-logs) resource)
|
2020-06-30 04:14:55 +03:00
|
|
|
=. update-log
|
|
|
|
(put:orm-log update-log time [%0 time [%remove-nodes resource indices]])
|
2020-06-12 20:27:43 +03:00
|
|
|
::
|
|
|
|
:- (give [/updates]~ [%remove-nodes resource indices])
|
|
|
|
%_ state
|
2020-06-30 04:14:55 +03:00
|
|
|
update-logs (~(put by update-logs) resource update-log)
|
2020-06-12 20:27:43 +03:00
|
|
|
graphs
|
|
|
|
%+ ~(put by graphs)
|
|
|
|
resource
|
2020-07-07 02:31:57 +03:00
|
|
|
[(remove-indices resource graph ~(tap in indices)) mark]
|
2020-06-12 20:27:43 +03:00
|
|
|
==
|
2020-06-05 23:31:55 +03:00
|
|
|
::
|
|
|
|
++ remove-indices
|
|
|
|
|= [=resource:store =graph:store indices=(list index:store)]
|
|
|
|
^- graph:store
|
|
|
|
?~ indices graph
|
|
|
|
%_ $
|
|
|
|
indices t.indices
|
|
|
|
graph (remove-index graph i.indices)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ remove-index
|
|
|
|
|= [=graph:store =index:store]
|
|
|
|
^- graph:store
|
|
|
|
?~ index graph
|
|
|
|
=* atom i.index
|
|
|
|
:: last index in list
|
|
|
|
::
|
|
|
|
?~ t.index
|
2020-06-09 00:44:51 +03:00
|
|
|
+:`[* graph:store]`(del:orm graph atom)
|
2020-07-31 01:06:48 +03:00
|
|
|
=/ =node:store
|
|
|
|
~| "parent index does not exist to remove a node from!"
|
|
|
|
(need (get:orm graph atom))
|
2020-06-10 19:08:49 +03:00
|
|
|
~| "child index does not exist to remove a node from!"
|
|
|
|
?> ?=(%graph -.children.node)
|
|
|
|
%^ put:orm
|
|
|
|
graph
|
|
|
|
atom
|
|
|
|
node(p.children $(graph p.children.node, index t.index))
|
2020-06-05 23:31:55 +03:00
|
|
|
--
|
2020-06-05 22:22:36 +03:00
|
|
|
::
|
|
|
|
++ add-signatures
|
2020-06-30 04:14:55 +03:00
|
|
|
|= [=time =uid:store =signatures:store]
|
2020-06-05 22:22:36 +03:00
|
|
|
^- (quip card _state)
|
2020-06-12 20:27:43 +03:00
|
|
|
|^
|
|
|
|
=* resource resource.uid
|
2020-07-07 02:31:57 +03:00
|
|
|
=/ [=graph:store mark=(unit mark:store)]
|
|
|
|
(~(got by graphs) resource)
|
2020-06-30 04:14:55 +03:00
|
|
|
=/ =update-log:store (~(got by update-logs) resource)
|
|
|
|
=. update-log
|
|
|
|
(put:orm-log update-log time [%0 time [%add-signatures uid signatures]])
|
2020-06-12 20:27:43 +03:00
|
|
|
::
|
|
|
|
:- (give [/updates]~ [%add-signatures uid signatures])
|
|
|
|
%_ state
|
2020-06-30 04:14:55 +03:00
|
|
|
update-logs (~(put by update-logs) resource update-log)
|
2020-06-12 20:27:43 +03:00
|
|
|
graphs
|
2020-07-07 02:31:57 +03:00
|
|
|
%+ ~(put by graphs) resource
|
|
|
|
[(add-at-index graph index.uid signatures) mark]
|
2020-06-12 20:27:43 +03:00
|
|
|
==
|
2020-06-09 00:44:51 +03:00
|
|
|
::
|
|
|
|
++ add-at-index
|
|
|
|
|= [=graph:store =index:store =signatures:store]
|
|
|
|
^- graph:store
|
|
|
|
?~ index graph
|
|
|
|
=* atom i.index
|
2020-07-31 01:06:48 +03:00
|
|
|
=/ =node:store
|
2020-09-01 04:54:39 +03:00
|
|
|
~| "node does not exist to add signatures to!"
|
2020-07-31 01:06:48 +03:00
|
|
|
(need (get:orm graph atom))
|
2020-06-09 00:44:51 +03:00
|
|
|
:: last index in list
|
|
|
|
::
|
2020-06-10 19:08:49 +03:00
|
|
|
%^ put:orm
|
|
|
|
graph
|
|
|
|
atom
|
2020-06-09 00:44:51 +03:00
|
|
|
?~ t.index
|
2020-06-10 19:08:49 +03:00
|
|
|
~| "cannot add signatures to a node missing a hash"
|
|
|
|
?> ?=(^ hash.post.node)
|
|
|
|
~| "signatures did not match public keys!"
|
2020-09-04 08:35:03 +03:00
|
|
|
?> (are-signatures-valid:sigs our.bowl signatures u.hash.post.node now.bowl)
|
2020-06-10 19:08:49 +03:00
|
|
|
node(signatures.post (~(uni in signatures) signatures.post.node))
|
|
|
|
~| "child graph does not exist to add signatures to!"
|
|
|
|
?> ?=(%graph -.children.node)
|
|
|
|
node(p.children $(graph p.children.node, index t.index))
|
2020-06-09 00:44:51 +03:00
|
|
|
--
|
2020-06-05 22:22:36 +03:00
|
|
|
::
|
|
|
|
++ remove-signatures
|
2020-06-30 04:14:55 +03:00
|
|
|
|= [=time =uid:store =signatures:store]
|
2020-06-05 22:22:36 +03:00
|
|
|
^- (quip card _state)
|
2020-06-12 20:27:43 +03:00
|
|
|
|^
|
|
|
|
=* resource resource.uid
|
2020-07-07 02:31:57 +03:00
|
|
|
=/ [=graph:store mark=(unit mark:store)]
|
|
|
|
(~(got by graphs) resource)
|
2020-06-30 04:14:55 +03:00
|
|
|
=/ =update-log:store (~(got by update-logs) resource)
|
|
|
|
=. update-log
|
|
|
|
%^ put:orm-log update-log
|
|
|
|
time
|
|
|
|
[%0 time [%remove-signatures uid signatures]]
|
2020-06-12 20:27:43 +03:00
|
|
|
::
|
|
|
|
:- (give [/updates]~ [%remove-signatures uid signatures])
|
|
|
|
%_ state
|
2020-06-30 04:14:55 +03:00
|
|
|
update-logs (~(put by update-logs) resource update-log)
|
2020-06-12 20:27:43 +03:00
|
|
|
graphs
|
|
|
|
%+ ~(put by graphs) resource
|
2020-07-07 02:31:57 +03:00
|
|
|
[(remove-at-index graph index.uid signatures) mark]
|
2020-06-12 20:27:43 +03:00
|
|
|
==
|
2020-06-10 19:08:49 +03:00
|
|
|
::
|
|
|
|
++ remove-at-index
|
|
|
|
|= [=graph:store =index:store =signatures:store]
|
|
|
|
^- graph:store
|
|
|
|
?~ index graph
|
|
|
|
=* atom i.index
|
2020-07-31 01:06:48 +03:00
|
|
|
=/ =node:store
|
2020-09-01 04:54:39 +03:00
|
|
|
~| "node does not exist to add signatures to!"
|
2020-07-31 01:06:48 +03:00
|
|
|
(need (get:orm graph atom))
|
2020-06-10 19:08:49 +03:00
|
|
|
:: last index in list
|
|
|
|
::
|
|
|
|
%^ put:orm
|
|
|
|
graph
|
|
|
|
atom
|
|
|
|
?~ t.index
|
|
|
|
node(signatures.post (~(dif in signatures) signatures.post.node))
|
|
|
|
~| "child graph does not exist to add signatures to!"
|
|
|
|
?> ?=(%graph -.children.node)
|
|
|
|
node(p.children $(graph p.children.node, index t.index))
|
|
|
|
--
|
2020-06-05 22:22:36 +03:00
|
|
|
::
|
|
|
|
++ add-tag
|
2020-06-09 00:44:51 +03:00
|
|
|
|= [=term =resource:store]
|
2020-06-05 22:22:36 +03:00
|
|
|
^- (quip card _state)
|
2020-06-09 00:44:51 +03:00
|
|
|
?> (~(has by graphs) resource)
|
2020-06-26 21:38:11 +03:00
|
|
|
:- (give [/updates /tags ~] [%add-tag term resource])
|
2020-06-09 00:44:51 +03:00
|
|
|
%_ state
|
|
|
|
tag-queries (~(put ju tag-queries) term resource)
|
|
|
|
==
|
2020-06-05 22:22:36 +03:00
|
|
|
::
|
|
|
|
++ remove-tag
|
2020-06-09 00:44:51 +03:00
|
|
|
|= [=term =resource:store]
|
2020-06-05 22:22:36 +03:00
|
|
|
^- (quip card _state)
|
2020-06-09 00:44:51 +03:00
|
|
|
?> (~(has by graphs) resource)
|
2020-06-26 21:38:11 +03:00
|
|
|
:- (give [/updates /tags ~] [%remove-tag term resource])
|
2020-06-09 00:44:51 +03:00
|
|
|
%_ state
|
|
|
|
tag-queries (~(del ju tag-queries) term resource)
|
|
|
|
==
|
2020-06-05 22:22:36 +03:00
|
|
|
::
|
2020-06-23 20:53:50 +03:00
|
|
|
++ archive-graph
|
|
|
|
|= =resource:store
|
|
|
|
^- (quip card _state)
|
|
|
|
?< (~(has by archive) resource)
|
|
|
|
?> (~(has by graphs) resource)
|
2020-06-26 21:38:11 +03:00
|
|
|
:- (give [/updates /keys /tags ~] [%archive-graph resource])
|
2020-06-23 20:53:50 +03:00
|
|
|
%_ state
|
|
|
|
archive (~(put by archive) resource (~(got by graphs) resource))
|
|
|
|
graphs (~(del by graphs) resource)
|
2020-06-30 04:14:55 +03:00
|
|
|
update-logs (~(del by update-logs) resource)
|
2020-06-26 21:38:11 +03:00
|
|
|
tag-queries
|
|
|
|
%- ~(run by tag-queries)
|
|
|
|
|= =resources:store
|
|
|
|
(~(del in resources) resource)
|
2020-06-23 20:53:50 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ unarchive-graph
|
|
|
|
|= =resource:store
|
|
|
|
^- (quip card _state)
|
|
|
|
?> (~(has by archive) resource)
|
|
|
|
?< (~(has by graphs) resource)
|
|
|
|
:- (give [/updates /keys ~] [%unarchive-graph resource])
|
|
|
|
%_ state
|
|
|
|
archive (~(del by archive) resource)
|
|
|
|
graphs (~(put by graphs) resource (~(got by archive) resource))
|
2020-06-30 04:14:55 +03:00
|
|
|
update-logs (~(put by update-logs) resource (gas:orm-log ~ ~))
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ run-updates
|
|
|
|
|= [=resource:store =update-log:store]
|
|
|
|
^- (quip card _state)
|
|
|
|
?< (~(has by archive) resource)
|
|
|
|
?> (~(has by graphs) resource)
|
2020-11-10 08:43:35 +03:00
|
|
|
=/ updates=(list [=time upd=logged-update:store])
|
|
|
|
(tap:orm-log update-log)
|
|
|
|
=| cards=(list card)
|
|
|
|
|- ^- (quip card _state)
|
|
|
|
?~ updates
|
|
|
|
[cards state]
|
|
|
|
=* update upd.i.updates
|
|
|
|
=^ crds state
|
|
|
|
%- graph-update
|
|
|
|
^- update:store
|
|
|
|
?- -.q.update
|
|
|
|
%add-nodes update(resource.q resource)
|
|
|
|
%remove-nodes update(resource.q resource)
|
|
|
|
%add-signatures update(resource.uid.q resource)
|
|
|
|
%remove-signatures update(resource.uid.q resource)
|
|
|
|
==
|
|
|
|
$(cards (weld cards crds), updates t.updates)
|
2020-06-23 20:53:50 +03:00
|
|
|
::
|
2020-06-05 22:22:36 +03:00
|
|
|
++ give
|
2020-06-09 00:44:51 +03:00
|
|
|
|= [paths=(list path) update=update-0:store]
|
2020-06-05 22:22:36 +03:00
|
|
|
^- (list card)
|
2020-06-30 04:14:55 +03:00
|
|
|
[%give %fact paths [%graph-update !>([%0 now.bowl update])]]~
|
2020-06-05 22:22:36 +03:00
|
|
|
--
|
2020-11-12 23:00:59 +03:00
|
|
|
::
|
|
|
|
++ debug
|
|
|
|
|= =debug-input
|
|
|
|
^- (quip card _state)
|
|
|
|
=/ [=graph:store mark=(unit mark:store)]
|
|
|
|
(~(got by graphs) resource.debug-input)
|
|
|
|
?> (validate-graph graph mark)
|
|
|
|
[~ state]
|
|
|
|
::
|
|
|
|
++ validate-graph
|
|
|
|
|= [=graph:store mark=(unit mark:store)]
|
|
|
|
^- ?
|
|
|
|
?~ mark %.y
|
|
|
|
?~ graph %.y
|
|
|
|
=/ =dais:clay
|
|
|
|
.^ =dais:clay
|
|
|
|
%cb
|
|
|
|
/(scot %p our.bowl)/[q.byk.bowl]/(scot %da now.bowl)/[u.mark]
|
|
|
|
==
|
|
|
|
%+ roll (tap:orm graph)
|
|
|
|
|= [[=atom =node:store] out=?]
|
|
|
|
?& out
|
|
|
|
=(%& -:(mule |.((vale:dais [atom post.node]))))
|
|
|
|
?- -.children.node
|
|
|
|
%empty %.y
|
|
|
|
%graph ^$(graph p.children.node)
|
|
|
|
==
|
|
|
|
==
|
2020-06-02 00:07:31 +03:00
|
|
|
--
|
|
|
|
::
|
|
|
|
++ on-peek
|
2020-06-23 19:16:12 +03:00
|
|
|
~/ %graph-store-peek
|
2020-06-02 00:07:31 +03:00
|
|
|
|= =path
|
|
|
|
^- (unit (unit cage))
|
2020-06-26 21:38:11 +03:00
|
|
|
|^
|
|
|
|
?> (team:title our.bowl src.bowl)
|
2020-06-02 00:07:31 +03:00
|
|
|
?+ path (on-peek:def path)
|
2020-10-21 08:59:39 +03:00
|
|
|
[%x %graph-mark @ @ ~]
|
|
|
|
=/ =ship (slav %p i.t.t.path)
|
|
|
|
=/ =term i.t.t.t.path
|
|
|
|
=/ result=(unit marked-graph:store)
|
|
|
|
(~(get by graphs) [ship term])
|
|
|
|
?~ result [~ ~]
|
|
|
|
``noun+!>(q.u.result)
|
|
|
|
::
|
2020-08-28 01:31:36 +03:00
|
|
|
[%x %keys ~]
|
|
|
|
:- ~ :- ~ :- %graph-update
|
|
|
|
!>(`update:store`[%0 now.bowl [%keys ~(key by graphs)]])
|
|
|
|
::
|
|
|
|
[%x %tags ~]
|
|
|
|
:- ~ :- ~ :- %graph-update
|
|
|
|
!>(`update:store`[%0 now.bowl [%tags ~(key by tag-queries)]])
|
|
|
|
::
|
|
|
|
[%x %tag-queries ~]
|
|
|
|
:- ~ :- ~ :- %graph-update
|
|
|
|
!>(`update:store`[%0 now.bowl [%tag-queries tag-queries]])
|
|
|
|
::
|
2020-06-12 21:02:52 +03:00
|
|
|
[%x %graph @ @ ~]
|
|
|
|
=/ =ship (slav %p i.t.t.path)
|
2020-06-12 23:29:14 +03:00
|
|
|
=/ =term i.t.t.t.path
|
2020-07-07 03:02:15 +03:00
|
|
|
=/ result=(unit marked-graph:store)
|
|
|
|
(~(get by graphs) [ship term])
|
2020-07-28 22:30:59 +03:00
|
|
|
?~ result [~ ~]
|
2020-08-28 01:31:36 +03:00
|
|
|
:- ~ :- ~ :- %graph-update
|
|
|
|
!> ^- update:store
|
|
|
|
:+ %0
|
|
|
|
now.bowl
|
2020-11-12 23:40:12 +03:00
|
|
|
[%add-graph [ship term] `graph:store`p.u.result q.u.result %.y]
|
2020-09-18 22:50:54 +03:00
|
|
|
::
|
|
|
|
:: note: near-duplicate of /x/graph
|
|
|
|
::
|
|
|
|
[%x %archive @ @ ~]
|
|
|
|
=/ =ship (slav %p i.t.t.path)
|
|
|
|
=/ =term i.t.t.t.path
|
|
|
|
=/ result=(unit marked-graph:store)
|
|
|
|
(~(get by archive) [ship term])
|
2020-09-18 23:50:34 +03:00
|
|
|
?~ result
|
|
|
|
~& no-archived-graph+[ship term]
|
|
|
|
[~ ~]
|
2020-09-18 22:50:54 +03:00
|
|
|
:- ~ :- ~ :- %graph-update
|
|
|
|
!> ^- update:store
|
|
|
|
:+ %0
|
|
|
|
now.bowl
|
2020-11-12 23:40:12 +03:00
|
|
|
[%add-graph [ship term] `graph:store`p.u.result q.u.result %.y]
|
2020-06-18 22:59:50 +03:00
|
|
|
::
|
2020-06-26 21:38:11 +03:00
|
|
|
[%x %graph-subset @ @ @ @ ~]
|
2020-07-07 03:02:15 +03:00
|
|
|
=/ =ship (slav %p i.t.t.path)
|
|
|
|
=/ =term i.t.t.t.path
|
2020-07-22 23:32:47 +03:00
|
|
|
=/ start=(unit atom) (rush i.t.t.t.t.path dem:ag)
|
|
|
|
=/ end=(unit atom) (rush i.t.t.t.t.t.path dem:ag)
|
2020-07-07 03:02:15 +03:00
|
|
|
=/ graph=(unit marked-graph:store)
|
|
|
|
(~(get by graphs) [ship term])
|
2020-07-28 22:30:59 +03:00
|
|
|
?~ graph [~ ~]
|
2020-08-28 01:31:36 +03:00
|
|
|
:- ~ :- ~ :- %graph-update
|
|
|
|
!> ^- update:store
|
|
|
|
:+ %0 now.bowl
|
|
|
|
:+ %add-nodes
|
|
|
|
[ship term]
|
|
|
|
%- ~(gas by *(map index:store node:store))
|
|
|
|
%+ turn (tap:orm `graph:store`(subset:orm p.u.graph start end))
|
|
|
|
|= [=atom =node:store]
|
|
|
|
^- [index:store node:store]
|
|
|
|
[~[atom] node]
|
2020-06-18 22:59:50 +03:00
|
|
|
::
|
|
|
|
[%x %node @ @ @ *]
|
2020-07-07 03:02:15 +03:00
|
|
|
=/ =ship (slav %p i.t.t.path)
|
|
|
|
=/ =term i.t.t.t.path
|
|
|
|
=/ =index:store
|
2020-10-05 08:27:26 +03:00
|
|
|
(turn t.t.t.t.path (cury slav %ud))
|
2020-06-26 21:38:11 +03:00
|
|
|
=/ node=(unit node:store) (get-node ship term index)
|
2020-07-28 22:30:59 +03:00
|
|
|
?~ node [~ ~]
|
2020-08-28 01:31:36 +03:00
|
|
|
:- ~ :- ~ :- %graph-update
|
|
|
|
!> ^- update:store
|
|
|
|
:+ %0
|
|
|
|
now.bowl
|
|
|
|
:+ %add-nodes
|
|
|
|
[ship term]
|
|
|
|
(~(gas by *(map index:store node:store)) [index u.node] ~)
|
2020-06-26 21:38:11 +03:00
|
|
|
::
|
|
|
|
[%x %node-children-subset @ @ @ @ @ *]
|
2020-07-07 03:02:15 +03:00
|
|
|
=/ =ship (slav %p i.t.t.path)
|
|
|
|
=/ =term i.t.t.t.path
|
2020-07-22 23:32:47 +03:00
|
|
|
=/ start=(unit atom) (rush i.t.t.t.t.path dem:ag)
|
|
|
|
=/ end=(unit atom) (rush i.t.t.t.t.t.path dem:ag)
|
2020-07-07 03:02:15 +03:00
|
|
|
=/ =index:store
|
|
|
|
(turn t.t.t.t.t.t.path |=(=cord (slav %ud cord)))
|
2020-06-26 21:38:11 +03:00
|
|
|
=/ node=(unit node:store) (get-node ship term index)
|
2020-07-28 22:30:59 +03:00
|
|
|
?~ node [~ ~]
|
2020-06-26 21:38:11 +03:00
|
|
|
?- -.children.u.node
|
2020-07-28 22:30:59 +03:00
|
|
|
%empty [~ ~]
|
2020-08-28 01:31:36 +03:00
|
|
|
%graph
|
|
|
|
:- ~ :- ~ :- %graph-update
|
|
|
|
!> ^- update:store
|
|
|
|
:+ %0
|
|
|
|
now.bowl
|
|
|
|
:+ %add-nodes
|
|
|
|
[ship term]
|
|
|
|
%- ~(gas by *(map index:store node:store))
|
2020-11-17 11:00:29 +03:00
|
|
|
%+ turn (tap:orm `graph:store`(subset:orm p.children.u.node end start))
|
2020-08-28 01:31:36 +03:00
|
|
|
|= [=atom =node:store]
|
|
|
|
^- [index:store node:store]
|
|
|
|
[(snoc index atom) node]
|
2020-06-26 21:38:11 +03:00
|
|
|
==
|
2020-08-19 22:22:20 +03:00
|
|
|
::
|
|
|
|
[%x %update-log-subset @ @ @ @ ~]
|
|
|
|
=/ =ship (slav %p i.t.t.path)
|
|
|
|
=/ =term i.t.t.t.path
|
|
|
|
=/ start=(unit time) (slaw %da i.t.t.t.t.path)
|
|
|
|
=/ end=(unit time) (slaw %da i.t.t.t.t.t.path)
|
|
|
|
=/ update-log=(unit update-log:store) (~(get by update-logs) [ship term])
|
|
|
|
?~ update-log [~ ~]
|
2020-11-17 11:00:29 +03:00
|
|
|
:: orm-log is ordered backwards, so swap start and end
|
|
|
|
``noun+!>((subset:orm-log u.update-log end start))
|
2020-06-27 00:36:57 +03:00
|
|
|
::
|
2020-06-30 04:14:55 +03:00
|
|
|
[%x %update-log @ @ ~]
|
2020-06-27 00:36:57 +03:00
|
|
|
=/ =ship (slav %p i.t.t.path)
|
|
|
|
=/ =term i.t.t.t.path
|
2020-06-30 04:14:55 +03:00
|
|
|
=/ update-log=(unit update-log:store) (~(get by update-logs) [ship term])
|
2020-07-28 22:30:59 +03:00
|
|
|
?~ update-log [~ ~]
|
2020-06-30 04:14:55 +03:00
|
|
|
``noun+!>(u.update-log)
|
2020-06-27 00:36:57 +03:00
|
|
|
::
|
2020-06-30 04:14:55 +03:00
|
|
|
[%x %peek-update-log @ @ ~]
|
2020-06-27 00:36:57 +03:00
|
|
|
=/ =ship (slav %p i.t.t.path)
|
|
|
|
=/ =term i.t.t.t.path
|
2020-11-25 07:40:49 +03:00
|
|
|
=/ m-update-log=(unit update-log:store) (~(get by update-logs) [ship term])
|
|
|
|
:- ~ :- ~ :- %noun
|
|
|
|
!> ^- (unit time)
|
|
|
|
%+ biff m-update-log
|
|
|
|
|= =update-log:store
|
|
|
|
=/ result=(unit [=time =update:store])
|
|
|
|
(peek:orm-log:store update-log)
|
|
|
|
(bind result |=([=time update:store] time))
|
2020-06-26 21:38:11 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ get-node
|
|
|
|
|= [=ship =term =index:store]
|
|
|
|
^- (unit node:store)
|
2020-07-07 03:02:15 +03:00
|
|
|
=/ parent-graph=(unit marked-graph:store)
|
|
|
|
(~(get by graphs) [ship term])
|
2020-06-20 22:56:00 +03:00
|
|
|
?~ parent-graph ~
|
|
|
|
=/ node=(unit node:store) ~
|
2020-07-07 03:02:15 +03:00
|
|
|
=/ =graph:store p.u.parent-graph
|
2020-06-18 22:59:50 +03:00
|
|
|
|-
|
|
|
|
?~ index
|
2020-06-26 21:38:11 +03:00
|
|
|
node
|
2020-06-18 22:59:50 +03:00
|
|
|
?~ t.index
|
2020-06-26 21:38:11 +03:00
|
|
|
(get:orm graph i.index)
|
2020-06-20 22:56:00 +03:00
|
|
|
=. node (get:orm graph i.index)
|
2020-06-18 22:59:50 +03:00
|
|
|
?~ node ~
|
|
|
|
?- -.children.u.node
|
|
|
|
%empty ~
|
2020-06-20 22:56:00 +03:00
|
|
|
%graph $(graph p.children.u.node, index t.index)
|
2020-06-18 22:59:50 +03:00
|
|
|
==
|
2020-06-26 21:38:11 +03:00
|
|
|
--
|
2020-06-02 00:07:31 +03:00
|
|
|
::
|
2020-07-07 02:31:57 +03:00
|
|
|
++ on-arvo
|
|
|
|
|= [=wire =sign-arvo]
|
|
|
|
^- (quip card _this)
|
2020-10-29 07:07:47 +03:00
|
|
|
?+ wire (on-arvo:def wire sign-arvo)
|
|
|
|
::
|
|
|
|
:: old wire, do nothing
|
|
|
|
[%graph *] [~ this]
|
|
|
|
::
|
|
|
|
[%validator @ ~]
|
2020-07-31 00:43:40 +03:00
|
|
|
:_ this
|
2020-10-29 07:07:47 +03:00
|
|
|
=* validator i.t.wire
|
2020-10-30 03:05:59 +03:00
|
|
|
=/ =rave:clay [%next %b [%da now.bowl] /[validator]]
|
2020-07-31 00:43:40 +03:00
|
|
|
[%pass wire %arvo %c %warp our.bowl [%home `rave]]~
|
2020-07-07 02:31:57 +03:00
|
|
|
==
|
|
|
|
::
|
2020-06-02 00:07:31 +03:00
|
|
|
++ on-agent on-agent:def
|
|
|
|
++ on-leave on-leave:def
|
|
|
|
++ on-fail on-fail:def
|
|
|
|
--
|