MCPcopy
hub / github.com/slopus/happy / AcpPermissionHandler

Interface AcpPermissionHandler

packages/happy-cli/src/agent/acp/AcpBackend.ts:161–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 * Permission handler interface for ACP backends
160 */
161export interface AcpPermissionHandler {
162 /**
163 * Handle a tool permission request
164 * @param toolCallId - The unique ID of the tool call
165 * @param toolName - The name of the tool being called
166 * @param input - The input parameters for the tool
167 * @returns Promise resolving to permission result with decision
168 */
169 handleToolCall(
170 toolCallId: string,
171 toolName: string,
172 input: unknown
173 ): Promise<{ decision: 'approved' | 'approved_for_session' | 'denied' | 'abort' }>;
174}
175
176/**
177 * Configuration for AcpBackend

Callers 3

runCodexFunction · 0.65
startSessionMethod · 0.65

Implementers 3

GenericAcpPermissionHandlerpackages/happy-cli/src/agent/acp/runAc
GeminiPermissionHandlerpackages/happy-cli/src/gemini/utils/pe
CodexPermissionHandlerpackages/happy-cli/src/codex/utils/per

Calls

no outgoing calls

Tested by

no test coverage detected