index.ts
1 import type { Command } from '../../commands.js' 2 import { getSubscriptionType } from '../../utils/auth.js' 3 import { isEnvTruthy } from '../../utils/envUtils.js' 4 5 const upgrade = { 6 type: 'local-jsx', 7 name: 'upgrade', 8 description: 'Upgrade to Max for higher rate limits and more Opus', 9 availability: ['claude-ai'], 10 isEnabled: () => 11 !isEnvTruthy(process.env.DISABLE_UPGRADE_COMMAND) && 12 getSubscriptionType() !== 'enterprise', 13 load: () => import('./upgrade.js'), 14 } satisfies Command 15 16 export default upgrade