UNPKG

@code-yeongyu/senpi

Version:

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

30 lines • 1.35 kB
import type { McpServerDeclaredConfig } from "../config-schema.ts"; import type { McpLogger } from "../log.ts"; import type { OAuthFlowOptions } from "./oauth.ts"; import type { McpOAuthProvider } from "./oauth-provider.ts"; type Notify = (message: string, type?: "info" | "warning" | "error") => void; export interface AuthCommandDeps<Config extends McpServerDeclaredConfig = McpServerDeclaredConfig> { serverName: string; config: Config; agentDir?: string; env?: Record<string, string | undefined>; logger?: McpLogger; hasUI: boolean; notify: Notify; callbackUrl?: string; openBrowser?: (url: URL) => void | Promise<void>; onReconnect: () => Promise<void>; pending: Map<string, McpOAuthProvider>; /** Per-service guard: the same server may authenticate in another session. */ interactiveGuard?: { begin(serverName: string): boolean; end(serverName: string): void; }; flow?: OAuthFlowOptions; } export declare function runAuth(deps: AuthCommandDeps): Promise<void>; export declare function runAuthStart(deps: AuthCommandDeps): Promise<string>; export declare function runAuthComplete(deps: AuthCommandDeps, redirectUrl: string): Promise<void>; export declare function runLogout(deps: AuthCommandDeps): Promise<void>; export {}; //# sourceMappingURL=commands-auth.d.ts.map