Add Command Code GOAT provider - #4943
Draft
Astro-Han wants to merge 2 commits into
Draft
Conversation
Command Code (commandcode.ai) exposes every plan model through an OpenAI-compatible provider API at https://api.commandcode.ai/provider/v1 auth'd with a bearer API key from Studio. GOAT and above include API access; models list is served at /provider/v1/models, which this entry uses as its discovery path once a key is saved. Command Code is not on models.dev, so the shipped GOAT catalog from commandcode.ai/models is the offline baseline. The runtime adapter is the standard openai-compatible 'provider' profile (chat-completions wire), same shape as zenmux/opencode; no per-model overrides or migration impact — stored connections are unaffected. Generated-by: Maka
Bilingual (zh-CN/zh-TW/en) catalog card for the new Command Code provider. The compile-time Record<ProviderType, ...> in provider-display-copy.ts requires an entry for every registered provider, so this ships with the registry change. Generated-by: Maka
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
Adds Command Code (commandcode.ai) as a first-class provider, covering its GOAT plan.
Command Code exposes every plan model through an OpenAI-compatible provider API:
https://api.commandcode.ai/provider/v1, auth via a bearer API key from Studio (GOAT and above include API access; only the free Go plan does not)POST /chat/completionson the OpenAI wire andGET /modelsfor model discovery, with streaming and end-of-stream usagepackages/core/src/provider-registry.tsregisterscommandcodewith the standardopenai-compatible"provider" runtime adapter (same shape as zenmux/opencode),kind: 'protocol'model discovery — the live/modelscatalog becomes authoritative once a key is saved — and a GOAT model baseline transcribed from commandcode.ai/models. Command Code is not on models.dev, so there is no generated metadata for it; the shipped list is the offline offer.apps/desktop/src/renderer/settings/provider-display-copy.tsgains the bilingual (zh-CN / zh-TW / en) catalog card; the compile-timeRecord<ProviderType, …>contract requires an entry for every registered provider.No change to existing connections; no migration.
Verification
@maka/core: build + full suite — 816 pass (includes provider catalog contract invariants over the new entry)@maka/runtime: provider-conformance 26 pass; provider-contract-matrix / model-fetcher / model-adapter / provider-error-classification / model-factory — 247 pass (the conformance matrix derives rows from the registry, socommandcodeis exercised generically)tsc --noEmitclean; biome format + lint clean[data-provider="commandcode"]present only with this change)Remaining end-to-end check: wiring a GOAT API key and sending one request. No key was available in this environment; if a keyed run surfaces a model id mismatch, the
/modelsdiscovery refreshes the baseline andbrokenModelIdscan quarantine the id.AI use
Tool(s) and scope: Maka authored the registry entry, model baseline, catalog copy, storybook evidence, and this PR text. Both commits carry
Generated-by: Makatrailers.Checklist
Does this PR entail a change in behavior?