@mars-sea/dsh-commandcode-provider 0.5.0 → 0.6.0

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/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 (`ZA` in command-code@1.28.1) marks
27
+ * Models the official CLI's model table (`ZA` in command-code@1.28.4) 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.28.1 bundled model table (dist/cli.mjs, the `ZA`
35
+ * Source: the command-code@1.28.4 bundled model table (dist/cli.mjs, the `ZA`
36
36
  * object), cross-checked with https://commandcode.ai/docs/reference/cli/models.
37
37
  * Keep in sync via the dsh-commandcode-upstream skill.
38
38
  */
@@ -73,7 +73,7 @@ declare function compareByPlan(a: {
73
73
  }): number;
74
74
  /**
75
75
  * Subscription plan table, synced from the official CLI bundle's plan maps
76
- * (`Nn`/`$n` in command-code@1.28.1 `dist/cli.mjs`): subscription `planId`
76
+ * (`Nn`/`$n` in command-code@1.28.4 `dist/cli.mjs`): subscription `planId`
77
77
  * prefix → display name and the plan's monthly credit total. This is the
78
78
  * account's own subscription (from `/alpha/billing/subscriptions`) — distinct
79
79
  * from {@link KNOWN_PLANS}, which maps catalog models to their minimum tier.
@@ -172,7 +172,7 @@ declare function peakPricingState(modelId: string, now?: number): 'peak' | 'off-
172
172
  * for models without time-of-day pricing.
173
173
  */
174
174
  declare function peakPricingLabel(modelId: string, now?: number): string | undefined;
175
- declare const COMMAND_CODE_CLI_VERSION = "1.28.1";
175
+ declare const COMMAND_CODE_CLI_VERSION = "1.28.4";
176
176
  declare const DEFAULT_API_BASE = "https://api.commandcode.ai";
177
177
  declare const DEFAULT_GENERATE_MAX_TOKENS = 64000;
178
178
  declare const DEFAULT_MAX_OUTPUT_TOKENS = 65536;
package/lib/index.js CHANGED
@@ -18,7 +18,7 @@ import { TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
18
18
  * community-maintained integration; you need your own Command Code account
19
19
  * and API key or subscription, and Command Code's terms apply.
20
20
  *
21
- * Wire protocol (reverse-engineered by the pi plugin, command-code@1.28.1):
21
+ * Wire protocol (reverse-engineered by the pi plugin, command-code@1.28.4):
22
22
  * POST {apiBase}/alpha/generate
23
23
  * body: { config, memory, taste, skills, params: { model, messages, tools,
24
24
  * system, max_tokens, temperature, stream, reasoning_effort? }, threadId }
@@ -230,7 +230,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
230
230
  "xiaomi/mimo-v2.5"
231
231
  ]);
232
232
  /**
233
- * Models the official CLI's model table (`ZA` in command-code@1.28.1) marks
233
+ * Models the official CLI's model table (`ZA` in command-code@1.28.4) marks
234
234
  * `reasoning:!0` but defines no selectable `reasoning_effort` levels — they
235
235
  * think automatically, with Command Code driving the depth. This is the
236
236
  * authoritative "thinks, effort not adjustable" set: `KNOWN_EFFORTS` (which
@@ -238,7 +238,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
238
238
  * effort levels, and this snapshot is not surfaced in the picker's compact
239
239
  * description — it exists for programmatic consumers.
240
240
  *
241
- * Source: the command-code@1.28.1 bundled model table (dist/cli.mjs, the `ZA`
241
+ * Source: the command-code@1.28.4 bundled model table (dist/cli.mjs, the `ZA`
242
242
  * object), cross-checked with https://commandcode.ai/docs/reference/cli/models.
243
243
  * Keep in sync via the dsh-commandcode-upstream skill.
244
244
  */
@@ -369,7 +369,7 @@ function compareByPlan(a, b) {
369
369
  }
370
370
  /**
371
371
  * Subscription plan table, synced from the official CLI bundle's plan maps
372
- * (`Nn`/`$n` in command-code@1.28.1 `dist/cli.mjs`): subscription `planId`
372
+ * (`Nn`/`$n` in command-code@1.28.4 `dist/cli.mjs`): subscription `planId`
373
373
  * prefix → display name and the plan's monthly credit total. This is the
374
374
  * account's own subscription (from `/alpha/billing/subscriptions`) — distinct
375
375
  * from {@link KNOWN_PLANS}, which maps catalog models to their minimum tier.
@@ -499,7 +499,7 @@ function peakPricingLabel(modelId, now = Date.now()) {
499
499
  if (state === void 0) return void 0;
500
500
  return state === "peak" ? "Peak" : "Half";
501
501
  }
502
- const COMMAND_CODE_CLI_VERSION = "1.28.1";
502
+ const COMMAND_CODE_CLI_VERSION = "1.28.4";
503
503
  const DEFAULT_API_BASE = "https://api.commandcode.ai";
504
504
  const DEFAULT_GENERATE_MAX_TOKENS = 64e3;
505
505
  const DEFAULT_MAX_OUTPUT_TOKENS = 65536;