@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
14 lines (13 loc) • 821 B
TypeScript
/** The test socket for this process: `phren-<kind>-test-<pid>`. */
export declare function testSocketName(kind?: string): string;
/** A detached shell that kills the server on `socket` and removes its socket
* files once `pid` is gone. Answers its own pid. */
export declare function startWatchdog(pid: number, binary: string, socket: string): number | undefined;
/** Registers the teardown of the server on `socket` before the test starts it.
* `stop` is idempotent and synchronous, so the exit hook can call it too. */
export declare function privateTmuxServer(binary: string, socket: string): {
stop: () => void;
};
/** Kills the servers and removes the sockets earlier test runs left behind:
* test sockets whose owning process is gone. */
export declare function sweepTestServers(binary?: string): string[];