@mofeng2223/dsh-claude-provider 0.6.11 → 0.7.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/lib/client.js +887 -635
- package/package.json +4 -4
- package/src/index.js +4 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mofeng2223/dsh-claude-provider",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Custom Claude provider support for DeepSeek Harness 0.2.3-alpha.
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Custom Claude provider support for DeepSeek Harness 0.2.3-alpha.3",
|
|
5
5
|
"author": "mofeng2223",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"type": "module",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@deepseek-ai/schemastery": "3.20.0-alpha.
|
|
27
|
+
"@deepseek-ai/schemastery": "3.20.0-alpha.2",
|
|
28
28
|
"js-yaml": "^4.3.2"
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.3-alpha.
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.3-alpha.3",
|
|
66
66
|
"acorn": "8.19.0",
|
|
67
67
|
"prettier": "3.10.1"
|
|
68
68
|
}
|
package/src/index.js
CHANGED
|
@@ -216,8 +216,10 @@ export async function discoverAnthropicModels({ baseURL, apiKey, signal, fetchIm
|
|
|
216
216
|
|
|
217
217
|
function configuredCredentialRef(ctx, provider) {
|
|
218
218
|
if (typeof provider !== 'string' || provider.length === 0) return undefined
|
|
219
|
-
const
|
|
220
|
-
|
|
219
|
+
const route = ctx.llm.listConfigurableProviders().find(entry => entry.provider === provider)
|
|
220
|
+
if (route === undefined) return undefined
|
|
221
|
+
const section = ctx.get('settings')?.describe().find(entry => entry.ns === route.settingsNs)?.value
|
|
222
|
+
const profile = route.settingsPath.reduce((value, key) => value?.[key], section)
|
|
221
223
|
const ref = profile?.apiKeyEnv
|
|
222
224
|
return typeof ref === 'string' && ref.length > 0 ? ref : undefined
|
|
223
225
|
}
|