@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
21 lines • 1.22 kB
TypeScript
import type { ExtensionAPI, ExtensionUIContext } from "../../types.ts";
import type { McpCachedServerCatalog } from "./catalog-cache.ts";
import type { ServerConnection } from "./connection.ts";
import type { McpService } from "./service.ts";
import { type McpRequestOrigin } from "./request-origin.ts";
export interface McpPromptServer {
readonly ensureFresh?: () => Promise<void>;
readonly requestOrigin?: () => McpRequestOrigin | undefined;
readonly bindPresentation?: (ui: ExtensionUIContext) => void;
readonly server: string;
readonly connection: ServerConnection;
readonly requestTimeoutMs?: number;
readonly prompts: NonNullable<McpCachedServerCatalog["prompts"]>;
}
type CommandRegistrar = Pick<ExtensionAPI, "registerCommand">;
/** Test seam: forget which commands were registered (module-level last-wins). */
export declare function resetMcpPromptCommandsForTests(): void;
export declare function registerMcpPromptCommands(pi: CommandRegistrar, servers: readonly McpPromptServer[]): string[];
export declare function registerMcpPromptCommands(service: McpService, pi: CommandRegistrar, servers: readonly McpPromptServer[]): string[];
export {};
//# sourceMappingURL=prompts.d.ts.map