@mofeng2223/dsh-claude-provider 0.4.1 → 0.4.3
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 +9 -13
- package/README.zh-CN.md +7 -11
- package/lib/client.js +5 -4
- package/package.json +3 -3
- package/src/index.js +1 -0
package/README.md
CHANGED
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](./README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
|
|
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 `settings.yaml` manually.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
The plugin retains its dedicated Claude provider configuration page, so users do not need to edit `settings.yaml` manually. Anthropic-native model discovery, automatic defaults for common Claude models, and other features not yet available in DeepSeek Harness are also retained.
|
|
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.
|
|
10
8
|
|
|
11
9
|
## What this plugin does
|
|
12
10
|
|
|
13
11
|
1. **Adds a dedicated Claude provider type**
|
|
14
12
|
|
|
15
|
-
The Models settings page gains a separate **Claude Provider** form.
|
|
13
|
+
The Models settings page gains a separate **Claude Provider** form.
|
|
16
14
|
|
|
17
15
|
<p align="center">
|
|
18
16
|
<img src="./docs/images/provider-entry.en.jpg" alt="Add Claude Provider entry in DeepSeek Harness" width="580">
|
|
@@ -34,17 +32,15 @@ The plugin retains its dedicated Claude provider configuration page, so users do
|
|
|
34
32
|
|
|
35
33
|
New models default to five levels, and Claude providers default to High.
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
For adaptive thinking models, the plugin writes the selected level to DSH's native configuration when saved.
|
|
35
|
+
On save, the plugin writes each model's reasoning levels and adaptive thinking settings to DeepSeek Harness's native configuration.
|
|
40
36
|
|
|
41
37
|
<p align="center">
|
|
42
38
|
<img src="./docs/images/model-defaults.en.jpg" alt="Claude model capacity defaults and reasoning modes" width="580">
|
|
43
39
|
</p>
|
|
44
40
|
|
|
45
|
-
3. **
|
|
41
|
+
3. **Supports paginated Anthropic model discovery**
|
|
46
42
|
|
|
47
|
-
|
|
43
|
+
The plugin fetches model lists through an Anthropic-compatible `GET /v1/models` endpoint, follows the returned cursors to retrieve subsequent pages, and deduplicates the results.
|
|
48
44
|
|
|
49
45
|
4. **Fills known Claude model defaults after discovery**
|
|
50
46
|
|
|
@@ -58,7 +54,7 @@ The plugin retains its dedicated Claude provider configuration page, so users do
|
|
|
58
54
|
|
|
59
55
|
### Published package
|
|
60
56
|
|
|
61
|
-
|
|
57
|
+
For the browser interface, install the plugin into the Web profile:
|
|
62
58
|
|
|
63
59
|
```sh
|
|
64
60
|
npx @deepseek-ai/dsh plugin --profile web add @mofeng2223/dsh-claude-provider
|
|
@@ -68,7 +64,7 @@ Restart the corresponding DeepSeek Harness process after installation.
|
|
|
68
64
|
|
|
69
65
|
### From source
|
|
70
66
|
|
|
71
|
-
|
|
67
|
+
Clone, build, and package the repository first:
|
|
72
68
|
|
|
73
69
|
```sh
|
|
74
70
|
git clone https://github.com/MoFeng2223/dsh-claude-provider.git
|
|
@@ -91,7 +87,7 @@ npx @deepseek-ai/dsh plugin --profile web add ./dist/mofeng2223-dsh-claude-provi
|
|
|
91
87
|
npx @deepseek-ai/dsh plugin --profile web remove @mofeng2223/dsh-claude-provider
|
|
92
88
|
```
|
|
93
89
|
|
|
94
|
-
Uninstalling the plugin does not delete `~/.dsh/settings.yaml` or stored credentials. Existing Claude providers remain ordinary custom `anthropic-messages`
|
|
90
|
+
Uninstalling the plugin does not delete `~/.dsh/settings.yaml` 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.
|
|
95
91
|
|
|
96
92
|
## License
|
|
97
93
|
|
package/README.zh-CN.md
CHANGED
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
[English](./README.md) | 简体中文
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
DSH Claude Provider 为 DeepSeek Harness 提供专用的 Claude 配置界面。你可以添加多个 Claude 提供方,为每个模型选择推理档位,并自动获取模型列表、填写常用 Claude 模型的容量和推理预设,无需手动编辑 `settings.yaml`。
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
插件仍保留专用的 Claude 提供方配置页面,用户无需手动编辑 `settings.yaml`。Anthropic 原生模型探测、常用 Claude 模型参数自动填写等官方尚未实现的功能也继续保留。
|
|
7
|
+
相比官方的通用自定义提供方配置,插件增加了独立的 Claude 入口、五档/四档/开关式推理预设,以及按已知 Claude 模型自动填写参数的功能。保存后的推理配置由 DeepSeek Harness 原生处理。
|
|
10
8
|
|
|
11
9
|
## 插件功能
|
|
12
10
|
|
|
13
11
|
1. **增加独立的 Claude 提供方类型**
|
|
14
12
|
|
|
15
|
-
模型设置页面会增加单独的“Claude
|
|
13
|
+
模型设置页面会增加单独的“Claude 提供方”表单。
|
|
16
14
|
|
|
17
15
|
<p align="center">
|
|
18
16
|
<img src="./docs/images/provider-entry.jpg" alt="DeepSeek Harness 中新增的 Claude 提供方入口" width="580">
|
|
@@ -34,17 +32,15 @@
|
|
|
34
32
|
|
|
35
33
|
新增模型默认使用五档,Claude 提供方默认选择 High。
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
对于 adaptive thinking 模型,插件会在保存时将所选档位写入 dsh 原生配置。
|
|
35
|
+
插件会在保存时将模型的推理档位和自适应思考设置写入 DeepSeek Harness 原生配置。
|
|
40
36
|
|
|
41
37
|
<p align="center">
|
|
42
38
|
<img src="./docs/images/model-defaults.jpg" alt="Claude 模型容量预填与思考模式设置" width="580">
|
|
43
39
|
</p>
|
|
44
40
|
|
|
45
|
-
3.
|
|
41
|
+
3. **支持 Anthropic 模型列表分页获取**
|
|
46
42
|
|
|
47
|
-
|
|
43
|
+
插件通过 Anthropic 兼容的 `GET /v1/models` 接口获取模型列表,并根据接口返回的游标继续读取后续页面、合并重复模型。
|
|
48
44
|
|
|
49
45
|
4. **探测后自动填写常用 Claude 模型参数**
|
|
50
46
|
|
|
@@ -91,7 +87,7 @@ npx @deepseek-ai/dsh plugin --profile web add ./dist/mofeng2223-dsh-claude-provi
|
|
|
91
87
|
npx @deepseek-ai/dsh plugin --profile web remove @mofeng2223/dsh-claude-provider
|
|
92
88
|
```
|
|
93
89
|
|
|
94
|
-
卸载插件不会删除 `~/.dsh/settings.yaml` 或已经保存的凭据。已有的 Claude 提供方会继续作为普通的 `anthropic-messages`
|
|
90
|
+
卸载插件不会删除 `~/.dsh/settings.yaml` 或已经保存的凭据。已有的 Claude 提供方会继续作为普通的 `anthropic-messages` 自定义提供方保留,已保存的推理档位和自适应思考配置仍然有效。卸载后将不再提供 Claude 专用的添加/编辑界面、分页模型探测和参数预填;官方的模型探测功能仍然可用。
|
|
95
91
|
|
|
96
92
|
## 许可证
|
|
97
93
|
|
package/lib/client.js
CHANGED
|
@@ -649,9 +649,9 @@ window.__ModuleLoader__.load({
|
|
|
649
649
|
const allVisibleCandidatesPicked = visibleCandidates.length > 0 && visibleCandidates.every((candidate) => picked.has(candidate.id));
|
|
650
650
|
const toggleVisibleCandidates = () => {
|
|
651
651
|
setPicked((current) => {
|
|
652
|
+
if (visibleCandidates.every((candidate) => current.has(candidate.id))) return /* @__PURE__ */ new Set();
|
|
652
653
|
const next = new Set(current);
|
|
653
|
-
|
|
654
|
-
else for (const candidate of visibleCandidates) next.add(candidate.id);
|
|
654
|
+
for (const candidate of visibleCandidates) next.add(candidate.id);
|
|
655
655
|
return next;
|
|
656
656
|
});
|
|
657
657
|
};
|
|
@@ -1869,6 +1869,7 @@ window.__ModuleLoader__.load({
|
|
|
1869
1869
|
const CLAUDE_FOUR_EFFORTS = Object.freeze({ low: "low", medium: "medium", high: "high", max: "max" });
|
|
1870
1870
|
const CLAUDE_TOGGLE_EFFORTS = Object.freeze({ off: null, high: "high" });
|
|
1871
1871
|
const CLAUDE_KNOWN_MODELS = Object.freeze({
|
|
1872
|
+
"claude-fable-5-1": Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: "five" }),
|
|
1872
1873
|
"claude-fable-5": Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: "five" }),
|
|
1873
1874
|
"claude-haiku-4-5-20251001": Object.freeze({ contextWindow: 200000, maxTokens: 64000, preset: "toggle" }),
|
|
1874
1875
|
"claude-haiku-4-5": Object.freeze({ contextWindow: 200000, maxTokens: 64000, preset: "toggle" }),
|
|
@@ -2879,7 +2880,7 @@ window.__ModuleLoader__.load({
|
|
|
2879
2880
|
claudeTypeIntro: "This provider type saves native RC8 adaptive-thinking compatibility, model reasoning mappings, Claude model discovery, and recorded capacities.",
|
|
2880
2881
|
adaptiveClaudeEnabled: "Choose a thinking mode for each model; new models default to five levels.",
|
|
2881
2882
|
adaptiveClaudeHelpLabel: "Thinking mode help",
|
|
2882
|
-
adaptiveClaudeHelp: "Five (low / medium / high / xhigh / max): Fable 5, Opus 5, Opus 4.8, Opus 4.7, Sonnet 5\nFour (low / medium / high / max): Opus 4.6, Sonnet 4.6\nOn / Off: Haiku 4.5",
|
|
2883
|
+
adaptiveClaudeHelp: "Five (low / medium / high / xhigh / max): Fable 5.1, Fable 5, Opus 5, Opus 4.8, Opus 4.7, Sonnet 5\nFour (low / medium / high / max): Opus 4.6, Sonnet 4.6\nOn / Off: Haiku 4.5",
|
|
2883
2884
|
adaptiveClaudeTag: "Claude configured",
|
|
2884
2885
|
thinkingPreset: "Thinking mode",
|
|
2885
2886
|
thinkingPresetToggle: "On / Off",
|
|
@@ -2994,7 +2995,7 @@ window.__ModuleLoader__.load({
|
|
|
2994
2995
|
claudeTypeIntro: "此提供方类型会写入 RC8 原生自适应思考兼容配置、模型思考映射、Claude 模型发现和已记录容量。",
|
|
2995
2996
|
adaptiveClaudeEnabled: "每个模型可单独选择思考模式,新增模型默认使用五档。",
|
|
2996
2997
|
adaptiveClaudeHelpLabel: "思考模式说明",
|
|
2997
|
-
adaptiveClaudeHelp: "五档(低 / 中 / 高 / 超高 / 最大):Fable 5、Opus 5、Opus 4.8、Opus 4.7、Sonnet 5\n四档(低 / 中 / 高 / 最大):Opus 4.6、Sonnet 4.6\n开启 / 关闭:Haiku 4.5",
|
|
2998
|
+
adaptiveClaudeHelp: "五档(低 / 中 / 高 / 超高 / 最大):Fable 5.1、Fable 5、Opus 5、Opus 4.8、Opus 4.7、Sonnet 5\n四档(低 / 中 / 高 / 最大):Opus 4.6、Sonnet 4.6\n开启 / 关闭:Haiku 4.5",
|
|
2998
2999
|
adaptiveClaudeTag: "Claude 已适配",
|
|
2999
3000
|
thinkingPreset: "思考模式",
|
|
3000
3001
|
thinkingPresetToggle: "开启 / 关闭",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mofeng2223/dsh-claude-provider",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Custom Claude provider support for DeepSeek Harness 0.1.
|
|
3
|
+
"version": "0.4.3",
|
|
4
|
+
"description": "Custom Claude provider support for DeepSeek Harness 0.1.3-alpha.2",
|
|
5
5
|
"author": "mofeng2223",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@deepseek-ai/dsh-client-ui-settings-models": "0.1.
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.1.3-alpha.2"
|
|
64
64
|
}
|
|
65
65
|
}
|
package/src/index.js
CHANGED
|
@@ -18,6 +18,7 @@ const MAX_DISCOVERY_PAGES = 100
|
|
|
18
18
|
|
|
19
19
|
/** Recorded capacities and thinking presets for known Claude model ids. */
|
|
20
20
|
export const CLAUDE_KNOWN_MODELS = Object.freeze({
|
|
21
|
+
'claude-fable-5-1': Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: 'five' }),
|
|
21
22
|
'claude-fable-5': Object.freeze({ contextWindow: 1000000, maxTokens: 128000, preset: 'five' }),
|
|
22
23
|
'claude-haiku-4-5-20251001': Object.freeze({ contextWindow: 200000, maxTokens: 64000, preset: 'toggle' }),
|
|
23
24
|
'claude-haiku-4-5': Object.freeze({ contextWindow: 200000, maxTokens: 64000, preset: 'toggle' }),
|