saravanakumardb1
83e54c29be
fix(web): append /api to baseUrl for shared clients
...
getBaseUrl() returns 'http://localhost:4003 ' without /api suffix.
Shared feature-flag-client and subscription-client expect the API
prefix in the URL. Without this fix, requests hit /flags/poll and
/subscriptions/me instead of /api/flags/poll and /api/subscriptions/me.
2026-03-19 17:08:44 -07:00
saravanakumardb1
f49ef788a2
feat(web): migrate billing-client + feature-flags to shared packages
...
- billing-client.ts: hand-rolled fetch → @bytelyst/subscription-client
wrapper with backwards-compatible Subscription type adapter
- feature-flags.ts: hand-rolled polling → @bytelyst/feature-flag-client
(71→42 lines, same public API)
- providers.tsx: remove platform param (now configured at client level)
- ChronoMind-specific usage API stays as local fetch call
2026-03-19 16:52:47 -07:00
saravanakumardb1
a5aec74e4d
feat(web): add billing/subscription client stub for Pro tier
...
- billing-client.ts: getMySubscription, cancelSubscription, getUsageSummary
- Calls platform-service /subscriptions + /usage endpoints
2026-02-28 14:24:55 -08:00