- New sliced modules stream/, bookings/ (thin, real macsync + audit/drafts data, tests, READMEs). - Augments to tasks/corrections/reports for the rest (cohorts, alignment, dashboard KPIs). - Extended MacsyncClient with listInboundMessages/listCalls/listCalendarEvents. - Typed web api.ts for all 6 (shapes from services + prototype). - Wired modules. All gates pass (type, 301 tests, web build). - Prepares Waves A/B (views now have data). |
||
|---|---|---|
| .. | ||
| index.ts | ||
| README.md | ||
| stream.controller.ts | ||
| stream.module.ts | ||
| stream.service.ts | ||
| stream.test.ts | ||
stream
Thin read surface for the unified Stream view (#stream).
GET /prospector/stream?limit=50— recent mixed inbound/outbound messages + calls (macsync history + our audit sends). Returns{ items: StreamEvent[] }.- Reuses
MacsyncClient(new list* methods) +AuditServicefor outbounds (no new tables). - Shapes match prototype
buildStream(at, handle, kind, dir, text/status/dur). - Used by StreamView (Wave B) and future MCP if extended.
Pure normalizer in service (deterministic time fmt). No I/O in pure parts.
See docs/PROSPECTOR.md, PLAN.md § backend reads, and macsync /my/messages /my/calls surfaces.