(plan) convert original implement plan to mock api

This commit is contained in:
Story Crater Bot
2026-08-19 09:47:14 -07:00
parent c42040319f
commit 0aef2281bc
65 changed files with 307 additions and 627 deletions
+4 -4
View File
@@ -1,14 +1,14 @@
# 2.5 — GET /api/stream (GREEN)
# 2.5 — GET /api/stream (mock, GREEN)
Phase: 2 — Topology (Surface B)
Stage: GREEN
Depends on: [2.1](2.1-stream-test.md), [1.8](1.8-redis-publish.md)
- [x] `GET /api/stream` — SSE, `topology` event type, keepalive comment frame every 30s
- [ ] `GET /api/stream` — SSE, session cookie, 2 concurrent/IP, `topology` event type; keepalive comment frame every 30s; `Last-Event-ID` supported for resumable deltas
Done — implemented in [app/api/stream/route.ts](../app/api/stream/route.ts). Emits a synthetic random-namespace delta every 5s plus a keepalive comment every 30s. Mock only: no session cookie, no 2-concurrent/IP cap, no `Last-Event-ID` resume, no real informer. See [REQUIREMENTS.md](REQUIREMENTS.md).
## Verify
```bash
go test ./... -run TestStream -v
curl -N http://localhost:3000/api/stream
```