@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
26 lines • 1.67 kB
TypeScript
import type { ChildProcess } from "node:child_process";
import type { Duplex } from "node:stream";
/** How a relayed exchange ended: the host's `enrolled`, its explicit `unavailable`, or a channel that closed first. */
export type PresenterRelayResult = "enrolled" | "unavailable" | "closed";
export declare const MCP_PRESENTER_BOOTSTRAP_FD = 4;
/** The exchange window: from the first frame of a parked channel, or from the start of any other. */
export declare const PRESENTER_EXCHANGE_MS = 30000;
/**
* How long a launch channel may sit untouched before its first frame (senpi#4602): the startup decision budget G.
* A successor's exchange starts at its P7, which can come long after its host opened the channel.
*/
export declare const PRESENTER_PARKING_MS = 180000;
/** The descriptor is not authority: only this live channel's enrollment transcript can issue grants. */
export declare function presenterBootstrapStream(fd: number): Duplex | undefined;
/** Relay one bounded enrollment exchange; fd 3 and stdin are never touched. */
export declare function relayPresenterBootstrap(upstream: Duplex, child: ChildProcess,
/**
* The launch this CLI is performing. A v2 enrollment for a different kind, or naming a predecessor other
* than the host this launch replaces (`null` for an initial launch), is dropped before the host sees it.
* `predecessorHostInstance: undefined` means nothing proves the replaced host, so no replacement enrolls.
*/
launch?: {
readonly kind: "initial" | "replacement";
readonly predecessorHostInstance: string | null | undefined;
}): Promise<PresenterRelayResult>;
//# sourceMappingURL=mcp-presenter-bootstrap.d.ts.map