@mars-sea/dsh-commandcode-provider 0.12.8 → 0.12.9
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 +8 -0
- package/lib/client.js +1 -1
- package/lib/index.d.ts +9 -8
- package/lib/index.js +15 -14
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ 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.9] - 2026-10-09
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- 同步官方 command-code@1.79.2,请求头 `x-command-code-version` 升至 `1.79.2`。Claude Haiku 5.5 的最低套餐从 Pro 下调至 GOAT,GOAT 用户可在模型选择器中看到该模型,累计分层由 54/63/78/86/87 变为 54/64/78/86/87。
|
|
12
|
+
- 同步官网价格与额度:Haiku 5.5 的 Pro 月额度 $20 → $30(GOAT 保持 $20);Sonnet 5.5 的缓存读取单价 $0.20 → $0.10/百万词元;Kimi K3 的 GOAT/Pro 月额度 $60/$70 → $20/$30。这些额度从套餐月度池中扣除,不是额外赠送额度,也不授予 Provider API 权限。
|
|
13
|
+
- 公开目录仍为 87 个模型;思考强度、视觉能力、订阅计划、促销、峰时规则与 21 项零数据保留例外未发现变化。CLI 请求、消息/工具转换、鉴权与登录函数静态对照未发现协议变化,本轮未进行登录后的实际生成验证。
|
|
14
|
+
|
|
7
15
|
## [0.12.8] - 2026-10-08
|
|
8
16
|
|
|
9
17
|
### 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.9";
|
|
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.79.
|
|
64
|
+
declare const COMMAND_CODE_CLI_VERSION = "1.79.2";
|
|
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.79.
|
|
981
|
+
* registry (`command-code@1.79.2` `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
|
|
@@ -1050,13 +1050,14 @@ declare const KNOWN_THINKING_MODELS: ReadonlySet<string>;
|
|
|
1050
1050
|
* `/docs/plans/max` and `/docs/resources/pricing-limits`). Each plan's model
|
|
1051
1051
|
* list is a superset of the one below it: Go ⊂ GOAT ⊂ Pro ⊂ Provider/Max.
|
|
1052
1052
|
* Models absent from every plan list (Claude Opus/Fable, Fugu Ultra) are
|
|
1053
|
-
* Provider-tier. Re-verified at command-code@1.79.
|
|
1054
|
-
* ids at 54/
|
|
1053
|
+
* Provider-tier. Re-verified at command-code@1.79.2 (2026-10-09): 87 catalog
|
|
1054
|
+
* ids at 54/64/78/86 cumulative, a strict superset chain. Mistral Large 4
|
|
1055
1055
|
* (1.75.0) was the only addition at the 1.77.0 check; the 1.78.0/1.79.0 pair
|
|
1056
|
-
* added
|
|
1057
|
-
*
|
|
1058
|
-
*
|
|
1059
|
-
*
|
|
1056
|
+
* added Claude Haiku 5.5 at Pro and the free Glyph Cluster preview at Go.
|
|
1057
|
+
* 1.79.2 lowers Haiku 5.5's minimum plan to GOAT; every other tier is unchanged.
|
|
1058
|
+
* The only removals since 1.49.0 are the two retired stealth previews (Pixel
|
|
1059
|
+
* Canary at 1.73.1, Space Bunny Alpha at 1.74.3). Per-entry tags below name the
|
|
1060
|
+
* releases that added or moved each row.
|
|
1060
1061
|
*
|
|
1061
1062
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
|
1062
1063
|
* 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.79.
|
|
106
|
+
* bundle's model table (`dist/cli.mjs`, re-verified at command-code@1.79.2) 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
|
|
@@ -528,7 +528,7 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
528
528
|
]);
|
|
529
529
|
/**
|
|
530
530
|
* Models WITHOUT a zero-data-retention upstream, per the official CLI's own
|
|
531
|
-
* registry (`command-code@1.79.
|
|
531
|
+
* registry (`command-code@1.79.2` `dist/cli.mjs`): `modelSupportsZdr(id)` is
|
|
532
532
|
* exactly `!nonZdrSet.has(canonicalize(id))`, and `knownModelSupportsZdr`
|
|
533
533
|
* carries the same membership in the sibling route table — the UNION of both
|
|
534
534
|
* is this set. Reading only the sibling route table dropped
|
|
@@ -804,13 +804,14 @@ const MODEL_OUTPUT_TOKEN_LIMITS = /* @__PURE__ */ new Map([
|
|
|
804
804
|
* `/docs/plans/max` and `/docs/resources/pricing-limits`). Each plan's model
|
|
805
805
|
* list is a superset of the one below it: Go ⊂ GOAT ⊂ Pro ⊂ Provider/Max.
|
|
806
806
|
* Models absent from every plan list (Claude Opus/Fable, Fugu Ultra) are
|
|
807
|
-
* Provider-tier. Re-verified at command-code@1.79.
|
|
808
|
-
* ids at 54/
|
|
807
|
+
* Provider-tier. Re-verified at command-code@1.79.2 (2026-10-09): 87 catalog
|
|
808
|
+
* ids at 54/64/78/86 cumulative, a strict superset chain. Mistral Large 4
|
|
809
809
|
* (1.75.0) was the only addition at the 1.77.0 check; the 1.78.0/1.79.0 pair
|
|
810
|
-
* added
|
|
811
|
-
*
|
|
812
|
-
*
|
|
813
|
-
*
|
|
810
|
+
* added Claude Haiku 5.5 at Pro and the free Glyph Cluster preview at Go.
|
|
811
|
+
* 1.79.2 lowers Haiku 5.5's minimum plan to GOAT; every other tier is unchanged.
|
|
812
|
+
* The only removals since 1.49.0 are the two retired stealth previews (Pixel
|
|
813
|
+
* Canary at 1.73.1, Space Bunny Alpha at 1.74.3). Per-entry tags below name the
|
|
814
|
+
* releases that added or moved each row.
|
|
814
815
|
*
|
|
815
816
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
|
816
817
|
* truth for the picker's plan annotation — it answers "which plan do I need to
|
|
@@ -875,6 +876,7 @@ const KNOWN_PLANS = {
|
|
|
875
876
|
"zai-org/GLM-5.2": "go",
|
|
876
877
|
"zai-org/GLM-5.2-Fast": "go",
|
|
877
878
|
"zai-org/GLM-5.3": "go",
|
|
879
|
+
"claude-haiku-5-5": "goat",
|
|
878
880
|
"claude-sonnet-5-5": "goat",
|
|
879
881
|
"google/gemini-3.7-flash": "goat",
|
|
880
882
|
"google/gemini-3.8-flash": "goat",
|
|
@@ -885,7 +887,6 @@ const KNOWN_PLANS = {
|
|
|
885
887
|
"xai/grok-4.7": "goat",
|
|
886
888
|
"xiaomi/mimo-v2.6-pro-ultraspeed": "goat",
|
|
887
889
|
"claude-haiku-4-5-20251001": "pro",
|
|
888
|
-
"claude-haiku-5-5": "pro",
|
|
889
890
|
"claude-sonnet-4-6": "pro",
|
|
890
891
|
"claude-sonnet-5": "pro",
|
|
891
892
|
"google/gemini-3.1-flash-lite": "pro",
|
|
@@ -1286,7 +1287,7 @@ const MODEL_PRICE_ROWS = [
|
|
|
1286
1287
|
allowance: {
|
|
1287
1288
|
go: 6,
|
|
1288
1289
|
goat: 20,
|
|
1289
|
-
pro:
|
|
1290
|
+
pro: 30
|
|
1290
1291
|
},
|
|
1291
1292
|
contextTiers: [{
|
|
1292
1293
|
"maxContext": 1e5,
|
|
@@ -1406,7 +1407,7 @@ const MODEL_PRICE_ROWS = [
|
|
|
1406
1407
|
rates: [
|
|
1407
1408
|
2,
|
|
1408
1409
|
10,
|
|
1409
|
-
.
|
|
1410
|
+
.1,
|
|
1410
1411
|
2.5
|
|
1411
1412
|
],
|
|
1412
1413
|
allowance: {
|
|
@@ -2103,8 +2104,8 @@ const MODEL_PRICE_ROWS = [
|
|
|
2103
2104
|
],
|
|
2104
2105
|
allowance: {
|
|
2105
2106
|
go: 8,
|
|
2106
|
-
goat:
|
|
2107
|
-
pro:
|
|
2107
|
+
goat: 20,
|
|
2108
|
+
pro: 30
|
|
2108
2109
|
}
|
|
2109
2110
|
},
|
|
2110
2111
|
{
|
|
@@ -5327,7 +5328,7 @@ var GatewayFacts = class {
|
|
|
5327
5328
|
* per-request options thunk and an API-key resolver from the plugin entry
|
|
5328
5329
|
* (src/index.ts), so a settings change reaches the very next request.
|
|
5329
5330
|
*/
|
|
5330
|
-
const COMMAND_CODE_CLI_VERSION = "1.79.
|
|
5331
|
+
const COMMAND_CODE_CLI_VERSION = "1.79.2";
|
|
5331
5332
|
const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
5332
5333
|
/**
|
|
5333
5334
|
* The output budget this bundle asks for, and the ceiling it will never exceed.
|