mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
Merge f9135d594b
into release/next-js
This commit is contained in:
commit
1136daedfc
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:2773b91958c18c7537cb568e01bcf83056447bfef981c5ed4b6688cc3ab69936
|
oid sha256:b8511ea6cbf3c8400d51788b926f3e8e453b042f7b32595005c9673dc1fe25fa
|
||||||
size 10739521
|
size 10804829
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
/- glob
|
/- glob
|
||||||
/+ default-agent, verb, dbug
|
/+ default-agent, verb, dbug
|
||||||
|%
|
|%
|
||||||
++ hash 0v2.9br5i.hl1e5.cda79.75gdi.jj5hc :: DO NOT MOVE FROM LINE 8
|
++ hash 0v5.6jf0v.sc7t3.1kjf9.25gku.9rumj
|
||||||
+$ state-0 [%0 hash=@uv glob=(unit (each glob:glob tid=@ta))]
|
+$ state-0 [%0 hash=@uv glob=(unit (each glob:glob tid=@ta))]
|
||||||
+$ all-states
|
+$ all-states
|
||||||
$% state-0
|
$% state-0
|
||||||
|
@ -24,6 +24,6 @@
|
|||||||
<div id="portal-root"></div>
|
<div id="portal-root"></div>
|
||||||
<script src="/~landscape/js/channel.js"></script>
|
<script src="/~landscape/js/channel.js"></script>
|
||||||
<script src="/~landscape/js/session.js"></script>
|
<script src="/~landscape/js/session.js"></script>
|
||||||
<script src="/~landscape/js/bundle/index.2eee573a41d00825e88a.js"></script>
|
<script src="/~landscape/js/bundle/index.14fd2cdba13859ad42a4.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,15 +3,14 @@
|
|||||||
:::: /hoon/code/hood/gen
|
:::: /hoon/code/hood/gen
|
||||||
::
|
::
|
||||||
/? 310
|
/? 310
|
||||||
::
|
/- *sole
|
||||||
::::
|
/+ *generators
|
||||||
::
|
:- %ask
|
||||||
:- %say
|
|
||||||
|= $: [now=@da eny=@uvJ bec=beak]
|
|= $: [now=@da eny=@uvJ bec=beak]
|
||||||
[arg=?(~ [%reset ~]) ~]
|
[arg=?(~ [%reset ~]) ~]
|
||||||
==
|
==
|
||||||
=* our p.bec
|
=* our p.bec
|
||||||
:- %helm-code
|
^- (sole-result [%helm-code ?(~ %reset)])
|
||||||
?~ arg
|
?~ arg
|
||||||
=/ code=tape
|
=/ code=tape
|
||||||
%+ slag 1
|
%+ slag 1
|
||||||
@ -20,11 +19,23 @@
|
|||||||
=/ step=tape
|
=/ step=tape
|
||||||
%+ scow %ud
|
%+ scow %ud
|
||||||
.^(@ud %j /(scot %p our)/step/(scot %da now)/(scot %p our))
|
.^(@ud %j /(scot %p our)/step/(scot %da now)/(scot %p our))
|
||||||
%- %- slog
|
::
|
||||||
:~ [%leaf code]
|
%+ print 'use |code %reset to invalidate this and generate a new code'
|
||||||
[%leaf (weld "current step=" step)]
|
%+ print leaf+(weld "current step=" step)
|
||||||
[%leaf "use |code %reset to invalidate this and generate a new code"]
|
%+ print leaf+code
|
||||||
==
|
(produce [%helm-code ~])
|
||||||
~
|
::
|
||||||
?> =(%reset -.arg)
|
?> =(%reset -.arg)
|
||||||
%reset
|
%+ print 'continue?'
|
||||||
|
%+ print 'warning: resetting your code closes all web sessions'
|
||||||
|
%+ prompt
|
||||||
|
[%& %project "y/n: "]
|
||||||
|
%+ parse
|
||||||
|
;~ pose
|
||||||
|
(cold %.y (mask "yY"))
|
||||||
|
(cold %.n (mask "nN"))
|
||||||
|
==
|
||||||
|
|= reset=?
|
||||||
|
?. reset
|
||||||
|
no-product
|
||||||
|
(produce [%helm-code %reset])
|
||||||
|
@ -114,6 +114,15 @@
|
|||||||
state-3
|
state-3
|
||||||
state-4
|
state-4
|
||||||
==
|
==
|
||||||
|
:: +diplomatic: only renegotiate if versions changed
|
||||||
|
::
|
||||||
|
:: If %.n please leave note as to why renegotiation necessary
|
||||||
|
::
|
||||||
|
:: - Fixing incorrectly held unversioned subscriptions
|
||||||
|
::
|
||||||
|
++ diplomatic
|
||||||
|
^- ?
|
||||||
|
%.n
|
||||||
::
|
::
|
||||||
++ default
|
++ default
|
||||||
|* [pull-hook=* =config]
|
|* [pull-hook=* =config]
|
||||||
@ -239,6 +248,7 @@
|
|||||||
=/ kick=(list card)
|
=/ kick=(list card)
|
||||||
?: ?& =(min-version.config prev-min-version.old)
|
?: ?& =(min-version.config prev-min-version.old)
|
||||||
=(version.config prev-version.old)
|
=(version.config prev-version.old)
|
||||||
|
diplomatic
|
||||||
==
|
==
|
||||||
~
|
~
|
||||||
(poke-self:pass kick+!>(%kick))^~
|
(poke-self:pass kick+!>(%kick))^~
|
||||||
@ -439,6 +449,7 @@
|
|||||||
?~ tan tr-core
|
?~ tan tr-core
|
||||||
?. versioned
|
?. versioned
|
||||||
(tr-ap-og:tr-cleanup |.((on-pull-nack:og rid u.tan)))
|
(tr-ap-og:tr-cleanup |.((on-pull-nack:og rid u.tan)))
|
||||||
|
%- (slog leaf+"versioned nack for {<rid>} in {<dap.bowl>}" u.tan)
|
||||||
=/ pax
|
=/ pax
|
||||||
(kick-mule:virt rid |.((on-pull-kick:og rid)))
|
(kick-mule:virt rid |.((on-pull-kick:og rid)))
|
||||||
?~ pax tr-failed-kick
|
?~ pax tr-failed-kick
|
||||||
@ -463,18 +474,18 @@
|
|||||||
:: subscription
|
:: subscription
|
||||||
tr-core
|
tr-core
|
||||||
(tr-suspend-pub-ver min-version.config)
|
(tr-suspend-pub-ver min-version.config)
|
||||||
=/ =vase
|
=/ =^cage
|
||||||
(convert-to:ver cage)
|
(convert-to:ver cage)
|
||||||
=/ =wire
|
=/ =wire
|
||||||
(make-wire /store)
|
(make-wire /store)
|
||||||
=+ resources=(~(gas in *(set resource)) (resource-for-update:og vase))
|
=+ resources=(~(gas in *(set resource)) (resource-for-update:og q.cage))
|
||||||
?> ?| no-validate.config
|
?> ?| no-validate.config
|
||||||
?& (check-src resources)
|
?& (check-src resources)
|
||||||
(~(has in resources) rid)
|
(~(has in resources) rid)
|
||||||
== ==
|
== ==
|
||||||
=/ =mark
|
=/ =mark
|
||||||
(append-version:ver version.config)
|
(append-version:ver version.config)
|
||||||
(tr-emit (~(poke-our pass wire) store-name.config mark vase))
|
(tr-emit (~(poke-our pass wire) store-name.config cage))
|
||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ tr-kick
|
++ tr-kick
|
||||||
|
@ -73,6 +73,16 @@
|
|||||||
state-1
|
state-1
|
||||||
state-2
|
state-2
|
||||||
==
|
==
|
||||||
|
:: +diplomatic: only renegotiate if versions changed
|
||||||
|
::
|
||||||
|
:: If %.n please leave note as to why renegotiation necessary
|
||||||
|
::
|
||||||
|
:: - Fixing incorrectly held unversioned subscriptions
|
||||||
|
::
|
||||||
|
++ diplomatic
|
||||||
|
^- ?
|
||||||
|
%.n
|
||||||
|
::
|
||||||
++ push-hook
|
++ push-hook
|
||||||
|* =config
|
|* =config
|
||||||
$_ ^|
|
$_ ^|
|
||||||
@ -221,6 +231,7 @@
|
|||||||
|= [prev-min-version=@ud prev-version=@ud]
|
|= [prev-min-version=@ud prev-version=@ud]
|
||||||
?: ?& =(min-version.config prev-min-version)
|
?: ?& =(min-version.config prev-min-version)
|
||||||
=(prev-version version.config)
|
=(prev-version version.config)
|
||||||
|
diplomatic
|
||||||
==
|
==
|
||||||
:: bail on kick if we didn't change versions
|
:: bail on kick if we didn't change versions
|
||||||
~
|
~
|
||||||
@ -291,23 +302,21 @@
|
|||||||
?. (supported:ver mark)
|
?. (supported:ver mark)
|
||||||
:_ this
|
:_ this
|
||||||
(fact-init-kick:io version+!>(min-version.config))
|
(fact-init-kick:io version+!>(min-version.config))
|
||||||
=/ =vase
|
|
||||||
(convert-to:ver mark (initial-watch:og t.t.t.t.t.t.path resource))
|
|
||||||
:_ this
|
:_ this
|
||||||
[%give %fact ~ mark vase]~
|
=- [%give %fact ~ -]~
|
||||||
|
(convert-to:ver mark (initial-watch:og t.t.t.t.t.t.path resource))
|
||||||
::
|
::
|
||||||
++ unversioned
|
++ unversioned
|
||||||
?> ?=([%ship @ @ *] t.path)
|
?> ?=([%ship @ @ *] t.path)
|
||||||
?. =(min-version.config 0)
|
|
||||||
~& >>> "unversioned req from: {<src.bowl>}, nooping"
|
|
||||||
`this
|
|
||||||
=/ =resource
|
=/ =resource
|
||||||
(de-path:resource t.path)
|
(de-path:resource t.path)
|
||||||
=/ =vase
|
=/ =vase
|
||||||
%+ convert-to:ver update-mark.config
|
|
||||||
(initial-watch:og t.t.t.t.path resource)
|
(initial-watch:og t.t.t.t.path resource)
|
||||||
:_ this
|
:_ this
|
||||||
[%give %fact ~ update-mark.config vase]~
|
?. =(min-version.config 0)
|
||||||
|
~& >>> "unversioned req from: {<src.bowl>}, nooping"
|
||||||
|
~
|
||||||
|
[%give %fact ~ (convert-to:ver update-mark.config vase)]~
|
||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ on-agent
|
++ on-agent
|
||||||
@ -461,10 +470,7 @@
|
|||||||
|= [fact-ver=@ud paths=(set path)]
|
|= [fact-ver=@ud paths=(set path)]
|
||||||
=/ =mark
|
=/ =mark
|
||||||
(append-version:ver fact-ver)
|
(append-version:ver fact-ver)
|
||||||
=/ =^cage
|
(fact:io (convert-from:ver mark q.cage) ~(tap in paths))
|
||||||
:- mark
|
|
||||||
(convert-from:ver mark q.cage)
|
|
||||||
(fact:io cage ~(tap in paths))
|
|
||||||
:: TODO: deprecate
|
:: TODO: deprecate
|
||||||
++ unversioned
|
++ unversioned
|
||||||
?. =(min-version.config 0) ~
|
?. =(min-version.config 0) ~
|
||||||
@ -474,18 +480,15 @@
|
|||||||
%- ~(gas in *(set path))
|
%- ~(gas in *(set path))
|
||||||
(turn (incoming-subscriptions prefix) tail)
|
(turn (incoming-subscriptions prefix) tail)
|
||||||
?: =(0 ~(wyt in unversioned)) ~
|
?: =(0 ~(wyt in unversioned)) ~
|
||||||
=/ =^cage
|
(fact:io (convert-from:ver update-mark.config q.cage) ~(tap in unversioned))^~
|
||||||
:- update-mark.config
|
|
||||||
(convert-from:ver update-mark.config q.cage)
|
|
||||||
(fact:io cage ~(tap in unversioned))^~
|
|
||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ forward-update
|
++ forward-update
|
||||||
|= =cage
|
|= =cage
|
||||||
^- (list card:agent:gall)
|
^- (list card:agent:gall)
|
||||||
=- lis
|
=- lis
|
||||||
=/ vas
|
=/ vas=vase
|
||||||
(convert-to:ver cage)
|
q:(convert-to:ver cage)
|
||||||
%+ roll (resource-for-update q.cage)
|
%+ roll (resource-for-update q.cage)
|
||||||
|= [rid=resource [lis=(list card:agent:gall) tf-vas=(unit vase)]]
|
|= [rid=resource [lis=(list card:agent:gall) tf-vas=(unit vase)]]
|
||||||
^- [(list card:agent:gall) (unit vase)]
|
^- [(list card:agent:gall) (unit vase)]
|
||||||
|
@ -29,11 +29,12 @@
|
|||||||
&((gte ver min) (lte ver version))
|
&((gte ver min) (lte ver version))
|
||||||
::
|
::
|
||||||
++ convert-to
|
++ convert-to
|
||||||
|= =cage
|
|= [=mark =vase]
|
||||||
^- vase
|
^- cage
|
||||||
?: =(p.cage current-version)
|
:- current-version
|
||||||
q.cage
|
?: =(mark current-version)
|
||||||
((tube-to p.cage) q.cage)
|
vase
|
||||||
|
((tube-to mark) vase)
|
||||||
::
|
::
|
||||||
++ tube-to
|
++ tube-to
|
||||||
|= =mark
|
|= =mark
|
||||||
@ -44,10 +45,11 @@
|
|||||||
.^(tube:clay %cc (scry:io %home /[current-version]/[mark]))
|
.^(tube:clay %cc (scry:io %home /[current-version]/[mark]))
|
||||||
::
|
::
|
||||||
++ convert-from
|
++ convert-from
|
||||||
|= =cage
|
|= [=mark =vase]
|
||||||
^- vase
|
^- cage
|
||||||
?: =(p.cage current-version)
|
:- mark
|
||||||
q.cage
|
?: =(mark current-version)
|
||||||
((tube-from p.cage) q.cage)
|
vase
|
||||||
|
((tube-from mark) vase)
|
||||||
--
|
--
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user