dsh-thinking-levels 3.4.3 → 4.0.0

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/INSTALL.zh.md CHANGED
@@ -1,176 +1,177 @@
1
- # 安装指南(官方 DSH CLI)
2
-
3
- 本指南只使用官方 `dsh plugin` 命令。该命令会把依赖装进 profile 并同步 `dsh.profile.bundles`。不要用普通 `npm install`、在 profile 里直接 `pnpm add` 或手工编辑 profile 清单代替。
4
-
5
- - [安装指南](./INSTALL.zh.md)
6
- - [English installation guide](./INSTALL.md)
7
- - [日本語インストールガイド](./INSTALL.ja.md)
8
- - [한국어 설치 안내](./INSTALL.ko.md)
9
- - [中文 README](./README.zh.md)
10
- - [English README](./README.md)
11
- - [日本語 README](./README.ja.md)
12
- - [한국어 README](./README.ko.md)
13
- - [版本更新日志](./CHANGELOG.md)
14
- - [日本語 changelog](./CHANGELOG.ja.md)
15
- - [한국어 changelog](./CHANGELOG.ko.md)
16
-
17
- 本指南中的占位符:
18
-
19
- - `<profile>`:要修改的 DSH profile,通常是 `web`;
20
- - `dsh-thinking-levels`:npm 包名与运行时插件 ID;
21
- - `thinking-levels`:Cordis 组合条目与设置页 Slot ID。
22
-
23
- > **版本要求 —— 仅支持 DSH v0.1.7-rc.1 及以上。**
24
- >
25
- > 安装前先确认版本(`dsh --version`)。
26
- >
27
- > | DSH 版本 | 操作 |
28
- > | --- | --- |
29
- > | ≥ 0.1.7-rc.1 | 安装本版本。 |
30
- > | < 0.1.7-rc.1 | 留在旧版插件(3.0.1)。**不要在 DSH 0.1.7+ 上运行旧版插件,请升级插件。** |
31
- >
32
- > 分界点是 `0.1.7-rc.1`:该版本删除了命令式设置注册(`settings.register` / `installSettingsSection`)与客户端 `settingsScope` 服务。本版本面向 0.1.7 声明式设置表面(`.volatile()` schema 字段 + `configForms`)。
33
-
34
- > 旧版 DSH 通过 npm dist-tag 安装对应线:`dsh plugin add dsh-thinking-levels@dsh-0.1.5`(DSH 0.1.5)、`...@dsh-0.1.2`(DSH 0.1.2)、`...@compat`(DSH 0.1.0–0.1.1)。不要安装 ≤ 0.6.0 的旧 0.x 版本——它们没有声明任何 dsh peer 依赖。
35
-
36
- ## 0. 前置检查与 profile 确认
37
-
38
- ```bash
39
- echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
40
- dsh --version
41
- ls "${DSH_HOME:-$HOME/.dsh}/profiles"
42
- ```
43
-
44
- 使用你正在运行的 DSH 进程对应的 profile。`web` 很常见,但以实际 `--profile` 参数为准。
45
-
46
- ## 1. 官方安装
47
-
48
- 安装最新版本:
49
-
50
- ```bash
51
- dsh plugin --profile <profile> add dsh-thinking-levels -w
52
- ```
53
-
54
- (当 profile 是 pnpm workspace root 时必须带 `-w`,`web` 就是。)
55
-
56
- 显式安装当前发布版:
57
-
58
- ```bash
59
- dsh plugin --profile <profile> add dsh-thinking-levels@3.1.0 -w
60
- ```
61
-
62
- 官方 CLI 会自动更新 profile 依赖、锁文件与 `dsh.profile.bundles`。不要手工追加 YAML。
63
-
64
- ### 供应链冷却期
65
-
66
- dsh 运行环境使用 pnpm 11,其 `minimumReleaseAge` 策略可能拦截刚发布的版本,报
67
- `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`。把版本加入 `~/.dsh/profiles/web/pnpm-workspace.yaml` 的
68
- `minimumReleaseAgeExclude`:
69
-
70
- ```yaml
71
- minimumReleaseAgeExclude:
72
- - dsh-thinking-levels@3.1.0
73
- ```
74
-
75
- ## 2. 升级
76
-
77
- 升级到 registry 最新版本:
78
-
79
- ```bash
80
- dsh plugin --profile <profile> update dsh-thinking-levels -w
81
- ```
82
-
83
- 宿主侧改动需重启 DSH;浏览器侧刷新 Web 页面。
84
-
85
- ## 3. 本地路径 / link: 注册(备选)
86
-
87
- 开发或离线安装时,可以从本地检出注册插件:
88
-
89
- ```bash
90
- # ~/.dsh/profiles/web/package.json dependencies 增加:
91
- # "dsh-thinking-levels": "link:<dsh-thinking-levels 的绝对路径>"
92
- # ~/.dsh/profiles/web/cordis.patch.yml:
93
- # - insert:
94
- # - id: thinking-levels
95
- # name: dsh-thinking-levels
96
- cd ~/.dsh/profiles/web && pnpm install && dsh web
97
- ```
98
-
99
- 或用官方 CLI 加本地路径(无需网络):
100
-
101
- ```bash
102
- dsh plugin --profile <profile> add /dsh-thinking-levels 的绝对路径/ -w
103
- ```
104
-
105
- ## 4. 验证安装
106
-
107
- 检查依赖与安装版本:
108
-
109
- ```bash
110
- grep -n "dsh-thinking-levels" \
111
- "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
112
- node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
113
- ```
114
-
115
- 本版本的版本号必须是 `3.1.0`。
116
-
117
- 检查官方组合配置:
118
-
119
- ```bash
120
- dsh --profile <profile> --dump-default-config
121
- ```
122
-
123
- 应包含:
124
-
125
- ```yaml
126
- - id: thinking-levels
127
- name: dsh-thinking-levels
128
- ```
129
-
130
- ## 5. 验证设置表单
131
-
132
- 重启 DSH 后刷新 Web 页面。打开「设置 → 插件」,找到 **dsh-thinking-levels** 条目——自 DSH 0.1.7 起,表单由宿主按插件声明的 `.volatile()` schema 字段自动生成(不再有自定义客户端卡片)。
133
-
134
- 1. 表单包含启用开关、档位选择器(8 个标准档位加 `auto`)与调度开关(`allowDowngrade` / `allowUpgrade`)。
135
- 2. 提交的改动对下一次模型请求生效,无需重启(实时 volatile 配置)。
136
- 3. 逐模型能力编辑器(网关线上值、llm-pi-ai)随被废除的卡片一并移除——请通过官方「模型」设置面编辑 llm-pi-ai 模型能力。
137
- 4. 搜索框可筛选模型;官方/通用预设一键应用到全部思考模型。
138
-
139
- ## 日语与韩语支持状态
140
-
141
- 插件自带 `ja` 与 `ko` 字典,但当前官方 DSH 只通过 `LocaleRuntime` 暴露 `zh` 和 `en`。在原版 DSH 上选择日语或韩语会报 `locale "<id>" is not registered`。
142
-
143
- 官方支持落地前要使用它们,请维护 DSH fork 并更新:
144
-
145
- - `packages/client/locale/src/locale-settings.ts`:把 `ja` 与 `ko` 加入 `LOCALE_IDS`(Host 偏好 schema 由该列表派生)。
146
- - `packages/client/locale/src/client/index.ts`:在 `LOCALES` 中加入 `{ id: 'ja', label: '日本語' }` 与 `{ id: 'ko', label: '한국어' }`。
147
- - 补齐对应的核心字典与测试,然后重新构建并运行 fork 版本。
148
-
149
- 仅修改插件无法扩展 DSH 的全局 locale 列表。请使用 fork 文档中的构建与官方 profile 命令;不要手工编辑 profile 清单。
150
-
151
- ## 6. 排查
152
-
153
- | 症状 | 处理 |
154
- | --- | --- |
155
- | 找不到 `dsh` 命令 | 安装或启用官方 DSH CLI。不要用普通 npm/pnpm 命令模拟 profile 安装。 |
156
- | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | 把版本加入 profile 的 `pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`。 |
157
- | 插件显示「已停用/未挂载」且无错误 | 检查 profile 组合;宿主不得值依赖 `@deepseek-ai/dsh-settings`(本插件没有)。 |
158
- | client 入口不在 `__DSH_BOOT__` | 确认 `exports["./client"]` 存在且 host fiber 已建立。 |
159
- | 模型选择器没有 `Auto` | 确认 adapter `resolveModel` 包装已生效(`llm/adapters-updated` 时重新包装)。 |
160
- | 设置表单写入失败 | 值被插件 schema 拒绝;请对齐声明的 `.volatile()` 字段类型。 |
161
- | 子 agent 报 `UNSUPPORTED_REASONING_EFFORT` | 目标模型未声明该档位;改用支持的档位或恢复提供方默认。 |
162
- | 浏览器显示旧 bundle | 升级后硬刷新(Ctrl+Shift+R)。 |
163
-
164
- ## 7. 卸载
165
-
166
- 使用官方命令:
167
-
168
- ```bash
169
- dsh plugin --profile <profile> remove dsh-thinking-levels -w
170
- ```
171
-
172
- 确认组合配置不再包含该 bundle:
173
-
174
- ```bash
175
- dsh --profile <profile> --dump-default-config
176
- ```
1
+ # 安装指南(官方 DSH CLI)
2
+
3
+ 本指南只使用官方 `dsh plugin` 命令。该命令会把依赖装进 profile 并同步 `dsh.profile.bundles`。不要用普通 `npm install`、在 profile 里直接 `pnpm add` 或手工编辑 profile 清单代替。
4
+
5
+ - [安装指南](./INSTALL.zh.md)
6
+ - [English installation guide](./INSTALL.md)
7
+ - [日本語インストールガイド](./INSTALL.ja.md)
8
+ - [한국어 설치 안내](./INSTALL.ko.md)
9
+ - [中文 README](./README.zh.md)
10
+ - [English README](./README.md)
11
+ - [日本語 README](./README.ja.md)
12
+ - [한국어 README](./README.ko.md)
13
+ - [版本更新日志](./CHANGELOG.md)
14
+ - [日本語 changelog](./CHANGELOG.ja.md)
15
+ - [한국어 changelog](./CHANGELOG.ko.md)
16
+
17
+ 本指南中的占位符:
18
+
19
+ - `<profile>`:要修改的 DSH profile,通常是 `web`;
20
+ - `dsh-thinking-levels`:npm 包名与运行时插件 ID;
21
+ - `thinking-levels`:Cordis 组合条目与设置页 Slot ID。
22
+
23
+ > **版本要求 —— 仅支持 DSH v0.2.0-rc.1 及以上。**
24
+ >
25
+ > 安装前先确认版本(`dsh --version`)。
26
+ >
27
+ > | DSH 版本 | 操作 |
28
+ > | --- | --- |
29
+ > | ≥ 0.2.0-rc.1 | 安装本版本(4.0.x)。 |
30
+ > | ≥ 0.1.7-rc.1 至 < 0.2.0 | 安装 3.x 线:`dsh plugin --profile <profile> add dsh-thinking-levels@dsh-0.1.7 -w`(3.4.3)。 |
31
+ > | < 0.1.7-rc.1 | 留在旧版插件(3.0.2)。**不要在 DSH 0.1.7+ 上运行旧版插件,请升级插件。** |
32
+ >
33
+ > 分界点是 `0.1.7-rc.1`:该版本删除了命令式设置注册(`settings.register` / `installSettingsSection`)与客户端 `settingsScope` 服务。自此之后,3.x 线(0.1.7 宿主)与本版本(0.2.0-rc 宿主)面向同一声明式设置表面(`.volatile()` schema 字段 + `configForms`)。
34
+
35
+ > 旧版 DSH 通过 npm dist-tag 安装对应线:`dsh plugin add dsh-thinking-levels@dsh-0.1.7`(DSH 0.1.7–0.1.x,插件 3.4.3)、`...@dsh-0.1.5`(DSH 0.1.5)、`...@dsh-0.1.2`(DSH 0.1.2)、`...@compat`(DSH 0.1.0–0.1.1)。不要安装 ≤ 0.6.0 的旧 0.x 版本——它们没有声明任何 dsh peer 依赖。
36
+
37
+ ## 0. 前置检查与 profile 确认
38
+
39
+ ```bash
40
+ echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
41
+ dsh --version
42
+ ls "${DSH_HOME:-$HOME/.dsh}/profiles"
43
+ ```
44
+
45
+ 使用你正在运行的 DSH 进程对应的 profile。`web` 很常见,但以实际 `--profile` 参数为准。
46
+
47
+ ## 1. 官方安装
48
+
49
+ 安装最新版本:
50
+
51
+ ```bash
52
+ dsh plugin --profile <profile> add dsh-thinking-levels -w
53
+ ```
54
+
55
+ (当 profile 是 pnpm workspace root 时必须带 `-w`,`web` 就是。)
56
+
57
+ 显式安装当前发布版:
58
+
59
+ ```bash
60
+ dsh plugin --profile <profile> add dsh-thinking-levels@4.0.0 -w
61
+ ```
62
+
63
+ 官方 CLI 会自动更新 profile 依赖、锁文件与 `dsh.profile.bundles`。不要手工追加 YAML。
64
+
65
+ ### 供应链冷却期
66
+
67
+ dsh 运行环境使用 pnpm 11,其 `minimumReleaseAge` 策略可能拦截刚发布的版本,报
68
+ `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`。把版本加入 `~/.dsh/profiles/web/pnpm-workspace.yaml` 的
69
+ `minimumReleaseAgeExclude`:
70
+
71
+ ```yaml
72
+ minimumReleaseAgeExclude:
73
+ - dsh-thinking-levels@4.0.0
74
+ ```
75
+
76
+ ## 2. 升级
77
+
78
+ 升级到 registry 最新版本:
79
+
80
+ ```bash
81
+ dsh plugin --profile <profile> update dsh-thinking-levels -w
82
+ ```
83
+
84
+ 宿主侧改动需重启 DSH;浏览器侧刷新 Web 页面。
85
+
86
+ ## 3. 本地路径 / link: 注册(备选)
87
+
88
+ 开发或离线安装时,可以从本地检出注册插件:
89
+
90
+ ```bash
91
+ # ~/.dsh/profiles/web/package.json dependencies 增加:
92
+ # "dsh-thinking-levels": "link:<dsh-thinking-levels 的绝对路径>"
93
+ # ~/.dsh/profiles/web/cordis.patch.yml:
94
+ # - insert:
95
+ # - id: thinking-levels
96
+ # name: dsh-thinking-levels
97
+ cd ~/.dsh/profiles/web && pnpm install && dsh web
98
+ ```
99
+
100
+ 或用官方 CLI 加本地路径(无需网络):
101
+
102
+ ```bash
103
+ dsh plugin --profile <profile> add /dsh-thinking-levels 的绝对路径/ -w
104
+ ```
105
+
106
+ ## 4. 验证安装
107
+
108
+ 检查依赖与安装版本:
109
+
110
+ ```bash
111
+ grep -n "dsh-thinking-levels" \
112
+ "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
113
+ node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
114
+ ```
115
+
116
+ 本版本的版本号必须是 `4.0.0`。
117
+
118
+ 检查官方组合配置:
119
+
120
+ ```bash
121
+ dsh --profile <profile> --dump-default-config
122
+ ```
123
+
124
+ 应包含:
125
+
126
+ ```yaml
127
+ - id: thinking-levels
128
+ name: dsh-thinking-levels
129
+ ```
130
+
131
+ ## 5. 验证设置表单
132
+
133
+ 重启 DSH 后刷新 Web 页面。打开「设置 → 插件」,找到 **dsh-thinking-levels** 条目——自 DSH 0.1.7 起,表单由宿主按插件声明的 `.volatile()` schema 字段自动生成(不再有自定义客户端卡片)。
134
+
135
+ 1. 表单包含启用开关、档位选择器(8 个标准档位加 `auto`)与调度开关(`allowDowngrade` / `allowUpgrade`)。
136
+ 2. 提交的改动对下一次模型请求生效,无需重启(实时 volatile 配置)。
137
+ 3. 逐模型能力编辑器(网关线上值、llm-pi-ai)随被废除的卡片一并移除——请通过官方「模型」设置面编辑 llm-pi-ai 模型能力。
138
+ 4. 搜索框可筛选模型;官方/通用预设一键应用到全部思考模型。
139
+
140
+ ## 日语与韩语支持状态
141
+
142
+ 插件自带 `ja` 与 `ko` 字典,但当前官方 DSH 只通过 `LocaleRuntime` 暴露 `zh` 和 `en`。在原版 DSH 上选择日语或韩语会报 `locale "<id>" is not registered`。
143
+
144
+ 官方支持落地前要使用它们,请维护 DSH fork 并更新:
145
+
146
+ - `packages/client/locale/src/locale-settings.ts`:把 `ja` 与 `ko` 加入 `LOCALE_IDS`(Host 偏好 schema 由该列表派生)。
147
+ - `packages/client/locale/src/client/index.ts`:在 `LOCALES` 中加入 `{ id: 'ja', label: '日本語' }` 与 `{ id: 'ko', label: '한국어' }`。
148
+ - 补齐对应的核心字典与测试,然后重新构建并运行 fork 版本。
149
+
150
+ 仅修改插件无法扩展 DSH 的全局 locale 列表。请使用 fork 文档中的构建与官方 profile 命令;不要手工编辑 profile 清单。
151
+
152
+ ## 6. 排查
153
+
154
+ | 症状 | 处理 |
155
+ | --- | --- |
156
+ | 找不到 `dsh` 命令 | 安装或启用官方 DSH CLI。不要用普通 npm/pnpm 命令模拟 profile 安装。 |
157
+ | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | 把版本加入 profile 的 `pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`。 |
158
+ | 插件显示「已停用/未挂载」且无错误 | 检查 profile 组合;宿主不得值依赖 `@deepseek-ai/dsh-settings`(本插件没有)。 |
159
+ | client 入口不在 `__DSH_BOOT__` | 确认 `exports["./client"]` 存在且 host fiber 已建立。 |
160
+ | 模型选择器没有 `Auto` | 确认 adapter `resolveModel` 包装已生效(`llm/adapters-updated` 时重新包装)。 |
161
+ | 设置表单写入失败 | 值被插件 schema 拒绝;请对齐声明的 `.volatile()` 字段类型。 |
162
+ | 子 agent 报 `UNSUPPORTED_REASONING_EFFORT` | 目标模型未声明该档位;改用支持的档位或恢复提供方默认。 |
163
+ | 浏览器显示旧 bundle | 升级后硬刷新(Ctrl+Shift+R)。 |
164
+
165
+ ## 7. 卸载
166
+
167
+ 使用官方命令:
168
+
169
+ ```bash
170
+ dsh plugin --profile <profile> remove dsh-thinking-levels -w
171
+ ```
172
+
173
+ 确认组合配置不再包含该 bundle:
174
+
175
+ ```bash
176
+ dsh --profile <profile> --dump-default-config
177
+ ```
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 drscrewdriver
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 drscrewdriver
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.ja.md CHANGED
@@ -18,9 +18,9 @@
18
18
 
19
19
  > **互換性について:** `0.6.0` には日本語(`ja`)と韓国語(`ko`)の辞書と選択項目が含まれていますが、現在の公式 DSH は `LocaleRuntime` 経由で `zh` と `en` のみを提供しています。純正 DSH で `ja` または `ko` を選択すると `locale "<id>" is not registered` で失敗します。公式 DSH が対応 locale ID を追加するまで利用できません。上級ユーザーは DSH フォークを保守し、`packages/client/locale/src/locale-settings.ts` の `LOCALE_IDS` と `packages/client/locale/src/client/index.ts` の `LOCALES` ラベルを更新し、コア辞書とテストを追加して再ビルド・実行してください。このプラグインだけでは DSH のグローバル locale 一覧を拡張できません。
20
20
 
21
- > **バージョン互換:** 本リリース(3.1.1)は **DSH ≥ 0.1.7-rc.1 かつ < 0.1.8** のみに対応。DSH 0.1.7 は命令的な設定登録(`settings.register` / `installSettingsSection`)とクライアントの `settingsScope` サービスおよびプラグイン別カードスロットを削除しました——旧ライン(3.0.x 以前)が依存する表面は存在しません。0.1.2–0.1.6 ホストではプラグイン 3.0.2 を使用してください。3.1.x は 0.1.7 の宣言的表面を対象とします:実行時に変更できる設定フィールドは schemastery スキーマで `.volatile()` 付きとし、設定フォームはホストがスキーマから自動生成(登録呼び出しもクライアント設定カードも不要)、プラグインは `loader/volatile-update` に従ってリクエストごとに最新値を読みます。
21
+ > **バージョン互換:** 本リリース(4.0.0)は **DSH ≥ 0.2.0-rc.1 かつ < 0.2.1** のみに対応。0.1.7-rc.1 の境界以降、DSH は命令的な設定登録(`settings.register` / `installSettingsSection`)とクライアントの `settingsScope` サービスおよびプラグイン別カードスロットを削除し、実行時に変更できる設定フィールドは schemastery スキーマで `.volatile()` 付きとし、設定フォームはホストがスキーマから自動生成(登録呼び出しもクライアント設定カードも不要)、プラグインは `loader/volatile-update` に従ってリクエストごとに最新値を読みます——4.0.x は 0.2.0-rc セグメントの同一宣言的表面を対象とします。0.1.7-rc.1〜<0.2.0 のホストでは 3.x ライン(3.4.3、npm dist-tag `dsh-0.1.7`)を、0.1.2–0.1.6 ホストではプラグイン 3.0.2 を使用してください。
22
22
 
23
- > **バージョン範囲ポリシー:** 各互換ラインはホストを自ラインのセグメントに厳密に固定します——`>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`)。どのラインも開放的な `<0.2.0-0` 上限を宣言しません。互換性レゾルバが未対応の新ホストセグメントにプラグインラインを誤マッチすることはありません。0.4.0–0.6.0 は dsh peer 宣言を一切持たないためインストールしないでください。
23
+ > **バージョン範囲ポリシー:** 各互換ラインはホストを自ラインのセグメントに厳密に固定します。0.1.x ホスト向けのラインは `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`)、0.2.x セグメント向けのラインは `>=0.2.0-rc.1 <0.2.1-0`(4.0.x:`>=0.2.0-rc.1 <0.2.1-0`)に従います。どのラインも開放的な上限を宣言しません。互換性レゾルバが未対応の新ホストセグメントにプラグインラインを誤マッチすることはありません。0.4.0–0.6.0 は dsh peer 宣言を一切持たないためインストールしないでください。
24
24
 
25
25
  マルチステップのツールチェーンでは、モデルは**ツール呼び出しのたびに**再思考します——その思考がウォールクロック時間の大半を占めます(50 ステップのエージェントタスクはツール間に数分の推論を費やし得ます)。`dsh-thinking-levels` は、dsh が毎ステップ再解決する `agent/request` waterfall(`prepend` で最外層に登録し、セッションのモデル選択アセンブリに上書きされないようにする)に接続し、次のモデルリクエストに思考レベルを注入します。
26
26
 
package/README.ko.md CHANGED
@@ -18,9 +18,9 @@
18
18
 
19
19
  > **호환성 참고:** `0.6.0`에는 일본어(`ja`)와 한국어(`ko`) 사전 및 선택 항목이 포함되어 있지만, 현재 공식 DSH는 `LocaleRuntime`을 통해 `zh`와 `en`만 제공합니다. 순정 DSH에서 `ja` 또는 `ko`를 선택하면 `locale "<id>" is not registered` 오류가 발생합니다. 공식 DSH가 해당 locale ID를 추가할 때까지 사용할 수 없습니다. 고급 사용자는 DSH 포크를 유지하면서 `packages/client/locale/src/locale-settings.ts`의 `LOCALE_IDS`와 `packages/client/locale/src/client/index.ts`의 `LOCALES` 라벨을 업데이트하고 핵심 사전과 테스트를 추가한 뒤 다시 빌드하여 실행할 수 있습니다. 이 플러그인만으로는 DSH의 전역 locale 목록을 확장할 수 없습니다.
20
20
 
21
- > **버전 호환:** 본 릴리스(3.1.1)는 **DSH ≥ 0.1.7-rc.1이며 < 0.1.8**만 지원. DSH 0.1.7은 명령형 설정 등록(`settings.register` / `installSettingsSection`)과 클라이언트 `settingsScope` 서비스 및 플러그인별 카드 슬롯을 제거했습니다——구 라인(3.0.x 이하)이 의존하던 표면은 더 이상 존재하지 않습니다. 0.1.2–0.1.6 호스트에서는 플러그인 3.0.2을 사용하세요. 3.1.x은 0.1.7 선언적 표면을 대상으로 합니다: 런타임 조정 가능한 설정 필드는 schemastery 스키마에 `.volatile()`로 표시되고, 설정 폼은 호스트가 스키마에서 자동 생성(등록 호출도 클라이언트 설정 카드도 없음)하며, 플러그인은 `loader/volatile-update`에 따라 요청마다 최신 값을 읽습니다.
21
+ > **버전 호환:** 본 릴리스(4.0.0)는 **DSH ≥ 0.2.0-rc.1이며 < 0.2.1**만 지원. 0.1.7-rc.1 경계 이후 DSH는 명령형 설정 등록(`settings.register` / `installSettingsSection`)과 클라이언트 `settingsScope` 서비스 및 플러그인별 카드 슬롯을 제거했고, 런타임 조정 가능한 설정 필드는 schemastery 스키마에 `.volatile()`로 표시되며, 설정 폼은 호스트가 스키마에서 자동 생성(등록 호출도 클라이언트 설정 카드도 없음)하고, 플러그인은 `loader/volatile-update`에 따라 요청마다 최신 값을 읽습니다——4.0.x은 0.2.0-rc 세그먼트의 동일한 선언적 표면을 대상으로 합니다. 0.1.7-rc.1~<0.2.0 호스트에서는 3.x 라인(3.4.3, npm dist-tag `dsh-0.1.7`)을, 0.1.2–0.1.6 호스트에서는 플러그인 3.0.2을 사용하세요.
22
22
 
23
- > **버전 범위 정책:** 각 호환 라인은 호스트를 자기 라인의 세그먼트에 엄격히 고정합니다 — `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x: `>=0.1.7-rc.1 <0.1.8-0`; 3.0.x: `>=0.1.5-alpha.1 <0.1.6-0`; 2.0.x: `>=0.1.2-alpha.1 <0.1.3-0`; 1.0.0-beta: `>=0.1.0-rc.8 <0.1.2-alpha.1`). 어떤 라인도 열린 `<0.2.0-0` 상한을 선언하지 않으므로, 호환성 리졸버가 플러그인 라인을 지원하지 않는 더 새 호스트 세그먼트에 잘못 매칭할 일이 없습니다. 0.4.0–0.6.0은 dsh peer 선언이 전혀 없으므로 설치하지 마세요.
23
+ > **버전 범위 정책:** 각 호환 라인은 호스트를 자기 라인의 세그먼트에 엄격히 고정합니다. 0.1.x 호스트 대상 라인은 `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x: `>=0.1.7-rc.1 <0.1.8-0`; 3.0.x: `>=0.1.5-alpha.1 <0.1.6-0`; 2.0.x: `>=0.1.2-alpha.1 <0.1.3-0`; 1.0.0-beta: `>=0.1.0-rc.8 <0.1.2-alpha.1`)을, 0.2.x 세그먼트 대상 라인은 `>=0.2.0-rc.1 <0.2.1-0`(4.0.x: `>=0.2.0-rc.1 <0.2.1-0`)을 따릅니다. 어떤 라인도 열린 상한을 선언하지 않으므로, 호환성 리졸버가 플러그인 라인을 지원하지 않는 더 새 호스트 세그먼트에 잘못 매칭할 일이 없습니다. 0.4.0–0.6.0은 dsh peer 선언이 전혀 없으므로 설치하지 마세요.
24
24
 
25
25
  멀티스텝 도구 체인에서 모델은 **모든 도구 호출 전에** 다시 생각합니다——그 사고가 벽시계 시간의 대부분을 차지합니다(50스텝 에이전트 작업은 도구 사이에 수 분의 추론을 쓸 수 있습니다). `dsh-thinking-levels`는 dsh가 매 스텝 다시 해석하는 `agent/request` waterfall(`prepend`로 최외곽에 등록하여 세션 모델 선택 어셈블리가 덮어쓰지 못하게 함)에 연결되어 다음 모델 요청에 사고 수준을 주입합니다.
26
26
 
package/README.md CHANGED
@@ -18,16 +18,17 @@
18
18
 
19
19
  > **▼ DSH version support**
20
20
  >
21
- > This release (3.1.1) supports **DSH v0.1.7-rc.1 to < 0.1.8** only.
21
+ > This release (4.0.0) supports **DSH v0.2.0-rc.1 to < 0.2.1** only.
22
22
  >
23
23
  > | DSH version | Status | Notes |
24
24
  > | --- | --- | --- |
25
- > | ≥ 0.1.7-rc.1 | ✅ Supported | Declarative settings: the host renders the Plugins form from the plugin's `.volatile()` schema fields; cross-plugin reads/writes go through the `configForms` service |
25
+ > | ≥ 0.2.0-rc.1 | ✅ Supported | This release (4.0.x): same declarative settings surface (`.volatile()` schema fields rendered by the host; cross-plugin reads/writes through the `configForms` service), with the peer gate retargeted to the 0.2.0-rc segment |
26
+ > | ≥ 0.1.7-rc.1 to < 0.2.0 | ✅ Supported | Use the 3.x line (3.4.3, npm dist-tag `dsh-0.1.7`): declarative settings — the host renders the Plugins form from the plugin's `.volatile()` schema fields; cross-plugin reads/writes go through the `configForms` service |
26
27
  > | < 0.1.7-rc.1 | ⚠️ Not supported | DSH 0.1.7 removed the imperative settings registration and the per-plugin card seat the earlier lines (3.0.x and below) relied on — stay on plugin 3.0.2 for 0.1.2–0.1.6 hosts. |
27
28
  >
28
- > The boundary is `0.1.7-rc.1`, where DSH removed the imperative settings registration (`settings.register` / `installSettingsSection`) and the client `settingsScope` service. The 3.1.x line targets the 0.1.7 declarative surface: the runtime-adjustable config fields are marked `.volatile()` in the schemastery schema, the host generates the settings form from that schema alone (no registration call, no client settings card), and the plugin reads the live values per request, driven by `loader/volatile-update`.
29
+ > The boundary is `0.1.7-rc.1`, where DSH removed the imperative settings registration (`settings.register` / `installSettingsSection`) and the client `settingsScope` service. Since that boundary the runtime-adjustable config fields are marked `.volatile()` in the schemastery schema, the host generates the settings form from that schema alone (no registration call, no client settings card), and the plugin reads the live values per request, driven by `loader/volatile-update`. The 3.1.x–3.4.x lines target the 0.1.7 declarative surface; the 4.0.x line is the same surface retargeted to the 0.2.0-rc segment.
29
30
 
30
- > **Version-range policy:** every compatibility line pins its host segment tightly — `>=0.1.x-rc.1 <0.1.(x+1)-0` (3.1.x: `>=0.1.7-rc.1 <0.1.8-0`; 3.0.x: `>=0.1.5-alpha.1 <0.1.6-0`; 2.0.x: `>=0.1.2-alpha.1 <0.1.3-0`; 1.0.0-beta: `>=0.1.0-rc.8 <0.1.2-alpha.1`). No line ever declares an open `<0.2.0-0` upper bound, so a compatibility resolver can never match a plugin line against a newer host segment it was not built for. 0.4.0–0.6.0 carried no dsh peer declarations at all and are effectively compatibility-untyped — do not install them.
31
+ > **Version-range policy:** every compatibility line pins its host segment tightly. Lines targeting 0.1.x hosts follow `>=0.1.x-rc.1 <0.1.(x+1)-0` (3.1.x: `>=0.1.7-rc.1 <0.1.8-0`; 3.0.x: `>=0.1.5-alpha.1 <0.1.6-0`; 2.0.x: `>=0.1.2-alpha.1 <0.1.3-0`; 1.0.0-beta: `>=0.1.0-rc.8 <0.1.2-alpha.1`); lines targeting the 0.2.x segment follow `>=0.2.0-rc.1 <0.2.1-0` (4.0.x: `>=0.2.0-rc.1 <0.2.1-0`). No line ever declares an open upper bound, so a compatibility resolver can never match a plugin line against a newer host segment it was not built for. 0.4.0–0.6.0 carried no dsh peer declarations at all and are effectively compatibility-untyped — do not install them.
31
32
 
32
33
  > **Compatibility note:** Version `0.6.0` includes Japanese (`ja`) and Korean (`ko`) dictionaries and selector entries, but the current official DSH releases expose only `zh` and `en` through `LocaleRuntime`. On stock DSH, selecting `ja` or `ko` fails with `locale "<id>" is not registered`. These languages will work after official DSH adds the locale IDs. Advanced users can use a DSH fork that updates `packages/client/locale/src/locale-settings.ts` (`LOCALE_IDS`) and `packages/client/locale/src/client/index.ts` (`LOCALES` labels), together with the corresponding core dictionaries and tests, then rebuild and run the forked DSH. Changing this plugin alone cannot extend DSH's global locale list.
33
34
 
package/README.zh.md CHANGED
@@ -18,9 +18,9 @@
18
18
 
19
19
  > **兼容性说明:** `0.6.0` 已包含日本語(`ja`)和한국어(`ko`)字典及选择项,但当前官方 DSH 只通过 `LocaleRuntime` 提供 `zh` 和 `en`。在原版 DSH 中选择 `ja` 或 `ko` 会失败,并提示 `locale "<id>" is not registered`。需要等待官方 DSH 增加对应 locale ID 后才能正常使用。高级用户可以维护 DSH fork,在 `packages/client/locale/src/locale-settings.ts` 更新 `LOCALE_IDS`,在 `packages/client/locale/src/client/index.ts` 更新 `LOCALES` 标签,并补齐核心字典和测试,然后重新构建并运行 fork 版本。仅修改本插件无法扩展 DSH 的全局 locale 列表。
20
20
 
21
- > **版本兼容:** 本版本(3.1.1)仅支持 **DSH ≥ 0.1.7-rc.1 且 < 0.1.8**。DSH 0.1.7 移除了命令式设置注册(`settings.register` / `installSettingsSection`)与客户端 `settingsScope` 服务及每插件卡片槽位,旧版本线(3.0.x 及更早)依赖的表面已不存在——0.1.2–0.1.6 宿主请继续使用插件 3.0.2。3.1.x 面向 0.1.7 声明式表面:可运行时调整的配置字段在 schemastery schema 中标 `.volatile()`,设置表单由宿主按 schema 自动生成(无注册调用、无客户端设置卡片),插件按请求读取实时值(由 `loader/volatile-update` 驱动)。
21
+ > **版本兼容:** 本版本(4.0.0)仅支持 **DSH ≥ 0.2.0-rc.1 且 < 0.2.1**。自 0.1.7-rc.1 边界起,DSH 移除了命令式设置注册(`settings.register` / `installSettingsSection`)与客户端 `settingsScope` 服务及每插件卡片槽位,运行时调整的配置字段在 schemastery schema 中标 `.volatile()`,设置表单由宿主按 schema 自动生成(无注册调用、无客户端设置卡片),插件按请求读取实时值(由 `loader/volatile-update` 驱动)——4.0.x 面向 0.2.0-rc 区段的同一声明式表面;0.1.7-rc.1 至 <0.2.0 的宿主请使用 3.x 线(3.4.3,npm dist-tag `dsh-0.1.7`),0.1.2–0.1.6 宿主请继续使用插件 3.0.2。
22
22
 
23
- > **版本范围约定:** 每条兼容线都把宿主钉在本线自己的区段内——`>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`)。任何线都不再声明开放的 `<0.2.0-0` 上限,兼容性解析器因此绝不会把插件线匹配到它并未适配的更新宿主区段。0.4.0–0.6.0 完全没有声明 dsh peer 依赖,属于无兼容性标注版本——不要安装。
23
+ > **版本范围约定:** 每条兼容线都把宿主钉在本线自己的区段内。面向 0.1.x 宿主的线遵循 `>=0.1.x-rc.1 <0.1.(x+1)-0`(3.1.x:`>=0.1.7-rc.1 <0.1.8-0`;3.0.x:`>=0.1.5-alpha.1 <0.1.6-0`;2.0.x:`>=0.1.2-alpha.1 <0.1.3-0`;1.0.0-beta:`>=0.1.0-rc.8 <0.1.2-alpha.1`);面向 0.2.x 区段的线遵循 `>=0.2.0-rc.1 <0.2.1-0`(4.0.x:`>=0.2.0-rc.1 <0.2.1-0`)。任何线都不声明开放的上限,兼容性解析器因此绝不会把插件线匹配到它并未适配的更新宿主区段。0.4.0–0.6.0 完全没有声明 dsh peer 依赖,属于无兼容性标注版本——不要安装。
24
24
 
25
25
  在多步工具链任务中,模型在**每一次工具调用前**都会重新思考——而这个思考过程占据了绝大部分墙钟时间(一个 50 步的 agent 任务可能在工具之间花费数分钟思考)。`dsh-thinking-levels` 接入 dsh 每一步都会重新解析的 `agent/request` waterfall(以 `prepend` 置于最外层,避免被会话模型选择覆盖),向下一次模型请求注入思考档位。
26
26
 
package/cordis.patch.yml CHANGED
@@ -1,3 +1,3 @@
1
- - insert:
2
- - id: dsh-thinking-levels
3
- name: dsh-thinking-levels
1
+ - insert:
2
+ - id: dsh-thinking-levels
3
+ name: dsh-thinking-levels
package/dsh.plugin.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "id": "dsh-external/dsh-thinking-levels",
3
- "version": "3.4.3",
3
+ "version": "4.0.0",
4
4
  "main": "./lib/index.js",
5
5
  "description": "thinking-level (reasoning_effort) control — auto-adjust per tool round, with optional manual lock and per-tool timing telemetry.",
6
6
  "engines": {
7
- "dsh": ">=0.1.7-rc.1 <0.1.8-0"
7
+ "dsh": ">=0.2.0-rc.1 <0.2.1-0"
8
8
  },
9
9
  "contributes": {
10
10
  "tools": [],