chore: land in-progress workspace changes before 1.16.2
The tree carried uncommitted work from several areas (web push, mobile screens, admin charts, test-hygiene cleanup, CI and map docs). It is landed as one commit so the release pipeline can start from a clean tree; the desktop transcript-correction behaviour shipped in the previous commit and is unchanged here.
This commit is contained in:
parent
9c2b6a9782
commit
7fe49c437e
144 changed files with 3760 additions and 4523 deletions
18
packages/core/__tests__/plan-catalog.test.ts
Normal file
18
packages/core/__tests__/plan-catalog.test.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
import { PLAN_QUOTA } from '../src/plan-catalog'
|
||||
|
||||
describe('plan catalog quota contract', () => {
|
||||
it('pins the existing knowledge embedding budget by tier and period', () => {
|
||||
const embeddingQuota = Object.fromEntries(
|
||||
Object.entries(PLAN_QUOTA).map(([tier, quota]) => [tier, quota.knowledge_embedding]),
|
||||
)
|
||||
|
||||
expect(embeddingQuota).toEqual({
|
||||
free: { limit: 5_000, period: 'weekly' },
|
||||
pro: { limit: 50_000, period: 'daily' },
|
||||
pro_plus: { limit: 150_000, period: 'daily' },
|
||||
team: { limit: 300_000, period: 'daily' },
|
||||
enterprise: { limit: -1, period: 'daily' },
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
@ -33,6 +33,7 @@ export type PlanQuotaFeature =
|
|||
| 'llm_sonnet'
|
||||
| 'llm_opus'
|
||||
| 'realtime_session'
|
||||
| 'knowledge_embedding'
|
||||
|
||||
export type PlanQuotaPeriod = 'daily' | 'weekly'
|
||||
|
||||
|
|
@ -49,6 +50,7 @@ export const PLAN_QUOTA: Readonly<Record<PlanQuotaTier, Readonly<Record<PlanQuot
|
|||
llm_sonnet: { limit: 0, period: 'daily' },
|
||||
llm_opus: { limit: 0, period: 'daily' },
|
||||
realtime_session: { limit: 0, period: 'daily' },
|
||||
knowledge_embedding: { limit: 5_000, period: 'weekly' },
|
||||
},
|
||||
pro: {
|
||||
stt_transcribe: { limit: -1, period: 'daily' },
|
||||
|
|
@ -57,6 +59,7 @@ export const PLAN_QUOTA: Readonly<Record<PlanQuotaTier, Readonly<Record<PlanQuot
|
|||
llm_opus: { limit: 50, period: 'daily' },
|
||||
// 세션 수 기준 (~$0.016/분 mini — 세션당 평균 수 분 가정)
|
||||
realtime_session: { limit: 30, period: 'daily' },
|
||||
knowledge_embedding: { limit: 50_000, period: 'daily' },
|
||||
},
|
||||
pro_plus: {
|
||||
stt_transcribe: { limit: -1, period: 'daily' },
|
||||
|
|
@ -64,6 +67,7 @@ export const PLAN_QUOTA: Readonly<Record<PlanQuotaTier, Readonly<Record<PlanQuot
|
|||
llm_sonnet: { limit: 1500, period: 'daily' },
|
||||
llm_opus: { limit: 300, period: 'daily' },
|
||||
realtime_session: { limit: 120, period: 'daily' },
|
||||
knowledge_embedding: { limit: 150_000, period: 'daily' },
|
||||
},
|
||||
team: {
|
||||
stt_transcribe: { limit: -1, period: 'daily' },
|
||||
|
|
@ -71,6 +75,7 @@ export const PLAN_QUOTA: Readonly<Record<PlanQuotaTier, Readonly<Record<PlanQuot
|
|||
llm_sonnet: { limit: 3000, period: 'daily' },
|
||||
llm_opus: { limit: 600, period: 'daily' },
|
||||
realtime_session: { limit: 300, period: 'daily' },
|
||||
knowledge_embedding: { limit: 300_000, period: 'daily' },
|
||||
},
|
||||
enterprise: {
|
||||
stt_transcribe: { limit: -1, period: 'daily' },
|
||||
|
|
@ -78,5 +83,6 @@ export const PLAN_QUOTA: Readonly<Record<PlanQuotaTier, Readonly<Record<PlanQuot
|
|||
llm_sonnet: { limit: -1, period: 'daily' },
|
||||
llm_opus: { limit: -1, period: 'daily' },
|
||||
realtime_session: { limit: -1, period: 'daily' },
|
||||
knowledge_embedding: { limit: -1, period: 'daily' },
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue