@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
24 lines • 1.52 kB
TypeScript
/**
* The lifecycle supervisor's own program for bundled installs (senpi#3743).
*
* A bundled install used to start every supervisor through `cli.js --internal-rpc-host-supervisor`,
* which evaluates `main()`'s whole static graph (builtin extensions, provider catalog, TUI) before it
* reaches the route: ~70 MB resident per supervisor, and the desktop runs one per opened thread. The
* build emits this module as `dist/bundle/host-supervisor.js`, a self-contained file holding only the
* supervisor graph (`test/supervisor-import-graph.test.ts` keeps it that way).
*
* Run as a program, it performs the part of the CLI preamble a supervisor relied on, in the same order:
* the cwd guard, the process title and agent markers, silenced process warnings, and the brand read
* before it is scrubbed so the host child inherits the same environment as before. The argv keeps the
* `--internal-rpc-host-supervisor` sentinel, so tools that recognise a supervisor by its command line
* still do. Imported (the import-graph probe), it does nothing.
*
* A supervisor started from a runtime snapshot claims that snapshot with its own pid, as `cli.js` did
* for it: it respawns its host child through the snapshot's `cli.js`, so a prune by a later upgrade
* must not remove the snapshot while the host child is down between two generations.
*/
import "./host-startup-beacon.ts";
import "../../valid-cwd.ts";
import "../../private-fds.ts";
//# sourceMappingURL=host-supervisor-entry.d.ts.map