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:
Resham Joshi 2026-04-24 11:06:33 -07:00 committed by GitHub
commit 68cf823223
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import { readFile, writeFile, mkdir, rename } from 'fs/promises'
import { join } from 'path' import { join } from 'path'
import { homedir } from 'os' 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 PlanProvider = 'claude' | 'codex' | 'cursor' | 'all'
export type Plan = { export type Plan = {

View file

@ -1,9 +1,9 @@
import type { Plan, PlanId, PlanProvider } from './config.js' import type { Plan, PlanId, PlanProvider } from './config.js'
export const PLAN_PROVIDERS: PlanProvider[] = ['all', 'claude', 'codex', 'cursor'] 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': { 'claude-pro': {
id: 'claude-pro', id: 'claude-pro',
monthlyUsd: 20, monthlyUsd: 20,
@ -16,6 +16,12 @@ export const PRESET_PLANS: Record<'claude-pro' | 'claude-max' | 'cursor-pro', Om
provider: 'claude', provider: 'claude',
resetDay: 1, resetDay: 1,
}, },
'claude-max-5x': {
id: 'claude-max-5x',
monthlyUsd: 100,
provider: 'claude',
resetDay: 1,
},
'cursor-pro': { 'cursor-pro': {
id: 'cursor-pro', id: 'cursor-pro',
monthlyUsd: 20, monthlyUsd: 20,
@ -44,7 +50,9 @@ export function planDisplayName(id: PlanId): string {
case 'claude-pro': case 'claude-pro':
return 'Claude Pro' return 'Claude Pro'
case 'claude-max': case 'claude-max':
return 'Claude Max' return 'Claude Max 20x'
case 'claude-max-5x':
return 'Claude Max 5x'
case 'cursor-pro': case 'cursor-pro':
return 'Cursor Pro' return 'Cursor Pro'
case 'custom': case 'custom':