mirror of
https://github.com/makecindy/cindy.git
synced 2026-12-03 21:40:27 +08:00
d51754316e65a53ec28be9bad36c2e00a88de839
1 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
81643467c0 |
feat(providers): unify model imports and native harness defaults (#4402)
* feat(providers): unify imports and native harness defaults Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): preserve OAuth pricing and account-specific routing Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): pair native APIs with endpoints and preserve import defaults Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): retain native auth and SDK connection probes Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): preserve template routes when editing connections Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): lock fixed template connection endpoints Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): drop duplicate model-compat lockfile importer Merging main duplicated the packages/model-compat importer and broke pnpm frozen installs in CI. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep OAuth save and reasoning state per connection Closing the wizard while finish is in flight no longer deletes the account being saved. Claude Code reasoning blobs are namespaced by connection id, not only the shared upstream URL. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep OAuth quotes and drop stale request paths Generic OAuth discovery prices now publish under the connection for usage estimates. Changing a model protocol no longer reuses the previous exact request path. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): skip Google embed models and retired siblings Google discovery now requires generateContent, so embedding-only models stay out of chat runtimes. Catalog native API lookup no longer lets a retired variant suppress the active identity. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): allow empty OAuth scopes and static Pi adapters Preset OAuth connections can keep an empty scope string so provider defaults still apply. Desktop Main now loads Pi native adapters with top-level imports instead of runtime import(). Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): register proxy OAuth adapters for Pi Copilot OAuth connections already declare a native adapter identity, but the Pi spawn list required an API key env. Register those aliases even when credentials stay on the local proxy. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * test(providers): type Copilot OAuth fixture API for desktop typecheck Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep OAuth recommendations and copy account slots OAuth login now treats omitted defaultEnabled as selected, matching the API key picker. Editing one templated endpoint fills the other engines instead of leaving leftover placeholders. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): persist checked models and Google import/copy Wizard saves explicit defaultEnabled for checked models so compat slots stay on. Deep-link import and runtime copy accept Google and the other Claude Code wires. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep explicit defaultEnabled on imported models Deep-link import now stores defaultEnabled true as well as false, so a compatibility runtime enabled by the sender stays enabled after import. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): do not let adhoc Vertex probes inherit host ADC Renderer-chosen google-vertex and Bedrock probes cannot use Desktop environment credentials against an unrelated host. Saved connections and user-supplied keys still work. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): dispatch implicit Claude Google routes The implicit resolver already returned google-generative-ai connections, but dispatch still dropped that wire during the session-binding race. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): skip Vercel image rows and bound native error bodies Chat import cannot execute Vercel type=image models, so they no longer appear then vanish. Native adapter error clones now read a prefix only. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): drop OAuth tokens when runtime endpoints change A renderer that can edit a saved OAuth connection must not keep the logged-in token after baseUrl or modelsUrl moves to another host. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep checked models, remote Claude wires, and OAuth headers Persist explicit defaultEnabled, refuse non-Messages remote Claude routes, forward saved OAuth headers on refresh, and stop saved Vertex probes from inheriting Desktop ADC against unapproved hosts. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep Bedrock probes on approved hosts Dummy API keys must not let Bedrock inherit Desktop IAM against an untrusted URL. Mobile session controls now import identity without the Desktop provider catalog. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep Cloudflare header-only credentials Do not overwrite a saved cf-aig-authorization header with an empty Bearer token during probes, Claude/Codex bridges, or Pi adapters. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): bind Bedrock execution to approved endpoints Connection probes already refused host IAM against untrusted URLs. Claude/Codex turns now use the same Main-approved endpoint check before the native SDK can sign with Desktop credentials. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep Cloudflare headers and skip remote OAuth Pi Native Claude/Codex bridges no longer invent a fake API key that overwrites header-only Cloudflare credentials. Remote Pi also no longer rewrites OAuth connections onto the Desktop loopback proxy. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> * fix(providers): keep checked models and Pi host-credential guards Connection edits now persist explicit defaultEnabled. Pi skips Bedrock destinations that are not Main-approved, and placeholder keys no longer overwrite Cloudflare header-only credentials. Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> --------- Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com> Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com> |