Repository navigation
feat(playlist): orchestrate per-video extraction for playlists - #45
Merged
cmglezpdev merged 1 commit intoAug 20, 2026
Conversation
2 tasks done
Add runPlaylistExtraction, which loops the unchanged single-video pipeline over playlist members, nests each notes folder under the playlist slug with an NN- position prefix, resumes per video, records unavailable members without extracting them, and aggregates per-member failures instead of aborting. Infrastructure errors still abort the run. Adds playlist progress events and the PLAYLIST_EMPTY and PLAYLIST_PARTIAL_FAILURE error codes.
cmglezpdev
force-pushed
the
feat/playlist-support-04-orchestrator
branch
from
August 20, 2026 00:23
fc33016 to
97307e2
Compare
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.
What this changes
Adds
runPlaylistExtraction: identifies the playlist, lists members, loops the unchangedrunExtractionper member (nested notes folder, per-video resume/--force), records unavailable members without extracting, aggregates per-member failures, saves the playlist record, and writes the orchestratorprompt.md.Why
The loop layer that turns the previous slices into an end-to-end pipeline. Infrastructure errors (
YTDLP_NOT_FOUND,BOT_CHECK,RATE_LIMITED,PATH_ESCAPE,ROOT_OVERLAP, non-VetaError) abort the run; per-video errors mark that member failed and continue. It returnsfailedCountinstead of throwing so the CLI (next PR) can print the prompt path to stdout before exiting non-zero.How to verify
Checklist
pnpm typecheckandpnpm testpassScope
PLAYLIST_EMPTY/PLAYLIST_PARTIAL_FAILUREcodes (+ mechanical exit-code map entries forced by exhaustiveness).Chain Context
feat/playlist-support-03b-playlist-promptChain Overview