@shgroup/dsh-serenity-hooks 1.19.1 → 1.19.2
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/index.js +6 -0
- package/package.json +1 -1
package/dsh.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-serenity-hooks",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "宁静号 ACC harness(Native Cordis 插件):真实 DSH 工具 cc_fs/session/acc_msm/eap/neat/cce/loop + 拦截缝机械约束(safe-mode/路径守卫)。适配 DSH 公开版(0.1.0-rc,deepseek-ai/deepseek-harness)。私有(dsh-external 组织)。",
|
|
6
6
|
"engines": {
|
package/lib/index.js
CHANGED
|
@@ -3613,6 +3613,11 @@ function createEpochPromotion(promoteEvents, requiredSignals = 1) {
|
|
|
3613
3613
|
boundary: -1,
|
|
3614
3614
|
promoted: true
|
|
3615
3615
|
};
|
|
3616
|
+
const loopSid = session.id;
|
|
3617
|
+
if (typeof loopSid === "string" && loopSid.startsWith("loop-")) return {
|
|
3618
|
+
boundary: -1,
|
|
3619
|
+
promoted: true
|
|
3620
|
+
};
|
|
3616
3621
|
if ((session.header?.delegationDepth ?? 0) > 0) return {
|
|
3617
3622
|
boundary: -1,
|
|
3618
3623
|
promoted: true
|
|
@@ -3746,6 +3751,7 @@ function registerBootstrap(ctx) {
|
|
|
3746
3751
|
const session = agent.session;
|
|
3747
3752
|
const depth = session?.header?.delegationDepth ?? 0;
|
|
3748
3753
|
const sid = typeof session?.id === "string" ? session.id : void 0;
|
|
3754
|
+
if (sid !== void 0 && sid.startsWith("loop-")) return;
|
|
3749
3755
|
if (depth === 0) {
|
|
3750
3756
|
if (session?.events?.some((event) => event.type === "user/message")) return;
|
|
3751
3757
|
} else if (sid !== void 0 && anchoredSessions.has(sid)) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shgroup/dsh-serenity-hooks",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.2",
|
|
4
4
|
"description": "宁静号 ACC harness — Native Cordis 插件(DeepSeek Harness 运行时)。真实 DSH 工具注册(cc_fs/session/acc_msm 等 9 工具)+ 拦截缝机械约束(safe-mode/路径守卫/会话落盘)+ 系统提示词注入(ACC/CCE/Constraints/SKILL/Session 五块)。适配 DSH 公开版(deepseek-ai/deepseek-harness 0.1.0-rc)。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|