mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 16:56:58 +10:00
17 lines
523 B
TypeScript
17 lines
523 B
TypeScript
|
|
import type { Command } from '../../commands.js'
|
||
|
|
import { getSubscriptionType } from '../../utils/auth.js'
|
||
|
|
import { isEnvTruthy } from '../../utils/envUtils.js'
|
||
|
|
|
||
|
|
const upgrade = {
|
||
|
|
type: 'local-jsx',
|
||
|
|
name: 'upgrade',
|
||
|
|
description: 'Upgrade to Max for higher rate limits and more Opus',
|
||
|
|
availability: ['claude-ai'],
|
||
|
|
isEnabled: () =>
|
||
|
|
!isEnvTruthy(process.env.DISABLE_UPGRADE_COMMAND) &&
|
||
|
|
getSubscriptionType() !== 'enterprise',
|
||
|
|
load: () => import('./upgrade.js'),
|
||
|
|
} satisfies Command
|
||
|
|
|
||
|
|
export default upgrade
|