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

@ -380,6 +380,29 @@ describe('VoiceModeService', () => {
expect(action).toBe('custom')
expect(systemPrompt).toBeUndefined()
})
it('복수 지시문 파이프라인(정리 → 격식체 변환)이 설정되면 단계별로 합성된 시스템 프롬프트를 전달한다', async () => {
registerInstruction({
id: 'builtin-clean-speech',
name: '구어·추임새·중복 정리',
prompt: '추임새와 말바꾸기, 중복을 제거하세요.',
})
registerInstruction({
id: 'builtin-formal',
name: '격식체 변환',
prompt: '정중한 비즈니스 존댓말(-습니다/-합니다)로 변환하세요.',
})
config.values.defaultLLMAction = 'custom'
config.values.activeInstructionId = 'builtin-clean-speech,builtin-formal'
await runSession()
const [text, action, , systemPrompt] = mockLLM.processText.mock.calls[0]
expect(text).toBe(TRANSCRIPT)
expect(action).toBe('custom')
expect(systemPrompt).toContain('[1단계: 구어·추임새·중복 정리]')
expect(systemPrompt).toContain('[2단계: 격식체 변환]')
})
})
// ── 두 번째 진입점: 음성 단축키 ────────────────────────