You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/09/07 01:00:53 UTC
(maka) 01/02: feat(core): register Command Code provider with GOAT baseline
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a commit to branch feat/providers-commandcode-goat
in repository https://gitbox.apache.org/repos/asf/maka.git
commit 6774af4cc06ba2ddefe7d7b5c14cdd6acd20ab4a
Author: AstroHan <le...@outlook.com>
AuthorDate: Mon Sep 7 08:59:05 2026 +0800
feat(core): register Command Code provider with GOAT baseline
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
---
packages/core/src/provider-registry.ts | 69 ++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
diff --git a/packages/core/src/provider-registry.ts b/packages/core/src/provider-registry.ts
index 0b9ae9897a..4cef0c0b5d 100644
--- a/packages/core/src/provider-registry.ts
+++ b/packages/core/src/provider-registry.ts
@@ -306,6 +306,62 @@ const zenmuxOpenAICompatibleMetadata = Object.fromEntries(
const zenmuxModelIds = toolCallingModelIds('ZenMux', zenmuxOpenAICompatibleMetadata, [
'moonshotai/kimi-k2.5',
]).filter((id) => GENERATED_MODELS_DEV_METADATA.zenmux[id]?.lifecycle !== 'deprecated');
+/**
+ * Command Code GOAT plan baseline, transcribed from the GOAT catalog on
+ * commandcode.ai/models. Command Code is not on models.dev, so this shipped
+ * list is the offline offer; the remote /provider/v1/models response becomes
+ * authoritative as soon as the user saves a plan credential.
+ */
+const commandcodeModelIds = [
+ 'deepseek-v4-flash',
+ 'deepseek-v4-flash-fast',
+ 'deepseek-v4-flash-vision-exp',
+ 'deepseek-v4-pro',
+ 'glm-5-3',
+ 'glm-5-3-flash',
+ 'glm-5-2',
+ 'glm-5-2-fast',
+ 'glm-5-1',
+ 'glm-5',
+ 'qwen3-8-max',
+ 'qwen3-8-max-0902',
+ 'qwen3-8-flash',
+ 'qwen3-8-27b',
+ 'qwen3-7-max',
+ 'qwen3-7-plus',
+ 'qwen3-7-flash',
+ 'qwen3-6-max-preview',
+ 'qwen3-6-plus',
+ 'kimi-k3',
+ 'kimi-k2-7-code',
+ 'kimi-k2-7-code-highspeed',
+ 'kimi-k2-6',
+ 'kimi-k2-5',
+ 'minimax-m3',
+ 'minimax-m2-7',
+ 'minimax-m2-5',
+ 'mimo-v2-5',
+ 'mimo-v2-5-pro',
+ 'gpt-5-6-sol',
+ 'gpt-5-6-luna',
+ 'grok-4-6',
+ 'grok-4-5',
+ 'gemini-3-8-flash',
+ 'gemini-3-7-flash',
+ 'step-3-7-flash',
+ 'step-3-5-flash',
+ 'tencent-hy3',
+ 'hy4-preview',
+ 'nemotron-3-ultra-550b-a55b',
+ 'inkling',
+ 'inkling-small',
+ 'muse-spark-1-3',
+ 'muse-spark-1-3-contributor',
+ 'muse-spark-1-2',
+ 'muse-spark-1-2-contributor',
+ 'longcat-2-0-free',
+ 'laguna-s-2-1-free',
+] as const;
const fireworks = GENERATED_MODELS_DEV_PROVIDER_FACTS['fireworks-ai'];
if (fireworks.id !== 'fireworks-ai') {
throw new Error('models.dev Fireworks AI provider facts are missing stable id fireworks-ai');
@@ -1464,6 +1520,19 @@ const providerRegistry = {
signupUrl: 'https://modelstudio.console.alibabacloud.com/',
catalogOrder: 41.4,
},
+ commandcode: {
+ label: 'Command Code',
+ baseUrl: 'https://api.commandcode.ai/provider/v1',
+ authKind: 'api_key',
+ fallbackModels: [...commandcodeModelIds],
+ status: 'ready',
+ runtimeAdapter: { kind: 'openai-compatible', name: 'provider' },
+ modelDiscovery: { kind: 'protocol' },
+ category: 'overseas',
+ catalogGroup: 'plans',
+ signupUrl: 'https://commandcode.ai/docs/plans/goat',
+ catalogOrder: 41.5,
+ },
'cloudflare-workers-ai': {
label: cloudflareWorkersAi.name,
baseUrl: '',
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org