webui: the unit script takes --send (#1576)
Row 83. scripts/webui-service.sh render and install take --send, only
with the full preview set; otherwise the script refuses before writing
anything. With --send the rendered ExecStart ends in --send; renders
without it are byte-identical to the base. status says whether the
installed unit sends. The script header, install message, README and
TOOLS.md carry the decision 102 start wording: Jason or Mos starts and
restarts the Console, no other agent.
Dewey's round 1, candidate manifest f764cd9e, base d13b9300. Approved
by Darkwing (27721) and Filbert (27722). Sage's gate green 04:07:30Z to
04:10:47Z.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+14
-7
@@ -246,17 +246,22 @@ scripts/webui-service.sh install [--dir DIR] [--no-reload] [FLAGS]
|
||||
scripts/webui-service.sh uninstall [--dir DIR] [--no-reload]
|
||||
scripts/webui-service.sh status [--dir DIR]
|
||||
# FLAGS: [--port N] [--business ID] [--board URL]
|
||||
# [--public-host NAME --auth-header HEADER --allow-user ID]
|
||||
# [--public-host NAME --auth-header HEADER --allow-user ID [--send]]
|
||||
```
|
||||
|
||||
The systemd user unit `mosaic-webui.service` runs the Console,
|
||||
`node packages/webui/src/cli.mjs serve`, with serve's flags as given:
|
||||
`--port` defaults to 7332 (7330 is the operator's own Console), and the
|
||||
preview set goes all three or none. The template is
|
||||
preview set goes all three or none. `--send` (row 83) goes only with the
|
||||
preview set and is refused otherwise (exit 1, nothing written); ExecStart
|
||||
then ends with `--send`, and the Console needs the system config at start
|
||||
(`--send needs the bus configured`, exit 2). Without `--send` the unit is
|
||||
read-only. The template is
|
||||
`packages/webui/systemd/mosaic-webui.service.in`. `install` writes a temp
|
||||
file, renames it and runs `systemctl --user daemon-reload`; `uninstall`
|
||||
refuses while the unit is active; `status` prints the unit state and
|
||||
`GET /healthz` on the installed port. Each value is held to a plain
|
||||
refuses while the unit is active; `status` prints the unit state, whether
|
||||
the installed unit sends, and `GET /healthz` on the installed port. Each
|
||||
value is held to a plain
|
||||
character set the unit can carry (no space, `%`, `$`, quote, backslash,
|
||||
`&` or `|`) and refused otherwise. The unit sets no `MOSAIC_*`, `CLAUDE*`,
|
||||
`CODEX*` or `PI_*` variable. Serve's exit 2 (usage, config, or a port
|
||||
@@ -264,9 +269,11 @@ already in use) is not restarted.
|
||||
|
||||
There is no start, stop, enable or restart verb. The Console reads the bus
|
||||
through the human transport, so whoever starts it holds the human's
|
||||
capability; an agent starting it, even through systemd, works around the
|
||||
human proof (lead decisions 62 and 94). Jason starts it from his own shell:
|
||||
`systemctl --user enable --now mosaic-webui`.
|
||||
capability. Jason starts and restarts it
|
||||
(`systemctl --user enable --now mosaic-webui`), and so may Mos under lead
|
||||
decision 102, which accepts that sends from a Console Mos started enter the
|
||||
trail as Jason (`human-cli`). Any other agent starting it, even through
|
||||
systemd, works around the human proof (lead decisions 62 and 94).
|
||||
Exit codes: `0` ok · `1` failed or refused · `4` usage.
|
||||
|
||||
## Discord connector (`scripts/discord.sh`)
|
||||
|
||||
Reference in New Issue
Block a user