Optionalambient_Subscribes to events the engine originates on its own, which the daemon relays to every surface off the scrollback.
Receives each ambient event.
Function that unsubscribes.
Optionalcommand_Whether the caller runs inside a stopped command.
Optionalfile_Reads one ChRIS file's raw bytes, resolved against the session's
working directory. When the engine provides it, the daemon exposes a
token-gated /vfs HTTP route so browser surfaces can render file
content natively (images in a panel) instead of through the terminal
stream.
The file's path (absolute or cwd-relative).
The file's bytes.
Optionalfile_Opens one file's bytes as a stream. The seam behind GET /vfs when the
engine has it: a download is served as it arrives, with its length when
known, and never held whole in the daemon.
The file's path (absolute or cwd-relative).
The stream and its size when known.
Optionalfile_Writes bytes to one ChRIS path. The seam behind POST /vfs, which is
how a surface with no reach into a filesystem (a browser) delivers a
file the operator picked.
The destination path.
The content to write.
Optionaljoblets_The joblets running now (line &), for the heartbeat: what a restart
would end.
Them, by number.
Optionalline_Aborts a running command, cancellable or not (STOP).
Optionalid: stringOptionalline_Requests cancellation of a running command when it supports it.
Optionalid: string
The line, as the daemon named it.
True when the command accepted the request.
Computes completion candidates for a partial input line.
The input line up to the cursor.
The matching candidates and the prefix they complete.
Executes one input line, yielding one envelope per executed command.
The raw input line.
Optionaloptions: { id?: string; origin?: string }
The surface the line came from (what it lists is that surface's answer), and the daemon's name for the line, which its STOP names.
The envelopes of the executed commands, in order.
Optionalline_What a line holds of the session while it runs: the pieces it changes (none for a read), or 'all'. Lines holding nothing in common run side by side; an engine that cannot say runs every line alone.
The line.
Its pieces, or 'all'.
Optionalorigin_Forgets what a surface left behind (its last answer), when it has gone.
The surface's id.
Optionalregard_Returns the engine's retained regard, or null before the first indication.
The retained regard, or null.
Optionalregard_Notes a regard write relayed from a surface, retaining it as session truth engine-side. Optional: a daemon still retains and rebroadcasts regard on the wire without it.
The indicated address with its provenance.
Optionalsink_Installs where the engine's output goes from now on: a daemon's sink relays it to every attached surface, a terminal's writes it to stdout.
The sink.
Optionalsurface_Installs who the engine asks for what only a surface can give: a hidden prompt, a local editor, a host shell, a delivered file.
The surface.
Optionalwatch_Releases every watch one owner holds (its surface detached).
The owner whose watches end.
Optionalwatch_Opens or closes a liveness watch on a subject for one owner. Optional:
a daemon whose engine lacks it refuses watch messages.
The subject address (/proc/jobs/feed_N).
Who holds the watch (a surface id).
True to watch, false to release.
The subject's watch state, or null when not watchable.
The engine the daemon drives. Matches chell's
ChellEnginestructurally, so a real chell engine is assignable to it without calypso depending on chell.