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.
80 lines
2.1 KiB
JSON
80 lines
2.1 KiB
JSON
{
|
|
"name": "@d3ro/core",
|
|
"version": "1.6.0",
|
|
"private": true,
|
|
"description": "D3RO Voice 공유 비즈니스 로직 — 타입, 에러, IPC 채널, 상수, 유틸",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"test": "vitest run"
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./types": {
|
|
"types": "./src/types.ts",
|
|
"default": "./src/types.ts"
|
|
},
|
|
"./keybinding": {
|
|
"types": "./src/keybinding.ts",
|
|
"default": "./src/keybinding.ts"
|
|
},
|
|
"./errors": {
|
|
"types": "./src/errors.ts",
|
|
"default": "./src/errors.ts"
|
|
},
|
|
"./ipc-channels": {
|
|
"types": "./src/ipc-channels.ts",
|
|
"default": "./src/ipc-channels.ts"
|
|
},
|
|
"./constants": {
|
|
"types": "./src/constants.ts",
|
|
"default": "./src/constants.ts"
|
|
},
|
|
"./input-intelligence": {
|
|
"types": "./src/input-intelligence.ts",
|
|
"default": "./src/input-intelligence.ts"
|
|
},
|
|
"./caption-streaming": {
|
|
"types": "./src/caption-streaming.ts",
|
|
"default": "./src/caption-streaming.ts"
|
|
},
|
|
"./entitlement": {
|
|
"types": "./src/entitlement.ts",
|
|
"default": "./src/entitlement.ts"
|
|
},
|
|
"./utils/meeting-markdown": {
|
|
"types": "./src/utils/meeting-markdown.ts",
|
|
"default": "./src/utils/meeting-markdown.ts"
|
|
},
|
|
"./utils/markdown-to-docx": {
|
|
"types": "./src/utils/markdown-to-docx.ts",
|
|
"default": "./src/utils/markdown-to-docx.ts"
|
|
},
|
|
"./utils/crypto-license": {
|
|
"types": "./src/utils/crypto-license.ts",
|
|
"default": "./src/utils/crypto-license.ts"
|
|
},
|
|
"./plan-catalog": {
|
|
"types": "./src/plan-catalog.ts",
|
|
"default": "./src/plan-catalog.ts"
|
|
},
|
|
"./web-urls": {
|
|
"types": "./src/web-urls.ts",
|
|
"default": "./src/web-urls.ts"
|
|
},
|
|
"./supabase-config": {
|
|
"types": "./src/supabase-config.ts",
|
|
"default": "./src/supabase-config.ts"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"docx": "^9.6.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.13.0"
|
|
}
|
|
}
|