mirror of
https://github.com/codeaashu/claude-code.git
synced 2026-04-09 06:38:46 +03:00
claude-code
This commit is contained in:
21
src/commands/rate-limit-options/index.ts
Normal file
21
src/commands/rate-limit-options/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { Command } from '../../commands.js'
|
||||
import { isClaudeAISubscriber } from '../../utils/auth.js'
|
||||
|
||||
const rateLimitOptions = {
|
||||
type: 'local-jsx',
|
||||
name: 'rate-limit-options',
|
||||
description: 'Show options when rate limit is reached',
|
||||
isEnabled: () => {
|
||||
if (!isClaudeAISubscriber()) {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
},
|
||||
isHidden: true, // Hidden from help - only used internally
|
||||
load: () => import('./rate-limit-options.js'),
|
||||
} satisfies Command
|
||||
|
||||
export default rateLimitOptions
|
||||
|
||||
|
||||
211
src/commands/rate-limit-options/rate-limit-options.tsx
Normal file
211
src/commands/rate-limit-options/rate-limit-options.tsx
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user