singularity-forge/packages
Lex Christopherson a0ee03d331 feat(agent-core): add externalToolExecution mode for external providers
Adds `externalToolExecution` flag to AgentLoopConfig. When true, the
agent loop emits tool_execution_start/end events for TUI rendering but
skips local tool dispatch. Used by providers that handle tool execution
internally (e.g., Claude Code CLI via Agent SDK).

The flag is dynamically evaluated per-loop via a callback on
AgentOptions, so model switches mid-session are handled correctly.
Providers with authMode "externalCli" automatically use this mode.

Also updates the Claude Code CLI stream adapter to preserve tool call
blocks in the final message instead of stripping them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 12:57:47 -06:00
..
native fix: use Array.from instead of Buffer.from for native processStreamChunk state (#2348) 2026-03-25 00:08:11 -06:00
pi-agent-core feat(agent-core): add externalToolExecution mode for external providers 2026-03-25 12:57:47 -06:00
pi-ai fix(pi-ai): restore alibaba-coding-plan provider via models.custom.ts (#2350) 2026-03-24 07:19:27 -06:00
pi-coding-agent feat(agent-core): add externalToolExecution mode for external providers 2026-03-25 12:57:47 -06:00
pi-tui fix(tui): prevent freeze when using @ file finder (#1832) 2026-03-21 12:55:12 -06:00