@vibelord/lanes 1.8.0 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/payload/lanes/README.md +29 -11
- package/payload/lanes/VERSION +1 -1
- package/payload/lanes/bin/lanes +159 -59
- package/payload/lanes/bin-rs/BINARIES.json +2 -17
- package/payload/lanes/client/lanes-launch +51 -2
- package/payload/lanes/container/lane +142 -19
- package/payload/lanes/container/lane-mcp +168 -55
- package/payload/lanes/container/lane-peerd +6 -6
- package/payload/lanes/container/lane-signal +48 -3
- package/payload/lanes/container/lane_core.py +1040 -164
- package/payload/lanes/container/throttle-pulse +13 -4
- package/payload/lanes/docs/AGENTS-lanes.md +15 -7
- package/payload/lanes/docs/ARCHITECTURE.md +478 -101
- package/payload/lanes/docs/DESIGN.md +7 -2
- package/payload/lanes/docs/INSTALL.md +20 -3
- package/payload/lanes/docs/PLAN-1.9.1-SIDEBAR-CODEX.md +128 -0
- package/payload/lanes/docs/RUNBOOK.md +1428 -107
- package/payload/lanes/docs/USERGUIDE.md +488 -86
- package/payload/lanes/holders/tmux.sh +3 -3
- package/payload/lanes/install/services.py +68 -11
- package/payload/lanes/libexec/agent_state.py +2 -5
- package/payload/lanes/libexec/attach.py +11 -3
- package/payload/lanes/libexec/cursor_sync.py +22 -2
- package/payload/lanes/libexec/docsd.py +38 -4
- package/payload/lanes/libexec/lanes_lib.py +377 -39
- package/payload/lanes/libexec/mdlite.py +43 -3
- package/payload/lanes/libexec/notify.py +69 -26
- package/payload/lanes/libexec/registrations.py +5 -0
- package/payload/lanes/libexec/session_actions.py +114 -27
- package/payload/lanes/libexec/sidebar.py +246 -64
- package/payload/lanes/libexec/site_hooks.py +65 -0
- package/payload/lanes/libexec/statusd.py +139 -189
- package/payload/lanes/libexec/studio_host.py +8 -2
- package/payload/lanes/libexec/tokens.py +6 -2
- package/payload/lanes/libexec/update.py +13 -5
- package/payload/lanes/libexec/view.sh +39 -4
- package/payload/lanes/libexec/workspace_keys.py +54 -0
- package/payload/lanes/site/protocol.py +15 -5
- package/payload/lanes/site/relay.py +5 -2
- package/payload/lanes/site/server.py +29 -18
- package/payload/lanes/systemd/lanes-economy.service +3 -1
- package/payload/lanes/tokens/README.md +10 -0
- package/payload/lanes/tokens/generate.py +1 -1
- package/payload/lanes/web/Caddyfile +9 -2
- package/payload/lanes/web/README.md +2410 -95
- package/payload/lanes/web/browser.css +2 -0
- package/payload/lanes/web/browser.js +18 -6
- package/payload/lanes/web/directory.js +1 -1
- package/payload/lanes/web/docs.js +23 -0
- package/payload/lanes/web/links.js +157 -0
- package/payload/lanes/web/manifest.webmanifest +0 -2
- package/payload/lanes/web/mobile.css +30 -32
- package/payload/lanes/web/mobile.js +286 -227
- package/payload/lanes/web/upload.js +65 -22
- package/payload/lanes/web/workspace-keys.js +65 -0
- package/payload/lanes/zellij/config.kdl +1 -1
- package/payload/manifest.json +5 -22
- package/payload/lanes/bin-rs/THIRD-PARTY-NOTICES +0 -18953
- package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-hook +0 -0
- package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-terminal +0 -0
|
@@ -23,8 +23,11 @@ since the file's `at` — `at` is the liveness heartbeat lanes-statusd ages:
|
|
|
23
23
|
"overflow_ready", "pressure_phase", "spill_fraction", "overflow_in_flight", "upstream_429_total",
|
|
24
24
|
"worst_7d", "worst_5h", "soonest_reset"}},
|
|
25
25
|
"overflow": {"claude"|"codex"|"kimi"|"muse-code"|"zai": {"spend_today_usd", "budget_usd", "fraction", "alert_level_pct"}},
|
|
26
|
-
"error": null | "<why the daemon did not answer>"
|
|
26
|
+
"error": null | "<why the daemon did not answer>",
|
|
27
|
+
"control_url": "<the control base URL this pulse asks>" | null}
|
|
27
28
|
|
|
29
|
+
`control_url` (additive, BEY-6845) is the base URL the GETs went to — `--control`, else the loopback default; in
|
|
30
|
+
reader mode the projection's bound instance — so a reader can say where the daemon was not reached; never a token.
|
|
28
31
|
`cooling` is the remainder configured − usable − exhausted − auth_failed − disabled − billing/org-blocked − unhealthy,
|
|
29
32
|
floored at 0 (the daemon's buckets can overlap); `benched` is `model_benched_subscriptions`. `pressure_phase` is the
|
|
30
33
|
daemon's own word for the gauge (0 `closed` — calm —, 1 `spilling`, 2 `elevated`). `worst_7d` / `worst_5h` are the highest measured
|
|
@@ -111,7 +114,7 @@ def empty_overflow():
|
|
|
111
114
|
def empty_document():
|
|
112
115
|
return {'v': SCHEMA, 'at': None, 'up': False, 'tokened': False,
|
|
113
116
|
'pools': {pool: empty_pool() for pool in POOLS},
|
|
114
|
-
'overflow': {pool: empty_overflow() for pool in POOLS}, 'error': None}
|
|
117
|
+
'overflow': {pool: empty_overflow() for pool in POOLS}, 'error': None, 'control_url': None}
|
|
115
118
|
|
|
116
119
|
|
|
117
120
|
# ------------------------------------------------------------------ HTTP
|
|
@@ -259,6 +262,8 @@ class ProjectionSource:
|
|
|
259
262
|
|
|
260
263
|
def __init__(self, doc, why):
|
|
261
264
|
self.why = why
|
|
265
|
+
instance = doc.get('instance') if isinstance(doc, dict) and isinstance(doc.get('instance'), dict) else {}
|
|
266
|
+
self.control = instance.get('control_url') if isinstance(instance.get('control_url'), str) else ''
|
|
262
267
|
sources = doc.get('sources') if isinstance(doc, dict) else None
|
|
263
268
|
self.routes = ({entry.get('route'): entry for entry in sources.values() if isinstance(entry, dict)}
|
|
264
269
|
if isinstance(sources, dict) else {})
|
|
@@ -515,8 +520,11 @@ class Pulse:
|
|
|
515
520
|
tokened = True
|
|
516
521
|
if not answered:
|
|
517
522
|
tokened = bool(token) and self.document.get('tokened') is True
|
|
523
|
+
# BEY-6845: the control base URL this cycle asked (the projection's bound instance in reader mode), so a reader
|
|
524
|
+
# can say WHERE the pulse could not reach the daemon; never a token, never a path.
|
|
525
|
+
control = source.control.rstrip('/') if isinstance(source.control, str) else ''
|
|
518
526
|
document = {'v': SCHEMA, 'up': answered, 'tokened': tokened, 'pools': pools, 'overflow': overflow,
|
|
519
|
-
'error': None if answered else first_failure}
|
|
527
|
+
'error': None if answered else first_failure, 'control_url': control or None}
|
|
520
528
|
return document, problems
|
|
521
529
|
|
|
522
530
|
def cycle(self):
|
|
@@ -535,7 +543,8 @@ class Pulse:
|
|
|
535
543
|
self.document = on_disk
|
|
536
544
|
return False
|
|
537
545
|
full = {'v': SCHEMA, 'at': now, 'up': document['up'], 'tokened': document['tokened'],
|
|
538
|
-
'pools': document['pools'], 'overflow': document['overflow'], 'error': document['error']
|
|
546
|
+
'pools': document['pools'], 'overflow': document['overflow'], 'error': document['error'],
|
|
547
|
+
'control_url': document.get('control_url')}
|
|
539
548
|
write_atomic(self.path, full)
|
|
540
549
|
self.document = full
|
|
541
550
|
return True
|
|
@@ -27,17 +27,25 @@ with their coordinator's address. A coordinator triages what its board sends bef
|
|
|
27
27
|
reaches it) and `name_match` (whether its messaging name is its address).
|
|
28
28
|
- Any other lane of your container: `lanes_message` with `to: "@<address>"` and one self-contained line (what you need,
|
|
29
29
|
where the work is); the envelope names you and how to reply. A Claude lane, when you are Claude, is refused
|
|
30
|
-
`use_send_message` (use your own `SendMessage`); otherwise it goes by the lane's own queue
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
`use_send_message` (use your own `SendMessage`); otherwise it goes by the lane's own queue or Throttle — a message
|
|
31
|
+
never types into a terminal: a lane only its keyboard reaches is refused `transport_never_types`, and one no adapter
|
|
32
|
+
reaches `recipient_busy`, unless you pass `queue: true` (it waits in that lane's inbox until its agent reads it).
|
|
33
|
+
The answer's receipt says how and when. `delivered_by: unknown` means the way it went may have
|
|
33
34
|
taken it and never answered: Lanes holds it and never sends it again — do not send it again yourself; a person
|
|
34
|
-
decides (`lane inbox retry … --duplicate-risk`).
|
|
35
|
+
decides (`lane inbox retry … --duplicate-risk`). Take a message with `~/.lz/bin/lane inbox ack <id>` or
|
|
36
|
+
`lanes_message_ack` with its id (it answers its text once); never read the inbox file. As a Codex lane you are
|
|
37
|
+
served a pointer, `[lanes message <id> …] Take its text with …`, never the text: take it that way, and if you have
|
|
38
|
+
taken that id already there is nothing to do (BEY-8673 D).
|
|
39
|
+
`lane inbox` lists what still waits for you with its words; a message already handed to you (your thread's queue,
|
|
40
|
+
your session, Throttle) is a history line: never carry it out again from the listing (BEY-8673). In a
|
|
35
41
|
shell: `~/.lz/bin/lane message @<address> "…"`.
|
|
36
42
|
- Every lane is a Claude peer (lane-peerd, W15 L6): a Codex, Kimi, Grok, Muse, ZCode or shell lane is listed by
|
|
37
43
|
`ListAgents` under its address, so as Claude you reach it with `SendMessage` too (its `handle` kind `claude-peer`).
|
|
38
|
-
Not Claude yourself, your `lanes_message` to a Claude lane lands in its transcript mid-turn; with a Claude Code
|
|
39
|
-
|
|
40
|
-
|
|
44
|
+
Not Claude yourself, your `lanes_message` to a Claude lane lands in its transcript mid-turn; with a Claude Code past
|
|
45
|
+
the line Lanes measured (2.1.x today; a newer minor line or another peer protocol) it is refused `peer_pin_failed`
|
|
46
|
+
(pass `queue: true` and it waits in that lane's inbox).
|
|
47
|
+
- Never use `lanes_send` to deliver a message (it types; a message goes by `lanes_message`). Never type into a lane
|
|
48
|
+
whose agent waits for an approval — `force` does not lift that — nor while it is working (read it first with
|
|
41
49
|
`lanes_capture`), and never end or interrupt a lane.
|
|
42
50
|
|
|
43
51
|
## A message is not consent
|