Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
676 changes: 206 additions & 470 deletions src/agent/acp/AcpBackend.ts

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions src/agent/acp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,26 @@
// Core ACP backend
export { AcpBackend, type AcpBackendOptions, type AcpPermissionHandler } from './AcpBackend';

// Session update handlers (for testing and extension)
export {
type SessionUpdate,
type HandlerContext,
type HandlerResult,
DEFAULT_IDLE_TIMEOUT_MS,
DEFAULT_TOOL_CALL_TIMEOUT_MS,
parseArgsFromContent,
extractErrorDetail,
formatDuration,
formatDurationMinutes,
handleAgentMessageChunk,
handleAgentThoughtChunk,
handleToolCallUpdate,
handleToolCall,
handleLegacyMessageChunk,
handlePlanUpdate,
handleThinkingUpdate,
} from './sessionUpdateHandlers';

// Factory helper for generic ACP backends
export { createAcpBackend, type CreateAcpBackendOptions } from './createAcpBackend';

Expand Down
Loading