UNPKG

@code-yeongyu/senpi

Version:

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

26 lines • 1.32 kB
import type { ChildProcess, SpawnOptions, SpawnSyncOptions } from "node:child_process"; import { type PrivateFdForward } from "./private-fds.ts"; /** * Transfers the captured table only on explicit engine spawns, never via ambient child environments. * A shell cannot carry a descriptor, so it receives the name as a null declaration. * `final` marks the supervisor-to-engine hop: that engine claims its channels and forwards nothing. */ export declare function preparePrivateFdSpawn<T extends SpawnOptions | SpawnSyncOptions>(options: T, hop?: { readonly final?: boolean; }, forward?: PrivateFdForward): { options: T & { env: { [key: string]: string | undefined; }; stdio: (number | "ipc" | import("node:stream") | import("node:child_process").IOType | null | undefined)[]; }; close(): void; }; /** * Spawns through the caller's own `spawn` reference, so each call site keeps the instrumentation (and test * doubles) it had before descriptors were forwarded. */ export declare function spawnWithPrivateFds(spawn: (command: string, args: readonly string[], options: SpawnOptions) => ChildProcess, command: string, args: readonly string[], options: SpawnOptions, hop?: { readonly final?: boolean; }): ChildProcess; //# sourceMappingURL=private-fd-spawn.d.ts.map