fix(desktop): harden session, meeting, caption and LLM lifecycles; route LLM calls through the gateway

This commit is contained in:
Yun Chan 2026-09-28 02:16:15 +09:00
parent 3a46437f28
commit ddc78546f0
62 changed files with 4786 additions and 648 deletions

View file

@ -0,0 +1,26 @@
// packages/core/src/meeting-live.ts
// 진행 중인 회의 녹음·회의 채팅을 렌더러가 다시 불러올 때 쓰는 계약 타입.
// (IPC: 'meetingMode:getLiveSession', 'meetingChat:getHistory')
import type { CaptionSegment, MeetingMemo, MeetingModeState } from './types'
/** 진행 중(녹음·처리 중)인 회의의 실시간 전사와 메모 */
export interface MeetingLiveSession {
sessionId: string
state: MeetingModeState
startedAt: number
elapsedMs: number
segments: CaptionSegment[]
memos: MeetingMemo[]
}
/** 회의 채팅 한 턴 (main 이 회의마다 보관하는 대화) */
export interface MeetingChatHistoryTurn {
role: 'user' | 'assistant'
content: string
}
/** 회의 채팅 IPC 채널 — 회의 하나의 대화를 조회한다 */
export const MEETING_CHAT_GET_HISTORY_CHANNEL = 'meetingChat:getHistory'
/** 진행 중인 회의 녹음의 세그먼트·메모를 조회한다 */
export const MEETING_MODE_GET_LIVE_SESSION_CHANNEL = 'meetingMode:getLiveSession'