- 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>
30 lines
969 B
JSON
30 lines
969 B
JSON
{
|
|
"name": "gvr-site-server",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "겜녹이 사이트 서버: 디스코드 로그인, 게임 PC 연결 확인·중계, 게임 이미지 캐시",
|
|
"scripts": {
|
|
"build": "esbuild src/main.ts src/cli.ts --bundle --platform=node --format=esm --target=node22 --outdir=dist --packages=external --alias:@gvr/shared=../../packages/shared/src/index.ts",
|
|
"start": "node dist/main.js",
|
|
"dev": "node --import tsx src/main.ts",
|
|
"typecheck": "tsc --noEmit -p .",
|
|
"test": "node --import tsx --test test/*.test.ts"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.134.0",
|
|
"@fastify/cookie": "^11.0.2",
|
|
"@fastify/static": "^8.2.0",
|
|
"discord.js": "^14.27.0",
|
|
"fastify": "^5.6.1",
|
|
"ws": "^8.18.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.18.0",
|
|
"@types/ws": "^8.18.1",
|
|
"esbuild": "^0.25.10",
|
|
"tsx": "^4.20.6",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|