d3ro-voice/apps/admin/src/lib
Yun Chan 88f24d84a1 refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A)
Prices, quotas and site URLs were copied by hand into the edge functions,
admin, desktop and the landing site, and the copies disagreed (Payple billed
9,900/29,900 KRW, admin labels said 12,900/24,900 KRW and $9.9/$19.9, the
site said 2,900/8,900 KRW).

- packages/core/src/plan-catalog.ts is the single source for PLAN_PRICE_KRW
  (Free 0 / Pro 2,900 / Pro+ 8,900 a month) and PLAN_QUOTA.
- packages/core/src/web-urls.ts is the single source for the public origin,
  the /app web-app base path, SITE_URLS and billingUrl().
- Deno cannot bundle packages/core, so scripts/ci/sync-core-contract.mjs
  generates _shared/core-contract.generated.ts; `npm run contract:check`
  fails on drift (same pattern as version:sync).
- Payple checkout, renewal and webhook amount checks now bill the catalog
  price, so existing subscribers move to the new price at their next renewal.
  quota.ts, team-contract.ts and the tests read the generated values.
- Admin MRR/ARR is computed in KRW from the catalog; license labels, the
  release link and desktop PREMIUM_LLM limits derive from core; the site
  imports prices and quotas directly.

Policy: docs/REFACTOR_POLICY.md Wave 3, W3-1 and W3-2.
2026-09-26 15:48:18 +09:00
..
ad-monetization.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
admin-api.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
admin-guard.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
admin-session.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
api-server.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
audit-sanitize.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
backend-admin-client.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
backend-session.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
console-theme.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
edge-session.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
forgejo-releases.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
security.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
subscription-metrics.ts refactor(core): keep plan prices, cloud quotas and public URLs in one contract (WS-A) 2026-09-26 15:48:18 +09:00
supabase-admin.ts feat(admin): 예전/최신 어드민 통합 — 실데이터 복원 + 인증 아키텍처 정리 2026-08-23 23:38:08 +09:00
supabase-browser.ts feat: V2-7 Admin 콘솔 리디자인 + 3단계 권한 + SaaS 전환 + 코드 정리 2026-04-13 01:28:10 +09:00
supabase-server.ts feat: V2-7 Admin 콘솔 리디자인 + 3단계 권한 + SaaS 전환 + 코드 정리 2026-04-13 01:28:10 +09:00