Skip to content

feat(providers): discover remote model catalogs - #1572

Merged
Astro-Han merged 4 commits into
mainfrom
feat/1571-remote-model-discovery
Jul 28, 2026
Merged

Astro-Han merged 4 commits into
mainfrom
feat/1571-remote-model-discovery

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #1571.

  • Move 12 previously fallback-only Tencent, Volcengine Coding Plan, Xiaomi, StepFun, and Alibaba providers to credential-backed protocol discovery.
  • Add native Cloudflare Workers AI discovery through /ai/models/search, with server-side text-generation filtering, official empty-page pagination, and exact 2,048-model bounds.
  • Keep Volcengine Ark direct API fallback-only because discovery requires control-plane AK/SK signing, and make its registry snapshot authoritative over stale persisted fetch caches without removing explicit user model choices.
  • Normalize and bound discovered model IDs while leaving authoritative-empty OAuth semantics intact; interactive refresh rejects empty catalogs and preserves the last successful cache.
  • Centralize model-discovery capability in the provider registry contract, auto-refresh discoverable connections on create/credential/endpoint changes, and preserve custom-relay silent discovery behavior.
  • Cover registry strategy, protocol wires, pagination boundaries, cache/provenance invariants, fallback policy, and renderer/main integration with executable contracts.

Verification

  • npm run build:test
  • npm run lint
  • npm run format:check
  • npm run typecheck
  • npm --workspace @maka/core test — 1250 passed
  • npm --workspace @maka/storage test — 710 passed, 1 environment-dependent test skipped
  • npm --workspace @maka/runtime test — 2751 passed, 9 environment-dependent tests skipped
  • npm --workspace @maka/desktop test — 2957 passed
  • Focused provider discovery/conformance suite — 171 passed
  • npm --workspace @maka/desktop run e2e -- e2e/providers.spec.ts — 4 passed

No screenshot: this changes discovery behavior, cache ownership, and refresh timing without changing the rendered UI.

@Astro-Han
Astro-Han merged commit 4ec8a68 into main Jul 28, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/1571-remote-model-discovery branch July 28, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(providers): make model discovery remote-first

1 participant