@mars-sea/dsh-commandcode-provider 0.12.4 → 0.12.6
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 +25 -0
- package/lib/client.js +1 -1
- package/lib/index.d.ts +19 -13
- package/lib/index.js +45 -33
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,31 @@ 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.12.6] - 2026-10-07
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- 同步官方 command-code@1.75.0 新增的 `mistral/mistral-large-4`(Mistral Large 4):最低套餐 Go,支持视觉与推理,三档思考强度 `low`/`medium`/`high`,524 288 上下文;价格 $1.36 入 / $4.18 出 / $0.14 缓存读每 1M,月度额度 Go $10 / GOAT $40 / Pro $50(官方「启动价期间的额度提升」已折算在内)。该模型在公开目录、定价页与 CLI 注册表三处同步出现,各记 +1。
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- 同步官方 command-code@1.77.0:请求头 `x-command-code-version` 升至 `1.77.0`。1.75.0/1.75.1/1.76.0 的官方日志分别是「新增 Mistral Large 4」「hooks 跳过 stdin 与良性写错误不再让 CLI 崩溃」「`/peek` 任务回顾图」;1.77.0 没有 changelog 条目,逐行比对 1.76.0 → 1.77.0 的 `dist/cli.mjs` 后确认变化只落在 CLI 自己的命令行参数层(云会话转正、新增 `--base`、`cloud list/status/stop` 子命令、机器可读参数判定由子串包含改为精确匹配),协议面未动——142 个 API 路径与 13 个请求头集合完全一致,`toWireMessages`/`toWireTools`/`toWirePermissionMode` 的调用点数量与形态不变。
|
|
16
|
+
- 两个既有模型的月度额度跟上官方定价页:`glm-5.3-flash` 的 GOAT/Pro 从 $40/$50 提到 $60/$70,`kimi-k3` 从 $20/$30 提到 $60/$70。这类数字来自定价页的 `planAllowanceUsd` 字段,不在上游审计脚本的提取范围内,本轮靠逐行对照 84 条额度记录才发现;对照后价格表与页面已逐条一致。
|
|
17
|
+
|
|
18
|
+
### Removed
|
|
19
|
+
|
|
20
|
+
- 零数据保留例外名单移除 `stealth/pixel-canary` 与 `stealth/space-bunny-alpha`(22 → 20 项)。1.77.0 的 CLI 不再把两者列入 ZDR 排除集合,并把它们放进 `listSelectableModelIds()` 过滤掉的不可选择集合,因此 `supportsZeroDataRetention()` 现在对这两个 id 回答 true,与当前 CLI 一致。这推翻了 0.12.5 那轮「刻意保留」的选择——当时的前提是 1.74.3 仍把它们列在两个锚点里,该前提已随 1.77.0 消失。
|
|
21
|
+
|
|
22
|
+
## [0.12.5] - 2026-10-06
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- 同步官方 command-code@1.74.2/1.74.3:请求头 `x-command-code-version` 升至 `1.74.3`。两次发布都没有官方 changelog 条目,证据是 npm 发布时间线(1.74.2 于 2026-10-05T21:55Z、1.74.3 于 23:19Z)加 `dist/cli.mjs` 逐行比对:除打包变量改名与那两条隐身模型外,Effort 表、订阅计划、ZDR 锚点、峰时窗口、促销与协议面全部重核无变化。
|
|
27
|
+
|
|
28
|
+
### Removed
|
|
29
|
+
|
|
30
|
+
- 退役 `stealth/space-bunny-alpha` 的全部快照条目(思考档、Vision、最低套餐、免费促销)。官方 2026-10-06 结束该隐身预览:command-code@1.74.3 用 `hidden` 标记把它从模型选择器隐藏,`/provider/v1/models` 由 85 减为 84、定价页也已撤下,官方 Desktop 0.1.48 更新日志写明「Remove Space Bunny Alpha from the model picker」。它仍保留在零数据保留例外名单里——官方 CLI 的 ZDR 集合至今仍列着它,`supportsZeroDataRetention()` 对老会话里残留的 id 依然要说实话;模型输出上限表同样保留(该表由 models.dev 生成,手工删除只会与下次重新生成分叉)。
|
|
31
|
+
|
|
7
32
|
## [0.12.4] - 2026-10-04
|
|
8
33
|
|
|
9
34
|
### Changed
|
package/lib/client.js
CHANGED
|
@@ -3273,7 +3273,7 @@ window.__ModuleLoader__.load({
|
|
|
3273
3273
|
}
|
|
3274
3274
|
//#endregion
|
|
3275
3275
|
//#region package.json
|
|
3276
|
-
var version = "0.12.
|
|
3276
|
+
var version = "0.12.6";
|
|
3277
3277
|
var repository = {
|
|
3278
3278
|
"type": "git",
|
|
3279
3279
|
"url": "git+https://github.com/Mars-Sea/dsh-commandcode-provider.git"
|
package/lib/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ type CommandCodeProtocol = 'cli' | 'openai' | 'messages';
|
|
|
61
61
|
declare const DEFAULT_MAX_OUTPUT_TOKENS = 131072;
|
|
62
62
|
//#endregion
|
|
63
63
|
//#region src/adapter.d.ts
|
|
64
|
-
declare const COMMAND_CODE_CLI_VERSION = "1.
|
|
64
|
+
declare const COMMAND_CODE_CLI_VERSION = "1.77.0";
|
|
65
65
|
declare const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
66
66
|
/**
|
|
67
67
|
* The output budget this bundle asks for, and the ceiling it will never exceed.
|
|
@@ -978,12 +978,12 @@ declare const KNOWN_EFFORTS: Readonly<Record<string, readonly string[]>>;
|
|
|
978
978
|
declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
979
979
|
/**
|
|
980
980
|
* Models WITHOUT a zero-data-retention upstream, per the official CLI's own
|
|
981
|
-
* registry (`command-code@1.
|
|
981
|
+
* registry (`command-code@1.77.0` `dist/cli.mjs`): `modelSupportsZdr(id)` is
|
|
982
982
|
* exactly `!nonZdrSet.has(canonicalize(id))`, and `knownModelSupportsZdr`
|
|
983
983
|
* carries the same membership in the sibling route table — the UNION of both
|
|
984
984
|
* is this set. Reading only the sibling route table dropped
|
|
985
985
|
* `meituan/LongCat-2.0`, which sat in `modelSupportsZdr` alone through
|
|
986
|
-
* 1.73.0; the 1.74.
|
|
986
|
+
* 1.73.0; the 1.74.3 table lists it in NEITHER set, so as of this snapshot it
|
|
987
987
|
* is no longer excluded. The official docs (commandcode.ai/docs/resources/
|
|
988
988
|
* zdr) put coverage in prose — "99% of our models have ZDR-capable upstreams … only
|
|
989
989
|
* a small handful of models are affected" — so the CLI's exclusion list is
|
|
@@ -1007,15 +1007,19 @@ declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
|
1007
1007
|
* flags) is upstream-internal routing, not a per-model contract, so this table
|
|
1008
1008
|
* is the snapshot of the exclusion set and nothing more. It is a rare change:
|
|
1009
1009
|
* 20 members held across 1.62.0 → 1.64.0, 1.65.0 and 1.66.0 each added exactly
|
|
1010
|
-
* one (the two stealth-preview models
|
|
1010
|
+
* one (the two stealth-preview models), 1.67.0 added one
|
|
1011
1011
|
* (`deepseek/deepseek-v4.1-flash-fast`), 1.68.0 changed nothing, and 1.74.1
|
|
1012
|
-
* removed one (`meituan/LongCat-2.0`)
|
|
1012
|
+
* removed one (`meituan/LongCat-2.0`). The 1.74.2/1.74.3 pair changed nothing
|
|
1013
|
+
* here either (22 members as of 2026-10-06); 1.77.0 dropped the two retired
|
|
1014
|
+
* stealth previews, back to 20 members as of 2026-10-07.
|
|
1013
1015
|
*
|
|
1014
|
-
*
|
|
1015
|
-
*
|
|
1016
|
-
*
|
|
1017
|
-
*
|
|
1018
|
-
*
|
|
1016
|
+
* 1.77.0 also settled the two retired stealth previews (see `KNOWN_EFFORTS`):
|
|
1017
|
+
* 1.74.3 still named both in the ZDR anchors, so they stayed listed here on
|
|
1018
|
+
* purpose — an id a stale session named still got a truthful answer. The 1.77.0
|
|
1019
|
+
* artifact names neither in its exclusion set and filters both out of
|
|
1020
|
+
* `listSelectableModelIds()`, so they are pruned along with the rest of the
|
|
1021
|
+
* tables and `supportsZeroDataRetention` now answers TRUE for them, matching
|
|
1022
|
+
* what the current CLI says.
|
|
1019
1023
|
*/
|
|
1020
1024
|
declare const KNOWN_NON_ZDR_MODELS: ReadonlySet<string>;
|
|
1021
1025
|
/**
|
|
@@ -1045,9 +1049,11 @@ declare const KNOWN_THINKING_MODELS: ReadonlySet<string>;
|
|
|
1045
1049
|
* `/docs/plans/max` and `/docs/resources/pricing-limits`). Each plan's model
|
|
1046
1050
|
* list is a superset of the one below it: Go ⊂ GOAT ⊂ Pro ⊂ Provider/Max.
|
|
1047
1051
|
* Models absent from every plan list (Claude Opus/Fable, Fugu Ultra) are
|
|
1048
|
-
* Provider-tier. Re-verified at command-code@1.
|
|
1049
|
-
* ids at 53/62/76/84 cumulative, a strict superset chain
|
|
1050
|
-
* 1.
|
|
1052
|
+
* Provider-tier. Re-verified at command-code@1.77.0 (2026-10-07): 85 catalog
|
|
1053
|
+
* ids at 53/62/76/84 cumulative, a strict superset chain. Mistral Large 4
|
|
1054
|
+
* (1.75.0) is the only addition since the 1.74.3 check; the only removals since
|
|
1055
|
+
* 1.49.0 are the two retired stealth previews (Pixel Canary at 1.73.1, Space
|
|
1056
|
+
* Bunny Alpha at 1.74.3). No tier ever moved, and per-entry tags below name the
|
|
1051
1057
|
* release that added each row.
|
|
1052
1058
|
*
|
|
1053
1059
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
package/lib/index.js
CHANGED
|
@@ -103,7 +103,7 @@ const PLAN_ORDER = Object.fromEntries(PLAN_TIER_ORDER.map((tier, index) => [tier
|
|
|
103
103
|
* subscription-plan labels, deals, and hourly (peak/off-peak) pricing.
|
|
104
104
|
*
|
|
105
105
|
* Everything here is synced from official sources — the command-code CLI
|
|
106
|
-
* bundle's model table (`dist/cli.mjs`, re-verified at command-code@1.
|
|
106
|
+
* bundle's model table (`dist/cli.mjs`, re-verified at command-code@1.77.0) and
|
|
107
107
|
* the official plan/pricing/model docs; see the dsh-commandcode-upstream skill
|
|
108
108
|
* for the extraction procedures. Keeping the snapshot in its own module
|
|
109
109
|
* confines those frequent sync diffs here: src/adapter.ts holds only the stable
|
|
@@ -413,12 +413,6 @@ const KNOWN_EFFORTS = {
|
|
|
413
413
|
"medium",
|
|
414
414
|
"high"
|
|
415
415
|
],
|
|
416
|
-
"stealth/space-bunny-alpha": [
|
|
417
|
-
"low",
|
|
418
|
-
"medium",
|
|
419
|
-
"high",
|
|
420
|
-
"max"
|
|
421
|
-
],
|
|
422
416
|
"gpt-6.1-sol": [
|
|
423
417
|
"low",
|
|
424
418
|
"medium",
|
|
@@ -430,6 +424,11 @@ const KNOWN_EFFORTS = {
|
|
|
430
424
|
"low",
|
|
431
425
|
"medium",
|
|
432
426
|
"high"
|
|
427
|
+
],
|
|
428
|
+
"mistral/mistral-large-4": [
|
|
429
|
+
"low",
|
|
430
|
+
"medium",
|
|
431
|
+
"high"
|
|
433
432
|
]
|
|
434
433
|
};
|
|
435
434
|
/**
|
|
@@ -492,13 +491,13 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
492
491
|
"meta/muse-spark-1.2-contributor",
|
|
493
492
|
"meta/muse-spark-1.3",
|
|
494
493
|
"meta/muse-spark-1.3-contributor",
|
|
494
|
+
"mistral/mistral-large-4",
|
|
495
495
|
"moonshotai/Kimi-K2.5",
|
|
496
496
|
"moonshotai/Kimi-K2.6",
|
|
497
497
|
"moonshotai/Kimi-K2.7-Code",
|
|
498
498
|
"moonshotai/Kimi-K2.7-Code-Highspeed",
|
|
499
499
|
"moonshotai/Kimi-K3",
|
|
500
500
|
"sakana/fugu-ultra",
|
|
501
|
-
"stealth/space-bunny-alpha",
|
|
502
501
|
"stepfun/Step-3.7-Flash",
|
|
503
502
|
"stepfun/Step-5-Preview",
|
|
504
503
|
"thinkingmachines/inkling",
|
|
@@ -515,12 +514,12 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
515
514
|
]);
|
|
516
515
|
/**
|
|
517
516
|
* Models WITHOUT a zero-data-retention upstream, per the official CLI's own
|
|
518
|
-
* registry (`command-code@1.
|
|
517
|
+
* registry (`command-code@1.77.0` `dist/cli.mjs`): `modelSupportsZdr(id)` is
|
|
519
518
|
* exactly `!nonZdrSet.has(canonicalize(id))`, and `knownModelSupportsZdr`
|
|
520
519
|
* carries the same membership in the sibling route table — the UNION of both
|
|
521
520
|
* is this set. Reading only the sibling route table dropped
|
|
522
521
|
* `meituan/LongCat-2.0`, which sat in `modelSupportsZdr` alone through
|
|
523
|
-
* 1.73.0; the 1.74.
|
|
522
|
+
* 1.73.0; the 1.74.3 table lists it in NEITHER set, so as of this snapshot it
|
|
524
523
|
* is no longer excluded. The official docs (commandcode.ai/docs/resources/
|
|
525
524
|
* zdr) put coverage in prose — "99% of our models have ZDR-capable upstreams … only
|
|
526
525
|
* a small handful of models are affected" — so the CLI's exclusion list is
|
|
@@ -544,15 +543,19 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
544
543
|
* flags) is upstream-internal routing, not a per-model contract, so this table
|
|
545
544
|
* is the snapshot of the exclusion set and nothing more. It is a rare change:
|
|
546
545
|
* 20 members held across 1.62.0 → 1.64.0, 1.65.0 and 1.66.0 each added exactly
|
|
547
|
-
* one (the two stealth-preview models
|
|
546
|
+
* one (the two stealth-preview models), 1.67.0 added one
|
|
548
547
|
* (`deepseek/deepseek-v4.1-flash-fast`), 1.68.0 changed nothing, and 1.74.1
|
|
549
|
-
* removed one (`meituan/LongCat-2.0`)
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
*
|
|
553
|
-
*
|
|
554
|
-
*
|
|
555
|
-
*
|
|
548
|
+
* removed one (`meituan/LongCat-2.0`). The 1.74.2/1.74.3 pair changed nothing
|
|
549
|
+
* here either (22 members as of 2026-10-06); 1.77.0 dropped the two retired
|
|
550
|
+
* stealth previews, back to 20 members as of 2026-10-07.
|
|
551
|
+
*
|
|
552
|
+
* 1.77.0 also settled the two retired stealth previews (see `KNOWN_EFFORTS`):
|
|
553
|
+
* 1.74.3 still named both in the ZDR anchors, so they stayed listed here on
|
|
554
|
+
* purpose — an id a stale session named still got a truthful answer. The 1.77.0
|
|
555
|
+
* artifact names neither in its exclusion set and filters both out of
|
|
556
|
+
* `listSelectableModelIds()`, so they are pruned along with the rest of the
|
|
557
|
+
* tables and `supportsZeroDataRetention` now answers TRUE for them, matching
|
|
558
|
+
* what the current CLI says.
|
|
556
559
|
*/
|
|
557
560
|
const KNOWN_NON_ZDR_MODELS = /* @__PURE__ */ new Set([
|
|
558
561
|
"MiniMaxAI/MiniMax-M3",
|
|
@@ -566,8 +569,6 @@ const KNOWN_NON_ZDR_MODELS = /* @__PURE__ */ new Set([
|
|
|
566
569
|
"minimax/minimax-m3-free",
|
|
567
570
|
"poolside/laguna-s-2.1-free",
|
|
568
571
|
"sakana/fugu-ultra",
|
|
569
|
-
"stealth/space-bunny-alpha",
|
|
570
|
-
"stealth/pixel-canary",
|
|
571
572
|
"stepfun/Step-3.7-Flash",
|
|
572
573
|
"stepfun/Step-5-Preview",
|
|
573
574
|
"xai/grok-4.5",
|
|
@@ -787,9 +788,11 @@ const MODEL_OUTPUT_TOKEN_LIMITS = /* @__PURE__ */ new Map([
|
|
|
787
788
|
* `/docs/plans/max` and `/docs/resources/pricing-limits`). Each plan's model
|
|
788
789
|
* list is a superset of the one below it: Go ⊂ GOAT ⊂ Pro ⊂ Provider/Max.
|
|
789
790
|
* Models absent from every plan list (Claude Opus/Fable, Fugu Ultra) are
|
|
790
|
-
* Provider-tier. Re-verified at command-code@1.
|
|
791
|
-
* ids at 53/62/76/84 cumulative, a strict superset chain
|
|
792
|
-
* 1.
|
|
791
|
+
* Provider-tier. Re-verified at command-code@1.77.0 (2026-10-07): 85 catalog
|
|
792
|
+
* ids at 53/62/76/84 cumulative, a strict superset chain. Mistral Large 4
|
|
793
|
+
* (1.75.0) is the only addition since the 1.74.3 check; the only removals since
|
|
794
|
+
* 1.49.0 are the two retired stealth previews (Pixel Canary at 1.73.1, Space
|
|
795
|
+
* Bunny Alpha at 1.74.3). No tier ever moved, and per-entry tags below name the
|
|
793
796
|
* release that added each row.
|
|
794
797
|
*
|
|
795
798
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
|
@@ -827,6 +830,7 @@ const KNOWN_PLANS = {
|
|
|
827
830
|
"inclusionai/ling-3.1-flash:free": "go",
|
|
828
831
|
"meta/muse-spark-1.2-contributor": "go",
|
|
829
832
|
"meta/muse-spark-1.3-contributor": "go",
|
|
833
|
+
"mistral/mistral-large-4": "go",
|
|
830
834
|
"moonshotai/Kimi-K2.5": "go",
|
|
831
835
|
"moonshotai/Kimi-K2.6": "go",
|
|
832
836
|
"moonshotai/Kimi-K2.7-Code": "go",
|
|
@@ -837,7 +841,6 @@ const KNOWN_PLANS = {
|
|
|
837
841
|
"stepfun/Step-3.5-Flash": "go",
|
|
838
842
|
"stepfun/Step-3.7-Flash": "go",
|
|
839
843
|
"stepfun/Step-5-Preview": "go",
|
|
840
|
-
"stealth/space-bunny-alpha": "go",
|
|
841
844
|
"tencent/hy3-paid": "go",
|
|
842
845
|
"tencent/hy4-preview": "go",
|
|
843
846
|
"thinkingmachines/inkling": "go",
|
|
@@ -1033,10 +1036,6 @@ const KNOWN_DEALS = {
|
|
|
1033
1036
|
"inclusionai/ling-3.1-flash:free": {
|
|
1034
1037
|
label: "FREE",
|
|
1035
1038
|
free: true
|
|
1036
|
-
},
|
|
1037
|
-
"stealth/space-bunny-alpha": {
|
|
1038
|
-
label: "FREE",
|
|
1039
|
-
free: true
|
|
1040
1039
|
}
|
|
1041
1040
|
};
|
|
1042
1041
|
/**
|
|
@@ -1634,8 +1633,8 @@ const MODEL_PRICE_ROWS = [
|
|
|
1634
1633
|
],
|
|
1635
1634
|
allowance: {
|
|
1636
1635
|
go: 10,
|
|
1637
|
-
goat:
|
|
1638
|
-
pro:
|
|
1636
|
+
goat: 60,
|
|
1637
|
+
pro: 70
|
|
1639
1638
|
}
|
|
1640
1639
|
},
|
|
1641
1640
|
{
|
|
@@ -2053,8 +2052,8 @@ const MODEL_PRICE_ROWS = [
|
|
|
2053
2052
|
],
|
|
2054
2053
|
allowance: {
|
|
2055
2054
|
go: 8,
|
|
2056
|
-
goat:
|
|
2057
|
-
pro:
|
|
2055
|
+
goat: 60,
|
|
2056
|
+
pro: 70
|
|
2058
2057
|
}
|
|
2059
2058
|
},
|
|
2060
2059
|
{
|
|
@@ -2189,6 +2188,19 @@ const MODEL_PRICE_ROWS = [
|
|
|
2189
2188
|
pro: 57
|
|
2190
2189
|
}
|
|
2191
2190
|
},
|
|
2191
|
+
{
|
|
2192
|
+
id: "mistral-large-4",
|
|
2193
|
+
rates: [
|
|
2194
|
+
1.36,
|
|
2195
|
+
4.18,
|
|
2196
|
+
.14
|
|
2197
|
+
],
|
|
2198
|
+
allowance: {
|
|
2199
|
+
go: 10,
|
|
2200
|
+
goat: 40,
|
|
2201
|
+
pro: 50
|
|
2202
|
+
}
|
|
2203
|
+
},
|
|
2192
2204
|
{
|
|
2193
2205
|
id: "muse-spark-1.1",
|
|
2194
2206
|
rates: [
|
|
@@ -5264,7 +5276,7 @@ var GatewayFacts = class {
|
|
|
5264
5276
|
* per-request options thunk and an API-key resolver from the plugin entry
|
|
5265
5277
|
* (src/index.ts), so a settings change reaches the very next request.
|
|
5266
5278
|
*/
|
|
5267
|
-
const COMMAND_CODE_CLI_VERSION = "1.
|
|
5279
|
+
const COMMAND_CODE_CLI_VERSION = "1.77.0";
|
|
5268
5280
|
const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
5269
5281
|
/**
|
|
5270
5282
|
* The output budget this bundle asks for, and the ceiling it will never exceed.
|