@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 1.06 kB
TypeScript
/** The FIFO path the supervisor passes to its host. */
export declare const HOST_WATCH_LIFETIME_FIFO_ENV = "SENPI_RPC_HOST_LIFETIME_FIFO";
export interface LifetimeBinding {
/** Linux: the supervisor's lifetime FIFO. */
readonly lifetimeFifo?: string;
/** macOS: the reopened stdin descriptor from the host's stdin bootstrap. */
readonly lifetimeFd?: number;
}
/** Supervisor side: creates this platform's binding in the private hop directory; what the host must be told. */
export declare function prepareLifetimeBinding(hopDir: string, platform?: NodeJS.Platform): LifetimeBinding;
/**
* Host side: arms this platform's binding. `gone` receives the reason when the supervisor is gone; `unavailable` when
* the binding fails later. Returns its disarm, or undefined when the platform or launch provides none.
*/
export declare function armLifetimeBinding(binding: LifetimeBinding, gone: (reason: string) => void, unavailable: () => void, platform?: NodeJS.Platform): (() => void) | undefined;
//# sourceMappingURL=host-lifetime-binding.d.ts.map