@vibelord/lanes 1.7.6 → 1.8.0
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/README.md +13 -9
- package/package.json +1 -1
- package/payload/lanes/README.md +2 -2
- package/payload/lanes/VERSION +1 -1
- package/payload/lanes/bin/lanes +26 -4
- package/payload/lanes/bin/lanes-site-serve +4 -8
- package/payload/lanes/bin-rs/BINARIES.json +17 -2
- package/payload/lanes/bin-rs/THIRD-PARTY-NOTICES +18953 -0
- 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
- package/payload/lanes/client/lanes-launch +4 -2
- package/payload/lanes/container/lane-mcp +1 -1
- package/payload/lanes/container/lane_core.py +4 -3
- package/payload/lanes/docs/ARCHITECTURE.md +38 -9
- package/payload/lanes/docs/RUNBOOK.md +123 -53
- package/payload/lanes/docs/USERGUIDE.md +68 -9
- package/payload/lanes/install/lanes-host.service.in +25 -0
- package/payload/lanes/install/services.py +243 -0
- package/payload/lanes/libexec/agent_state.py +3 -1
- package/payload/lanes/libexec/attach.py +139 -21
- package/payload/lanes/libexec/cutover.py +24 -4
- package/payload/lanes/libexec/doctor_lanes2.py +3 -3
- package/payload/lanes/libexec/native.sh +2 -2
- package/payload/lanes/libexec/native_bin.py +595 -109
- package/payload/lanes/libexec/shadow.py +51 -3
- package/payload/lanes/libexec/sidebar.py +208 -35
- package/payload/lanes/libexec/sidebar_status.py +190 -80
- package/payload/lanes/libexec/update.py +12 -3
- package/payload/lanes/site/protocol.py +24 -9
- package/payload/lanes/site/relay.py +292 -0
- package/payload/lanes/site/server.py +31 -3
- package/payload/lanes/web/README.md +6 -6
- package/payload/lanes/web/directory.js +10 -8
- package/payload/lanes/web/generated/README.md +85 -21
- package/payload/lanes/web/generated/lanes2_protocol.d.mts +4190 -188
- package/payload/lanes/web/generated/lanes2_protocol.mjs +14218 -351
- package/payload/lanes/web/inbox.js +8 -6
- package/payload/manifest.json +22 -5
package/README.md
CHANGED
|
@@ -125,14 +125,17 @@ options of the last install (remembered in `~/.config/lanes/install-options`; a
|
|
|
125
125
|
The package version equals `lanes/VERSION`; bump both together. `prepack` builds `payload/` from `git ls-files lanes`
|
|
126
126
|
(tests excluded) and refuses uncommitted `lanes/` changes.
|
|
127
127
|
|
|
128
|
-
Lanes 2.0 native binaries (
|
|
129
|
-
from the same commit, `<dir>/x86_64-unknown-linux-musl/lanes-<name>` plus
|
|
130
|
-
each binary under `payload/lanes/bin-rs/` and lists `{name, target,
|
|
131
|
-
`bin-rs/BINARIES.json` and in `manifest.binaries`, all inside the payload
|
|
132
|
-
exactly one line `<name> <version> (commit <40-hex>)` naming itself and
|
|
133
|
-
local build (`<HEAD>-dirty`, `<HEAD>+local`), a second commit,
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
Lanes 2.0 native binaries (from 1.8.0: `lanes-terminal` and `lanes-hook`): with `LANES_RS_ARTIFACTS=<dir>` — the
|
|
129
|
+
fetched result of one buildctl job built from the same commit, `<dir>/x86_64-unknown-linux-musl/lanes-<name>` plus
|
|
130
|
+
`<dir>/THIRD-PARTY-NOTICES` — the build ships each binary under `payload/lanes/bin-rs/` and lists `{name, target,
|
|
131
|
+
sha256, size, commit}` in the staged `bin-rs/BINARIES.json` and in `manifest.binaries`, all inside the payload
|
|
132
|
+
digest. Each binary's `--version` must print exactly one line `<name> <version> (commit <40-hex>)` naming itself and
|
|
133
|
+
`HEAD`, with nothing after the hash; a dirty or local build (`<HEAD>-dirty`, `<HEAD>+local`), a second commit,
|
|
134
|
+
another commit or none is refused before anything is written. The job builds them with `LANES_BUILD_COMMIT` set to
|
|
135
|
+
that full commit (`LANES_BUILD_COMMIT=$(git rev-parse HEAD) cargo build --locked --release --target
|
|
136
|
+
x86_64-unknown-linux-musl -p <crate> --bin <name>`); without it a binary prints `<name> <version>` alone, and any
|
|
137
|
+
other value fails its build. Without the variable the list is empty and the build is today's. `--out DIR` (tests
|
|
138
|
+
only; refused under npm's pack and publish lifecycles) builds somewhere other than `payload/`.
|
|
136
139
|
|
|
137
140
|
```sh
|
|
138
141
|
cd npm/lanes && npm test
|
|
@@ -143,7 +146,8 @@ scripts/publish.sh --dry-run # then without --dry-run
|
|
|
143
146
|
`LANES_NPM_ENV_FILE` / `LANES_NPM_TOKEN_KEY`) and hands it to npm through the environment only. It publishes with
|
|
144
147
|
`--access public`, as `publishConfig.access` says; `npm test` pins both, and fails when a bundled site profile carries
|
|
145
148
|
more than its public host key, tailnet name and tailnet address, any shipped file looks like a key or token, or a
|
|
146
|
-
shipped file names an e-mail address outside the example domains
|
|
149
|
+
shipped file names an e-mail address outside the example domains (one file is exempt: `bin-rs/THIRD-PARTY-NOTICES`,
|
|
150
|
+
which reproduces third-party licence and copyright notices as written).
|
|
147
151
|
|
|
148
152
|
Access is a setting of the whole package, not of one version: the first public publish makes every version already
|
|
149
153
|
on the registry publicly installable too, including 1.0.0–1.0.4, which were published for `@vibelord` members only.
|
package/package.json
CHANGED
package/payload/lanes/README.md
CHANGED
|
@@ -144,8 +144,8 @@ The installer starts an empty catalog safely; it does not assume anyone's contai
|
|
|
144
144
|
| See which agents need you | The sidebar sorts **Needs you** (◆ approval, ✗ error, ◇ waiting for a prompt), **Working** (▸) and **Done** (✓, until you open the lane) above the rest; the header counts them in the same glyphs (`◆1 ◇2 ▸6 ✓1`, zeros left out; `N lanes` when no lane runs an agent). The queue holds still: each section keeps the order its lanes entered it, a lane moves up a section at once but down only after the new state has held 8 s (leaving Needs you) or 5 s (leaving Working or Done), so an agent that asks again within seconds of an answer does not jump; the Needs you and Working headers stay drawn, `(0)` included, and the cursor stays on its lane ([how](docs/ARCHITECTURE.md#attention-queue)) |
|
|
145
145
|
| Read a sidebar row | `▌` cursor · agent glyph · `›` the lane this pane shows (`²`/`³`: shown in pane 2/3; `▲` pinned) · the name (`·` per other viewer, `…` when clipped) · an **age column** on every row (agent turn, else last output: `45s`, ` 3m`, ` 2h`, ` 4d`; amber in **Needs you**) · stream glyph · one tail cell by priority (`?` not observed right now > `⚠` starving: producing output but no request for over 10 min, or a 429 > `↓` downgraded > `$` mostly paid — the economy cells need the opt-in economy poller; a dim `⚠`/`↓` is a frozen last-known figure, not a live alarm) · `×` close. `⋮ N more` ends a list that continues below |
|
|
146
146
|
| End an unregistered session and its jobs | **×** beside the session, or select it and press `x`: ` › close ‘name’ — y⏎ confirm · Esc cancel`; `y` arms (` — ⏎ confirm`), Enter closes; any other key cancels (typed text closes nothing unless it is `x`, `y`, Enter in a row) |
|
|
147
|
-
| Every sidebar key | `?` replaces the list with the key sheet until the next key (that key only closes it): the short form of the [user guide's table](docs/USERGUIDE.md#the-sidebar), first `lanes <installed> · view <running>`, then companion keys on one line (`J K`, `Tab S-Tab`, `+ U d`, `u z`, `
|
|
148
|
-
| Pin, hide | `p` pins the cursor lane (it leads its section, `▲`, and never falls below `⋮ N more`), `h` hides it, `o` shows the hidden lanes again (faint)
|
|
147
|
+
| Every sidebar key | `?` replaces the list with the key sheet until the next key (that key only closes it): the short form of the [user guide's table](docs/USERGUIDE.md#the-sidebar), first `lanes <installed> · view <running>`, then companion keys on one line (`J K`, `Tab S-Tab`, `+ U d`, `u z`, `R m`, `p o`, `h H`, `r i ?`; `d` shows the cursor lane's docs link, `i` folds the fleet block), ending with Ctrl–Alt–L, the chord that brings the keyboard to the sidebar from a lane. The footer legend says ` ⏎ open · / find · x close · ? keys`; one prompt at a time, in one shape on the desktop and the phone (` › close ‘name’ — y⏎ confirm · Esc cancel`, ` › rename ‘name’? ⏎ confirms · Esc` then ` › Rename: …█`, ` › Register as: …█` then ` › register ‘name’ — y⏎ confirm`) and a filter counts its matches (` /abc · 3 matches`). What an action says in the footer (` Closed sh`, ` Cancelled`, why it failed) stays 3 s or until your next action, not just until the next key. After an action — a close, rename, register, cancel, `Esc`, `r`, closing `?`, a click that opens no lane — the keyboard goes back to the lane, so what you type next reaches the lane, not the sidebar; a prompt, the filter and the armed upload strip keep it. A sentence typed into the sidebar is no command (1.7.7): three printable keys inside 0.3 s start a typing state that swallows the rest of the burst (` Typing? ⏎ opens the lane · Esc`), and a question a letter opened takes no Enter for 0.3 s ([guide](docs/USERGUIDE.md#the-sidebar)) |
|
|
148
|
+
| Pin, hide | `p` pins the cursor lane (it leads its section, `▲`, and never falls below `⋮ N more`), `h` then `Enter` hides it (` › hide ‘name’? ⏎ confirms · Esc`; any other key cancels), `o` shows the hidden lanes again (faint) — while they are hidden the list ends with `── hidden (n) · o shows them` —, `H` then `Enter` hides the whole workspace — its tab closes, its lanes keep running. They are yours, not the device's: every device you own follows your profile on its next tick; a session under **Unregistered** is never hidden ([guide](docs/USERGUIDE.md#the-sidebar)) |
|
|
149
149
|
| Jump to the next lane that needs you | `Tab` / `Shift-Tab` in the sidebar (cycles **Needs you** from the lane the pane shows; the pane title carries the counts and a lane that starts needing you raises one OSC 9 desktop notification on desktop layouts — `lanes-launch <device> --notify 0` (or `lanes attach <device> --notify 0` on the server) silences it for that device, live; `LANES_NOTIFY=0` in the shell that creates a view session does the same for it, see the [user guide](docs/USERGUIDE.md#9-appearance)) |
|
|
150
150
|
| Other workspaces that need you | The row above the footer rule: ` ◆1 Worlds · ◇2 Code` (blank and absent when none; panes of 18 rows or more) |
|
|
151
151
|
| What the fleet spends | With the opt-in economy poller ([RUNBOOK](docs/RUNBOOK.md#economy-projection-opt-in)) the same row is the fleet economy strip instead: ` $8.5k/16k 53% · F2 S1 · spill 76% · free 3/19` — overflow spend against the daily cap (amber at the alert level), new upstream 429s, this workspace's lanes by model tier (`F` fable, `O` opus, `S` sonnet, `H` haiku, `G` gpt), the pool's spill fraction, free accounts and the next 5 h reset, whole parts dropped from the end to fit; a leading `?` means the figures are frozen — the poller could not reach the daemon, or it stopped (no rewrite for over 3 min) |
|
package/payload/lanes/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.8.0
|
package/payload/lanes/bin/lanes
CHANGED
|
@@ -348,10 +348,11 @@
|
|
|
348
348
|
lanes studio-host re-key [--yes] [--dry-run]
|
|
349
349
|
after the owner revoked this machine: stop the Host, remove the machine key and its
|
|
350
350
|
dead enrolment, publish a NEW public key for the next deploy. Nothing without --yes
|
|
351
|
-
lanes rs install --from PATH --sha256 HEX | uninstall NAME | verify [--tree] | status | apply
|
|
352
|
-
Lanes 2.0 native binaries and site.conf
|
|
353
|
-
(libexec/native_bin.py; every
|
|
354
|
-
|
|
351
|
+
lanes rs install --from PATH --sha256 HEX | uninstall NAME | verify [--tree] | set COMPONENT MODE | status | apply
|
|
352
|
+
Lanes 2.0 native binaries and their site.conf requests LANES_RS_<COMPONENT>=MODE
|
|
353
|
+
(off|shadow|on; libexec/native_bin.py; every release default off before 2.0.0): place
|
|
354
|
+
or remove a locally built binary (sha256-verified; throttle-rc for HOST), check
|
|
355
|
+
binaries against their digests, write a request, show or apply the flags
|
|
355
356
|
lanes doctor full health check (every external call is bounded; includes the pressure summary), with
|
|
356
357
|
the lanes per create-recipe class (idempotent / attach-only / null / external /
|
|
357
358
|
retired-path), lane identity, numeric session names, crowded `default` sockets and
|
|
@@ -5516,6 +5517,10 @@ def cmd_doctor(_args):
|
|
|
5516
5517
|
else:
|
|
5517
5518
|
print(f'⚠ {hook} (Linear BEY-6912) — becomes a refusal after the O-3 installed witness (W20); '
|
|
5518
5519
|
'site.conf LANES_SITE_HOOK=refuse refuses it now')
|
|
5520
|
+
hooked = site_hook_replaced()
|
|
5521
|
+
if hooked and (L.STATE / 'flags' / 'native.client').exists():
|
|
5522
|
+
check(False, f'{hooked} while flags/native.client sends verbs to the Rust CLI (Linear BEY-6912)',
|
|
5523
|
+
'its native publish cannot see the hook; lanes rs apply removes the flag')
|
|
5519
5524
|
for ok, label, detail in L.transport_report(registry, L.read_json(L.STATE / 'containers.json') or {}):
|
|
5520
5525
|
check(ok, label, detail) # H1: no write transport, tmux_probe-only containers, the guests a board names
|
|
5521
5526
|
# Stale registry check: any terminals.json newer than the last sync? A lane's `source` is the container's
|
|
@@ -5567,6 +5572,11 @@ def cmd_doctor(_args):
|
|
|
5567
5572
|
print(f'⚠ legacy-sessions/ holds {len(legacy)} record{"s" if len(legacy) != 1 else ""} the retired legacy-shell '
|
|
5568
5573
|
f'tracker no longer reads: {", ".join(legacy[:5])}{" …" if len(legacy) > 5 else ""} — end those shells '
|
|
5569
5574
|
'in their containers by hand, then delete the records')
|
|
5575
|
+
# FC-E12: a feature switch value outside its grammar is refused flag_value_invalid (and read as off), and a
|
|
5576
|
+
# LANES_RS_ request `lanes rs apply` does not understand is ignored: doctor lists each as a ✗ (libexec/native_bin.py
|
|
5577
|
+
# doctor_problems; `lanes rs status` shows the same lines).
|
|
5578
|
+
for problem in libexec_module('native_bin').doctor_problems(L.site_conf()):
|
|
5579
|
+
check(False, 'site.conf Lanes 2.0 flags', problem)
|
|
5570
5580
|
status = L.read_json(L.STATE / 'status.json') or {}
|
|
5571
5581
|
age = time.time() - status.get('updated_at', 0)
|
|
5572
5582
|
check(age < 30, 'statusd heartbeat', f'{age:.0f}s old')
|
|
@@ -6022,6 +6032,18 @@ def site_hook_old():
|
|
|
6022
6032
|
'two lanes on one address refuse instead of being listed')
|
|
6023
6033
|
|
|
6024
6034
|
|
|
6035
|
+
def site_hook_replaced():
|
|
6036
|
+
"""Something (a site hook: rd-control's federation hook, Linear BEY-6912) replaced `lanes_lib.build_registry` in
|
|
6037
|
+
this process -> one line naming it, else None. The Rust CLI (the CLIENT component, flags/native.client) cannot see
|
|
6038
|
+
a hook that lives in the Python process, so its native publish would rewrite registry.json without what the hook
|
|
6039
|
+
folds in: such a host stays out of the I3 cohort (FC-G6; its native verbs also hand a federating host to this
|
|
6040
|
+
CLI, crates/lanes-terminal/src/cli/host.rs `federated`)."""
|
|
6041
|
+
if getattr(L.build_registry, '__module__', None) == L.__name__:
|
|
6042
|
+
return None
|
|
6043
|
+
who = getattr(L.build_registry, '__qualname__', None) or 'something'
|
|
6044
|
+
return f'{who} replaces lanes_lib.build_registry in this process'
|
|
6045
|
+
|
|
6046
|
+
|
|
6025
6047
|
def build_site_registry(previous, strict=True):
|
|
6026
6048
|
"""`L.build_registry(previous, strict=…)`, or the older call when a site hook replaced it (site_hook_old): then a
|
|
6027
6049
|
`strict=False` caller is told on stderr once, and a duplicate address raises as it did before 1.7.0 — the verb
|
|
@@ -3,13 +3,9 @@
|
|
|
3
3
|
# DM-LANES-SITE-ADAPTER). Its authorized_keys line:
|
|
4
4
|
# command="<home>/.local/share/lanes/current/bin/lanes-site-serve",restrict ssh-ed25519 AAAA... lanes-site@<aggregator>
|
|
5
5
|
# SSH_ORIGINAL_COMMAND is ignored: this key reaches the protocol and nothing else. stdin/stdout are the protocol.
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
6
|
+
# The Python reference server is the 2.0 lanes-site/1 server on every guest (final contract decision FC-X31): this
|
|
7
|
+
# wrapper always execs it, reads no flag file, and builds no native adapter (no lanesd exists). Once the guest's lanes
|
|
8
|
+
# host owns a domain the server relays to it (site/relay.py). Without site-packages or PYTHON* environment (-S -E),
|
|
9
|
+
# writing no bytecode (-B).
|
|
9
10
|
here=$(dirname -- "$0")
|
|
10
|
-
state=${LANES_STATE:-$HOME/.local/state/lanes}
|
|
11
|
-
if [ -e "$state/flags/rs-site" ]; then
|
|
12
|
-
printf '%s\n' '{"id":null,"err":{"code":"adapter_unavailable","human":"flags/rs-site names lanesd site-serve, which is not installed on this guest (W20): remove the flag to serve the Python adapter"}}'
|
|
13
|
-
exit 69
|
|
14
|
-
fi
|
|
15
11
|
exec python3 -S -E -B "$here/../site/server.py"
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "lanes.bin-rs/1",
|
|
3
|
-
"commit": "
|
|
4
|
-
"binaries": [
|
|
3
|
+
"commit": "e5bc8704b389d515dd283e0e393cb37694c19a5d",
|
|
4
|
+
"binaries": [
|
|
5
|
+
{
|
|
6
|
+
"name": "lanes-hook",
|
|
7
|
+
"target": "x86_64-unknown-linux-musl",
|
|
8
|
+
"sha256": "6259018bf2495e0add3298ac96f9ffb5da69dab9d9878a3b43e217f96d2a7823",
|
|
9
|
+
"size": 1250024,
|
|
10
|
+
"commit": "e5bc8704b389d515dd283e0e393cb37694c19a5d"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "lanes-terminal",
|
|
14
|
+
"target": "x86_64-unknown-linux-musl",
|
|
15
|
+
"sha256": "4f7a3ba8514658531a0cf6dd7fe19fb3972372e7d743518a38a9fa693093d159",
|
|
16
|
+
"size": 17161512,
|
|
17
|
+
"commit": "e5bc8704b389d515dd283e0e393cb37694c19a5d"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
5
20
|
}
|