feat(commands): multi-select ordered command pipeline with step reordering and single-pass composition (AI-05, AI-07)
This commit is contained in:
parent
f49acf0105
commit
10af20a0ad
157 changed files with 29455 additions and 913 deletions
|
|
@ -59,6 +59,9 @@ export function resolveVoiceIntent(gesture: VoiceGesture, phase: VoiceIntentPhas
|
|||
|
||||
if (gesture.type === 'press') {
|
||||
if (gesture.mode === 'dictation') {
|
||||
if (!gesture.holdMode) {
|
||||
return phase === 'idle' ? { kind: 'start', mode: 'dictation' } : STOP
|
||||
}
|
||||
return phase === 'idle' ? { kind: 'start', mode: 'dictation' } : IGNORE
|
||||
}
|
||||
return phase === 'idle' ? { kind: 'start', mode: 'hands-free' } : STOP
|
||||
|
|
@ -75,11 +78,9 @@ export function resolveGestureMode(actionId: KeyBindingActionId, isDoublePress:
|
|||
}
|
||||
|
||||
/**
|
||||
* 'command' 액션에는 아직 전용 핸들러가 없다.
|
||||
* 현행 동작대로 dictation 파이프라인으로 fallback 하며, 그 경로는 hold-to-talk 이므로
|
||||
* KEYBINDING_ACTIONS 의 holdMode(false)가 아니라 dictation 과 같은 값을 쓴다.
|
||||
* 키바인딩 스펙의 holdMode 설정을 그대로 존중한다.
|
||||
* 'command' 액션도 스펙/설정에 따라 토글(holdMode=false) 또는 홀드(holdMode=true)로 동작한다.
|
||||
*/
|
||||
export function resolveGestureHoldMode(actionId: KeyBindingActionId, specHoldMode: boolean): boolean {
|
||||
if (actionId === 'command') return true
|
||||
export function resolveGestureHoldMode(_actionId: KeyBindingActionId, specHoldMode: boolean): boolean {
|
||||
return specHoldMode
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue