@@ -10,41 +10,12 @@
12+$ pikes (map desk pike)
12+$ pikes (map desk pike)
13−:: $jump: changes to update source change requests
16− $% [%all all=(map dock dock)] :: pending requests
17− [%add old=dock new=dock] :: new request
18− [%yea old=dock new=dock] :: approved
19− [%nay old=dock new=dock] :: denied
21:: $rung: reference to upstream commit
14:: $rung: reference to upstream commit
23+$ rung [=aeon =weft]
16+$ rung [=aeon =weft]
24−:: #sync-record: source and destination of a kiln sync
27− $: syd=desk :: local desk
28− her=ship :: foreign ship
29− sud=desk :: foreign desk
34− kid=(unit desk) :: has kids desk too?
35− let=@ud :: next revision
36− nit=(unit ?) :: automerge or default
37− hav=(unit @ud) :: update available
38− yea=? :: update approved
42− $% [%new for=sync-record rev=@ud]
43− [%done for=sync-record rev=@ud]
44− [%drop for=sync-record rev=@ud]
45− [%pending pending=(set [for=sync-record rev=@ud])]
18++$ sync-state [nun=@ta kid=(unit desk) let=@ud]
48+$ sink (unit [her=@p sud=desk kid=(unit desk) let=@ud])
19+$ sink (unit [her=@p sud=desk kid=(unit desk) let=@ud])
49:: +truncate-hash: get last 5 digits of hash and convert to tape
20:: +truncate-hash: get last 5 digits of hash and convert to tape
@@ -59,7 +30,7 @@
59 =/ ego (scot %p our)
30 =/ ego (scot %p our)
60 =/ wen (scot %da now)
31 =/ wen (scot %da now)
61 :* .^(rock:tire %cx /[ego]//[wen]/tire)
32 :* .^(rock:tire %cx /[ego]//[wen]/tire)
62− .^(cone %cx /[ego]//[wen]/domes)
33+ .^(=cone %cx /[ego]//[wen]/domes)
63 .^((map desk [ship desk]) %gx /[ego]/hood/[wen]/kiln/sources/noun)
34 .^((map desk [ship desk]) %gx /[ego]/hood/[wen]/kiln/sources/noun)
64 .^ (map [desk ship desk] sync-state) %gx
35 .^ (map [desk ship desk] sync-state) %gx
65 /[ego]/hood/[wen]/kiln/syncs/noun
36 /[ego]/hood/[wen]/kiln/syncs/noun
@@ -72,73 +43,43 @@
73 =/ ego (scot %p our)
44 =/ ego (scot %p our)
74 =/ wen (scot %da now)
45 =/ wen (scot %da now)
75− =+ prep=[tyr cone sor zyn]=(report-prep our now)
46+ =/ prep (report-prep our now)
76− ?: =(%$ filt)
47+ ?~ filt
80− (flop desks)
49+ %+ turn (flop desks)
81− %+ sort ~(tap in ~(key by tyr.prep))
83− ?: |(=(a %kids) =(b %base)) &
84− ?: |(=(a %base) =(b %kids)) |
86 |=(syd=@tas (report-vat prep our now syd verb))
50 |=(syd=@tas (report-vat prep our now syd verb))
87− =/ deks=(list [=desk =zest wic=(set weft)])
51+ =/ deks
89− %+ sort ~(tap by tyr.prep)
53+ %+ sort
90− |= [[a=desk *] [b=desk *]]
54+ (sort ~(tap in -.prep) |=([[a=@ *] b=@ *] !(aor a b)))
91− ?: |(=(a %kids) =(b %base)) &
55+ |=([[a=@ *] [b=@ *]] ?|(=(a %kids) =(b %base)))
92− ?: |(=(a %base) =(b %kids)) |
56+ %+ skip ~(tap in -.prep)
93− (aor b a)
57+ |=([syd=@tas *] =(~ (find ~[syd] desks)))
96− ^- (unit [=desk =zest wic=(set weft)])
97− ?~ got=(~(get by tyr.prep) des)
100 ?: =(filt %blocking)
58 ?: =(filt %blocking)
101− =/ base-weft=(unit weft)
59+ =/ base-wic
102− %- ~(rep in wic:(~(got by tyr.prep) %base))
60+ %+ sort ~(tap by wic:(~(got by -.prep) %base))
103− |= [=weft out=(unit weft)]
61+ |=([[* a=@ud] [* b=@ud]] (gth a b))
106− ?: (lth num.weft num.u.out)
109− ?~ base-weft ~['%base already up-to-date']
62+ ?~ base-wic ~[leaf+"%base already up-to-date"]
110 =/ blockers=(list desk)
63 =/ blockers=(list desk)
112− ^- (list desk)
65+ %+ skip ~(tap in -.prep)
114− |= [=desk =zest wic=(set weft)]
66+ |= [* [zest=@tas wic=(set weft)]]
116− ?. =(%live zest)
67+ ?. =(zest %live) &
118− ?: (~(has in wic) u.base-weft)
68+ (~(has in wic) i.base-wic)
120− `desk
69+ |=([syd=desk *] syd)
122− ?~ blockers ~['No desks blocking upgrade']
70+ ?~ blockers ~[leaf+"No desks blocking upgrade, run |bump to apply"]
71+ :- [%rose [" %" "To unblock upgrade run |suspend %" ""] blockers]
126− :~ 'These desks are blocking upgrade to [%zuse '
127− (scot %ud num.u.base-weft)
130− %+ turn blockers
73+ %+ turn (flop blockers)
131 |=(syd=desk (report-vat prep our now syd verb))
74 |=(syd=desk (report-vat prep our now syd verb))
135 ?+ filt !!
78 ?+ filt !!
137 %+ skip deks
81 %+ skip deks
138− |= [syd=desk *]
82+ |=([syd=desk *] =(ud:.^(cass %cw /[ego]/[syd]/[wen]) 0))
139− ?~ got=(~(get by cone.prep) our syd)
144 %+ skim deks
85 %+ skim deks
@@ -149,152 +90,107 @@
149 |= [syd=@tas [zest=@tas *]]
90 |= [syd=@tas [zest=@tas *]]
150 ?| =(syd %kids)
91 ?| =(syd %kids)
151 =(zest %live)
92 =(zest %live)
152− ?~ got=(~(get by cone.prep) our syd)
93+ =(ud:.^(cass %cw /[ego]/[syd]/[wen]) 0)
157 %exists-not
96 %exists-not
158 %+ skim deks
97 %+ skim deks
159− |= [syd=desk *]
98+ |=([syd=desk *] =(ud:.^(cass %cw /[ego]/[syd]/[wen]) 0))
160− ?~ got=(~(get by cone.prep) our syd)
164 |=([syd=desk *] (report-vat prep our now syd verb))
100 |=([syd=desk *] (report-vat prep our now syd verb))
165:: +report-vat: report on a single desk installation
101:: +report-vat: report on a single desk installation
167++ report-vat
103++ report-vat
168− |= $: $: tyr=rock:tire =cone sor=(map desk (pair ship desk))
104+ |= $: $: tyr=rock:tire =cone sor=(map desk [ship desk])
169 zyn=(map [desk ship desk] sync-state)
105 zyn=(map [desk ship desk] sync-state)
171 our=ship now=@da syd=desk verb=?
107 our=ship now=@da syd=desk verb=?
173− |^ ^- tang
109+ ^- tang
110+ =- :: hack to force wrapped rendering
112+ :: edg=6 empirically prevents dedent
116+ |=([a=tape b=(list @t)] [(crip a) b])
174 =/ ego (scot %p our)
119 =/ ego (scot %p our)
175 =/ wen (scot %da now)
120 =/ wen (scot %da now)
176− ?. ((sane %tas) syd)
121+ =+ .^(=cass %cw /[ego]/[syd]/[wen])
177− ~[(cat 3 'insane desk: %' syd)]
122+ ?: =(ud.cass 0)
178− ?. (~(has by cone) our syd)
179− ~[(cat 3 'desk does not yet exist: %' syd)]
123+ leaf+"desk does not yet exist: {<syd>}"
180− =/ hash .^(@uv %cz /[ego]/[syd]/[wen])
181 ?: =(%kids syd)
124 ?: =(%kids syd)
125+ =+ .^(hash=@uv %cz /[ego]/[syd]/[wen])
182− ~[(cat 3 '%kids %cz hash: ' (scot %uv hash))]
126+ leaf+"%kids %cz hash: {<hash>}"
183− =/ kel-path /[ego]/[syd]/[wen]/sys/kelvin
128+ /[ego]/[syd]/[wen]/sys/kelvin
184 ?. .^(? %cu kel-path)
129 ?. .^(? %cu kel-path)
185− ~[(cat 3 'bad desk: %' syd)]
130+ leaf+"bad desk: {<syd>}"
186 =+ .^(=waft %cx kel-path)
131 =+ .^(=waft %cx kel-path)
132+ :+ %rose ["" "{<syd>}" "::"]
134+ =/ hash .^(@uv %cz /[ego]/[syd]/[wen])
189 ?~ s=(~(get by sor) syd)
136 ?~ s=(~(get by sor) syd)
191 ?~ z=(~(get by zyn) syd u.s)
138 ?~ z=(~(get by zyn) syd u.s)
193− `[p.u.s q.u.s [kid let]:u.z]
140+ `[-.u.s +.u.s +.u.z]
194 =/ meb=(list @uv)
141 =/ meb=(list @uv)
195− ?~ sink ~[hash]
142+ ?~ sink [hash]~
198− /[ego]/[syd]/[wen]/base/(scot %p her.u.sink)/[sud.u.sink]
143+ (mergebase-hashes our syd now her.u.sink sud.u.sink)
200− |=(=tako .^(@uv %cs /[ego]/[syd]/[wen]/hash/(scot %uv tako)))
201 =/ dek (~(got by tyr) syd)
144 =/ dek (~(got by tyr) syd)
203 ?- zest.dek
146 ?- zest.dek
204− %live 'running'
147+ %live "running"
205− %dead 'suspended'
148+ %dead "suspended"
206− %held 'suspended until next update'
149+ %held "suspended until next update"
208− =/ kul=cord (print-wefts (waft-to-wefts waft))
154+ ~(tap in (waft-to-wefts:clay waft))
209− =/ ese=cord
155+ |= [a=weft b=weft]
210− ?:(.^(? %cx /[ego]//[wen]/esse/[syd]) 'yes' 'no')
156+ ?: =(lal.a lal.b)
211− =/ pax=path /(scot %p our)/[syd]/(scot %da now)
157+ (lte num.a num.b)
160+ (welp " {<[lal num]:weft>}" tape)
213− :~ '::'
162+ =/ cut=(list tape) (turn meb truncate-hash)
214− =+ .^(exist=? cu+(weld pax /desk/bill))
163+ =/ len (lent cut)
215− ?. exist ' /desk/bill: missing'
164+ =/ base-hash
216− =+ .^(dudes=(list dude:gall) cx+(weld pax /desk/bill))
165+ ?: =(0 len) "~"
217− (cat 3 ' /desk/bill: ' (crip "{<dudes>}"))
166+ ?: =(1 len) (head cut)
218− (cat 3 ' pending updates: ' (print-wefts wic.dek))
167+ "~[{`tape`(zing (join " " `(list tape)`cut))}]"
219− (cat 3 ' source ship: ' ?~(sink '~' (scot %p her.u.sink)))
168+ :~ leaf/"/sys/kelvin: {kul}"
169+ leaf/"base hash ends in: {base-hash}"
170+ leaf/"%cz hash ends in: {(truncate-hash hash)}"
220− (cat 3 ' app status: ' sat)
171+ leaf/"app status: {sat}"
221− (cat 3 ' essential desk: ' ese)
172+ leaf/"pending updates: {<`(list [@tas @ud])`~(tap in wic.dek)>}"
222− (cat 3 ' %cz hash ends in: ' (print-shorthash hash))
223− (cat 3 ' /sys/kelvin: ' (print-wefts (waft-to-wefts waft)))
227− =/ [on=(list @tas) of=(list @tas)]
175+ =/ [on=(list [@tas ?]) of=(list [@tas ?])]
228− =/ [on=(list @tas) of=(list @tas)]
229− %- ~(rep by ren:(~(got by cone) our syd))
176+ =/ =dome (~(got by cone) our syd)
230− |= [[=dude:gall is-on=?] on=(list @tas) of=(list @tas)]
177+ (skid ~(tap by ren.dome) |=([* ?] +<+))
231− ?: is-on
178+ :~ leaf/"/sys/kelvin: {kul}"
232− [[dude on] of]
179+ leaf/"base hash: {?.(=(1 (lent meb)) <meb> <(head meb)>)}"
233− [on [dude of]]
180+ leaf/"%cz hash: {<hash>}"
234− [(sort on aor) (sort of aor)]
181+ ::
235− :~ '::'
182+ leaf/"app status: {sat}"
236− (cat 3 ' pending updates: ' (print-wefts wic.dek))
183+ leaf/"force on: {<(sort (turn on head) aor)>}"
237− %^ cat 3 ' kids desk: ' ?~ sink '~'
184+ leaf/"force off: {<(sort (turn of head) aor)>}"
238− ?~ kid.u.sink '~'
185+ ::
239− (cat 3 '%' u.kid.u.sink)
240− (cat 3 ' source aeon: ' ?~(sink '~' (scot %ud let.u.sink)))
241− (cat 3 ' source desk: ' ?~(sink '~' (cat 3 '%' sud.u.sink)))
242− (cat 3 ' source ship: ' ?~(sink '~' (scot %p her.u.sink)))
243− (cat 3 ' updates: ' ?~(sink 'local' 'remote'))
244− %^ cat 3 ' publishing ship: ' ?~ got=(get-publisher our syd now)
186+ leaf/"publishing ship: {?~(sink <~> <(get-publisher our syd now)>)}"
245− '~'
187+ leaf/"updates: {?~(sink "local" "remote")}"
246− (scot %p u.got)
188+ leaf/"source ship: {?~(sink <~> <her.u.sink>)}"
247− ::
189+ leaf/"source desk: {?~(sink <~> <sud.u.sink>)}"
248− (cat 3 ' force off: ' (print-agents of))
190+ leaf/"source aeon: {?~(sink <~> <let.u.sink>)}"
249− (cat 3 ' force on: ' (print-agents on))
191+ leaf/"kids desk: {?~(sink <~> ?~(kid.u.sink <~> <u.kid.u.sink>))}"
250− (cat 3 ' app status: ' sat)
192+ leaf/"pending updates: {<`(list [@tas @ud])`~(tap in wic.dek)>}"
251− (cat 3 ' essential desk: ' ese)
253− (cat 3 ' %cz hash: ' (scot %uv hash))
254− (cat 3 ' base hash: ' (print-mergebases meb))
255− (cat 3 ' /sys/kelvin: ' (print-wefts (waft-to-wefts waft)))
263− %+ roll (sort ~(tap in wefts) aor)
266− (rap 3 '[%' lal.weft ' ' (scot %ud num.weft) ']' ~)
267− (rap 3 out ' [%' lal.weft ' ' (scot %ud num.weft) ']' ~)
272− (crip ((v-co:co 5) (end [0 25] hash)))
275− |= hashes=(list @uv)
281− %+ roll `(list @uv)`hashes
282− |= [hash=@uv out=@t]
284− (print-shorthash hash)
285− (rap 3 out ' ' (print-shorthash hash) ~)
288− |= agents=(list @tas)
292− %+ roll `(list @tas)`agents
293− |= [agent=@tas out=@tas]
296− (rap 3 out ' %' agent ~)
298:: +report-kids: non-vat cz hash report for kids desk
194:: +report-kids: non-vat cz hash report for kids desk
300++ report-kids
196++ report-kids
@@ -304,9 +200,9 @@
304 =/ ego (scot %p our)
200 =/ ego (scot %p our)
305 =/ wen (scot %da now)
201 =/ wen (scot %da now)
306 ?. (~(has in .^((set desk) %cd /[ego]//[wen])) syd)
202 ?. (~(has in .^((set desk) %cd /[ego]//[wen])) syd)
307− 'no %kids desk'
203+ leaf/"no %kids desk"
308 =+ .^(hash=@uv %cz /[ego]/[syd]/[wen])
204 =+ .^(hash=@uv %cz /[ego]/[syd]/[wen])
309− (cat 3 '%kids %cz hash: ' (scot %uv hash))
205+ leaf/"%kids %cz hash: {<hash>}"
310:: +read-bill-foreign: read /desk/bill from a foreign desk
206:: +read-bill-foreign: read /desk/bill from a foreign desk
312++ read-bill-foreign
208++ read-bill-foreign
@@ -366,8 +262,8 @@
366 =/ her (scot %p her)
262 =/ her (scot %p her)
367 =/ ego (scot %p our)
263 =/ ego (scot %p our)
368 =/ wen (scot %da now)
264 =/ wen (scot %da now)
369− %+ turn .^((list tako) %cs /[ego]/[syd]/[wen]/base/[her]/[sud])
265+ %+ turn .^((list tako) %cs ~[ego syd wen %base her sud])
370− |=(=tako .^(@uv %cs /[ego]/[syd]/[wen]/hash/(scot %uv tako)))
266+ |=(=tako .^(@uv %cs ~[ego syd wen %hash (scot %uv tako)]))
373 =, enjs:format
269 =, enjs:format