Skip to content

feat(providers): add MiniMax coding plan - #872

Merged
Astro-Han merged 3 commits into
mainfrom
feat/minimax-plan-support
Jul 13, 2026
Merged

Astro-Han merged 3 commits into
mainfrom
feat/minimax-plan-support

Conversation

@Astro-Han

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

Copy link
Copy Markdown
Contributor

Summary

  • Add MiniMax Coding Plan as an independent persisted provider with its own API-key credentials, endpoint, discovery behavior, and headless environment namespace.
  • Preserve exact live-discovery model IDs with a deterministic MiniMax snapshot fallback, and cover the Anthropic-compatible runtime through a secret-free local tool-call round trip.
  • Replace the historical MiniMax placeholder mark with MiniMax’s official SVG and expose the existing ProviderLogo through the shared provider-detail header seam.

Why

MiniMax Coding Plan is a distinct access path from the existing MiniMax direct API. It uses the Coding Plan Anthropic-compatible endpoint and credentials, so merging it into the existing MiniMax provider would conflate persisted identity, authentication, discovery, and runtime behavior.

The provider catalog and detail page also need one governed brand source. MiniMax publishes an official SVG asset, so the UI should consume that exact asset rather than maintain a hand-authored approximation.

Refs #860.

Scope

This PR covers only the MiniMax Coding Plan slice of Issue #860 and the generic detail-header ProviderLogo seam required to render its governed mark. It does not change existing MiniMax direct API identity or behavior, add other provider plans, or implement Phase 7.

A real-credential smoke was not run and is intentionally non-blocking. All committed coverage is deterministic and contains no secrets, raw provider responses, or sensitive account data.

Verification

  • npm run typecheck — passed for all workspaces
  • npm test — passed for all workspaces; Desktop 2401/2401
  • npm run check:stale — passed
  • npm --workspace @maka/desktop run e2e — 12/14 passed in the combined run; the two failures stopped in Electron fixture startup before product behavior (firstWindow timeout / missing Playwright artifact). Each failed test then passed independently with the repository workspace script, 1/1 and 1/1.
  • MiniMax provider catalog/detail Playwright flow — passed, including the official hashed SVG asset in both views
  • Deterministic provider conformance coverage — passed for X-Api-Key discovery, exact model-ID preservation, snapshot fallback, and an Anthropic-compatible tool call
  • Independent reviewer after rebase to 455836c359be6085a1dfa9ad1a4d0f7a4220e9fe — passed with no P0–P3 findings

Screenshots are not included because the change does not introduce a new visual design: it replaces a placeholder with the provider’s exact official mark and routes that same mark through the existing catalog/detail presentation. The substitute evidence is byte-level asset governance plus Playwright assertions that the bundled official SVG is visibly rendered in both catalog and detail states.

Impact

Users can configure MiniMax Coding Plan independently from MiniMax direct API access. Existing persisted provider IDs and direct MiniMax behavior remain unchanged.

Headless users can configure the plan through:

  • MINIMAX_CODING_PLAN_API_KEY
  • MINIMAX_CODING_PLAN_API_KEY_FILE
  • MINIMAX_CODING_PLAN_BASE_URL

No migration is required. The shared detail-header change is optional and generic: providers with a providerType reuse the existing ProviderLogo; there is no MiniMax-specific branch.

Reviewer notes

MiniMax Coding Plan uses https://api.minimax.io/anthropic. Runtime requests and GET /anthropic/v1/models both use X-Api-Key, matching the provider’s Anthropic-compatible API-key contract.

The fallback catalog is derived from the existing generated MiniMax models.dev snapshot, filtered to tool-capable models, with MiniMax-M3 recommended first. Live discovery remains authoritative and preserves returned model IDs exactly.

Brand provenance:

  • Official page: https://platform.minimax.io/docs/faq/contact-us#brand-resources
  • Official archive: https://file.cdn.minimax.io/public/MiniMax_Logo.zip
  • Archived member consumed byte-for-byte: MiniMax_Logo/svg/logo-only/vertical/minimax_logo-only_vertical_color-bg_white-text.svg
  • Vendored SHA-256: 386033f6d1cfc5359877b402221a819f272cf6333eae12a95858fdcc226811a5

The icon-governance test locks the source URLs, archive member, hash, imported <img> rendering, and the single shared mark for minimax-coding-plan, MiniMax, and MiniMax-cn.

Ready for review

  • Verification is complete and the results above are current
  • Impact, compatibility, migration, documentation, and release-note needs are addressed
  • User-visible UI/UX changes include visual evidence, or Verification explains why it is not applicable

@Astro-Han
Astro-Han force-pushed the feat/minimax-plan-support branch from f89d9e2 to 0143054 Compare July 13, 2026 13:55
@Astro-Han
Astro-Han merged commit e6ca5dc into main Jul 13, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/minimax-plan-support branch July 13, 2026 13:59
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.

1 participant