mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 11:40:11 +03:00
Merge branch 'jb/motion' into jb/motion-merge
* jb/motion: pill: solid zuse: remove %crud from vane-task arvo: full vane names in $sign aqua: build again (still broken) arvo: reform of the scry reform
This commit is contained in:
commit
aaf506ce8a
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e8841895a2f0d02693518c8d10f8bf64611fa719beec33769b3ebf824dd5f546
|
||||
size 7672426
|
||||
oid sha256:89f7f770f5ba2075d4de2bb496da96043dafdc37dab26a4e439a6b70dcf08312
|
||||
size 7829586
|
||||
|
@ -27,24 +27,22 @@
|
||||
=> $~ |%
|
||||
+$ versioned-state
|
||||
$% state-0
|
||||
state-1
|
||||
==
|
||||
+$ state-0
|
||||
$: %0
|
||||
pil=pill
|
||||
assembled=*
|
||||
tym=@da
|
||||
fleet-snaps=(map term (map ship pier))
|
||||
piers=(map ship pier)
|
||||
==
|
||||
+$ state-1
|
||||
$: %1
|
||||
pil=pill
|
||||
assembled=*
|
||||
tym=@da
|
||||
fleet-snaps=(map term fleet)
|
||||
piers=fleet
|
||||
==
|
||||
:: XX temporarily shadowed, fix and remove
|
||||
::
|
||||
+$ pill
|
||||
$: boot-ova=*
|
||||
kernel-ova=(list unix-event)
|
||||
userspace-ova=(list unix-event)
|
||||
==
|
||||
::
|
||||
+$ fleet [ships=(map ship pier) azi=az-state]
|
||||
+$ pier
|
||||
@ -55,7 +53,7 @@
|
||||
==
|
||||
--
|
||||
::
|
||||
=| state-1
|
||||
=| state-0
|
||||
=* state -
|
||||
=<
|
||||
%- agent:dbug
|
||||
@ -79,13 +77,6 @@
|
||||
:: wipe fleets and piers rather than give them falsely nulled azimuth state
|
||||
::
|
||||
%0
|
||||
%_ $
|
||||
-.old %1
|
||||
fleet-snaps.old *(map term fleet)
|
||||
piers.old *fleet
|
||||
==
|
||||
::
|
||||
%1
|
||||
[cards this(state old)]
|
||||
==
|
||||
::
|
||||
|
@ -370,7 +370,7 @@
|
||||
=/ nack-count=@ud (slav %ud i.t.wire)
|
||||
=/ who=@p (slav %p i.t.t.wire)
|
||||
=/ pax t.t.t.wire
|
||||
?> ?=([%b %wake *] sign-arvo)
|
||||
?> ?=([%behns %wake *] sign-arvo)
|
||||
~? ?=(^ error.sign-arvo)
|
||||
"behn errored in backoff timers, continuing anyway"
|
||||
:_ this
|
||||
|
@ -195,7 +195,7 @@
|
||||
=/ nack-count=@ud (slav %ud i.t.wire)
|
||||
=/ who=@p (slav %p i.t.t.wire)
|
||||
=/ pax t.t.t.wire
|
||||
?> ?=([%b %wake *] sign-arvo)
|
||||
?> ?=([%behn %wake *] sign-arvo)
|
||||
~? ?=(^ error.sign-arvo)
|
||||
"behn errored in backoff timers, continuing anyway"
|
||||
:_ this
|
||||
|
@ -66,7 +66,7 @@
|
||||
++ on-arvo
|
||||
|= [=wire =sign-arvo]
|
||||
^- (quip card _this)
|
||||
?. ?=([%e %bound *] sign-arvo)
|
||||
?. ?=([%eyre %bound *] sign-arvo)
|
||||
(on-arvo:def wire sign-arvo)
|
||||
~? !accepted.sign-arvo
|
||||
[dap.bowl "bind rejected!" binding.sign-arvo]
|
||||
|
@ -946,7 +946,7 @@
|
||||
[%try-rejoin @ *]
|
||||
=/ rid=resource:store (de-path:res t.t.wire)
|
||||
=/ nack-count (slav %ud i.t.wire)
|
||||
?> ?=([%b %wake *] sign-arvo)
|
||||
?> ?=([%behn %wake *] sign-arvo)
|
||||
~? ?=(^ error.sign-arvo)
|
||||
"behn errored in backoff timers, continuing anyway"
|
||||
=/ new=^wire [%try-rejoin (scot %ud +(nack-count)) t.t.wire]
|
||||
|
@ -244,7 +244,7 @@
|
||||
(on-arvo:def wire sign-arvo)
|
||||
=/ =resource (de-path:resource t.t.wire)
|
||||
=/ nack-count=@ud (slav %ud i.t.wire)
|
||||
?> ?=([%b %wake *] sign-arvo)
|
||||
?> ?=([%behn %wake *] sign-arvo)
|
||||
~? ?=(^ error.sign-arvo)
|
||||
"behn errored in backoff timers, continuing anyway"
|
||||
:_ this
|
||||
|
@ -258,7 +258,7 @@
|
||||
^- (quip card _this)
|
||||
?. ?=([%autoseen ~] wire)
|
||||
(on-arvo:def wire sign-arvo)
|
||||
?> ?=([%b %wake *] sign-arvo)
|
||||
?> ?=([%behn %wake *] sign-arvo)
|
||||
:_ this(last-seen now.bowl)
|
||||
~[autoseen-timer:ha]
|
||||
::
|
||||
|
@ -65,7 +65,7 @@
|
||||
:: pass on dill blits for the session
|
||||
::
|
||||
[%view %$ ~]
|
||||
?. ?=([%d %blit *] sign-arvo)
|
||||
?. ?=([%dill %blit *] sign-arvo)
|
||||
~| [%unexpected-sign [- +<]:sign-arvo]
|
||||
!!
|
||||
:_ this
|
||||
@ -78,7 +78,7 @@
|
||||
[%tube @ @ ~]
|
||||
=* from i.t.wire
|
||||
=* to i.t.t.wire
|
||||
?. ?=([%c %writ *] sign-arvo)
|
||||
?. ?=([%clay %writ *] sign-arvo)
|
||||
~| [%unexpected-sign [- +<]:sign-arvo]
|
||||
!!
|
||||
:_ this
|
||||
|
@ -100,8 +100,8 @@
|
||||
^- (quip card _this)
|
||||
=^ cards state
|
||||
?+ sign-arvo (on-arvo:def wire sign-arvo)
|
||||
[%e %bound *] `state
|
||||
[%c *] (handle-build:lsp wire +.sign-arvo)
|
||||
[%eyre %bound *] `state
|
||||
[%clay *] (handle-build:lsp wire +.sign-arvo)
|
||||
==
|
||||
[cards this]
|
||||
::
|
||||
|
@ -67,7 +67,7 @@
|
||||
=/ nack-count=@ud (slav %ud i.t.wire)
|
||||
=/ who=@p (slav %p i.t.t.wire)
|
||||
=/ pax t.t.t.wire
|
||||
?> ?=([%b %wake *] sign-arvo)
|
||||
?> ?=([%behn %wake *] sign-arvo)
|
||||
~? ?=(^ error.sign-arvo)
|
||||
"behn errored in backoff timers, continuing anyway"
|
||||
:_ this
|
||||
|
@ -362,7 +362,7 @@
|
||||
=. starting.state
|
||||
(~(jab by starting.state) yarn |=([=trying =vase] [%none vase]))
|
||||
~| sign+[- +<]:sign-arvo
|
||||
?> ?=([?(%b %c) %writ *] sign-arvo)
|
||||
?> ?=([?(%behn %clay) %writ *] sign-arvo)
|
||||
=/ =riot:clay p.sign-arvo
|
||||
?~ riot
|
||||
(thread-fail-not-running tid %build-thread-error *tang)
|
||||
|
@ -173,7 +173,7 @@
|
||||
|= tin=strand-input:strand
|
||||
?+ in.tin `[%skip ~]
|
||||
~ `[%wait ~]
|
||||
[~ %sign [%wait @ ~] %b %wake *]
|
||||
[~ %sign [%wait @ ~] %behn %wake *]
|
||||
?. |(?=(~ until) =(`u.until (slaw %da i.t.wire.u.in.tin)))
|
||||
`[%skip ~]
|
||||
?~ error.sign-arvo.u.in.tin
|
||||
@ -340,7 +340,7 @@
|
||||
;< ~ bind:m (send-raw-card card)
|
||||
|= tin=strand-input:strand
|
||||
=* loop $
|
||||
?: ?& ?=([~ %sign [%timeout @ ~] %b %wake *] in.tin)
|
||||
?: ?& ?=([~ %sign [%timeout @ ~] %behn %wake *] in.tin)
|
||||
=((scot %da when) i.t.wire.u.in.tin)
|
||||
==
|
||||
`[%fail %timeout ~]
|
||||
@ -370,7 +370,7 @@
|
||||
|= tin=strand-input:strand
|
||||
?+ in.tin `[%skip ~]
|
||||
~ `[%wait ~]
|
||||
[~ %sign [%request ~] %i %http-response %finished *]
|
||||
[~ %sign [%request ~] %iris %http-response %finished *]
|
||||
`[%done client-response.sign-arvo.u.in.tin]
|
||||
==
|
||||
::
|
||||
@ -395,9 +395,9 @@
|
||||
|= tin=strand-input:strand
|
||||
?+ in.tin `[%skip ~]
|
||||
~ `[%wait ~]
|
||||
[~ %sign [%request ~] %i %http-response %cancel *]
|
||||
[~ %sign [%request ~] %iris %http-response %cancel *]
|
||||
`[%done ~]
|
||||
[~ %sign [%request ~] %i %http-response %finished *]
|
||||
[~ %sign [%request ~] %iris %http-response %finished *]
|
||||
`[%done `client-response.sign-arvo.u.in.tin]
|
||||
==
|
||||
::
|
||||
@ -516,7 +516,7 @@
|
||||
|= tin=strand-input:strand
|
||||
?+ in.tin `[%skip ~]
|
||||
~ `[%wait ~]
|
||||
[~ %sign * ?(%b %c) %writ *]
|
||||
[~ %sign * ?(%behn %clay) %writ *]
|
||||
?. =(wire wire.u.in.tin)
|
||||
`[%skip ~]
|
||||
`[%done +>.sign-arvo.u.in.tin]
|
||||
|
@ -99,7 +99,9 @@
|
||||
:: $roof: namespace
|
||||
:: $rook: meta-namespace (super advanced)
|
||||
:: +room: generic namespace
|
||||
:: +roon: partial namespace
|
||||
:: $root: raw namespace
|
||||
:: $view: namespace perspective
|
||||
:: +wind: kernel action builder
|
||||
:: $wire: event pretext
|
||||
:: +wite: kernel action/error builder
|
||||
@ -125,13 +127,18 @@
|
||||
|$ [a]
|
||||
$~ =>(~ |~(* ~))
|
||||
$- $: lyc=gang :: leakset
|
||||
cyr=term :: perspective
|
||||
vis=view :: perspective
|
||||
bem=beam :: path
|
||||
== ::
|
||||
%- unit :: ~: unknown
|
||||
%- unit :: ~ ~: invalid
|
||||
(cask a)
|
||||
+$ roon :: partial namespace
|
||||
$~ =>(~ |~(* ~))
|
||||
$- [lyc=gang car=term bem=beam]
|
||||
(unit (unit cage))
|
||||
+$ root $-(^ (unit (unit)))
|
||||
+$ view $@(term [way=term car=term])
|
||||
::
|
||||
++ wind
|
||||
|$ :: a: forward
|
||||
@ -314,6 +321,27 @@
|
||||
?. ?=([%$ case] u.ved) ~
|
||||
`(unit beam)`[~ [`ship`u.who `desk`u.des `case`p.u.ved] t.t.t.p]
|
||||
::
|
||||
++ en-omen
|
||||
|= [vis=view bem=beam]
|
||||
^- path
|
||||
:_ (en-beam bem)
|
||||
?@ vis vis
|
||||
~(rent co [%many $/tas/way.vis $/tas/car.vis ~])
|
||||
::
|
||||
++ de-omen
|
||||
|= pax=path
|
||||
^- (unit [vis=view bem=beam])
|
||||
?~ pax ~
|
||||
?~ bem=(de-beam t.pax) ~
|
||||
?: ((sane %tas) i.pax)
|
||||
`[i.pax u.bem]
|
||||
=/ lot=(unit coin) (rush i.pax ;~(pfix dot perd:so))
|
||||
?. ?& ?=(^ lot)
|
||||
?=([%many [%$ %tas @] [%$ %tas @] ~] u.lot)
|
||||
==
|
||||
~
|
||||
`[[q.p.i q.p.i.t]:p.u.lot u.bem]
|
||||
::
|
||||
++ look
|
||||
~/ %look
|
||||
|= [rof=roof lyc=gang]
|
||||
@ -321,11 +349,8 @@
|
||||
~/ %in
|
||||
|= [ref=* raw=*]
|
||||
?~ pax=((soft path) raw) ~
|
||||
?~ u.pax ~
|
||||
=* cyr i.u.pax
|
||||
?~ bem=(de-beam t.u.pax) ~
|
||||
?. ((sane %tas) cyr) ~
|
||||
?~ dat=(rof lyc cyr u.bem) ~
|
||||
?~ mon=(de-omen u.pax) ~
|
||||
?~ dat=(rof lyc u.mon) ~
|
||||
?~ u.dat [~ ~]
|
||||
=* vax q.u.u.dat
|
||||
?. ?& ?=(^ ref)
|
||||
@ -983,9 +1008,9 @@
|
||||
++ smit
|
||||
|= [cap=tape sub=vase pax=path txt=@t]
|
||||
^- vase
|
||||
~> %slog.[0 leaf+"{cap}: {(scow p+(mug txt))}"]
|
||||
~> %slog.[0 leaf/"{cap}: {(scow p+(mug txt))}"]
|
||||
%- road |.
|
||||
~_ leaf/cap
|
||||
~_ leaf/"{cap}: build failed"
|
||||
(slap sub (rain pax txt))
|
||||
::
|
||||
++ create
|
||||
@ -1022,7 +1047,7 @@
|
||||
::
|
||||
++ peek
|
||||
^- rook
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
|= [lyc=gang vis=view bem=beam]
|
||||
^- (unit (unit (cask meta)))
|
||||
:: namespace reads receive no entropy
|
||||
::
|
||||
@ -1034,7 +1059,7 @@
|
||||
~> %mean.'peek: pull failed'
|
||||
(~(slap wa sac) rig [%limb %scry])
|
||||
::
|
||||
=/ mas=[gang term beam] [lyc cyr bem]
|
||||
=/ mas=[gang view beam] [lyc vis bem]
|
||||
::
|
||||
=^ pro sac
|
||||
~> %mean.'peek: call failed'
|
||||
@ -1227,7 +1252,7 @@
|
||||
::
|
||||
~? !lac.fad
|
||||
:- (runt [(lent bars.gem) '|'] "")
|
||||
[%slip vane.gem (symp +>-.task) duct]
|
||||
[%slip [vane.gem vane] (symp +>-.task) duct]
|
||||
::
|
||||
(call duct vane task)
|
||||
::
|
||||
@ -1275,56 +1300,63 @@
|
||||
==
|
||||
::
|
||||
=/ von
|
||||
%+ turn
|
||||
(sort ~(tap by van.mod) |=([[a=@tas *] [b=@tas *]] (aor a b)))
|
||||
|=([lal=@tas =vane] (cat 3 %vane- lal)^vane)
|
||||
(sort ~(tap by van.mod) |=([[a=@tas *] [b=@tas *]] (aor a b)))
|
||||
::
|
||||
:~ :+ %reports %|
|
||||
%+ turn von
|
||||
=/ bem=beam [[our %home da+now] /whey]
|
||||
|= [lal=@tas =vane]
|
||||
=/ met (peek ~ (rsh [3 5] lal) bem)
|
||||
%+ turn von
|
||||
|= [nam=term =vane]
|
||||
=/ met (peek [~ ~] nam bem)
|
||||
~| mass/nam
|
||||
?> &(?=(^ met) ?=(^ u.met)) :: XX make optional
|
||||
lal^|+;;((list mass) q.q.u.u.met)
|
||||
nam^|+;;((list mass) q.q.u.u.met)
|
||||
::
|
||||
:+ %caches %|
|
||||
%+ turn von
|
||||
|=([lal=@tas =vane] lal^&+worm.vane)
|
||||
|=([nam=term =vane] nam^&+worm.vane)
|
||||
::
|
||||
:+ %dregs %|
|
||||
%+ turn von
|
||||
|=([lal=@tas =vane] lal^&+vase.vane)
|
||||
|=([nam=term =vane] nam^&+vase.vane)
|
||||
==
|
||||
:: +peek: read from the entire namespace
|
||||
::
|
||||
++ peek
|
||||
^- rook
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
|= [lyc=gang vis=view bem=beam]
|
||||
^- (unit (unit (cask meta)))
|
||||
:: vane and care may be concatenated
|
||||
::
|
||||
?: ?=(%$ cyr)
|
||||
(peek:pith lyc %$ bem)
|
||||
=/ [way=term car=term]
|
||||
?^ vis vis
|
||||
?. =(2 (met 3 vis))
|
||||
[vis %$]
|
||||
[(end 3 vis) (rsh 3 vis)]
|
||||
::
|
||||
:: vane and care are concatenated
|
||||
?: ?=(%$ way)
|
||||
(peek:pith lyc car bem)
|
||||
::
|
||||
=/ way=term (grow (end 3 cyr))
|
||||
=/ car=term (rsh 3 cyr)
|
||||
?. (~(has by van.mod) way)
|
||||
=. way (grow way)
|
||||
?~ van=(~(get by van.mod) way)
|
||||
~
|
||||
(peek:(plow way) lyc car bem)
|
||||
%. [lyc car bem]
|
||||
peek:spin:(~(plow va [vil u.van]) now peek)
|
||||
:: +call: advance to target
|
||||
::
|
||||
++ call
|
||||
|= [=duct way=term task=maze]
|
||||
^+ this
|
||||
?: ?=(%$ way)
|
||||
~> %mean.'arvo: call:pith failed'
|
||||
%- call:pith
|
||||
~> %mean.'call: bad waif'
|
||||
(call:pith ;;(waif:pith q.p.task))
|
||||
;;(waif q.p.task)
|
||||
::
|
||||
=. way (grow way)
|
||||
%+ push [way duct bars.gem]
|
||||
~| bar-stack=`(list ^duct)`[duct bars.gem]
|
||||
%. task
|
||||
call:(spin:(plow (grow way)) duct eny dud)
|
||||
call:(spin:(plow way) duct eny dud)
|
||||
:: +take: retreat along call-stack
|
||||
::
|
||||
++ take
|
||||
@ -1336,9 +1368,9 @@
|
||||
::
|
||||
?> ?=(~ duct)
|
||||
(xeno:pith wire ;;(card q.p.gift))
|
||||
::
|
||||
:: the caller was a vane
|
||||
::
|
||||
=. way (grow way)
|
||||
%+ push [way duct bars.gem]
|
||||
::
|
||||
:: cons source onto .gift to make a $sign
|
||||
@ -1346,7 +1378,7 @@
|
||||
~| wire=wire
|
||||
~| bar-stack=`(list ^duct)`[duct bars.gem]
|
||||
%. [wire [vane.gem gift]]
|
||||
take:(spin:(plow (grow way)) duct eny dud)
|
||||
take:(spin:(plow way) duct eny dud)
|
||||
:: +push: finalize an individual step
|
||||
::
|
||||
++ push
|
||||
@ -1354,7 +1386,7 @@
|
||||
^+ this
|
||||
=^ moz sac
|
||||
(~(refine-moves me sac vil) zom)
|
||||
=. van.mod (~(put by van.mod) (grow vane.gum) [vax sac])
|
||||
=. van.mod (~(put by van.mod) vane.gum [vax sac])
|
||||
(emit `plan`[`germ`gum `(list move)`moz])
|
||||
:: +plow: operate on a vane, in time and space
|
||||
::
|
||||
@ -1465,7 +1497,7 @@
|
||||
==
|
||||
::
|
||||
++ peek
|
||||
^- roof
|
||||
^- roon
|
||||
|= [lyc=gang car=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
?. ?| =(our p.bem)
|
||||
@ -1702,28 +1734,24 @@
|
||||
|= $: lyc=gang
|
||||
$= nom
|
||||
%+ each path
|
||||
$% [%once cyr=term syd=desk tyl=spur]
|
||||
[%beam cyr=term bem=beam]
|
||||
$% [%once vis=view syd=desk tyl=spur]
|
||||
[%beam vis=view bem=beam]
|
||||
==
|
||||
==
|
||||
^- (unit (cask))
|
||||
=/ hap=(unit [pat=? cyr=term bem=beam])
|
||||
=/ hap=(unit [pat=? vis=view bem=beam])
|
||||
?- nom
|
||||
[%& *] ?~ p.nom ~
|
||||
?~ bem=(de-beam t.p.nom) ~
|
||||
`[| i.p.nom u.bem]
|
||||
::
|
||||
[%| %beam *] `[| cyr bem]:p.nom
|
||||
::
|
||||
[%| %once *] `[& cyr.p.nom [our syd.p.nom da/now] tyl.p.nom]
|
||||
[%& *] ?~(mon=(de-omen p.nom) ~ `[| u.mon])
|
||||
[%| %beam *] `[| vis bem]:p.nom
|
||||
[%| %once *] `[& vis.p.nom [our syd.p.nom da/now] tyl.p.nom]
|
||||
==
|
||||
::
|
||||
?~ hap ~
|
||||
=/ pro (~(peek le:part [pit vil] sol) lyc [cyr bem]:u.hap)
|
||||
=/ pro (~(peek le:part [pit vil] sol) lyc [vis bem]:u.hap)
|
||||
?: |(?=(~ pro) ?=(~ u.pro)) ~
|
||||
=/ dat=(cask) [p q.q]:u.u.pro
|
||||
?. pat.u.hap `dat
|
||||
`[%omen [cyr.u.hap (en-beam bem.u.hap)] dat]
|
||||
`[%omen (en-omen [vis bem]:u.hap) dat]
|
||||
::
|
||||
:: +poke: external apply
|
||||
::
|
||||
@ -1789,9 +1817,9 @@
|
||||
++ smit
|
||||
|= [cap=tape sub=(trap vase) pax=path txt=@t]
|
||||
^- (trap vase)
|
||||
~> %slog.[0 leaf+"{cap}: {(scow p+(mug txt))}"]
|
||||
~> %slog.[0 leaf/"{cap}: {(scow p+(mug txt))}"]
|
||||
%- road |.
|
||||
~_ leaf/cap
|
||||
~_ leaf/"{cap}: build failed"
|
||||
(swat sub (rain pax txt))
|
||||
--
|
||||
::
|
||||
|
@ -633,11 +633,11 @@
|
||||
:: $sign: response from other vane
|
||||
::
|
||||
+$ sign
|
||||
$~ [%b %wake ~]
|
||||
$% $: %b
|
||||
$% [%wake error=(unit tang)]
|
||||
$~ [%behn %wake ~]
|
||||
$% $: %behn
|
||||
$% $>(%wake gift:behn)
|
||||
== ==
|
||||
$: %j
|
||||
$: %jael
|
||||
$% [%private-keys =life vein=(map life ring)]
|
||||
[%public-keys =public-keys-result]
|
||||
[%turf turfs=(list turf)]
|
||||
@ -737,14 +737,10 @@
|
||||
::
|
||||
=/ =task ((harden task) wrapped-task)
|
||||
::
|
||||
:: error notifications "downcast" to %crud or %hole
|
||||
:: reject larval error notifications
|
||||
::
|
||||
=? task ?=(^ dud)
|
||||
?- -.task
|
||||
%crud ~|(%crud-in-crud !!)
|
||||
%hear [%hole [lane blob]:task]
|
||||
* [%crud -.task tang.u.dud]
|
||||
==
|
||||
?^ dud
|
||||
~|(%ames-larval-call-dud (mean tang.u.dud))
|
||||
::
|
||||
:: %born: set .unix-duct and start draining .queued-events
|
||||
::
|
||||
@ -782,7 +778,7 @@
|
||||
[~ larval-gate]
|
||||
:: larval event drainage timer; pop and process a queued event
|
||||
::
|
||||
?. ?=([%b %wake *] sign)
|
||||
?. ?=([%behn %wake *] sign)
|
||||
~> %slog.0^leaf/"ames: larva: strange sign"
|
||||
[~ larval-gate]
|
||||
:: if crashed, print, dequeue, and set next drainage timer
|
||||
@ -867,26 +863,22 @@
|
||||
^- [(list move) _ames-gate]
|
||||
::
|
||||
=/ =task ((harden task) wrapped-task)
|
||||
::
|
||||
:: error notifications "downcast" to %crud or %hole
|
||||
::
|
||||
=? task ?=(^ dud)
|
||||
?- -.task
|
||||
%crud ~|(%crud-in-crud !!)
|
||||
%hear [%hole [lane blob]:task]
|
||||
* [%crud -.task tang.u.dud]
|
||||
==
|
||||
::
|
||||
=/ event-core (per-event [now eny rof] duct ames-state)
|
||||
::
|
||||
=^ moves ames-state
|
||||
=< abet
|
||||
:: handle error notifications
|
||||
::
|
||||
?^ dud
|
||||
?+ -.task
|
||||
(on-crud:event-core -.task tang.u.dud)
|
||||
%hear (on-hole:event-core [lane blob]:task)
|
||||
==
|
||||
::
|
||||
?- -.task
|
||||
%born on-born:event-core
|
||||
%crud (on-crud:event-core [p q]:task)
|
||||
%hear (on-hear:event-core [lane blob]:task)
|
||||
%heed (on-heed:event-core ship.task)
|
||||
%hole (on-hole:event-core [lane blob]:task)
|
||||
%init on-init:event-core
|
||||
%jilt (on-jilt:event-core ship.task)
|
||||
%sift (on-sift:event-core ships.task)
|
||||
@ -915,11 +907,11 @@
|
||||
[@ %done *] (on-take-done:event-core wire error.sign)
|
||||
[@ %boon *] (on-take-boon:event-core wire payload.sign)
|
||||
::
|
||||
[%b %wake *] (on-take-wake:event-core wire error.sign)
|
||||
[%behn %wake *] (on-take-wake:event-core wire error.sign)
|
||||
::
|
||||
[%j %turf *] (on-take-turf:event-core turfs.sign)
|
||||
[%j %private-keys *] (on-priv:event-core [life vein]:sign)
|
||||
[%j %public-keys *] (on-publ:event-core wire public-keys-result.sign)
|
||||
[%jael %turf *] (on-take-turf:event-core turfs.sign)
|
||||
[%jael %private-keys *] (on-priv:event-core [life vein]:sign)
|
||||
[%jael %public-keys *] (on-publ:event-core wire public-keys-result.sign)
|
||||
==
|
||||
::
|
||||
[moves ames-gate]
|
||||
@ -935,9 +927,10 @@
|
||||
:: +scry: dereference namespace
|
||||
::
|
||||
++ scry
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
^- roon
|
||||
|= [lyc=gang car=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
=* ren cyr
|
||||
=* ren car
|
||||
=* why=shop &/p.bem
|
||||
=* syd q.bem
|
||||
=* lot=coin $/r.bem
|
||||
|
@ -15,8 +15,8 @@
|
||||
$>(%flog task:dill) :: log output
|
||||
== == ::
|
||||
+$ sign
|
||||
$~ [%b %wake ~]
|
||||
$% [%b $>(%wake gift)]
|
||||
$~ [%behn %wake ~]
|
||||
$% [%behn $>(%wake gift)]
|
||||
==
|
||||
::
|
||||
+$ behn-state
|
||||
@ -269,20 +269,17 @@
|
||||
^- [(list move) _behn-gate]
|
||||
::
|
||||
=/ =task ((harden task) wrapped-task)
|
||||
::
|
||||
:: error notifications "downcast" to %crud
|
||||
::
|
||||
=? task ?=(^ dud)
|
||||
~| %crud-in-crud
|
||||
?< ?=(%crud -.task)
|
||||
[%crud -.task tang.u.dud]
|
||||
::
|
||||
=/ event-core (per-event [now hen] state)
|
||||
::
|
||||
=^ moves state
|
||||
::
|
||||
:: handle error notifications
|
||||
::
|
||||
?^ dud
|
||||
(crud:event-core -.task tang.u.dud)
|
||||
::
|
||||
?- -.task
|
||||
%born born:event-core
|
||||
%crud (crud:event-core [p q]:task)
|
||||
%rest (rest:event-core date=p.task)
|
||||
%drip (drip:event-core move=p.task)
|
||||
%huck (huck:event-core syn.task)
|
||||
@ -304,9 +301,10 @@
|
||||
:: which might or might not show up in the product
|
||||
::
|
||||
++ scry
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
^- roon
|
||||
|= [lyc=gang car=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
=* ren cyr
|
||||
=* ren car
|
||||
=* why=shop &/p.bem
|
||||
=* syd q.bem
|
||||
=* lot=coin $/r.bem
|
||||
|
@ -282,21 +282,21 @@
|
||||
$: rus=(map desk rede) :: neighbor desks
|
||||
==
|
||||
::
|
||||
+$ move [p=duct q=(wind note gift)] :: local move
|
||||
+$ move [p=duct q=(wind note gift)] :: local move
|
||||
+$ note :: out request $->
|
||||
$~ [%b %wait *@da] ::
|
||||
$% $: %$ :: to arvo
|
||||
$>(%what waif) ::
|
||||
== ::
|
||||
$: %a :: to %ames
|
||||
$>(%plea task:ames) ::
|
||||
$>(%plea task:ames) ::
|
||||
== ::
|
||||
$: %b :: to %behn
|
||||
$> $? %drip ::
|
||||
%rest ::
|
||||
%wait ::
|
||||
== ::
|
||||
task:behn ::
|
||||
task:behn ::
|
||||
== ::
|
||||
$: %c :: to %clay
|
||||
$> $? %info :: internal edit
|
||||
@ -305,43 +305,40 @@
|
||||
%warp ::
|
||||
%werp ::
|
||||
== ::
|
||||
task ::
|
||||
task ::
|
||||
== ::
|
||||
$: %d :: to %dill
|
||||
$>(%flog task:dill) ::
|
||||
$>(%flog task:dill) ::
|
||||
== ::
|
||||
$: %g :: to %gall
|
||||
$>(%deal task:gall) ::
|
||||
$>(%deal task:gall) ::
|
||||
== ::
|
||||
$: %j :: by %jael
|
||||
$>(%public-keys task:jael) ::
|
||||
$>(%public-keys task:jael) ::
|
||||
== == ::
|
||||
+$ riot (unit rant) :: response+complete
|
||||
+$ sign :: in result $<-
|
||||
$~ [%b %wake ~] ::
|
||||
$% $: %a :: by %ames
|
||||
$~ [%behn %wake ~] ::
|
||||
$% $: %ames ::
|
||||
$> $? %boon :: response
|
||||
%done :: (n)ack
|
||||
%lost :: lost boon
|
||||
== ::
|
||||
gift:ames ::
|
||||
gift:ames ::
|
||||
== ::
|
||||
$: %b :: by %behn
|
||||
$% $>(%wake gift:behn) :: timer activate
|
||||
$>(%writ gift) :: XX %slip
|
||||
$: %behn ::
|
||||
$% $>(%wake gift:behn) :: timer activate
|
||||
$>(%writ gift) :: XX %slip
|
||||
== == ::
|
||||
$: %c :: by %clay
|
||||
$: %clay ::
|
||||
$> $? %mere ::
|
||||
%note ::
|
||||
%writ ::
|
||||
== ::
|
||||
gift ::
|
||||
gift ::
|
||||
== ::
|
||||
$: %j :: by %jael
|
||||
$>(%public-keys gift:jael) ::
|
||||
== ::
|
||||
$: @tas :: by any
|
||||
$>(%crud vane-task) :: XX strange
|
||||
$: %jael ::
|
||||
$>(%public-keys gift:jael) ::
|
||||
== == ::
|
||||
-- =>
|
||||
~% %clay-utilities ..part ~
|
||||
@ -3888,12 +3885,10 @@
|
||||
::
|
||||
=/ req=task ((harden task) wrapped-task)
|
||||
::
|
||||
:: error notifications "downcast" to %crud
|
||||
:: XX handle error notifications
|
||||
::
|
||||
=? req ?=(^ dud)
|
||||
~| %crud-in-crud
|
||||
?< ?=(%crud -.req)
|
||||
[%crud -.req tang.u.dud]
|
||||
?^ dud
|
||||
[[[hen %slip %d %flog %crud [-.req tang.u.dud]] ~] ..^$]
|
||||
::
|
||||
?- -.req
|
||||
%boat
|
||||
@ -3938,9 +3933,6 @@
|
||||
|= [p=path r=rule]
|
||||
(~(has in who.r) |+nom.req)
|
||||
--
|
||||
::
|
||||
%crud
|
||||
[[[hen %slip %d %flog req] ~] ..^$]
|
||||
::
|
||||
%drop
|
||||
~& %clay-idle
|
||||
@ -4125,9 +4117,10 @@
|
||||
..^$(ruf +.old)
|
||||
::
|
||||
++ scry :: inspect
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
^- roon
|
||||
|= [lyc=gang car=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
=* ren cyr
|
||||
=* ren car
|
||||
=/ why=shop &/p.bem
|
||||
=* syd q.bem
|
||||
=/ lot=coin $/r.bem
|
||||
@ -4296,8 +4289,6 @@
|
||||
::
|
||||
?- -.+.hin
|
||||
%public-keys ~|([%public-keys-raw tea] !!)
|
||||
%crud
|
||||
[[[hen %slip %d %flog +.hin] ~] ..^$]
|
||||
::
|
||||
%mere
|
||||
?: ?=(%& -.p.+.hin)
|
||||
|
@ -30,7 +30,7 @@
|
||||
+$ mess ::
|
||||
$% [%dill-belt p=(hypo dill-belt)] ::
|
||||
== ::
|
||||
+$ move [p=duct q=(wind note gift)] :: local move
|
||||
+$ move [p=duct q=(wind note gift)] :: local move
|
||||
+$ note :: out request $->
|
||||
$~ [%d %verb ~] ::
|
||||
$% $: %$ ::
|
||||
@ -41,7 +41,7 @@
|
||||
%perm :: change permissions
|
||||
%warp :: wait for clay hack
|
||||
== ::
|
||||
task:clay ::
|
||||
task:clay ::
|
||||
== ::
|
||||
$: %d ::
|
||||
$> $? %crud ::
|
||||
@ -49,42 +49,42 @@
|
||||
%text ::
|
||||
%verb ::
|
||||
== ::
|
||||
task:dill ::
|
||||
task:dill ::
|
||||
== ::
|
||||
$: %g ::
|
||||
$> $? %conf ::
|
||||
%deal ::
|
||||
%goad ::
|
||||
== ::
|
||||
task:gall ::
|
||||
task:gall ::
|
||||
== ::
|
||||
$: %j ::
|
||||
$> $? %dawn ::
|
||||
%fake ::
|
||||
== ::
|
||||
task:jael ::
|
||||
task:jael ::
|
||||
== == ::
|
||||
+$ sign :: in result $<-
|
||||
$~ [%d %blit ~] ::
|
||||
$% $: %b ::
|
||||
$% $>(%writ gift:clay) :: XX %slip
|
||||
$>(%mere gift:clay) :: XX %slip
|
||||
$~ [%dill %blit ~] ::
|
||||
$% $: %behn ::
|
||||
$% $>(%writ gift:clay) :: XX %slip
|
||||
$>(%mere gift:clay) :: XX %slip
|
||||
== == ::
|
||||
$: %c ::
|
||||
$: %clay ::
|
||||
$> $? %mere ::
|
||||
%note ::
|
||||
%writ ::
|
||||
== ::
|
||||
gift:clay ::
|
||||
gift:clay ::
|
||||
== ::
|
||||
$: %d ::
|
||||
$>(%blit gift:dill) ::
|
||||
$: %dill ::
|
||||
$>(%blit gift:dill) ::
|
||||
== ::
|
||||
$: %g ::
|
||||
$: %gall ::
|
||||
$> $? %onto ::
|
||||
%unto ::
|
||||
== ::
|
||||
gift:gall ::
|
||||
gift:gall ::
|
||||
== == ::
|
||||
:::::::: :: dill tiles
|
||||
--
|
||||
@ -255,14 +255,14 @@
|
||||
|= [tea=wire sih=sign]
|
||||
^+ +>
|
||||
?- sih
|
||||
[%g %onto *]
|
||||
[%gall %onto *]
|
||||
:: ~& [%take-gall-onto +>.sih]
|
||||
?- -.+>.sih
|
||||
%| (crud %onto p.p.+>.sih)
|
||||
%& (done %blit [%lin (tuba "{<p.p.sih>}")]~)
|
||||
==
|
||||
::
|
||||
[%g %unto *]
|
||||
[%gall %unto *]
|
||||
:: ~& [%take-gall-unto +>.sih]
|
||||
?- -.+>.sih
|
||||
%poke-ack ?~(p.p.+>.sih +>.$ (crud %coup u.p.p.+>.sih))
|
||||
@ -273,18 +273,18 @@
|
||||
%fact (from ;;(dill-blit q:`vase`+>+>.sih))
|
||||
==
|
||||
::
|
||||
[%c %note *]
|
||||
[%clay %note *]
|
||||
(from %out (tuba p.sih ' ' ~(ram re q.sih)))
|
||||
::
|
||||
[?(%b %c) %writ *]
|
||||
[?(%behn %clay) %writ *]
|
||||
init
|
||||
::
|
||||
[?(%b %c) %mere *]
|
||||
[?(%behn %clay) %mere *]
|
||||
?: ?=(%& -.p.sih)
|
||||
mere
|
||||
(mean >%dill-mere-fail< >p.p.p.sih< q.p.p.sih)
|
||||
::
|
||||
[%d %blit *]
|
||||
[%dill %blit *]
|
||||
(done +.sih)
|
||||
==
|
||||
--
|
||||
@ -399,9 +399,10 @@
|
||||
..^$(all old)
|
||||
::
|
||||
++ scry
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
^- roon
|
||||
|= [lyc=gang car=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
=* ren cyr
|
||||
=* ren car
|
||||
=* why=shop &/p.bem
|
||||
=* syd q.bem
|
||||
=* lot=coin $/r.bem
|
||||
|
@ -47,18 +47,10 @@
|
||||
:: +sign: private response from another vane to eyre
|
||||
::
|
||||
+$ sign
|
||||
$% :: %b: from behn
|
||||
::
|
||||
$: %b
|
||||
::
|
||||
::
|
||||
$% $: %behn
|
||||
$% [%wake error=(unit tang)]
|
||||
== ==
|
||||
:: %g: from gall
|
||||
::
|
||||
$: %g
|
||||
::
|
||||
::
|
||||
$: %gall
|
||||
gift:gall
|
||||
:: $>(%unto gift:gall)
|
||||
== ==
|
||||
@ -2107,18 +2099,11 @@
|
||||
::
|
||||
=/ task=task ((harden task) wrapped-task)
|
||||
::
|
||||
:: error notifications "downcast" to %crud
|
||||
:: XX handle error notifications
|
||||
::
|
||||
=? task ?=(^ dud)
|
||||
~| %crud-in-crud
|
||||
?< ?=(%crud -.task)
|
||||
[%crud -.task tang.u.dud]
|
||||
::
|
||||
:: %crud: notifies us of an event failure
|
||||
::
|
||||
?: ?=(%crud -.task)
|
||||
?^ dud
|
||||
=/ moves=(list move)
|
||||
[[duct %slip %d %flog task] ~]
|
||||
[[duct %slip %d %flog %crud [-.task tang.u.dud]] ~]
|
||||
[moves http-server-gate]
|
||||
:: %init: tells us what our ship name is
|
||||
::
|
||||
@ -2317,7 +2302,7 @@
|
||||
~|(%eyre-take-dud (mean tang.u.dud))
|
||||
=> %= .
|
||||
sign
|
||||
?: ?=(%g -.sign)
|
||||
?: ?=(%gall -.sign)
|
||||
?> ?=(%unto +<.sign)
|
||||
sign
|
||||
sign
|
||||
@ -2340,7 +2325,7 @@
|
||||
::
|
||||
++ run-app-request
|
||||
::
|
||||
?> ?=([%g %unto *] sign)
|
||||
?> ?=([%gall %unto *] sign)
|
||||
::
|
||||
::
|
||||
?> ?=([%poke-ack *] p.sign)
|
||||
@ -2363,7 +2348,7 @@
|
||||
=/ event-args [[eny duct now rof] server-state.ax]
|
||||
::
|
||||
?> ?=([@ *] t.wire)
|
||||
?: ?=([%g %unto %watch-ack *] sign)
|
||||
?: ?=([%gall %unto %watch-ack *] sign)
|
||||
?~ p.p.sign
|
||||
:: received a positive acknowledgment: take no action
|
||||
::
|
||||
@ -2375,13 +2360,13 @@
|
||||
=^ moves server-state.ax (handle-gall-error u.p.p.sign)
|
||||
[moves http-server-gate]
|
||||
::
|
||||
?: ?=([%g %unto %kick ~] sign)
|
||||
?: ?=([%gall %unto %kick ~] sign)
|
||||
=/ handle-response handle-response:(per-server-event event-args)
|
||||
=^ moves server-state.ax
|
||||
(handle-response %continue ~ &)
|
||||
[moves http-server-gate]
|
||||
::
|
||||
?> ?=([%g %unto %fact *] sign)
|
||||
?> ?=([%gall %unto %fact *] sign)
|
||||
=/ =mark p.cage.p.sign
|
||||
=/ =vase q.cage.p.sign
|
||||
?. ?= ?(%http-response-header %http-response-data %http-response-cancel)
|
||||
@ -2414,7 +2399,7 @@
|
||||
~|([%bad-channel-wire wire] !!)
|
||||
::
|
||||
%timeout
|
||||
?> ?=([%b %wake *] sign)
|
||||
?> ?=([%behn %wake *] sign)
|
||||
?^ error.sign
|
||||
[[duct %slip %d %flog %crud %wake u.error.sign]~ http-server-gate]
|
||||
=/ discard-channel
|
||||
@ -2431,7 +2416,7 @@
|
||||
[moves http-server-gate]
|
||||
::
|
||||
?(%poke %subscription)
|
||||
?> ?=([%g %unto *] sign)
|
||||
?> ?=([%gall %unto *] sign)
|
||||
~| wire
|
||||
?> ?=([@ @ @t @ *] wire)
|
||||
=* channel-id i.t.t.wire
|
||||
@ -2448,7 +2433,7 @@
|
||||
::
|
||||
++ sessions
|
||||
::
|
||||
?> ?=([%b %wake *] sign)
|
||||
?> ?=([%behn %wake *] sign)
|
||||
::
|
||||
?^ error.sign
|
||||
[[duct %slip %d %flog %crud %wake u.error.sign]~ http-server-gate]
|
||||
@ -2473,7 +2458,7 @@
|
||||
(min next expiry-time)
|
||||
::
|
||||
++ acme-ack
|
||||
?> ?=([%g %unto *] sign)
|
||||
?> ?=([%gall %unto *] sign)
|
||||
::
|
||||
?> ?=([%poke-ack *] p.sign)
|
||||
?~ p.p.sign
|
||||
@ -2498,9 +2483,10 @@
|
||||
:: +scry: request a path in the urbit namespace
|
||||
::
|
||||
++ scry
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
^- roon
|
||||
|= [lyc=gang car=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
=* ren cyr
|
||||
=* ren car
|
||||
=* why=shop &/p.bem
|
||||
=* syd q.bem
|
||||
=/ lot=coin $/r.bem
|
||||
|
@ -1,3 +1,4 @@
|
||||
!:
|
||||
:: :: %gall, agent execution
|
||||
!? 163
|
||||
::
|
||||
@ -506,7 +507,7 @@
|
||||
++ mo-handle-sys-era
|
||||
|= [=path =sign-arvo]
|
||||
^+ mo-core
|
||||
?> ?=([%j %public-keys *] sign-arvo)
|
||||
?> ?=([%jael %public-keys *] sign-arvo)
|
||||
?> ?=([%era ~] path)
|
||||
?. ?=(%breach -.public-keys-result.sign-arvo)
|
||||
mo-core
|
||||
@ -521,7 +522,7 @@
|
||||
=/ [dap=term her=@ta desk=@ta dat=@ta ~] t.path
|
||||
=/ tim (slav da+dat)
|
||||
=/ =beak [(slav %p her) desk da+tim]
|
||||
?> ?=([?(%b %c) %writ *] sign-arvo)
|
||||
?> ?=([?(%behn %clay) %writ *] sign-arvo)
|
||||
|^ ^+ mo-core
|
||||
?~ p.sign-arvo
|
||||
(fail leaf+"gall: failed to build agent {<dap>}" ~)
|
||||
@ -548,7 +549,7 @@
|
||||
|= [=path =sign-arvo]
|
||||
^+ mo-core
|
||||
?> ?=([%lyv ~] path)
|
||||
?> ?=([?(%b %c) %wris *] sign-arvo)
|
||||
?> ?=([?(%behn %clay) %wris *] sign-arvo)
|
||||
=/ bek=beak [our %home p.sign-arvo]
|
||||
=/ nex=(list [=care:clay =^path]) ~(tap in q.sign-arvo)
|
||||
~> %slog.[0 leaf+"gall: reloading agents"]
|
||||
@ -575,7 +576,7 @@
|
||||
^+ mo-core
|
||||
::
|
||||
?> ?=([%lag ~] path)
|
||||
?> ?=([%a %clog *] sign-arvo)
|
||||
?> ?=([%ames %clog *] sign-arvo)
|
||||
::
|
||||
=/ agents=(list term) ~(tap in ~(key by yokes.state))
|
||||
|- ^+ mo-core
|
||||
@ -598,7 +599,7 @@
|
||||
=/ him (slav %p i.t.path)
|
||||
=/ dap i.t.t.path
|
||||
::
|
||||
?> ?=([?(%g %b) %unto *] sign-arvo)
|
||||
?> ?=([?(%gall %behn) %unto *] sign-arvo)
|
||||
=/ =sign:agent +>.sign-arvo
|
||||
::
|
||||
?- -.sign
|
||||
@ -631,7 +632,7 @@
|
||||
=/ foreign-agent i.t.t.wire
|
||||
::
|
||||
?+ sign-arvo !!
|
||||
[%a %done *]
|
||||
[%ames %done *]
|
||||
=^ remote-request outstanding.state
|
||||
?~ t.t.t.wire
|
||||
=/ full-wire sys+wire
|
||||
@ -664,7 +665,7 @@
|
||||
%missing (mo-give:(mo-give %unto %watch-ack err) %unto %poke-ack err)
|
||||
==
|
||||
::
|
||||
[%a %boon *]
|
||||
[%ames %boon *]
|
||||
?^ t.t.t.wire
|
||||
:: kill subscriptions which use the old wire format
|
||||
::
|
||||
@ -672,7 +673,7 @@
|
||||
=/ =ames-response ;;(ames-response payload.sign-arvo)
|
||||
(mo-handle-ames-response ames-response)
|
||||
::
|
||||
[%a %lost *]
|
||||
[%ames %lost *]
|
||||
:: note this should only happen on reverse bones, so only facts
|
||||
:: and kicks
|
||||
::
|
||||
@ -709,7 +710,7 @@
|
||||
?. =(nonce.u.yoke i.t.path)
|
||||
%- (slog leaf+"gall: got old {<+<.sign-arvo>} for {<dap>}" ~)
|
||||
mo-core
|
||||
?. ?=([?(%g %b) %unto *] sign-arvo)
|
||||
?. ?=([?(%gall %behn) %unto *] sign-arvo)
|
||||
?: ?=(%| -.agent.u.yoke)
|
||||
%- (slog leaf+"gall: {<dap>} dozing, dropping {<+<.sign-arvo>}" ~)
|
||||
mo-core
|
||||
@ -760,7 +761,7 @@
|
||||
=/ card
|
||||
?: ?=(%& -.blocker)
|
||||
[%slip %g %deal sock dap p.blocker]
|
||||
[%pass /clear-huck %b %huck %g %unto p.blocker]
|
||||
[%pass /clear-huck %b %huck `sign-arvo`[%gall %unto p.blocker]]
|
||||
[duct card]
|
||||
$(moves [move moves])
|
||||
:: +mo-filter-queue: remove all blocked tasks from ship.
|
||||
@ -1525,7 +1526,7 @@
|
||||
=. ap-core
|
||||
(ap-pass wire %agent dock %leave ~)
|
||||
=/ way [%out (scot %p p.dock) q.dock wire]
|
||||
(ap-pass way %arvo %b %huck `sign-arvo`[%g %unto %kick ~])
|
||||
(ap-pass way %arvo %b %huck `sign-arvo`[%gall %unto %kick ~])
|
||||
:: +ap-mule: run virtualized with intercepted scry, preserving type
|
||||
::
|
||||
:: Compare +mute and +mule. Those pass through scry, which
|
||||
@ -1706,9 +1707,9 @@
|
||||
::
|
||||
++ scry
|
||||
~/ %gall-scry
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
^- roon
|
||||
|= [lyc=gang care=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
=* care cyr
|
||||
=/ =shop &/p.bem
|
||||
=* dap q.bem
|
||||
=/ =coin $/r.bem
|
||||
@ -1778,7 +1779,7 @@
|
||||
~| [%gall-take-failed wire]
|
||||
?> ?=([?(%sys %use) *] wire)
|
||||
=< mo-abet
|
||||
%. [t.wire ?:(?=([%b %heck *] syn) syn.syn syn)]
|
||||
%. [t.wire ?:(?=([%behn %heck *] syn) syn.syn syn)]
|
||||
?- i.wire
|
||||
%sys mo-handle-sys:(mo-abed:mo duct)
|
||||
%use mo-handle-use:(mo-abed:mo duct)
|
||||
|
@ -308,18 +308,11 @@
|
||||
::
|
||||
=/ task=task ((harden task) wrapped-task)
|
||||
::
|
||||
:: error notifications "downcast" to %crud
|
||||
:: XX handle error notifications
|
||||
::
|
||||
=? task ?=(^ dud)
|
||||
~| %crud-in-crud
|
||||
?< ?=(%crud -.task)
|
||||
[%crud -.task tang.u.dud]
|
||||
::
|
||||
:: %crud: notifies us of an event failure
|
||||
::
|
||||
?: ?=(%crud -.task)
|
||||
?^ dud
|
||||
=/ moves=(list move)
|
||||
[[duct %slip %d %flog task] ~]
|
||||
[[duct %slip %d %flog %crud [-.task tang.u.dud]] ~]
|
||||
[moves light-gate]
|
||||
:: %trim: in response to memory pressure
|
||||
::
|
||||
@ -390,9 +383,10 @@
|
||||
:: +scry: request a path in the urbit namespace
|
||||
::
|
||||
++ scry
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
^- roon
|
||||
|= [lyc=gang car=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
=* ren cyr
|
||||
=* ren car
|
||||
=* why=shop &/p.bem
|
||||
=* syd q.bem
|
||||
=* lot=coin $/r.bem
|
||||
|
@ -78,16 +78,16 @@
|
||||
+$ note :: out request $->
|
||||
$~ [%a %plea *ship *plea:ames] ::
|
||||
$% $: %a :: to %ames
|
||||
$>(%plea task:ames) :: send request message
|
||||
$>(%plea task:ames) :: send request message
|
||||
== ::
|
||||
$: %b :: to %behn
|
||||
$>(%wait task:behn) :: set timer
|
||||
$>(%wait task:behn) :: set timer
|
||||
== ::
|
||||
$: %e :: to %eyre
|
||||
[%code-changed ~] :: notify code changed
|
||||
== ::
|
||||
$: %g :: to %gall
|
||||
$>(%deal task:gall) :: talk to app
|
||||
$>(%deal task:gall) :: talk to app
|
||||
== ::
|
||||
$: %j :: to self
|
||||
$>(%listen task) :: set ethereum source
|
||||
@ -97,16 +97,16 @@
|
||||
== == == ::
|
||||
:: ::
|
||||
+$ sign :: in result $<-
|
||||
$~ [%a %done ~] ::
|
||||
$% $: %a ::
|
||||
$% $>(%boon gift:ames) :: message response
|
||||
$>(%done gift:ames) :: message (n)ack
|
||||
$>(%lost gift:ames) :: lost boon
|
||||
$~ [%behn %wake ~] ::
|
||||
$% $: %ames ::
|
||||
$% $>(%boon gift:ames) :: message response
|
||||
$>(%done gift:ames) :: message (n)ack
|
||||
$>(%lost gift:ames) :: lost boon
|
||||
== == ::
|
||||
$: %b ::
|
||||
$>(%wake gift:behn) ::
|
||||
$: %behn ::
|
||||
$>(%wake gift:behn) ::
|
||||
== ::
|
||||
$: %g ::
|
||||
$: %gall ::
|
||||
$> $? %onto ::
|
||||
%unto ::
|
||||
== ::
|
||||
@ -527,25 +527,25 @@
|
||||
|= [tea=wire hen=duct hin=sign]
|
||||
^+ +>
|
||||
?- hin
|
||||
[%a %done *]
|
||||
[%ames %done *]
|
||||
?~ error.hin +>.$
|
||||
~& [%done-bad tag.u.error.hin]
|
||||
%- (slog tang.u.error.hin)
|
||||
::TODO fail:et
|
||||
+>.$
|
||||
::
|
||||
[%a %boon *]
|
||||
[%ames %boon *]
|
||||
=+ ;; [%public-keys-result =public-keys-result] payload.hin
|
||||
%- curd =< abet
|
||||
(public-keys:~(feel su hen now pki etn) pos.zim.pki public-keys-result)
|
||||
::
|
||||
[%a %lost *]
|
||||
[%ames %lost *]
|
||||
:: TODO: better error handling
|
||||
::
|
||||
~| %jael-ames-lost
|
||||
!!
|
||||
::
|
||||
[%b %wake *]
|
||||
[%behn %wake *]
|
||||
?^ error.hin
|
||||
%- %+ slog
|
||||
leaf+"jael unable to resubscribe, run :azimuth-tracker|listen"
|
||||
@ -558,11 +558,11 @@
|
||||
%- curd =< abet
|
||||
(sources:~(feel su hen now pki etn) ships source)
|
||||
::
|
||||
[%g %onto *]
|
||||
[%gall %onto *]
|
||||
~& [%jael-onto tea hin]
|
||||
+>.$
|
||||
::
|
||||
[%g %unto *]
|
||||
[%gall %unto *]
|
||||
?- +>-.hin
|
||||
%kick ~|([%jael-unexpected-quit tea hin] !!)
|
||||
%poke-ack
|
||||
@ -1006,9 +1006,10 @@
|
||||
..^$(lex old)
|
||||
:: :: ++scry
|
||||
++ scry :: inspect
|
||||
|= [lyc=gang cyr=term bem=beam]
|
||||
^- roon
|
||||
|= [lyc=gang car=term bem=beam]
|
||||
^- (unit (unit cage))
|
||||
=* ren cyr
|
||||
=* ren car
|
||||
=* why=shop &/p.bem
|
||||
=* syd q.bem
|
||||
=* lot=coin $/r.bem
|
||||
|
@ -165,9 +165,6 @@
|
||||
$% :: i/o device replaced (reset state)
|
||||
::
|
||||
[%born ~]
|
||||
:: error report
|
||||
::
|
||||
[%crud p=@tas q=(list tank)]
|
||||
:: boot completed (XX legacy)
|
||||
::
|
||||
[%init ~]
|
||||
@ -380,7 +377,6 @@
|
||||
:: Messaging Tasks
|
||||
::
|
||||
:: %hear: packet from unix
|
||||
:: %hole: report that packet handling crashed
|
||||
:: %heed: track peer's responsiveness; gives %clog if slow
|
||||
:: %jilt: stop tracking peer's responsiveness
|
||||
:: %plea: request to send message
|
||||
@ -388,7 +384,6 @@
|
||||
:: System and Lifecycle Tasks
|
||||
::
|
||||
:: %born: process restart notification
|
||||
:: %crud: crash report
|
||||
:: %init: vane boot
|
||||
:: %sift: limit verbosity to .ships
|
||||
:: %spew: set verbosity toggles
|
||||
@ -397,13 +392,11 @@
|
||||
::
|
||||
+$ task
|
||||
$% [%hear =lane =blob]
|
||||
[%hole =lane =blob]
|
||||
[%heed =ship]
|
||||
[%jilt =ship]
|
||||
$>(%plea vane-task)
|
||||
::
|
||||
$>(%born vane-task)
|
||||
$>(%crud vane-task)
|
||||
$>(%init vane-task)
|
||||
[%sift ships=(list ship)]
|
||||
[%spew veb=(list verb)]
|
||||
@ -753,7 +746,6 @@
|
||||
+$ task :: in request ->$
|
||||
$~ [%vega ~] ::
|
||||
$% $>(%born vane-task) :: new unix process
|
||||
$>(%crud vane-task) :: error with trace
|
||||
[%rest p=@da] :: cancel alarm
|
||||
[%drip p=vase] :: give in next event
|
||||
[%huck syn=sign-arvo] :: give back
|
||||
@ -789,7 +781,6 @@
|
||||
[%cred nom=@ta cew=crew] :: set permission group
|
||||
[%crew ~] :: permission groups
|
||||
[%crow nom=@ta] :: group usage
|
||||
$>(%crud vane-task) :: error with trace
|
||||
[%drop des=desk] :: cancel pending merge
|
||||
[%info des=desk dit=nori] :: internal edit
|
||||
$>(%init vane-task) :: report install
|
||||
@ -1058,7 +1049,7 @@
|
||||
[%blew p=blew] :: terminal config
|
||||
[%boot lit=? p=*] :: weird %dill boot
|
||||
[%crop p=@ud] :: trim kernel state
|
||||
$>(%crud vane-task) :: error with trace
|
||||
[%crud p=@tas q=(list tank)] :: print error
|
||||
[%flee session=~] :: unwatch session
|
||||
[%flog p=flog] :: wrapped error
|
||||
[%flow p=@tas q=(list gill:gall)] :: terminal config
|
||||
@ -1164,10 +1155,7 @@
|
||||
::
|
||||
+$ task
|
||||
$~ [%vega ~]
|
||||
$% :: event failure notification
|
||||
::
|
||||
$>(%crud vane-task)
|
||||
:: initializes ourselves with an identity
|
||||
$% :: initializes ourselves with an identity
|
||||
::
|
||||
$>(%init vane-task)
|
||||
:: new unix process
|
||||
@ -1787,10 +1775,7 @@
|
||||
::
|
||||
+$ task
|
||||
$~ [%vega ~]
|
||||
$% :: event failure notification
|
||||
::
|
||||
$>(%crud vane-task)
|
||||
:: system started up; reset open connections
|
||||
$% :: system started up; reset open connections
|
||||
::
|
||||
$>(%born vane-task)
|
||||
:: trim state (in response to memory pressure)
|
||||
@ -2123,9 +2108,11 @@
|
||||
[%j task:jael]
|
||||
[@tas %meta vase]
|
||||
==
|
||||
:: full vane names are required in vanes
|
||||
::
|
||||
+$ sign-arvo :: in result $<-
|
||||
$% [%a gift:ames]
|
||||
$: %b
|
||||
$% [%ames gift:ames]
|
||||
$: %behn
|
||||
$% gift:behn
|
||||
$>(%wris gift:clay)
|
||||
$>(%writ gift:clay)
|
||||
@ -2133,12 +2120,12 @@
|
||||
$>(%unto gift:gall)
|
||||
==
|
||||
==
|
||||
[%c gift:clay]
|
||||
[%d gift:dill]
|
||||
[%e gift:eyre]
|
||||
[%g gift:gall]
|
||||
[%i gift:iris]
|
||||
[%j gift:jael]
|
||||
[%clay gift:clay]
|
||||
[%dill gift:dill]
|
||||
[%eyre gift:eyre]
|
||||
[%gall gift:gall]
|
||||
[%iris gift:iris]
|
||||
[%jael gift:jael]
|
||||
==
|
||||
:: $unix-task: input from unix
|
||||
::
|
||||
@ -2159,9 +2146,6 @@
|
||||
:: %eyre: cancel request
|
||||
::
|
||||
[%cancel-request ~]
|
||||
:: any vane: error report
|
||||
::
|
||||
$>(%crud vane-task)
|
||||
:: %dill: reset terminal configuration
|
||||
::
|
||||
$>(%hail task:dill)
|
||||
|
@ -102,7 +102,7 @@
|
||||
::
|
||||
++ handle-arvo-response
|
||||
|= [=wire =sign-arvo]
|
||||
?> ?=([%b %wake *] sign-arvo)
|
||||
?> ?=([%behn %wake *] sign-arvo)
|
||||
?> ?=([@ *] wire)
|
||||
=/ who (,@p (slav %p i.wire))
|
||||
=^ cards piers
|
||||
|
@ -118,7 +118,7 @@
|
||||
++ handle-arvo-response
|
||||
|= [=wire =sign-arvo]
|
||||
^- (quip card:agent:gall _this)
|
||||
?> ?=([%i %http-response %finished *] sign-arvo)
|
||||
?> ?=([%iris %http-response %finished *] sign-arvo)
|
||||
?> ?=([@ *] wire)
|
||||
=/ who (,@p (slav %p i.wire))
|
||||
=/ =httr:eyre
|
||||
|
Loading…
Reference in New Issue
Block a user