@shgroup/dsh-serenity-hooks 1.16.9 → 1.16.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "dsh-serenity-hooks",
3
- "version": "1.16.9",
3
+ "version": "1.16.10",
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
@@ -2361,6 +2361,7 @@ function createLoopTool(ctx) {
2361
2361
  const parentCtx = exec.agent?.ctx;
2362
2362
  const inherited = loopPresetInheritance(parentCtx);
2363
2363
  if (!ctx.agents) throw new Error("loop: ctx.agents 不可用");
2364
+ const parentSession = (exec.agent?.session)?.id;
2364
2365
  let handle;
2365
2366
  let loopAgent;
2366
2367
  const spawnAgent = async () => {
@@ -2369,6 +2370,8 @@ function createLoopTool(ctx) {
2369
2370
  sessionId,
2370
2371
  meta: {
2371
2372
  cwd: root,
2373
+ origin: "subagent",
2374
+ ...parentSession === void 0 ? {} : { parentSession },
2372
2375
  ...inherited.agentPreset === void 0 ? {} : { agentPreset: inherited.agentPreset }
2373
2376
  },
2374
2377
  agentOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.16.9",
3
+ "version": "1.16.10",
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": {