@sjawhar/opencode-legion-envoy 1.53.3 → 1.55.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/package.json
CHANGED
|
@@ -59,23 +59,26 @@ command run `/legion-claim-controller` again.
|
|
|
59
59
|
This handshake lets the daemon redeliver held controller work. It does not turn the controller
|
|
60
60
|
into a state holder: daemon state and the Dispatch project remain authoritative.
|
|
61
61
|
|
|
62
|
-
### Started by the operator
|
|
63
|
-
|
|
64
|
-
When the daemon
|
|
65
|
-
|
|
66
|
-
[--daemon-url <
|
|
67
|
-
|
|
68
|
-
to a 0600 file under `LEGION_STATE_DIR`
|
|
69
|
-
beside the `gh` shim and the `legion`
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
62
|
+
### Started by the operator
|
|
63
|
+
|
|
64
|
+
When the daemon cannot open a terminal for you — the TypeScript daemon under `runtime: kubernetes`,
|
|
65
|
+
and the Go daemon under either runtime, since it launches no controller — nobody launched your
|
|
66
|
+
pane: the operator ran `legion controller start --config controller.yaml [--daemon-url <url>]` on
|
|
67
|
+
their own machine, and you are that foreground OMP session. The command fetched a fresh controller
|
|
68
|
+
secret from the daemon with the operator's token, wrote it to a 0600 file under `LEGION_STATE_DIR`
|
|
69
|
+
(`~/.local/state/legion/<project>-controller` by default) beside the `gh` shim and the `legion`
|
|
70
|
+
launcher, and started you with `LEGION_CONTROLLER=1` and the same environment a tmux controller pane
|
|
71
|
+
carries, so nothing changes in how you handle wakes. Under the TypeScript daemon the extension
|
|
72
|
+
claims the role and calls `/controller/ready` exactly as under tmux; under the Go daemon
|
|
73
|
+
(`LEGION_DAEMON_API=go` in your environment) it registers on `/legion/v1/claims/register` with the
|
|
74
|
+
secret, then claims the role. The daemon records you as `controllerLocator: {runtime, external:
|
|
75
|
+
true, sessionId, registeredAt}`, `runtime` being the daemon's own (`kubernetes`, or `tmux` under the
|
|
76
|
+
Go daemon). The TypeScript daemon reads your liveness from the Envoy role registry (the holder of
|
|
74
77
|
`legion-<project>-controller` and its `last_seen`), not from a pane: keep the session running.
|
|
75
78
|
Exiting it leaves the project without a controller until the operator runs the command again —
|
|
76
|
-
the daemon logs `controller not registered; run legion controller start` once per
|
|
77
|
-
interval and launches nothing itself. `legion state` and `legion status <KEY>
|
|
78
|
-
over `LEGION_DAEMON_URL
|
|
79
|
+
the TypeScript daemon logs `controller not registered; run legion controller start` once per
|
|
80
|
+
boot-timeout interval and launches nothing itself. `legion state` and `legion status <KEY>
|
|
81
|
+
<status>` work here over `LEGION_DAEMON_URL`. A second `legion controller start` replaces you: it
|
|
79
82
|
mints a new secret, so your grants stop working and the role moves to the new session.
|
|
80
83
|
|
|
81
84
|
## Deployment instructions
|