feat(auth): add Profile API key capability fallback - #176
Open
XXPermanentXX wants to merge 5 commits into
Open
Conversation
…ty-fallback # Conflicts: # skills/bailian-gen/reference/index.md
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
api_key_capabilitiesallowlists keyed by leaf command path, with unsupported API Key commands reading onlyapi_keyandbase_urlfromdefault--api-key/--base-urlorDASHSCOPE_API_KEY/DASHSCOPE_BASE_URLbypasses fallback, while fallback notices are emitted to stderr in localized text or structured JSONtoken-planpreset with validated text, vision, image, speech, and video capabilities; append missing preset entries after successful API Key login without deleting user entriesqwen-audio-3.0-tts-plusandqwen-audio-3.0-asr-flash), config support, documentation, and regression coverageVerification
vp check— 0 errors (5 warnings already present on themainbaseline)vp test packages/core/tests/config-priority.test.ts packages/core/tests/config-store.test.ts packages/runtime/tests/auth-profile-fallback.test.ts packages/commands/tests/e2e/auth.e2e.test.ts— 78 passed, 1 skippedgit diff HEAD --checkTest note
The opt-in live speech-recognition suite still has an environment/service-only failure: its existing setup first calls the explicitly selected
cosyvoice-v3-flash, which currently returns HTTP 404Model not exist. No affected Profile fallback or Token Plan default-model test fails.