Skip to content

feat(providers): add Cerebras support - #888

Merged
Astro-Han merged 7 commits into
mainfrom
feat/cerebras-provider-support
Jul 13, 2026
Merged

Astro-Han merged 7 commits into
mainfrom
feat/cerebras-provider-support

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • Add Cerebras as a first-class hosted provider across the shared registry, Desktop, CLI, storage, runtime, and headless/Harbor paths.
  • Preserve exact account-discovered model IDs and verify the documented Bearer-authenticated two-stage tool-call loop without real credentials or recorded responses.
  • Vendor the byte-identical Cerebras Lobe Icons SVG, route it through the shared ProviderAssetMask, and ship its provenance, hash, and MIT notice inventory.

Why

Refs #860. Cerebras needs one stable provider contract instead of per-surface configuration, including deterministic model discovery, snapshot fallback, credential isolation, and tool-call behavior.

Scope

This PR covers Cerebras only. It does not add or modify other hosted providers, and it does not implement Phase 7.

Verification

  • npm run typecheck
  • npm test
  • npm --workspace @maka/desktop run e2e -- --grep 'adds Cerebras' --workers=1 — 1 passed on the fake backend
  • npm run check:stale — dist is fresh
  • Renderer build verified that the byte-identical third-party notice ships in the artifact.
  • The required independent reviewer re-reviewed the latest origin/main...HEAD diff and reported no P0–P3 findings.
  • Real-provider smoke was not run because no CEREBRAS_API_KEY was available; this is non-blocking and no secret or raw provider response was recorded.
  • Static screenshots are not applicable because this reuses the existing provider catalog/detail layout. The representative E2E instead verifies the catalog and saved-detail mark’s computed SVG mask and currentColor behavior.

Impact

Users can configure Cerebras with CEREBRAS_API_KEY or CEREBRAS_API_KEY_FILE, optionally override CEREBRAS_BASE_URL, discover account models, and use deterministic snapshot fallbacks. No migration is required.

Reviewer notes

The Cerebras asset is vendored byte-for-byte from @lobehub/[email protected], repository commit e4302041fbb3039608d25f9f618bd462783b875e, path packages/static-svg/icons/cerebras.svg, MIT license, SHA-256 05af9593eca3fefdb30c5ad042040f008beea2b27e0a6b7315c319492f7a44ff. The PR only consumes the existing shared ProviderAssetMask/providerAssetMask seam and adds no parallel mask component or CSS.

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 merged commit 6e27f71 into main Jul 13, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/cerebras-provider-support branch July 13, 2026 15:39
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