init: add source code from src.zip

This commit is contained in:
sigridjineth
2026-03-31 01:55:58 -07:00
commit f5a40b86de
1902 changed files with 513237 additions and 0 deletions

269
src/commands/fast/fast.tsx Normal file

File diff suppressed because one or more lines are too long

View 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