@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
16 lines (15 loc) • 695 B
TypeScript
export interface SandboxDeps {
/** Run one command; throws on failure. */
run: (file: string, args: string[], env: NodeJS.ProcessEnv) => void;
/** `ps` rows: pid and full command line. */
processes: () => {
pid: number;
command: string;
}[];
kill: (pid: number) => void;
}
/** Codex 0.158 leaves a detached `app-server --managed-daemon` (and its
* `pid-update-loop`) per HOME, reparented to init. Stop whatever a run left
* under `home`, then delete it. `codex app-server daemon stop` is the
* graceful path; processes whose command line names the home are the net. */
export declare function removeSandboxHome(home: string, deps?: SandboxDeps): void;