landscape,interface: use new %kiln base-hash scry

This commit is contained in:
Ted Blackman 2021-07-20 21:55:39 +03:00
parent 2125d0e45d
commit bd3e452a42
3 changed files with 2 additions and 27 deletions

View File

@ -3,7 +3,7 @@ import BaseApi from './base';
export default class LocalApi extends BaseApi<StoreState> {
getBaseHash() {
this.scry<string>('file-server', '/clay/base/hash').then((baseHash) => {
this.scry<string>('hood', '/kiln/base-hash').then((baseHash) => {
this.store.handleEvent({ data: { baseHash } });
});
}

View File

@ -331,14 +331,7 @@
==
::
++ on-leave on-leave:def
++ on-peek
|= =path
^- (unit (unit cage))
?+ path (on-peek:def path)
[%x %clay %base %hash ~]
=/ versions (base-hash:version [our now]:bowl)
``hash+!>(?~(versions 0v0 (end [0 25] i.versions)))
==
++ on-peek on-peek:def
++ on-agent on-agent:def
++ on-fail on-fail:def
--

View File

@ -1,18 +0,0 @@
|%
++ base-hash
|= [our=@p now=@da]
^- (list @uv)
=+ .^ ota=(unit [=ship =desk =aeon:clay])
%gx /(scot %p our)/hood/(scot %da now)/kiln/ota/noun
==
?~ ota
~
=/ parent (scot %p ship.u.ota)
=/ takos
.^ (list tako:clay) %cs
/(scot %p our)/home/(scot %da now)/base/[parent]/[desk.u.ota]
==
%+ turn takos
|= =tako:clay
.^(@uv %cs /(scot %p our)/home/(scot %da now)/hash/(scot %uv tako))
--