UNPKG

@code-yeongyu/senpi

Version:

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

17 lines • 1.21 kB
import type { Readable } from "node:stream"; import type { StartupController } from "./host-startup-policy.ts"; import { type StartupBinding, type StartupProducerRole } from "./host-startup-wire.ts"; export declare function newStartupAttempt(): string; export type StartupIngressResult = "accepted" | "ignored" | "discarded" | "protocol_failure"; /** * Feeds one producer stream's records into the controller. Wrong-attempt records are discarded * without renewing anything; duplicate sequence numbers are ignored; an unknown milestone, a record * for a phase another role owns, a sequence gap or an over-limit record fails the attempt. */ export declare function startupEventIngress(controller: StartupController, binding: StartupBinding, role: StartupProducerRole): (line: string) => StartupIngressResult; /** * Reads the supervisor's startup pipe: its own records go to the supervisor ingress, relayed host-child * records to the host ingress. A line that outgrows a relay frame of the record limit fails the attempt. */ export declare function attachStartupEvents(stream: Readable, controller: StartupController, binding: StartupBinding): void; //# sourceMappingURL=host-startup-events.d.ts.map