@mars-sea/dsh-commandcode-provider 0.13.2 → 0.13.3
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 +10 -0
- package/lib/client.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +44 -24
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ 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.13.3] - 2026-10-15
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- 同步 Command Code CLI `1.82.1` → `1.82.2`:请求版本标识(`x-command-code-version`)随之上调。`1.82.1` 与 `1.82.2` **均无官方日志条目**,结论来自产物级静态比对——两版 `dist/cli.mjs` 的 API 路径(144 条)、`x-` 请求头(14 条)与主机(32 个)集合差为空,Provider API 的 wire 协议不变。
|
|
12
|
+
- 模型目录换位:`inclusionai/ling-3.1-flash:free` 退役,付费的 `inclusionai/ling-3.1-flash` 接管同一 Go 档位(262 144 上下文、仅文本输入、三档推理强度 `low`/`medium`/`high`,定价 $0.3/$0.9/$0.06)。退役判据三条同时成立:CLI 把该行标为 `hidden`、剥掉它的 `reasoningEfforts`,该 id 又从公开目录(`/provider/v1/models`,90 条)与定价页双双下架——与 `meituan/LongCat-2.0:free`、`stealth/space-bunny-alpha` 的退役路径一致(单看 `hidden` 不足以判定:CLI 中大量活跃免费模型同样带该标记)。推理档位、最低套餐与免费促销三张表同步移除该免费项,选择器不再给出一个已下线的选项。
|
|
13
|
+
- 价格表与输出上限表重新生成:新增 `ling-3.1-flash` 价格行(额度 Go $6/GOAT $20/Pro $30)与 `qwen-3.8-max-prime` 行($4/$12/$0.5/$5);`glm-5.3-flash` 的每月额度由 $60/$70 上调至 **$100/$100**(官网页面变化,与 CLI 版本无关)。输出上限表删除已退役的 `:free` 行,新增的付费版因 models.dev 三家取值冲突交由运行时学习(写入数 77 → 76、未列 12 → 13)。`ling-3.1-flash` 的定价记录另带一个**尚未生效**的 `planBudgetSteps`:`2026-10-15T12:30:00Z` 起 GOAT/Pro 由 $20/$30 上调至 $100/$110,生成器按页面当前值写入,故该时刻之后重跑 `--check` 会报额度漂移。
|
|
14
|
+
- 未录入项:`Qwen/Qwen3.8-Max-Prime`(最低 GOAT 档、100 万上下文、支持图像输入、$4/$12/$0.5/$5)已在官方定价页与公开目录可用,但 **CLI 1.82.2 未注册该模型**,按「能力标记必须与实际 wire 行为一致」不录入任何能力快照,只在参考文档记录待观察;`src/model-prices.ts` 作为定价页的逐行镜像仍收录其价格(漏行会让 `--check` 永久报漂移),具名请求可计价,但选择器不展示、也不做图像能力宣告。
|
|
15
|
+
- 零数据保留(ZDR)例外集 22 条、峰值计价与订阅映射逐项核对**无变化**;测试断言与版本标注同步,构建产物重建。
|
|
16
|
+
|
|
7
17
|
## [0.13.2] - 2026-10-15
|
|
8
18
|
|
|
9
19
|
### Added
|
package/lib/client.js
CHANGED
|
@@ -3291,7 +3291,7 @@ window.__ModuleLoader__.load({
|
|
|
3291
3291
|
}
|
|
3292
3292
|
//#endregion
|
|
3293
3293
|
//#region package.json
|
|
3294
|
-
var version = "0.13.
|
|
3294
|
+
var version = "0.13.3";
|
|
3295
3295
|
var repository = {
|
|
3296
3296
|
"type": "git",
|
|
3297
3297
|
"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.82.
|
|
64
|
+
declare const COMMAND_CODE_CLI_VERSION = "1.82.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.
|
package/lib/index.js
CHANGED
|
@@ -431,7 +431,7 @@ const KNOWN_EFFORTS = {
|
|
|
431
431
|
"xhigh",
|
|
432
432
|
"max"
|
|
433
433
|
],
|
|
434
|
-
"inclusionai/ling-3.1-flash
|
|
434
|
+
"inclusionai/ling-3.1-flash": [
|
|
435
435
|
"low",
|
|
436
436
|
"medium",
|
|
437
437
|
"high"
|
|
@@ -711,22 +711,20 @@ function requiresMessagesEndpoint(modelId) {
|
|
|
711
711
|
* **Generated — do not hand-edit.** `scripts/sync-output-limits.mjs` rewrites
|
|
712
712
|
* this literal from models.dev; run it after a catalog sync, and use its
|
|
713
713
|
* `--check` in CI. Command Code resells these models through their VENDOR's own
|
|
714
|
-
* API, so the vendor's published ceiling is the value recorded:
|
|
715
|
-
* catalog ids as of 2026-10-
|
|
714
|
+
* API, so the vendor's published ceiling is the value recorded: 76 of the 89
|
|
715
|
+
* catalog ids as of 2026-10-15. Each row carries a comment naming the entry it
|
|
716
716
|
* came from.
|
|
717
717
|
*
|
|
718
|
-
*
|
|
719
|
-
* script's `MANUAL_CEILINGS
|
|
720
|
-
*
|
|
721
|
-
*
|
|
722
|
-
*
|
|
723
|
-
*
|
|
724
|
-
*
|
|
725
|
-
*
|
|
726
|
-
*
|
|
727
|
-
*
|
|
728
|
-
*
|
|
729
|
-
* The 12 unlisted models are ones no vendor publishes and the aggregators
|
|
718
|
+
* One of those 76 rests on more than a vendor lookup, hand-recorded in the
|
|
719
|
+
* script's `MANUAL_CEILINGS`: `inclusionai/ling-3.0-flash-sante:free` (32768)
|
|
720
|
+
* lost both its vendor row and its unanimous third-party vote (vercel files
|
|
721
|
+
* 32000), and is pinned so a regeneration cannot drop a live model's ceiling
|
|
722
|
+
* back to the default. (`gpt-6.1-sol` (128000) needs no pin — OpenAI's own row
|
|
723
|
+
* carries it and every other provider carrying the id agrees.) All are still
|
|
724
|
+
* correctable — a stricter gateway costs one refused request, and
|
|
725
|
+
* `streamRequest()` remembers what the endpoint said.
|
|
726
|
+
*
|
|
727
|
+
* The 13 unlisted models are ones no vendor publishes and the aggregators
|
|
730
728
|
* disagree about. They are NOT a gap: a refusal states the ceiling in full, and
|
|
731
729
|
* `streamRequest()` reads it off, retries once and remembers it for the model
|
|
732
730
|
* (issue #71). A vendor figure the gateway turns out to be stricter than costs
|
|
@@ -772,7 +770,6 @@ const MODEL_OUTPUT_TOKEN_LIMITS = /* @__PURE__ */ new Map([
|
|
|
772
770
|
["gpt-6-sol", 128e3],
|
|
773
771
|
["gpt-6.1-sol", 128e3],
|
|
774
772
|
["inclusionai/ling-3.0-flash-sante:free", 32768],
|
|
775
|
-
["inclusionai/ling-3.1-flash:free", 32768],
|
|
776
773
|
["meituan/LongCat-2.0", 131072],
|
|
777
774
|
["meta/muse-spark-1.1", 131072],
|
|
778
775
|
["meta/muse-spark-1.2", 131072],
|
|
@@ -866,7 +863,7 @@ const KNOWN_PLANS = {
|
|
|
866
863
|
"gpt-6-luna": "go",
|
|
867
864
|
"meituan/LongCat-2.0": "go",
|
|
868
865
|
"inclusionai/ling-3.0-flash-sante:free": "go",
|
|
869
|
-
"inclusionai/ling-3.1-flash
|
|
866
|
+
"inclusionai/ling-3.1-flash": "go",
|
|
870
867
|
"meta/muse-spark-1.2-contributor": "go",
|
|
871
868
|
"meta/muse-spark-1.3-contributor": "go",
|
|
872
869
|
"mistral/mistral-large-4": "go",
|
|
@@ -1076,10 +1073,6 @@ const KNOWN_DEALS = {
|
|
|
1076
1073
|
label: "FREE",
|
|
1077
1074
|
free: true
|
|
1078
1075
|
},
|
|
1079
|
-
"inclusionai/ling-3.1-flash:free": {
|
|
1080
|
-
label: "FREE",
|
|
1081
|
-
free: true
|
|
1082
|
-
},
|
|
1083
1076
|
"stealth/glyph-cluster:free": {
|
|
1084
1077
|
label: "FREE",
|
|
1085
1078
|
free: true
|
|
@@ -1721,8 +1714,8 @@ const MODEL_PRICE_ROWS = [
|
|
|
1721
1714
|
],
|
|
1722
1715
|
allowance: {
|
|
1723
1716
|
go: 10,
|
|
1724
|
-
goat:
|
|
1725
|
-
pro:
|
|
1717
|
+
goat: 100,
|
|
1718
|
+
pro: 100
|
|
1726
1719
|
}
|
|
1727
1720
|
},
|
|
1728
1721
|
{
|
|
@@ -2144,6 +2137,19 @@ const MODEL_PRICE_ROWS = [
|
|
|
2144
2137
|
pro: 30
|
|
2145
2138
|
}
|
|
2146
2139
|
},
|
|
2140
|
+
{
|
|
2141
|
+
id: "ling-3.1-flash",
|
|
2142
|
+
rates: [
|
|
2143
|
+
.3,
|
|
2144
|
+
.9,
|
|
2145
|
+
.06
|
|
2146
|
+
],
|
|
2147
|
+
allowance: {
|
|
2148
|
+
go: 6,
|
|
2149
|
+
goat: 20,
|
|
2150
|
+
pro: 30
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2147
2153
|
{
|
|
2148
2154
|
id: "longcat-2.0",
|
|
2149
2155
|
rates: [
|
|
@@ -2554,6 +2560,20 @@ const MODEL_PRICE_ROWS = [
|
|
|
2554
2560
|
pro: 30
|
|
2555
2561
|
}
|
|
2556
2562
|
},
|
|
2563
|
+
{
|
|
2564
|
+
id: "qwen-3.8-max-prime",
|
|
2565
|
+
rates: [
|
|
2566
|
+
4,
|
|
2567
|
+
12,
|
|
2568
|
+
.5,
|
|
2569
|
+
5
|
|
2570
|
+
],
|
|
2571
|
+
allowance: {
|
|
2572
|
+
go: 6,
|
|
2573
|
+
goat: 20,
|
|
2574
|
+
pro: 30
|
|
2575
|
+
}
|
|
2576
|
+
},
|
|
2557
2577
|
{
|
|
2558
2578
|
id: "qwen-3.8-omni-flash",
|
|
2559
2579
|
rates: [
|
|
@@ -5993,7 +6013,7 @@ var GatewayFacts = class {
|
|
|
5993
6013
|
* per-request options thunk and an API-key resolver from the plugin entry
|
|
5994
6014
|
* (src/index.ts), so a settings change reaches the very next request.
|
|
5995
6015
|
*/
|
|
5996
|
-
const COMMAND_CODE_CLI_VERSION = "1.82.
|
|
6016
|
+
const COMMAND_CODE_CLI_VERSION = "1.82.2";
|
|
5997
6017
|
const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
5998
6018
|
/**
|
|
5999
6019
|
* The output budget this bundle asks for, and the ceiling it will never exceed.
|