forked from ultraworkers/claw-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
26 lines (24 loc) · 693 Bytes
/
Copy pathindex.ts
File metadata and controls
26 lines (24 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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