Phase 12~13 전체 구현: Pro+ 피처 6종 + 음성 대화 + RAG + OS 자동화

Phase 12:
- FileTranscriptionService: ffmpeg PCM 변환 + 30초 청크 순차 STT
- MeetingSummaryService: 자막 세션 → LLM 자동 요약 + DB summaryText
- DictationTemplateService: 필드별 음성 입력 상태 머신 + 프리셋 3개

Phase 13.1:
- VoiceConversationService: STT→Ollama /api/chat→TTS 대화 루프 (10턴)
- TTSPlaybackService: Windows SAPI 문장 단위 큐 재생
- LocalLLMService.chatStream: Ollama /api/chat 스트리밍

Phase 13.2:
- RAGService: Ollama 임베딩 + SQLite 벡터 + 코사인 유사도 검색
- KnowledgeBasePage: 문서 관리 + 질문/답변 UI
- PDF 파서: zlib FlateDecode 해제 + BT/ET 텍스트 추출

Phase 13.3:
- VoiceActionService: LLM JSON 액션 플랜 생성 + 실행
- 프리셋 6개 (크롬/메모장/탐색기/볼륨), 위험 명령 차단

공통: IPC ~70채널, 에러코드 780-878, i18n 100+키
버그픽스: 라이선스 로컬 키 우선, i18n featureLabel, DOM 중첩
This commit is contained in:
Yun Chan 2026-04-05 23:52:14 +09:00
parent a31f96bbb8
commit eb83682269
38 changed files with 5678 additions and 19 deletions

View file

@ -221,6 +221,90 @@ export const IPC_CHANNELS = {
STOP_SYSTEM_AUDIO: 'caption:stopSystemAudio',
},
// ── Phase 12: File Transcription (12.1) ──
FILE_TRANSCRIPTION: {
START: 'fileTranscription:start',
CANCEL: 'fileTranscription:cancel',
GET_STATE: 'fileTranscription:getState',
// Main → Renderer events
PROGRESS: 'fileTranscription:progress',
COMPLETE: 'fileTranscription:complete',
ERROR: 'fileTranscription:error',
},
// ── Phase 12: Meeting Summary (12.2) ──
MEETING_SUMMARY: {
SUMMARIZE: 'meetingSummary:summarize',
GET_SUMMARY: 'meetingSummary:getSummary',
EXPORT_MARKDOWN: 'meetingSummary:exportMarkdown',
// Main → Renderer events
SUMMARY_READY: 'meetingSummary:summaryReady',
SUMMARY_PROGRESS: 'meetingSummary:progress',
},
// ── Phase 12: Dictation Templates (12.3) ──
DICTATION_TEMPLATE: {
GET_ALL: 'dictationTemplate:getAll',
CREATE: 'dictationTemplate:create',
UPDATE: 'dictationTemplate:update',
DELETE: 'dictationTemplate:delete',
START_SESSION: 'dictationTemplate:startSession',
CANCEL_SESSION: 'dictationTemplate:cancelSession',
GET_SESSION_STATE: 'dictationTemplate:getSessionState',
SET_FIELD_VALUE: 'dictationTemplate:setFieldValue',
// Main → Renderer events
SESSION_STATE_CHANGED: 'dictationTemplate:sessionStateChanged',
FIELD_COMPLETED: 'dictationTemplate:fieldCompleted',
SESSION_COMPLETED: 'dictationTemplate:sessionCompleted',
},
// ── Phase 13: Voice Conversation (13.1) ──
VOICE_CONVERSATION: {
START_SESSION: 'voiceConversation:startSession',
STOP_SESSION: 'voiceConversation:stopSession',
SEND_MESSAGE: 'voiceConversation:sendMessage',
GET_STATE: 'voiceConversation:getState',
GET_HISTORY: 'voiceConversation:getHistory',
CLEAR_HISTORY: 'voiceConversation:clearHistory',
CANCEL_RESPONSE: 'voiceConversation:cancelResponse',
// Main → Renderer events
STATE_CHANGED: 'voiceConversation:stateChanged',
USER_MESSAGE: 'voiceConversation:userMessage',
ASSISTANT_DELTA: 'voiceConversation:assistantDelta',
ASSISTANT_MESSAGE: 'voiceConversation:assistantMessage',
TTS_STARTED: 'voiceConversation:ttsStarted',
TTS_FINISHED: 'voiceConversation:ttsFinished',
ERROR: 'voiceConversation:error',
},
// ── Phase 13: Local RAG (13.2) ──
RAG: {
ADD_DOCUMENT: 'rag:addDocument',
REMOVE_DOCUMENT: 'rag:removeDocument',
GET_DOCUMENTS: 'rag:getDocuments',
QUERY: 'rag:query',
GET_STATE: 'rag:getState',
REINDEX: 'rag:reindex',
// Main → Renderer events
INDEX_PROGRESS: 'rag:indexProgress',
INDEX_COMPLETE: 'rag:indexComplete',
QUERY_RESULT: 'rag:queryResult',
},
// ── Phase 13: Voice Action / OS Automation (13.3) ──
VOICE_ACTION: {
EXECUTE: 'voiceAction:execute',
GET_PRESETS: 'voiceAction:getPresets',
GET_HISTORY: 'voiceAction:getHistory',
CLEAR_HISTORY: 'voiceAction:clearHistory',
SET_ENABLED: 'voiceAction:setEnabled',
IS_ENABLED: 'voiceAction:isEnabled',
// Main → Renderer events
ACTION_PLANNED: 'voiceAction:actionPlanned',
ACTION_EXECUTED: 'voiceAction:actionExecuted',
ACTION_ERROR: 'voiceAction:actionError',
},
// ── Phase 11: License & Monetization ──
LICENSE: {
GET_INFO: 'license:getInfo',