@mars-sea/dsh-commandcode-provider 0.10.0-alpha.6 → 0.10.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/CHANGELOG.md +28 -0
- package/README.md +7 -7
- package/README.zh-CN.md +7 -7
- package/lib/client.js +1 -1
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.js +38 -12
- package/lib/index.js.map +1 -1
- package/package.json +35 -35
package/lib/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Context } from "@deepseek-ai/cordis";
|
|
|
7
7
|
import { AttachmentStore } from "@deepseek-ai/dsh-attachment";
|
|
8
8
|
import { CommandDefinition } from "@deepseek-ai/dsh-commands";
|
|
9
9
|
//#region src/adapter.d.ts
|
|
10
|
-
declare const COMMAND_CODE_CLI_VERSION = "1.
|
|
10
|
+
declare const COMMAND_CODE_CLI_VERSION = "1.47.0";
|
|
11
11
|
declare const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
12
12
|
declare const DEFAULT_GENERATE_MAX_TOKENS = 64000;
|
|
13
13
|
declare const DEFAULT_MAX_OUTPUT_TOKENS = 65536;
|
|
@@ -445,7 +445,7 @@ declare const KNOWN_EFFORTS: Readonly<Record<string, readonly string[]>>;
|
|
|
445
445
|
*/
|
|
446
446
|
declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
447
447
|
/**
|
|
448
|
-
* Models the official CLI's model table (command-code@1.
|
|
448
|
+
* Models the official CLI's model table (command-code@1.46.0) marks
|
|
449
449
|
* `reasoning:!0` but defines no selectable `reasoning_effort` levels — they
|
|
450
450
|
* think automatically, with Command Code driving the depth. This is the
|
|
451
451
|
* authoritative "thinks, effort not adjustable" set: `KNOWN_EFFORTS` (which
|
|
@@ -453,7 +453,7 @@ declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
|
453
453
|
* effort levels, and this snapshot is not surfaced in the picker's compact
|
|
454
454
|
* description — it exists for programmatic consumers.
|
|
455
455
|
*
|
|
456
|
-
* Source: the command-code@1.
|
|
456
|
+
* Source: the command-code@1.46.0 bundled model table (dist/cli.mjs),
|
|
457
457
|
* cross-checked with https://commandcode.ai/docs/reference/cli/models.
|
|
458
458
|
* (`stealth/ox-alpha` left this set in command-code@1.32.1, which gave it
|
|
459
459
|
* selectable `['low', 'high', 'max']` efforts; the preview then ended in
|
|
@@ -464,9 +464,9 @@ declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
|
464
464
|
* `KNOWN_EFFORTS`. `moonshotai/Kimi-K3` followed the same path in
|
|
465
465
|
* command-code@1.39.3 — it gained `['low', 'high', 'max']` efforts and moved
|
|
466
466
|
* to `KNOWN_EFFORTS`. command-code@1.42.0 added `meituan/LongCat-2.0:free`
|
|
467
|
-
* (reasoning:!0, no efforts)
|
|
468
|
-
*
|
|
469
|
-
*
|
|
467
|
+
* (reasoning:!0, no efforts). command-code@1.45.0 gave the Muse Spark family
|
|
468
|
+
* (1.1, 1.2, 1.2-contributor, 1.3, 1.3-contributor) selectable
|
|
469
|
+
* `['low', 'medium', 'high', 'xhigh']` efforts — they moved to `KNOWN_EFFORTS`.)
|
|
470
470
|
* Keep in sync via the dsh-commandcode-upstream skill.
|
|
471
471
|
*/
|
|
472
472
|
declare const KNOWN_THINKING_MODELS: ReadonlySet<string>;
|
package/lib/index.js
CHANGED
|
@@ -441,6 +441,36 @@ const KNOWN_EFFORTS = {
|
|
|
441
441
|
"low",
|
|
442
442
|
"high",
|
|
443
443
|
"max"
|
|
444
|
+
],
|
|
445
|
+
"meta/muse-spark-1.1": [
|
|
446
|
+
"low",
|
|
447
|
+
"medium",
|
|
448
|
+
"high",
|
|
449
|
+
"xhigh"
|
|
450
|
+
],
|
|
451
|
+
"meta/muse-spark-1.2": [
|
|
452
|
+
"low",
|
|
453
|
+
"medium",
|
|
454
|
+
"high",
|
|
455
|
+
"xhigh"
|
|
456
|
+
],
|
|
457
|
+
"meta/muse-spark-1.2-contributor": [
|
|
458
|
+
"low",
|
|
459
|
+
"medium",
|
|
460
|
+
"high",
|
|
461
|
+
"xhigh"
|
|
462
|
+
],
|
|
463
|
+
"meta/muse-spark-1.3": [
|
|
464
|
+
"low",
|
|
465
|
+
"medium",
|
|
466
|
+
"high",
|
|
467
|
+
"xhigh"
|
|
468
|
+
],
|
|
469
|
+
"meta/muse-spark-1.3-contributor": [
|
|
470
|
+
"low",
|
|
471
|
+
"medium",
|
|
472
|
+
"high",
|
|
473
|
+
"xhigh"
|
|
444
474
|
]
|
|
445
475
|
};
|
|
446
476
|
/**
|
|
@@ -505,11 +535,12 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
505
535
|
"thinkingmachines/inkling",
|
|
506
536
|
"thinkingmachines/inkling-small",
|
|
507
537
|
"xai/grok-4.5",
|
|
538
|
+
"xai/grok-4.6",
|
|
508
539
|
"xiaomi/mimo-v2.5",
|
|
509
540
|
"z-ai/glm-5.3-flash"
|
|
510
541
|
]);
|
|
511
542
|
/**
|
|
512
|
-
* Models the official CLI's model table (command-code@1.
|
|
543
|
+
* Models the official CLI's model table (command-code@1.46.0) marks
|
|
513
544
|
* `reasoning:!0` but defines no selectable `reasoning_effort` levels — they
|
|
514
545
|
* think automatically, with Command Code driving the depth. This is the
|
|
515
546
|
* authoritative "thinks, effort not adjustable" set: `KNOWN_EFFORTS` (which
|
|
@@ -517,7 +548,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
517
548
|
* effort levels, and this snapshot is not surfaced in the picker's compact
|
|
518
549
|
* description — it exists for programmatic consumers.
|
|
519
550
|
*
|
|
520
|
-
* Source: the command-code@1.
|
|
551
|
+
* Source: the command-code@1.46.0 bundled model table (dist/cli.mjs),
|
|
521
552
|
* cross-checked with https://commandcode.ai/docs/reference/cli/models.
|
|
522
553
|
* (`stealth/ox-alpha` left this set in command-code@1.32.1, which gave it
|
|
523
554
|
* selectable `['low', 'high', 'max']` efforts; the preview then ended in
|
|
@@ -528,9 +559,9 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
528
559
|
* `KNOWN_EFFORTS`. `moonshotai/Kimi-K3` followed the same path in
|
|
529
560
|
* command-code@1.39.3 — it gained `['low', 'high', 'max']` efforts and moved
|
|
530
561
|
* to `KNOWN_EFFORTS`. command-code@1.42.0 added `meituan/LongCat-2.0:free`
|
|
531
|
-
* (reasoning:!0, no efforts)
|
|
532
|
-
*
|
|
533
|
-
*
|
|
562
|
+
* (reasoning:!0, no efforts). command-code@1.45.0 gave the Muse Spark family
|
|
563
|
+
* (1.1, 1.2, 1.2-contributor, 1.3, 1.3-contributor) selectable
|
|
564
|
+
* `['low', 'medium', 'high', 'xhigh']` efforts — they moved to `KNOWN_EFFORTS`.)
|
|
534
565
|
* Keep in sync via the dsh-commandcode-upstream skill.
|
|
535
566
|
*/
|
|
536
567
|
const KNOWN_THINKING_MODELS = /* @__PURE__ */ new Set([
|
|
@@ -550,12 +581,7 @@ const KNOWN_THINKING_MODELS = /* @__PURE__ */ new Set([
|
|
|
550
581
|
"thinkingmachines/inkling",
|
|
551
582
|
"thinkingmachines/inkling-small",
|
|
552
583
|
"poolside/laguna-s-2.1-free",
|
|
553
|
-
"meituan/LongCat-2.0:free"
|
|
554
|
-
"meta/muse-spark-1.1",
|
|
555
|
-
"meta/muse-spark-1.2",
|
|
556
|
-
"meta/muse-spark-1.2-contributor",
|
|
557
|
-
"meta/muse-spark-1.3",
|
|
558
|
-
"meta/muse-spark-1.3-contributor"
|
|
584
|
+
"meituan/LongCat-2.0:free"
|
|
559
585
|
]);
|
|
560
586
|
/**
|
|
561
587
|
* The minimum subscription plan a model is included in, per the official plan
|
|
@@ -922,7 +948,7 @@ function capabilityDescription(modelId, contextWindow, now = Date.now()) {
|
|
|
922
948
|
* per-request options thunk and an API-key resolver from the plugin entry
|
|
923
949
|
* (src/index.ts), so a settings change reaches the very next request.
|
|
924
950
|
*/
|
|
925
|
-
const COMMAND_CODE_CLI_VERSION = "1.
|
|
951
|
+
const COMMAND_CODE_CLI_VERSION = "1.47.0";
|
|
926
952
|
const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
927
953
|
const DEFAULT_GENERATE_MAX_TOKENS = 64e3;
|
|
928
954
|
const DEFAULT_MAX_OUTPUT_TOKENS = 65536;
|