@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 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. **Uses native RC8 settings without request rewriting**
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**. The saved provider remains a standard `llm-pi-ai` route; the plugin neither replaces global `fetch` nor modifies RC8's model adapter.
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. **使用 RC8 原生配置,不改写请求**
53
+ 5. **不影响其他提供方**
54
54
 
55
- 模型探测、参数预填和推理档位只对明确创建为“Claude 提供方”的 Provider ID 生效。保存后的提供方仍是标准 `llm-pi-ai` 路由;插件不会替换全局 `fetch`,也不会修改 RC8 的模型适配器。
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.0",
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.0-rc.8"
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 = settingsNamespace('dsh-claude-provider')
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({