@shgroup/dsh-serenity-hooks 1.56.3 → 1.56.5

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.56.3",
3
+ "version": "1.56.5",
4
4
  "main": "lib/index.js",
5
5
  "description": "宁静号 ACC harness(Native Cordis 插件):给 DSH 装一个「AI 工作区」——14 个工具(container_fs/container_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/handyman/localstore/container_admin;另三个 im-bridge/acc-diag/diagram 按配置条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫)+ 轨迹日志与原地重建 + 网页登录入口/微信桥/子角色/对外问答页/trajectory 唤醒注册表。适配 DSH 0.1.7-rc.1 与 0.2.0-rc.1(双档,deepseek-ai/deepseek-harness)。",
6
6
  "engines": {
package/lib/index.js CHANGED
@@ -7770,11 +7770,17 @@ function fromEngine(file, absPath) {
7770
7770
  instances: [],
7771
7771
  unknownTypes: []
7772
7772
  };
7773
+ const normRigidity = (v) => {
7774
+ if (v === void 0 || v === "") return null;
7775
+ const last = v.slice(v.lastIndexOf("#") + 1);
7776
+ const bare = last.includes(":") ? last.slice(last.lastIndexOf(":") + 1) : last;
7777
+ return bare === "rigid" || bare === "anti-rigid" || bare === "semi-rigid" ? bare : null;
7778
+ };
7773
7779
  for (const [id, td] of Object.entries(onto.types ?? {})) model.classes.push({
7774
7780
  id,
7775
7781
  label: td.label ?? td.description ?? id,
7776
7782
  comment: td.comment ?? td.description ?? "",
7777
- rigidity: td.rigidity ?? null,
7783
+ rigidity: normRigidity(td.rigidity),
7778
7784
  identity: td.identity ?? [],
7779
7785
  properties: Object.entries(td.properties ?? {}).map(([name, pd]) => ({
7780
7786
  name,
@@ -8668,7 +8674,7 @@ function createOntologyTool() {
8668
8674
  });
8669
8675
  const svg = toSvg(model, L, { axioms: false });
8670
8676
  const html = toHtml(model, L, svg);
8671
- const stem = basename(relPath).replace(/\.ttl$/, "");
8677
+ const stem = relPath.replace(/\.ttl$/, "").replace(/[\\/]/g, "__");
8672
8678
  const outDir = join(root, "_tmp", "ontology-viz");
8673
8679
  mkdirSync(outDir, { recursive: true });
8674
8680
  const htmlPath = join(outDir, `${stem}.html`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.56.3",
3
+ "version": "1.56.5",
4
4
  "description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:14 个工具(container_fs/container_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/handyman/localstore/container_admin;另三个 im-bridge/acc-diag/diagram 按配置条件出现)+ 机械约束(安全模式/工作区围墙/密钥守卫/对外输出守卫)+ 工作日志与原地重建 + 网页登录入口/微信桥/子角色/对外问答页/trajectory 唤醒注册表。适配 DSH 0.1.7-rc.1 与 0.2.0-rc.1(双档)。",
5
5
  "license": "MIT",
6
6
  "repository": {