source dump of claude code
at main 16 lines 523 B view raw
1import type { Command } from '../../commands.js' 2import { getSubscriptionType } from '../../utils/auth.js' 3import { isEnvTruthy } from '../../utils/envUtils.js' 4 5const 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 16export default upgrade