mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 15:46:58 +10:00
20 lines
511 B
TypeScript
20 lines
511 B
TypeScript
|
|
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
|