M5: 포터블 exe 앱 (트레이·설정 창·첫 실행 마법사) + M6 사전 기능

- app/src/main: Electron 메인(트레이 상태 아이콘, 설정 창, 단일 실행, DPAPI safeStorage, 스모크 모드), IPC(window.gvr), 파인튜닝 관리
- app/src/renderer: 설정 8개 탭 + 5단계 첫 실행 마법사 (React)
- electron-builder: GameVoiceRecorder.exe, zip(폴더 포터블) + 단일 exe 포터블, 워커·리소스 포함
- 사전: 사이트에서 단어·교정 규칙 추가/삭제(/api/dictionary), 게임 패치 이름 자동 추가, 묶음별 중복 허용 + DB 마이그레이션
- 사이트 서버: 종료 시 WebSocket 먼저 끊기(재시작 멈춤 수정) + 재연결 테스트
- scripts/finetune-e2e.mts, stt-eval.mts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-15 02:16:08 +09:00
parent 827e9d822c
commit 5f04ccdd4e
65 changed files with 4859 additions and 9 deletions

View File

@@ -94,6 +94,10 @@ export const api = {
return { ok: false, reason: 'anon' };
},
logout: () => fetch('/auth/logout', { method: 'POST', credentials: 'include' }),
dictionary: () => request<DictionaryResponse>('/api/dictionary'),
addWord: (word: string) => request<{ ok: true }>('/api/dictionary', { method: 'POST', body: JSON.stringify({ word }) }),
addRule: (from: string, to: string) => request<{ ok: true }>('/api/dictionary', { method: 'POST', body: JSON.stringify({ from, to }) }),
deleteDict: (id: number) => request<{ ok: true }>(`/api/dictionary/${id}`, { method: 'DELETE' }),
/** 관리자(OWNER_DISCORD_IDS) 전용: 게임 PC 1회용 등록 코드 (10분) */
registrationCode: () => request<{ code: string; expiresAt: number }>('/admin/registration-code', { method: 'POST' }),
status: () => request<StatusResponse>('/api/status'),
@@ -121,3 +125,19 @@ export const api = {
correct: (id: string, text: string) =>
request<UtteranceItem>(`/api/utterances/${encodeURIComponent(id)}`, { method: 'PATCH', body: JSON.stringify({ text }) }),
};
export interface DictionaryEntry {
id: number;
word: string;
from: string | null;
kind: 'hotword' | 'correction';
pack: string;
source: 'builtin' | 'user' | 'site';
enabled: boolean;
hits: number;
}
export interface DictionaryResponse {
labels: Record<string, string>;
entries: DictionaryEntry[];
packs: { key: string; label: string; count: number }[];
}