@shgroup/dsh-serenity-hooks 1.41.0 → 1.43.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/README.md +27 -0
- package/dsh.plugin.json +1 -1
- package/lib/cro-guide.d.ts +48 -0
- package/lib/cro-turns.d.ts +95 -0
- package/lib/cro.d.ts +306 -0
- package/lib/diag-ops.d.ts +3 -1
- package/lib/index.js +218 -10
- package/lib/tools/trajectory.d.ts +4 -1
- package/lib/{trajectory-bound-4xkZDfmO.js → trajectory-bound-kxvMuCui.js} +3 -2
- package/lib/trajectory-ops.d.ts +8 -2
- package/lib/wake-registry.d.ts +53 -0
- package/lib/{wake-scheduler-BRnPUnER.js → wake-scheduler-DC4-imVO.js} +833 -15
- package/lib/wake-scheduler.d.ts +19 -0
- package/package.json +1 -1
package/lib/wake-scheduler.d.ts
CHANGED
|
@@ -136,6 +136,25 @@ export declare function buildSendText(target: WakeTarget, message: string, sende
|
|
|
136
136
|
* @returns 投递结果(**同步**返回给调用方)
|
|
137
137
|
*/
|
|
138
138
|
export declare function sendToTrajectory(ctx: Context, root: string, target: string, message: string, sender: string): Promise<WakeDeliveryResult>;
|
|
139
|
+
/**
|
|
140
|
+
* CRO 唤起消息正文(**刻意不复用** {@link buildWakeText} / {@link buildSendText})。
|
|
141
|
+
*
|
|
142
|
+
* 三种唤起各有自己的**事实**;混用 = 注入一条假陈述(本容器栽过:`buildSendText` 里
|
|
143
|
+
* 那句"消息已入队"就是一条假陈述,见该函数注释):
|
|
144
|
+
* · `buildWakeText` —— 「**到点**了」(登记过的未来时刻,人/agent 算好的)
|
|
145
|
+
* · `buildSendText` —— 「**有人此刻给我发了一条消息**」
|
|
146
|
+
* · 本函数 —— 「**我自己的程序**看情况判定该叫我了」(**没有到点、也没有人发消息**)
|
|
147
|
+
*
|
|
148
|
+
* 🔴 `reason` 的呈现(设计 §4.2):**程序没写就明说没写**,不留空白 ——
|
|
149
|
+
* 改成程序判定后,"当时为什么叫了"**不再能从时间表重建**(原因在程序肚子里);
|
|
150
|
+
* 留空白 = 连"丢在哪一环"都看不出来。写明"未提供"至少把缺口标出来了(CCE:重建 > 保存)。
|
|
151
|
+
* @param dirName 目标轨迹目录名
|
|
152
|
+
* @param mdPath 目标 SESSION.md 绝对路径
|
|
153
|
+
* @param prompt 程序给的唤起提示词
|
|
154
|
+
* @param reason 程序给的判定理由(可为 null)
|
|
155
|
+
* @returns 投递正文
|
|
156
|
+
*/
|
|
157
|
+
export declare function buildCroWakeText(dirName: string, mdPath: string, prompt: string, reason: string | null): string;
|
|
139
158
|
/**
|
|
140
159
|
* 装配调度器(index.ts apply 调用):5min tick + 生命周期 disposer +
|
|
141
160
|
* 会话出现/settings 变化时热启动(与 autopilot 同款触发面,互不干扰)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgroup/dsh-serenity-hooks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.0",
|
|
4
4
|
"description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:11 个工具(container_fs/container_trajectory/dashboard/container_git/msm/praxis/handyman/localstore/container_admin/im-bridge/acc-diag)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 工作日志与原地重建 + 网页登录入口/微信桥/子角色/对外问答页/trajectory 唤醒注册表。适配 DSH 0.1.5-rc.2。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|