The CLI's side of harness spec 3.12.0, for a terminal emulator with LLeMbas
built in. Without LLEMBAS_TTY nothing here applies.
- src/terminal/env.ts: the terminal's environment; `lembas --version --json`.
- src/terminal/uservars.ts, tui.ts: the TUI's state as user vars (OSC 1337
SetUserVar), on start and on change, emptied on every way out.
- src/terminal/context.ts, session.ts, command.ts: the context file — read
once, removed, checked — as one <terminal> block on the person's next
message; `--terminal-context` for the TUI and `lembas run`,
`/terminal-context` in the TUI; a chip in the transcript.
- src/tool/terminal.ts, src/terminal/pane.ts: terminal_run and terminal_read
through the terminal's own program, as an argument list.
- src/permission/evaluate.ts: a typed command is judged as bash would judge
it, then asked every time outside auto mode, never always.
- src/terminal/complete.ts: `lembas complete --shell`.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>