@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
15 lines • 943 B
TypeScript
export declare const TEST_CONTROL_DIR_ENV = "SENPI_TOOL_CHILD_TEST_CONTROL_DIR";
export type TestSwitch = "HOLD_LAUNCH_ACK" | "HOLD_HEARTBEAT" | "HOLD_LAUNCH_PROOF" | "STOP_AFTER_SPAWN" | "DROP_CONTROL_BEFORE_ACK" | "SKIP_ACK_WAIT" | "IGNORE_CANCEL" | "STOP_SELF" | "EXIT_MID_JOB" | "EXIT_ON_START" | "HANG_BEFORE_READY" | "BLOCK_READER";
export interface TestControls {
readonly enabled: (name: TestSwitch) => boolean;
readonly value: (name: TestSwitch) => string | undefined;
readonly released: (file: string) => Promise<void>;
/** Calls `onFile` once per control file whose name starts with `prefix`, until `close()`. */
readonly watchPrefix: (prefix: string, onFile: (name: string) => void) => PrefixWatch;
}
export interface PrefixWatch {
readonly ready: Promise<void>;
close(): void;
}
export declare function readTestControls(env: NodeJS.ProcessEnv): TestControls;
//# sourceMappingURL=test-controls.d.ts.map