dsh-my-go 0.4.2 → 0.4.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/index.js +13 -11
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -589,19 +589,21 @@ export async function apply(ctx, config = {}) {
|
|
|
589
589
|
// mjs files degrades to defaults instead of failing the preset mount.
|
|
590
590
|
const mod = await import('@deepseek-ai/schemastery')
|
|
591
591
|
const z = mod.default ?? mod
|
|
592
|
+
// schemastery 字段默认 nullable(missing→undefined),.required() 才强制;
|
|
593
|
+
// 无 .optional() 方法——直接不加 .required() 即为可选。
|
|
592
594
|
const agentSchema = z.object({
|
|
593
|
-
provider: z.string(),
|
|
594
|
-
model: z.string(),
|
|
595
|
-
reasoningEffort: z.string(),
|
|
596
|
-
dsv4p0813: z.boolean(),
|
|
595
|
+
provider: z.string().default(''),
|
|
596
|
+
model: z.string().default(''),
|
|
597
|
+
reasoningEffort: z.string().default(''),
|
|
598
|
+
dsv4p0813: z.boolean().default(false),
|
|
597
599
|
// 错峰路由(peak routing):开启后按北京时间高峰/非高峰时段在
|
|
598
|
-
// 两套 provider/model
|
|
599
|
-
//
|
|
600
|
-
peakRouting: z.boolean()
|
|
601
|
-
peakProvider: z.string()
|
|
602
|
-
peakModel: z.string()
|
|
603
|
-
offpeakProvider: z.string()
|
|
604
|
-
offpeakModel: z.string()
|
|
600
|
+
// 两套 provider/model 之间切换。不加 .required() 即为可选,
|
|
601
|
+
// 旧存储配置无这些字段时自动兼容(missing→undefined)。
|
|
602
|
+
peakRouting: z.boolean(),
|
|
603
|
+
peakProvider: z.string(),
|
|
604
|
+
peakModel: z.string(),
|
|
605
|
+
offpeakProvider: z.string(),
|
|
606
|
+
offpeakModel: z.string(),
|
|
605
607
|
})
|
|
606
608
|
settingsScope = settings.register(
|
|
607
609
|
'dsh-my-go',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-my-go",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "DSH plugin: Sisyphus agent orchestration — star topology, single-line blocking, 7 specialist sub-agents (Hermes/Explore/Librarian/Looker/Hephaestus/Prometheus/Oracle) with per-type model binding, go_work/continue/need_help/forward communication tools, Web UI tree panel and settings.",
|
|
5
5
|
"author": "Tisitan",
|
|
6
6
|
"license": "MIT",
|