Files
2026-05-27 23:29:53 +01:00

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 via defineCodes) + events-error.ts extending SuaveplanError
  • 3. Implement clock/default-clock.ts and id/id-generator.ts as the single source of non-determinism
  • 4. Implement envelope/envelope.ts + envelope.schemas.ts + types
  • 5. Implement interceptor/compose.ts with chain-of-responsibility
  • 6. Implement queue/bounded-queue.ts with all four policies + abort support
  • 7. Implement idempotent/idempotent.ts
  • 8. Implement bus/event-bus.ts composing 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 --force green
  • 13. Coverage = 100/100/100/100
  • 14. bun scripts/publish.ts --package @suaveplan/events to Verdaccio at 0.0.0
  • 15. Archive change folder under openspec/archive/<yyyy-mm-dd>-enterprise-events/