mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-04-28 06:59:37 +00:00
Merge pull request #144 from getagentseal/add-claude-max-5x-preset
Add claude-max-5x preset for $100/month tier
This commit is contained in:
commit
68cf823223
2 changed files with 12 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ import { readFile, writeFile, mkdir, rename } from 'fs/promises'
|
|||
import { join } from 'path'
|
||||
import { homedir } from 'os'
|
||||
|
||||
export type PlanId = 'claude-pro' | 'claude-max' | 'cursor-pro' | 'custom' | 'none'
|
||||
export type PlanId = 'claude-pro' | 'claude-max' | 'claude-max-5x' | 'cursor-pro' | 'custom' | 'none'
|
||||
export type PlanProvider = 'claude' | 'codex' | 'cursor' | 'all'
|
||||
|
||||
export type Plan = {
|
||||
|
|
|
|||
14
src/plans.ts
14
src/plans.ts
|
|
@ -1,9 +1,9 @@
|
|||
import type { Plan, PlanId, PlanProvider } from './config.js'
|
||||
|
||||
export const PLAN_PROVIDERS: PlanProvider[] = ['all', 'claude', 'codex', 'cursor']
|
||||
export const PLAN_IDS: PlanId[] = ['claude-pro', 'claude-max', 'cursor-pro', 'custom', 'none']
|
||||
export const PLAN_IDS: PlanId[] = ['claude-pro', 'claude-max', 'claude-max-5x', 'cursor-pro', 'custom', 'none']
|
||||
|
||||
export const PRESET_PLANS: Record<'claude-pro' | 'claude-max' | 'cursor-pro', Omit<Plan, 'setAt'>> = {
|
||||
export const PRESET_PLANS: Record<'claude-pro' | 'claude-max' | 'claude-max-5x' | 'cursor-pro', Omit<Plan, 'setAt'>> = {
|
||||
'claude-pro': {
|
||||
id: 'claude-pro',
|
||||
monthlyUsd: 20,
|
||||
|
|
@ -16,6 +16,12 @@ export const PRESET_PLANS: Record<'claude-pro' | 'claude-max' | 'cursor-pro', Om
|
|||
provider: 'claude',
|
||||
resetDay: 1,
|
||||
},
|
||||
'claude-max-5x': {
|
||||
id: 'claude-max-5x',
|
||||
monthlyUsd: 100,
|
||||
provider: 'claude',
|
||||
resetDay: 1,
|
||||
},
|
||||
'cursor-pro': {
|
||||
id: 'cursor-pro',
|
||||
monthlyUsd: 20,
|
||||
|
|
@ -44,7 +50,9 @@ export function planDisplayName(id: PlanId): string {
|
|||
case 'claude-pro':
|
||||
return 'Claude Pro'
|
||||
case 'claude-max':
|
||||
return 'Claude Max'
|
||||
return 'Claude Max 20x'
|
||||
case 'claude-max-5x':
|
||||
return 'Claude Max 5x'
|
||||
case 'cursor-pro':
|
||||
return 'Cursor Pro'
|
||||
case 'custom':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue