UNPKG

@code-yeongyu/senpi

Version:

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

35 lines • 1.19 kB
import { type After, type LiveHandle, type MachineLifecycle } from "./live-handle.ts"; /** How long a kill waits for the process to end after the manager's stop (review L4); it then answers what it reached. */ export declare const MACHINE_TERMINAL_KILL_WAIT_MS = 5000; export type HandleRecord = Readonly<{ sender: string; state: MachineLifecycle; exitCode: number | null; startedMs: number; }>; export type SpawnAsk = Readonly<{ sender: string; command: string; cwd: string; env: Readonly<Record<string, string>>; cols?: number; rows?: number; }>; export declare class MachineTerminals { private manager; private readonly live; private readonly finished; private readonly retired; private readonly after; constructor(after: After); spawn(ask: SpawnAsk): Promise<LiveHandle>; get(id: string): LiveHandle | undefined; record(id: string): HandleRecord | undefined; ownerOf(id: string): string | undefined; pidOf(id: string): number | undefined; get running(): number; kill(h: LiveHandle): Promise<void>; dispose(): Promise<void>; private retire; } //# sourceMappingURL=machine-terminals.d.ts.map