@dsh-plus/subagent-model 0.3.2 → 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/lib/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
declare class SubagentModelService extends Service {
|
|
41
|
-
static
|
|
41
|
+
static inject: string[];
|
|
42
42
|
private current;
|
|
43
43
|
constructor(ctx: Context, config: SubagentModelConfig);
|
|
44
44
|
/** 当前生效配置(settings 用户层解析结果或 cordis 行级 config)。 */
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "@deepseek-ai/schemastery";
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from "@deepseek-ai/cordis";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/config.ts
|
|
5
5
|
/**
|
|
@@ -239,19 +239,8 @@ function installDelegationHook(ctx, current) {
|
|
|
239
239
|
}
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region src/service.ts
|
|
242
|
-
/**
|
|
243
|
-
* SubagentModelService:子代理模型配置中枢(host 半)。
|
|
244
|
-
* - 配置:installSection 接入 settings 用户层($DSH_HOME/settings.yaml,热生效),
|
|
245
|
-
* 无 settings provider 时退化为 cordis 行级 config;写入经 validate 钩子
|
|
246
|
-
* 走 validateEntries 规则(model 不能脱离 provider 等),非法即拒。
|
|
247
|
-
* - 委托挂钩:包装 ctx.subagents.start/startContinuable,按 provider 名
|
|
248
|
-
* (未命中回落 default 条目)注入 agentOptions(provider/model/effort)。
|
|
249
|
-
* - 自定义端点:ctx.webServer 仅注册模型目录路由(配置读写已走官方
|
|
250
|
-
* remote.settings 直连,settings.plugin.item 卡片见 client 半)。
|
|
251
|
-
* @module @dsh-plus/subagent-model
|
|
252
|
-
*/
|
|
253
242
|
var SubagentModelService = class extends Service {
|
|
254
|
-
static
|
|
243
|
+
static inject = ["subagents", "llm"];
|
|
255
244
|
current;
|
|
256
245
|
constructor(ctx, config) {
|
|
257
246
|
super(ctx, "subagentModel");
|