Commit graph

1 commit

Author SHA1 Message Date
980dae98e8 feat(youtube-studio): accept a cadence handoff bundle alongside the video (#11)
Some checks failed
CI / dashboard-e2e (push) Waiting to run
CI / backend-e2e (push) Waiting to run
CI / unit (push) Has been cancelled
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.

Reviewed-on: #11
Co-authored-by: pedro-bento <mail@pbento.pt>
Co-committed-by: pedro-bento <mail@pbento.pt>
2026-10-14 09:53:57 +01:00