mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 16:56:58 +10:00
21 lines
482 B
TypeScript
21 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
|