init
This commit is contained in:
commit
55ae41cb0c
1902 changed files with 513237 additions and 0 deletions
16
commands/upgrade/index.ts
Normal file
16
commands/upgrade/index.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
38
commands/upgrade/upgrade.tsx
Normal file
38
commands/upgrade/upgrade.tsx
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue