v1.3.3: 따라갈 사람 목록 · 롤 채팅 OCR 제거 · 표시 이름(실명 숨기기)

- 따라갈 사람: 봇이 서버를 지켜보기 전 멤버 요청을 사이트 서버가 forbidden 으로 거절하고 앱이 오류를 숨겨 빈 목록이 됐다
  → 가입한 서버면 지켜보기 전에도 응답(source.members 가 멤버 확인), 앱은 오류 · 다시 불러오기 표시
  → 내 계정 → 관리자(GET /app/admins) → 이름순, 녹음할 서버를 바꾸면 봇을 다시 붙여 새 서버를 지켜봄
- 롤 채팅 OCR 제거: 앱 설정 · 마법사 · 진단 · lol.ts · 워커 ocr.py/ocr_* op · pywinrt/mss/Pillow · win-ci ocr_lang
  롤은 게임 중 전체/팀 채팅 API 가 없어 LCU(챔피언 선택 · 게임 후) + r3dlog(남아 있을 때, LCU 채팅을 지우지 않고 추가)
- 표시 이름: 서버 store.displayNames (세션 · 앱 유저 · 접속 기록 이름까지 바꿈), GET /app/names, PUT /app/admin/names,
  cli name. 앱은 받아서 users · 지난 범인 분석 이름을 바꾸고 이후 디스코드 이름 대신 저장. 관리자 탭에 편집 UI
- 저장소 시연 · 테스트 데이터 · 화면 캡처 · 계획서 PDF 의 실제 이름을 가짜 이름으로 교체
- 테스트: 앱 41 · 서버 16 · 워커 39 통과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-16 02:42:57 +09:00
parent 7db2a5d69f
commit b230443409
94 changed files with 494 additions and 677 deletions

View File

@@ -1,8 +1,8 @@
"""Windows 실기 확인 (win-ci VM / 게임 PC): 워커를 프로토콜로 띄워 hello · gpu_info · OCR · r3dlog · STT(tiny) 를 돌린다.
"""Windows 실기 확인 (win-ci VM / 게임 PC): 워커를 프로토콜로 띄워 hello · gpu_info · r3dlog · STT(tiny) 를 돌린다.
python scripts/win_smoke.py [--exe dist/gvr-worker/gvr-worker.exe] [--out result.json]
종료 코드 0 = OCR 이 예시 3줄 중 2줄 이상 읽고 STT 가 한국어를 냈다.
종료 코드 0 = r3dlog 채팅 2줄을 읽고 STT 가 한국어를 냈다.
"""
from __future__ import annotations
@@ -18,7 +18,6 @@ import time
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
SAMPLE_PNG = ROOT / "app" / "resources" / "diag" / "lol-chat-sample.png"
SAMPLE_OGG = ROOT / "app" / "resources" / "diag" / "speech_ko.ogg"
@@ -76,7 +75,6 @@ def main() -> int:
res: dict = {}
res["hello"] = w.req("hello", 60)
res["gpu_info"] = w.req("gpu_info", 60)
res["ocr_image"] = w.req("ocr_image", 120, path=str(SAMPLE_PNG), lang="ko")
logs = data / "GameLogs" / "2026-10-15T12-00-00"
logs.mkdir(parents=True)
(logs / "2026-10-15T12-00-00_r3dlog.txt").write_text(
@@ -88,15 +86,12 @@ def main() -> int:
corrections=[], dictionary=["레이즈", "로테"], target_lufs=-18, noise_sensitivity=0.5,
denoise=False, profile_lufs=None)
w.req("shutdown", 30)
lines = [l.get("text", "") for l in (res["ocr_image"].get("result") or {}).get("lines", [])]
want = ["드래곤가자", "gg", "바텀갱간다"]
hit = sum(1 for x in want if any(x in l.replace(" ", "") for l in lines))
text = ((res["transcribe"].get("result") or {}).get("text") or "")
res["summary"] = {"ocr_lines": lines, "ocr_hit": hit, "stt_text": text,
"r3dlog_lines": len((res["r3dlog_read"].get("result") or {}).get("lines", []))}
r3d = len((res["r3dlog_read"].get("result") or {}).get("lines", []))
res["summary"] = {"stt_text": text, "r3dlog_lines": r3d}
Path(a.out).write_text(json.dumps(res, ensure_ascii=False, indent=2), encoding="utf-8")
print(json.dumps(res["summary"], ensure_ascii=False))
ok = hit >= 2 and "레이즈" in text
ok = r3d == 2 and "레이즈" in text
print("WIN SMOKE", "PASS" if ok else "FAIL")
return 0 if ok else 1