learning_ai_common_plat/services/platform-service/src/lib
saravanakumardb1 ca6a4d41d8 feat(flags): production-grade feature flag system — multi-variate, segments, audit, SSE, scheduling, prerequisites
- types.ts: multi-variate flags (boolean/string/number/JSON), targeting rules with 18 operators, scheduling (enableAt/disableAt/gradual rollout), prerequisites, segments, audit log, evaluation context
- evaluator.ts: pure evaluation engine — schedule checking, prerequisite dependencies (circular detection), individual targeting, targeting rules (AND clauses), segment matching, percentage rollout (FNV-1a), OS version/platform/region filtering
- repository.ts: 3 collections — feature_flags, flag_segments, flag_audit_log
- routes.ts: 18 endpoints — flag CRUD, toggle, archive, kill switch (with tag filter), segment CRUD, audit log, POST /flags/evaluate (multi-variate), SSE /flags/stream, legacy /flags/poll backward-compat
- seed.ts: updated to produce full FeatureFlagDoc with variations, version
- flags.test.ts: 63 tests — schema validation, evaluator engine, targeting rules, segments, prerequisites, scheduling, gradual rollouts, multi-variate, version comparison, deterministic hashing
- @bytelyst/events: added flag.created, flag.updated, flag.deleted, flag.kill_switch event types
- @bytelyst/feature-flag-client: multi-variate support (getValue, getEvaluation, getAllEvaluations), SSE streaming mode, onChange listeners, auth token injection
- event-dispatcher.ts + webhooks/types.ts: wired new flag events
2026-03-21 11:44:49 -07:00
..
api-key-auth.test.ts feat(ratelimit): back api throttles with datastore 2026-03-15 09:37:03 +00:00
api-key-auth.ts fix(platform): fix 2 type errors found in typecheck sweep 2026-03-19 19:02:57 -07:00
auth.ts refactor: merge tracker-service into platform-service 2026-02-14 21:34:21 -08:00
auto-register.test.ts feat(platform-service): auto-registration on first request (Phase 4.1) — 8 tests 2026-03-19 22:00:57 -07:00
auto-register.ts feat(platform-service): auto-registration on first request (Phase 4.1) — 8 tests 2026-03-19 22:00:57 -07:00
blob.ts refactor(storage): migrate to storage abstraction 2026-03-02 09:07:33 -08:00
config.test.ts docs(config): align rate limit settings 2026-03-15 09:42:42 +00:00
config.ts docs(config): align rate limit settings 2026-03-15 09:42:42 +00:00
cosmos-init.test.ts fix(platform): replace 3 console.* calls with process.stdout/stderr in cosmos-init + server startup 2026-03-01 17:41:02 -08:00
cosmos-init.ts chore(platform-service): wire P2+P3 modules into server + cosmos-init 2026-03-19 23:50:38 -07:00
cosmos.ts fix(common): configure ESLint 9 and fix lint issues 2026-02-12 16:37:30 -08:00
datastore.ts feat(platform-service): migrate 6 repositories to @bytelyst/datastore (flags, settings, comments, votes, products, themes) — 756/756 tests pass 2026-03-02 00:51:03 -08:00
declarative-loader.test.ts feat(platform-service): declarative YAML module loader (4.4) — 34 tests 2026-03-19 21:16:58 -07:00
declarative-loader.ts feat(platform-service): declarative YAML module loader (4.4) — 34 tests 2026-03-19 21:16:58 -07:00
declarative-schema.ts feat(platform-service): declarative YAML module loader (4.4) — 34 tests 2026-03-19 21:16:58 -07:00
errors.test.ts fix(common): configure ESLint 9 and fix lint issues 2026-02-12 16:37:30 -08:00
errors.ts fix(common): configure ESLint 9 and fix lint issues 2026-02-12 16:37:30 -08:00
event-bus.test.ts feat(events): add durable event bus worker path 2026-03-14 16:02:40 +00:00
event-bus.ts feat(events): add durable event bus worker path 2026-03-14 16:02:40 +00:00
event-dispatcher.ts feat(flags): production-grade feature flag system — multi-variate, segments, audit, SSE, scheduling, prerequisites 2026-03-21 11:44:49 -07:00
event-store-bridge.ts feat(platform): Phase 1 — Durable Event Bus + Worker Runtime 2026-03-20 03:12:54 -07:00
pii-redaction.ts feat(platform): PII Redaction library (Appendix D.1) 2026-03-03 09:37:53 -08:00
product-config.ts refactor: merge tracker-service into platform-service 2026-02-14 21:34:21 -08:00
push-notifications.ts feat(platform-service): Phase 4.4 - Push notification wiring (FCM/APNS) 2026-03-03 08:05:21 -08:00
request-context.ts feat(platform-service): auto-registration on first request (Phase 4.1) — 8 tests 2026-03-19 22:00:57 -07:00
stripe.ts refactor: merge billing-service into platform-service 2026-02-14 21:31:04 -08:00
webhooks.ts feat(waitlist): add pre-launch waitlist module (types, repo, routes) 2026-02-16 22:45:14 -08:00