feat(commands): multi-select ordered command pipeline with step reordering and single-pass composition (AI-05, AI-07)

This commit is contained in:
Yun Chan 2026-10-31 02:54:54 +09:00
parent f49acf0105
commit 10af20a0ad
157 changed files with 29455 additions and 913 deletions

View file

@ -76,9 +76,19 @@ describe('제스처 입력 정규화', () => {
expect(resolveGestureMode('command', false)).toBe('dictation')
})
it("'command' 는 dictation 파이프라인 fallback 이라 hold-to-talk 이다", () => {
expect(resolveGestureHoldMode('command', false)).toBe(true)
it("'command' 는 바인딩의 holdMode(토글 또는 홀드)를 그대로 따른다", () => {
expect(resolveGestureHoldMode('command', false)).toBe(false)
expect(resolveGestureHoldMode('command', true)).toBe(true)
expect(resolveGestureHoldMode('dictation', true)).toBe(true)
expect(resolveGestureHoldMode('hands-free', false)).toBe(false)
})
it("holdMode=false 인 'command' 토글은 첫 press 로 시작하고 녹음 중 다음 press 로 정지한다", () => {
const commandTogglePress: VoiceGesture = { type: 'press', mode: 'dictation', holdMode: false }
const commandToggleRelease: VoiceGesture = { type: 'release', mode: 'dictation', holdMode: false }
expect(resolveVoiceIntent(commandTogglePress, 'idle')).toEqual(START_DICTATION)
expect(resolveVoiceIntent(commandToggleRelease, 'recording')).toEqual(IGNORE)
expect(resolveVoiceIntent(commandTogglePress, 'recording')).toEqual(STOP)
expect(resolveVoiceIntent(commandTogglePress, 'processing')).toEqual(IGNORE)
})
})