@mofeng2223/dsh-claude-provider 0.4.6 → 0.5.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/README.md +23 -11
- package/README.zh-CN.md +23 -11
- package/cordis.patch.yml +1 -1
- package/lib/client.js +1277 -195
- package/package.json +7 -5
- package/scripts/migrate-legacy-types.mjs +42 -0
- package/src/index.js +3 -8
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](./README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
DSH Claude Provider adds a dedicated Claude configuration interface to DeepSeek Harness. You can add multiple Claude providers, choose reasoning levels for each model, and automatically fetch model lists and fill in capacity settings and reasoning presets for common Claude models, without editing
|
|
5
|
+
DSH Claude Provider adds a dedicated Claude configuration interface to DeepSeek Harness. You can add multiple Claude providers, choose reasoning levels for each model, and automatically fetch model lists and fill in capacity settings and reasoning presets for common Claude models, without editing configuration files manually.
|
|
6
6
|
|
|
7
7
|
Compared with the official generic custom provider form, the plugin adds a dedicated Claude entry, five-level, four-level, and on/off reasoning presets, and automatic defaults for known Claude models. DeepSeek Harness handles the saved reasoning configuration natively.
|
|
8
8
|
|
|
@@ -10,16 +10,10 @@ Compared with the official generic custom provider form, the plugin adds a dedic
|
|
|
10
10
|
|
|
11
11
|
1. **Adds a dedicated Claude provider type**
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Open **Settings → Models → Add model provider → Claude provider** to use the dedicated Anthropic Messages form.
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
|
-
<img src="./docs/images/provider-
|
|
17
|
-
</p>
|
|
18
|
-
|
|
19
|
-
Selecting **Add Claude Provider** opens the dedicated Anthropic Messages form:
|
|
20
|
-
|
|
21
|
-
<p align="center">
|
|
22
|
-
<img src="./docs/images/claude-provider-form.en.jpg" alt="Claude Provider form in DeepSeek Harness" width="580">
|
|
16
|
+
<img src="./docs/images/claude-provider-tabs.en.png" alt="Claude provider tab and configuration form" width="580">
|
|
23
17
|
</p>
|
|
24
18
|
|
|
25
19
|
2. **Adds model-specific reasoning modes**
|
|
@@ -35,7 +29,7 @@ Compared with the official generic custom provider form, the plugin adds a dedic
|
|
|
35
29
|
On save, the plugin writes each model's reasoning levels and adaptive thinking settings to DeepSeek Harness's native configuration.
|
|
36
30
|
|
|
37
31
|
<p align="center">
|
|
38
|
-
<img src="./docs/images/model-
|
|
32
|
+
<img src="./docs/images/model-options.en.png" alt="Claude model capacity defaults and reasoning modes" width="580">
|
|
39
33
|
</p>
|
|
40
34
|
|
|
41
35
|
3. **Supports paginated Anthropic model discovery**
|
|
@@ -87,7 +81,25 @@ npx @deepseek-ai/dsh plugin --profile web add ./dist/mofeng2223-dsh-claude-provi
|
|
|
87
81
|
npx @deepseek-ai/dsh plugin --profile web remove @mofeng2223/dsh-claude-provider
|
|
88
82
|
```
|
|
89
83
|
|
|
90
|
-
Uninstalling the plugin does not delete
|
|
84
|
+
Uninstalling the plugin does not delete official model settings or stored credentials. Existing Claude providers remain ordinary custom `anthropic-messages` providers, and their saved reasoning levels and adaptive thinking settings remain effective. The dedicated Claude add/edit interface, paginated model discovery, and automatic defaults are no longer available; the official model discovery feature remains available.
|
|
85
|
+
|
|
86
|
+
## DSH 0.1.7 upgrade and configuration migration
|
|
87
|
+
|
|
88
|
+
This version targets DSH 0.1.7-alpha.2.
|
|
89
|
+
|
|
90
|
+
### 1. The new DSH version is not installed yet
|
|
91
|
+
|
|
92
|
+
Stop DSH, update DSH and the Claude plugin, then start DSH. On its first launch, the new DSH version attempts to migrate the old `settings.yaml` into the current Profile.
|
|
93
|
+
|
|
94
|
+
### 2. The new DSH version is installed but has not been run
|
|
95
|
+
|
|
96
|
+
Migration has not started yet. Update the Claude plugin and any other plugins requiring compatibility updates before starting DSH. DSH attempts to migrate the old Settings configuration on its first launch.
|
|
97
|
+
|
|
98
|
+
### 3. The new DSH version has already been run
|
|
99
|
+
|
|
100
|
+
DSH has already attempted automatic Settings migration, and some settings may have migration issues.
|
|
101
|
+
|
|
102
|
+
For this plugin, the possible impact is limited to missing Claude provider type markers. **Model configuration and operation are unaffected by the missing markers.**
|
|
91
103
|
|
|
92
104
|
## License
|
|
93
105
|
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](./README.md) | 简体中文
|
|
4
4
|
|
|
5
|
-
DSH Claude Provider 为 DeepSeek Harness 提供专用的 Claude 配置界面。你可以添加多个 Claude 提供方,为每个模型选择推理档位,并自动获取模型列表、填写常用 Claude
|
|
5
|
+
DSH Claude Provider 为 DeepSeek Harness 提供专用的 Claude 配置界面。你可以添加多个 Claude 提供方,为每个模型选择推理档位,并自动获取模型列表、填写常用 Claude 模型的容量和推理预设,无需手动编辑配置文件。
|
|
6
6
|
|
|
7
7
|
相比官方的通用自定义提供方配置,插件增加了独立的 Claude 入口、五档/四档/开关式推理预设,以及按已知 Claude 模型自动填写参数的功能。保存后的推理配置由 DeepSeek Harness 原生处理。
|
|
8
8
|
|
|
@@ -10,16 +10,10 @@ DSH Claude Provider 为 DeepSeek Harness 提供专用的 Claude 配置界面。
|
|
|
10
10
|
|
|
11
11
|
1. **增加独立的 Claude 提供方类型**
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
在「设置 → 模型 → 添加模型提供商」中选择「Claude 提供方」,即可打开专用的 Anthropic Messages 配置表单。
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
|
-
<img src="./docs/images/provider-
|
|
17
|
-
</p>
|
|
18
|
-
|
|
19
|
-
点击“添加 Claude 提供方”后,会打开独立的 Anthropic Messages 配置表单:
|
|
20
|
-
|
|
21
|
-
<p align="center">
|
|
22
|
-
<img src="./docs/images/claude-provider-form.jpg" alt="DeepSeek Harness 中的 Claude 提供方表单" width="580">
|
|
16
|
+
<img src="./docs/images/claude-provider-tabs.png" alt="Claude 提供方选项与配置表单" width="580">
|
|
23
17
|
</p>
|
|
24
18
|
|
|
25
19
|
2. **增加按模型设置的推理模式**
|
|
@@ -35,7 +29,7 @@ DSH Claude Provider 为 DeepSeek Harness 提供专用的 Claude 配置界面。
|
|
|
35
29
|
插件会在保存时将模型的推理档位和自适应思考设置写入 DeepSeek Harness 原生配置。
|
|
36
30
|
|
|
37
31
|
<p align="center">
|
|
38
|
-
<img src="./docs/images/model-
|
|
32
|
+
<img src="./docs/images/model-options.png" alt="Claude 模型容量预填与思考模式设置" width="580">
|
|
39
33
|
</p>
|
|
40
34
|
|
|
41
35
|
3. **支持 Anthropic 模型列表分页获取**
|
|
@@ -87,7 +81,25 @@ npx @deepseek-ai/dsh plugin --profile web add ./dist/mofeng2223-dsh-claude-provi
|
|
|
87
81
|
npx @deepseek-ai/dsh plugin --profile web remove @mofeng2223/dsh-claude-provider
|
|
88
82
|
```
|
|
89
83
|
|
|
90
|
-
|
|
84
|
+
卸载插件不会删除官方模型配置或已经保存的凭据。已有的 Claude 提供方会继续作为普通的 `anthropic-messages` 自定义提供方保留,已保存的推理档位和自适应思考配置仍然有效。卸载后将不再提供 Claude 专用的添加/编辑界面、分页模型探测和参数预填;官方的模型探测功能仍然可用。
|
|
85
|
+
|
|
86
|
+
## DSH 0.1.7 升级与配置迁移
|
|
87
|
+
|
|
88
|
+
本版本适配 DSH 0.1.7-alpha.2。
|
|
89
|
+
|
|
90
|
+
### 1. 尚未安装新版 DSH
|
|
91
|
+
|
|
92
|
+
先关闭 DSH,升级 DSH 和 Claude 插件,再启动 DSH。新版 DSH 首次启动时,会尝试将旧 `settings.yaml` 迁移到当前 Profile。
|
|
93
|
+
|
|
94
|
+
### 2. 已安装新版 DSH,但尚未运行
|
|
95
|
+
|
|
96
|
+
此时尚未触发配置迁移。先更新 Claude 插件及其他需要适配的插件,再启动 DSH。新版 DSH 首次启动时,会尝试迁移旧 Settings 配置。
|
|
97
|
+
|
|
98
|
+
### 3. 已安装并运行过新版 DSH
|
|
99
|
+
|
|
100
|
+
此时 Settings 已经由 DSH 执行过自动迁移,部分配置可能存在迁移问题。
|
|
101
|
+
|
|
102
|
+
对本插件而言,可能的影响只有 Claude 提供方类型标记丢失,**模型配置和运行不受影响**。
|
|
91
103
|
|
|
92
104
|
## 许可证
|
|
93
105
|
|
package/cordis.patch.yml
CHANGED