claude-code/commands/voice/index.ts
kuberwastaken ec53fcbe95 init
2026-03-31 16:25:52 +05:30

20 lines
482 B
TypeScript

import type { Command } from '../../commands.js'
import {
isVoiceGrowthBookEnabled,
isVoiceModeEnabled,
} from '../../voice/voiceModeEnabled.js'
const voice = {
type: 'local',
name: 'voice',
description: 'Toggle voice mode',
availability: ['claude-ai'],
isEnabled: () => isVoiceGrowthBookEnabled(),
get isHidden() {
return !isVoiceModeEnabled()
},
supportsNonInteractive: false,
load: () => import('./voice.js'),
} satisfies Command
export default voice