@mofeng2223/dsh-claude-provider 0.3.0 → 0.3.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/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/lib/client.js +1 -0
- package/package.json +2 -3
- package/src/index.js +1 -2
package/README.md
CHANGED
|
@@ -50,9 +50,9 @@ The plugin retains its dedicated Claude provider configuration page, so users do
|
|
|
50
50
|
|
|
51
51
|
When a discovered model matches a recorded Claude model ID, the plugin automatically fills its context window, maximum output length, and reasoning-mode set. Models entered manually remain fully editable and are not overwritten by this lookup.
|
|
52
52
|
|
|
53
|
-
5. **
|
|
53
|
+
5. **Leaves every other provider unchanged**
|
|
54
54
|
|
|
55
|
-
Discovery, defaults, and reasoning controls are limited to Provider IDs explicitly created as **Claude Providers**.
|
|
55
|
+
Discovery, defaults, and reasoning controls are limited to Provider IDs explicitly created as **Claude Providers**. DeepSeek Harness's built-in providers and ordinary custom providers keep their original behavior, even when they use `anthropic-messages` or expose a `claude-*` model ID.
|
|
56
56
|
|
|
57
57
|
## Install
|
|
58
58
|
|
package/README.zh-CN.md
CHANGED
|
@@ -50,9 +50,9 @@ DeepSeek Harness 0.1.0-rc.8 已支持 Claude 系列模型的推理强度参数
|
|
|
50
50
|
|
|
51
51
|
探测到的模型 ID 如果与插件已经记录的 Claude 模型匹配,插件会自动填写上下文窗口、最大输出长度和推理模式。用户手动添加的模型仍然可以自由编辑,不会被这项自动匹配覆盖。
|
|
52
52
|
|
|
53
|
-
5.
|
|
53
|
+
5. **不影响其他提供方**
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
模型探测、参数预填和推理档位配置只对明确创建为“Claude 提供方”的 Provider ID 生效。DeepSeek Harness 的内置提供方和普通自定义提供方会保持原有行为,即使它们同样使用 `anthropic-messages` 协议,或者包含 `claude-*` 模型 ID,也不会被插件修改。
|
|
56
56
|
|
|
57
57
|
## 安装
|
|
58
58
|
|
package/lib/client.js
CHANGED
|
@@ -2975,6 +2975,7 @@ window.__ModuleLoader__.load({
|
|
|
2975
2975
|
ctx.remote.$on("settings/document-updated", () => {
|
|
2976
2976
|
refreshModels();
|
|
2977
2977
|
}),
|
|
2978
|
+
ctx.remote.$on("credentials/reference-updated", refreshModels),
|
|
2978
2979
|
ctx.remote.$on("credentials/updated", refreshModels),
|
|
2979
2980
|
ctx.remote.$on("llm/adapters-updated", refreshModels),
|
|
2980
2981
|
ctx.on("connection/reset", refreshModels)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mofeng2223/dsh-claude-provider",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Custom Claude provider support for DeepSeek Harness",
|
|
5
5
|
"author": "mofeng2223",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@deepseek-ai/dsh-settings": "0.1.0-rc.8",
|
|
28
27
|
"@deepseek-ai/schemastery": "3.18.1"
|
|
29
28
|
},
|
|
30
29
|
"exports": {
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
"node": ">=22.19"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
|
-
"@deepseek-ai/dsh-client-ui-settings-models": "0.1.
|
|
50
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.1.1-rc.1"
|
|
52
51
|
},
|
|
53
52
|
"dsh": {
|
|
54
53
|
"bundle": {
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import z from '@deepseek-ai/schemastery'
|
|
2
|
-
import { settingsNamespace } from '@deepseek-ai/dsh-settings'
|
|
3
2
|
|
|
4
3
|
export const name = 'claude-provider'
|
|
5
4
|
export const inject = ['llm', 'settings']
|
|
6
5
|
|
|
7
6
|
export const CLAUDE_PROVIDER_TYPE = 'claude-adaptive'
|
|
8
|
-
export const CLAUDE_PROVIDER_SETTINGS_NS =
|
|
7
|
+
export const CLAUDE_PROVIDER_SETTINGS_NS = 'dsh-claude-provider'
|
|
9
8
|
export const CLAUDE_PROVIDER_DIRECTORY_SENTINEL = 'dsh-claude-provider-type'
|
|
10
9
|
|
|
11
10
|
const ProviderTypeSettings = z.object({
|