@mars-sea/dsh-commandcode-provider 0.12.5 → 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 CHANGED
@@ -4,6 +4,21 @@ 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
+
7
22
  ## [0.12.5] - 2026-10-06
8
23
 
9
24
  ### 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.5";
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.74.3";
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,7 +978,7 @@ 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.74.3` `dist/cli.mjs`): `modelSupportsZdr(id)` is
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
@@ -1007,17 +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 below), 1.67.0 added one
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
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.
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.
1014
1015
  *
1015
- * `stealth/pixel-canary` and `stealth/space-bunny-alpha` are the members whose
1016
- * models themselves are retired (see `KNOWN_EFFORTS`): the CLI keeps naming both
1017
- * in the ZDR anchors even though it hides their rows and dropped them from the
1018
- * catalog, so they stay listed here rather than being pruned with the rest of
1019
- * the tables — `supportsZeroDataRetention` stays truthful for any id a stale
1020
- * session still names.
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.
1021
1023
  */
1022
1024
  declare const KNOWN_NON_ZDR_MODELS: ReadonlySet<string>;
1023
1025
  /**
@@ -1047,11 +1049,12 @@ declare const KNOWN_THINKING_MODELS: ReadonlySet<string>;
1047
1049
  * `/docs/plans/max` and `/docs/resources/pricing-limits`). Each plan's model
1048
1050
  * list is a superset of the one below it: Go ⊂ GOAT ⊂ Pro ⊂ Provider/Max.
1049
1051
  * Models absent from every plan list (Claude Opus/Fable, Fugu Ultra) are
1050
- * Provider-tier. Re-verified at command-code@1.74.3 (2026-10-06): 84 catalog
1051
- * ids at 52/61/75/83 cumulative, a strict superset chain — the only removals
1052
- * since 1.49.0 are the two retired stealth previews (Pixel Canary at 1.73.1,
1053
- * Space Bunny Alpha at 1.74.3), no tier ever moved, and per-entry tags below
1054
- * name the release that added each row.
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
1057
+ * release that added each row.
1055
1058
  *
1056
1059
  * The Provider API exposes no plan metadata, so this snapshot is the source of
1057
1060
  * truth for the picker's plan annotation — it answers "which plan do I need to
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.74.3) and
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
@@ -424,6 +424,11 @@ const KNOWN_EFFORTS = {
424
424
  "low",
425
425
  "medium",
426
426
  "high"
427
+ ],
428
+ "mistral/mistral-large-4": [
429
+ "low",
430
+ "medium",
431
+ "high"
427
432
  ]
428
433
  };
429
434
  /**
@@ -486,6 +491,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
486
491
  "meta/muse-spark-1.2-contributor",
487
492
  "meta/muse-spark-1.3",
488
493
  "meta/muse-spark-1.3-contributor",
494
+ "mistral/mistral-large-4",
489
495
  "moonshotai/Kimi-K2.5",
490
496
  "moonshotai/Kimi-K2.6",
491
497
  "moonshotai/Kimi-K2.7-Code",
@@ -508,7 +514,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
508
514
  ]);
509
515
  /**
510
516
  * Models WITHOUT a zero-data-retention upstream, per the official CLI's own
511
- * registry (`command-code@1.74.3` `dist/cli.mjs`): `modelSupportsZdr(id)` is
517
+ * registry (`command-code@1.77.0` `dist/cli.mjs`): `modelSupportsZdr(id)` is
512
518
  * exactly `!nonZdrSet.has(canonicalize(id))`, and `knownModelSupportsZdr`
513
519
  * carries the same membership in the sibling route table — the UNION of both
514
520
  * is this set. Reading only the sibling route table dropped
@@ -537,17 +543,19 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
537
543
  * flags) is upstream-internal routing, not a per-model contract, so this table
538
544
  * is the snapshot of the exclusion set and nothing more. It is a rare change:
539
545
  * 20 members held across 1.62.0 → 1.64.0, 1.65.0 and 1.66.0 each added exactly
540
- * one (the two stealth-preview models below), 1.67.0 added one
546
+ * one (the two stealth-preview models), 1.67.0 added one
541
547
  * (`deepseek/deepseek-v4.1-flash-fast`), 1.68.0 changed nothing, and 1.74.1
542
548
  * removed one (`meituan/LongCat-2.0`). The 1.74.2/1.74.3 pair changed nothing
543
- * here either — 22 members as of 2026-10-06.
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.
544
551
  *
545
- * `stealth/pixel-canary` and `stealth/space-bunny-alpha` are the members whose
546
- * models themselves are retired (see `KNOWN_EFFORTS`): the CLI keeps naming both
547
- * in the ZDR anchors even though it hides their rows and dropped them from the
548
- * catalog, so they stay listed here rather than being pruned with the rest of
549
- * the tables — `supportsZeroDataRetention` stays truthful for any id a stale
550
- * session still names.
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.
551
559
  */
552
560
  const KNOWN_NON_ZDR_MODELS = /* @__PURE__ */ new Set([
553
561
  "MiniMaxAI/MiniMax-M3",
@@ -561,8 +569,6 @@ const KNOWN_NON_ZDR_MODELS = /* @__PURE__ */ new Set([
561
569
  "minimax/minimax-m3-free",
562
570
  "poolside/laguna-s-2.1-free",
563
571
  "sakana/fugu-ultra",
564
- "stealth/space-bunny-alpha",
565
- "stealth/pixel-canary",
566
572
  "stepfun/Step-3.7-Flash",
567
573
  "stepfun/Step-5-Preview",
568
574
  "xai/grok-4.5",
@@ -782,11 +788,12 @@ const MODEL_OUTPUT_TOKEN_LIMITS = /* @__PURE__ */ new Map([
782
788
  * `/docs/plans/max` and `/docs/resources/pricing-limits`). Each plan's model
783
789
  * list is a superset of the one below it: Go ⊂ GOAT ⊂ Pro ⊂ Provider/Max.
784
790
  * Models absent from every plan list (Claude Opus/Fable, Fugu Ultra) are
785
- * Provider-tier. Re-verified at command-code@1.74.3 (2026-10-06): 84 catalog
786
- * ids at 52/61/75/83 cumulative, a strict superset chain — the only removals
787
- * since 1.49.0 are the two retired stealth previews (Pixel Canary at 1.73.1,
788
- * Space Bunny Alpha at 1.74.3), no tier ever moved, and per-entry tags below
789
- * name the release that added each row.
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
796
+ * release that added each row.
790
797
  *
791
798
  * The Provider API exposes no plan metadata, so this snapshot is the source of
792
799
  * truth for the picker's plan annotation — it answers "which plan do I need to
@@ -823,6 +830,7 @@ const KNOWN_PLANS = {
823
830
  "inclusionai/ling-3.1-flash:free": "go",
824
831
  "meta/muse-spark-1.2-contributor": "go",
825
832
  "meta/muse-spark-1.3-contributor": "go",
833
+ "mistral/mistral-large-4": "go",
826
834
  "moonshotai/Kimi-K2.5": "go",
827
835
  "moonshotai/Kimi-K2.6": "go",
828
836
  "moonshotai/Kimi-K2.7-Code": "go",
@@ -1625,8 +1633,8 @@ const MODEL_PRICE_ROWS = [
1625
1633
  ],
1626
1634
  allowance: {
1627
1635
  go: 10,
1628
- goat: 40,
1629
- pro: 50
1636
+ goat: 60,
1637
+ pro: 70
1630
1638
  }
1631
1639
  },
1632
1640
  {
@@ -2044,8 +2052,8 @@ const MODEL_PRICE_ROWS = [
2044
2052
  ],
2045
2053
  allowance: {
2046
2054
  go: 8,
2047
- goat: 20,
2048
- pro: 30
2055
+ goat: 60,
2056
+ pro: 70
2049
2057
  }
2050
2058
  },
2051
2059
  {
@@ -2180,6 +2188,19 @@ const MODEL_PRICE_ROWS = [
2180
2188
  pro: 57
2181
2189
  }
2182
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
+ },
2183
2204
  {
2184
2205
  id: "muse-spark-1.1",
2185
2206
  rates: [
@@ -5255,7 +5276,7 @@ var GatewayFacts = class {
5255
5276
  * per-request options thunk and an API-key resolver from the plugin entry
5256
5277
  * (src/index.ts), so a settings change reaches the very next request.
5257
5278
  */
5258
- const COMMAND_CODE_CLI_VERSION = "1.74.3";
5279
+ const COMMAND_CODE_CLI_VERSION = "1.77.0";
5259
5280
  const DEFAULT_API_BASE = "https://api.commandcode.ai";
5260
5281
  /**
5261
5282
  * The output budget this bundle asks for, and the ceiling it will never exceed.