@mars-sea/dsh-commandcode-provider 0.9.1 → 0.10.0-alpha.2

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,7 +4,37 @@ 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
- ## [Unreleased]
7
+ ## [0.10.0-alpha.2] - 2026-08-31
8
+
9
+ > **Alpha channel for dsh 0.1.2-alpha.2.** This release requires **dsh 0.1.2-alpha.2 or later** and is published under the `alpha` npm tag, so `@latest` stays on 0.9.1 for older Harness releases. Install it explicitly with `@alpha`.
10
+
11
+ ### Added
12
+
13
+ - **Route models to accounts (`modelAccountRules`).** A new settings card (and matching `Config.modelAccountRules` YAML) routes catalog models — picked via **multi-select from the live model catalog** (fetched Host-side through a new `commandcode/models` Remote) — to an account slot. Requests whose model is in a rule serve from that account while it is usable, falling back to the normal rotation when the routed account is exhausted or invalid. First matching rule wins. Pairs naturally with the existing multi-account rotation — e.g. keep cheap Go-tier models on the Go account and route GOAT-only models to the GOAT account.
14
+
15
+ ### Changed
16
+
17
+ - **The Models page now configures Command Code entirely through the official 编辑 button.** The plugin card no longer adds its own header, badges, and edit toggle under the row: with the editor closed the row looks like any other provider, and opening 编辑 replaces the old "其余字段在 settings.yaml 中" placeholder (which offered nothing but a disabled apply button) with the real controls — key/route status, the API-key field, official sign-in, and discard/save.
18
+ - **Synced with the official command-code@1.38.2 CLI** (2026-08-28: 1.38.0 added "Let custom agents pin a reasoning effort next to their model" + "Add reasoning effort support for Tencent Hy4 Preview"; 1.38.1/1.38.2 are same-day hotfixes). `COMMAND_CODE_CLI_VERSION` is now `1.38.2`.
19
+ - **Tencent Hy4 Preview now offers selectable reasoning efforts (`low`/`medium`/`high`).** The model gained official effort levels in command-code@1.38.0, so the picker can now offer a reasoning-effort selector for it; it is no longer listed as an auto-thinking model.
20
+ - **Gemini 3.7 Flash's 50% off deal was retired** from the official pricing page's `#deals` section; the snapshot no longer advertises it, so the picker shows the model at full price.
21
+ - **Closed two catalog-coverage gaps**: the hidden free variant `tencent/Hy3` and the deprecated `inclusionai/ling-3.0-flash-free` (its free promo ended 2026-08-03) are now in the Go tier snapshot. Plan tiers read 42/46/59/64.
22
+
23
+ ## [0.10.0-alpha.1] - 2026-09-01
24
+
25
+ > **Alpha channel for dsh 0.1.2-alpha.2.** This release requires **dsh 0.1.2-alpha.2 or later** and is published under the `alpha` npm tag, so `@latest` stays on 0.9.1 for older Harness releases. Install it explicitly with `@alpha`.
26
+
27
+ ### Changed
28
+
29
+ - **Raised the minimum supported DeepSeek Harness version to 0.1.2-alpha.2.** Every Harness peer and development package now starts at the alpha.2 line; earlier RC/alpha builds use incompatible Host and browser APIs and are no longer advertised as supported.
30
+ - **Adapted the provider to the 0.1.2-alpha.2 Host and browser contracts.** Tool-call IDs use `ToolCallId`, settings register through the optional `SettingsProvider` service, credential operations use Typert Remotes, and the browser client consumes the current settings/models surfaces without the removed `dsh-client-runtime` package.
31
+
32
+ ### Fixed
33
+
34
+ - **Restored fresh plugin-marketplace installs under pnpm 10.** The package declares `@deepseek-ai/dsh-invariants` as an explicit alpha.2 Host peer instead of bundling a second Harness core package; a pnpm 10.34.5 tarball-install smoke test pins the isolated-generation path.
35
+ - **Kept the Web client enabled on alpha.2.** The client no longer requests the removed `dsh-client-runtime/client` module, while its React, slot, store, and primitive dependencies match the official alpha.2 platform module table; settings and Models pages therefore remain available instead of disabling the entire client bundle.
36
+ - **Isolated snapshot subscriber failures.** The client-local `getSnapshot`/`subscribe`/`set` store now continues notifying remaining UI consumers when one subscriber throws.
37
+ - **Prevented the friendly image-session error wrapper from blocking alpha.2 client startup.** Alpha.2 no longer exposes `connection.api.sessions`, so the optional copy rewrite safely skips itself when that legacy façade is absent.
8
38
 
9
39
  ## [0.9.1] - 2026-08-28
10
40
 
package/README.md CHANGED
@@ -18,7 +18,7 @@ Unofficial [DeepSeek Harness](https://deepseek-harness.github.io/deepseek-harnes
18
18
 
19
19
  - **Plugin bundle** — install into any dsh profile with `dsh plugin add`; registers a `commandcode` provider route with a live model catalog.
20
20
  - **Dedicated settings page** — API key, connection options, a live account-usage card, and a "Hide out-of-plan models" toggle.
21
- - **Models-page key card** — on dsh 0.1.2-alpha.1 and later, the **Settings → Models → Command Code** card carries the key status, a paste field, and the sign-in button inline; on older dsh builds it is simply absent and the dedicated page remains the surface.
21
+ - **Models-page key card** — the **Settings → Models → Command Code** card carries the key status, a paste field, and the sign-in button inline.
22
22
  - **In-browser sign-in for keys** — start the official authorization flow (the same one `cmd login` runs) from the settings page; the approved key lands in the local credential service automatically. Manual paste remains the fallback.
23
23
  - **Multi-account rotation** — when one account hits its usage limit, requests switch to the next account automatically. See [Account rotation](#account-rotation).
24
24
  - **Flexible API key setup** — via the settings page, an environment variable, or the official CLI login file.
@@ -31,14 +31,31 @@ See [Screenshots](#screenshots) below for what the UI looks like.
31
31
 
32
32
  ## Install
33
33
 
34
- ```sh
35
- dsh plugin --profile web add @mars-sea/dsh-commandcode-provider@latest
36
- ```
34
+ Pick the release line that matches your DeepSeek Harness version:
35
+
36
+ - **dsh 0.1.2-alpha.2 or later** (the current alpha line) — use the matching alpha plugin release. Install explicitly with the `alpha` tag:
37
+
38
+ ```sh
39
+ dsh plugin --profile web add @mars-sea/dsh-commandcode-provider@alpha
40
+ ```
41
+
42
+ - **Older dsh releases** (the 0.5.0 line and earlier, which use the rc-era Host/browser APIs) — the 0.9.1 plugin keeps working there and stays on the `latest` tag:
43
+
44
+ ```sh
45
+ dsh plugin --profile web add @mars-sea/dsh-commandcode-provider@latest
46
+ ```
47
+
48
+ > The `alpha` tag never moves `latest`: a plain `@latest` install always gets the newest stable release for older Harness versions, and upgrading to the alpha line is always an explicit opt-in.
49
+
50
+ Fresh pnpm 10 marketplace generations are supported directly. Do not add a separate `@deepseek-ai/dsh-invariants` dependency; the plugin declares it as a Host peer so the active dsh profile remains the owner of Harness packages.
37
51
 
38
52
  ## Updating
39
53
 
54
+ Update with the same tag you installed with:
55
+
40
56
  ```sh
41
- dsh plugin --profile web update @mars-sea/dsh-commandcode-provider@latest
57
+ dsh plugin --profile web update @mars-sea/dsh-commandcode-provider@alpha # dsh 0.1.2-alpha.2+
58
+ dsh plugin --profile web update @mars-sea/dsh-commandcode-provider@latest # older dsh (0.5.0 line)
42
59
  ```
43
60
 
44
61
  Then restart the web app.
@@ -76,6 +93,7 @@ With several Command Code subscriptions, the plugin **switches to the next accou
76
93
 
77
94
  - **Setup** — use the **Account rotation** card at Settings → **Command Code** to add accounts with a label and API key; the top-level key always serves first as the `default` account.
78
95
  - **Manual switching** — the **Active account** dropdown pins a preferred account; if it is exhausted, requests fall back to other accounts and return once its window resets.
96
+ - **Route models to accounts** — the **Route models to accounts** card picks catalog models (multi-select, fetched from the live catalog) and routes them to an account. A request whose model is in a rule serves from that account while it is usable; an exhausted or invalid routed account falls back to the normal rotation. Rules match in list order — the first hit wins.
79
97
  - **Status** — the **Account usage** card and `/commandcode` report per-account state.
80
98
 
81
99
  The equivalent YAML (`$DSH_HOME/settings.yaml` or composition config):
@@ -89,6 +107,14 @@ llm-commandcode:
89
107
  apiKeyEnv: COMMANDCODE_API_KEY_2
90
108
  - label: Go #3
91
109
  apiKeyEnv: COMMANDCODE_API_KEY_3
110
+ modelAccountRules: # optional: route models to accounts (first match wins)
111
+ - models: # catalog model ids (multi-select)
112
+ - deepseek/deepseek-v4-pro
113
+ - deepseek/deepseek-v4-flash-vision-exp
114
+ account: COMMANDCODE_API_KEY_2
115
+ - models:
116
+ - tencent/hy4-preview
117
+ account: default
92
118
  ```
93
119
 
94
120
  ## Configure
package/README.zh-CN.md CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  - **插件包**:一条 `dsh plugin add` 命令安装到任意 dsh 配置,注册 `commandcode` provider 路由,带实时模型目录。
20
20
  - **专属设置页**:API key 输入、连接参数、实时「账户用量」卡片和「隐藏套餐外模型」开关。
21
- - **Models 页快捷卡片**:在 dsh 0.1.2-alpha.1 及以上版本,**设置 → Models → Command Code** 卡片内直接显示 key 状态、粘贴输入框和登录按钮;旧版 dsh 上该卡片不出现,一切照旧走专属设置页。
21
+ - **Models 页快捷卡片**:**设置 → Models → Command Code** 卡片内直接显示 key 状态、粘贴输入框和登录按钮。
22
22
  - **浏览器内登录获取 key**:设置页一键发起官方授权(与 `cmd login` 同一流程),完成后密钥自动写入本机凭据服务,无需手动创建或粘贴;不可用时随时退回手动粘贴。
23
23
  - **多账户轮换**:一个账户用量打满后,请求自动切换到下一个账户。详见[多账户轮换](#多账户轮换)。
24
24
  - **key 配置灵活**:设置页填写、环境变量或官方 CLI 登录文件均可。
@@ -29,14 +29,31 @@
29
29
 
30
30
  ## 安装
31
31
 
32
- ```sh
33
- dsh plugin --profile web add @mars-sea/dsh-commandcode-provider@latest
34
- ```
32
+ 按你的 DeepSeek Harness 版本选择对应的发布线:
33
+
34
+ - **dsh 0.1.2-alpha.2 或更高版本**(当前 alpha 线)——使用配套的 alpha 插件版本,显式用 `alpha` tag 安装:
35
+
36
+ ```sh
37
+ dsh plugin --profile web add @mars-sea/dsh-commandcode-provider@alpha
38
+ ```
39
+
40
+ - **更早的 dsh 版本**(0.5.0 线及更早,使用 rc 时代的 Host/浏览器 API)——0.9.1 插件在这些版本上继续可用,并保持在 `latest` tag:
41
+
42
+ ```sh
43
+ dsh plugin --profile web add @mars-sea/dsh-commandcode-provider@latest
44
+ ```
45
+
46
+ > `alpha` tag 永远不会移动 `latest`:普通的 `@latest` 安装始终为旧版 dsh 拿到最新的稳定版,升级到 alpha 线永远是显式选择。
47
+
48
+ 插件可直接在 pnpm 10 的全新插件市场 generation 中安装。不要另行添加 `@deepseek-ai/dsh-invariants` dependency;插件已将其声明为 Host peer,Harness 包仍由当前 dsh profile 统一管理。
35
49
 
36
50
  ## 更新
37
51
 
52
+ 用与安装时相同的 tag 更新:
53
+
38
54
  ```sh
39
- dsh plugin --profile web update @mars-sea/dsh-commandcode-provider@latest
55
+ dsh plugin --profile web update @mars-sea/dsh-commandcode-provider@alpha # dsh 0.1.2-alpha.2 及以上
56
+ dsh plugin --profile web update @mars-sea/dsh-commandcode-provider@latest # 更早的 dsh(0.5.0 线)
40
57
  ```
41
58
 
42
59
  然后重启 Web 应用。
@@ -74,6 +91,7 @@ cmd login # macOS/Linux;Windows 原生版:cmdc login
74
91
 
75
92
  - **配置**:在 **设置 → Command Code** 的「多账户轮换」卡片添加账户并填写备注名与 API key;顶层 key 始终是第一顺位的 `default` 账户。
76
93
  - **手动切换**:卡片上的「当前使用账户」下拉框可指定优先账户;所选账户耗尽时自动回落到其他账户,窗口重置后自动恢复。
94
+ - **按模型切换账户**:在「按模型切换账户」卡片从实时模型目录**多选**模型并固定到某个账户。请求的模型在规则列表中且该账户可用时使用该账户;账户耗尽或密钥失效时自动回落到常规轮换。规则按列表顺序匹配,第一条命中生效。
77
95
  - **状态展示**:「账户用量」卡片与 `/commandcode` 均按账户分别显示状态。
78
96
 
79
97
  等价的 YAML(`$DSH_HOME/settings.yaml` 或组合配置):
@@ -87,6 +105,14 @@ llm-commandcode:
87
105
  apiKeyEnv: COMMANDCODE_API_KEY_2
88
106
  - label: Go #3
89
107
  apiKeyEnv: COMMANDCODE_API_KEY_3
108
+ modelAccountRules: # 可选:按模型路由到账户(第一条命中生效)
109
+ - models: # 目录模型 id(可多选)
110
+ - deepseek/deepseek-v4-pro
111
+ - deepseek/deepseek-v4-flash-vision-exp
112
+ account: COMMANDCODE_API_KEY_2
113
+ - models:
114
+ - tencent/hy4-preview
115
+ account: default
90
116
  ```
91
117
 
92
118
  ## 配置