2017-10-12 13:30:16 +03:00
|
|
|
::
|
2017-11-08 00:05:52 +03:00
|
|
|
:::: /lib/hall-json/hoon
|
2017-10-12 13:30:16 +03:00
|
|
|
::
|
2017-11-08 00:05:52 +03:00
|
|
|
/- hall
|
2017-11-10 15:08:54 +03:00
|
|
|
=, hall
|
2017-10-12 13:30:16 +03:00
|
|
|
::
|
2017-10-25 17:55:10 +03:00
|
|
|
|_ bol/bowl:gall
|
2018-05-25 01:39:56 +03:00
|
|
|
++ en-tape ::: sur to tape
|
2017-10-20 00:58:18 +03:00
|
|
|
|%
|
2018-05-25 01:39:56 +03:00
|
|
|
++ circ ::: circle
|
2017-10-20 00:58:18 +03:00
|
|
|
|= a/circle
|
|
|
|
:(weld (scow %p hos.a) "/" (trip nom.a))
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ rang ::: range
|
2017-10-20 00:58:18 +03:00
|
|
|
|= a/range
|
|
|
|
?~ a ~
|
|
|
|
;: weld
|
|
|
|
"/" (scow hed.u.a)
|
|
|
|
?~ tal.u.a ~
|
|
|
|
(scow u.tal.u.a)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ sorc ::: source
|
2017-10-20 00:58:18 +03:00
|
|
|
|= a/source
|
|
|
|
(weld (circ cir.a) (rang ran.a))
|
|
|
|
--
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ de-tape ::: tape to sur (parse)
|
2017-10-20 00:58:18 +03:00
|
|
|
|%
|
2018-05-25 01:39:56 +03:00
|
|
|
++ circ ::: circle
|
2018-08-03 21:01:48 +03:00
|
|
|
;~((glue net) ;~(pfix sig fed:ag) urs:ab)
|
2017-10-20 00:58:18 +03:00
|
|
|
::
|
2017-12-13 00:28:56 +03:00
|
|
|
++ pont
|
2018-08-03 21:01:48 +03:00
|
|
|
;~ pfix net
|
2017-12-13 00:28:56 +03:00
|
|
|
%+ sear
|
|
|
|
|= a/coin
|
|
|
|
^- (unit place)
|
|
|
|
?+ a ~
|
2018-08-22 00:13:58 +03:00
|
|
|
[%$ %da @da] `p.a
|
|
|
|
[%$ %ud @ud] `p.a
|
2017-10-20 00:58:18 +03:00
|
|
|
==
|
2017-12-13 00:28:56 +03:00
|
|
|
nuck:so
|
2017-10-20 00:58:18 +03:00
|
|
|
==
|
|
|
|
::
|
2017-12-13 00:28:56 +03:00
|
|
|
++ sorc
|
|
|
|
;~(plug circ (punt ;~(plug pont (punt pont))))
|
2017-10-20 00:58:18 +03:00
|
|
|
--
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ enjs ::: sur to json
|
2017-10-20 00:58:18 +03:00
|
|
|
=, enjs:format
|
2017-10-12 13:30:16 +03:00
|
|
|
|%
|
2017-10-20 00:58:18 +03:00
|
|
|
::TODO these first few should probably make their way
|
|
|
|
:: into the stdlib...
|
2018-05-25 01:39:56 +03:00
|
|
|
++ sa ::: set as array
|
2017-10-20 00:58:18 +03:00
|
|
|
|* {a/(set) b/$-(* json)}
|
|
|
|
^- json
|
2017-10-24 16:19:41 +03:00
|
|
|
[%a (turn ~(tap in a) b)]
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ mo ::: map as object
|
2017-10-24 16:19:41 +03:00
|
|
|
|* {a/(map) b/$-(* @t) c/$-(* json)}
|
|
|
|
^- json
|
|
|
|
=- (pairs (turn ~(tap by a) -))
|
|
|
|
|* {k/* v/*} [(b k) (c v)]
|
2017-10-20 00:58:18 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ lank ::: tank as string arr
|
2017-10-25 21:37:39 +03:00
|
|
|
|= a/tank
|
|
|
|
^- json
|
2019-07-31 14:40:22 +03:00
|
|
|
a+(turn (wash [0 80] a) tape)
|
2017-10-25 21:37:39 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dank ::: tank
|
2017-10-20 00:58:18 +03:00
|
|
|
|= a/tank
|
|
|
|
?: ?=($leaf -.a) (frond %leaf (tape p.a))
|
2018-08-22 00:13:58 +03:00
|
|
|
:: TODO: No idea what a plum is, but it was recently added
|
|
|
|
::
|
|
|
|
?: ?=($plum -.a) (frond %plum [%o ~])
|
2017-10-20 00:58:18 +03:00
|
|
|
%+ frond -.a
|
|
|
|
%- pairs
|
|
|
|
?- -.a
|
|
|
|
$palm
|
|
|
|
:+ :- %style
|
|
|
|
%- pairs :~
|
|
|
|
mid+(tape p.p.a)
|
|
|
|
cap+(tape q.p.a)
|
|
|
|
open+(tape r.p.a)
|
|
|
|
close+(tape s.p.a)
|
|
|
|
==
|
|
|
|
lines+a+(turn q.a dank)
|
|
|
|
~
|
|
|
|
$rose
|
|
|
|
:+ :- %style
|
|
|
|
%- pairs :~
|
|
|
|
mid+(tape p.p.a)
|
|
|
|
open+(tape q.p.a)
|
|
|
|
close+(tape r.p.a)
|
|
|
|
==
|
|
|
|
lines+a+(turn q.a dank)
|
|
|
|
~
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ cord ::: string from cord
|
2017-10-20 18:42:07 +03:00
|
|
|
|= a/@t
|
|
|
|
s+a
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ mabe ::: null or value
|
2017-10-20 18:42:07 +03:00
|
|
|
|* {a/(unit) b/$-(* json)}
|
|
|
|
^- json
|
|
|
|
?~(a ~ (b u.a))
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
::: ||
|
|
|
|
::: || %query-models
|
|
|
|
::: ||
|
|
|
|
::: models relating to queries, their results and updates.
|
2017-10-24 23:15:58 +03:00
|
|
|
::+|
|
2017-10-20 00:58:18 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ pici ::: prize-client
|
2017-11-16 18:36:34 +03:00
|
|
|
|= a/prize-client
|
2017-10-24 16:19:41 +03:00
|
|
|
^- json
|
|
|
|
%- pairs :~
|
|
|
|
:- %gys
|
|
|
|
=- (pairs ~(tap by (~(run by gys.a) -)))
|
|
|
|
|=((set (set circle)) (sa +< audi))
|
|
|
|
::
|
|
|
|
nis+(mo nis.a (cury scot %p) cord)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ ruci ::: rumor-client
|
2017-11-16 18:36:34 +03:00
|
|
|
|= a/rumor-client
|
2017-10-24 18:24:04 +03:00
|
|
|
^- json
|
|
|
|
%+ frond -.a
|
|
|
|
?- -.a
|
|
|
|
$glyph (digy +.a)
|
|
|
|
$nick (dini +.a)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ pack ::: package
|
2017-10-24 23:15:58 +03:00
|
|
|
|= a/package
|
|
|
|
^- json
|
|
|
|
%- pairs :~
|
|
|
|
nes+a+(turn nes.a enve) ::TODO maybe map
|
|
|
|
cos+(loby cos.a)
|
|
|
|
pes+(crow pes.a)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ digy ::: diff-glyph
|
2017-10-24 18:24:04 +03:00
|
|
|
|= a/diff-glyph
|
|
|
|
^- json
|
|
|
|
%- pairs :~
|
|
|
|
bin+b+bin.a
|
|
|
|
gyf+s+gyf.a
|
|
|
|
aud+(audi aud.a)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dini ::: diff-nick
|
2017-10-24 18:24:04 +03:00
|
|
|
|= a/diff-nick
|
|
|
|
^- json
|
|
|
|
(pairs who+(ship who.a) nic+s+nic.a ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ ruso ::: rumor-story
|
2017-10-24 18:24:04 +03:00
|
|
|
|= a/rumor-story
|
|
|
|
^- json
|
|
|
|
%+ frond -.a
|
|
|
|
?+ -.a !!
|
|
|
|
$new (conf cof.a)
|
|
|
|
:: $bear not needed
|
|
|
|
$config (pairs cir+(circ cir.a) dif+(dico dif.a) ~)
|
|
|
|
$status %- pairs :~
|
|
|
|
cir+(circ cir.a)
|
|
|
|
who+(ship who.a)
|
|
|
|
dif+(disa dif.a)
|
|
|
|
==
|
|
|
|
$remove b+&
|
|
|
|
$gram (enve nev.a)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dico ::: diff-config
|
2017-10-24 18:24:04 +03:00
|
|
|
|= a/diff-config
|
|
|
|
^- json
|
|
|
|
%+ frond -.a
|
|
|
|
?- -.a
|
|
|
|
$full (conf cof.a)
|
|
|
|
$source (pairs add+b+add.a src+(sorc src.a) ~)
|
|
|
|
$caption s+cap.a
|
2018-02-14 18:54:51 +03:00
|
|
|
$usage (pairs add+b+add.a tas+(sa tas.a cord) ~)
|
2017-10-24 18:24:04 +03:00
|
|
|
$filter (filt fit.a)
|
|
|
|
$secure s+sec.a
|
|
|
|
$permit (pairs add+b+add.a sis+(sa sis.a ship) ~)
|
|
|
|
$remove b+&
|
2018-06-19 02:23:36 +03:00
|
|
|
$read (numb red.a)
|
2017-10-24 18:24:04 +03:00
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ disa ::: diff-status
|
2017-10-24 18:24:04 +03:00
|
|
|
|= a/diff-status
|
|
|
|
^- json
|
|
|
|
%+ frond -.a
|
|
|
|
?- -.a
|
|
|
|
$full (stat sat.a)
|
|
|
|
$presence s+pec.a
|
|
|
|
$human (dihu dif.a)
|
|
|
|
$remove b+&
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dihu ::: diff-human
|
2017-10-24 18:24:04 +03:00
|
|
|
|= a/diff-human
|
|
|
|
^- json
|
|
|
|
%+ frond -.a
|
|
|
|
?- -.a
|
|
|
|
$full (huma man.a)
|
|
|
|
$handle (frond %han (mabe han.a cord))
|
|
|
|
$true (frond %tru (mabe tru.a trun))
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
::: ||
|
|
|
|
::: || %circles
|
|
|
|
::: ||
|
|
|
|
::: messaging targets and their metadata
|
2017-10-24 23:15:58 +03:00
|
|
|
::+|
|
2017-10-24 16:19:41 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ circ ::: circle
|
2017-10-20 00:58:18 +03:00
|
|
|
|= a/circle
|
|
|
|
^- json
|
|
|
|
s+(crip (circ:en-tape a))
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ loby ::: lobby
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/lobby
|
|
|
|
%- pairs :~
|
|
|
|
loc+(conf loc.a)
|
|
|
|
rem+(mo rem.a (cork circ:en-tape crip) conf)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ conf ::: config
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/config
|
2017-10-20 00:58:18 +03:00
|
|
|
^- json
|
2017-10-24 16:19:41 +03:00
|
|
|
%- pairs :~
|
|
|
|
src+(sa src.a sorc)
|
|
|
|
cap+s+cap.a
|
2018-02-14 18:54:51 +03:00
|
|
|
tag+(sa tag.a cord)
|
2017-10-24 16:19:41 +03:00
|
|
|
fit+(filt fit.a)
|
|
|
|
con+(cont con.a)
|
2018-06-19 02:23:36 +03:00
|
|
|
red+(numb red.a)
|
2017-10-24 16:19:41 +03:00
|
|
|
==
|
2017-10-20 00:58:18 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ sorc ::: source
|
2017-10-20 00:58:18 +03:00
|
|
|
|= a/source
|
|
|
|
^- json
|
|
|
|
s+(crip (sorc:en-tape a))
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ filt ::: filter
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/filter
|
|
|
|
^- json
|
|
|
|
(pairs cas+b+cas.a utf+b+utf.a ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ cont ::: control
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/control
|
|
|
|
^- json
|
2017-11-01 22:24:11 +03:00
|
|
|
(pairs sec+s+sec.a sis+(sa sis.a ship) ~)
|
2017-10-24 16:19:41 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ crow ::: crowd
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/crowd
|
|
|
|
^- json
|
|
|
|
%- pairs :~
|
|
|
|
loc+(grop loc.a)
|
2017-10-25 17:54:32 +03:00
|
|
|
rem+(mo rem.a (cork circ:en-tape crip) grop)
|
2017-10-24 16:19:41 +03:00
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ grop ::: group
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/group
|
|
|
|
^- json
|
2017-10-25 21:37:39 +03:00
|
|
|
(mo a (cury scot %p) stat)
|
2017-10-24 16:19:41 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ stat ::: status
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/status
|
|
|
|
^- json
|
|
|
|
(pairs pec+s+pec.a man+(huma man.a) ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ huma ::: human
|
2017-10-20 18:42:07 +03:00
|
|
|
|= a/human
|
|
|
|
^- json
|
|
|
|
(pairs han+(mabe han.a cord) tru+(mabe tru.a trun) ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ trun ::: truename
|
2017-10-20 18:42:07 +03:00
|
|
|
|= a/truename
|
|
|
|
^- json
|
|
|
|
(pairs fir+s+fir.a mid+(mabe mid.a cord) las+s+las.a ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
::: ||
|
|
|
|
::: || %message-data
|
|
|
|
::: ||
|
|
|
|
::: structures for containing main message data
|
2017-10-24 23:15:58 +03:00
|
|
|
::+|
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ enve ::: envelope
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/envelope
|
|
|
|
^- json
|
|
|
|
(pairs num+(numb num.a) gam+(gram gam.a) ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ gram ::: telegram
|
2017-10-24 16:19:41 +03:00
|
|
|
|= a/telegram
|
|
|
|
^- json
|
|
|
|
%- pairs :~
|
2017-10-24 23:15:58 +03:00
|
|
|
aut+(ship aut.a)
|
2017-10-24 16:19:41 +03:00
|
|
|
::TODO can we avoid this code duplication somehow?
|
|
|
|
uid+s+(scot %uv uid.a)
|
|
|
|
aud+(audi aud.a)
|
|
|
|
wen+(time wen.a)
|
|
|
|
sep+(spec sep.a)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ thot ::: thought
|
2017-10-20 18:42:07 +03:00
|
|
|
|= a/thought
|
|
|
|
^- json
|
|
|
|
%- pairs :~
|
|
|
|
uid+s+(scot %uv uid.a)
|
|
|
|
aud+(audi aud.a)
|
|
|
|
wen+(time wen.a)
|
|
|
|
sep+(spec sep.a)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ spec ::: speech
|
2017-10-20 00:58:18 +03:00
|
|
|
|= a/speech
|
|
|
|
^- json
|
|
|
|
:: only %url has just a single piece of data.
|
|
|
|
?: ?=($url -.a)
|
|
|
|
(frond %url s+(crip (apix:en-purl:html url.a)))
|
|
|
|
%+ frond -.a
|
|
|
|
%- pairs
|
|
|
|
?- -.a
|
|
|
|
$lin ~[pat+b+pat.a msg+s+msg.a]
|
2017-10-25 21:37:39 +03:00
|
|
|
$exp ~[exp+s+exp.a res+a+(turn res.a lank)]
|
2017-10-20 00:58:18 +03:00
|
|
|
$ire ~[top+s+(scot %uv top.a) sep+(spec sep.a)] ::TODO @uv as number?
|
|
|
|
$fat ~[tac+(atta tac.a) sep+(spec sep.a)]
|
|
|
|
$inv ~[inv+b+inv.a cir+(circ cir.a)]
|
2017-11-06 19:21:50 +03:00
|
|
|
$app ~[app+s+app.a sep+(spec sep.a)]
|
2017-10-20 00:58:18 +03:00
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ atta ::: attache
|
2017-10-20 00:58:18 +03:00
|
|
|
|= a/attache
|
|
|
|
^- json
|
|
|
|
%+ frond -.a
|
|
|
|
?- -.a
|
|
|
|
$name (pairs nom+s+nom.a tac+(atta tac.a) ~)
|
|
|
|
$text s+(of-wain:format +.a)
|
2017-10-25 21:37:39 +03:00
|
|
|
$tank a+(turn +.a lank)
|
2017-10-20 00:58:18 +03:00
|
|
|
==
|
2017-10-20 18:42:07 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
::: ||
|
|
|
|
::: || %message-metadata
|
|
|
|
::: ||
|
|
|
|
::: structures for containing message metadata
|
2017-10-24 23:15:58 +03:00
|
|
|
::+|
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ audi ::: audience
|
2017-10-20 18:42:07 +03:00
|
|
|
|= a/audience
|
|
|
|
^- json
|
|
|
|
(sa a circ)
|
2017-10-12 13:30:16 +03:00
|
|
|
--
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dejs ::: json to sur
|
2017-10-12 13:30:16 +03:00
|
|
|
=, dejs-soft:format
|
|
|
|
|%
|
|
|
|
::TODO these first few should maybe make their way
|
|
|
|
:: into the stdlib...
|
2018-05-25 01:39:56 +03:00
|
|
|
++ re ::: recursive reparsers
|
2017-10-20 20:45:24 +03:00
|
|
|
|* {gar/* sef/_|.(fist)}
|
|
|
|
|= jon/json
|
|
|
|
^- (unit _gar)
|
|
|
|
=- ~! gar ~! (need -) -
|
|
|
|
((sef) jon)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ as ::: array as set
|
2017-10-12 13:30:16 +03:00
|
|
|
|* a/fist
|
|
|
|
(cu ~(gas in *(set _(need *a))) (ar a))
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dank ::: tank
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit tank))
|
2017-10-20 20:45:24 +03:00
|
|
|
%+ re *tank |. ~+
|
2017-10-12 13:30:16 +03:00
|
|
|
%- of :~
|
|
|
|
leaf+sa
|
|
|
|
palm+(ot style+(ot mid+sa cap+sa open+sa close+sa ~) lines+(ar dank) ~)
|
|
|
|
rose+(ot style+(ot mid+sa open+sa close+sa ~) lines+(ar dank) ~)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
::: ||
|
|
|
|
::: || %query-models
|
|
|
|
::: ||
|
|
|
|
::: models relating to queries, their results and updates.
|
2017-10-24 23:15:58 +03:00
|
|
|
::+|
|
2017-10-12 13:30:16 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ pici ::: prize-client
|
2017-11-16 18:36:34 +03:00
|
|
|
^- $-(json (unit prize-client))
|
2017-10-24 16:19:41 +03:00
|
|
|
%- ot :~
|
|
|
|
gys+(om (as (as circ)))
|
|
|
|
nis+(op fed:ag so)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ ruci ::: rumor-client
|
2017-11-16 18:36:34 +03:00
|
|
|
^- $-(json (unit rumor-client))
|
2017-10-24 18:24:04 +03:00
|
|
|
%- of :~
|
|
|
|
glyph+digy
|
|
|
|
nick+dini
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ pack ::: package
|
2017-10-24 16:19:41 +03:00
|
|
|
^- $-(json (unit package))
|
|
|
|
%- ot :~
|
|
|
|
nes+(ar enve)
|
|
|
|
cos+loby
|
|
|
|
pes+crow
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ digy ::: diff-glyph
|
2017-10-24 18:24:04 +03:00
|
|
|
^- $-(json (unit diff-glyph))
|
|
|
|
(ot bin+bo gyf+so aud+audi ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dini ::: diff-nick
|
2017-10-24 18:24:04 +03:00
|
|
|
^- $-(json (unit diff-nick))
|
|
|
|
(ot who+(su fed:ag) nic+so ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ ruso ::: rumor-story
|
2017-10-24 18:24:04 +03:00
|
|
|
^- $-(json (unit rumor-story))
|
|
|
|
%- of :~
|
|
|
|
new+conf
|
|
|
|
:: bear not needed
|
|
|
|
config+(ot cir+circ dif+dico ~)
|
|
|
|
status+(ot cir+circ who+(su fed:ag) dif+disa ~)
|
|
|
|
remove+ul
|
2017-11-20 22:48:54 +03:00
|
|
|
gram+(ot src+circ nev+enve ~)
|
2017-10-24 18:24:04 +03:00
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dico ::: diff-config
|
2017-10-24 18:24:04 +03:00
|
|
|
^- $-(json (unit diff-config))
|
|
|
|
%- of :~
|
|
|
|
full+conf
|
|
|
|
source+(ot add+bo src+sorc ~)
|
2018-02-14 18:54:51 +03:00
|
|
|
usage+(ot add+bo tas+(as so) ~)
|
2017-10-24 18:24:04 +03:00
|
|
|
caption+so
|
|
|
|
filter+filt
|
|
|
|
secure+secu
|
|
|
|
permit+(ot add+bo sis+(as (su fed:ag)) ~)
|
|
|
|
remove+ul
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ disa ::: diff-status
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit diff-status))
|
|
|
|
%- of :~
|
2017-10-20 00:58:18 +03:00
|
|
|
full+(ot pec+pres man+huma ~)
|
|
|
|
presence+pres
|
2017-10-12 13:30:16 +03:00
|
|
|
human+dihu
|
|
|
|
remove+ul
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ dihu ::: diff-human
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit diff-human))
|
|
|
|
%- of :~
|
|
|
|
full+huma
|
|
|
|
handle+(mu so)
|
2017-10-20 00:58:18 +03:00
|
|
|
true+(mu trun)
|
2017-10-12 13:30:16 +03:00
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
::: ||
|
|
|
|
::: || %circles
|
|
|
|
::: ||
|
|
|
|
::: messaging targets and their metadata.
|
2017-10-12 13:30:16 +03:00
|
|
|
::+|
|
|
|
|
::
|
2017-10-20 00:58:18 +03:00
|
|
|
::TODO maybe just an object?
|
2018-05-25 01:39:56 +03:00
|
|
|
++ circ ::: circle
|
2017-10-20 00:58:18 +03:00
|
|
|
^- $-(json (unit circle))
|
|
|
|
(su circ:de-tape)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ loby ::: lobby
|
2017-10-24 16:19:41 +03:00
|
|
|
^- $-(json (unit lobby))
|
|
|
|
(ot loc+conf rem+(op circ:de-tape conf) ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ conf ::: config
|
2017-10-24 16:19:41 +03:00
|
|
|
^- $-(json (unit config))
|
|
|
|
%- ot :~
|
|
|
|
src+(as sorc)
|
|
|
|
cap+so
|
2018-02-14 18:54:51 +03:00
|
|
|
tag+(as so)
|
2017-10-24 16:19:41 +03:00
|
|
|
fit+filt
|
|
|
|
con+cont
|
2018-06-19 02:23:36 +03:00
|
|
|
red+ni
|
2017-10-24 16:19:41 +03:00
|
|
|
==
|
|
|
|
::
|
2017-10-20 00:58:18 +03:00
|
|
|
::TODO maybe just an object?
|
2018-05-25 01:39:56 +03:00
|
|
|
++ sorc ::: source
|
2017-10-20 00:58:18 +03:00
|
|
|
^- $-(json (unit source))
|
|
|
|
(su sorc:de-tape)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ filt ::: filter
|
2017-10-20 00:58:18 +03:00
|
|
|
^- $-(json (unit filter))
|
|
|
|
(ot cas+bo utf+bo ~)
|
2017-10-12 13:30:16 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ cont ::: control
|
2017-10-24 16:19:41 +03:00
|
|
|
^- $-(json (unit control))
|
2017-10-31 21:56:56 +03:00
|
|
|
(ot sec+secu sis+(as (su fed:ag)) ~)
|
2017-10-24 16:19:41 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ secu ::: security
|
2017-10-20 18:42:07 +03:00
|
|
|
^- $-(json (unit security))
|
2018-09-05 02:23:24 +03:00
|
|
|
(su (perk %channel %village %journal %mailbox %custom ~))
|
2017-10-20 18:42:07 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ crow ::: crowd
|
2017-10-24 16:19:41 +03:00
|
|
|
^- $-(json (unit crowd))
|
|
|
|
(ot loc+grop rem+(op circ:de-tape grop) ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ grop ::: group
|
2017-10-24 16:19:41 +03:00
|
|
|
^- $-(json (unit group))
|
|
|
|
(op fed:ag stat)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ stat ::: status
|
2017-10-24 16:19:41 +03:00
|
|
|
^- $-(json (unit status))
|
|
|
|
(ot pec+pres man+huma ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ pres ::: presence
|
2017-10-20 00:58:18 +03:00
|
|
|
^- $-(json (unit presence))
|
|
|
|
(su (perk %gone %idle %hear %talk ~))
|
2017-10-12 13:30:16 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ huma ::: human
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit human))
|
2017-10-20 00:58:18 +03:00
|
|
|
(ot han+(mu so) tru+(mu trun) ~)
|
2017-10-12 13:30:16 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ trun ::: truename
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit truename))
|
|
|
|
(ot fir+so mid+(mu so) las+so ~)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
::: ||
|
|
|
|
::: || %message-data
|
|
|
|
::: ||
|
|
|
|
::: structures for containing main message data.
|
2017-10-12 13:30:16 +03:00
|
|
|
::+|
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ enve ::: envelope
|
2017-10-24 16:19:41 +03:00
|
|
|
^- $-(json (unit envelope))
|
|
|
|
(ot num+ni gam+gram ~)
|
2017-10-20 00:58:18 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ gram ::: telegram
|
2017-10-20 00:58:18 +03:00
|
|
|
^- $-(json (unit telegram))
|
|
|
|
%- ot :~
|
|
|
|
aut+(su fed:ag)
|
|
|
|
::TODO can we do anything about this duplication?
|
|
|
|
uid+seri
|
|
|
|
aud+audi
|
|
|
|
wen+di
|
|
|
|
sep+spec
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ thot ::: thought
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit thought))
|
|
|
|
%- ot :~
|
|
|
|
uid+seri
|
|
|
|
aud+audi
|
|
|
|
wen+di
|
|
|
|
sep+spec
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ spec ::: speech
|
2017-10-20 18:42:07 +03:00
|
|
|
^- $-(json (unit speech))
|
2017-10-20 20:45:24 +03:00
|
|
|
%+ re *speech |. ~+
|
2017-10-20 18:42:07 +03:00
|
|
|
%- of :~
|
2017-10-25 21:37:39 +03:00
|
|
|
lin+(ot pat+bo msg+so ~)
|
2017-10-20 18:42:07 +03:00
|
|
|
url+(su aurf:de-purl:html)
|
2017-10-25 17:55:10 +03:00
|
|
|
exp+eval
|
2017-10-20 18:42:07 +03:00
|
|
|
ire+(ot top+seri sep+spec ~)
|
|
|
|
fat+(ot tac+atta sep+spec ~)
|
|
|
|
inv+(ot inv+bo cir+circ ~)
|
2017-11-06 19:21:50 +03:00
|
|
|
app+(ot app+so sep+spec ~)
|
2017-10-20 18:42:07 +03:00
|
|
|
==
|
2017-10-12 13:30:16 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ eval ::: %exp speech
|
|
|
|
::: extract contents of an %exp speech, evaluating
|
|
|
|
::: the {exp} if there is no {res} yet.
|
2017-10-25 17:55:10 +03:00
|
|
|
::
|
|
|
|
|= a/json
|
|
|
|
^- (unit {cord (list tank)})
|
|
|
|
=+ exp=((ot exp+so ~) a)
|
|
|
|
?~ exp ~
|
|
|
|
:+ ~ u.exp
|
|
|
|
=+ res=((ot res+(ar dank) ~) a)
|
|
|
|
?^ res u.res
|
2019-07-31 14:39:31 +03:00
|
|
|
p:(mule |.([(sell (slap !>(..^zuse) (ream u.exp)))]~)) ::TODO oldz
|
2017-10-25 17:55:10 +03:00
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ atta ::: attache
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit attache))
|
2017-10-25 17:54:32 +03:00
|
|
|
%+ re *attache |. ~+
|
2017-10-12 13:30:16 +03:00
|
|
|
%- of :~
|
|
|
|
name+(ot nom+so tac+atta ~)
|
2017-10-20 00:58:18 +03:00
|
|
|
text+(cu to-wain:format so)
|
2017-10-12 13:30:16 +03:00
|
|
|
tank+(ar dank)
|
|
|
|
==
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
::: ||
|
|
|
|
::: || %message-metadata
|
|
|
|
::: ||
|
2017-10-12 13:30:16 +03:00
|
|
|
:: structures for containing message metadata.
|
|
|
|
::+|
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ seri ::: serial
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit serial))
|
|
|
|
(ci (slat %uv) so)
|
|
|
|
::
|
2018-05-25 01:39:56 +03:00
|
|
|
++ audi ::: audience
|
2017-10-12 13:30:16 +03:00
|
|
|
^- $-(json (unit audience))
|
2017-10-20 00:58:18 +03:00
|
|
|
(as circ)
|
2017-10-12 13:30:16 +03:00
|
|
|
--
|
|
|
|
--
|