singularity-forge/packages
frizynn 3090f968f4 refactor: extract retry handler and compaction orchestrator from agent-session
Extract two self-contained subsystems from agent-session.ts (3,367 -> 2,737 lines):

- RetryHandler: auto-retry with exponential backoff, credential rotation,
  and cross-provider fallback logic
- CompactionOrchestrator: manual/auto compaction, overflow recovery, and
  extension integration for custom compaction providers

Also add shared getErrorMessage() utility to replace repeated
`err instanceof Error ? err.message : String(err)` patterns.

The extracted modules receive AgentSession state via dependency injection
interfaces, avoiding state duplication. AgentSession remains the coordinator
that delegates to these modules.
2026-03-19 16:46:14 -03:00
..
native fix: graceful fallback when native addon is unavailable on unsupported platforms (#1225) 2026-03-18 13:28:01 -06:00
pi-agent-core fix: add exports fields to pi-tui and pi-agent-core packages (#991) 2026-03-17 17:05:47 -06:00
pi-ai feat: auto-generate OpenRouter model registry from API + add missing models (#1407) (#1426) 2026-03-19 10:40:34 -06:00
pi-coding-agent refactor: extract retry handler and compaction orchestrator from agent-session 2026-03-19 16:46:14 -03:00
pi-tui fix: add JS fallbacks for wrapTextWithAnsi and visibleWidth when native addon unavailable (#1418) (#1428) 2026-03-19 10:49:13 -06:00