Make the streaming protocol correct
before connecting a model.
This milestone is a cancellable, testable mock review CLI—the stable core for later REST, SSE, queues, and an OpenAI-compatible Provider.
Mock streaming review
$
npm run codepilot -- "审查任务队列"The first Ctrl+C requests cancellation; the second exits immediately. No network or API key required.
P0 ACCEPTANCE
Make tests prove that cancellation happened.
- Events use a discriminated union instead of unexplained strings
- Success, failure, and cancellation emit exactly one terminal event
- Cancellation stops output and releases every timer
- The CLI is separate from the Provider and tests need no real model
LATER CONFIGURATION
LATEROpenAI 兼容 API Provider
The extension point exists, but this release reads no secrets, installs no model SDK, and sends no model requests.
Next: P1 HTTP + SSEExpose the same event protocol as a stream with plain Node.js.
View roadmap