init
This commit is contained in:
commit
55ae41cb0c
1902 changed files with 513237 additions and 0 deletions
269
commands/fast/fast.tsx
Normal file
269
commands/fast/fast.tsx
Normal file
File diff suppressed because one or more lines are too long
26
commands/fast/index.ts
Normal file
26
commands/fast/index.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import type { Command } from '../../commands.js'
|
||||
import {
|
||||
FAST_MODE_MODEL_DISPLAY,
|
||||
isFastModeEnabled,
|
||||
} from '../../utils/fastMode.js'
|
||||
import { shouldInferenceConfigCommandBeImmediate } from '../../utils/immediateCommand.js'
|
||||
|
||||
const fast = {
|
||||
type: 'local-jsx',
|
||||
name: 'fast',
|
||||
get description() {
|
||||
return `Toggle fast mode (${FAST_MODE_MODEL_DISPLAY} only)`
|
||||
},
|
||||
availability: ['claude-ai', 'console'],
|
||||
isEnabled: () => isFastModeEnabled(),
|
||||
get isHidden() {
|
||||
return !isFastModeEnabled()
|
||||
},
|
||||
argumentHint: '[on|off]',
|
||||
get immediate() {
|
||||
return shouldInferenceConfigCommandBeImmediate()
|
||||
},
|
||||
load: () => import('./fast.js'),
|
||||
} satisfies Command
|
||||
|
||||
export default fast
|
||||
Loading…
Add table
Add a link
Reference in a new issue