@linxin666/dsh-liangshen 0.4.5 → 0.4.7
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.i18n.yaml +2 -2
- package/README.md +21 -22
- package/README.zh.md +21 -22
- package/lib/client.js +62 -212
- package/lib/client.js.map +1 -1
- package/lib/index.js +18 -46
- package/lib/types/client/LiangShenMark.d.ts +13 -0
- package/lib/types/client/LiangShenSettingsCard.d.ts +12 -25
- package/lib/types/client/locales.d.ts +2 -14
- package/lib/types/client/plugin-card-seat.d.ts +5 -0
- package/lib/types/composition.d.ts +7 -15
- package/lib/types/index.d.ts +24 -54
- package/package.json +20 -20
- package/presets/liangshen/agent.cordis.yml +48 -36
- package/presets/liangshen/dispatcher-rules.mjs +190 -0
- package/presets/liangshen/minimal-prompt.mjs +75 -12
- package/presets/liangshen/tool-catalog.mjs +177 -67
- package/src/announce.test.ts +7 -13
- package/src/client/LiangShenMark.tsx +25 -0
- package/src/client/LiangShenSettingsCard.tsx +24 -87
- package/src/client/locales.ts +6 -30
- package/src/client/plugin-card-seat.ts +7 -0
- package/src/client/settings-entry-form.ts +0 -1
- package/src/composition.test.ts +39 -22
- package/src/composition.ts +8 -22
- package/src/index.test.ts +35 -10
- package/src/index.ts +30 -62
- package/tools/benchmark-live-run.mjs +12 -17
- package/tools/benchmark-report.mjs +4 -6
- package/presets/liangshen/guard.mjs +0 -426
package/lib/index.js
CHANGED
|
@@ -399,22 +399,16 @@ function readPresetDefinition(id, dir) {
|
|
|
399
399
|
}
|
|
400
400
|
/** The overlay table: settings field to composition row and config key. */
|
|
401
401
|
function overrideTargets(overrides) {
|
|
402
|
-
return [["tool-catalog", { ...overrides.presentation === void 0 ? {} : { presentation: overrides.presentation } }], ["
|
|
403
|
-
...overrides.guardEnabled === void 0 ? {} : { enabled: overrides.guardEnabled },
|
|
404
|
-
...overrides.guardSensitivity === void 0 ? {} : { sensitivity: overrides.guardSensitivity },
|
|
405
|
-
...overrides.guardStallReasoningChars === void 0 ? {} : { stallReasoningChars: overrides.guardStallReasoningChars },
|
|
406
|
-
...overrides.guardGlobalStallCap === void 0 ? {} : { globalStallCap: overrides.guardGlobalStallCap },
|
|
407
|
-
...overrides.guardEchoFailures === void 0 ? {} : { echoFailures: overrides.guardEchoFailures }
|
|
408
|
-
}]];
|
|
402
|
+
return [["tool-catalog", { ...overrides.presentation === void 0 ? {} : { presentation: overrides.presentation } }], ["minimal-prompt", { ...overrides.dispatcher === void 0 ? {} : { dispatcher: overrides.dispatcher } }]];
|
|
409
403
|
}
|
|
410
404
|
/**
|
|
411
405
|
* Apply the settings overlay to one parsed row list.
|
|
412
406
|
*
|
|
413
407
|
* Rows are addressed by their `id`, and only a row the composition actually
|
|
414
408
|
* carries is touched: the overlay narrows the shipped configuration, it never
|
|
415
|
-
* invents a mount the preset did not have.
|
|
416
|
-
*
|
|
417
|
-
*
|
|
409
|
+
* invents a mount the preset did not have. A field the settings surface left
|
|
410
|
+
* unset is written as no key at all rather than as a value, so the row keeps the
|
|
411
|
+
* value the composition declares.
|
|
418
412
|
* @param rows - the parsed composition rows.
|
|
419
413
|
* @param overrides - the operator's settings-surface choices.
|
|
420
414
|
* @returns a new row list with the overlay applied.
|
|
@@ -592,11 +586,10 @@ function mountOnce(packageName, fn) {
|
|
|
592
586
|
* The preset combines a minimal persona with a lifetime-declared tool
|
|
593
587
|
* presentation: the system prompt keeps a minimal persona with standing
|
|
594
588
|
* working discipline and workspace instructions, and the wire runs the SDK's
|
|
595
|
-
* '
|
|
596
|
-
*
|
|
597
|
-
*
|
|
598
|
-
* instead of staged across a turn boundary
|
|
599
|
-
* opt-outs). High-fan-out tool families
|
|
589
|
+
* 'ptc' presentation by default — the wire collapses to the `run_code`
|
|
590
|
+
* transport and every other tool is reached from inside the program through
|
|
591
|
+
* the generated SDK ('native' keeps the assembled roster alone), declared once
|
|
592
|
+
* per session instead of staged across a turn boundary. High-fan-out tool families
|
|
600
593
|
* (default `mcp__*`) stay paged out of the executed surface through the
|
|
601
594
|
* host's scoped tool restriction until the preset's own `tool_activate` tool
|
|
602
595
|
* loads their namespace (LRU cap three), with the activation state replayed
|
|
@@ -618,37 +611,19 @@ const LIANGSHEN_SETTINGS_NAMESPACE = "liangshen";
|
|
|
618
611
|
/** Prompt assembly must exist before the announcement section can register. */
|
|
619
612
|
const inject = ["systemPrompt"];
|
|
620
613
|
/** The wire presentations the preset's tool catalog accepts. */
|
|
621
|
-
const PRESENTATION_OPTIONS = [
|
|
622
|
-
"ptc",
|
|
623
|
-
"native",
|
|
624
|
-
"both"
|
|
625
|
-
];
|
|
626
|
-
/** Sensitivity presets for the circuit breaker's adaptive thresholds. */
|
|
627
|
-
const SENSITIVITY_OPTIONS = [
|
|
628
|
-
"conservative",
|
|
629
|
-
"balanced",
|
|
630
|
-
"aggressive"
|
|
631
|
-
];
|
|
614
|
+
const PRESENTATION_OPTIONS = ["ptc", "native"];
|
|
632
615
|
const Config = z.object({
|
|
633
616
|
enabled: z.boolean().default(true).volatile(),
|
|
634
617
|
announceToAgent: z.boolean().default(false).volatile(),
|
|
635
|
-
presentation: z.union([...PRESENTATION_OPTIONS]).default("
|
|
636
|
-
|
|
637
|
-
guardSensitivity: z.union([...SENSITIVITY_OPTIONS]).default("balanced").volatile(),
|
|
638
|
-
guardStallReasoningChars: z.number().default(8e3).volatile(),
|
|
639
|
-
guardGlobalStallCap: z.number().default(4).volatile(),
|
|
640
|
-
guardEchoFailures: z.number().default(3).volatile()
|
|
618
|
+
presentation: z.union([...PRESENTATION_OPTIONS, z.transform("both", () => "ptc").deprecated().hidden()]).default("ptc").volatile(),
|
|
619
|
+
dispatcher: z.boolean().default(true).volatile()
|
|
641
620
|
});
|
|
642
621
|
/** Schema defaults, re-read for hand-built test contexts. */
|
|
643
622
|
const DEFAULT_CONFIG = {
|
|
644
623
|
enabled: true,
|
|
645
624
|
announceToAgent: false,
|
|
646
|
-
presentation: "
|
|
647
|
-
|
|
648
|
-
guardSensitivity: "balanced",
|
|
649
|
-
guardStallReasoningChars: 8e3,
|
|
650
|
-
guardGlobalStallCap: 4,
|
|
651
|
-
guardEchoFailures: 3
|
|
625
|
+
presentation: "ptc",
|
|
626
|
+
dispatcher: true
|
|
652
627
|
};
|
|
653
628
|
/**
|
|
654
629
|
* Read one activation field. The Host validates the raw profile config and
|
|
@@ -668,19 +643,16 @@ function readField(field, fallback) {
|
|
|
668
643
|
* @returns every field resolved against the schema defaults.
|
|
669
644
|
*/
|
|
670
645
|
function resolveConfig(config) {
|
|
646
|
+
const rawPresentation = readField(config?.presentation, DEFAULT_CONFIG.presentation);
|
|
671
647
|
return {
|
|
672
648
|
enabled: readField(config?.enabled, DEFAULT_CONFIG.enabled),
|
|
673
649
|
announceToAgent: readField(config?.announceToAgent, DEFAULT_CONFIG.announceToAgent),
|
|
674
|
-
presentation:
|
|
675
|
-
|
|
676
|
-
guardSensitivity: readField(config?.guardSensitivity, DEFAULT_CONFIG.guardSensitivity),
|
|
677
|
-
guardStallReasoningChars: readField(config?.guardStallReasoningChars, DEFAULT_CONFIG.guardStallReasoningChars),
|
|
678
|
-
guardGlobalStallCap: readField(config?.guardGlobalStallCap, DEFAULT_CONFIG.guardGlobalStallCap),
|
|
679
|
-
guardEchoFailures: readField(config?.guardEchoFailures, DEFAULT_CONFIG.guardEchoFailures)
|
|
650
|
+
presentation: rawPresentation === "both" ? "ptc" : rawPresentation,
|
|
651
|
+
dispatcher: readField(config?.dispatcher, DEFAULT_CONFIG.dispatcher)
|
|
680
652
|
};
|
|
681
653
|
}
|
|
682
654
|
/** Model-facing announcement: plugin presence, principle, and limits. */
|
|
683
|
-
const LIANGSHEN_GUIDANCE = "本机已安装 dsh-liangshen 插件(梁神模式 agent preset):新建会话的预设选择器中可选「梁神模式」。原理:系统提示词保持极简 persona(minimal-prompt 放行该段与 plan 模式的 plan:policy),persona 内置本模式工作纪律(反思熔断——同一假设推演不超过两轮、缺事实立即闭合思考并调用原生检测工具;行动导向——思考只决定下一步具体操作、不在思考中预演代码实现;并发探索——多处独立检查或搜索在单轮内并发发射多个工具调用;YAGNI/PDCA——单步验证单一假设、不写冗余注释;有界收敛——不无限下钻依赖链、前置检查最多2-3轮后立即收敛并作答或编辑),并在组装时追加工作区目录行 Your working directory is <cwd>.。AGENTS.md 工作区指令默认交还宿主自身的 agent-instructions 行,以 user 角色注入,本插件不追加任何系统提示词段、也不改动 pre-step 的消息批次;可选 instructionSource: system-prompt 才由本插件在组装时读取 AGENTS.md 链并追加 workspace-instructions 段(65536 字节预算,每次组装重读)。wire 呈现由 tool-catalog 按会话一次声明,取值 '
|
|
655
|
+
const LIANGSHEN_GUIDANCE = "本机已安装 dsh-liangshen 插件(梁神模式 agent preset):新建会话的预设选择器中可选「梁神模式」。原理:系统提示词保持极简 persona(minimal-prompt 放行该段与 plan 模式的 plan:policy),persona 内置本模式工作纪律(反思熔断——同一假设推演不超过两轮、缺事实立即闭合思考并调用原生检测工具;行动导向——思考只决定下一步具体操作、不在思考中预演代码实现;并发探索——多处独立检查或搜索在单轮内并发发射多个工具调用;YAGNI/PDCA——单步验证单一假设、不写冗余注释;有界收敛——不无限下钻依赖链、前置检查最多2-3轮后立即收敛并作答或编辑),并在组装时追加工作区目录行 Your working directory is <cwd>.。AGENTS.md 工作区指令默认交还宿主自身的 agent-instructions 行,以 user 角色注入,本插件不追加任何系统提示词段、也不改动 pre-step 的消息批次;可选 instructionSource: system-prompt 才由本插件在组装时读取 AGENTS.md 链并追加 workspace-instructions 段(65536 字节预算,每次组装重读)。wire 呈现由 tool-catalog 按会话一次声明,取值 'ptc'(默认:wire 收拢为唯一的 run_code,其余工具经生成的 SDK 调用)或 'native'(组装出的原生清单,无程序化传输),并可在插件设置界面切换(写入所声明预设的 tool-catalog 行);未挂载 code runtime 时不做声明,会话运行原生工具面。温和工具分页出厂开启(pagedToolPatterns 默认 ['mcp__*']):匹配工具在激活前被作用域级工具限制移出可见面(既不在 wire,也不在生成的 SDK 声明中),目录消息列出常驻工具签名与未激活命名空间摘要,调用 tool_activate({ namespace }) 按需激活(LRU 上限 3 个活跃命名空间,驱逐最久未用);激活状态从持久会话事件流重建,resume/压缩后自然恢复。关键事实登记簿(fact_register)让模型把硬约束/已确认决策/失败路径登记为单行事实,随 working-context 行每步投射进局部注意力窗口。working-context 插件在 pre-step 注入单行 [Working Context: ...] 就近状态投射(plan 模式、活跃命名空间、进行中 todo、登记事实,全部从事件流折叠,读不到则省略,全部为空则不注入)。历史工具结果修剪为 4096 字符阈值(head 2048 / tail 1024)。文件操作受宿主沙箱约束;shell 在每个平台都挂上游标准 Stdio 栈(POSIX 为 bash,Windows 为 pwsh),带简短描述标题卡片与确定性退出码。真实推理探针通过不等于模式集成通过,更不等于统计效果提升。预设由插件在激活时向 agent-preset registry 直接注册(不写任何预设目录),插件停用即注销;默认预设由用户自行选择。用户提到「梁神模式 / 锚定模式 / anchored standard」时即指本插件,请据此协作。";
|
|
684
656
|
/** Order of the announcement section within the tool-guidance band. */
|
|
685
657
|
const SECTION_ORDER = 150;
|
|
686
658
|
/**
|
|
@@ -844,4 +816,4 @@ function applyImpl(ctx, config) {
|
|
|
844
816
|
}, "dsh-liangshen: preset declaration and announcement");
|
|
845
817
|
}
|
|
846
818
|
//#endregion
|
|
847
|
-
export { Config, DEFAULT_CONFIG, LIANGSHEN_GUIDANCE, LIANGSHEN_SETTINGS_NAMESPACE, PRESENTATION_OPTIONS,
|
|
819
|
+
export { Config, DEFAULT_CONFIG, LIANGSHEN_GUIDANCE, LIANGSHEN_SETTINGS_NAMESPACE, PRESENTATION_OPTIONS, apply, bundledPresetDir, inject, name, resolveConfig };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card mark for the LiangShen settings entry: the mode's machine is a
|
|
3
|
+
* slot-machine lever, so the mark is that lever reduced to one knob, one arm
|
|
4
|
+
* and one pivot foot. Three rounded shapes with no interior detail stay
|
|
5
|
+
* legible at 18px, and every shape is painted with `currentColor` so the mark
|
|
6
|
+
* follows the surrounding theme like the lever itself does.
|
|
7
|
+
*/
|
|
8
|
+
import type { ReactElement } from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Render the LiangShen card mark.
|
|
11
|
+
* @returns the 18x18 lever mark, in the current text color.
|
|
12
|
+
*/
|
|
13
|
+
export declare function LiangShenMark(): ReactElement;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* LiangShen settings card: availability
|
|
3
|
-
* into the `web-ui.plugin.item` child slot the
|
|
4
|
-
* bound to the `liangshen` settings namespace
|
|
2
|
+
* LiangShen settings card: availability, the wire presentation, and the
|
|
3
|
+
* dispatcher identity. Registers into the `web-ui.plugin.item` child slot the
|
|
4
|
+
* Web UI plugin group renders, bound to the `liangshen` settings namespace
|
|
5
|
+
* (the Host profile entry id).
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* to the preset it declares to the agent-preset registry, so
|
|
8
|
-
* from its preset.
|
|
9
|
-
* every field the Host schema carries appears here.
|
|
7
|
+
* No field acts on this client half: the Host applies the presentation and the
|
|
8
|
+
* dispatcher switch to the preset it declares to the agent-preset registry, so
|
|
9
|
+
* a session reads both from its preset. The card is the operator's only handle
|
|
10
|
+
* on them, which is why every field the Host schema carries appears here.
|
|
10
11
|
*/
|
|
11
12
|
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
12
13
|
import type { SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
13
14
|
import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client';
|
|
14
15
|
import { type CardActions, type CardShell, type FieldState as CardFieldState } from './settings-form.ts';
|
|
15
16
|
/** Wire presentations the tool catalog accepts (mirrors the Host schema). */
|
|
16
|
-
export declare const PRESENTATION_CHOICES: readonly ["ptc", "native"
|
|
17
|
-
/** Sensitivity presets for the circuit breaker (mirrors the Host schema). */
|
|
18
|
-
export declare const SENSITIVITY_CHOICES: readonly ["conservative", "balanced", "aggressive"];
|
|
17
|
+
export declare const PRESENTATION_CHOICES: readonly ["ptc", "native"];
|
|
19
18
|
/** The LiangShen fields this card edits (the namespace's full schema). */
|
|
20
19
|
export interface LiangShenSettings {
|
|
21
20
|
/** Master switch for the plugin. */
|
|
@@ -24,27 +23,15 @@ export interface LiangShenSettings {
|
|
|
24
23
|
announceToAgent?: boolean;
|
|
25
24
|
/** Wire presentation the Host applies to the preset's tool-catalog row. */
|
|
26
25
|
presentation?: string;
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
/** Sensitivity preset scaling the breaker's adaptive thresholds. */
|
|
30
|
-
guardSensitivity?: string;
|
|
31
|
-
/** Per-step reasoning-character floor for the breaker's runaway ladder. */
|
|
32
|
-
guardStallReasoningChars?: number;
|
|
33
|
-
/** Consecutive output-free reasoning steps for the breaker's slow-burn ladder. */
|
|
34
|
-
guardGlobalStallCap?: number;
|
|
35
|
-
/** Identical-argument tool failures for the breaker's echo ladder. */
|
|
36
|
-
guardEchoFailures?: number;
|
|
26
|
+
/** Whether the preset appends the dispatcher rules section after the persona. */
|
|
27
|
+
dispatcher?: boolean;
|
|
37
28
|
}
|
|
38
29
|
/** What the LiangShen card renders. */
|
|
39
30
|
export interface LiangShenSettingsCardState extends CardShell {
|
|
40
31
|
enabled: CardFieldState;
|
|
41
32
|
announceToAgent: CardFieldState;
|
|
42
33
|
presentation: CardFieldState;
|
|
43
|
-
|
|
44
|
-
guardSensitivity: CardFieldState;
|
|
45
|
-
guardStallReasoningChars: CardFieldState;
|
|
46
|
-
guardGlobalStallCap: CardFieldState;
|
|
47
|
-
guardEchoFailures: CardFieldState;
|
|
34
|
+
dispatcher: CardFieldState;
|
|
48
35
|
}
|
|
49
36
|
/** The registration-side face the card's slot entry injects. */
|
|
50
37
|
export interface LiangShenSettingsCardFace extends CardActions {
|
|
@@ -28,6 +28,8 @@ export declare const zh: {
|
|
|
28
28
|
'settings.announceToAgentHint': string;
|
|
29
29
|
'settings.presentation': string;
|
|
30
30
|
'settings.presentationHint': string;
|
|
31
|
+
'settings.dispatcher': string;
|
|
32
|
+
'settings.dispatcherHint': string;
|
|
31
33
|
'settings.on': string;
|
|
32
34
|
'settings.off': string;
|
|
33
35
|
'settings.inherit': string;
|
|
@@ -45,20 +47,6 @@ export declare const zh: {
|
|
|
45
47
|
'settings.invalidValue': string;
|
|
46
48
|
'presentation.ptc': string;
|
|
47
49
|
'presentation.native': string;
|
|
48
|
-
'presentation.both': string;
|
|
49
|
-
'settings.guardEnabled': string;
|
|
50
|
-
'settings.guardEnabledHint': string;
|
|
51
|
-
'settings.guardStallChars': string;
|
|
52
|
-
'settings.guardStallCharsHint': string;
|
|
53
|
-
'settings.guardGlobalCap': string;
|
|
54
|
-
'settings.guardGlobalCapHint': string;
|
|
55
|
-
'settings.guardSensitivity': string;
|
|
56
|
-
'settings.guardSensitivityHint': string;
|
|
57
|
-
'sensitivity.conservative': string;
|
|
58
|
-
'sensitivity.balanced': string;
|
|
59
|
-
'sensitivity.aggressive': string;
|
|
60
|
-
'settings.guardEchoFailures': string;
|
|
61
|
-
'settings.guardEchoFailuresHint': string;
|
|
62
50
|
};
|
|
63
51
|
/** English counterpart; the key set mirrors {@link zh} exactly. */
|
|
64
52
|
export declare const en: Record<keyof typeof zh, string>;
|
|
@@ -78,6 +78,11 @@ export interface PluginCardSeat {
|
|
|
78
78
|
label?: () => string;
|
|
79
79
|
/** Locale namespace the card renders with. */
|
|
80
80
|
locale: string;
|
|
81
|
+
/**
|
|
82
|
+
* Child slots this card declares and renders. Forwarded to whichever seat
|
|
83
|
+
* the host renders; absent for a card that declares none.
|
|
84
|
+
*/
|
|
85
|
+
children?: Record<string, unknown>;
|
|
81
86
|
/** Business-face factory of the registration. */
|
|
82
87
|
inject?: () => object;
|
|
83
88
|
/**
|
|
@@ -84,31 +84,23 @@ export declare function readPresetDefinition(id: string, dir: string): PresetDef
|
|
|
84
84
|
*
|
|
85
85
|
* The settings surface edits the PLUGIN's own Config, while the values that
|
|
86
86
|
* shape a session live in the declared preset's rows; applying them here is what
|
|
87
|
-
* connects the two. Every field is optional
|
|
88
|
-
*
|
|
87
|
+
* connects the two. Every field is optional, and an absent OR `undefined` value
|
|
88
|
+
* writes nothing at all — the key stays out of the row.
|
|
89
89
|
*/
|
|
90
90
|
export interface PresetOverrides {
|
|
91
91
|
/** The `tool-catalog` row's `presentation` value. */
|
|
92
92
|
presentation?: string;
|
|
93
|
-
/** The `
|
|
94
|
-
|
|
95
|
-
/** The `guard` row's sensitivity preset. */
|
|
96
|
-
guardSensitivity?: string;
|
|
97
|
-
/** The `guard` row's per-step reasoning-character floor. */
|
|
98
|
-
guardStallReasoningChars?: number;
|
|
99
|
-
/** The `guard` row's slow-burn step cap. */
|
|
100
|
-
guardGlobalStallCap?: number;
|
|
101
|
-
/** The `guard` row's identical-argument failure count. */
|
|
102
|
-
guardEchoFailures?: number;
|
|
93
|
+
/** The `minimal-prompt` row's `dispatcher` switch. */
|
|
94
|
+
dispatcher?: boolean;
|
|
103
95
|
}
|
|
104
96
|
/**
|
|
105
97
|
* Apply the settings overlay to one parsed row list.
|
|
106
98
|
*
|
|
107
99
|
* Rows are addressed by their `id`, and only a row the composition actually
|
|
108
100
|
* carries is touched: the overlay narrows the shipped configuration, it never
|
|
109
|
-
* invents a mount the preset did not have.
|
|
110
|
-
*
|
|
111
|
-
*
|
|
101
|
+
* invents a mount the preset did not have. A field the settings surface left
|
|
102
|
+
* unset is written as no key at all rather than as a value, so the row keeps the
|
|
103
|
+
* value the composition declares.
|
|
112
104
|
* @param rows - the parsed composition rows.
|
|
113
105
|
* @param overrides - the operator's settings-surface choices.
|
|
114
106
|
* @returns a new row list with the overlay applied.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -19,11 +19,10 @@
|
|
|
19
19
|
* The preset combines a minimal persona with a lifetime-declared tool
|
|
20
20
|
* presentation: the system prompt keeps a minimal persona with standing
|
|
21
21
|
* working discipline and workspace instructions, and the wire runs the SDK's
|
|
22
|
-
* '
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* instead of staged across a turn boundary
|
|
26
|
-
* opt-outs). High-fan-out tool families
|
|
22
|
+
* 'ptc' presentation by default — the wire collapses to the `run_code`
|
|
23
|
+
* transport and every other tool is reached from inside the program through
|
|
24
|
+
* the generated SDK ('native' keeps the assembled roster alone), declared once
|
|
25
|
+
* per session instead of staged across a turn boundary. High-fan-out tool families
|
|
27
26
|
* (default `mcp__*`) stay paged out of the executed surface through the
|
|
28
27
|
* host's scoped tool restriction until the preset's own `tool_activate` tool
|
|
29
28
|
* loads their namespace (LRU cap three), with the activation state replayed
|
|
@@ -48,13 +47,9 @@ export declare const LIANGSHEN_SETTINGS_NAMESPACE: SettingsNamespace;
|
|
|
48
47
|
/** Prompt assembly must exist before the announcement section can register. */
|
|
49
48
|
export declare const inject: string[];
|
|
50
49
|
/** The wire presentations the preset's tool catalog accepts. */
|
|
51
|
-
export declare const PRESENTATION_OPTIONS: readonly ["ptc", "native"
|
|
52
|
-
/** Sensitivity presets for the circuit breaker's adaptive thresholds. */
|
|
53
|
-
export declare const SENSITIVITY_OPTIONS: readonly ["conservative", "balanced", "aggressive"];
|
|
50
|
+
export declare const PRESENTATION_OPTIONS: readonly ["ptc", "native"];
|
|
54
51
|
/** One wire presentation. */
|
|
55
52
|
export type Presentation = (typeof PRESENTATION_OPTIONS)[number];
|
|
56
|
-
/** One circuit-breaker sensitivity preset. */
|
|
57
|
-
export type GuardSensitivity = (typeof SENSITIVITY_OPTIONS)[number];
|
|
58
53
|
/**
|
|
59
54
|
* One activation field as the Host hands it over: a stable reference whose
|
|
60
55
|
* `get()` reads the value committed for this instance (a settings write updates
|
|
@@ -77,49 +72,32 @@ export interface Config {
|
|
|
77
72
|
announceToAgent?: ConfigField<boolean>;
|
|
78
73
|
/**
|
|
79
74
|
* Wire presentation written into the declared preset's tool-catalog row.
|
|
80
|
-
* `
|
|
81
|
-
*
|
|
82
|
-
* the
|
|
75
|
+
* `ptc` (default) collapses the wire to the single `run_code` transport and
|
|
76
|
+
* reaches every other tool through the generated SDK; `native` keeps the
|
|
77
|
+
* assembled roster alone. Legacy `'both'` (the pre-0.2.1 shipped default) is
|
|
78
|
+
* accepted from older saved profiles and normalized to `'ptc'`.
|
|
83
79
|
*/
|
|
84
|
-
presentation?: ConfigField<Presentation>;
|
|
85
|
-
/** Master switch for the runtime degeneration circuit breaker (default true). */
|
|
86
|
-
guardEnabled?: ConfigField<boolean>;
|
|
80
|
+
presentation?: ConfigField<Presentation | 'both'>;
|
|
87
81
|
/**
|
|
88
|
-
*
|
|
89
|
-
*
|
|
82
|
+
* When true, the preset appends the dispatcher rule block to its persona:
|
|
83
|
+
* the session becomes a dispatch agent whose deliverable is the plan, the
|
|
84
|
+
* task book, the review verdict, and the hand-off, on top of the mode's own
|
|
85
|
+
* working discipline. Orthogonal to `presentation` — the tool wire is the
|
|
86
|
+
* same either way. Default true: the shipped preset runs as a dispatcher,
|
|
87
|
+
* and the switch is what returns a session to the bare persona.
|
|
90
88
|
*/
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Reasoning characters one zero-output step must reach for the per-step
|
|
94
|
-
* ladder to fire (default 8000, calibrated against V4.1's 384K max output).
|
|
95
|
-
*/
|
|
96
|
-
guardStallReasoningChars?: ConfigField<number>;
|
|
97
|
-
/**
|
|
98
|
-
* Consecutive output-free reasoning steps that trip the slow-burn ladder
|
|
99
|
-
* (default 4).
|
|
100
|
-
*/
|
|
101
|
-
guardGlobalStallCap?: ConfigField<number>;
|
|
102
|
-
/** Identical-argument tool failures in a row that trip the echo ladder (default 3). */
|
|
103
|
-
guardEchoFailures?: ConfigField<number>;
|
|
89
|
+
dispatcher?: ConfigField<boolean>;
|
|
104
90
|
}
|
|
105
91
|
export declare const Config: z<Schemastery.ObjectS<NoInfer<{
|
|
106
92
|
enabled: z<boolean, boolean, "volatile-defined">;
|
|
107
93
|
announceToAgent: z<boolean, boolean, "volatile-defined">;
|
|
108
|
-
presentation: z<
|
|
109
|
-
|
|
110
|
-
guardSensitivity: z<"conservative" | "balanced" | "aggressive", "conservative" | "balanced" | "aggressive", "volatile-defined">;
|
|
111
|
-
guardStallReasoningChars: z<number, number, "volatile-defined">;
|
|
112
|
-
guardGlobalStallCap: z<number, number, "volatile-defined">;
|
|
113
|
-
guardEchoFailures: z<number, number, "volatile-defined">;
|
|
94
|
+
presentation: z<string, "ptc" | "native", "volatile-defined">;
|
|
95
|
+
dispatcher: z<boolean, boolean, "volatile-defined">;
|
|
114
96
|
}>>, Schemastery.ObjectT<NoInfer<{
|
|
115
97
|
enabled: z<boolean, boolean, "volatile-defined">;
|
|
116
98
|
announceToAgent: z<boolean, boolean, "volatile-defined">;
|
|
117
|
-
presentation: z<
|
|
118
|
-
|
|
119
|
-
guardSensitivity: z<"conservative" | "balanced" | "aggressive", "conservative" | "balanced" | "aggressive", "volatile-defined">;
|
|
120
|
-
guardStallReasoningChars: z<number, number, "volatile-defined">;
|
|
121
|
-
guardGlobalStallCap: z<number, number, "volatile-defined">;
|
|
122
|
-
guardEchoFailures: z<number, number, "volatile-defined">;
|
|
99
|
+
presentation: z<string, "ptc" | "native", "volatile-defined">;
|
|
100
|
+
dispatcher: z<boolean, boolean, "volatile-defined">;
|
|
123
101
|
}>>, "plain">;
|
|
124
102
|
/** The settings the runtime acts on, every field read at its use site. */
|
|
125
103
|
export interface ResolvedConfig {
|
|
@@ -129,16 +107,8 @@ export interface ResolvedConfig {
|
|
|
129
107
|
announceToAgent: boolean;
|
|
130
108
|
/** Wire presentation the declared preset's tool-catalog row carries. */
|
|
131
109
|
presentation: Presentation;
|
|
132
|
-
/**
|
|
133
|
-
|
|
134
|
-
/** Breaker sensitivity written into the declared preset's guard row. */
|
|
135
|
-
guardSensitivity: GuardSensitivity;
|
|
136
|
-
/** Per-step reasoning-character floor written into the guard row. */
|
|
137
|
-
guardStallReasoningChars: number;
|
|
138
|
-
/** Slow-burn step cap written into the guard row. */
|
|
139
|
-
guardGlobalStallCap: number;
|
|
140
|
-
/** Echo-ladder failure count written into the guard row. */
|
|
141
|
-
guardEchoFailures: number;
|
|
110
|
+
/** Whether the declared preset's minimal-prompt row appends the dispatcher rule block. */
|
|
111
|
+
dispatcher: boolean;
|
|
142
112
|
}
|
|
143
113
|
/** Schema defaults, re-read for hand-built test contexts. */
|
|
144
114
|
export declare const DEFAULT_CONFIG: ResolvedConfig;
|
|
@@ -149,7 +119,7 @@ export declare const DEFAULT_CONFIG: ResolvedConfig;
|
|
|
149
119
|
*/
|
|
150
120
|
export declare function resolveConfig(config?: Config): ResolvedConfig;
|
|
151
121
|
/** Model-facing announcement: plugin presence, principle, and limits. */
|
|
152
|
-
export declare const LIANGSHEN_GUIDANCE = "\u672C\u673A\u5DF2\u5B89\u88C5 dsh-liangshen \u63D2\u4EF6\uFF08\u6881\u795E\u6A21\u5F0F agent preset\uFF09\uFF1A\u65B0\u5EFA\u4F1A\u8BDD\u7684\u9884\u8BBE\u9009\u62E9\u5668\u4E2D\u53EF\u9009\u300C\u6881\u795E\u6A21\u5F0F\u300D\u3002\u539F\u7406\uFF1A\u7CFB\u7EDF\u63D0\u793A\u8BCD\u4FDD\u6301\u6781\u7B80 persona\uFF08minimal-prompt \u653E\u884C\u8BE5\u6BB5\u4E0E plan \u6A21\u5F0F\u7684 plan:policy\uFF09\uFF0Cpersona \u5185\u7F6E\u672C\u6A21\u5F0F\u5DE5\u4F5C\u7EAA\u5F8B\uFF08\u53CD\u601D\u7194\u65AD\u2014\u2014\u540C\u4E00\u5047\u8BBE\u63A8\u6F14\u4E0D\u8D85\u8FC7\u4E24\u8F6E\u3001\u7F3A\u4E8B\u5B9E\u7ACB\u5373\u95ED\u5408\u601D\u8003\u5E76\u8C03\u7528\u539F\u751F\u68C0\u6D4B\u5DE5\u5177\uFF1B\u884C\u52A8\u5BFC\u5411\u2014\u2014\u601D\u8003\u53EA\u51B3\u5B9A\u4E0B\u4E00\u6B65\u5177\u4F53\u64CD\u4F5C\u3001\u4E0D\u5728\u601D\u8003\u4E2D\u9884\u6F14\u4EE3\u7801\u5B9E\u73B0\uFF1B\u5E76\u53D1\u63A2\u7D22\u2014\u2014\u591A\u5904\u72EC\u7ACB\u68C0\u67E5\u6216\u641C\u7D22\u5728\u5355\u8F6E\u5185\u5E76\u53D1\u53D1\u5C04\u591A\u4E2A\u5DE5\u5177\u8C03\u7528\uFF1BYAGNI/PDCA\u2014\u2014\u5355\u6B65\u9A8C\u8BC1\u5355\u4E00\u5047\u8BBE\u3001\u4E0D\u5199\u5197\u4F59\u6CE8\u91CA\uFF1B\u6709\u754C\u6536\u655B\u2014\u2014\u4E0D\u65E0\u9650\u4E0B\u94BB\u4F9D\u8D56\u94FE\u3001\u524D\u7F6E\u68C0\u67E5\u6700\u591A2-3\u8F6E\u540E\u7ACB\u5373\u6536\u655B\u5E76\u4F5C\u7B54\u6216\u7F16\u8F91\uFF09\uFF0C\u5E76\u5728\u7EC4\u88C5\u65F6\u8FFD\u52A0\u5DE5\u4F5C\u533A\u76EE\u5F55\u884C Your working directory is <cwd>.\u3002AGENTS.md \u5DE5\u4F5C\u533A\u6307\u4EE4\u9ED8\u8BA4\u4EA4\u8FD8\u5BBF\u4E3B\u81EA\u8EAB\u7684 agent-instructions \u884C\uFF0C\u4EE5 user \u89D2\u8272\u6CE8\u5165\uFF0C\u672C\u63D2\u4EF6\u4E0D\u8FFD\u52A0\u4EFB\u4F55\u7CFB\u7EDF\u63D0\u793A\u8BCD\u6BB5\u3001\u4E5F\u4E0D\u6539\u52A8 pre-step \u7684\u6D88\u606F\u6279\u6B21\uFF1B\u53EF\u9009 instructionSource: system-prompt \u624D\u7531\u672C\u63D2\u4EF6\u5728\u7EC4\u88C5\u65F6\u8BFB\u53D6 AGENTS.md \u94FE\u5E76\u8FFD\u52A0 workspace-instructions \u6BB5\uFF0865536 \u5B57\u8282\u9884\u7B97\uFF0C\u6BCF\u6B21\u7EC4\u88C5\u91CD\u8BFB\uFF09\u3002wire \u5448\u73B0\u7531 tool-catalog \u6309\u4F1A\u8BDD\u4E00\u6B21\u58F0\u660E\uFF0C\u53D6\u503C '
|
|
122
|
+
export declare const LIANGSHEN_GUIDANCE = "\u672C\u673A\u5DF2\u5B89\u88C5 dsh-liangshen \u63D2\u4EF6\uFF08\u6881\u795E\u6A21\u5F0F agent preset\uFF09\uFF1A\u65B0\u5EFA\u4F1A\u8BDD\u7684\u9884\u8BBE\u9009\u62E9\u5668\u4E2D\u53EF\u9009\u300C\u6881\u795E\u6A21\u5F0F\u300D\u3002\u539F\u7406\uFF1A\u7CFB\u7EDF\u63D0\u793A\u8BCD\u4FDD\u6301\u6781\u7B80 persona\uFF08minimal-prompt \u653E\u884C\u8BE5\u6BB5\u4E0E plan \u6A21\u5F0F\u7684 plan:policy\uFF09\uFF0Cpersona \u5185\u7F6E\u672C\u6A21\u5F0F\u5DE5\u4F5C\u7EAA\u5F8B\uFF08\u53CD\u601D\u7194\u65AD\u2014\u2014\u540C\u4E00\u5047\u8BBE\u63A8\u6F14\u4E0D\u8D85\u8FC7\u4E24\u8F6E\u3001\u7F3A\u4E8B\u5B9E\u7ACB\u5373\u95ED\u5408\u601D\u8003\u5E76\u8C03\u7528\u539F\u751F\u68C0\u6D4B\u5DE5\u5177\uFF1B\u884C\u52A8\u5BFC\u5411\u2014\u2014\u601D\u8003\u53EA\u51B3\u5B9A\u4E0B\u4E00\u6B65\u5177\u4F53\u64CD\u4F5C\u3001\u4E0D\u5728\u601D\u8003\u4E2D\u9884\u6F14\u4EE3\u7801\u5B9E\u73B0\uFF1B\u5E76\u53D1\u63A2\u7D22\u2014\u2014\u591A\u5904\u72EC\u7ACB\u68C0\u67E5\u6216\u641C\u7D22\u5728\u5355\u8F6E\u5185\u5E76\u53D1\u53D1\u5C04\u591A\u4E2A\u5DE5\u5177\u8C03\u7528\uFF1BYAGNI/PDCA\u2014\u2014\u5355\u6B65\u9A8C\u8BC1\u5355\u4E00\u5047\u8BBE\u3001\u4E0D\u5199\u5197\u4F59\u6CE8\u91CA\uFF1B\u6709\u754C\u6536\u655B\u2014\u2014\u4E0D\u65E0\u9650\u4E0B\u94BB\u4F9D\u8D56\u94FE\u3001\u524D\u7F6E\u68C0\u67E5\u6700\u591A2-3\u8F6E\u540E\u7ACB\u5373\u6536\u655B\u5E76\u4F5C\u7B54\u6216\u7F16\u8F91\uFF09\uFF0C\u5E76\u5728\u7EC4\u88C5\u65F6\u8FFD\u52A0\u5DE5\u4F5C\u533A\u76EE\u5F55\u884C Your working directory is <cwd>.\u3002AGENTS.md \u5DE5\u4F5C\u533A\u6307\u4EE4\u9ED8\u8BA4\u4EA4\u8FD8\u5BBF\u4E3B\u81EA\u8EAB\u7684 agent-instructions \u884C\uFF0C\u4EE5 user \u89D2\u8272\u6CE8\u5165\uFF0C\u672C\u63D2\u4EF6\u4E0D\u8FFD\u52A0\u4EFB\u4F55\u7CFB\u7EDF\u63D0\u793A\u8BCD\u6BB5\u3001\u4E5F\u4E0D\u6539\u52A8 pre-step \u7684\u6D88\u606F\u6279\u6B21\uFF1B\u53EF\u9009 instructionSource: system-prompt \u624D\u7531\u672C\u63D2\u4EF6\u5728\u7EC4\u88C5\u65F6\u8BFB\u53D6 AGENTS.md \u94FE\u5E76\u8FFD\u52A0 workspace-instructions \u6BB5\uFF0865536 \u5B57\u8282\u9884\u7B97\uFF0C\u6BCF\u6B21\u7EC4\u88C5\u91CD\u8BFB\uFF09\u3002wire \u5448\u73B0\u7531 tool-catalog \u6309\u4F1A\u8BDD\u4E00\u6B21\u58F0\u660E\uFF0C\u53D6\u503C 'ptc'\uFF08\u9ED8\u8BA4\uFF1Awire \u6536\u62E2\u4E3A\u552F\u4E00\u7684 run_code\uFF0C\u5176\u4F59\u5DE5\u5177\u7ECF\u751F\u6210\u7684 SDK \u8C03\u7528\uFF09\u6216 'native'\uFF08\u7EC4\u88C5\u51FA\u7684\u539F\u751F\u6E05\u5355\uFF0C\u65E0\u7A0B\u5E8F\u5316\u4F20\u8F93\uFF09\uFF0C\u5E76\u53EF\u5728\u63D2\u4EF6\u8BBE\u7F6E\u754C\u9762\u5207\u6362\uFF08\u5199\u5165\u6240\u58F0\u660E\u9884\u8BBE\u7684 tool-catalog \u884C\uFF09\uFF1B\u672A\u6302\u8F7D code runtime \u65F6\u4E0D\u505A\u58F0\u660E\uFF0C\u4F1A\u8BDD\u8FD0\u884C\u539F\u751F\u5DE5\u5177\u9762\u3002\u6E29\u548C\u5DE5\u5177\u5206\u9875\u51FA\u5382\u5F00\u542F\uFF08pagedToolPatterns \u9ED8\u8BA4 ['mcp__*']\uFF09\uFF1A\u5339\u914D\u5DE5\u5177\u5728\u6FC0\u6D3B\u524D\u88AB\u4F5C\u7528\u57DF\u7EA7\u5DE5\u5177\u9650\u5236\u79FB\u51FA\u53EF\u89C1\u9762\uFF08\u65E2\u4E0D\u5728 wire\uFF0C\u4E5F\u4E0D\u5728\u751F\u6210\u7684 SDK \u58F0\u660E\u4E2D\uFF09\uFF0C\u76EE\u5F55\u6D88\u606F\u5217\u51FA\u5E38\u9A7B\u5DE5\u5177\u7B7E\u540D\u4E0E\u672A\u6FC0\u6D3B\u547D\u540D\u7A7A\u95F4\u6458\u8981\uFF0C\u8C03\u7528 tool_activate({ namespace }) \u6309\u9700\u6FC0\u6D3B\uFF08LRU \u4E0A\u9650 3 \u4E2A\u6D3B\u8DC3\u547D\u540D\u7A7A\u95F4\uFF0C\u9A71\u9010\u6700\u4E45\u672A\u7528\uFF09\uFF1B\u6FC0\u6D3B\u72B6\u6001\u4ECE\u6301\u4E45\u4F1A\u8BDD\u4E8B\u4EF6\u6D41\u91CD\u5EFA\uFF0Cresume/\u538B\u7F29\u540E\u81EA\u7136\u6062\u590D\u3002\u5173\u952E\u4E8B\u5B9E\u767B\u8BB0\u7C3F\uFF08fact_register\uFF09\u8BA9\u6A21\u578B\u628A\u786C\u7EA6\u675F/\u5DF2\u786E\u8BA4\u51B3\u7B56/\u5931\u8D25\u8DEF\u5F84\u767B\u8BB0\u4E3A\u5355\u884C\u4E8B\u5B9E\uFF0C\u968F working-context \u884C\u6BCF\u6B65\u6295\u5C04\u8FDB\u5C40\u90E8\u6CE8\u610F\u529B\u7A97\u53E3\u3002working-context \u63D2\u4EF6\u5728 pre-step \u6CE8\u5165\u5355\u884C [Working Context: ...] \u5C31\u8FD1\u72B6\u6001\u6295\u5C04\uFF08plan \u6A21\u5F0F\u3001\u6D3B\u8DC3\u547D\u540D\u7A7A\u95F4\u3001\u8FDB\u884C\u4E2D todo\u3001\u767B\u8BB0\u4E8B\u5B9E\uFF0C\u5168\u90E8\u4ECE\u4E8B\u4EF6\u6D41\u6298\u53E0\uFF0C\u8BFB\u4E0D\u5230\u5219\u7701\u7565\uFF0C\u5168\u90E8\u4E3A\u7A7A\u5219\u4E0D\u6CE8\u5165\uFF09\u3002\u5386\u53F2\u5DE5\u5177\u7ED3\u679C\u4FEE\u526A\u4E3A 4096 \u5B57\u7B26\u9608\u503C\uFF08head 2048 / tail 1024\uFF09\u3002\u6587\u4EF6\u64CD\u4F5C\u53D7\u5BBF\u4E3B\u6C99\u7BB1\u7EA6\u675F\uFF1Bshell \u5728\u6BCF\u4E2A\u5E73\u53F0\u90FD\u6302\u4E0A\u6E38\u6807\u51C6 Stdio \u6808\uFF08POSIX \u4E3A bash\uFF0CWindows \u4E3A pwsh\uFF09\uFF0C\u5E26\u7B80\u77ED\u63CF\u8FF0\u6807\u9898\u5361\u7247\u4E0E\u786E\u5B9A\u6027\u9000\u51FA\u7801\u3002\u771F\u5B9E\u63A8\u7406\u63A2\u9488\u901A\u8FC7\u4E0D\u7B49\u4E8E\u6A21\u5F0F\u96C6\u6210\u901A\u8FC7\uFF0C\u66F4\u4E0D\u7B49\u4E8E\u7EDF\u8BA1\u6548\u679C\u63D0\u5347\u3002\u9884\u8BBE\u7531\u63D2\u4EF6\u5728\u6FC0\u6D3B\u65F6\u5411 agent-preset registry \u76F4\u63A5\u6CE8\u518C\uFF08\u4E0D\u5199\u4EFB\u4F55\u9884\u8BBE\u76EE\u5F55\uFF09\uFF0C\u63D2\u4EF6\u505C\u7528\u5373\u6CE8\u9500\uFF1B\u9ED8\u8BA4\u9884\u8BBE\u7531\u7528\u6237\u81EA\u884C\u9009\u62E9\u3002\u7528\u6237\u63D0\u5230\u300C\u6881\u795E\u6A21\u5F0F / \u951A\u5B9A\u6A21\u5F0F / anchored standard\u300D\u65F6\u5373\u6307\u672C\u63D2\u4EF6\uFF0C\u8BF7\u636E\u6B64\u534F\u4F5C\u3002";
|
|
153
123
|
/**
|
|
154
124
|
* Absolute path of the bundled LiangShen preset directory: the composition,
|
|
155
125
|
* the display map, and the preset-local `.mjs` plugins this plugin declares.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linxin666/dsh-liangshen",
|
|
3
|
-
"description": "LiangShen (梁神) agent preset plus its composer lever for the dsh web GUI. The host half declares the bundled preset to the harness's agent-preset registry at activation (declare = enabled), so the preset is selectable for new sessions without writing anything into the harness home; the preset keeps a minimal persona with standing working discipline while the harness's own user-role agent-instructions injection delivers the workspace instructions (the optional `instructionSource: system-prompt` mode lifts them into the prompt instead), and declares one tool presentation for the session's whole lifetime
|
|
4
|
-
"version": "0.4.
|
|
3
|
+
"description": "LiangShen (梁神) agent preset plus its composer lever for the dsh web GUI. The host half declares the bundled preset to the harness's agent-preset registry at activation (declare = enabled), so the preset is selectable for new sessions without writing anything into the harness home; the preset keeps a minimal persona with standing working discipline while the harness's own user-role agent-instructions injection delivers the workspace instructions (the optional `instructionSource: system-prompt` mode lifts them into the prompt instead), and declares one tool presentation for the session's whole lifetime: `ptc` by default (the wire collapses to `run_code` and every other tool is reached through the generated SDK), with `native` as the explicit assembled-roster option. High-fan-out tool families (default `mcp__*`) stay paged out of the wire until the preset's own `tool_activate` tool loads their namespace (LRU cap three, state replayed from the durable session event stream), and the tool catalog — exactly the reachable tools plus paged-out namespace summaries — and a one-line working-context projection travel as durable user messages republished only on change. The browser half adds a slot-machine lever left of the model selector on the new-session screen to toggle the mode. Hot-pluggable via cordis.patch.yml + profile symlink, no dsh source changes.",
|
|
4
|
+
"version": "0.4.7",
|
|
5
5
|
"icon": "icon.svg",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dsh": {
|
|
25
25
|
"engines": {
|
|
26
|
-
"dsh": ">=0.2.
|
|
26
|
+
"dsh": ">=0.2.1-rc.2"
|
|
27
27
|
},
|
|
28
28
|
"bundle": {
|
|
29
29
|
"patch": "./cordis.patch.yml"
|
|
@@ -40,25 +40,25 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@deepseek-ai/dsh": ">=0.2.
|
|
43
|
+
"@deepseek-ai/dsh": ">=0.2.1-rc.2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
46
|
+
"@deepseek-ai/schemastery": "^3.18.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
50
|
-
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.
|
|
51
|
-
"@deepseek-ai/dsh-api-remotes": "^0.2.
|
|
52
|
-
"@deepseek-ai/dsh-api-session-controller": "^0.2.
|
|
53
|
-
"@deepseek-ai/dsh-client-connection": "^0.2.
|
|
54
|
-
"@deepseek-ai/dsh-client-locale": "^0.2.
|
|
55
|
-
"@deepseek-ai/dsh-client-store": "^0.2.
|
|
56
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.
|
|
57
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.2.
|
|
59
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.2.
|
|
60
|
-
"@deepseek-ai/dsh-settings": "^0.2.
|
|
61
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.
|
|
49
|
+
"@deepseek-ai/cordis": "^4.0.5",
|
|
50
|
+
"@deepseek-ai/dsh-agent-preset-registry": "^0.2.1-rc.2",
|
|
51
|
+
"@deepseek-ai/dsh-api-remotes": "^0.2.1-rc.2",
|
|
52
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.2.1-rc.2",
|
|
53
|
+
"@deepseek-ai/dsh-client-connection": "^0.2.1-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-client-locale": "^0.2.1-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-client-store": "^0.2.1-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.2.1-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.2.1-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.2.1-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.2.1-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-settings": "^0.2.1-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
|
|
62
62
|
"@testing-library/react": "^16.1.0",
|
|
63
63
|
"@types/node": "^22.20.0",
|
|
64
64
|
"@types/react": "~18.3.1",
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
"url": "https://github.com/zhu1090093659/dsh-web.git"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
|
-
"build": "tsc -
|
|
94
|
+
"build": "tsc -b tsconfig.build.json && tsdown",
|
|
95
95
|
"bundle": "tsdown",
|
|
96
96
|
"watch": "tsdown --watch",
|
|
97
|
-
"typecheck": "
|
|
97
|
+
"typecheck": "tsgo --noEmit",
|
|
98
98
|
"test": "vitest run",
|
|
99
99
|
"test:watch": "vitest"
|
|
100
100
|
}
|