@mars-sea/dsh-commandcode-provider 0.12.6 → 0.12.7
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 +13 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/client.js +1 -1
- package/lib/index.d.ts +11 -9
- package/lib/index.js +61 -10
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ 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.7] - 2026-10-08
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- 同步官方 command-code@1.78.0 新增的 `claude-haiku-5-5`(Claude Haiku 5.5):最低套餐 Pro,支持视觉与推理,五档思考强度 `low`/`medium`/`high`/`xhigh`/`max`,1 000 000 上下文;价格按提示长度分档,`≤100K` tokens 为 $0.10 入 / $0.50 出 / $0.01 缓存读 / $0.125 缓存写每 1M,`>100K` 为 $0.50 / $2.50 / $0.05 / $0.625。该模型在公开目录、定价页与 CLI 注册表三处同步出现,各记 +1。
|
|
12
|
+
- 同步官方 command-code@1.79.0 新增的 `stealth/glyph-cluster:free`(Glyph Cluster)隐身预览:最低套餐 Go(全部套餐可用),纯文本、支持推理,四档思考强度 `low`/`medium`/`high`/`xhigh`,256 000 上下文;隐身预览期内免费、每天 100 次请求,官方标为 100% 折扣且没有公布结束日期,因此按「永久型」促销处理、不带 `expiresAt`,并排在模型选择器最前。
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- 同步官方 command-code@1.79.1:请求头 `x-command-code-version` 升至 `1.79.1`。官方日志覆盖到 1.79.0——1.78.0 是「新增 Claude Haiku 5.5(Pro 及以上)」、CLI 中文本地化(新增 `/language` 命令)与 Windows 上 Taste learning 归类崩溃的修复,1.79.0 是「新增 Glyph Cluster 免费模型,每天 100 次请求」;1.79.1 没有日志条目,逐字节比对 1.79.0 → 1.79.1 的 `dist/cli.mjs` 后确认唯一差异是 `resolveKittyKeyboard` 在 `win32` 平台跳过 Kitty 键盘协议探测(Windows 终端兼容修复)。协议面静态复核无变化:13 个请求头集合完全一致,`toWireMessages`/`toWireTools`/`toWirePermissionMode`/`knownModelSupportsZdr`/`getSupportedEfforts`/`buildModelGroups`/`listSelectableModelIds` 的调用点计数与形态不变,接口路径里唯一的新增是 CLI 自己的 `/language` 斜杠命令。
|
|
17
|
+
- 零数据保留例外名单新增 `stealth/glyph-cluster:free`(20 → 21 项):官方定价页在该行写明「Not routed under ZDR」,CLI 的排除集合同样列出它,两处证据一致。
|
|
18
|
+
- 定价页额度与其余各行逐条复核对齐,价格表本次只有 `claude-haiku-5-5` 一行新增(含 `≤100K`/`>100K` 两个上下文分档),无其他行漂移。
|
|
19
|
+
|
|
7
20
|
## [0.12.6] - 2026-10-07
|
|
8
21
|
|
|
9
22
|
### Added
|
package/README.md
CHANGED
|
@@ -231,7 +231,7 @@ Command Code can serve a request only through upstreams that retain no prompts o
|
|
|
231
231
|
|
|
232
232
|
**Off by default.** Turn it on with the *"Zero data retention (ZDR)"* toggle (`zdr`) in the Privacy & security card, or in your profile config. How this plugin implements it:
|
|
233
233
|
|
|
234
|
-
- The header is sent on **every chat request** while ZDR is on. The plugin maintains an informational exception list (`KNOWN_NON_ZDR_MODELS`, synced from the official CLI —
|
|
234
|
+
- The header is sent on **every chat request** while ZDR is on. The plugin maintains an informational exception list (`KNOWN_NON_ZDR_MODELS`, synced from the official CLI — 21 models as of 2026-10-08, e.g. `xai/grok-4.5`, `stealth/glyph-cluster:free`, `stepfun/Step-3.7-Flash`, `meta/muse-spark-1.3`). A model without an available ZDR upstream fails with `422 cmd_zdr_no_providers`; the request is never retried without the header.
|
|
235
235
|
- If a refusal still happens (coverage churn, or no ZDR upstream with spare capacity at that moment), the error names the cause and how to turn ZDR off, instead of surfacing as a bare HTTP 422.
|
|
236
236
|
- **ZDR usually costs more**: capacity is limited and billed at each upstream's pass-through rates, and which upstream serves a request can change per request. The session-cost readout keeps quoting the ordinary catalog rates; the real per-request price shows in Command Code's Studio usage page.
|
|
237
237
|
- Works on every plan; plan credits meter ZDR requests at the plan's default allowance.
|
package/README.zh-CN.md
CHANGED
|
@@ -223,7 +223,7 @@ Command Code 可以让请求只经由「不留存提示词与回复、也不用
|
|
|
223
223
|
|
|
224
224
|
**默认关闭。** 在「隐私与安全」卡片里打开「零数据保留(ZDR)」(`zdr`),或写进 profile 配置。本插件的实现方式:
|
|
225
225
|
|
|
226
|
-
- 开启后,**每次聊天请求**都会带上 ZDR 请求头。插件仍维护官方 CLI 的例外名单(`KNOWN_NON_ZDR_MODELS`,截至 2026-
|
|
226
|
+
- 开启后,**每次聊天请求**都会带上 ZDR 请求头。插件仍维护官方 CLI 的例外名单(`KNOWN_NON_ZDR_MODELS`,截至 2026-10-08 共 21 个模型,例如 `xai/grok-4.5`、`stealth/glyph-cluster:free`、`stepfun/Step-3.7-Flash`、`meta/muse-spark-1.3`)供查询。没有可用 ZDR 上游时,服务端返回 `422 cmd_zdr_no_providers`;插件不会去掉请求头重试。
|
|
227
227
|
- 万一仍被拒绝(名单过期,或那一刻没有空闲的 ZDR 上游容量),错误信息会说明原因并给出关闭 ZDR 的办法,而不是抛出一个光秃秃的 HTTP 422。
|
|
228
228
|
- **ZDR 通常更贵**:容量有限,按各上游实价透传计费,且每次请求落在哪个上游可能不同。会话费用读数仍按常规目录价估算;真实单价见 Command Code Studio 的用量页。
|
|
229
229
|
- 各套餐均可使用;ZDR 请求按套餐的默认额度(而非提升额度)计量。
|
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.7";
|
|
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.79.1";
|
|
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.
|
|
981
|
+
* registry (`command-code@1.79.1` `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
|
|
@@ -1011,7 +1011,8 @@ declare const KNOWN_IMAGE_MODELS: ReadonlySet<string>;
|
|
|
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
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
|
+
* stealth previews, back to 20 members as of 2026-10-07, and 1.79.0 added the
|
|
1015
|
+
* free `stealth/glyph-cluster:free` preview — 21 members as of 2026-10-08.
|
|
1015
1016
|
*
|
|
1016
1017
|
* 1.77.0 also settled the two retired stealth previews (see `KNOWN_EFFORTS`):
|
|
1017
1018
|
* 1.74.3 still named both in the ZDR anchors, so they stayed listed here on
|
|
@@ -1049,12 +1050,13 @@ declare const KNOWN_THINKING_MODELS: ReadonlySet<string>;
|
|
|
1049
1050
|
* `/docs/plans/max` and `/docs/resources/pricing-limits`). Each plan's model
|
|
1050
1051
|
* list is a superset of the one below it: Go ⊂ GOAT ⊂ Pro ⊂ Provider/Max.
|
|
1051
1052
|
* Models absent from every plan list (Claude Opus/Fable, Fugu Ultra) are
|
|
1052
|
-
* Provider-tier. Re-verified at command-code@1.
|
|
1053
|
-
* ids at
|
|
1054
|
-
* (1.75.0)
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1053
|
+
* Provider-tier. Re-verified at command-code@1.79.1 (2026-10-08): 87 catalog
|
|
1054
|
+
* ids at 54/63/78/86 cumulative, a strict superset chain. Mistral Large 4
|
|
1055
|
+
* (1.75.0) was the only addition at the 1.77.0 check; the 1.78.0/1.79.0 pair
|
|
1056
|
+
* added two more — Claude Haiku 5.5 at Pro and the free Glyph Cluster preview
|
|
1057
|
+
* at Go — and the only removals since 1.49.0 are the two retired stealth
|
|
1058
|
+
* previews (Pixel Canary at 1.73.1, Space Bunny Alpha at 1.74.3). No tier ever
|
|
1059
|
+
* moved, and per-entry tags below name the release that added each row.
|
|
1058
1060
|
*
|
|
1059
1061
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
|
1060
1062
|
* 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.
|
|
106
|
+
* bundle's model table (`dist/cli.mjs`, re-verified at command-code@1.79.1) 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
|
|
@@ -429,6 +429,19 @@ const KNOWN_EFFORTS = {
|
|
|
429
429
|
"low",
|
|
430
430
|
"medium",
|
|
431
431
|
"high"
|
|
432
|
+
],
|
|
433
|
+
"claude-haiku-5-5": [
|
|
434
|
+
"low",
|
|
435
|
+
"medium",
|
|
436
|
+
"high",
|
|
437
|
+
"xhigh",
|
|
438
|
+
"max"
|
|
439
|
+
],
|
|
440
|
+
"stealth/glyph-cluster:free": [
|
|
441
|
+
"low",
|
|
442
|
+
"medium",
|
|
443
|
+
"high",
|
|
444
|
+
"xhigh"
|
|
432
445
|
]
|
|
433
446
|
};
|
|
434
447
|
/**
|
|
@@ -459,6 +472,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
459
472
|
"claude-fable-5-1",
|
|
460
473
|
"claude-fable-5",
|
|
461
474
|
"claude-haiku-4-5-20251001",
|
|
475
|
+
"claude-haiku-5-5",
|
|
462
476
|
"claude-opus-4-7",
|
|
463
477
|
"claude-opus-4-8",
|
|
464
478
|
"claude-opus-5-5",
|
|
@@ -514,7 +528,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
514
528
|
]);
|
|
515
529
|
/**
|
|
516
530
|
* Models WITHOUT a zero-data-retention upstream, per the official CLI's own
|
|
517
|
-
* registry (`command-code@1.
|
|
531
|
+
* registry (`command-code@1.79.1` `dist/cli.mjs`): `modelSupportsZdr(id)` is
|
|
518
532
|
* exactly `!nonZdrSet.has(canonicalize(id))`, and `knownModelSupportsZdr`
|
|
519
533
|
* carries the same membership in the sibling route table — the UNION of both
|
|
520
534
|
* is this set. Reading only the sibling route table dropped
|
|
@@ -547,7 +561,8 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
547
561
|
* (`deepseek/deepseek-v4.1-flash-fast`), 1.68.0 changed nothing, and 1.74.1
|
|
548
562
|
* removed one (`meituan/LongCat-2.0`). The 1.74.2/1.74.3 pair changed nothing
|
|
549
563
|
* 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.
|
|
564
|
+
* stealth previews, back to 20 members as of 2026-10-07, and 1.79.0 added the
|
|
565
|
+
* free `stealth/glyph-cluster:free` preview — 21 members as of 2026-10-08.
|
|
551
566
|
*
|
|
552
567
|
* 1.77.0 also settled the two retired stealth previews (see `KNOWN_EFFORTS`):
|
|
553
568
|
* 1.74.3 still named both in the ZDR anchors, so they stayed listed here on
|
|
@@ -569,6 +584,7 @@ const KNOWN_NON_ZDR_MODELS = /* @__PURE__ */ new Set([
|
|
|
569
584
|
"minimax/minimax-m3-free",
|
|
570
585
|
"poolside/laguna-s-2.1-free",
|
|
571
586
|
"sakana/fugu-ultra",
|
|
587
|
+
"stealth/glyph-cluster:free",
|
|
572
588
|
"stepfun/Step-3.7-Flash",
|
|
573
589
|
"stepfun/Step-5-Preview",
|
|
574
590
|
"xai/grok-4.5",
|
|
@@ -788,12 +804,13 @@ const MODEL_OUTPUT_TOKEN_LIMITS = /* @__PURE__ */ new Map([
|
|
|
788
804
|
* `/docs/plans/max` and `/docs/resources/pricing-limits`). Each plan's model
|
|
789
805
|
* list is a superset of the one below it: Go ⊂ GOAT ⊂ Pro ⊂ Provider/Max.
|
|
790
806
|
* Models absent from every plan list (Claude Opus/Fable, Fugu Ultra) are
|
|
791
|
-
* Provider-tier. Re-verified at command-code@1.
|
|
792
|
-
* ids at
|
|
793
|
-
* (1.75.0)
|
|
794
|
-
*
|
|
795
|
-
*
|
|
796
|
-
*
|
|
807
|
+
* Provider-tier. Re-verified at command-code@1.79.1 (2026-10-08): 87 catalog
|
|
808
|
+
* ids at 54/63/78/86 cumulative, a strict superset chain. Mistral Large 4
|
|
809
|
+
* (1.75.0) was the only addition at the 1.77.0 check; the 1.78.0/1.79.0 pair
|
|
810
|
+
* added two more — Claude Haiku 5.5 at Pro and the free Glyph Cluster preview
|
|
811
|
+
* at Go — and the only removals since 1.49.0 are the two retired stealth
|
|
812
|
+
* previews (Pixel Canary at 1.73.1, Space Bunny Alpha at 1.74.3). No tier ever
|
|
813
|
+
* moved, and per-entry tags below name the release that added each row.
|
|
797
814
|
*
|
|
798
815
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
|
799
816
|
* truth for the picker's plan annotation — it answers "which plan do I need to
|
|
@@ -841,6 +858,7 @@ const KNOWN_PLANS = {
|
|
|
841
858
|
"stepfun/Step-3.5-Flash": "go",
|
|
842
859
|
"stepfun/Step-3.7-Flash": "go",
|
|
843
860
|
"stepfun/Step-5-Preview": "go",
|
|
861
|
+
"stealth/glyph-cluster:free": "go",
|
|
844
862
|
"tencent/hy3-paid": "go",
|
|
845
863
|
"tencent/hy4-preview": "go",
|
|
846
864
|
"thinkingmachines/inkling": "go",
|
|
@@ -867,6 +885,7 @@ const KNOWN_PLANS = {
|
|
|
867
885
|
"xai/grok-4.7": "goat",
|
|
868
886
|
"xiaomi/mimo-v2.6-pro-ultraspeed": "goat",
|
|
869
887
|
"claude-haiku-4-5-20251001": "pro",
|
|
888
|
+
"claude-haiku-5-5": "pro",
|
|
870
889
|
"claude-sonnet-4-6": "pro",
|
|
871
890
|
"claude-sonnet-5": "pro",
|
|
872
891
|
"google/gemini-3.1-flash-lite": "pro",
|
|
@@ -1036,6 +1055,10 @@ const KNOWN_DEALS = {
|
|
|
1036
1055
|
"inclusionai/ling-3.1-flash:free": {
|
|
1037
1056
|
label: "FREE",
|
|
1038
1057
|
free: true
|
|
1058
|
+
},
|
|
1059
|
+
"stealth/glyph-cluster:free": {
|
|
1060
|
+
label: "FREE",
|
|
1061
|
+
free: true
|
|
1039
1062
|
}
|
|
1040
1063
|
};
|
|
1041
1064
|
/**
|
|
@@ -1252,6 +1275,34 @@ const MODEL_PRICE_ROWS = [
|
|
|
1252
1275
|
pro: 20
|
|
1253
1276
|
}
|
|
1254
1277
|
},
|
|
1278
|
+
{
|
|
1279
|
+
id: "claude-haiku-5-5",
|
|
1280
|
+
rates: [
|
|
1281
|
+
.1,
|
|
1282
|
+
.5,
|
|
1283
|
+
.01,
|
|
1284
|
+
.125
|
|
1285
|
+
],
|
|
1286
|
+
allowance: {
|
|
1287
|
+
go: 6,
|
|
1288
|
+
goat: 20,
|
|
1289
|
+
pro: 20
|
|
1290
|
+
},
|
|
1291
|
+
contextTiers: [{
|
|
1292
|
+
"maxContext": 1e5,
|
|
1293
|
+
"rates": [
|
|
1294
|
+
.1,
|
|
1295
|
+
.5,
|
|
1296
|
+
.01,
|
|
1297
|
+
.125
|
|
1298
|
+
]
|
|
1299
|
+
}, { "rates": [
|
|
1300
|
+
.5,
|
|
1301
|
+
2.5,
|
|
1302
|
+
.05,
|
|
1303
|
+
.625
|
|
1304
|
+
] }]
|
|
1305
|
+
},
|
|
1255
1306
|
{
|
|
1256
1307
|
id: "claude-opus-4-6",
|
|
1257
1308
|
rates: [
|
|
@@ -5276,7 +5327,7 @@ var GatewayFacts = class {
|
|
|
5276
5327
|
* per-request options thunk and an API-key resolver from the plugin entry
|
|
5277
5328
|
* (src/index.ts), so a settings change reaches the very next request.
|
|
5278
5329
|
*/
|
|
5279
|
-
const COMMAND_CODE_CLI_VERSION = "1.
|
|
5330
|
+
const COMMAND_CODE_CLI_VERSION = "1.79.1";
|
|
5280
5331
|
const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
5281
5332
|
/**
|
|
5282
5333
|
* The output budget this bundle asks for, and the ceiling it will never exceed.
|