@vibelord/lanes 1.7.7 → 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/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 +26 -4
- package/payload/lanes/docs/RUNBOOK.md +121 -52
- package/payload/lanes/docs/USERGUIDE.md +28 -0
- 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_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/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
|
}
|