@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
20 lines • 1.24 kB
TypeScript
import type { ExtensionUIContext } from "../../core/extensions/types.ts";
import type { McpFormBinding } from "../../core/mcp-form-types.ts";
import { McpPresenterAuthority } from "../rpc/mcp-presenter-authority.ts";
import type { TerminalSealedSecrets } from "./terminal-sealed-secrets.ts";
/**
* The terminal's form binding plus what its control endpoint needs to add presenters to the same authority (D11 S3-6b):
* the `local_tui` grant stays one holder among them, and the binding's one FIFO orders every form.
*/
export interface LocalMcpPresenter extends McpFormBinding {
readonly authority: McpPresenterAuthority;
readonly binding: McpFormBinding;
readonly sessionId: string;
/** Admits a human answer on the terminal's session. */
readonly admit: () => void;
/** The session's sealed secret prompts while a presenter control with sealed holders is attached (S3-6b parity). */
sealed?: TerminalSealedSecrets;
}
/** The terminal itself is the principal; an RPC attachment never receives this handle. */
export declare function registerLocalMcpPresenter(ui: ExtensionUIContext, sessionId: string, lifetime: AbortSignal, admit: () => void): LocalMcpPresenter;
//# sourceMappingURL=mcp-local-presenter.d.ts.map