print.ts
- Entity ID:
ent-20260419-3d6db240fb16 - Type:
file - Scope:
shared - Status:
active - Aliases: src/cli/print.ts, print.ts module
Description
Source file at src/cli/print.ts containing the monster god-function. File total: 5,594 lines; primary function: 3,167 lines, ~486 branch points cyclomatic complexity, 12 levels nesting depth, 12 parameters + 16 sub-properties, 21 inner closures. Hosts the agent run loop, SIGINT handling, rate limiting, AWS auth, MCP lifecycle, plugin loading, team-lead polling loop, control message dispatch, model switching, and turn interruption recovery.
Key claims
- print.ts main function is 3,167 lines with ~486 branch points and 12 nesting levels
- print.ts hosts 10+ unrelated subsystems
Relations
- print.ts --[related_to]--> tt() Function
- Go Rewrite Proposal (Issue #41981) --[contradicts]--> print.ts
- print.ts --[contains]--> Team-Lead Polling Loop
- Streaming Watchdog Bug Chain --[contained_in]--> print.ts