learning_ai_common_plat/services
saravanakumardb1 f13c676139 refactor: merge billing-service into platform-service
Phase 2 of service consolidation (5→2 services).

Moved modules:
- subscriptions (9 tests)
- usage (7 tests)
- plans (9 tests)
- licenses (7 tests)
- stripe (0 tests — webhook signature verified at runtime)

Changes:
- Copied 5 modules + stripe.ts lib from billing-service
- Added billing env vars to config schema (Stripe, internal key, etc.)
- Scoped billing routes with internal key auth guard (Gap 3)
  - When BILLING_INTERNAL_KEY is set, billing routes require x-internal-key header
  - When unset, billing routes are open (dev mode)
  - Stripe routes always outside scope (own webhook signature check)
- Removed billing-service directory

Tests: 115 passing (83 + 32 from billing = 115) 
Build: clean 
2026-02-14 21:31:04 -08:00
..
extraction-service fix(docker): make pnpm deploy work under pnpm v10 2026-02-14 18:30:00 -08:00
monitoring Add local health-check script; mark health verification 2026-02-14 18:59:01 -08:00
platform-service refactor: merge billing-service into platform-service 2026-02-14 21:31:04 -08:00
tracker-service fix(cosmos): init containers on startup for local compose 2026-02-14 20:57:17 -08:00