@mars-sea/dsh-commandcode-provider 0.11.7 → 0.11.8
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 +6 -0
- package/lib/client.js +1 -1
- package/lib/index.d.ts +6 -2
- package/lib/index.js +84 -3
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.11.8] - 2026-09-22
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **Synced with the official command-code@1.62.0 CLI** (2026-09-22 check of the 2026-09-21 npm `latest`; five releases since the last sync — 1.58.1, then the 1.59.0/1.60.0/1.61.0/1.62.0 train whose changelog entries are "Add Grok 4.7", "Add Step 5 Preview", "Grok 4.7 40% off" and "Add MiMo V2.6 Flash / Add MiMo V2.6 Pro and Pro UltraSpeed"). `COMMAND_CODE_CLI_VERSION` is now `1.62.0`. This train is purely additive: the CLI registry grows 78 → 83 with exactly five additions and no removal or edit, so five models gain their picker annotations and prices. `xai/grok-4.7` (500K context, text+image, `low`/`medium`/`high`/`xhigh` efforts, GOAT and above) launches on a 40% off deal running 2026-09-21 → 2026-09-27 that reverts to $2.00 in / $6.00 out when it lapses; its snapshotted rates are the discounted $1.20 in / $3.60 out / $0.30 cache read, doubling to $2.40 / $7.20 / $0.60 past 200K, and the deal carries the page's own expiry stamp so the badge hides itself after that instant. `stepfun/Step-5-Preview` is StepFun's 600B sparse-MoE agentic coding model (1M context, text+image, `low`/`medium`/`high` efforts, Go, $1.00 / $2.70 / $0.05). The MiMo V2.6 family is text+image with a 1,048,576-token context and no reasoning flag in any source: `xiaomi/mimo-v2.6-flash` ($0.14 / $0.28 / $0.0028) and `xiaomi/mimo-v2.6-pro` ($0.435 / $0.87 / $0.0036) on Go, plus `xiaomi/mimo-v2.6-pro-ultraspeed` on GOAT and above ($4.35 / $8.70 / $0.036). In snapshot terms: the effort map gains exactly two keys (46 → 48), the Vision set the five (52 → 57), the plan map three Go and two GOAT entries without moving a tier (46/52/65/72 → 49/57/70/77), the deals five → six, and the vendored price table exactly the five matching rows (71 → 76) with no rate change to any existing row (`node scripts/sync-model-prices.mjs --check` now reports all 76 rows up to date). Everything else is re-verified unchanged against both bundles and the public sources: the subscription plan maps, the peak/off-peak membership and schedule (01:00–04:00 and 06:00–10:00 UTC, Monday–Friday only), the automatic-reasoning set, and the public catalog — which serves 76 models (71 + the five) with its route mix moving 55 → 60 × chat/completions + responses exactly by those additions, the same 8 Claude ids still messages-only and 8 models still chat/completions-only, which agrees with the adapter's `claude-*` routing rule. Static inspection of the two bundles finds no transport drift: the `/alpha/*` endpoint set, the `/alpha/generate` converters (`toWireMessages`/`toWireTools`/`toWireToolOutput`), the stream event vocabulary, the `x-command-code-version` header, the browser-login call site and the web-search field names differ only by minified variable renames, and the documented Provider API endpoint set is unchanged. Two CLI-local changelog items reach nothing this adapter owns: 1.58.1's "Auto-compact past images and keep their result" (the CLI's own compaction behavior, not a wire change) and 1.59.0's YOLO/accept-edits keybinding rework. The two upstream leftovers stay deliberately un-snapshotted, exactly as the previous check recorded them: `gpt-6-astra` is still a CLI/pricing/docs-only model the public catalog does not serve, and the pricing page still embeds an already-expired (`2026-06-22`) `qwen-3.7-max-2x-usage` deal record its own Deals section does not list.
|
|
14
|
+
|
|
9
15
|
## [0.11.7] - 2026-09-20
|
|
10
16
|
|
|
11
17
|
### Fixed
|
package/lib/client.js
CHANGED
|
@@ -2157,7 +2157,7 @@ window.__ModuleLoader__.load({
|
|
|
2157
2157
|
}
|
|
2158
2158
|
//#endregion
|
|
2159
2159
|
//#region package.json
|
|
2160
|
-
var version = "0.11.
|
|
2160
|
+
var version = "0.11.8";
|
|
2161
2161
|
var repository = {
|
|
2162
2162
|
"type": "git",
|
|
2163
2163
|
"url": "git+https://github.com/Mars-Sea/dsh-commandcode-provider.git"
|
package/lib/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Context } from "@deepseek-ai/cordis";
|
|
|
7
7
|
import { AttachmentStore, ImageAttachmentRef } from "@deepseek-ai/dsh-attachment";
|
|
8
8
|
import { CommandDefinition } from "@deepseek-ai/dsh-commands";
|
|
9
9
|
//#region src/adapter.d.ts
|
|
10
|
-
declare const COMMAND_CODE_CLI_VERSION = "1.
|
|
10
|
+
declare const COMMAND_CODE_CLI_VERSION = "1.62.0";
|
|
11
11
|
declare const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
12
12
|
declare const DEFAULT_GENERATE_MAX_TOKENS = 64000;
|
|
13
13
|
declare const DEFAULT_MAX_OUTPUT_TOKENS = 65536;
|
|
@@ -809,7 +809,11 @@ declare const KNOWN_THINKING_MODELS: ReadonlySet<string>;
|
|
|
809
809
|
* free `inclusionai/ling-3.0-flash-sante:free` (Go); command-code@1.53.0
|
|
810
810
|
* added `deepseek/deepseek-v4.1-flash` (Go); command-code@1.56.0 added
|
|
811
811
|
* `Qwen/Qwen3.8-Omni-Flash` (Go); command-code@1.57.0 added
|
|
812
|
-
* `z-ai/glm-5.3-flashx` (Go).
|
|
812
|
+
* `z-ai/glm-5.3-flashx` (Go); command-code@1.59.0 added `xai/grok-4.7` (GOAT)
|
|
813
|
+
* and 1.60.0 added `stepfun/Step-5-Preview` (Go); command-code@1.62.0 added the
|
|
814
|
+
* MiMo V2.6 family — `xiaomi/mimo-v2.6-flash` + `xiaomi/mimo-v2.6-pro` (Go) and
|
|
815
|
+
* `xiaomi/mimo-v2.6-pro-ultraspeed` (GOAT) — so the 1.58.0 -> 1.62.0 window's
|
|
816
|
+
* only tier changes are additions and the superset chain still holds.
|
|
813
817
|
*
|
|
814
818
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
|
815
819
|
* truth for the picker's plan annotation — it answers "which plan do I need to
|
package/lib/index.js
CHANGED
|
@@ -203,6 +203,11 @@ const KNOWN_EFFORTS = {
|
|
|
203
203
|
"high"
|
|
204
204
|
],
|
|
205
205
|
"sakana/fugu-ultra": ["high", "xhigh"],
|
|
206
|
+
"stepfun/Step-5-Preview": [
|
|
207
|
+
"low",
|
|
208
|
+
"medium",
|
|
209
|
+
"high"
|
|
210
|
+
],
|
|
206
211
|
"tencent/hy4-preview": [
|
|
207
212
|
"low",
|
|
208
213
|
"medium",
|
|
@@ -219,6 +224,12 @@ const KNOWN_EFFORTS = {
|
|
|
219
224
|
"high",
|
|
220
225
|
"xhigh"
|
|
221
226
|
],
|
|
227
|
+
"xai/grok-4.7": [
|
|
228
|
+
"low",
|
|
229
|
+
"medium",
|
|
230
|
+
"high",
|
|
231
|
+
"xhigh"
|
|
232
|
+
],
|
|
222
233
|
"z-ai/glm-5.3-flash": [
|
|
223
234
|
"low",
|
|
224
235
|
"high",
|
|
@@ -340,11 +351,16 @@ const KNOWN_IMAGE_MODELS = /* @__PURE__ */ new Set([
|
|
|
340
351
|
"moonshotai/Kimi-K3",
|
|
341
352
|
"sakana/fugu-ultra",
|
|
342
353
|
"stepfun/Step-3.7-Flash",
|
|
354
|
+
"stepfun/Step-5-Preview",
|
|
343
355
|
"thinkingmachines/inkling",
|
|
344
356
|
"thinkingmachines/inkling-small",
|
|
345
357
|
"xai/grok-4.5",
|
|
346
358
|
"xai/grok-4.6",
|
|
359
|
+
"xai/grok-4.7",
|
|
347
360
|
"xiaomi/mimo-v2.5",
|
|
361
|
+
"xiaomi/mimo-v2.6-flash",
|
|
362
|
+
"xiaomi/mimo-v2.6-pro",
|
|
363
|
+
"xiaomi/mimo-v2.6-pro-ultraspeed",
|
|
348
364
|
"z-ai/glm-5.3-flash",
|
|
349
365
|
"z-ai/glm-5.3-flashx"
|
|
350
366
|
]);
|
|
@@ -458,7 +474,11 @@ function requiresMessagesEndpoint(modelId) {
|
|
|
458
474
|
* free `inclusionai/ling-3.0-flash-sante:free` (Go); command-code@1.53.0
|
|
459
475
|
* added `deepseek/deepseek-v4.1-flash` (Go); command-code@1.56.0 added
|
|
460
476
|
* `Qwen/Qwen3.8-Omni-Flash` (Go); command-code@1.57.0 added
|
|
461
|
-
* `z-ai/glm-5.3-flashx` (Go).
|
|
477
|
+
* `z-ai/glm-5.3-flashx` (Go); command-code@1.59.0 added `xai/grok-4.7` (GOAT)
|
|
478
|
+
* and 1.60.0 added `stepfun/Step-5-Preview` (Go); command-code@1.62.0 added the
|
|
479
|
+
* MiMo V2.6 family — `xiaomi/mimo-v2.6-flash` + `xiaomi/mimo-v2.6-pro` (Go) and
|
|
480
|
+
* `xiaomi/mimo-v2.6-pro-ultraspeed` (GOAT) — so the 1.58.0 -> 1.62.0 window's
|
|
481
|
+
* only tier changes are additions and the superset chain still holds.
|
|
462
482
|
*
|
|
463
483
|
* The Provider API exposes no plan metadata, so this snapshot is the source of
|
|
464
484
|
* truth for the picker's plan annotation — it answers "which plan do I need to
|
|
@@ -501,6 +521,7 @@ const KNOWN_PLANS = {
|
|
|
501
521
|
"poolside/laguna-s-2.1-free": "go",
|
|
502
522
|
"stepfun/Step-3.5-Flash": "go",
|
|
503
523
|
"stepfun/Step-3.7-Flash": "go",
|
|
524
|
+
"stepfun/Step-5-Preview": "go",
|
|
504
525
|
"tencent/hy3-paid": "go",
|
|
505
526
|
"tencent/hy4-preview": "go",
|
|
506
527
|
"thinkingmachines/inkling": "go",
|
|
@@ -508,6 +529,8 @@ const KNOWN_PLANS = {
|
|
|
508
529
|
"xai/grok-4.5": "go",
|
|
509
530
|
"xiaomi/mimo-v2.5": "go",
|
|
510
531
|
"xiaomi/mimo-v2.5-pro": "go",
|
|
532
|
+
"xiaomi/mimo-v2.6-flash": "go",
|
|
533
|
+
"xiaomi/mimo-v2.6-pro": "go",
|
|
511
534
|
"z-ai/glm-5.3-flash": "go",
|
|
512
535
|
"z-ai/glm-5.3-flashx": "go",
|
|
513
536
|
"zai-org/GLM-5": "go",
|
|
@@ -521,6 +544,8 @@ const KNOWN_PLANS = {
|
|
|
521
544
|
"meta/muse-spark-1.2": "goat",
|
|
522
545
|
"meta/muse-spark-1.3": "goat",
|
|
523
546
|
"xai/grok-4.6": "goat",
|
|
547
|
+
"xai/grok-4.7": "goat",
|
|
548
|
+
"xiaomi/mimo-v2.6-pro-ultraspeed": "goat",
|
|
524
549
|
"claude-haiku-4-5-20251001": "pro",
|
|
525
550
|
"claude-sonnet-4-6": "pro",
|
|
526
551
|
"claude-sonnet-5": "pro",
|
|
@@ -691,6 +716,10 @@ const KNOWN_DEALS = {
|
|
|
691
716
|
"MiniMaxAI/MiniMax-M3": { label: "50% off" },
|
|
692
717
|
"xiaomi/mimo-v2.5-pro": { label: "99% off" },
|
|
693
718
|
"xiaomi/mimo-v2.5": { label: "98% off" },
|
|
719
|
+
"xai/grok-4.7": {
|
|
720
|
+
label: "40% off",
|
|
721
|
+
expiresAt: "2026-09-27T23:59:59.999Z"
|
|
722
|
+
},
|
|
694
723
|
"poolside/laguna-s-2.1-free": {
|
|
695
724
|
label: "FREE",
|
|
696
725
|
free: true
|
|
@@ -1273,6 +1302,26 @@ const MODEL_PRICE_ROWS = [
|
|
|
1273
1302
|
1
|
|
1274
1303
|
] }]
|
|
1275
1304
|
},
|
|
1305
|
+
{
|
|
1306
|
+
id: "grok-4.7",
|
|
1307
|
+
rates: [
|
|
1308
|
+
1.2,
|
|
1309
|
+
3.6,
|
|
1310
|
+
.3
|
|
1311
|
+
],
|
|
1312
|
+
contextTiers: [{
|
|
1313
|
+
"maxContext": 2e5,
|
|
1314
|
+
"rates": [
|
|
1315
|
+
1.2,
|
|
1316
|
+
3.6,
|
|
1317
|
+
.3
|
|
1318
|
+
]
|
|
1319
|
+
}, { "rates": [
|
|
1320
|
+
2.4,
|
|
1321
|
+
7.2,
|
|
1322
|
+
.6
|
|
1323
|
+
] }]
|
|
1324
|
+
},
|
|
1276
1325
|
{
|
|
1277
1326
|
id: "inkling",
|
|
1278
1327
|
rates: [
|
|
@@ -1353,6 +1402,30 @@ const MODEL_PRICE_ROWS = [
|
|
|
1353
1402
|
.0036
|
|
1354
1403
|
]
|
|
1355
1404
|
},
|
|
1405
|
+
{
|
|
1406
|
+
id: "mimo-v2.6-flash",
|
|
1407
|
+
rates: [
|
|
1408
|
+
.14,
|
|
1409
|
+
.28,
|
|
1410
|
+
.0028
|
|
1411
|
+
]
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
id: "mimo-v2.6-pro",
|
|
1415
|
+
rates: [
|
|
1416
|
+
.435,
|
|
1417
|
+
.87,
|
|
1418
|
+
.0036
|
|
1419
|
+
]
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
id: "mimo-v2.6-pro-ultraspeed",
|
|
1423
|
+
rates: [
|
|
1424
|
+
4.35,
|
|
1425
|
+
8.7,
|
|
1426
|
+
.036
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1356
1429
|
{
|
|
1357
1430
|
id: "minimax-m2.5",
|
|
1358
1431
|
rates: [
|
|
@@ -1578,6 +1651,14 @@ const MODEL_PRICE_ROWS = [
|
|
|
1578
1651
|
.04
|
|
1579
1652
|
]
|
|
1580
1653
|
},
|
|
1654
|
+
{
|
|
1655
|
+
id: "step-5-preview",
|
|
1656
|
+
rates: [
|
|
1657
|
+
1,
|
|
1658
|
+
2.7,
|
|
1659
|
+
.05
|
|
1660
|
+
]
|
|
1661
|
+
},
|
|
1581
1662
|
{
|
|
1582
1663
|
id: "tencent/hy3-paid",
|
|
1583
1664
|
rates: [
|
|
@@ -2580,7 +2661,7 @@ function scaleBy(size, factor) {
|
|
|
2580
2661
|
* and API key or subscription, and Command Code's terms apply.
|
|
2581
2662
|
*
|
|
2582
2663
|
* Wire protocol (reverse-engineered by the pi plugin, command-code@1.28.4;
|
|
2583
|
-
* re-verified against command-code@1.
|
|
2664
|
+
* re-verified against command-code@1.62.0 — endpoints, request shape, and
|
|
2584
2665
|
* stream events unchanged):
|
|
2585
2666
|
* POST {apiBase}/alpha/generate
|
|
2586
2667
|
* body: { config, memory, taste, skills, params: { model, messages, tools,
|
|
@@ -2593,7 +2674,7 @@ function scaleBy(size, factor) {
|
|
|
2593
2674
|
* per-request options thunk and an API-key resolver from the plugin entry
|
|
2594
2675
|
* (src/index.ts), so a settings change reaches the very next request.
|
|
2595
2676
|
*/
|
|
2596
|
-
const COMMAND_CODE_CLI_VERSION = "1.
|
|
2677
|
+
const COMMAND_CODE_CLI_VERSION = "1.62.0";
|
|
2597
2678
|
const DEFAULT_API_BASE = "https://api.commandcode.ai";
|
|
2598
2679
|
const DEFAULT_GENERATE_MAX_TOKENS = 64e3;
|
|
2599
2680
|
const DEFAULT_MAX_OUTPUT_TOKENS = 65536;
|