diff --git a/CHANGELOG.md b/CHANGELOG.md index 055262b..ec7c981 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Refresh the capability snapshot to `command-code@1.89.1`: advertise image input, reasoning and selectable efforts for `claude-fable-5-2`, `google/gemini-4-carbon`, `meta/muse-ember` and `thinkingmachines/inkling-2-small:free`; raise Inkling 2 Small's output limit to 131,072 tokens; drop stale capability metadata for the retired `reflection/beam:free` and `stealth/crouton-alpha`. Public pricing checks pass for all 98 advertised models; prices and endpoint routing are unchanged. + ## 0.8.3 - 2026-11-13 - Tag the Responses `system`/`developer` and `user` items with the item-level `type: "message"` the Provider API adapter requires for `zai-org/GLM-5.3`, which answered `400 invalid_request: input item is missing type` on the first turn. The rewrite is limited to the models known to need the verbose form, so every other model keeps the exact body the host sends. ([#214](https://github.com/patlux/pi-commandcode-provider/issues/214), [#215](https://github.com/patlux/pi-commandcode-provider/pull/215)) diff --git a/README.md b/README.md index c672260..4060268 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ The following environment variables are intended for tests, local mocks, and com ## Image input -The provider advertises image input only for models marked with the `image` input modality in the official Command Code CLI model catalog. The capability snapshot currently follows `command-code@1.88.5`; unknown models default to text-only until their upstream metadata is reviewed. A daily GitHub Actions job synchronizes the CLI version, image capabilities, reasoning flags, reasoning efforts, and model-specific output limits with the latest published CLI package, also dropping manual effort overrides that upstream has published itself, and opens or updates a reviewable pull request when they change. Pricing remains manually reviewed because temporary promotions and long-context tiers require explicit review. +The provider advertises image input only for models marked with the `image` input modality in the official Command Code CLI model catalog. The capability snapshot currently follows `command-code@1.89.1`; unknown models default to text-only until their upstream metadata is reviewed. A daily GitHub Actions job synchronizes the CLI version, image capabilities, reasoning flags, reasoning efforts, and model-specific output limits with the latest published CLI package, also dropping manual effort overrides that upstream has published itself, and opens or updates a reviewable pull request when they change. Pricing remains manually reviewed because temporary promotions and long-context tiers require explicit review. For vision-capable models, Pi's native provider adapters forward image blocks from user messages and tool results using the documented OpenAI or Anthropic message schema. Unknown and text-only models remain marked text-only in Pi. diff --git a/src/commandcode-catalog.ts b/src/commandcode-catalog.ts index 4f1c00d..7ddb481 100644 --- a/src/commandcode-catalog.ts +++ b/src/commandcode-catalog.ts @@ -1,4 +1,4 @@ -export const COMMAND_CODE_CLI_VERSION = "1.88.5" +export const COMMAND_CODE_CLI_VERSION = "1.89.1" export type CommandCodeInputType = "text" | "image" export type CommandCodeReasoningEffort = @@ -11,12 +11,13 @@ export type CommandCodeReasoningEffort = | "max" /** - * Generated from command-code@1.88.5 by `npm run sync:commandcode-catalog`. + * Generated from command-code@1.89.1 by `npm run sync:commandcode-catalog`. * Do not edit manually. */ export const MODEL_INPUT_MODALITIES: Readonly> = { "claude-fable-5": ["text", "image"], "claude-fable-5-1": ["text", "image"], + "claude-fable-5-2": ["text", "image"], "claude-haiku-4-5-20251001": ["text", "image"], "claude-haiku-5-5": ["text", "image"], "claude-opus-4-7": ["text", "image"], @@ -37,6 +38,7 @@ export const MODEL_INPUT_MODALITIES: Readonly> = { "claude-fable-5": true, "claude-fable-5-1": true, + "claude-fable-5-2": true, "claude-haiku-5-5": true, "claude-opus-4-7": true, "claude-opus-4-8": true, @@ -117,6 +121,7 @@ export const MODEL_REASONING: Readonly> = { "google/gemini-3.7-flash": true, "google/gemini-3.8-flash": true, "google/gemini-4-argon": true, + "google/gemini-4-carbon": true, "gpt-5.3-codex": true, "gpt-5.4": true, "gpt-5.4-mini": true, @@ -132,6 +137,7 @@ export const MODEL_REASONING: Readonly> = { "inclusionai/ling-3.1-flash": true, "inclusionai/ling-3.1-flash-1019": true, "meituan/LongCat-2.0": true, + "meta/muse-ember": true, "meta/muse-spark-1.1": true, "meta/muse-spark-1.2": true, "meta/muse-spark-1.2-contributor": true, @@ -160,9 +166,7 @@ export const MODEL_REASONING: Readonly> = { "Qwen/Qwen3.8-Max-0902": true, "Qwen/Qwen3.8-Max-Prime": true, "Qwen/Qwen3.8-Omni-Flash": true, - "reflection/beam:free": true, "sakana/fugu-ultra": true, - "stealth/crouton-alpha": true, "stealth/glyph-cluster:free": true, "stepfun/Step-3.5-Flash": true, "stepfun/Step-3.7-Flash": true, @@ -170,6 +174,7 @@ export const MODEL_REASONING: Readonly> = { "tencent/hy3-paid": true, "tencent/hy4-preview": true, "thinkingmachines/inkling": true, + "thinkingmachines/inkling-2-small:free": true, "thinkingmachines/inkling-small": true, "xai/grok-4.5": true, "xai/grok-4.6": true, @@ -183,6 +188,7 @@ export const MODEL_REASONING: Readonly> = { export const MODEL_EFFORTS: Readonly> = { "claude-fable-5": ["low", "medium", "high", "xhigh", "max"], "claude-fable-5-1": ["low", "medium", "high", "xhigh", "max"], + "claude-fable-5-2": ["low", "medium", "high", "xhigh", "max"], "claude-haiku-5-5": ["low", "medium", "high", "xhigh", "max"], "claude-opus-4-7": ["low", "medium", "high", "xhigh", "max"], "claude-opus-4-8": ["low", "medium", "high", "xhigh", "max"], @@ -205,6 +211,7 @@ export const MODEL_EFFORTS: Readonly> = { "Qwen/Qwen3.8-27B": 32_768, "Qwen/Qwen3.8-Max-Prime": 131_072, "Qwen/Qwen3.8-Omni-Flash": 131_072, - "reflection/beam:free": 131_072, - "stealth/crouton-alpha": 943_718, "stealth/glyph-cluster:free": 256_000, + "thinkingmachines/inkling-2-small:free": 131_072, "z-ai/glm-5.3-flash": 131_072, "z-ai/glm-5.3-flashx": 131_072, } diff --git a/tests/test-models.ts b/tests/test-models.ts index ffac961..60e943a 100644 --- a/tests/test-models.ts +++ b/tests/test-models.ts @@ -170,6 +170,33 @@ describe("commandCodeModelsFromApiResponse()", () => { assert.equal(modelSupportsImageInput("unknown-new-model"), false) }) + it("advertises the November additions from the reviewed CLI catalog", () => { + const effortsById = { + "claude-fable-5-2": ["low", "medium", "high", "xhigh", "max"], + "google/gemini-4-carbon": ["low", "medium", "high"], + "meta/muse-ember": ["low", "medium", "high", "xhigh", "max"], + "thinkingmachines/inkling-2-small:free": ["low", "medium", "high", "max"], + } + for (const [id, efforts] of Object.entries(effortsById)) { + assert.deepEqual(inputModalitiesForModel(id), ["text", "image"], id) + const [model] = commandCodeModelsFromApiResponse({ + object: "list", + data: [{ ...API_RESPONSE.data[0], id }], + }) + assert.equal(model?.reasoning, true, id) + assert.deepEqual(thinkingMetadataForModel(id)?.thinking?.efforts, efforts, id) + if (id === "thinkingmachines/inkling-2-small:free") { + assert.equal(model?.maxTokens, 131_072) + } + } + for (const id of ["reflection/beam:free", "stealth/crouton-alpha"]) { + assert.equal(MODEL_REASONING[id], undefined, id) + assert.equal(MODEL_EFFORTS[id], undefined, id) + assert.equal(MODEL_MAX_OUTPUT_TOKENS[id], undefined, id) + assert.equal(modelSupportsImageInput(id), false, id) + } + }) + it("advertises Qwen 3.8 Omni Flash capabilities from the CLI catalog", () => { const id = "Qwen/Qwen3.8-Omni-Flash" assert.deepEqual(inputModalitiesForModel(id), ["text", "image"]) @@ -218,13 +245,6 @@ describe("commandCodeModelsFromApiResponse()", () => { contextWindow: 1_000_000, maxTokens: 262_144, }, - { - id: "stealth/crouton-alpha", - input: ["text", "image"], - efforts: ["low", "medium", "high", "xhigh", "max"], - contextWindow: 1_048_576, - maxTokens: 943_718, - }, ]) { it(`advertises the command-code@1.88.3 capabilities for ${id}`, () => { assert.deepEqual(inputModalitiesForModel(id), input) @@ -245,18 +265,13 @@ describe("commandCodeModelsFromApiResponse()", () => { }) } - it("advertises MiniMax Flash, Beam, and Ornith capabilities from the refreshed CLI", () => { + it("advertises MiniMax Flash and Ornith capabilities from the refreshed CLI", () => { const efforts = ["low", "medium", "high", "xhigh", "max"] for (const id of ["minimax/minimax-m3.1-flash"]) { assert.deepEqual(inputModalitiesForModel(id), ["text", "image"]) assert.equal(MODEL_REASONING[id], true) assert.deepEqual(thinkingMetadataForModel(id)?.thinking?.efforts, efforts) } - const beam = "reflection/beam:free" - assert.deepEqual(inputModalitiesForModel(beam), ["text"]) - assert.equal(MODEL_REASONING[beam], true) - assert.deepEqual(thinkingMetadataForModel(beam)?.thinking?.efforts, efforts) - assert.equal(MODEL_MAX_OUTPUT_TOKENS[beam], 131_072) for (const id of ["ornith/ornith-1.5-122b"]) { assert.deepEqual(inputModalitiesForModel(id), ["text", "image"]) assert.equal(MODEL_REASONING[id], true)