G-DELIVERY: クラウドセッション起動時にffmpeg/文字起こしライブラリを自動導入 - #22
Merged
Merged
Conversation
session-start-hookスキルに従い.claude/hooks/session-start.shを新設し .claude/settings.jsonのSessionStartに配線。$CLAUDE_CODE_REMOTEが真の場合のみ ffmpeg・faster-whisper/groqの有無を確認し無ければ自動導入、それ以外(手元PC)は 即終了しapt/pipに触れない。実地検証(強制欠落→再導入)で、apt-get updateが 本筋と無関係な野良PPAの403でset -eにより全体停止しffmpeg導入まで到達できない 不具合を発見し修正(該当行のみ|| true)。CIにhook-session-startジョブを追加し 継続的に機械検証する。start-here.mdにクラウド専用ユーザー向けの案内を追記。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Krg9N4phVxqNqW2KAruNcj
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughA remote-only Claude Code session hook now installs missing ChangesRemote dependency bootstrap
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ClaudeCode
participant SessionStartHook
participant PackageManagers
participant CI
ClaudeCode->>SessionStartHook: Start remote session
SessionStartHook->>PackageManagers: Install missing ffmpeg and Python packages
PackageManagers-->>SessionStartHook: Report installation results
CI->>SessionStartHook: Run hook with remote mode enabled
CI->>PackageManagers: Verify ffmpeg and Python imports
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
hook-session-startジョブの成功run URLをG-DELIVERY-HOOK-FFMPEG/PYTHON/ LOCALSAFEのevidenceに、start-here.md追記commitのSHAをG-DELIVERY-DOCの evidenceに記入。meta.active/nextをP1-8へ戻す。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Krg9N4phVxqNqW2KAruNcj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
2026-07-28マスター指示(配布パターン「Claude Codeあり×PCなし(クラウド上のClaude Codeセッションのみで完結)」をまず完成させる)を受け、
docs/roadmap.htmlのG-DELIVERY配下に原子ツリー4葉(G-DELIVERY-HOOK-FFMPEG/HOOK-PYTHON/HOOK-LOCALSAFE/DOC)を新設。.claude/hooks/session-start.shを新設し.claude/settings.jsonのSessionStartに配線。$CLAUDE_CODE_REMOTEが真の場合のみ ffmpeg・文字起こしライブラリ(faster-whisper/groq)の有無を確認し、無ければ自動導入する。真でない場合(手元PCでの通常セッション)は即終了し apt/pip に一切触れない。video-shorts/start-here.mdの冒頭に、クラウド版Claude Codeセッションのみ(PC無し)で使う場合はffmpeg等の個別案内が不要である旨を追記。.github/workflows/ci.ymlにhook-session-startジョブを追加。CI上でffmpeg/pythonライブラリを一旦除去してから本フックで再導入できることを継続的に機械検証する(外部install依存でflakyになりうるため、必須ゲートci-greenには含めていない)。実地検証で発見・修正したバグ
sudo apt-get remove -y ffmpeg/pip uninstallで強制的に欠落させた状態からsession-start.shを実行して自動導入を検証したところ、sudo apt-get update -yが本リポジトリの用途とは無関係な野良PPA(deadsnakes・ondrej/php。実行環境イメージに元から設定されていたapt source)への403 Forbiddenで非ゼロ終了し、スクリプト冒頭のset -euo pipefailによりapt-get install -y ffmpegにすら到達できず、無言でffmpeg未導入のまま終了する不具合を発見した(標準リポジトリ由来のffmpeg自体は取得可能だった)。apt-get update行のみ|| trueを付け、無関係sourceの失敗ではinstallまでの到達を止めないよう修正した。詳細はdocs/failures.mdの2026-07-28追記を参照。Test plan
pnpm -r --if-present typecheckpnpm -r --if-present lintpnpm -r test(全53 PASS / dict-corrector 全PASS / restart-reconnect 4 PASS、既存分含む)pnpm -r --if-present buildpnpm audit --audit-level moderate(既知の脆弱性なし)node scripts/verify-roadmap-evidence.mjs(roadmap evidence リンタ OK)env -u CLAUDE_CODE_REMOTE session-start.shが無音・即終了すること(ローカルPC想定でのno-op)sudo apt-get remove -y ffmpegとpip uninstall faster-whisper groqで強制欠落させた状態からCLAUDE_CODE_REMOTE=true session-start.shを実行し、両方とも自動導入されffmpeg -version/python3 -c "import faster_whisper, groq"が成功することを確認hook-session-startジョブ)が緑になり次第、docs/roadmap.htmlのG-DELIVERY-HOOK-*のevidenceにCI run URLを、G-DELIVERY-DOCのevidenceにstart-here.md追記のcommit SHAを記入する追いコミットを行うGenerated by Claude Code
Summary by CodeRabbit
New Features
Documentation
Tests