dsh-thinking-levels 3.1.0 → 3.2.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.ja.md +164 -162
- package/INSTALL.ko.md +164 -162
- package/INSTALL.md +175 -173
- package/INSTALL.zh.md +176 -174
- package/README.ja.md +175 -173
- package/README.ko.md +175 -173
- package/README.md +5 -3
- package/README.zh.md +184 -182
- package/dsh.plugin.json +16 -16
- package/lib/client.js +1202 -6
- package/lib/client.js.map +1 -1
- package/package.json +115 -114
package/INSTALL.md
CHANGED
|
@@ -1,173 +1,175 @@
|
|
|
1
|
-
# Installation Guide (Official DSH CLI)
|
|
2
|
-
|
|
3
|
-
This guide uses only the official DSH `dsh plugin` command. The command installs the dependency into a profile and synchronizes `dsh.profile.bundles`. Do not replace it with plain `npm install`, direct `pnpm add` in the profile, or manual edits to the profile manifest.
|
|
4
|
-
|
|
5
|
-
- [English installation guide](./INSTALL.md)
|
|
6
|
-
- [中文安装指南](./INSTALL.zh.md)
|
|
7
|
-
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
8
|
-
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
9
|
-
- [English README](./README.md)
|
|
10
|
-
- [中文 README](./README.zh.md)
|
|
11
|
-
- [日本語 README](./README.ja.md)
|
|
12
|
-
- [한국어 README](./README.ko.md)
|
|
13
|
-
- [Changelog](./CHANGELOG.md)
|
|
14
|
-
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
15
|
-
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
16
|
-
|
|
17
|
-
The placeholders in this guide are:
|
|
18
|
-
|
|
19
|
-
- `<profile>`: the DSH profile to modify, usually `web`;
|
|
20
|
-
- `dsh-thinking-levels`: the npm package and runtime plugin ID;
|
|
21
|
-
- `thinking-levels`: the Cordis composition and settings Slot ID.
|
|
22
|
-
|
|
23
|
-
> **Version requirement — DSH v0.1.7-rc.1 or newer.**
|
|
24
|
-
>
|
|
25
|
-
> Check the running version first (`dsh --version`).
|
|
26
|
-
>
|
|
27
|
-
> | DSH version | Action |
|
|
28
|
-
> | --- | --- |
|
|
29
|
-
> | ≥ 0.1.7-rc.1 | Install this release. |
|
|
30
|
-
> | < 0.1.7-rc.1 | Stay on the previous plugin line (3.0.
|
|
31
|
-
>
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
`
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
# ~/.dsh/profiles/web/
|
|
91
|
-
# -
|
|
92
|
-
#
|
|
93
|
-
#
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
1.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
156
|
-
|
|
|
157
|
-
|
|
|
158
|
-
|
|
|
159
|
-
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
```
|
|
1
|
+
# Installation Guide (Official DSH CLI)
|
|
2
|
+
|
|
3
|
+
This guide uses only the official DSH `dsh plugin` command. The command installs the dependency into a profile and synchronizes `dsh.profile.bundles`. Do not replace it with plain `npm install`, direct `pnpm add` in the profile, or manual edits to the profile manifest.
|
|
4
|
+
|
|
5
|
+
- [English installation guide](./INSTALL.md)
|
|
6
|
+
- [中文安装指南](./INSTALL.zh.md)
|
|
7
|
+
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
8
|
+
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
9
|
+
- [English README](./README.md)
|
|
10
|
+
- [中文 README](./README.zh.md)
|
|
11
|
+
- [日本語 README](./README.ja.md)
|
|
12
|
+
- [한국어 README](./README.ko.md)
|
|
13
|
+
- [Changelog](./CHANGELOG.md)
|
|
14
|
+
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
15
|
+
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
16
|
+
|
|
17
|
+
The placeholders in this guide are:
|
|
18
|
+
|
|
19
|
+
- `<profile>`: the DSH profile to modify, usually `web`;
|
|
20
|
+
- `dsh-thinking-levels`: the npm package and runtime plugin ID;
|
|
21
|
+
- `thinking-levels`: the Cordis composition and settings Slot ID.
|
|
22
|
+
|
|
23
|
+
> **Version requirement — DSH v0.1.7-rc.1 or newer.**
|
|
24
|
+
>
|
|
25
|
+
> Check the running version first (`dsh --version`).
|
|
26
|
+
>
|
|
27
|
+
> | DSH version | Action |
|
|
28
|
+
> | --- | --- |
|
|
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
|
+
>
|
|
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
|
+
|
|
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
|
+
|
|
36
|
+
## 0. Prerequisites and profile discovery
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
|
|
40
|
+
dsh --version
|
|
41
|
+
ls "${DSH_HOME:-$HOME/.dsh}/profiles"
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Use the profile named by your running DSH process. `web` is common, but the active `--profile` argument is authoritative.
|
|
45
|
+
|
|
46
|
+
## 1. Official installation
|
|
47
|
+
|
|
48
|
+
Install the latest version:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
dsh plugin --profile <profile> add dsh-thinking-levels -w
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
(The `-w` flag is required when the profile is a pnpm workspace root, as `web` is.)
|
|
55
|
+
|
|
56
|
+
Install the current release explicitly:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
dsh plugin --profile <profile> add dsh-thinking-levels@3.1.0 -w
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The official CLI updates the profile dependency, lockfile, and `dsh.profile.bundles` automatically. Do not add a manual YAML row.
|
|
63
|
+
|
|
64
|
+
### Supply-chain cooling period
|
|
65
|
+
|
|
66
|
+
The dsh runtime uses pnpm 11, whose `minimumReleaseAge` policy may block a freshly published
|
|
67
|
+
version with `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`. Add the version to
|
|
68
|
+
`minimumReleaseAgeExclude` in `~/.dsh/profiles/web/pnpm-workspace.yaml`:
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
minimumReleaseAgeExclude:
|
|
72
|
+
- dsh-thinking-levels@3.1.0
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 2. Upgrade
|
|
76
|
+
|
|
77
|
+
Upgrade to the latest registry version:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
dsh plugin --profile <profile> update dsh-thinking-levels -w
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Restart DSH for host changes and refresh the Web page for client changes.
|
|
84
|
+
|
|
85
|
+
## 3. Local-path / link: registration (alternative)
|
|
86
|
+
|
|
87
|
+
For development or offline installs, register the plugin from a local checkout:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# ~/.dsh/profiles/web/package.json dependencies:
|
|
91
|
+
# "dsh-thinking-levels": "link:<absolute path to 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
|
+
Or use the official CLI with a local path (no network needed):
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
dsh plugin --profile <profile> add /absolute/path/to/dsh-thinking-levels -w
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## 4. Verify installation
|
|
106
|
+
|
|
107
|
+
Check the dependency and installed version:
|
|
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
|
+
The version must be `3.1.0` for this release.
|
|
116
|
+
|
|
117
|
+
Check the official composition:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
dsh --profile <profile> --dump-default-config
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
It must contain:
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
- id: thinking-levels
|
|
127
|
+
name: dsh-thinking-levels
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## 5. Verify the settings form
|
|
131
|
+
|
|
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).
|
|
133
|
+
|
|
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.
|
|
137
|
+
|
|
138
|
+
## Japanese and Korean support status
|
|
139
|
+
|
|
140
|
+
The plugin ships `ja` and `ko` dictionaries, but the current official DSH release exposes only `zh` and `en` through `LocaleRuntime`. On stock DSH, selecting Japanese or Korean fails with `locale "<id>" is not registered`.
|
|
141
|
+
|
|
142
|
+
To use them before official support lands, maintain a DSH fork and update:
|
|
143
|
+
|
|
144
|
+
- `packages/client/locale/src/locale-settings.ts`: add `ja` and `ko` to `LOCALE_IDS` (the Host preference schema derives from this list).
|
|
145
|
+
- `packages/client/locale/src/client/index.ts`: add `{ id: 'ja', label: '日本語' }` and `{ id: 'ko', label: '한국어' }` to `LOCALES`.
|
|
146
|
+
- Add the corresponding core dictionaries and tests, then rebuild and run the forked DSH.
|
|
147
|
+
|
|
148
|
+
A plugin-only change cannot extend DSH's global locale list. Use the fork's documented build and official profile commands; do not manually edit a profile manifest.
|
|
149
|
+
|
|
150
|
+
## 6. Troubleshooting
|
|
151
|
+
|
|
152
|
+
| Symptom | Action |
|
|
153
|
+
| --- | --- |
|
|
154
|
+
| `dsh` is not found | Install or enable the official DSH CLI. Do not simulate profile installation with plain npm or pnpm commands. |
|
|
155
|
+
| `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | Add the version to `minimumReleaseAgeExclude` in the profile's `pnpm-workspace.yaml`. |
|
|
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). |
|
|
157
|
+
| Client entry missing from `__DSH_BOOT__` | Confirm `exports["./client"]` exists and the host fiber was established. |
|
|
158
|
+
| Model selector has no `Auto` | Confirm the adapter `resolveModel` wrapper ran (it re-runs on `llm/adapters-updated`). |
|
|
159
|
+
| Settings form write fails | The value was rejected by the plugin schema; align it with the declared `.volatile()` field types. |
|
|
160
|
+
| Subagent returns `UNSUPPORTED_REASONING_EFFORT` | The target model does not advertise the level; pick a supported one or restore the provider default. |
|
|
161
|
+
| Stale client bundle | Hard-refresh the browser (Ctrl+Shift+R) after an upgrade. |
|
|
162
|
+
|
|
163
|
+
## 7. Remove
|
|
164
|
+
|
|
165
|
+
Use the official command:
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
dsh plugin --profile <profile> remove dsh-thinking-levels -w
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Verify that the composed profile no longer contains the bundle:
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
dsh --profile <profile> --dump-default-config
|
|
175
|
+
```
|