/** * Shared types for the Claude Code ACP transport binding. * * Portable contract types (SessionHandle, PromptResult, ForkData) are * imported from @tisyn/code-agent and re-exported. Claude-specific * extensions (PlanResult) and ACP protocol types live here. */ import type { PromptResult } from "@tisyn/code-agent"; export type { SessionHandle, PromptResult, ForkData } from "@tisyn/code-agent"; export interface PlanResult extends PromptResult { toolResults?: Array<{ tool: string; output: unknown; }>; } /** * ACP JSON-RPC request (host → ACP process). * These are the messages sent to the Claude Code ACP stdio process. */ export interface AcpRequest { jsonrpc: "2.0"; id: string; method: string; params: Record; } /** * ACP JSON-RPC success response (ACP process → host). */ export interface AcpSuccessResponse { jsonrpc: "2.0"; id: string; result: unknown; } /** * ACP JSON-RPC error response (ACP process → host). */ export interface AcpErrorResponse { jsonrpc: "2.0"; id: string; error: { code: number; message: string; data?: unknown; }; } /** * ACP JSON-RPC notification (ACP process → host). * Used for streaming progress (partial text, tool calls). */ export interface AcpNotification { jsonrpc: "2.0"; method: string; params: Record; } export type AcpResponse = AcpSuccessResponse | AcpErrorResponse; export type AcpMessage = AcpResponse | AcpNotification; //# sourceMappingURL=types.d.ts.map