@shgroup/dsh-serenity-hooks 1.114.0 → 1.114.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.114.0",
3
+ "version": "1.114.1",
4
4
  "main": "lib/index.js",
5
5
  "description": "宁静号 ACC harness(Native Cordis 插件):给 DSH 装一个「AI 工作区」——12 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin;另两个 im-bridge/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(三档,deepseek-ai/deepseek-harness)。",
6
6
  "engines": {
package/lib/index.js CHANGED
@@ -8,12 +8,12 @@ import { C as docsPointer, E as setWeixinSendEndpoint, S as runMsmAsync, T as re
8
8
  import { c as replacesDefaultIdentity, i as listTrajectoryConstraints, l as trajectoryCodeForSession, n as findDirNameByCode, o as readTrajectoryConstraintAt, r as isTrajectoryConstrained, s as readTrajectoryConstraintByCode, t as TRAJECTORY_CONSTRAINT_FILENAME } from "./profile-Djqz4Noy.js";
9
9
  import { A as truncateContent, C as verifyTotpCode, D as buildResourceIndex, E as SKILL_ONTOLOGY_FILE, M as hasTrajectoryPrompt, O as buildResourceNameSuffix, S as MECHANISM_PORTS, T as REFERENCE_DIR, _ as projectKnownWorkspaces, a as trajectoryConstraintFor, b as verifyPassword, c as trajectoryWorkspaceMdPath, d as splitModel, f as registerCognitiveTrajectorySkillSection, g as migrateLegacyLocalstore, h as applyWirePatch, i as getTrajectoryAgent, j as TRAJECTORY_PROMPT_FILENAME, k as isSafeSkillName, l as unregisterTrajectorySession, m as registerEntrySkillSectionGlobal, n as deliverToTrajectory, o as trajectoryConstraintMsmGate, p as registerEntrySkillSection, r as ensureWorkspacePromptSection, s as trajectoryConstraintParticipates, t as createTrajectoryAgent, u as workspaceCognitiveTrajectoryLine, v as readAdvancedSettings, w as recordToolUsage, x as FACE_PORTS, y as toWire } from "./session-BVBI5jch.js";
10
10
  import { a as ACC_MESSAGE_KIND, d as readLastBound, f as resolveSessionCognitiveTrajectoryLabel, i as toMessage, l as findTrajectoryOfSession, n as deliver, o as PLUGIN_SOURCE, r as makeInjection, s as appendBound } from "./injection-B5jZxemg.js";
11
- import { a as DEFAULT_LOOKBACK_MS, c as scanInterruptedSessions, d as registerDisposer, f as buildCroSnapshot, g as addWake, h as WAKE_CATCH_UP_MS, l as listRunningSessionIds, m as CARRIER_OPENING_MARK, o as createResumeOne, r as sendToCognitiveTrajectory, s as projectDirNameForCwd, t as registerWakeScheduler, u as registerCroTurnTracking } from "./scheduler-BUM3tE0e.js";
11
+ import { _ as addWake, a as DEFAULT_LOOKBACK_MS, c as projectDirNameForCwd, d as registerCroTurnTracking, f as registerDisposer, g as WAKE_CATCH_UP_MS, h as CARRIER_OPENING_MARK, l as scanInterruptedSessions, o as createResumeOne, p as buildCroSnapshot, r as sendToCognitiveTrajectory, s as formatPendingTools, t as registerWakeScheduler, u as listRunningSessionIds } from "./scheduler-DoyulpUI.js";
12
12
  import { i as sessionsRootDir } from "./cleanup-CPl1SSaK.js";
13
13
  import { n as readSimpleSettings, r as registerSettingsSection } from "./settings-DibHCfEU.js";
14
14
  import { a as readFeishuCredential, c as readWeixinSettings, d as weixinInboundDir, f as weixinSessionIdForTrajectory, i as matchWeixinRoute, n as extractWeixinText, r as hasVoiceItem, s as readWeixinCredential, t as extractWeixinMedia, u as sanitizeFileName$1 } from "./route-D-W3O2PF.js";
15
15
  import { i as runImBridge, n as isImWiredTrajectory, r as registerImChannel, t as imChannelIds } from "./channels-DWZlcsE0.js";
16
- import { i as subscriptionStats, n as registerTrajectorySubscriptions, r as subscriptionEval, t as defaultSubscriptionDeps } from "./subscriptions-B9w4ppMk.js";
16
+ import { i as subscriptionStats, n as registerTrajectorySubscriptions, r as subscriptionEval, t as defaultSubscriptionDeps } from "./subscriptions-CUD0d_Sg.js";
17
17
  import { c as sendTextMessage, i as getUpdates, l as sendTyping, n as downloadMedia, o as markdownToPlainText, r as getConfig, s as sendFileMessage, t as TypingStatus, u as sniffImageExt } from "./ilink-CsZ-f64q.js";
18
18
  import { a as registerImAccountImpl, i as normalizeAccountChannel, n as getImAccountImpl, r as imAccountChannels } from "./accounts-BHQbakUh.js";
19
19
  import { createRequire } from "node:module";
@@ -515,7 +515,7 @@ const KIT_ACTIONS = [
515
515
  async function runKit(root, args, hostCtx) {
516
516
  switch (args.action) {
517
517
  case "health": {
518
- const { containerStatus } = await import("./observation-qmSI2bug.js");
518
+ const { containerStatus } = await import("./observation-DI3IdOwK.js");
519
519
  const s = containerStatus({
520
520
  root,
521
521
  hostCtx
@@ -561,7 +561,7 @@ async function runKit(root, args, hostCtx) {
561
561
  }
562
562
  case "diag": {
563
563
  if (hostCtx === void 0) throw new Error("diag requires the plugin context (live session data unavailable without it)");
564
- const { runDiag, renderDiag } = await import("./service-KNzeVxEh.js");
564
+ const { runDiag, renderDiag } = await import("./service-DOErYfwC.js");
565
565
  return renderDiag(await runDiag(hostCtx, root ?? ""));
566
566
  }
567
567
  default: throw new Error(`Unknown action: ${args.action}`);
@@ -6409,7 +6409,7 @@ function renderInterruptedScan(input) {
6409
6409
  const formText = s.form === "unclosed" ? "未收尾(窗口内无 turn/end)" : "有收尾(reason.kind 命中)";
6410
6410
  lines.push(` 轮次 turn=${s.turn ?? "?"} · 末事件 ${at}`);
6411
6411
  lines.push(` 形态 ${s.form} = ${formText} · 末条 turn/end.kind=${s.lastTurnEndKind ?? "null"} · 窗口内最后 turn/start=${s.lastTurnStartTurn ?? "null"}`);
6412
- if (s.pendingTools.length > 0) lines.push(` ⚠️ 有调用无结果的工具(副作用未知): ${s.pendingTools.join(", ")}`);
6412
+ if (s.pendingTools.length > 0) lines.push(` ⚠️ 有调用无结果的工具(副作用未知): ${formatPendingTools(s.pendingTools)}`);
6413
6413
  }
6414
6414
  lines.push("");
6415
6415
  lines.push("判据(两种形态,任一命中即收):");
@@ -6464,7 +6464,7 @@ function renderContinueResult(input) {
6464
6464
  for (const s of scan.sessions) {
6465
6465
  const at = s.lastEventAt !== null ? new Date(s.lastEventAt).toISOString() : "(时间未知)";
6466
6466
  lines.push(` · ${s.sessionId} turn=${s.turn ?? "?"} 末事件 ${at}`);
6467
- if (s.pendingTools.length > 0) lines.push(` 副作用未知: ${s.pendingTools.join(", ")}`);
6467
+ if (s.pendingTools.length > 0) lines.push(` 副作用未知: ${formatPendingTools(s.pendingTools)}`);
6468
6468
  }
6469
6469
  lines.push("");
6470
6470
  lines.push("要真的执行,去掉 dryRun 再调用一次。");
@@ -1,7 +1,7 @@
1
1
  import { d as readCccName, i as findGitRoot, l as pathInside, s as loadSerenityConfig, t as DEFAULT_SERENITY_CONFIG_PATHS } from "./ccc-x94FCzOv.js";
2
2
  import { u as ACC_VERSION } from "./rules-DKlpuFN_.js";
3
3
  import { i as readDshVersion, t as hostContractReport, v as checkRegistryQuality } from "./contract-DdI7euZI.js";
4
- import { _ as listWakes, i as wakeSchedulerState } from "./scheduler-BUM3tE0e.js";
4
+ import { i as wakeSchedulerState, v as listWakes } from "./scheduler-DoyulpUI.js";
5
5
  import { resolve } from "node:path";
6
6
  import { existsSync, readFileSync, statSync } from "node:fs";
7
7
  //#region src/surface/observation.ts
@@ -2170,6 +2170,40 @@ function detectUnclosedTurn(events) {
2170
2170
  *
2171
2171
  * ⚠️ **尽力而为**,非权威:尾部窗口可能截断更早的调用。上层应把它当
2172
2172
  * "**可能**未完成的副作用"清单,而不是"确定未完成"。
2173
+ *
2174
+ * ## 🔴🔴 2026-11-04:两个事件的 callId 在**不同的位置**(这是本文件的头号取证)
2175
+ *
2176
+ * owner 报障:`[中断续跑]` 的「有调用无结果的工具」约 **150 项、大量重复**,
2177
+ * 还混着更早轮次的 `get_goal` / `create_goal`。
2178
+ *
2179
+ * **真机逐字形状**(`dsh-session corpus raw` 从本容器活日志读出,⛔ 不是推断):
2180
+ *
2181
+ * ```jsonc
2182
+ * // tool/call —— callId 在 data 这一层
2183
+ * {"type":"tool/call","data":{"turn":3,"step":1,
2184
+ * "callId":"call_00_ET_…","name":"cognitive_trajectory","arguments":"…"}}
2185
+ *
2186
+ * // tool/result —— ⛔ callId 这一层**不存在**,它在 data.message 里
2187
+ * {"type":"tool/result","data":{"turn":3,"step":1,
2188
+ * "message":{"role":"tool","source":{"kind":"tool","callId":"call_00_ET_…"},
2189
+ * "toolCallId":"call_00_ET_…","content":[…]}}}
2190
+ * ```
2191
+ *
2192
+ * ⇒ 修前读 `data.callId` 恒 `undefined` ⇒ `resolved` **永远是空集**
2193
+ * ⇒ 该轮**每一条** `tool/call` 都被判成"无结果"⇒ 清单退化成「这一轮的全部调用」。
2194
+ *
2195
+ * ## 🔴 它为什么能活这么久(这条比 bug 本身值得记)
2196
+ * **测试与实现用了同一个错误假设** —— 夹具也按虚构的 `data.callId` 构造 `tool/result`,
2197
+ * 于是两边一起错、一起绿(D275 同族:「定义了却没接上」)。
2198
+ * ⇒ 立判据:**测试的输入形状必须来自真机日志,⛔ 不是来自我的假设。**
2199
+ *
2200
+ * ## 两个位置都读(为什么不是二选一)
2201
+ * 真机两处**同时在场且相等**(`toolCallId` ≡ `source.callId`),但那是**当前实现的属性**,
2202
+ * 不是协议保证。⇒ 取 `toolCallId ?? source.callId`:任一处缺失仍能配对上;
2203
+ * 两处都没有 ⇒ 该结果**不参与排除**(宁可多报一个"可能未完成",也不假报"全都完成了")。
2204
+ *
2205
+ * @param events 尾部事件
2206
+ * @param turn 目标轮次;`null` ⇒ 不判(返回空清单)
2173
2207
  */
2174
2208
  function findPendingTools(events, turn) {
2175
2209
  if (turn === null) return [];
@@ -2179,11 +2213,42 @@ function findPendingTools(events, turn) {
2179
2213
  const data = e.data;
2180
2214
  if (!data || data.turn !== turn) continue;
2181
2215
  if (e.type === "tool/call" && typeof data.callId === "string" && typeof data.name === "string") called.set(data.callId, data.name);
2182
- else if (e.type === "tool/result" && typeof data.callId === "string") resolved.add(data.callId);
2216
+ else if (e.type === "tool/result") {
2217
+ const m = data.message;
2218
+ const cid = m?.toolCallId ?? m?.source?.callId;
2219
+ if (typeof cid === "string") resolved.add(cid);
2220
+ }
2183
2221
  }
2184
2222
  return [...called].filter(([callId]) => !resolved.has(callId)).map(([, name]) => name);
2185
2223
  }
2186
2224
  /**
2225
+ * 待核工具清单的**显示上限**:超过这么多条就折叠成计数。
2226
+ *
2227
+ * ## 为什么必须有上限(owner 报障的另一半)
2228
+ * 这个清单会**原样注入进提示词**(`buildContinueText`)与界面。
2229
+ * 实测一次误判就能产出**约 150 项、大量重复**的名字 ⇒ 那是**每一轮的 token 成本**,
2230
+ * 而它对读者的信息量在 8 项之后已经趋零(人的核对动作是"抽查",不是"逐条读")。
2231
+ *
2232
+ * ⚠️ **折叠 ≠ 丢弃**:计数里保留**总数**,读者仍知道"还有多少没看"(D276:难看 ≠ 可以丢信息)。
2233
+ * ⇒ 前 {@link PENDING_TOOLS_DISPLAY_MAX} 项给出名字,其余折成「等共 N 项」。
2234
+ */
2235
+ const PENDING_TOOLS_DISPLAY_MAX = 8;
2236
+ /**
2237
+ * 把待核工具清单渲染成**有上限**的一行。
2238
+ *
2239
+ * 🔴 **唯一实现点**:`buildContinueText`(进提示词)、`renderInterruptedScan` 与
2240
+ * `renderContinueResult`(进界面)三处都调它 —— ⛔ 别在别处再写一份 `join(', ')`,
2241
+ * 三份会漂(本轨迹已因"同一事实存多份"付过多次代价)。
2242
+ *
2243
+ * @param tools 工具名清单(**可能含重复**:同一工具在一轮里被调用多次且都无结果时,
2244
+ * 每一条 `tool/call` 各占一项 —— 那是真实信息,不在这里去重)
2245
+ * @returns 空清单 ⇒ 空串(调用方据此判"要不要印这一行")
2246
+ */
2247
+ function formatPendingTools(tools) {
2248
+ if (tools.length <= PENDING_TOOLS_DISPLAY_MAX) return tools.join(", ");
2249
+ return `${tools.slice(0, PENDING_TOOLS_DISPLAY_MAX).join(", ")} … 等共 ${tools.length} 项`;
2250
+ }
2251
+ /**
2187
2252
  * 扫描一个 **project 目录**(形如 `<sessions-root>/--home-yh-home-home-serenity--/`)。
2188
2253
  *
2189
2254
  * @param projectDir DSH 项目目录(其下每个子目录是一个会话)
@@ -2329,6 +2394,9 @@ function projectDirNameForCwd(cwd) {
2329
2394
  * 🔴 **为什么要写"先核对副作用"**:中断时可能有「有 call 无 result」的工具调用,
2330
2395
  * 它们的副作用**未知**(可能已写文件 / 已发消息)。若模型把那一轮整段重放,
2331
2396
  * 会**重复执行**。这句话是给模型的护栏,不是客套。
2397
+ *
2398
+ * 🔴 **本正文会被注入进提示词** ⇒ `pendingTools` 一律经 {@link formatPendingTools} 折叠,
2399
+ * ⛔ 不许裸 `join(', ')`(那样一个乱轮就能塞进上百个名字)。
2332
2400
  */
2333
2401
  function buildContinueText(sessionId, turn, pendingTools) {
2334
2402
  const lines = [];
@@ -2337,7 +2405,7 @@ function buildContinueText(sessionId, turn, pendingTools) {
2337
2405
  lines.push(`会话: ${sessionId}${turn === null ? "" : ` / 被中断的轮次: turn ${turn}`}`);
2338
2406
  if (pendingTools.length > 0) {
2339
2407
  lines.push("");
2340
- lines.push(`⚠️ 中断时这些工具「有调用、无结果」(副作用未知,**可能已经执行**): ${pendingTools.join(", ")}`);
2408
+ lines.push(`⚠️ 中断时这些工具「有调用、无结果」(副作用未知,**可能已经执行**): ${formatPendingTools(pendingTools)}`);
2341
2409
  lines.push(" ⇒ 先核对它们是否已生效(文件是否已写、消息是否已发),再决定要不要重做。");
2342
2410
  lines.push(" ⛔ 不要把被中断的那一轮整段重放。");
2343
2411
  }
@@ -3712,4 +3780,4 @@ function registerWakeScheduler(ctx) {
3712
3780
  registerDisposer(ctx, "认知轨迹唤醒调度器", () => clock.dispose());
3713
3781
  }
3714
3782
  //#endregion
3715
- export { listWakes as _, DEFAULT_LOOKBACK_MS as a, scanInterruptedSessions as c, registerDisposer as d, buildCroSnapshot as f, addWake as g, WAKE_CATCH_UP_MS as h, wakeSchedulerState as i, listRunningSessionIds as l, CARRIER_OPENING_MARK as m, scheduler_exports as n, createResumeOne as o, listCroCognitiveTrajectories as p, sendToCognitiveTrajectory as r, projectDirNameForCwd as s, registerWakeScheduler as t, registerCroTurnTracking as u };
3783
+ export { addWake as _, DEFAULT_LOOKBACK_MS as a, projectDirNameForCwd as c, registerCroTurnTracking as d, registerDisposer as f, WAKE_CATCH_UP_MS as g, CARRIER_OPENING_MARK as h, wakeSchedulerState as i, scanInterruptedSessions as l, listCroCognitiveTrajectories as m, scheduler_exports as n, createResumeOne as o, buildCroSnapshot as p, sendToCognitiveTrajectory as r, formatPendingTools as s, registerWakeScheduler as t, listRunningSessionIds as u, listWakes as v };
@@ -1,10 +1,10 @@
1
1
  import { d as hostSessions, r as cccRootForCwd } from "./ccc-roots-CsSSQjSS.js";
2
2
  import { m as readTrajectorySubscriptions } from "./ccc-x94FCzOv.js";
3
3
  import { F as isoLocal, w as sessionEvents } from "./bind-file-B0TuOP89.js";
4
- import { h as WAKE_CATCH_UP_MS, p as listCroCognitiveTrajectories } from "./scheduler-BUM3tE0e.js";
4
+ import { g as WAKE_CATCH_UP_MS, m as listCroCognitiveTrajectories } from "./scheduler-DoyulpUI.js";
5
5
  import { n as readSimpleSettings } from "./settings-DibHCfEU.js";
6
- import { i as subscriptionStats, r as subscriptionEval } from "./subscriptions-B9w4ppMk.js";
7
- import { containerClocks, containerWakes } from "./observation-qmSI2bug.js";
6
+ import { i as subscriptionStats, r as subscriptionEval } from "./subscriptions-CUD0d_Sg.js";
7
+ import { containerClocks, containerWakes } from "./observation-DI3IdOwK.js";
8
8
  //#region src/trajectory/live.ts
9
9
  /**
10
10
  * trajectory/live.ts — 进程内 live 会话取数 + 精简诊断
@@ -1,7 +1,7 @@
1
1
  import { r as cccRootForCwd } from "./ccc-roots-CsSSQjSS.js";
2
2
  import { m as readTrajectorySubscriptions } from "./ccc-x94FCzOv.js";
3
3
  import { L as localHuman, n as findTrajectoryHolding } from "./bind-file-B0TuOP89.js";
4
- import { d as registerDisposer } from "./scheduler-BUM3tE0e.js";
4
+ import { f as registerDisposer } from "./scheduler-DoyulpUI.js";
5
5
  //#region src/trajectory/subscriptions.ts
6
6
  /**
7
7
  * trajectory/subscriptions.ts — 轨迹消息订阅(v1.107.0,owner 2026-11-01 令)
@@ -306,7 +306,7 @@ function defaultSubscriptionDeps(ctx) {
306
306
  readSubs: (root) => readTrajectorySubscriptions(root),
307
307
  dirForSession: (root, sessionId) => findTrajectoryHolding(`${root}/AGENT_SESSIONS`, sessionId),
308
308
  deliver: async (root, target, message) => {
309
- const { sendToCognitiveTrajectory } = await import("./scheduler-BUM3tE0e.js").then((n) => n.n);
309
+ const { sendToCognitiveTrajectory } = await import("./scheduler-DoyulpUI.js").then((n) => n.n);
310
310
  const res = await sendToCognitiveTrajectory(ctx, root, target, message, "trajectory-subscription");
311
311
  return {
312
312
  ok: res.ok,
@@ -82,6 +82,19 @@ interface SessionEvent {
82
82
  reason?: {
83
83
  kind?: string;
84
84
  };
85
+ /** `tool/call` 的字段(callId 与 name 都在 data 这一层) */
86
+ callId?: string;
87
+ name?: string;
88
+ /**
89
+ * 🔴🔴 `tool/result` 的字段 —— **callId 藏在这里,不在 `data.callId`**。
90
+ * 真机逐字形状见 {@link findPendingTools} 的头注(那是本文件最贵的一条取证)。
91
+ */
92
+ message?: {
93
+ toolCallId?: string;
94
+ source?: {
95
+ callId?: string;
96
+ };
97
+ };
85
98
  };
86
99
  }
87
100
  /** 一个"以 interrupted 结尾"的会话 */
@@ -233,6 +246,18 @@ export declare function detectUnclosedTurn(events: SessionEvent[]): {
233
246
  turn: number | null;
234
247
  pendingTools: string[];
235
248
  } | null;
249
+ /**
250
+ * 把待核工具清单渲染成**有上限**的一行。
251
+ *
252
+ * 🔴 **唯一实现点**:`buildContinueText`(进提示词)、`renderInterruptedScan` 与
253
+ * `renderContinueResult`(进界面)三处都调它 —— ⛔ 别在别处再写一份 `join(', ')`,
254
+ * 三份会漂(本轨迹已因"同一事实存多份"付过多次代价)。
255
+ *
256
+ * @param tools 工具名清单(**可能含重复**:同一工具在一轮里被调用多次且都无结果时,
257
+ * 每一条 `tool/call` 各占一项 —— 那是真实信息,不在这里去重)
258
+ * @returns 空清单 ⇒ 空串(调用方据此判"要不要印这一行")
259
+ */
260
+ export declare function formatPendingTools(tools: string[]): string;
236
261
  /**
237
262
  * 扫描一个 **project 目录**(形如 `<sessions-root>/--home-yh-home-home-serenity--/`)。
238
263
  *
@@ -274,6 +299,9 @@ export interface ResumeOutcome {
274
299
  * 🔴 **为什么要写"先核对副作用"**:中断时可能有「有 call 无 result」的工具调用,
275
300
  * 它们的副作用**未知**(可能已写文件 / 已发消息)。若模型把那一轮整段重放,
276
301
  * 会**重复执行**。这句话是给模型的护栏,不是客套。
302
+ *
303
+ * 🔴 **本正文会被注入进提示词** ⇒ `pendingTools` 一律经 {@link formatPendingTools} 折叠,
304
+ * ⛔ 不许裸 `join(', ')`(那样一个乱轮就能塞进上百个名字)。
277
305
  */
278
306
  export declare function buildContinueText(sessionId: string, turn: number | null, pendingTools: string[]): string;
279
307
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shgroup/dsh-serenity-hooks",
3
- "version": "1.114.0",
3
+ "version": "1.114.1",
4
4
  "description": "宁静号 ACC harness(Native Cordis 插件)——给 DeepSeek Harness 装一个「AI 工作区」:12 个工具(container_fs/cognitive_trajectory/dashboard/container_git/msm/praxis/ontology/serenity-skill-creator/localstore/container_admin;另两个 im-bridge/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": {