@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
25 lines • 1.39 kB
TypeScript
import type { Duplex } from "node:stream";
import type { PresenterAccountAuthority } from "./mcp-presenter-account.ts";
import { McpPresenterControl } from "./mcp-presenter-control.ts";
import type { PresenterHostSurface } from "./mcp-presenter-host-surface.ts";
/**
* The Windows presenter control pipe. Its name comes from its own random value, never the host's public
* protocol instanceId, so nothing can learn it before the host listens and squat it.
*/
export declare function presenterPipePath(): string;
export interface McpPresenterControlStart {
readonly control: McpPresenterControl;
/** The private directory holding the POSIX control socket; the host removes it at shutdown. */
readonly dir?: string;
}
/**
* Starts the management endpoint of an enforced host that can introduce a principal: through the inherited fd-4
* bootstrap, an injected account authority, or both (senpi#4249). Otherwise the bootstrap is destroyed and no
* control exists. A failed start leaves the host without a presenter.
*/
export declare function startMcpPresenterControl(host: PresenterHostSurface, options: {
readonly enforcement?: boolean | undefined;
readonly bootstrap?: Duplex | undefined;
readonly account?: PresenterAccountAuthority | undefined;
}): Promise<McpPresenterControlStart | undefined>;
//# sourceMappingURL=mcp-presenter-control-start.d.ts.map