@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
13 lines • 904 B
TypeScript
/** Hidden fd 1/fd 2 output above this size is dropped, so a child printing forever cannot fill the disk (#2815). */
export declare const HIDDEN_OUTPUT_LOG_MAX_BYTES: number;
/**
* Keeps the debug log under `maxBytes` while fd 1 and fd 2 are redirected into it: past the cap the
* file is cut back to its most recent tail behind one marker line. The redirected descriptors are
* opened for append, so writers keep appending at the new end. Returns whether it cut.
*/
export declare function capHiddenOutputLog(logPath: string, maxBytes?: number): boolean;
/** Load the fd-level capture once, before the first takeover; a no-op where it is unsupported. */
export declare function prepareInteractiveStderrCapture(): Promise<void>;
export declare function takeOverInteractiveStderr(): void;
export declare function restoreInteractiveStderr(): void;
//# sourceMappingURL=interactive-stderr-guard.d.ts.map