@dsh-plus/subagent-model 0.3.1 → 0.3.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/lib/client.js +525 -59707
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -13
- package/lib/style.css +101 -1269
- package/package.json +10 -10
- package/src/service.ts +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-plus/subagent-model",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "dsh-plus service+ui plugin: 为 subagent/subagent_fork 等子代理按提供商配置模型与思考程度(或继承主代理)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -19,22 +19,22 @@
|
|
|
19
19
|
"src"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@dsh-plus/shared": "0.1.
|
|
22
|
+
"@dsh-plus/shared": "0.1.13"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
26
|
-
"@deepseek-ai/dsh-host-webserver": "
|
|
27
|
-
"@deepseek-ai/dsh-llm": "
|
|
28
|
-
"@deepseek-ai/dsh-settings": "
|
|
29
|
-
"@deepseek-ai/dsh-subagent": "
|
|
26
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.5-alpha.2",
|
|
27
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
|
|
28
|
+
"@deepseek-ai/dsh-settings": "^0.1.5-alpha.2",
|
|
29
|
+
"@deepseek-ai/dsh-subagent": "^0.1.5-alpha.2",
|
|
30
30
|
"@deepseek-ai/schemastery": "^3.18.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "4.0.2",
|
|
34
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.5-alpha.
|
|
35
|
-
"@deepseek-ai/dsh-llm": "0.1.5-alpha.
|
|
36
|
-
"@deepseek-ai/dsh-settings": "0.1.5-alpha.
|
|
37
|
-
"@deepseek-ai/dsh-subagent": "0.1.5-alpha.
|
|
34
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.5-alpha.2",
|
|
35
|
+
"@deepseek-ai/dsh-llm": "0.1.5-alpha.2",
|
|
36
|
+
"@deepseek-ai/dsh-settings": "0.1.5-alpha.2",
|
|
37
|
+
"@deepseek-ai/dsh-subagent": "0.1.5-alpha.2",
|
|
38
38
|
"@deepseek-ai/schemastery": "3.18.2",
|
|
39
39
|
"@types/node": "26.4.0",
|
|
40
40
|
"@types/react": "~18.3.31",
|
package/src/service.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* remote.settings 直连,settings.plugin.item 卡片见 client 半)。
|
|
10
10
|
* @module @dsh-plus/subagent-model
|
|
11
11
|
*/
|
|
12
|
-
import { Context
|
|
12
|
+
import type { Context } from '@deepseek-ai/cordis'
|
|
13
|
+
import { Service } from '@deepseek-ai/cordis'
|
|
13
14
|
|
|
14
15
|
import { Config, SETTINGS_NS, type SubagentModelConfig, validateEntries } from './config.ts'
|
|
15
16
|
import { registerCatalogApi } from './config-api.ts'
|
|
@@ -22,7 +23,9 @@ declare module '@deepseek-ai/cordis' {
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export class SubagentModelService extends Service {
|
|
25
|
-
static
|
|
26
|
+
// 普通 static inject:cordis 4.0.2 不存在 Context.inject 符号(computed key
|
|
27
|
+
// 会失效为 'undefined' 使声明无效);delegation 挂钩依赖此时序声明。
|
|
28
|
+
static inject = ['subagents', 'llm']
|
|
26
29
|
|
|
27
30
|
private current: () => SubagentModelConfig
|
|
28
31
|
|