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
|