Skip to content

feat(max-transcribe): WhisperX diarization + Steam Sniper backlog from sessions 017–021#51

Closed
NickStr11 wants to merge 8 commits intomainfrom
claude/pedantic-black-1bf745
Closed

feat(max-transcribe): WhisperX diarization + Steam Sniper backlog from sessions 017–021#51
NickStr11 wants to merge 8 commits intomainfrom
claude/pedantic-black-1bf745

Conversation

@NickStr11
Copy link
Copy Markdown
Owner

Что в этом PR

Два независимых пласта изменений, объединённых веткой worktree:

1. Этой сессии (3 файла, 103 строки)

  • tools/max-transcribe/transcribe.py — новый флаг --diarize, включает speaker labels через WhisperX для многоспикерных аудио. Дефолтный быстрый путь (whisper-cli) не меняется. Graceful fallback при отсутствии whisperx или HF_TOKEN.
  • .gitignore — исключён huashu-design skill (внешний репо, держим локально) и его BGM-треки (~27MB).
  • scripts/fetch_huashu_bgm.sh — идемпотентный скрипт восстановления BGM из upstream.

2. Накопленные коммиты Steam Sniper (sessions 017–021)

Шесть коммитов, лежавших локально в main и не запушенных раньше:

  • 0cac1ad session 017 — item detail + snapshot pipeline on cortex-vm
  • c64e375 session 018 — UI-батч по фидбеку Лёхи
  • f30b326 session 019 — extension v1.2 + apteka-bot + PharmOrder export brief
  • 65af244 session 020 — memory cleanup + UX fix
  • 148dde7 session 021 — pre-commit real tests + dead code cleanup
  • 955dc65 accumulated changes from sessions 018–020

Основная масса изменений в tools/steam-sniper/ (CSS +1352, server.py +627, item_detail.js +567, тесты).

Для ревьюера

  • Для --diarize нужно pip install whisperx + HF_TOKEN (принять лицензию pyannote). Без них обычный путь работает как раньше.
  • huashu-design теперь в .gitignore — клонируется локально вручную или через fetch-скрипт.
  • Pre-commit тесты: все 104 прошли.

🤖 Generated with Claude Code

Nick and others added 8 commits April 17, 2026 10:49
…shot pipeline on cortex-vm

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… Codex

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…arkdown + PharmOrder export brief

- Chrome extension v1.2 (price alerts UI из lis-skins), Codex backend по alerts готов
- apteka-bot: escape_markdown в карточках заказов
- cortex-vm мертва с 19.04 OOM, snapshot pipeline встал
- Gemini custom instructions переписаны (3 блока)
- PharmOrder export idempotency brief на Desktop

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Main changes:
- Merge diary into single source of truth (memory/diary/ in repo).
  Moved 001-005 from ~/.claude/projects/.../diary/ (6 files, 001 duplicate
  renamed to 001b). Updated pre-compact.py hook and /diary, /reflect
  commands to target repo path via CLAUDE_PROJECT_DIR env.
- CLAUDE.md: corrected memory/ architecture diagram (memory/ in repo
  contains only diary + subagents-playbook; MEMORY.md, feedback, project
  files live in ~/.claude/projects/.../memory/ per-user, outside git).
  Removed unenforced L0-heading rule.
- Steam Sniper UX: empty-state CTA in item modal's Telegram-alerts
  section. When item not in Fav/Wishlist, show two list-toggle buttons
  ('В Избранное'/'В Хотелки'); lists:changed event re-renders modal with
  alert fields. SW bump v4→v5, added item_detail.js+theme.js to
  STATIC_ASSETS. Fix for Lesha's complaint that 'price doesn't save'.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Repo hygiene pass after external audit:
- Fix pre-commit hook and scripts/ops.sh: run real tests on
  tools/steam-sniper + tools/metrics instead of removed
  tools/heartbeat. Defense net was false-green for a month (104
  steam-sniper tests never ran on commit). Now 116 tests run in ~2s.
- Remove dead slash commands (.claude/commands/heartbeat.md,
  new-project.md) that pointed to archived tools.
- Remove empty tools/ui-ux/ (only stale __pycache__ remained).
- Remove broken scripts/screenshot.bat (pointed to non-existent
  scripts/tools/).
- Fix CLAUDE.md:104 instruction precedence: MEMORY.md lives in
  ~/.claude/projects/.../memory/, not in repo.
- Move pytest from optional-dependencies.dev to main deps in
  steam-sniper (internal tool, no dev/prod split needed).
- .gitignore: scripts/.claude/ (artifact of running claude from
  scripts/ dir).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Everything that shipped to prod over the last few sessions but was
never committed:

- Extension v1.2 (inline alerts form, background.js addToList+setTargets,
  bottom:96px to not overlap lis-skins support widget)
- Price alerts end-to-end: db.py schema (target_below/above_rub on
  user_lists, ALTER TABLE on boot), server.py PATCH /api/lists/target,
  _check_list_alerts in _refresh_prices, TG notifications via Bot API
- Item detail modal: empty-state CTA for alerts section, lists:changed
  subscription to re-render with alert fields after add, Enter/blur
  commit hint
- Hero card "Алерты" counts fav+wish targets
- Snapshot pipeline + listings_snapshot.py + local item detail rendering
- deploy_quick.py for fast VPS pushes (~60s)
- theme.js for dark/light toggle persistence
- Service worker bump v4→v5, item_detail.js+theme.js in STATIC_ASSETS
- dashboard.html, catalog.js, cases.js, lists.js, main.js, stats.js
  UI updates (dark mode, filters, knives, hero)
- Tests kept green throughout (104 passed)

Deployed to http://72.56.37.150/. Co-authored over sessions 018, 019,
020 with Codex (backend alerts) and me (UI + extension).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- transcribe.py: new _transcribe_diarize() path via whisperx module
  with speaker labels for multi-voice audio. Default fast path
  (whisper-cli) unchanged. Graceful fallback when whisperx or
  HF_TOKEN missing.
- .gitignore: exclude huashu-design skill (external repo, kept
  locally) and its BGM tracks (~27MB, restored via fetch script)
- scripts/fetch_huashu_bgm.sh: idempotent BGM restore from upstream

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- memory/diary/022_2026-04-24.md: новая запись о сессии
- CURRENT_CONTEXT.md: обновлён блок фокуса (+интеграции из digest),
  добавлены задачи PR #51 merge и потенциальный sync_external_skills.sh,
  добавлены артефакты сессии 022

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@NickStr11
Copy link
Copy Markdown
Owner Author

Закрыт без мержа: код из коммитов 017-022 уже в production на VPS Steam Sniper (72.56.37.150) и max-transcribe локально. Гит-история отстаёт от проды, но это backup-репо, не источник правды. Конфликты с main после сессий 026-029 не стоят затрат на резолв.

@NickStr11 NickStr11 closed this May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant