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