UNPKG

@code-yeongyu/senpi

Version:

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

22 lines • 1.68 kB
import type { Readable } from "node:stream"; import { type StartupHandOff, type StartupMilestone } from "./host-startup-wire.ts"; /** * The supervisor's one writer to its startup pipe. Its own milestones and its host child's relayed records come from * two processes, so nothing about the pipes orders them: on Windows the supervisor's internal probe can connect before * the relay has read the host's `host_runtime`. The launcher's phase order is kept here instead - no host record is * forwarded before `supervisor_setup`, and `internal_ready`, with everything after it, waits for the relayed * `host_runtime`. A relay that ends first releases what it held, so the launcher still decides. */ export declare function startupReporter(emit: (line: string) => void): { report(line: string, milestone: StartupMilestone): void; /** A line over the record limit is forwarded truncated, so the launcher rejects it. */ relay(stream: Readable): void; }; /** The hand-off this process reports for, when it is a coordinated producer. */ export declare function startupHandOff(): StartupHandOff | undefined; export declare function reportStartupMilestone(milestone: StartupMilestone): void; /** The environment value for the host child a coordinated supervisor spawns, or undefined when uncoordinated. */ export declare function hostChildStartupHandOff(fillers: readonly number[]): string | undefined; /** The supervisor relays its host child's startup pipe verbatim inside relay frames; it never writes a host milestone itself. */ export declare function relayHostStartupEvents(stream: Readable | null | undefined): void; //# sourceMappingURL=host-startup-beacon.d.ts.map