Merge pull request #6670 from urbit/jb/vats-defaults

vats: add source ship, remove base hash from default output
This commit is contained in:
Ted Blackman 2023-06-15 11:26:42 -04:00 committed by GitHub
commit df86465bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -22,7 +22,7 @@
%- zing %- zing
%+ turn %+ turn
%+ sort %+ sort
=/ sed .^((set desk) %cd /(scot %p p.bec)/base/(scot %da now)) =/ sed .^((set desk) %cd /(scot %p p.bec)//(scot %da now))
(sort ~(tap in sed) |=([a=@ b=@] !(aor a b))) (sort ~(tap in sed) |=([a=@ b=@] !(aor a b)))
|=([a=desk b=desk] ?|(=(a %kids) =(b %base))) |=([a=desk b=desk] ?|(=(a %kids) =(b %base)))
|=(syd=desk (report-vat (report-prep p.bec now) p.bec now syd verb)) |=(syd=desk (report-vat (report-prep p.bec now) p.bec now syd verb))

View File

@ -159,16 +159,10 @@
|= [=weft =tape] |= [=weft =tape]
(welp " {<[lal num]:weft>}" tape) (welp " {<[lal num]:weft>}" tape)
?. verb ?. verb
=/ cut=(list tape) (turn meb truncate-hash)
=/ len (lent cut)
=/ base-hash
?: =(0 len) "~"
?: =(1 len) (head cut)
"~[{`tape`(zing (join " " `(list tape)`cut))}]"
:~ leaf/"/sys/kelvin: {kul}" :~ leaf/"/sys/kelvin: {kul}"
leaf/"base hash ends in: {base-hash}"
leaf/"%cz hash ends in: {(truncate-hash hash)}" leaf/"%cz hash ends in: {(truncate-hash hash)}"
leaf/"app status: {sat}" leaf/"app status: {sat}"
leaf/"source ship: {?~(sink <~> <her.u.sink>)}"
leaf/"pending updates: {<`(list [@tas @ud])`~(tap in wic.dek)>}" leaf/"pending updates: {<`(list [@tas @ud])`~(tap in wic.dek)>}"
== ==
:: ::