@shgroup/dsh-serenity-hooks 1.127.0 → 1.127.1

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.127.0",
3
+ "version": "1.127.1",
4
4
  "main": "lib/index.js",
5
5
  "description": "宁静号 ACC harness(Native Cordis 插件):给 DSH 装一个「AI 工作区」——13 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin;另三个 im-bridge/diagram/reconstruct 按条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/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(三档,deepseek-ai/deepseek-harness)。",
6
6
  "engines": {
package/lib/index.js CHANGED
@@ -11038,17 +11038,20 @@ function scanSkillDirs(root, marker) {
11038
11038
  }
11039
11039
  }
11040
11040
  /**
11041
- * MSM 名:读 `mech-registry.json` 的 `msms[].name`。
11041
+ * MSM 名:读注册表的**条目名**。
11042
11042
  *
11043
11043
  * 🔴 **为什么不扫 `scripts/`**:注册表是 MSM 的**唯一真相源**;扫目录会把共享库
11044
11044
  * (`dev-kit/`、`lib/*`)也算成 MSM —— 本仓对"入口判据"已翻车多次。
11045
11045
  * ⚠️ 注册表若换了位置 ⇒ **静默降级为空**(装饰页不该因此打不开)。
11046
+ *
11047
+ * 顶层键 **必须认 `entries`**(v1 包装形),详见下面的实测缺陷注释。
11046
11048
  */
11047
11049
  function scanMsmNames(root) {
11048
11050
  const candidates = [join(root, ".opencode", "skills", "home-serenity", "references", "mech-registry.json"), join(root, ".opencode", "references", "mech-registry.json")];
11049
11051
  for (const p of candidates) try {
11050
11052
  if (!existsSync(p)) continue;
11051
- const names = (JSON.parse(readFileSync(p, "utf-8")).msms ?? []).map((m) => typeof m?.name === "string" ? m.name : "").filter((n) => n !== "");
11053
+ const raw = JSON.parse(readFileSync(p, "utf-8"));
11054
+ const names = (Array.isArray(raw.entries) ? raw.entries : Array.isArray(raw.msms) ? raw.msms : []).map((m) => typeof m?.name === "string" ? m.name : "").filter((n) => n !== "");
11052
11055
  if (names.length > 0) return [...new Set(names)].sort();
11053
11056
  } catch {}
11054
11057
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.127.0",
3
+ "version": "1.127.1",
4
4
  "description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:13 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin;另三个 im-bridge/diagram/reconstruct 按条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 认知轨迹日志与原地重建 + 网页登录入口/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": {