UNPKG

@code-yeongyu/senpi

Version:

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

11 lines • 1.03 kB
import type { ExtensionUIDialogOptions } from "./extensions/types.ts"; type Select = (title: string, options: string[], opts?: ExtensionUIDialogOptions) => Promise<string | undefined>; /** Each RPC connection registers only if its own handshake advertises grant_select. */ export declare function attachMcpGrantPresentation(sessionId: string, select: Select): () => void; export declare function getMcpGrantPresentation(sessionId: string | undefined): Select | undefined; export declare function clearMcpGrantPresentations(sessionId: string): void; /** Bound the decision even when an embedding's select ignores dialog options; any failure is no answer. */ export declare function selectLocalGrant(select: Select | undefined, title: string, choices: readonly [grant: string, decline: string], signal?: AbortSignal): Promise<string | undefined>; export declare function selectMcpGrant(select: Select | undefined, title: string, signal?: AbortSignal): Promise<boolean>; export {}; //# sourceMappingURL=mcp-grant-presentations.d.ts.map