1.3 KiB
1.3 KiB
Archived 2026-04-19: all tasks retroactively ticked; package shipped under universal/events/events.
Tasks: enterprise-events
- 1. Scaffold package.json, tsconfig, vite/vitest configs (thresholds 100), README, CHANGELOG
- 2. Implement
errors/codes.ts(EVENTS_CODES viadefineCodes) +events-error.tsextendingSuaveplanError - 3. Implement
clock/default-clock.tsandid/id-generator.tsas the single source of non-determinism - 4. Implement
envelope/envelope.ts+envelope.schemas.ts+ types - 5. Implement
interceptor/compose.tswith chain-of-responsibility - 6. Implement
queue/bounded-queue.tswith all four policies + abort support - 7. Implement
idempotent/idempotent.ts - 8. Implement
bus/event-bus.tscomposing the pieces - 9. Implement
observability/with-observability.ts - 10. Cross-cutting guards in
tests/: dep-graph, no-disallowed, tree-shake - 11. Unit + property-based tests for every module (fast-check)
- 12.
bunx turbo lint typecheck test build --filter=@suaveplan/events --forcegreen - 13. Coverage = 100/100/100/100
- 14.
bun scripts/publish.ts --package @suaveplan/eventsto Verdaccio at 0.0.0 - 15. Archive change folder under
openspec/archive/<yyyy-mm-dd>-enterprise-events/