@mars-sea/dsh-commandcode-provider 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.8.1] - 2026-08-25
8
+
9
+ ### Changed
10
+
11
+ - **Synced with the official command-code@1.32.2 CLI** (upstream shipped two CLI-internal fixes — BYOK model-picker improvements and a session fix for malformed tool results — neither touching the Provider API). `COMMAND_CODE_CLI_VERSION` is now `1.32.2`. Re-verified against the official sources with no changes: wire protocol, endpoints, auth flow, the live model catalog (58 models), reasoning-effort maps, plan tiers, subscription plans, deals, and peak windows are all identical.
12
+
7
13
  ## [0.8.0] - 2026-08-22
8
14
 
9
15
  ### Added
package/lib/client.js CHANGED
@@ -1197,7 +1197,7 @@ window.__ModuleLoader__.load({
1197
1197
  };
1198
1198
  //#endregion
1199
1199
  //#region package.json
1200
- var version = "0.8.0";
1200
+ var version = "0.8.1";
1201
1201
  var repository = {
1202
1202
  "type": "git",
1203
1203
  "url": "git+https://github.com/Mars-Sea/dsh-commandcode-provider.git"
package/lib/index.d.ts CHANGED
@@ -24,7 +24,7 @@ declare const KNOWN_EFFORTS: Readonly<Record<string, readonly string[]>>;
24
24
  */
25
25
  declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
26
26
  /**
27
- * Models the official CLI's model table (command-code@1.32.1) marks
27
+ * Models the official CLI's model table (command-code@1.32.2) marks
28
28
  * `reasoning:!0` but defines no selectable `reasoning_effort` levels — they
29
29
  * think automatically, with Command Code driving the depth. This is the
30
30
  * authoritative "thinks, effort not adjustable" set: `KNOWN_EFFORTS` (which
@@ -32,7 +32,7 @@ declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
32
32
  * effort levels, and this snapshot is not surfaced in the picker's compact
33
33
  * description — it exists for programmatic consumers.
34
34
  *
35
- * Source: the command-code@1.32.1 bundled model table (dist/cli.mjs),
35
+ * Source: the command-code@1.32.2 bundled model table (dist/cli.mjs),
36
36
  * cross-checked with https://commandcode.ai/docs/reference/cli/models.
37
37
  * (`stealth/ox-alpha` left this set in command-code@1.32.1, which gave it
38
38
  * selectable `['low', 'high', 'max']` efforts.)
@@ -77,7 +77,7 @@ declare function compareByPlan(a: {
77
77
  /**
78
78
  * Subscription plan table, synced from the official CLI bundle's plan maps
79
79
  * (`Nn`/`$n` in command-code@1.31.0 `dist/cli.mjs`, re-verified unchanged
80
- * against 1.32.1 where they appear as `Zn`/`er`): subscription `planId`
80
+ * against 1.32.2 where they appear as `Zn`/`er`): subscription `planId`
81
81
  * prefix → display name and the plan's monthly credit total. This is the
82
82
  * account's own subscription (from `/alpha/billing/subscriptions`) — distinct
83
83
  * from {@link KNOWN_PLANS}, which maps catalog models to their minimum tier.
@@ -178,7 +178,7 @@ declare function peakPricingState(modelId: string, now?: number): 'peak' | 'off-
178
178
  * for models without time-of-day pricing.
179
179
  */
180
180
  declare function peakPricingLabel(modelId: string, now?: number): string | undefined;
181
- declare const COMMAND_CODE_CLI_VERSION = "1.32.1";
181
+ declare const COMMAND_CODE_CLI_VERSION = "1.32.2";
182
182
  declare const DEFAULT_API_BASE = "https://api.commandcode.ai";
183
183
  declare const DEFAULT_GENERATE_MAX_TOKENS = 64000;
184
184
  declare const DEFAULT_MAX_OUTPUT_TOKENS = 65536;
package/lib/index.js CHANGED
@@ -216,7 +216,7 @@ var CommandCodeAccountPool = class {
216
216
  * and API key or subscription, and Command Code's terms apply.
217
217
  *
218
218
  * Wire protocol (reverse-engineered by the pi plugin, command-code@1.28.4;
219
- * re-verified against command-code@1.32.1 — endpoints, request shape, and
219
+ * re-verified against command-code@1.32.2 — endpoints, request shape, and
220
220
  * stream events unchanged):
221
221
  * POST {apiBase}/alpha/generate
222
222
  * body: { config, memory, taste, skills, params: { model, messages, tools,
@@ -437,7 +437,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
437
437
  "xiaomi/mimo-v2.5"
438
438
  ]);
439
439
  /**
440
- * Models the official CLI's model table (command-code@1.32.1) marks
440
+ * Models the official CLI's model table (command-code@1.32.2) marks
441
441
  * `reasoning:!0` but defines no selectable `reasoning_effort` levels — they
442
442
  * think automatically, with Command Code driving the depth. This is the
443
443
  * authoritative "thinks, effort not adjustable" set: `KNOWN_EFFORTS` (which
@@ -445,7 +445,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
445
445
  * effort levels, and this snapshot is not surfaced in the picker's compact
446
446
  * description — it exists for programmatic consumers.
447
447
  *
448
- * Source: the command-code@1.32.1 bundled model table (dist/cli.mjs),
448
+ * Source: the command-code@1.32.2 bundled model table (dist/cli.mjs),
449
449
  * cross-checked with https://commandcode.ai/docs/reference/cli/models.
450
450
  * (`stealth/ox-alpha` left this set in command-code@1.32.1, which gave it
451
451
  * selectable `['low', 'high', 'max']` efforts.)
@@ -593,7 +593,7 @@ function compareByPlan(a, b) {
593
593
  /**
594
594
  * Subscription plan table, synced from the official CLI bundle's plan maps
595
595
  * (`Nn`/`$n` in command-code@1.31.0 `dist/cli.mjs`, re-verified unchanged
596
- * against 1.32.1 where they appear as `Zn`/`er`): subscription `planId`
596
+ * against 1.32.2 where they appear as `Zn`/`er`): subscription `planId`
597
597
  * prefix → display name and the plan's monthly credit total. This is the
598
598
  * account's own subscription (from `/alpha/billing/subscriptions`) — distinct
599
599
  * from {@link KNOWN_PLANS}, which maps catalog models to their minimum tier.
@@ -733,7 +733,7 @@ function peakPricingLabel(modelId, now = Date.now()) {
733
733
  if (state === void 0) return void 0;
734
734
  return state === "peak" ? "Peak" : "Half";
735
735
  }
736
- const COMMAND_CODE_CLI_VERSION = "1.32.1";
736
+ const COMMAND_CODE_CLI_VERSION = "1.32.2";
737
737
  const DEFAULT_API_BASE = "https://api.commandcode.ai";
738
738
  const DEFAULT_GENERATE_MAX_TOKENS = 64e3;
739
739
  const DEFAULT_MAX_OUTPUT_TOKENS = 65536;