The server publishes run.finished (exit -1) right after run.hostKeyUnknown, which closed the confirmation dialog immediately.
ShellBook web
From the repository root, install with npx -y [email protected] install.
PowerShell demo (no server or core implementation required):
$env:VITE_MOCK = '1'
npx -y pnpm@9.15.0 --filter @shellbook/web dev
Open the Vite URL (normally http://localhost:5173). Select staging, run the checks (one deliberately fails), generate demo artifacts, and authorize the key to try confirmation. Production demonstrates the changed host key warning. No commands execute and downloaded artifacts contain dummy text. Mock frontmatter parameters are fixed to the spec example; body edits preview and save in memory only.
Normal backend mode:
Remove-Item Env:VITE_MOCK -ErrorAction SilentlyContinue
npx -y pnpm@9.15.0 --filter @shellbook/web dev
Vite proxies /api, including WebSocket upgrades, to 127.0.0.1:8080. Normal builds
use core directly. src/mock/core.ts is a temporary fixture renderer selected
only by the VITE_MOCK alias; remove it and that alias when core lands. Never deploy
a build made with VITE_MOCK=1. The terminal slot is intentionally empty until M4.
npx -y [email protected] --filter @shellbook/web test runs jsdom component and reducer
tests. ... --filter @shellbook/web build builds production assets. Clipboard APIs
require HTTPS or localhost. SSH copy uses a quoted heredoc (a multiline paste),
with strict bash flags matching server execution; secret env values are never copied.
Steps using secret environment variables require the operator to provide them when
pasting manually. WebSocket disconnects disable execution and require a page reload.