From d637a73e06384c5bb9e93aeccb0812b0048e37c5 Mon Sep 17 00:00:00 2001 From: Thomas Byr Date: Sat, 22 Aug 2026 23:25:06 +0200 Subject: [PATCH] fix(docs): update Command Code version to 1.32.1 --- README.md | 2 +- tests/test-models.ts | 5 +++-- tests/test-pricing.ts | 4 ++-- tests/test-stream.ts | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4b32189..a4de126 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,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.15.1`; unknown models default to text-only until their upstream metadata is reviewed. +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.32.1`; unknown models default to text-only until their upstream metadata is reviewed. 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/tests/test-models.ts b/tests/test-models.ts index 3c7e33c..f10dd7e 100644 --- a/tests/test-models.ts +++ b/tests/test-models.ts @@ -100,7 +100,7 @@ describe("commandCodeModelsFromApiResponse()", () => { ) }) - it("matches command-code@1.15.1 image input capabilities", () => { + it("matches command-code@1.32.1 image input capabilities", () => { assert.deepEqual(inputModalitiesForModel("gpt-5.6-luna"), ["text", "image"]) assert.deepEqual(inputModalitiesForModel("meta/muse-spark-1.2"), ["text", "image"]) assert.deepEqual(inputModalitiesForModel("deepseek/deepseek-v4-pro"), ["text"]) @@ -123,7 +123,7 @@ describe("commandCodeModelsFromApiResponse()", () => { assert.equal(models[1]?.reasoning, false) }) - it("matches the exact command-code@1.15.1 reasoning effort catalog", () => { + it("matches the exact command-code@1.32.1 reasoning effort catalog", () => { assert.deepEqual(MODEL_EFFORTS, { "Qwen/Qwen3.8-Max": ["low", "medium", "xhigh"], "claude-fable-5": ["low", "medium", "high", "xhigh", "max"], @@ -147,6 +147,7 @@ describe("commandCodeModelsFromApiResponse()", () => { "google/gemini-3.6-flash": ["low", "medium", "high"], "sakana/fugu-ultra": ["high", "xhigh"], "xai/grok-4.5": ["low", "medium", "high"], + "zai-org/GLM-5.3": ["low", "high", "max"], "zai-org/GLM-5.2": ["high", "max"], }) }) diff --git a/tests/test-pricing.ts b/tests/test-pricing.ts index 6e17400..202d8aa 100644 --- a/tests/test-pricing.ts +++ b/tests/test-pricing.ts @@ -50,7 +50,7 @@ function assertCost( describe("MODEL_COSTS pricing overlay", () => { it("covers the current Command Code model catalog snapshot", () => { assert.equal(fixture.source, "https://api.commandcode.ai/provider/v1/models") - assert.match(fixture.fetchedAt, /^2026-08-04T/) + assert.match(fixture.fetchedAt, /^2026-08-22T/) const catalogIds = [...fixture.modelIds].sort() const pricedIds = Object.keys(MODEL_COSTS).sort() @@ -169,7 +169,7 @@ describe("MODEL_COSTS pricing overlay", () => { it("tracks pricing provenance", () => { assert.equal(PRICING_SOURCE_URL, "https://commandcode.ai/docs/resources/pricing-limits") - assert.equal(PRICING_LAST_VERIFIED, "2026-08-20") + assert.equal(PRICING_LAST_VERIFIED, "2026-08-22") }) it("fails once temporary pricing needs review", () => { diff --git a/tests/test-stream.ts b/tests/test-stream.ts index e30ac49..a429798 100644 --- a/tests/test-stream.ts +++ b/tests/test-stream.ts @@ -488,7 +488,7 @@ describe("streamCommandCode — request serialization", () => { const headers = server.lastRequestHeaders() assert.equal(headers.authorization, "Bearer mock-key") - assert.equal(headers["x-command-code-version"], "1.15.1") + assert.equal(headers["x-command-code-version"], "1.32.1") assert.equal(headers["x-project-slug"], "repo") assert.equal(headers["x-taste-learning"], "true") assert.equal(headers["x-co-flag"], "false")