범인찾기 C2: 사이트 서버 Claude 호출 · 근거 확인 · 예산 장부
- POST /api/culprit/matches/:id/analyze: 등록된 앱 유저 이상(다시 분석은 관리자), 월 $100 · 하루 20회 · 중복 잠금 - Claude Opus 5.5 (생각 high, 구조화 출력, 출력 32k 상한, 거절 시 서버 측 fallback), 지시문 + 게임별 지식 묶음(자동 갱신 칸은 공식 데이터로 하루 한 번) - 결과 확인: 10명 · 0.5 단위 점수 · 태그 · 팀마다 범인 1명(팀 최저점) · 없는 근거 번호 제거, 범인 근거가 안 맞으면 한 번 다시 - 비용 장부(culprit-ledger.json)는 토큰 · 비용만, 진행 단계는 실시간 알림(culprit.progress) - 지시문 v1.1: 범인 = 가장 못함 + 가장 발목 + 결과의 원인 종합 판단, 자료 약어 설명 추가 - 배포: Dockerfile 에 prompt/ 복사, ANTHROPIC_API_KEY 넣는 스크립트 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -62,6 +62,11 @@ export class RelayHub {
|
||||
this.broadcast({ type: 'status', data: { device: st } });
|
||||
}
|
||||
|
||||
/** 서버가 만든 실시간 이벤트 (범인찾기 진행 단계 등) */
|
||||
publish(ev: LiveEvent): void {
|
||||
this.broadcast(ev);
|
||||
}
|
||||
|
||||
private broadcast(m: BrowserMessage): void {
|
||||
const txt = JSON.stringify(m);
|
||||
for (const b of this.browsers) if (b.readyState === WebSocket.OPEN) b.send(txt);
|
||||
|
||||
Reference in New Issue
Block a user