mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-12 22:46:11 +03:00
garden: version treaty, docket
This commit is contained in:
parent
cf5f444458
commit
f3f13b1261
1
pkg/bitcoin/mar/docket-0.hoon
Symbolic link
1
pkg/bitcoin/mar/docket-0.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../garden-dev/mar/docket-0.hoon
|
@ -1 +0,0 @@
|
|||||||
../../garden-dev/mar/docket.hoon
|
|
1
pkg/bitcoin/mar/glob-0.hoon
Symbolic link
1
pkg/bitcoin/mar/glob-0.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../base-dev/mar/glob-0.hoon
|
@ -1 +0,0 @@
|
|||||||
../../base-dev/mar/glob.hoon
|
|
1
pkg/bitcoin/sur/hark-store.hoon
Symbolic link
1
pkg/bitcoin/sur/hark-store.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../garden-dev/sur/hark-store.hoon
|
@ -133,9 +133,7 @@
|
|||||||
~| [%glob-unavailable requested=hash have=have]
|
~| [%glob-unavailable requested=hash have=have]
|
||||||
?> =(hash have)
|
?> =(hash have)
|
||||||
:_ state
|
:_ state
|
||||||
:~ [%give %fact ~[path] %glob !>(`glob`glob.chad.charge)]
|
(fact-init-kick:io (glob:cg:cc glob.chad.charge))
|
||||||
[%give %kick ~[path] ~]
|
|
||||||
==
|
|
||||||
==
|
==
|
||||||
[cards this]
|
[cards this]
|
||||||
::
|
::
|
||||||
@ -163,8 +161,7 @@
|
|||||||
::
|
::
|
||||||
[%x %charges ~]
|
[%x %charges ~]
|
||||||
:- ~ :- ~
|
:- ~ :- ~
|
||||||
:- %charge-update
|
%- charge-update:cg:cc
|
||||||
!> ^- charge-update
|
|
||||||
:- %initial
|
:- %initial
|
||||||
%- ~(gas by *(map desk charge))
|
%- ~(gas by *(map desk charge))
|
||||||
%+ turn ~(tap by charges)
|
%+ turn ~(tap by charges)
|
||||||
@ -391,6 +388,15 @@
|
|||||||
++ def ~(. (default-agent state %|) bowl)
|
++ def ~(. (default-agent state %|) bowl)
|
||||||
::
|
::
|
||||||
++ hash-glob sham
|
++ hash-glob sham
|
||||||
|
++ cg
|
||||||
|
|%
|
||||||
|
++ glob |=(g=^glob glob-0+!>(g))
|
||||||
|
++ docket |=(d=^docket docket-0+!>(docket))
|
||||||
|
++ charge-update |=(u=^charge-update charge-update+!>(u))
|
||||||
|
++ kiln-uninstall |=(=desk kiln-uninstall+!>(desk))
|
||||||
|
++ kiln-install
|
||||||
|
|=([here=desk her=ship there=desk] kiln-install+!>([here her there]))
|
||||||
|
--
|
||||||
::
|
::
|
||||||
++ handle-http-request
|
++ handle-http-request
|
||||||
|= [eyre-id=@ta inbound-request:eyre]
|
|= [eyre-id=@ta inbound-request:eyre]
|
||||||
@ -538,7 +544,7 @@
|
|||||||
=- [%pass /write/[desk] %arvo %c %info -]~
|
=- [%pass /write/[desk] %arvo %c %info -]~
|
||||||
%+ foal:space:userlib
|
%+ foal:space:userlib
|
||||||
/(scot %p our.bowl)/[desk]/(scot %da now.bowl)/desk/docket
|
/(scot %p our.bowl)/[desk]/(scot %da now.bowl)/desk/docket
|
||||||
=- [%docket !>(`docket`-)]
|
%- docket:cg
|
||||||
docket.charge(glob-reference.href [(hash-glob glob) %ames our.bowl])
|
docket.charge(glob-reference.href [(hash-glob glob) %ames our.bowl])
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
@ -639,13 +645,14 @@
|
|||||||
==
|
==
|
||||||
++ add-fact
|
++ add-fact
|
||||||
=/ =charge (~(got by charges) desk)
|
=/ =charge (~(got by charges) desk)
|
||||||
(fact:io charge-update+!>([%add-charge desk (get-light-charge charge)]) /charges ~)
|
=- (fact:io - /charges ~)
|
||||||
++ del-fact (fact:io charge-update+!>([%del-charge desk]) /charges ~)
|
(charge-update:cg %add-charge desk (get-light-charge charge))
|
||||||
|
++ del-fact (fact:io (charge-update:cg %del-charge desk) /charges ~)
|
||||||
++ install
|
++ install
|
||||||
|= [=ship remote=^desk]
|
|= [=ship remote=^desk]
|
||||||
(poke-our:(pass /install) %hood kiln-install+!>([desk ship remote]))
|
(poke-our:(pass /install) %hood (kiln-install:cg desk ship remote))
|
||||||
++ uninstall
|
++ uninstall
|
||||||
(poke-our:(pass /uninstall) %hood kiln-uninstall+!>(desk))
|
(poke-our:(pass /uninstall) %hood (kiln-uninstall:cg desk))
|
||||||
++ new-docket
|
++ new-docket
|
||||||
|= d=^docket
|
|= d=^docket
|
||||||
%+ ~(put by charges) desk
|
%+ ~(put by charges) desk
|
||||||
@ -681,8 +688,9 @@
|
|||||||
:~ (watch-our:(pass (glob-wire ref)) %spider /thread-result/[tid])
|
:~ (watch-our:(pass (glob-wire ref)) %spider /thread-result/[tid])
|
||||||
(poke-our:(pass (glob-wire ref)) %spider cage)
|
(poke-our:(pass (glob-wire ref)) %spider cage)
|
||||||
==
|
==
|
||||||
++ docket-exists .^(? %cu (scry:io desk /desk/docket))
|
++ docket-loc `path`/desk/docket-0
|
||||||
++ docket .^(^docket %cx (scry:io desk /desk/docket))
|
++ docket-exists .^(? %cu (scry:io desk docket-loc))
|
||||||
|
++ docket .^(^docket %cx (scry:io desk docket-loc))
|
||||||
--
|
--
|
||||||
--
|
--
|
||||||
|
|
||||||
|
@ -99,10 +99,10 @@
|
|||||||
=/ =ship (slav %p i.t.path)
|
=/ =ship (slav %p i.t.path)
|
||||||
=* desk i.t.t.path
|
=* desk i.t.t.path
|
||||||
?: =(our.bowl ship)
|
?: =(our.bowl ship)
|
||||||
:_(this (fact-init:io treaty+!>((~(got by sovereign) desk)))^~)
|
:_(this (fact-init:io (treaty:cg:cc (~(got by sovereign) desk)))^~)
|
||||||
?^ treat=(~(get by treaties) [ship desk])
|
?^ treat=(~(get by treaties) [ship desk])
|
||||||
:_ this
|
:_ this
|
||||||
(fact-init:io treaty+!>(u.treat))^~
|
(fact-init:io (treaty:cg:cc u.treat))^~
|
||||||
?> =(our.bowl src.bowl)
|
?> =(our.bowl src.bowl)
|
||||||
=. direct (~(put in direct) [ship desk])
|
=. direct (~(put in direct) [ship desk])
|
||||||
:_(this (drop ~(safe-watch tr:cc [ship desk])))
|
:_(this (drop ~(safe-watch tr:cc [ship desk])))
|
||||||
@ -134,13 +134,12 @@
|
|||||||
%+ skim ~(tap by treaties)
|
%+ skim ~(tap by treaties)
|
||||||
|= [ref=[^ship desk] =treaty]
|
|= [ref=[^ship desk] =treaty]
|
||||||
(~(has in alliance) ref)
|
(~(has in alliance) ref)
|
||||||
``(treaty-update:cg:ca %ini allied)
|
``(treaty-update:cg:ca:cc %ini allied)
|
||||||
::
|
::
|
||||||
[%x %treaty @ @ ~]
|
[%x %treaty @ @ ~]
|
||||||
=/ =ship (slav %p i.t.t.path)
|
=/ =ship (slav %p i.t.t.path)
|
||||||
=* desk i.t.t.t.path
|
=* desk i.t.t.t.path
|
||||||
=/ =treaty (~(got by treaties) [ship desk])
|
``(treaty:cg:cc (~(got by treaties) [ship desk]))
|
||||||
``treaty+!>(treaty)
|
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ on-agent
|
++ on-agent
|
||||||
@ -226,7 +225,6 @@
|
|||||||
[%sovereign @ ~]
|
[%sovereign @ ~]
|
||||||
=* desk i.t.wire
|
=* desk i.t.wire
|
||||||
(take-sovereign desk)
|
(take-sovereign desk)
|
||||||
|
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ take-sovereign
|
++ take-sovereign
|
||||||
@ -303,9 +301,9 @@
|
|||||||
++ wire /sovereign/[desk]
|
++ wire /sovereign/[desk]
|
||||||
++ pass ~(. ^pass wire)
|
++ pass ~(. ^pass wire)
|
||||||
++ path /treaty/(scot %p our.bowl)/[desk]
|
++ path /treaty/(scot %p our.bowl)/[desk]
|
||||||
++ get-docket .^(docket:docket %cx (scry:io desk /desk/docket))
|
++ get-docket .^(docket:docket %cx (scry:io desk /desk/docket-0))
|
||||||
++ warp
|
++ warp
|
||||||
(warp-our:pass desk `[%next %x da+now.bowl /desk/docket])
|
(warp-our:pass desk `[%next %x da+now.bowl /desk/docket-0])
|
||||||
++ kick
|
++ kick
|
||||||
(kick:io path ~)
|
(kick:io path ~)
|
||||||
++ give
|
++ give
|
||||||
@ -315,13 +313,3 @@
|
|||||||
(poke-our:pass %hood kiln-permission+!>([desk / &]))
|
(poke-our:pass %hood kiln-permission+!>([desk / &]))
|
||||||
--
|
--
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1
pkg/garden/mar/docket-0.hoon
Symbolic link
1
pkg/garden/mar/docket-0.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../garden-dev/mar/docket-0.hoon
|
@ -1 +0,0 @@
|
|||||||
../../garden-dev/mar/docket.hoon
|
|
1
pkg/garden/mar/glob-0.hoon
Symbolic link
1
pkg/garden/mar/glob-0.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../base-dev/mar/glob-0.hoon
|
@ -1 +0,0 @@
|
|||||||
../../base-dev/mar/glob.hoon
|
|
1
pkg/landscape/mar/docket-0.hoon
Symbolic link
1
pkg/landscape/mar/docket-0.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../garden-dev/mar/docket-0.hoon
|
@ -1 +0,0 @@
|
|||||||
../../garden-dev/mar/docket.hoon
|
|
1
pkg/landscape/mar/glob-0.hoon
Symbolic link
1
pkg/landscape/mar/glob-0.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../base-dev/mar/glob-0.hoon
|
@ -1 +0,0 @@
|
|||||||
../../base-dev/mar/glob.hoon
|
|
1
pkg/webterm/mar/docket-0.hoon
Symbolic link
1
pkg/webterm/mar/docket-0.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../garden-dev/mar/docket-0.hoon
|
@ -1 +0,0 @@
|
|||||||
../../garden-dev/mar/docket.hoon
|
|
1
pkg/webterm/mar/glob-0.hoon
Symbolic link
1
pkg/webterm/mar/glob-0.hoon
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../base-dev/mar/glob-0.hoon
|
@ -1 +0,0 @@
|
|||||||
../../base-dev/mar/glob.hoon
|
|
Loading…
Reference in New Issue
Block a user