M3: 발로란트 연동 - 전체 스택 시연·테스트, 핫워드 되풀이 방지

- scripts/demo-stack.mts: 코어+STT+사이트 서버+중계+헤드리스 브라우저 전체 스택 (22라운드 어센트, TTS 대화, 잠금/해제)
- test/fixtures/demo-matches.ts: match-details·LCU 구조 시연 데이터
- 워커: 결과가 핫워드 목록 되풀이면 핫워드 없이 다시 변환, 핫워드 40개
- ACS: API 는 총 전투 점수

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-15 01:41:02 +09:00
parent 9abda88046
commit 5222b3ee72
17 changed files with 549 additions and 21 deletions

View File

@@ -14,7 +14,7 @@ const CONTEXT_PACKS: Record<DictContext, string[]> = {
none: ['site', 'user', 'daily', 'university', 'slang20s', 'game', 'valorant', 'lol'],
};
/** Whisper 프롬프트 길이 제한 때문에 핫워드는 이 정도까지만 */
const MAX_HOTWORDS = 60;
const MAX_HOTWORDS = 40;
export interface PackFile {
meta: { generatedAt: string };

View File

@@ -514,7 +514,7 @@ export function processMatchDetails(md: any, selfPuuid: string, assets: GameAsse
kills: p.stats?.kills ?? 0,
deaths: p.stats?.deaths ?? 0,
assists: p.stats?.assists ?? 0,
score: p.stats?.roundsPlayed ? Math.round((p.stats.score ?? 0) / p.stats.roundsPlayed) : (p.stats?.score ?? 0),
score: p.stats?.score ?? 0, // 총 전투 점수 (사이트가 라운드 수로 나눠 ACS 표시)
rank: assets.val?.tiers[p.competitiveTier] ?? null,
}));
const selfTeamInfo = (md.teams || []).find((t: any) => t.teamId === selfTeam);