UNPKG

@code-yeongyu/senpi

Version:

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

12 lines • 545 B
import type { StderrFdSyscalls } from "./stderr-fd-redirect.ts"; type StdoutLike = NodeJS.WriteStream; export interface StdoutFdRedirect { restore(): void; } /** * Point fd 1 at `logPath` (append, 0600) and re-point `stdout` at a duplicate of the terminal. * Returns `undefined`, leaving fd 1 and `stdout` untouched, when any step fails. */ export declare function redirectStdoutFd(syscalls: StderrFdSyscalls, logPath: string, stdout?: StdoutLike): StdoutFdRedirect | undefined; export {}; //# sourceMappingURL=stdout-fd-redirect.d.ts.map