dsh-thinking-levels 0.4.1 → 0.7.0-beta.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.ko.md ADDED
@@ -0,0 +1,163 @@
1
+ # 설치 안내(공식 DSH CLI)
2
+
3
+ 이 가이드는 공식 `dsh plugin` 명령만 사용합니다. 이 명령은 의존성을 profile에 설치하고 `dsh.profile.bundles`를 동기화합니다. 일반 `npm install`, profile에서 직접 `pnpm add`, profile 매니페스트 수동 편집으로 대체하지 마세요.
4
+
5
+ - [한국어 설치 안내](./INSTALL.ko.md)
6
+ - [English installation guide](./INSTALL.md)
7
+ - [中文安装指南](./INSTALL.zh.md)
8
+ - [日本語インストールガイド](./INSTALL.ja.md)
9
+ - [한국어 README](./README.ko.md)
10
+ - [English README](./README.md)
11
+ - [中文 README](./README.zh.md)
12
+ - [日本語 README](./README.ja.md)
13
+ - [Changelog](./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
+ ## 0. 사전 확인과 profile 확인
24
+
25
+ ```bash
26
+ echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
27
+ dsh --version
28
+ ls "${DSH_HOME:-$HOME/.dsh}/profiles"
29
+ ```
30
+
31
+ 실행 중인 DSH 프로세스가 사용하는 profile을 사용하세요. `web`이 일반적이지만 실제 `--profile` 인자가 우선합니다.
32
+
33
+ ## 1. 공식 설치
34
+
35
+ 최신 버전 설치:
36
+
37
+ ```bash
38
+ dsh plugin --profile <profile> add dsh-thinking-levels -w
39
+ ```
40
+
41
+ (profile이 pnpm workspace root면 `-w`가 필요합니다. `web`이 그렇습니다.)
42
+
43
+ 현재 릴리스 명시적 설치:
44
+
45
+ ```bash
46
+ dsh plugin --profile <profile> add dsh-thinking-levels@0.6.0 -w
47
+ ```
48
+
49
+ 공식 CLI는 profile 의존성, 잠금 파일, `dsh.profile.bundles`를 자동으로 갱신합니다. 수동으로 YAML을 추가하지 마세요.
50
+
51
+ ### 공급망 쿨링 기간
52
+
53
+ dsh 런타임은 pnpm 11을 사용하며 `minimumReleaseAge` 정책이 새로 게시된 버전을
54
+ `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`으로 차단할 수 있습니다. `~/.dsh/profiles/web/pnpm-workspace.yaml`의
55
+ `minimumReleaseAgeExclude`에 버전을 추가하세요:
56
+
57
+ ```yaml
58
+ minimumReleaseAgeExclude:
59
+ - dsh-thinking-levels@0.6.0
60
+ ```
61
+
62
+ ## 2. 업그레이드
63
+
64
+ registry 최신 버전으로 업그레이드:
65
+
66
+ ```bash
67
+ dsh plugin --profile <profile> update dsh-thinking-levels -w
68
+ ```
69
+
70
+ 호스트 변경은 DSH 재시작, 브라우저 측은 웹 페이지 새로고침이 필요합니다.
71
+
72
+ ## 3. 로컬 경로 / link: 등록(대안)
73
+
74
+ 개발 또는 오프라인 설치에서는 로컬 체크아웃에서 등록할 수 있습니다:
75
+
76
+ ```bash
77
+ # ~/.dsh/profiles/web/package.json dependencies:
78
+ # "dsh-thinking-levels": "link:<dsh-thinking-levels 절대 경로>"
79
+ # ~/.dsh/profiles/web/cordis.patch.yml:
80
+ # - insert:
81
+ # - id: thinking-levels
82
+ # name: dsh-thinking-levels
83
+ cd ~/.dsh/profiles/web && pnpm install && dsh web
84
+ ```
85
+
86
+ 또는 공식 CLI로 로컬 경로 추가(네트워크 불필요):
87
+
88
+ ```bash
89
+ dsh plugin --profile <profile> add /dsh-thinking-levels 절대 경로/ -w
90
+ ```
91
+
92
+ ## 4. 설치 검증
93
+
94
+ 의존성과 설치 버전 확인:
95
+
96
+ ```bash
97
+ grep -n "dsh-thinking-levels" \
98
+ "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
99
+ node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
100
+ ```
101
+
102
+ 이 릴리스의 버전은 `0.6.0`이어야 합니다.
103
+
104
+ 공식 구성 확인:
105
+
106
+ ```bash
107
+ dsh --profile <profile> --dump-default-config
108
+ ```
109
+
110
+ 다음이 포함되어야 합니다:
111
+
112
+ ```yaml
113
+ - id: thinking-levels
114
+ name: dsh-thinking-levels
115
+ ```
116
+
117
+ ## 5. 설정 카드 검증
118
+
119
+ DSH를 재시작하고 웹 페이지를 새로고침하세요. 「설정 → 플러그인 → 설정 가능한 플러그인」을 열고 「사고 수준」 카드를 펼치세요.
120
+
121
+ 1. 수준 선택기는 8개 표준 수준에 `auto`를 더한 목록을 제공합니다. 아래에 스케줄러 토글이 있습니다.
122
+ 2. 모델 기능 섹션은 제공자별로 그룹화됩니다. 각 모델 행은 텍스트/이미지 배지와 선언된 컨텍스트 길이를 표시하며, 펼치면 수준별 편집기가 됩니다.
123
+ 3. 수준을 체크하고 게이트웨이 전송 값(예: `high` → `ultra`)을 입력한 뒤 「수준 적용」을 누르세요. `off`를 비워 두면 전송되지 않습니다.
124
+ 4. 검색 상자로 모델을 필터링하고, 공식/일반 프리셋으로 모든 사고 모델에 일괄 적용할 수 있습니다.
125
+
126
+ ## 일본어·한국어 지원 상태
127
+
128
+ 플러그인에는 `ja`와 `ko` 사전이 포함되어 있지만, 현재 공식 DSH 릴리스는 `LocaleRuntime`을 통해 `zh`와 `en`만 제공합니다. 순정 DSH에서 일본어 또는 한국어를 선택하면 `locale "<id>" is not registered` 오류가 발생합니다.
129
+
130
+ 공식 지원 전에 사용하려면 DSH 포크를 유지하며 업데이트하세요:
131
+
132
+ - `packages/client/locale/src/locale-settings.ts`: `LOCALE_IDS`에 `ja`와 `ko` 추가(Host 기본 설정 스키마가 이 목록에서 파생).
133
+ - `packages/client/locale/src/client/index.ts`: `LOCALES`에 `{ id: 'ja', label: '日本語' }`와 `{ id: 'ko', label: '한국어' }` 추가.
134
+ - 해당 핵심 사전과 테스트를 추가하고 포크 버전을 다시 빌드하여 실행.
135
+
136
+ 플러그인만으로는 DSH의 전역 locale 목록을 확장할 수 없습니다. 포크 문서의 빌드 및 공식 profile 명령을 사용하세요. profile 매니페스트를 수동으로 편집하지 마세요.
137
+
138
+ ## 6. 트러블슈팅
139
+
140
+ | 증상 | 조치 |
141
+ | --- | --- |
142
+ | `dsh`를 찾을 수 없음 | 공식 DSH CLI를 설치/활성화. 일반 npm/pnpm 명령으로 profile 설치를 흉내 내지 마세요. |
143
+ | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | profile의 `pnpm-workspace.yaml` `minimumReleaseAgeExclude`에 버전 추가. |
144
+ | 플러그인이「비활성화/미마운트」이며 오류 없음 | profile 구성을 확인. 호스트는 `@deepseek-ai/dsh-settings`에 값 의존하면 안 됩니다(본 플러그인은 안 함). |
145
+ | client 항목이 `__DSH_BOOT__`에 없음 | `exports["./client"]`가 있고 host fiber가 생성되었는지 확인. |
146
+ | 모델 선택기에 `Auto` 없음 | adapter `resolveModel` 래핑이 적용되었는지 확인(`llm/adapters-updated`에서 재래핑). |
147
+ | 설정 카드 쓰기 실패 | llm-pi-ai 스키마에 거부됨(예: 사고 수준이 없는 `reasoningEfforts` 테이블). 입력 값 확인. |
148
+ | Subagent가 `UNSUPPORTED_REASONING_EFFORT` | 대상 모델이 해당 수준을 선언하지 않음. 지원 수준을 쓰거나 제공자 기본값으로 복원. |
149
+ | 브라우저가 오래된 bundle 표시 | 업그레이드 후 하드 새로고침(Ctrl+Shift+R). |
150
+
151
+ ## 7. 제거
152
+
153
+ 공식 명령 사용:
154
+
155
+ ```bash
156
+ dsh plugin --profile <profile> remove dsh-thinking-levels -w
157
+ ```
158
+
159
+ 구성에서 bundle이 사라졌는지 확인:
160
+
161
+ ```bash
162
+ dsh --profile <profile> --dump-default-config
163
+ ```
package/INSTALL.md ADDED
@@ -0,0 +1,163 @@
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
+ ## 0. Prerequisites and profile discovery
24
+
25
+ ```bash
26
+ echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
27
+ dsh --version
28
+ ls "${DSH_HOME:-$HOME/.dsh}/profiles"
29
+ ```
30
+
31
+ Use the profile named by your running DSH process. `web` is common, but the active `--profile` argument is authoritative.
32
+
33
+ ## 1. Official installation
34
+
35
+ Install the latest version:
36
+
37
+ ```bash
38
+ dsh plugin --profile <profile> add dsh-thinking-levels -w
39
+ ```
40
+
41
+ (The `-w` flag is required when the profile is a pnpm workspace root, as `web` is.)
42
+
43
+ Install the current release explicitly:
44
+
45
+ ```bash
46
+ dsh plugin --profile <profile> add dsh-thinking-levels@0.6.0 -w
47
+ ```
48
+
49
+ The official CLI updates the profile dependency, lockfile, and `dsh.profile.bundles` automatically. Do not add a manual YAML row.
50
+
51
+ ### Supply-chain cooling period
52
+
53
+ The dsh runtime uses pnpm 11, whose `minimumReleaseAge` policy may block a freshly published
54
+ version with `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`. Add the version to
55
+ `minimumReleaseAgeExclude` in `~/.dsh/profiles/web/pnpm-workspace.yaml`:
56
+
57
+ ```yaml
58
+ minimumReleaseAgeExclude:
59
+ - dsh-thinking-levels@0.6.0
60
+ ```
61
+
62
+ ## 2. Upgrade
63
+
64
+ Upgrade to the latest registry version:
65
+
66
+ ```bash
67
+ dsh plugin --profile <profile> update dsh-thinking-levels -w
68
+ ```
69
+
70
+ Restart DSH for host changes and refresh the Web page for client changes.
71
+
72
+ ## 3. Local-path / link: registration (alternative)
73
+
74
+ For development or offline installs, register the plugin from a local checkout:
75
+
76
+ ```bash
77
+ # ~/.dsh/profiles/web/package.json dependencies:
78
+ # "dsh-thinking-levels": "link:<absolute path to dsh-thinking-levels>"
79
+ # ~/.dsh/profiles/web/cordis.patch.yml:
80
+ # - insert:
81
+ # - id: thinking-levels
82
+ # name: dsh-thinking-levels
83
+ cd ~/.dsh/profiles/web && pnpm install && dsh web
84
+ ```
85
+
86
+ Or use the official CLI with a local path (no network needed):
87
+
88
+ ```bash
89
+ dsh plugin --profile <profile> add /absolute/path/to/dsh-thinking-levels -w
90
+ ```
91
+
92
+ ## 4. Verify installation
93
+
94
+ Check the dependency and installed version:
95
+
96
+ ```bash
97
+ grep -n "dsh-thinking-levels" \
98
+ "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
99
+ node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
100
+ ```
101
+
102
+ The version must be `0.6.0` for this release.
103
+
104
+ Check the official composition:
105
+
106
+ ```bash
107
+ dsh --profile <profile> --dump-default-config
108
+ ```
109
+
110
+ It must contain:
111
+
112
+ ```yaml
113
+ - id: thinking-levels
114
+ name: dsh-thinking-levels
115
+ ```
116
+
117
+ ## 5. Verify the settings card
118
+
119
+ Restart DSH, then refresh the Web page. Open **Settings → Plugins → configurable plugins** and expand the **Thinking Levels** card.
120
+
121
+ 1. The level picker offers the eight standard levels plus `auto`; the scheduler toggles sit below.
122
+ 2. The model-capabilities block groups providers; each model row shows text/image badges and a declared context window, and expands into the per-level editor.
123
+ 3. Tick a level and enter its gateway wire value (e.g. `high` → `ultra`), then press **Apply levels**. `off` left empty means "do not send".
124
+ 4. The search box filters models; the official / generic presets apply to every thinking model.
125
+
126
+ ## Japanese and Korean support status
127
+
128
+ 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`.
129
+
130
+ To use them before official support lands, maintain a DSH fork and update:
131
+
132
+ - `packages/client/locale/src/locale-settings.ts`: add `ja` and `ko` to `LOCALE_IDS` (the Host preference schema derives from this list).
133
+ - `packages/client/locale/src/client/index.ts`: add `{ id: 'ja', label: '日本語' }` and `{ id: 'ko', label: '한국어' }` to `LOCALES`.
134
+ - Add the corresponding core dictionaries and tests, then rebuild and run the forked DSH.
135
+
136
+ 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.
137
+
138
+ ## 6. Troubleshooting
139
+
140
+ | Symptom | Action |
141
+ | --- | --- |
142
+ | `dsh` is not found | Install or enable the official DSH CLI. Do not simulate profile installation with plain npm or pnpm commands. |
143
+ | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | Add the version to `minimumReleaseAgeExclude` in the profile's `pnpm-workspace.yaml`. |
144
+ | 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). |
145
+ | Client entry missing from `__DSH_BOOT__` | Confirm `exports["./client"]` exists and the host fiber was established. |
146
+ | Model selector has no `Auto` | Confirm the adapter `resolveModel` wrapper ran (it re-runs on `llm/adapters-updated`). |
147
+ | Settings card write fails | The value was rejected by the llm-pi-ai schema (e.g. a `reasoningEfforts` table with no thinking level). Check the entered values. |
148
+ | Subagent returns `UNSUPPORTED_REASONING_EFFORT` | The target model does not advertise the level; pick a supported one or restore the provider default. |
149
+ | Stale client bundle | Hard-refresh the browser (Ctrl+Shift+R) after an upgrade. |
150
+
151
+ ## 7. Remove
152
+
153
+ Use the official command:
154
+
155
+ ```bash
156
+ dsh plugin --profile <profile> remove dsh-thinking-levels -w
157
+ ```
158
+
159
+ Verify that the composed profile no longer contains the bundle:
160
+
161
+ ```bash
162
+ dsh --profile <profile> --dump-default-config
163
+ ```
package/INSTALL.zh.md ADDED
@@ -0,0 +1,163 @@
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
+ ## 0. 前置检查与 profile 确认
24
+
25
+ ```bash
26
+ echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
27
+ dsh --version
28
+ ls "${DSH_HOME:-$HOME/.dsh}/profiles"
29
+ ```
30
+
31
+ 使用你正在运行的 DSH 进程对应的 profile。`web` 很常见,但以实际 `--profile` 参数为准。
32
+
33
+ ## 1. 官方安装
34
+
35
+ 安装最新版本:
36
+
37
+ ```bash
38
+ dsh plugin --profile <profile> add dsh-thinking-levels -w
39
+ ```
40
+
41
+ (当 profile 是 pnpm workspace root 时必须带 `-w`,`web` 就是。)
42
+
43
+ 显式安装当前发布版:
44
+
45
+ ```bash
46
+ dsh plugin --profile <profile> add dsh-thinking-levels@0.6.0 -w
47
+ ```
48
+
49
+ 官方 CLI 会自动更新 profile 依赖、锁文件与 `dsh.profile.bundles`。不要手工追加 YAML。
50
+
51
+ ### 供应链冷却期
52
+
53
+ dsh 运行环境使用 pnpm 11,其 `minimumReleaseAge` 策略可能拦截刚发布的版本,报
54
+ `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION`。把版本加入 `~/.dsh/profiles/web/pnpm-workspace.yaml` 的
55
+ `minimumReleaseAgeExclude`:
56
+
57
+ ```yaml
58
+ minimumReleaseAgeExclude:
59
+ - dsh-thinking-levels@0.6.0
60
+ ```
61
+
62
+ ## 2. 升级
63
+
64
+ 升级到 registry 最新版本:
65
+
66
+ ```bash
67
+ dsh plugin --profile <profile> update dsh-thinking-levels -w
68
+ ```
69
+
70
+ 宿主侧改动需重启 DSH;浏览器侧刷新 Web 页面。
71
+
72
+ ## 3. 本地路径 / link: 注册(备选)
73
+
74
+ 开发或离线安装时,可以从本地检出注册插件:
75
+
76
+ ```bash
77
+ # ~/.dsh/profiles/web/package.json dependencies 增加:
78
+ # "dsh-thinking-levels": "link:<dsh-thinking-levels 的绝对路径>"
79
+ # ~/.dsh/profiles/web/cordis.patch.yml:
80
+ # - insert:
81
+ # - id: thinking-levels
82
+ # name: dsh-thinking-levels
83
+ cd ~/.dsh/profiles/web && pnpm install && dsh web
84
+ ```
85
+
86
+ 或用官方 CLI 加本地路径(无需网络):
87
+
88
+ ```bash
89
+ dsh plugin --profile <profile> add /dsh-thinking-levels 的绝对路径/ -w
90
+ ```
91
+
92
+ ## 4. 验证安装
93
+
94
+ 检查依赖与安装版本:
95
+
96
+ ```bash
97
+ grep -n "dsh-thinking-levels" \
98
+ "${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
99
+ node -p "require('${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/node_modules/dsh-thinking-levels/package.json').version"
100
+ ```
101
+
102
+ 本版本的版本号必须是 `0.6.0`。
103
+
104
+ 检查官方组合配置:
105
+
106
+ ```bash
107
+ dsh --profile <profile> --dump-default-config
108
+ ```
109
+
110
+ 应包含:
111
+
112
+ ```yaml
113
+ - id: thinking-levels
114
+ name: dsh-thinking-levels
115
+ ```
116
+
117
+ ## 5. 验证设置卡片
118
+
119
+ 重启 DSH 后刷新 Web 页面。打开「设置 → 插件 → 可配置插件」,展开「思考档位」卡片。
120
+
121
+ 1. 档位选择器提供 8 个标准档位加 `auto`;下方是调度开关。
122
+ 2. 模型能力区按提供方分组;每个模型行显示文字/图片徽标与声明的上下文长度,展开后进入逐档编辑器。
123
+ 3. 勾选档位并填写网关线上值(如 `high` → `ultra`),点击「应用档位」保存。`off` 留空表示不发送。
124
+ 4. 搜索框可筛选模型;官方/通用预设一键应用到全部思考模型。
125
+
126
+ ## 日语与韩语支持状态
127
+
128
+ 插件自带 `ja` 与 `ko` 字典,但当前官方 DSH 只通过 `LocaleRuntime` 暴露 `zh` 和 `en`。在原版 DSH 上选择日语或韩语会报 `locale "<id>" is not registered`。
129
+
130
+ 官方支持落地前要使用它们,请维护 DSH fork 并更新:
131
+
132
+ - `packages/client/locale/src/locale-settings.ts`:把 `ja` 与 `ko` 加入 `LOCALE_IDS`(Host 偏好 schema 由该列表派生)。
133
+ - `packages/client/locale/src/client/index.ts`:在 `LOCALES` 中加入 `{ id: 'ja', label: '日本語' }` 与 `{ id: 'ko', label: '한국어' }`。
134
+ - 补齐对应的核心字典与测试,然后重新构建并运行 fork 版本。
135
+
136
+ 仅修改插件无法扩展 DSH 的全局 locale 列表。请使用 fork 文档中的构建与官方 profile 命令;不要手工编辑 profile 清单。
137
+
138
+ ## 6. 排查
139
+
140
+ | 症状 | 处理 |
141
+ | --- | --- |
142
+ | 找不到 `dsh` 命令 | 安装或启用官方 DSH CLI。不要用普通 npm/pnpm 命令模拟 profile 安装。 |
143
+ | `ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION` | 把版本加入 profile 的 `pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude`。 |
144
+ | 插件显示「已停用/未挂载」且无错误 | 检查 profile 组合;宿主不得值依赖 `@deepseek-ai/dsh-settings`(本插件没有)。 |
145
+ | client 入口不在 `__DSH_BOOT__` | 确认 `exports["./client"]` 存在且 host fiber 已建立。 |
146
+ | 模型选择器没有 `Auto` | 确认 adapter `resolveModel` 包装已生效(`llm/adapters-updated` 时重新包装)。 |
147
+ | 设置卡片写入失败 | 值被 llm-pi-ai schema 拒绝(如 `reasoningEfforts` 表没有任何思考档位)。检查填写值。 |
148
+ | 子 agent 报 `UNSUPPORTED_REASONING_EFFORT` | 目标模型未声明该档位;改用支持的档位或恢复提供方默认。 |
149
+ | 浏览器显示旧 bundle | 升级后硬刷新(Ctrl+Shift+R)。 |
150
+
151
+ ## 7. 卸载
152
+
153
+ 使用官方命令:
154
+
155
+ ```bash
156
+ dsh plugin --profile <profile> remove dsh-thinking-levels -w
157
+ ```
158
+
159
+ 确认组合配置不再包含该 bundle:
160
+
161
+ ```bash
162
+ dsh --profile <profile> --dump-default-config
163
+ ```
package/LICENSE ADDED
@@ -0,0 +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.