dsh-thinking-levels 3.0.2 → 3.1.1
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.ja.md +11 -10
- package/INSTALL.ko.md +11 -10
- package/INSTALL.md +15 -14
- package/INSTALL.zh.md +15 -13
- package/README.ja.md +8 -5
- package/README.ko.md +8 -5
- package/README.md +17 -20
- package/README.zh.md +8 -5
- package/dsh.plugin.json +2 -2
- package/lib/client.js +8 -1186
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +63 -12
- package/lib/index.js +40 -46
- package/package.json +12 -10
package/INSTALL.ja.md
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
- `dsh-thinking-levels`:npm パッケージ名とランタイムプラグイン ID;
|
|
21
21
|
- `thinking-levels`:Cordis 構成エントリと設定 Slot ID。
|
|
22
22
|
|
|
23
|
+
> 旧い 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 宣言を持たないためインストールしないでください。
|
|
24
|
+
|
|
23
25
|
## 0. 前提と profile の確認
|
|
24
26
|
|
|
25
27
|
```bash
|
|
@@ -43,7 +45,7 @@ dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
|
43
45
|
現在のリリースを明示的にインストール:
|
|
44
46
|
|
|
45
47
|
```bash
|
|
46
|
-
dsh plugin --profile <profile> add dsh-thinking-levels@
|
|
48
|
+
dsh plugin --profile <profile> add dsh-thinking-levels@3.1.0 -w
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
公式 CLI は profile の依存関係、ロックファイル、`dsh.profile.bundles` を自動更新します。手動で YAML を追加しないでください。
|
|
@@ -56,7 +58,7 @@ dsh ランタイムは pnpm 11 を使用し、`minimumReleaseAge` ポリシー
|
|
|
56
58
|
|
|
57
59
|
```yaml
|
|
58
60
|
minimumReleaseAgeExclude:
|
|
59
|
-
- dsh-thinking-levels@
|
|
61
|
+
- dsh-thinking-levels@3.1.0
|
|
60
62
|
```
|
|
61
63
|
|
|
62
64
|
## 2. アップグレード
|
|
@@ -99,7 +101,7 @@ grep -n "dsh-thinking-levels" \
|
|
|
99
101
|
node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
|
|
100
102
|
```
|
|
101
103
|
|
|
102
|
-
このリリースではバージョンは `
|
|
104
|
+
このリリースではバージョンは `3.1.0` でなければなりません。
|
|
103
105
|
|
|
104
106
|
公式構成を確認:
|
|
105
107
|
|
|
@@ -114,14 +116,13 @@ dsh --profile <profile> --dump-default-config
|
|
|
114
116
|
name: dsh-thinking-levels
|
|
115
117
|
```
|
|
116
118
|
|
|
117
|
-
## 5.
|
|
119
|
+
## 5. 設定フォームの検証
|
|
118
120
|
|
|
119
|
-
DSH を再起動し、Web ページをリフレッシュしてください。「設定 →
|
|
121
|
+
DSH を再起動し、Web ページをリフレッシュしてください。「設定 → プラグイン」を開き、**dsh-thinking-levels** のエントリを探します——DSH 0.1.7 からフォームはホストがプラグイン宣言の `.volatile()` スキーマフィールドから自動生成します(カスタムクライアントカードはもうありません)。
|
|
120
122
|
|
|
121
|
-
1.
|
|
122
|
-
2.
|
|
123
|
-
3.
|
|
124
|
-
4. 検索ボックスでモデルを絞り込み、公式/汎用プリセットで全思考モデルに一括適用できます。
|
|
123
|
+
1. フォームには有効トグル、レベルセレクター(8 つの標準レベル + `auto`)、スケジューラートグル(`allowDowngrade` / `allowUpgrade`)が表示されます。
|
|
124
|
+
2. 確定した変更は次のモデルリクエストから有効、再起動不要(ライブ volatile 設定)。
|
|
125
|
+
3. モデル別能力エディター(ゲートウェイ送信値、llm-pi-ai)は廃止されたカードとともに削除されました——llm-pi-ai のモデル能力は公式の「モデル」設定面から編集してください。
|
|
125
126
|
|
|
126
127
|
## 日本語と韓国語のサポート状況
|
|
127
128
|
|
|
@@ -144,7 +145,7 @@ DSH を再起動し、Web ページをリフレッシュしてください。「
|
|
|
144
145
|
| プラグインが「無効/未マウント」でエラーなし | profile 構成を確認。ホストは `@deepseek-ai/dsh-settings` に値依存してはいけません(本プラグインはしていません)。 |
|
|
145
146
|
| client エントリが `__DSH_BOOT__` にない | `exports["./client"]` が存在し、host fiber が確立されていることを確認。 |
|
|
146
147
|
| モデルセレクターに `Auto` がない | adapter `resolveModel` のラップが効いているか確認(`llm/adapters-updated` で再ラップ)。 |
|
|
147
|
-
|
|
|
148
|
+
| 設定フォームの書き込み失敗 | プラグインスキーマに拒否された。宣言された `.volatile()` フィールド型に合わせる。 |
|
|
148
149
|
| Subagent が `UNSUPPORTED_REASONING_EFFORT` | 対象モデルがレベルを宣言していない。対応レベルを使うかプロバイダー既定に戻す。 |
|
|
149
150
|
| ブラウザが古い bundle を表示 | アップグレード後にハードリフレッシュ(Ctrl+Shift+R)。 |
|
|
150
151
|
|
package/INSTALL.ko.md
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
- `dsh-thinking-levels`: npm 패키지 이름이자 런타임 플러그인 ID;
|
|
21
21
|
- `thinking-levels`: Cordis 구성 항목이자 설정 Slot ID.
|
|
22
22
|
|
|
23
|
+
> 구버전 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 선언이 없으므로 설치하지 마세요.
|
|
24
|
+
|
|
23
25
|
## 0. 사전 확인과 profile 확인
|
|
24
26
|
|
|
25
27
|
```bash
|
|
@@ -43,7 +45,7 @@ dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
|
43
45
|
현재 릴리스 명시적 설치:
|
|
44
46
|
|
|
45
47
|
```bash
|
|
46
|
-
dsh plugin --profile <profile> add dsh-thinking-levels@
|
|
48
|
+
dsh plugin --profile <profile> add dsh-thinking-levels@3.1.0 -w
|
|
47
49
|
```
|
|
48
50
|
|
|
49
51
|
공식 CLI는 profile 의존성, 잠금 파일, `dsh.profile.bundles`를 자동으로 갱신합니다. 수동으로 YAML을 추가하지 마세요.
|
|
@@ -56,7 +58,7 @@ dsh 런타임은 pnpm 11을 사용하며 `minimumReleaseAge` 정책이 새로
|
|
|
56
58
|
|
|
57
59
|
```yaml
|
|
58
60
|
minimumReleaseAgeExclude:
|
|
59
|
-
- dsh-thinking-levels@
|
|
61
|
+
- dsh-thinking-levels@3.1.0
|
|
60
62
|
```
|
|
61
63
|
|
|
62
64
|
## 2. 업그레이드
|
|
@@ -99,7 +101,7 @@ grep -n "dsh-thinking-levels" \
|
|
|
99
101
|
node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
|
|
100
102
|
```
|
|
101
103
|
|
|
102
|
-
이 릴리스의 버전은 `
|
|
104
|
+
이 릴리스의 버전은 `3.1.0`이어야 합니다.
|
|
103
105
|
|
|
104
106
|
공식 구성 확인:
|
|
105
107
|
|
|
@@ -114,14 +116,13 @@ dsh --profile <profile> --dump-default-config
|
|
|
114
116
|
name: dsh-thinking-levels
|
|
115
117
|
```
|
|
116
118
|
|
|
117
|
-
## 5. 설정
|
|
119
|
+
## 5. 설정 폼 검증
|
|
118
120
|
|
|
119
|
-
DSH를 재시작하고 웹 페이지를
|
|
121
|
+
DSH를 재시작하고 웹 페이지를 새로 고침하세요. 「설정 → 플러그인」에서 **dsh-thinking-levels** 항목을 찾으세요——DSH 0.1.7부터 폼은 호스트가 플러그인이 선언한 `.volatile()` 스키마 필드에서 자동 생성합니다(사용자 지정 클라이언트 카드는 더 이상 없음).
|
|
120
122
|
|
|
121
|
-
1. 수준
|
|
122
|
-
2.
|
|
123
|
-
3.
|
|
124
|
-
4. 검색 상자로 모델을 필터링하고, 공식/일반 프리셋으로 모든 사고 모델에 일괄 적용할 수 있습니다.
|
|
123
|
+
1. 폼에는 활성화 토글, 수준 선택기(8개 표준 수준 + `auto`), 스케줄러 토글(`allowDowngrade` / `allowUpgrade`)이 표시됩니다.
|
|
124
|
+
2. 확정된 변경은 다음 모델 요청부터 적용되며 재시작이 필요 없습니다(라이브 volatile 설정).
|
|
125
|
+
3. 모델별 기능 편집기(게이트웨이 전송 값, llm-pi-ai)는 폐지된 카드와 함께 제거되었습니다——llm-pi-ai 모델 기능은 공식 「모델」 설정 면에서 편집하세요.
|
|
125
126
|
|
|
126
127
|
## 일본어·한국어 지원 상태
|
|
127
128
|
|
|
@@ -144,7 +145,7 @@ DSH를 재시작하고 웹 페이지를 새로고침하세요. 「설정 → 플
|
|
|
144
145
|
| 플러그인이「비활성화/미마운트」이며 오류 없음 | profile 구성을 확인. 호스트는 `@deepseek-ai/dsh-settings`에 값 의존하면 안 됩니다(본 플러그인은 안 함). |
|
|
145
146
|
| client 항목이 `__DSH_BOOT__`에 없음 | `exports["./client"]`가 있고 host fiber가 생성되었는지 확인. |
|
|
146
147
|
| 모델 선택기에 `Auto` 없음 | adapter `resolveModel` 래핑이 적용되었는지 확인(`llm/adapters-updated`에서 재래핑). |
|
|
147
|
-
| 설정
|
|
148
|
+
| 설정 폼 쓰기 실패 | 플러그인 스키마에 거부됨. 선언된 `.volatile()` 필드 유형에 맞추세요. |
|
|
148
149
|
| Subagent가 `UNSUPPORTED_REASONING_EFFORT` | 대상 모델이 해당 수준을 선언하지 않음. 지원 수준을 쓰거나 제공자 기본값으로 복원. |
|
|
149
150
|
| 브라우저가 오래된 bundle 표시 | 업그레이드 후 하드 새로고침(Ctrl+Shift+R). |
|
|
150
151
|
|
package/INSTALL.md
CHANGED
|
@@ -20,17 +20,19 @@ The placeholders in this guide are:
|
|
|
20
20
|
- `dsh-thinking-levels`: the npm package and runtime plugin ID;
|
|
21
21
|
- `thinking-levels`: the Cordis composition and settings Slot ID.
|
|
22
22
|
|
|
23
|
-
> **Version requirement — DSH v0.1.
|
|
23
|
+
> **Version requirement — DSH v0.1.7-rc.1 or newer.**
|
|
24
24
|
>
|
|
25
25
|
> Check the running version first (`dsh --version`).
|
|
26
26
|
>
|
|
27
27
|
> | DSH version | Action |
|
|
28
28
|
> | --- | --- |
|
|
29
|
-
> | ≥ 0.1.
|
|
30
|
-
> | < 0.1.
|
|
29
|
+
> | ≥ 0.1.7-rc.1 | Install this release. |
|
|
30
|
+
> | < 0.1.7-rc.1 | Stay on the previous plugin line (3.0.2). Do not run an older plugin build against DSH 0.1.7+ — upgrade the plugin instead. |
|
|
31
31
|
>
|
|
32
|
-
> The boundary is `0.1.
|
|
32
|
+
> The boundary is `0.1.7-rc.1`, where DSH removed the imperative settings registration (`settings.register` / `installSettingsSection`) and the client `settingsScope` service. This release targets the declarative 0.1.7 settings surface (`.volatile()` schema fields + `configForms`).
|
|
33
33
|
|
|
34
|
+
> Older DSH lines install from npm via their 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). Never install the bare `latest`-era `0.x` versions (≤ 0.6.0) — they carry no dsh peer declarations.
|
|
35
|
+
|
|
34
36
|
## 0. Prerequisites and profile discovery
|
|
35
37
|
|
|
36
38
|
```bash
|
|
@@ -54,7 +56,7 @@ dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
|
54
56
|
Install the current release explicitly:
|
|
55
57
|
|
|
56
58
|
```bash
|
|
57
|
-
dsh plugin --profile <profile> add dsh-thinking-levels@
|
|
59
|
+
dsh plugin --profile <profile> add dsh-thinking-levels@3.1.0 -w
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
The official CLI updates the profile dependency, lockfile, and `dsh.profile.bundles` automatically. Do not add a manual YAML row.
|
|
@@ -67,7 +69,7 @@ version with `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`. Add the version to
|
|
|
67
69
|
|
|
68
70
|
```yaml
|
|
69
71
|
minimumReleaseAgeExclude:
|
|
70
|
-
- dsh-thinking-levels@
|
|
72
|
+
- dsh-thinking-levels@3.1.0
|
|
71
73
|
```
|
|
72
74
|
|
|
73
75
|
## 2. Upgrade
|
|
@@ -110,7 +112,7 @@ grep -n "dsh-thinking-levels" \
|
|
|
110
112
|
node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
|
|
111
113
|
```
|
|
112
114
|
|
|
113
|
-
The version must be `
|
|
115
|
+
The version must be `3.1.0` for this release.
|
|
114
116
|
|
|
115
117
|
Check the official composition:
|
|
116
118
|
|
|
@@ -125,14 +127,13 @@ It must contain:
|
|
|
125
127
|
name: dsh-thinking-levels
|
|
126
128
|
```
|
|
127
129
|
|
|
128
|
-
## 5. Verify the settings
|
|
130
|
+
## 5. Verify the settings form
|
|
129
131
|
|
|
130
|
-
Restart DSH, then refresh the Web page. Open **Settings → Plugins
|
|
132
|
+
Restart DSH, then refresh the Web page. Open **Settings → Plugins** and find the **dsh-thinking-levels** entry — since DSH 0.1.7 the form is generated by the host from the plugin's declared `.volatile()` schema fields (there is no custom client card any more).
|
|
131
133
|
|
|
132
|
-
1. The
|
|
133
|
-
2.
|
|
134
|
-
3.
|
|
135
|
-
4. The search box filters models; the official / generic presets apply to every thinking model.
|
|
134
|
+
1. The form shows the enable toggle, the level picker (eight standard levels plus `auto`) and the scheduler toggles (`allowDowngrade` / `allowUpgrade`).
|
|
135
|
+
2. Committed changes apply to the next model request without a restart (live volatile config).
|
|
136
|
+
3. The per-model capability editor (gateway wire values, llm-pi-ai) shipped with the retired card and is no longer part of this plugin — edit `llm-pi-ai` model capabilities through the official Models settings.
|
|
136
137
|
|
|
137
138
|
## Japanese and Korean support status
|
|
138
139
|
|
|
@@ -155,7 +156,7 @@ A plugin-only change cannot extend DSH's global locale list. Use the fork's docu
|
|
|
155
156
|
| Plugin shows as "disabled/unmounted" with no error | Check the profile composition; the host must not value-depend on `@deepseek-ai/dsh-settings` (it does not). |
|
|
156
157
|
| Client entry missing from `__DSH_BOOT__` | Confirm `exports["./client"]` exists and the host fiber was established. |
|
|
157
158
|
| Model selector has no `Auto` | Confirm the adapter `resolveModel` wrapper ran (it re-runs on `llm/adapters-updated`). |
|
|
158
|
-
| Settings
|
|
159
|
+
| Settings form write fails | The value was rejected by the plugin schema; align it with the declared `.volatile()` field types. |
|
|
159
160
|
| Subagent returns `UNSUPPORTED_REASONING_EFFORT` | The target model does not advertise the level; pick a supported one or restore the provider default. |
|
|
160
161
|
| Stale client bundle | Hard-refresh the browser (Ctrl+Shift+R) after an upgrade. |
|
|
161
162
|
|
package/INSTALL.zh.md
CHANGED
|
@@ -20,17 +20,19 @@
|
|
|
20
20
|
- `dsh-thinking-levels`:npm 包名与运行时插件 ID;
|
|
21
21
|
- `thinking-levels`:Cordis 组合条目与设置页 Slot ID。
|
|
22
22
|
|
|
23
|
-
> **版本要求 —— 仅支持 DSH v0.1.
|
|
23
|
+
> **版本要求 —— 仅支持 DSH v0.1.7-rc.1 及以上。**
|
|
24
24
|
>
|
|
25
25
|
> 安装前先确认版本(`dsh --version`)。
|
|
26
26
|
>
|
|
27
27
|
> | DSH 版本 | 操作 |
|
|
28
28
|
> | --- | --- |
|
|
29
|
-
> | ≥ 0.1.
|
|
30
|
-
> | < 0.1.
|
|
29
|
+
> | ≥ 0.1.7-rc.1 | 安装本版本。 |
|
|
30
|
+
> | < 0.1.7-rc.1 | 留在旧版插件(3.0.1)。**不要在 DSH 0.1.7+ 上运行旧版插件,请升级插件。** |
|
|
31
31
|
>
|
|
32
|
-
> 分界点是 `0.1.
|
|
32
|
+
> 分界点是 `0.1.7-rc.1`:该版本删除了命令式设置注册(`settings.register` / `installSettingsSection`)与客户端 `settingsScope` 服务。本版本面向 0.1.7 声明式设置表面(`.volatile()` schema 字段 + `configForms`)。
|
|
33
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
|
+
|
|
34
36
|
## 0. 前置检查与 profile 确认
|
|
35
37
|
|
|
36
38
|
```bash
|
|
@@ -54,7 +56,7 @@ dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
|
54
56
|
显式安装当前发布版:
|
|
55
57
|
|
|
56
58
|
```bash
|
|
57
|
-
dsh plugin --profile <profile> add dsh-thinking-levels@
|
|
59
|
+
dsh plugin --profile <profile> add dsh-thinking-levels@3.1.0 -w
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
官方 CLI 会自动更新 profile 依赖、锁文件与 `dsh.profile.bundles`。不要手工追加 YAML。
|
|
@@ -67,7 +69,7 @@ dsh 运行环境使用 pnpm 11,其 `minimumReleaseAge` 策略可能拦截刚
|
|
|
67
69
|
|
|
68
70
|
```yaml
|
|
69
71
|
minimumReleaseAgeExclude:
|
|
70
|
-
- dsh-thinking-levels@
|
|
72
|
+
- dsh-thinking-levels@3.1.0
|
|
71
73
|
```
|
|
72
74
|
|
|
73
75
|
## 2. 升级
|
|
@@ -110,7 +112,7 @@ grep -n "dsh-thinking-levels" \
|
|
|
110
112
|
node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
|
|
111
113
|
```
|
|
112
114
|
|
|
113
|
-
本版本的版本号必须是 `
|
|
115
|
+
本版本的版本号必须是 `3.1.0`。
|
|
114
116
|
|
|
115
117
|
检查官方组合配置:
|
|
116
118
|
|
|
@@ -125,13 +127,13 @@ dsh --profile <profile> --dump-default-config
|
|
|
125
127
|
name: dsh-thinking-levels
|
|
126
128
|
```
|
|
127
129
|
|
|
128
|
-
## 5.
|
|
130
|
+
## 5. 验证设置表单
|
|
129
131
|
|
|
130
|
-
重启 DSH 后刷新 Web 页面。打开「设置 →
|
|
132
|
+
重启 DSH 后刷新 Web 页面。打开「设置 → 插件」,找到 **dsh-thinking-levels** 条目——自 DSH 0.1.7 起,表单由宿主按插件声明的 `.volatile()` schema 字段自动生成(不再有自定义客户端卡片)。
|
|
131
133
|
|
|
132
|
-
1.
|
|
133
|
-
2.
|
|
134
|
-
3.
|
|
134
|
+
1. 表单包含启用开关、档位选择器(8 个标准档位加 `auto`)与调度开关(`allowDowngrade` / `allowUpgrade`)。
|
|
135
|
+
2. 提交的改动对下一次模型请求生效,无需重启(实时 volatile 配置)。
|
|
136
|
+
3. 逐模型能力编辑器(网关线上值、llm-pi-ai)随被废除的卡片一并移除——请通过官方「模型」设置面编辑 llm-pi-ai 模型能力。
|
|
135
137
|
4. 搜索框可筛选模型;官方/通用预设一键应用到全部思考模型。
|
|
136
138
|
|
|
137
139
|
## 日语与韩语支持状态
|
|
@@ -155,7 +157,7 @@ dsh --profile <profile> --dump-default-config
|
|
|
155
157
|
| 插件显示「已停用/未挂载」且无错误 | 检查 profile 组合;宿主不得值依赖 `@deepseek-ai/dsh-settings`(本插件没有)。 |
|
|
156
158
|
| client 入口不在 `__DSH_BOOT__` | 确认 `exports["./client"]` 存在且 host fiber 已建立。 |
|
|
157
159
|
| 模型选择器没有 `Auto` | 确认 adapter `resolveModel` 包装已生效(`llm/adapters-updated` 时重新包装)。 |
|
|
158
|
-
|
|
|
160
|
+
| 设置表单写入失败 | 值被插件 schema 拒绝;请对齐声明的 `.volatile()` 字段类型。 |
|
|
159
161
|
| 子 agent 报 `UNSUPPORTED_REASONING_EFFORT` | 目标模型未声明该档位;改用支持的档位或恢复提供方默认。 |
|
|
160
162
|
| 浏览器显示旧 bundle | 升级后硬刷新(Ctrl+Shift+R)。 |
|
|
161
163
|
|
package/README.ja.md
CHANGED
|
@@ -18,7 +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
|
-
>
|
|
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` に従ってリクエストごとに最新値を読みます。
|
|
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 宣言を一切持たないためインストールしないでください。
|
|
22
24
|
|
|
23
25
|
マルチステップのツールチェーンでは、モデルは**ツール呼び出しのたびに**再思考します——その思考がウォールクロック時間の大半を占めます(50 ステップのエージェントタスクはツール間に数分の推論を費やし得ます)。`dsh-thinking-levels` は、dsh が毎ステップ再解決する `agent/request` waterfall(`prepend` で最外層に登録し、セッションのモデル選択アセンブリに上書きされないようにする)に接続し、次のモデルリクエストに思考レベルを注入します。
|
|
24
26
|
|
|
@@ -40,7 +42,9 @@
|
|
|
40
42
|
|
|
41
43
|
## カスタム送信値マッピング
|
|
42
44
|
|
|
43
|
-
`llm-pi-ai`
|
|
45
|
+
`llm-pi-ai` で手動宣言したモデルでは、各レベルをゲートウェイが実際に受け付ける値にマッピングできます(dsh-thinking-effort から借用):レベルにチェックを入れ、送信値を入力します(例:`high` → `ultra`)。マッピングはモデルの `reasoningEfforts` テーブルとして保存され、Composer で `High` を選ぶとゲートウェイには `ultra` が送信されます。`off` を空欄にすると送信されません。
|
|
46
|
+
|
|
47
|
+
> このマッピングのビジュアルエディターは以前プラグイン設定カードに搭載されていましたが、DSH 0.1.7 移行で削除しました(対応スロットが廃止されたため)。公式の「モデル」設定面から `reasoningEfforts` テーブルを編集してください——host 側の検出と注入はもともとその設定をライブで読みます。
|
|
44
48
|
|
|
45
49
|
- 公式プリセット:`Off / High / Max`(公式 DeepSeek 形式)
|
|
46
50
|
- 汎用プリセット:`Off / Low / Medium / High`
|
|
@@ -121,7 +125,7 @@ cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
|
121
125
|
allowDowngrade: true # スケジューラーが `high` より下へ下げるのを許可
|
|
122
126
|
allowUpgrade: false # スケジューラーが `max` へ上げるのを禁止
|
|
123
127
|
```
|
|
124
|
-
- **ランタイム** —
|
|
128
|
+
- **ランタイム** — プラグインの `.volatile()` 設定フィールド(`enabled`、`level`、`allowDowngrade`、`allowUpgrade`):DSH 0.1.7 が宣言されたスキーマから「プラグイン」設定フォームを生成し、確定した変更はライブ設定参照(`loader/volatile-update`)としてプラグインへ届き、次のモデルリクエストから有効、再起動不要。(`models` は設定者レベルのフィールドのまま:プロファイル構成で編集してください。)
|
|
125
129
|
|
|
126
130
|
モデル毎の能力オーバーライド(`models`、キーは `provider/model`)は自動検出の結果を確定します。構成者が最終判断します:
|
|
127
131
|
|
|
@@ -150,12 +154,11 @@ config:
|
|
|
150
154
|
|
|
151
155
|
- ルートレベル `compat.supportsDeveloperRole: false`(`Unexpected message role` 400 を修正)と、トグル型思考モデルへのモデルレベル `compat.thinkingFormat: 'qwen-chat-template'`(`chat_template_kwargs.enable_thinking` を送信)を自動書き込み;
|
|
152
156
|
- 公式設定チャネルで書き込み、dsh のスキーマが書き込み時に検証(rc.8 未満では拒否してログ警告);明示的な値は決して上書きしません;
|
|
153
|
-
- プロバイダー行のスイッチは「ゲートウェイは developer ロール非対応」に置き換わり、モデルエディタは段階的 UI に;
|
|
154
157
|
- 応答側のインライン `<think>` 分割はゲートウェイの責務(vLLM は `--reasoning-parser qwen3`)。
|
|
155
158
|
|
|
156
159
|
# 依存関係
|
|
157
160
|
|
|
158
|
-
host 側は `@deepseek-ai/dsh-settings`
|
|
161
|
+
host 側は `@deepseek-ai/dsh-settings` に値依存しません——DSH 0.1.7 からは設定登録自体が存在しません:設定フォームはホストがプラグイン宣言の schemastery スキーマ(`.volatile()` フィールド)から生成し、クライアント側は dsh ランタイム提供の `configForms` サービスで連携します。profile への公式パッケージ手動インストールは不要です。`dependencies` は `@deepseek-ai/schemastery` のみ(パッケージと一緒に自動インストール)。
|
|
159
162
|
|
|
160
163
|
## 開発
|
|
161
164
|
|
package/README.ko.md
CHANGED
|
@@ -18,7 +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
|
-
> **버전
|
|
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`에 따라 요청마다 최신 값을 읽습니다.
|
|
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 선언이 전혀 없으므로 설치하지 마세요.
|
|
22
24
|
|
|
23
25
|
멀티스텝 도구 체인에서 모델은 **모든 도구 호출 전에** 다시 생각합니다——그 사고가 벽시계 시간의 대부분을 차지합니다(50스텝 에이전트 작업은 도구 사이에 수 분의 추론을 쓸 수 있습니다). `dsh-thinking-levels`는 dsh가 매 스텝 다시 해석하는 `agent/request` waterfall(`prepend`로 최외곽에 등록하여 세션 모델 선택 어셈블리가 덮어쓰지 못하게 함)에 연결되어 다음 모델 요청에 사고 수준을 주입합니다.
|
|
24
26
|
|
|
@@ -40,7 +42,9 @@
|
|
|
40
42
|
|
|
41
43
|
## 사용자 지정 전송 값 매핑
|
|
42
44
|
|
|
43
|
-
`llm-pi-ai`에 수동 선언한 모델은
|
|
45
|
+
`llm-pi-ai`에 수동 선언한 모델은 각 수준을 게이트웨이가 실제로 받아들이는 값으로 매핑할 수 있습니다(dsh-thinking-effort에서 차용): 수준을 체크하고 전송 값을 입력합니다(예: `high` → `ultra`). 매핑은 모델의 `reasoningEfforts` 테이블로 저장되며, Composer에서 `High`를 선택하면 게이트웨이에는 `ultra`가 전송됩니다. `off`를 비워 두면 전송되지 않습니다.
|
|
46
|
+
|
|
47
|
+
> 이 매핑의 시각적 편집기는 이전에 플러그인 설정 카드에 탑재되어 있었으나, DSH 0.1.7 마이그레이션에서 제거되었습니다(해당 슬롯 폐지). 공식 「모델」 설정 면에서 `reasoningEfforts` 테이블을 편집하세요——호스트 측 감지와 주입은 원래 그 설정을 라이브로 읽습니다.
|
|
44
48
|
|
|
45
49
|
- 공식 프리셋: `Off / High / Max`(공식 DeepSeek 방식)
|
|
46
50
|
- 일반 프리셋: `Off / Low / Medium / High`
|
|
@@ -121,7 +125,7 @@ cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
|
121
125
|
allowDowngrade: true # 스케줄러가 `high` 아래로 내리는 것을 허용
|
|
122
126
|
allowUpgrade: false # 스케줄러가 `max`로 올리는 것을 금지
|
|
123
127
|
```
|
|
124
|
-
- **런타임** —
|
|
128
|
+
- **런타임** — 플러그인의 `.volatile()` 설정 필드(`enabled`, `level`, `allowDowngrade`, `allowUpgrade`): DSH 0.1.7이 선언된 스키마에서 「플러그인」 설정 폼을 생성하고, 확정된 변경은 라이브 설정 참조(`loader/volatile-update`)로 플러그인에 전달되어 다음 모델 요청부터 적용, 재시작 불필요. (`models`는 구성자 수준 필드로 유지: profile 구성에서 편집하세요.)
|
|
125
129
|
|
|
126
130
|
모델별 능력 오버라이드(`models`, 키는 `provider/model`)는 자동 감지 결과를 확정합니다. 구성자가 최종 결정권을 가집니다:
|
|
127
131
|
|
|
@@ -150,12 +154,11 @@ config:
|
|
|
150
154
|
|
|
151
155
|
- 라우트 수준 `compat.supportsDeveloperRole: false`(`Unexpected message role` 400 수정)와 토글형 사고 모델에 대한 모델 수준 `compat.thinkingFormat: 'qwen-chat-template'`(`chat_template_kwargs.enable_thinking` 전송)을 자동 기록;
|
|
152
156
|
- 공식 설정 채널로 기록하며 dsh 스키마가 기록 시 검증(rc.8 미만은 거부 및 로그 경고); 명시적 값은 절대 덮어쓰지 않음;
|
|
153
|
-
- 제공자 행의 스위치는 「게이트웨이가 developer 역할 미지원」으로 교체되고, 모델 편집기는 점진적 UI로 변경;
|
|
154
157
|
- 응답 측 인라인 `<think>` 분할은 게이트웨이 책임(vLLM은 `--reasoning-parser qwen3`).
|
|
155
158
|
|
|
156
159
|
# 의존성
|
|
157
160
|
|
|
158
|
-
호스트 측은 `@deepseek-ai/dsh-settings`에 값 의존하지
|
|
161
|
+
호스트 측은 `@deepseek-ai/dsh-settings`에 값 의존하지 않습니다——DSH 0.1.7부터 설정 등록 자체가 존재하지 않습니다: 설정 폼은 호스트가 플러그인 선언 schemastery 스키마(`.volatile()` 필드)에서 생성하고, 클라이언트 측은 dsh 런타임이 제공하는 `configForms` 서비스로 협력합니다. profile에 공식 패키지를 수동 설치할 필요가 없습니다. `dependencies`는 `@deepseek-ai/schemastery`뿐입니다(패키지와 함께 자동 설치).
|
|
159
162
|
|
|
160
163
|
## 개발
|
|
161
164
|
|
package/README.md
CHANGED
|
@@ -18,17 +18,16 @@
|
|
|
18
18
|
|
|
19
19
|
> **▼ DSH version support**
|
|
20
20
|
>
|
|
21
|
-
> This release supports **DSH v0.1.
|
|
21
|
+
> This release (3.1.1) supports **DSH v0.1.7-rc.1 to < 0.1.8** only.
|
|
22
22
|
>
|
|
23
23
|
> | DSH version | Status | Notes |
|
|
24
24
|
> | --- | --- | --- |
|
|
25
|
-
> | ≥ 0.1.
|
|
26
|
-
> |
|
|
27
|
-
> | < 0.1.2-alpha.1 | ⚠️ Not recommended | Stay on the previous plugin line (0.7.1-beta.2 or earlier). Do not run an older plugin build against DSH v0.1.2+ — upgrade the plugin instead. |
|
|
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 |
|
|
26
|
+
> | < 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. |
|
|
28
27
|
>
|
|
29
|
-
> The boundary is `0.1.
|
|
30
|
-
|
|
31
|
-
> **
|
|
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
|
+
|
|
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.
|
|
32
31
|
|
|
33
32
|
> **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.
|
|
34
33
|
|
|
@@ -44,13 +43,13 @@ Screenshots of the live UI (dsh web):
|
|
|
44
43
|
</figure>
|
|
45
44
|
|
|
46
45
|
<figure>
|
|
47
|
-
<img style="max-width:100%" alt="
|
|
48
|
-
<figcaption>Thinking-level settings card
|
|
46
|
+
<img style="max-width:100%" alt="Thinking-level settings (3.0.x card shown): default level (auto scheduling), enable / allow-downgrade / allow-upgrade toggles, llm-pi-ai custom-provider model-capability table with the progressive per-model editor, and apply-to-all presets (Off/High/Max official DeepSeek style, Off/Low/Medium/High generic)." src="assets/自动思考级别配置.png" />
|
|
47
|
+
<figcaption>Thinking-level settings, 3.0.x card (screenshot kept for reference). Since 3.1.0 / DSH 0.1.7 the level, enable and scheduler toggles render as a host-generated declarative form; the custom card and its llm-pi-ai capability editor were removed with the retired seat.</figcaption>
|
|
49
48
|
</figure>
|
|
50
49
|
|
|
51
50
|
<figure>
|
|
52
|
-
<img style="max-width:100%" alt="Per-model capability editor for a custom openai-completions model (local-35b / Qwen3.6-35B-A3B): thinking model and vision enabled, support think effort off, thinking format qwen-chat-template (auto-filled); no takeover switch — the official compat flag lives on the provider row; context-window limit presets 64K/128K/256K/400K/512K/1M with a custom input." src="assets/自定义模型的思考接管-短路-上下文窗口限制.png" />
|
|
53
|
-
<figcaption>Per-model capability card
|
|
51
|
+
<img style="max-width:100%" alt="Per-model capability editor for a custom openai-completions model (local-35b / Qwen3.6-35B-A3B), as shipped in the 3.0.x settings card: thinking model and vision enabled, support think effort off, thinking format qwen-chat-template (auto-filled); no takeover switch — the official compat flag lives on the provider row; context-window limit presets 64K/128K/256K/400K/512K/1M with a custom input." src="assets/自定义模型的思考接管-短路-上下文窗口限制.png" />
|
|
52
|
+
<figcaption>Per-model capability card, 3.0.x (screenshot kept for reference). Since 3.1.0 / DSH 0.1.7 the capability editor ships no more; edit `llm-pi-ai` model capabilities through the official Models settings instead.</figcaption>
|
|
54
53
|
</figure>
|
|
55
54
|
|
|
56
55
|
## Levels
|
|
@@ -71,14 +70,16 @@ Wire-level facts (verified against the official DeepSeek docs and dsh's `llm-dee
|
|
|
71
70
|
|
|
72
71
|
## Custom wire mapping
|
|
73
72
|
|
|
74
|
-
For hand-declared `llm-pi-ai` models
|
|
73
|
+
For hand-declared `llm-pi-ai` models, map each level to the exact value your gateway expects (borrowed from dsh-thinking-effort): tick a level and enter its wire value, e.g. `high` → `ultra`. The mapping is stored as the model's `reasoningEfforts` table in the `llm-pi-ai` config, so the Composer selection `High` sends `ultra` to the gateway. Leaving `off` empty means "do not send".
|
|
75
74
|
|
|
76
75
|
- Official preset: `Off / High / Max` (official DeepSeek style)
|
|
77
76
|
- Generic preset: `Off / Low / Medium / High`
|
|
78
77
|
|
|
78
|
+
> The visual editor for this mapping rode the plugin's settings card, which the DSH 0.1.7 migration removed (the seat no longer exists). Edit the `reasoningEfforts` table through the official Models settings surface instead — the host-side detection and injection read it live either way.
|
|
79
|
+
|
|
79
80
|
## Context-window presets
|
|
80
81
|
|
|
81
|
-
The
|
|
82
|
+
The composer tool-row quick control (next to the model/effort select) edits a **context window limit**: preset stops `64K / 128K / 256K / 400K / 512K / 1M`, a custom integer input, and a clear button. The value is written to the `llm-pi-ai` model entry `contextWindow` (integer `2000`–`1000000`) — or to the `llm-deepseek` entry for official DeepSeek models.
|
|
82
83
|
|
|
83
84
|
Upstream, the harness consumes it through `resolveModelInfo(...).context.contextWindow` for compaction thresholds, context-overflow detection and context-pressure projections. Because `llm-pi-ai` re-reads the live config on every resolve and the compat sync does not block model discovery, a settings edit takes effect on the next request without a restart.
|
|
84
85
|
|
|
@@ -169,7 +170,7 @@ Two surfaces share one schema:
|
|
|
169
170
|
allowDowngrade: true # let the scheduler drop below `high`
|
|
170
171
|
allowUpgrade: false # forbid the scheduler lifting to `max`
|
|
171
172
|
```
|
|
172
|
-
- **Runtime** — the
|
|
173
|
+
- **Runtime** — the plugin's `.volatile()` config fields (`enabled`, `level`, `allowDowngrade`, `allowUpgrade`): DSH 0.1.7 renders the Plugins settings form from the declared schema, and committed changes reach the plugin as live config references (`loader/volatile-update`) — they apply to the next model request, no restart needed. (`models` stays a configurer-level field: edit it in the profile composition.)
|
|
173
174
|
|
|
174
175
|
Per-model capability overrides (`models`, keyed `provider/model`) confirm what auto-detection
|
|
175
176
|
finds; the configurer has the final word:
|
|
@@ -216,19 +217,15 @@ is no longer needed and should stay uninstalled:
|
|
|
216
217
|
`settings.update('llm-pi-ai', …)`), so dsh's schema validates the write **where it is
|
|
217
218
|
written**: a dsh older than rc.8 rejects the fields with a log warning — no silent
|
|
218
219
|
misconfiguration; explicit values on any layer are never clobbered;
|
|
219
|
-
- Triggers on plugin start, `llm/adapters-updated`, and `llm-pi-ai`
|
|
220
|
+
- Triggers on plugin start, `llm/adapters-updated`, and `llm-pi-ai` config changes — no
|
|
220
221
|
manual config editing;
|
|
221
|
-
- The capability card is de-short-circuited too: the provider-level switch is now
|
|
222
|
-
"**gateway rejects the developer role**" (writes/clears the route-level flag; unchecking
|
|
223
|
-
restores inheritance), and the model editor is progressive
|
|
224
|
-
(thinking/vision → effort support → effort editor);
|
|
225
222
|
- Response-side inline `<think>` splitting remains a **gateway concern**: bare vLLM needs
|
|
226
223
|
`--reasoning-parser qwen3` (pi-ai parses only `reasoning_content` / `reasoning` /
|
|
227
224
|
`reasoning_text`).
|
|
228
225
|
|
|
229
226
|
# Dependency note
|
|
230
227
|
|
|
231
|
-
The host half does **not** value-depend on `@deepseek-ai/dsh-settings`
|
|
228
|
+
The host half does **not** value-depend on `@deepseek-ai/dsh-settings` — since the DSH 0.1.7 line there is no settings registration at all: the settings form is generated by the host from the plugin's declared schemastery schema (`.volatile()` fields), and the client half talks to the `configForms` service provided by the dsh runtime. No need to install official packages into the profile manually. `dependencies` is just `@deepseek-ai/schemastery` (installed automatically with the package).
|
|
232
229
|
|
|
233
230
|
## Development
|
|
234
231
|
|
package/README.zh.md
CHANGED
|
@@ -18,7 +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
|
-
>
|
|
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` 驱动)。
|
|
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 依赖,属于无兼容性标注版本——不要安装。
|
|
22
24
|
|
|
23
25
|
在多步工具链任务中,模型在**每一次工具调用前**都会重新思考——而这个思考过程占据了绝大部分墙钟时间(一个 50 步的 agent 任务可能在工具之间花费数分钟思考)。`dsh-thinking-levels` 接入 dsh 每一步都会重新解析的 `agent/request` waterfall(以 `prepend` 置于最外层,避免被会话模型选择覆盖),向下一次模型请求注入思考档位。
|
|
24
26
|
|
|
@@ -40,7 +42,9 @@
|
|
|
40
42
|
|
|
41
43
|
## 自定义传输字段映射
|
|
42
44
|
|
|
43
|
-
对 `llm-pi-ai`
|
|
45
|
+
对 `llm-pi-ai` 手工声明的模型,可以把每个档位映射为你网关真正接受的值(借鉴 dsh-thinking-effort):勾选档位并填写线上值,例如 `high` → `ultra`。映射存为该模型的 `reasoningEfforts` 表——Composer 选中 `High` 时,网关实际收到 `ultra`。`off` 留空表示不发送。
|
|
46
|
+
|
|
47
|
+
> 该映射的可视化编辑器原先搭载在插件设置卡片上,DSH 0.1.7 迁移已将其移除(对应槽位不复存在)。请改为通过官方「模型」设置面编辑 `reasoningEfforts` 表——host 侧的检测与注入本就实时读取该配置。
|
|
44
48
|
|
|
45
49
|
- 官方预设:`Off / High / Max`(官方 DeepSeek 风格)
|
|
46
50
|
- 通用预设:`Off / Low / Medium / High`
|
|
@@ -125,7 +129,7 @@ cd ~/.dsh/profiles/web && pnpm install && dsh web
|
|
|
125
129
|
allowDowngrade: true # 允许调度器降到 `high` 以下
|
|
126
130
|
allowUpgrade: false # 禁止调度器升到 `max`
|
|
127
131
|
```
|
|
128
|
-
- **运行时** —
|
|
132
|
+
- **运行时** — 插件的 `.volatile()` 配置字段(`enabled`、`level`、`allowDowngrade`、`allowUpgrade`):DSH 0.1.7 按声明的 schema 自动生成「插件」设置表单,提交的改动以实时配置引用送达插件(`loader/volatile-update`),对下一次模型请求生效,无需重启。(`models` 仍是配置级字段:请在 profile 组合中编辑。)
|
|
129
133
|
|
|
130
134
|
按模型的 `models` 覆盖(键为 `provider/model`)用于确认自动检测结果,配置者拥有最终决定权:
|
|
131
135
|
|
|
@@ -159,12 +163,11 @@ config:
|
|
|
159
163
|
- toggle 型思考模型(思考表存在、行级无 `supportsReasoningEffort`)自动补模型级 `compat.thinkingFormat: 'qwen-chat-template'`——pi-ai 发 `chat_template_kwargs.enable_thinking`(裸 vLLM 忽略顶层 `enable_thinking`);
|
|
160
164
|
- 写入走官方设置通道(读 → 纯变换 → 整段 `settings.update('llm-pi-ai', …)`),dsh 的 schema 在**写入处**校验:低于 rc.8 的 dsh 会拒绝并日志告警,绝不静默错配;任何层级的显式值(true/false、已声明格式)永不覆盖;
|
|
161
165
|
- 触发时机:插件启动、`llm/adapters-updated`、`llm-pi-ai` 的 settings 变化——无需手动改配置;
|
|
162
|
-
- 能力卡片同步去短路化:provider 行的开关是「**网关不支持 developer 角色**」(写/清路由级 flag,取消勾选恢复继承),模型编辑器按渐进层级展示(思考/视觉 → effort 支持 → effort 编辑表);
|
|
163
166
|
- 响应侧的内联 `<think>` 拆分是**网关职责**:裸 vLLM 请加 `--reasoning-parser qwen3`(pi-ai 只解析 `reasoning_content` / `reasoning` / `reasoning_text`)。
|
|
164
167
|
|
|
165
168
|
# 依赖说明
|
|
166
169
|
|
|
167
|
-
插件 host 侧**不**值依赖 `@deepseek-ai/dsh-settings
|
|
170
|
+
插件 host 侧**不**值依赖 `@deepseek-ai/dsh-settings`——DSH 0.1.7 起不再有任何设置注册:设置表单由宿主按插件声明的 schemastery schema(`.volatile()` 字段)生成,客户端通过 dsh 运行时提供的 `configForms` 服务协作。无需在 profile 中手动安装官方包。`dependencies` 仅 `@deepseek-ai/schemastery`(随包自动安装)。
|
|
168
171
|
|
|
169
172
|
## 开发
|
|
170
173
|
|
package/dsh.plugin.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-thinking-levels",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
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
|
+
"dsh": ">=0.1.7-rc.1 <0.1.8-0"
|
|
8
8
|
},
|
|
9
9
|
"contributes": {
|
|
10
10
|
"tools": [],
|