chore: initialize recovered claude workspace
This commit is contained in:
269
src/commands/fast/fast.tsx
Normal file
269
src/commands/fast/fast.tsx
Normal file
File diff suppressed because one or more lines are too long
26
src/commands/fast/index.ts
Normal file
26
src/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
|
||||
Reference in New Issue
Block a user