Roo-Code/apps/cli/src/agent
Chris Estreich ffec9ac1ec
feat(cli): NDJSON stdin protocol, list subcommands, modularize run.ts (#11597)
* feat(cli): add NDJSON stdin protocol, list subcommands, and modularize run.ts

Overhaul the stdin prompt stream from raw text lines to a structured NDJSON
command protocol (start/message/cancel/ping/shutdown) with requestId
correlation, ack/done/error lifecycle events, and queue telemetry. Add list
subcommands (commands, modes, models) for programmatic discovery. Extract
stdin stream logic from run.ts into stdin-stream.ts and add shared isRecord
guard utility. Includes unit tests for all new modules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(core): fix Task.ts bug affecting CLI operation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 00:04:34 -08:00
..
__tests__ feat(cli): NDJSON stdin protocol, list subcommands, modularize run.ts (#11597) 2026-02-19 00:04:34 -08:00
agent-state.ts Reapply Batches 3-4: Skills, browser removal, provider removals (6 major-conflict cherry-picks) (#11475) 2026-02-14 22:06:24 -07:00
ask-dispatcher.ts Reapply Batches 3-4: Skills, browser removal, provider removals (6 major-conflict cherry-picks) (#11475) 2026-02-14 22:06:24 -07:00
events.ts Some cleanup in ExtensionHost (#10600) 2026-01-10 02:29:33 -08:00
extension-client.ts Some cleanup in ExtensionHost (#10600) 2026-01-10 02:29:33 -08:00
extension-host.ts Reapply Batches 3-4: Skills, browser removal, provider removals (6 major-conflict cherry-picks) (#11475) 2026-02-14 22:06:24 -07:00
index.ts Support different cli output formats: text, json, streaming json (#10812) 2026-01-18 09:19:08 -08:00
json-event-emitter.ts feat(cli): NDJSON stdin protocol, list subcommands, modularize run.ts (#11597) 2026-02-19 00:04:34 -08:00
message-processor.ts Some cleanup in ExtensionHost (#10600) 2026-01-10 02:29:33 -08:00
output-manager.ts More file organization for the cli (#10599) 2026-01-09 23:22:51 -08:00
prompt-manager.ts More file organization for the cli (#10599) 2026-01-09 23:22:51 -08:00
state-store.ts Some cleanup in ExtensionHost (#10600) 2026-01-10 02:29:33 -08:00