2022-05-05 21:29:42 +03:00
|
|
|
/- spider
|
|
|
|
/+ *strandio
|
|
|
|
::
|
|
|
|
=, strand=strand:spider
|
|
|
|
::
|
2022-05-05 22:01:06 +03:00
|
|
|
:: send on /spider/garden/json/get-dudes/json
|
2022-05-05 21:29:42 +03:00
|
|
|
::
|
|
|
|
|%
|
|
|
|
++ buds :: get agents currently running
|
2022-05-05 21:58:18 +03:00
|
|
|
|= p=desk
|
|
|
|
=/ m (strand ,(list dude:gall))
|
2022-05-05 21:29:42 +03:00
|
|
|
^- form:m
|
2022-05-05 21:58:18 +03:00
|
|
|
?. =(%$ p)
|
|
|
|
;< q=(list dude:gall) bind:m (suds p)
|
2022-05-05 21:29:42 +03:00
|
|
|
(pure:m q)
|
2022-05-05 21:58:18 +03:00
|
|
|
;< q=(list desk) bind:m duds
|
|
|
|
=| r=(list (list dude:gall))
|
2022-05-05 21:29:42 +03:00
|
|
|
|- ^- form:m
|
2022-05-05 21:58:18 +03:00
|
|
|
=* s $
|
2022-05-05 21:29:42 +03:00
|
|
|
?~ q (pure:m (zing r))
|
2022-05-05 21:58:18 +03:00
|
|
|
;< t=(list dude:gall) bind:m (suds i.q)
|
|
|
|
s(q t.q, r [t r])
|
2022-05-05 21:29:42 +03:00
|
|
|
::
|
|
|
|
++ suds :: clean %ge scry
|
2022-05-05 21:58:18 +03:00
|
|
|
|= p=desk
|
|
|
|
=/ m (strand ,(list dude:gall))
|
2022-05-05 21:29:42 +03:00
|
|
|
^- form:m
|
2022-05-05 21:58:18 +03:00
|
|
|
;< q=(set [dude:gall ?]) bind:m
|
|
|
|
(scry (set ,[dude:gall ?]) /ge/(scot %tas p))
|
2022-05-05 21:29:42 +03:00
|
|
|
%- pure:m
|
2022-05-05 21:58:18 +03:00
|
|
|
(murn ~(tap in q) |=([dude:gall ?] ?.(+.+< ~ `-.+<)))
|
2022-05-05 21:29:42 +03:00
|
|
|
::
|
|
|
|
++ duds :: get desks
|
2022-05-05 21:58:18 +03:00
|
|
|
=/ m (strand ,(list desk))
|
2022-05-05 21:29:42 +03:00
|
|
|
^- form:m
|
2022-05-05 21:58:18 +03:00
|
|
|
;< p=(set desk) bind:m (scry (set ,desk) /cd/base)
|
2022-05-05 21:29:42 +03:00
|
|
|
(pure:m ~(tap in p))
|
|
|
|
--
|
|
|
|
::
|
|
|
|
^- thread:spider
|
|
|
|
|= jon=vase
|
|
|
|
=/ m (strand ,vase)
|
|
|
|
^- form:m
|
|
|
|
;< =bowl:spider bind:m get-bowl
|
|
|
|
=, bowl
|
|
|
|
?~ know=!<((unit json) jon)
|
|
|
|
(pure:m !>(`json`[%s 'invalid-request']))
|
|
|
|
?. ?=([%s @] u.know)
|
|
|
|
(pure:m !>(`json`[%s 'invalid-request']))
|
|
|
|
=, format
|
|
|
|
;< breh=(list @tas) bind:m (buds (so:dejs u.know))
|
|
|
|
%- pure:m
|
2022-05-06 07:33:41 +03:00
|
|
|
!>(`json`(frond:enjs 'buds' a+(turn breh |=(@tas s+[+<]))))
|