2 Commits

Author SHA1 Message Date
07bf9dd9b4 fix(#1): add Node.js globals to ESLint config
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ESLint 9 flat config requires explicit globals. Without them, Node.js
builtins (fetch, crypto, setTimeout, AbortController, etc.) trigger
no-undef errors, blocking the CI pipeline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 22:43:21 -06:00
177720e523 feat: TypeScript telemetry client SDK v0.1.0
Standalone npm package (@mosaicstack/telemetry-client) for reporting
task-completion telemetry and querying predictions from the Mosaic
Stack Telemetry server.

- TelemetryClient with setInterval-based background flush
- EventQueue (bounded FIFO array)
- BatchSubmitter with native fetch, exponential backoff, Retry-After
- PredictionCache (Map + TTL)
- EventBuilder with auto-generated event_id/timestamp
- Zero runtime dependencies (Node 18+ native APIs)
- 43 tests, 86% branch coverage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 23:25:31 -06:00