@shgroup/dsh-serenity-hooks 1.88.0 → 1.90.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/dsh.plugin.json +1 -1
- package/lib/cro/log.d.ts +16 -0
- package/lib/index.js +1797 -1653
- package/lib/wake/scheduler.d.ts +11 -0
- package/package.json +1 -1
package/lib/wake/scheduler.d.ts
CHANGED
|
@@ -157,6 +157,17 @@ export declare function sendToCognitiveTrajectory(ctx: unknown, root: string, ta
|
|
|
157
157
|
* @returns 投递正文
|
|
158
158
|
*/
|
|
159
159
|
export declare function buildCroWakeText(dirName: string, mdPath: string, prompt: string, reason: string | null): string;
|
|
160
|
+
/**
|
|
161
|
+
* ⚠️ **2026-10-23 A105 已删除 `collectLiveSessionIdsForSafetyNet`。**
|
|
162
|
+
*
|
|
163
|
+
* 它取的是 `hostSessions(ctx).list()` =「宿主认不认识」,而 A105 的结论是
|
|
164
|
+
* 判据必须是「**此刻有没有在跑**」。现在两处(本兜底与权威 `interrupted` 动作)
|
|
165
|
+
* 都走 `listRunningSessionIds()` —— **同一张表、同一个口径**,不可能再打架。
|
|
166
|
+
*
|
|
167
|
+
* 🔴 后人若要"把 live 表也加回来做双保险":**不要** ——
|
|
168
|
+
* `live ∧ ¬running` 恰是「已载入、但上一轮被打断」那一类,**它最该被接走**;
|
|
169
|
+
* 加回来就是把最该救的那一格重新排除掉。
|
|
170
|
+
*/
|
|
160
171
|
/**
|
|
161
172
|
* 装配调度器(index.ts apply 调用):5min tick + 生命周期 disposer +
|
|
162
173
|
* 会话出现/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.90.0",
|
|
4
4
|
"description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:14 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/cheap-worker/localstore/container_admin;另三个 im-bridge/acc-diag/diagram 按配置条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/IM 桥/认知轨迹唤醒注册表。轨迹声明 = 轨迹目录下的 trajectory.json(约束面 + 旧标识 uid + CRO 机器绑定 cro.host;旧名 trajectory-constraint.json / skiff.json 仍在读取族里);轨迹提示词 = 轨迹目录下的 PROMPT.md(一条轨迹「是谁、按什么章程工作」,所有轨迹通用,追加在容器层与质量层之后,不替换它们)。适配 DSH 0.1.7-rc.1 / 0.2.0-rc.1 / 0.2.1-rc.1(三档)。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|