UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

24 lines • 1.55 kB
#!/usr/bin/env node // Order is load-bearing: the sandbox environment is restored before any module reads it, // then read-only metadata can answer before provider registration. Normal runs still // set up process identity and providers before loading the full CLI. import "./sandbox-env-setup.js"; // The coordinated-start stub reads its hand-off from the restored environment and releases its filler pipes // before the private descriptor table is adopted, so no filler release can close an adopted channel (senpi#4602). import "../modes/rpc/host-startup-beacon.js"; // The private descriptor table is captured right after that, before anything spawns. import "../private-fds.js"; import "../modes/rpc/internal-bootstrap.js"; import "../windows-power-throttling-startup.js"; import { dispatchAgentDirectoryCommand } from "../cli/agent-dir-command.js"; import { dispatchSessionOfPidCommand } from "../cli/session-of-pid-command.js"; import { dispatchKillGuardCommand } from "../cli/kill-guard-command.js"; // The compiled binary is the only executable its kill-guard shims can call (senpi#5349): it judges before any // agent-dir work, provider registration or engine import. await dispatchKillGuardCommand(process.argv.slice(2)); await dispatchAgentDirectoryCommand(process.argv.slice(2)); await dispatchSessionOfPidCommand(process.argv.slice(2)); // Documented lazy boundary: metadata queries must not register every provider just to choose a store. await import("./runtime-setup.js"); await import("../cli-main.js"); //# sourceMappingURL=cli.js.map