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:
parent
a31f96bbb8
commit
eb83682269
38 changed files with 5678 additions and 19 deletions
|
|
@ -348,15 +348,32 @@ class LicenseService extends EventEmitter {
|
|||
return { success: false, tier: 'free', message: 'License key is empty' }
|
||||
}
|
||||
|
||||
// 1. LemonSqueezy API 시도
|
||||
// 1. 로컬 키 검증 먼저 (개발/테스트용 D3RO-PRO-*, D3RO-PLUS-* 패턴)
|
||||
const localTier = this._validateKeyLocally(trimmedKey)
|
||||
if (localTier) {
|
||||
logger.info(`Local key validated: tier=${localTier}`)
|
||||
const now = Date.now()
|
||||
this._info = {
|
||||
...this._info,
|
||||
tier: localTier,
|
||||
licenseKey: trimmedKey,
|
||||
activatedAt: now,
|
||||
lastVerifiedAt: now,
|
||||
offlineGraceUntil: now + OFFLINE_GRACE_PERIOD_MS,
|
||||
}
|
||||
this._persistLicenseInfo()
|
||||
this._sendToRenderer(IPC_CHANNELS.LICENSE.TIER_CHANGED, this._info)
|
||||
return { success: true, tier: localTier, message: `Activated ${localTier} license (local)` }
|
||||
}
|
||||
|
||||
// 2. LemonSqueezy API 시도
|
||||
const apiResult = await this._activateViaLemonSqueezy(trimmedKey)
|
||||
if (apiResult) {
|
||||
return apiResult
|
||||
}
|
||||
|
||||
// 2. API 실패 시 로컬 키 검증 폴백 (개발/테스트용)
|
||||
logger.info('LemonSqueezy API unreachable, trying local key validation')
|
||||
const tier = this._validateKeyLocally(trimmedKey)
|
||||
// 3. 둘 다 실패
|
||||
const tier = null as LicenseTier | null
|
||||
if (!tier) {
|
||||
return { success: false, tier: 'free', message: 'Invalid license key' }
|
||||
}
|
||||
|
|
@ -506,6 +523,27 @@ class LicenseService extends EventEmitter {
|
|||
pro: false,
|
||||
proPlus: true,
|
||||
},
|
||||
{
|
||||
feature: Feature.DICTATION_TEMPLATE,
|
||||
featureLabel: 'license.feature.dictationTemplate',
|
||||
free: false,
|
||||
pro: false,
|
||||
proPlus: true,
|
||||
},
|
||||
{
|
||||
feature: Feature.LOCAL_RAG,
|
||||
featureLabel: 'license.feature.localRag',
|
||||
free: false,
|
||||
pro: false,
|
||||
proPlus: true,
|
||||
},
|
||||
{
|
||||
feature: Feature.OS_AUTOMATION,
|
||||
featureLabel: 'license.feature.osAutomation',
|
||||
free: false,
|
||||
pro: false,
|
||||
proPlus: true,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue