Improve YouTube skill routing and transcript transport - #3
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 changed
youtube-direct, automatically continues withvideo2ctx-apiif direct access fails, and routes account, usage, and managed hosted workflows directly to the hosted skill.video2ctx whoami --jsoncall and adds tested common-route recipes so agents do not discover the known YouTube provider or fetch documentation on every request.text,segments, andwords) to the direct skill CLI and hosted API while preserving the hosted API's existing rich response whenformatis omitted.video2ctx transcript <url-or-id>to@video2ctx/cli, bumps it to 0.2.0, and gives hosted data calls a 150-second default deadline with bounded overrides.Retry-After; mutations are never retried.Why
Black-box agent tests showed that an installed hosted CLI nudged agents toward
video2ctx-apieven for simple public transcript summaries. The hosted path also required avoidable discovery and documentation calls, returned unnecessarily large word-timing payloads, used a 30-second deadline below the platform's processor budget, and reduced API failures to prose.This change keeps the zero-account direct path first without turning hosted access into a manual decision gate. The hosted path remains an automatic fallback and the direct route for account and usage operations.
Validation
npm test(25 library tests passed, 178 platform tests passed, 7 processor tests passed; one opt-in live library test skipped)npm run build(library, CLI, platform TypeScript, and Next.js production build)npm --prefix packages/video2ctx-cli run verify(18 tests, build, version, and help)npm run skill:checkquick_validate.pyfor all three skillsnpm run docs:checknpm run docs:verifyunder Node 22 (Mint validate, broken links, and accessibility)npm pack --dry-runfor@video2ctx/cli@0.2.0Deliberately deferred
This PR does not publish
@video2ctx/cli@0.2.0; publishing remains a separate release step after review and deployment.