UNPKG

@code-yeongyu/senpi

Version:

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

14 lines • 977 B
import type { ExtensionAPI, ExtensionContext, ToolCallEvent, ToolCallEventResult } from "../../types.ts"; import type { DispatchAuthorizer } from "./dispatch.ts"; import { type ParserRegistry } from "./parsers.ts"; import type { PermissionService } from "./service.ts"; import type { PermissionPresetName } from "./types.ts"; export interface DispatchPermissionState { readonly service: PermissionService | null; readonly parsers: ParserRegistry | null; readonly preset: PermissionPresetName | null; readonly setupError: string | null; } /** Use the permission extension's live parser, evaluator and approval handler. */ export declare function createDispatchAuthorizer(pi: Pick<ExtensionAPI, "getAllTools">, stateFor: (ctx: ExtensionContext) => DispatchPermissionState, authorize: (event: ToolCallEvent, ctx: ExtensionContext, signal?: AbortSignal) => Promise<ToolCallEventResult | undefined>): DispatchAuthorizer; //# sourceMappingURL=dispatch-policy.d.ts.map