Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Refresh the static capability snapshot to `command-code@1.83.0`: add image input, reasoning, and selectable `low`/`medium`/`high` efforts for `meta/muse-spark-open` and `nvidia/nemotron-3.5-super-vl`; publish reasoning for the free `stealth/cat-jam:free` preview with `low`/`medium`/`high`/`xhigh`/`max` efforts and a 131,072-token output limit. Retire `inclusionai/ling-3.0-flash-sante:free` and drop its reasoning flag, output limit, and display-price entry now that the API no longer advertises it. No prices changed; the reviewed snapshot now covers all 92 advertised models.

## 0.7.8 - 2026-10-15

- Redact sensitive text in direct stream errors and normalized context-overflow messages before returning them to the host. This closes two error-reporting paths that did not use the shared redactor; it is defensive hardening, not a claim of a confirmed credential leak ([#155](https://github.com/patlux/pi-commandcode-provider/pull/155)).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,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.82.4`; 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.83.0`; 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.

Expand Down
15 changes: 11 additions & 4 deletions src/commandcode-catalog.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const COMMAND_CODE_CLI_VERSION = "1.82.4"
export const COMMAND_CODE_CLI_VERSION = "1.83.0"

export type CommandCodeInputType = "text" | "image"
export type CommandCodeReasoningEffort =
Expand All @@ -11,7 +11,7 @@ export type CommandCodeReasoningEffort =
| "max"

/**
* Generated from command-code@1.82.4 by `npm run sync:commandcode-catalog`.
* Generated from command-code@1.83.0 by `npm run sync:commandcode-catalog`.
* Do not edit manually.
*/
export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCodeInputType[]>> = {
Expand Down Expand Up @@ -52,6 +52,7 @@ export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCod
"meta/muse-spark-1.2-contributor": ["text", "image"],
"meta/muse-spark-1.3": ["text", "image"],
"meta/muse-spark-1.3-contributor": ["text", "image"],
"meta/muse-spark-open": ["text", "image"],
"meta/muse-wonder-1.0": ["text", "image"],
"MiniMaxAI/MiniMax-M3": ["text", "image"],
"mistral/mistral-large-4": ["text", "image"],
Expand All @@ -60,6 +61,7 @@ export const MODEL_INPUT_MODALITIES: Readonly<Record<string, readonly CommandCod
"moonshotai/Kimi-K2.7-Code": ["text", "image"],
"moonshotai/Kimi-K2.7-Code-Highspeed": ["text", "image"],
"moonshotai/Kimi-K3": ["text", "image"],
"nvidia/nemotron-3.5-super-vl": ["text", "image"],
"Qwen/Qwen3.6-Plus": ["text", "image"],
"Qwen/Qwen3.7-Flash": ["text", "image"],
"Qwen/Qwen3.7-Plus": ["text", "image"],
Expand Down Expand Up @@ -120,21 +122,22 @@ export const MODEL_REASONING: Readonly<Record<string, true>> = {
"gpt-6-luna": true,
"gpt-6-sol": true,
"gpt-6.1-sol": true,
"inclusionai/ling-3.0-flash-sante:free": true,
"inclusionai/ling-3.1-flash": true,
"meituan/LongCat-2.0": true,
"meta/muse-spark-1.1": true,
"meta/muse-spark-1.2": true,
"meta/muse-spark-1.2-contributor": true,
"meta/muse-spark-1.3": true,
"meta/muse-spark-1.3-contributor": true,
"meta/muse-spark-open": true,
"meta/muse-wonder-1.0": true,
"MiniMaxAI/MiniMax-M3": true,
"mistral/mistral-large-4": true,
"moonshotai/Kimi-K2.7-Code": true,
"moonshotai/Kimi-K2.7-Code-Highspeed": true,
"moonshotai/Kimi-K3": true,
"nvidia/nemotron-3-ultra-550b-a55b": true,
"nvidia/nemotron-3.5-super-vl": true,
"poolside/laguna-s-2.1-free": true,
"Qwen/Qwen3.6-Max-Preview": true,
"Qwen/Qwen3.6-Plus": true,
Expand All @@ -148,6 +151,7 @@ export const MODEL_REASONING: Readonly<Record<string, true>> = {
"Qwen/Qwen3.8-Max-Prime": true,
"Qwen/Qwen3.8-Omni-Flash": true,
"sakana/fugu-ultra": true,
"stealth/cat-jam:free": true,
"stealth/glyph-cluster:free": true,
"stepfun/Step-3.5-Flash": true,
"stepfun/Step-3.7-Flash": true,
Expand Down Expand Up @@ -206,17 +210,20 @@ export const MODEL_EFFORTS: Readonly<Record<string, readonly CommandCodeReasonin
"meta/muse-spark-1.2-contributor": ["low", "medium", "high", "xhigh"],
"meta/muse-spark-1.3": ["low", "medium", "high", "xhigh", "max"],
"meta/muse-spark-1.3-contributor": ["low", "medium", "high", "xhigh"],
"meta/muse-spark-open": ["low", "medium", "high"],
"meta/muse-wonder-1.0": ["low", "medium", "high", "xhigh"],
"MiniMaxAI/MiniMax-M3": ["low", "medium", "high"],
"mistral/mistral-large-4": ["low", "medium", "high"],
"moonshotai/Kimi-K3": ["low", "high", "max"],
"nvidia/nemotron-3.5-super-vl": ["low", "medium", "high"],
"Qwen/Qwen3.8-27B": ["low", "medium", "xhigh"],
"Qwen/Qwen3.8-Flash": ["low", "medium", "xhigh"],
"Qwen/Qwen3.8-Max": ["low", "medium", "xhigh"],
"Qwen/Qwen3.8-Max-0902": ["low", "medium", "xhigh"],
"Qwen/Qwen3.8-Max-Prime": ["low", "medium", "xhigh"],
"Qwen/Qwen3.8-Omni-Flash": ["low", "medium", "xhigh"],
"sakana/fugu-ultra": ["high", "xhigh"],
"stealth/cat-jam:free": ["low", "medium", "high", "xhigh", "max"],
"stealth/glyph-cluster:free": ["low", "medium", "high", "xhigh"],
"stepfun/Step-5-Preview": ["low", "medium", "high"],
"tencent/hy4-preview": ["low", "medium", "high"],
Expand All @@ -230,13 +237,13 @@ export const MODEL_EFFORTS: Readonly<Record<string, readonly CommandCodeReasonin
}

export const MODEL_MAX_OUTPUT_TOKENS: Readonly<Record<string, number>> = {
"inclusionai/ling-3.0-flash-sante:free": 32_768,
"inclusionai/ling-3.1-flash": 32_768,
"mistral/mistral-large-4": 262_144,
"poolside/laguna-s-2.1-free": 32_768,
"Qwen/Qwen3.8-27B": 32_768,
"Qwen/Qwen3.8-Max-Prime": 131_072,
"Qwen/Qwen3.8-Omni-Flash": 131_072,
"stealth/cat-jam:free": 131_072,
"stealth/glyph-cluster:free": 256_000,
"z-ai/glm-5.3-flash": 131_072,
"z-ai/glm-5.3-flashx": 131_072,
Expand Down
1 change: 0 additions & 1 deletion src/pricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const ZERO_MODEL_COST: CommandCodeModelCost = {
*/
export const MODEL_COSTS: Readonly<Record<string, CommandCodeModelCost>> = {
// Free models
"inclusionai/ling-3.0-flash-sante:free": { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
// Free while the stealth preview lasts; no fixed expiry is published.
"stealth/cat-jam:free": { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
"poolside/laguna-s-2.1-free": { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
Expand Down
3 changes: 1 addition & 2 deletions tests/fixtures/commandcode-model-ids.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"fetchedAt": "2026-10-15T20:58:52.909Z",
"fetchedAt": "2026-10-16T17:58:44.197Z",
"source": "https://api.commandcode.ai/provider/v1/models",
"modelIds": [
"claude-sonnet-5-5",
Expand Down Expand Up @@ -82,7 +82,6 @@
"stealth/glyph-cluster:free",
"stealth/cat-jam:free",
"poolside/laguna-s-2.1-free",
"inclusionai/ling-3.0-flash-sante:free",
"inclusionai/ling-3.1-flash",
"meta/muse-spark-1.1",
"meta/muse-spark-1.2",
Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/commandcode-pricing.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"xai/grok-4.7": [[200000, 4, 12, 1, 0]]
},
"costs": {
"inclusionai/ling-3.0-flash-sante:free": [0, 0, 0, 0],
"stealth/cat-jam:free": [0, 0, 0, 0],
"poolside/laguna-s-2.1-free": [0, 0, 0, 0],
"stealth/glyph-cluster:free": [0, 0, 0, 0],
Expand Down
3 changes: 1 addition & 2 deletions tests/test-pricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const pricingFixture = JSON.parse(await readFile(pricingFixtureUrl, "utf-8")) as
const freeModels = new Set([
"poolside/laguna-s-2.1-free",
"stealth/glyph-cluster:free",
"inclusionai/ling-3.0-flash-sante:free",
"stealth/cat-jam:free",
])

Expand All @@ -55,7 +54,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-10-15T/)
assert.match(fixture.fetchedAt, /^2026-10-16T/)

const catalogIds = [...fixture.modelIds].sort()
const pricedIds = Object.keys(MODEL_COSTS).sort()
Expand Down
Loading