Commit graph

1 commit

Author SHA1 Message Date
808ae19772 feat(youtube-studio): accept a cadence handoff bundle alongside the video
All checks were successful
CI / unit (pull_request) Successful in 46s
CI / backend-e2e (pull_request) Successful in 1m22s
CI / dashboard-e2e (pull_request) Successful in 2m32s
The Clip Generator already takes an optional cadence handoff ZIP and uses its
edited transcript instead of Whisper. YouTube Studio now does the same: an
optional `.zip` on the Analyze Video step rides along as a `handoff` field on
POST /api/thumbnail/analyze.

- `_read_handoff_transcript` stages the upload under the existing size cap and
  validates it with `_stage_handoff_bundle`, returning the edited transcript
  without importing the heavy pipeline.
- `thumbnail_analyze` passes that transcript as the pre-transcript and skips the
  background Whisper wait/error path when a handoff is present; behavior is
  unchanged when it is not.
- The video is still required for frames and publishing; the handoff only
  replaces transcription.
- UI: optional handoff drop zone on Step 0, skipped early Whisper when a bundle
  is attached, and reset clears it.
2026-10-06 13:04:39 +01:00