- Extract emitMessagePair() to consolidate 6 message_start/message_end push pairs in agent-loop.ts - Extract emitErrorSequence() to deduplicate identical catch blocks in agentLoop and agentLoopContinue - Export ZERO_USAGE constant and reuse it in agent.ts instead of inline object literals - Merge identical message_start/message_update switch cases in Agent._runLoop - Extract Agent._updatePendingToolCalls() to consolidate tool_execution_start/end Set mutation |
||
|---|---|---|
| .. | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||