dsh-plugin-om 0.0.49 → 0.0.51

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/dist/index.mjs CHANGED
@@ -39,16 +39,15 @@ const HISTORY_TIP = "当前块是历史消息的压缩产物,不要复述";
39
39
  * 「完整消息」定义(压缩提示词与主会话 system-reminder 共用)。
40
40
  * 完整消息是摘要日志与 recall 共用的定位单位;首条 index 为 0,按会话顺序递增、全局稳定。
41
41
  */
42
- const COMPLETE_MESSAGE_DEFINITION = "`完整消息`指一条`用户消息`、`系统消息`、`模型输出文本`或`具有result的toolcall`;首条 index 为 0,按会话顺序递增。";
42
+ const COMPLETE_MESSAGE_DEFINITION = "`完整消息`指一条`用户消息`、`模型输出文本`或`具有result的toolcall`;首条 index 为 0,按会话顺序递增。";
43
43
  /**
44
44
  * 最终 <history> 块内文块首的格式说明注释(XML 注释)。通用部分(条目标签语义 +
45
- * CDATA 约定 + toolcall 结构)始终保留;<user_message> / <sys> /
45
+ * CDATA 约定 + toolcall 结构)始终保留;<user_message> /
46
46
  * <skill_content> / <ask-user-question> 的条目说明仅在块内存在对应条目时追加。
47
47
  */
48
48
  function historyFormatNote(sections = {}) {
49
49
  const parts = ["<TAG index=\"N\">表示单条完整消息,<TAG start=\"A\" end=\"B\"> 表示多条连续消息,start/end 是首尾完整消息的 index;消息块的内容是用CDATA包裹的纯文本", "<assistant type=\"toolcall\" tool-name=\"T\" callId=\"C\" index=\"N\"> 表示工具调用,内含 <tool-args> 与 <tool-result> 两个CDATA子元素(调用参数与工具返回内容)"];
50
50
  if (sections.user) parts.push("<user_message index=\"N\"> 表示用户消息原文");
51
- if (sections.sys) parts.push("<sys type=\"KIND\" index=\"N\"> 表示被压缩的系统消息,块中为空");
52
51
  if (sections.skill) parts.push("<skill_content name=\"S\" index=\"N\"> 表示未压缩的原始 skill");
53
52
  if (sections.askUserQuestion) parts.push("<ask-user-question index=\"N\"> 表示向用户提问,CDATA 内为逐题成对的 q:(提问)与 a:(用户回答)行,未作答的题记为 a:(未回答)");
54
53
  return `<!-- ${parts.join(";")} -->`;
@@ -7491,15 +7490,15 @@ var import_lib = (/* @__PURE__ */ __commonJSMin(((exports) => {
7491
7490
  })))();
7492
7491
  /**
7493
7492
  * 会话日志索引:完整消息索引与渲染。
7494
- * 导出 indexCompleteMessages(完整消息四类折叠索引,recall 与摘要共用同一套编号)、
7493
+ * 导出 indexCompleteMessages(完整消息三类折叠索引,recall 与摘要共用同一套编号)、
7495
7494
  * indexMessages / surfaceIndexOf / messageIdOfEvent(消息级定位辅助)、
7496
7495
  * collectImageRefs / toolCallBlockOf / toolResultMessageOf / renderToolResultText /
7497
7496
  * renderCompleteMessageParts /
7498
7497
  * renderCompleteMessage(完整消息渲染与图片附件收集)。事件日志仅追加(被遮蔽的事件仍可读,
7499
7498
  * recall 依赖此性质)。
7500
7499
  *
7501
- * 完整消息分四类:user(用户消息)、sys(系统消息,压缩日志中以 <sys> 空块表示)、
7502
- * assistant(模型输出文本)、toolcall(单个工具调用及其结果,result 按 callId 匹配并入)。
7500
+ * 完整消息分三类:user(用户消息)、assistant(模型输出文本)、
7501
+ * toolcall(单个工具调用及其结果,result 按 callId 匹配并入)。系统消息不占位。
7503
7502
  * index 从 0 起、按日志顺序递增、只追加不重排(压缩后旧摘要条目引用的 index 仍然有效)。
7504
7503
  */
7505
7504
  /** 查找 seq 在表层节点序列中的下标(不在则返回 -1)。 */
@@ -7508,7 +7507,7 @@ function surfaceIndexOf(nodes, seq) {
7508
7507
  return -1;
7509
7508
  }
7510
7509
  /**
7511
- * 完整消息索引:按日志顺序把消息事件折叠为完整消息序列(四类,见文件头)。
7510
+ * 完整消息索引:按日志顺序把消息事件折叠为完整消息序列(三类,见文件头)。
7512
7511
  * 工具调用结果按 source.callId 匹配其 tool-call 并入该条;未匹配的 result 独立成条(防御)。
7513
7512
  * 本插件自产消息不占位;压缩在 agent/pre-step 触发(call-result 完备),不存在未闭合调用。
7514
7513
  */
@@ -7527,12 +7526,6 @@ function indexCompleteMessages(session) {
7527
7526
  type: "user",
7528
7527
  seqs: [seq]
7529
7528
  });
7530
- else cms.push({
7531
- index: cms.length,
7532
- type: "sys",
7533
- seqs: [seq],
7534
- ...source?.kind === void 0 ? {} : { kind: source.kind }
7535
- });
7536
7529
  } else if (event.type === "assistant/message") {
7537
7530
  const message = event.data.message;
7538
7531
  if (!message || !Array.isArray(message.content)) continue;
@@ -7632,13 +7625,13 @@ function renderToolResultText(session, cm, pruner) {
7632
7625
  return message ? renderMessageText(message) : "";
7633
7626
  }
7634
7627
  /** 渲染一条完整消息为「文本 + 图片」(recall 输出用):
7635
- * user/sys 取消息原文,assistant 取文本块,toolcall 为调用块 + 结果文本
7628
+ * user 取消息原文,assistant 取文本块,toolcall 为调用块 + 结果文本
7636
7629
  * (pruner 裁剪超大结果);同时收集该条完整消息携带的图片附件(含 tool-result 嵌套,
7637
7630
  * pruner 裁剪掉的图片不收集)。
7638
7631
  */
7639
7632
  function renderCompleteMessageParts(session, cm, pruner) {
7640
7633
  const images = [];
7641
- if (cm.type === "user" || cm.type === "sys") {
7634
+ if (cm.type === "user") {
7642
7635
  const seq = cm.seqs[0];
7643
7636
  const event = seq === void 0 ? void 0 : session.snapshotEvents()[seq];
7644
7637
  const message = event ? session.deriveEventMessage(event) : null;
@@ -7820,7 +7813,7 @@ function askUserQuestionText(ask) {
7820
7813
  }
7821
7814
  /**
7822
7815
  * 观察视图:被压缩区间(表层 seq 集合)内的完整消息投影为条目——
7823
- * user → 原文(图片等非文本块为注释)、sys → 空条目(手动加载的 skill 为 skill 条目)、
7816
+ * user → 原文(图片等非文本块为注释)、
7824
7817
  * assistant/toolcall → 原文渲染,reasoning 作为参考条目置于其所属 assistant 条目之前(每条 assistant 消息输出一次;
7825
7818
  * skipReasoning 时省略)。
7826
7819
  * 要求区间为区间内完整消息的首尾 index。
@@ -7841,33 +7834,6 @@ function buildObserveView(session, seqs, options = {}) {
7841
7834
  const emittedReasoning = /* @__PURE__ */ new Set();
7842
7835
  for (const cm of indexCompleteMessages(session)) {
7843
7836
  if (!cm.seqs.every((seq) => shadowed.has(seq))) continue;
7844
- if (cm.type === "sys") {
7845
- const seq = cm.seqs[0];
7846
- const event = seq === void 0 ? void 0 : session.snapshotEvents()[seq];
7847
- const source = event?.type === "user/message" ? event.data.source : void 0;
7848
- if (cm.kind === "skill-invocation" && source?.kind === "skill-invocation" && typeof source.name === "string") {
7849
- const text = renderCompleteMessage(session, cm);
7850
- if (text.trim() !== "") {
7851
- entries.push({
7852
- kind: "assistant",
7853
- lo: cm.index,
7854
- hi: cm.index,
7855
- text,
7856
- toolName: SKILL_TOOL_NAME,
7857
- skillName: source.name
7858
- });
7859
- continue;
7860
- }
7861
- }
7862
- entries.push({
7863
- kind: "sys",
7864
- lo: cm.index,
7865
- hi: cm.index,
7866
- text: "",
7867
- ...cm.kind === void 0 ? {} : { sysKind: cm.kind }
7868
- });
7869
- continue;
7870
- }
7871
7837
  if (cm.type === "user") {
7872
7838
  const parts = userEntryParts(session, cm);
7873
7839
  if (parts === null) continue;
@@ -8022,9 +7988,9 @@ function askUserQuestionSections(text) {
8022
7988
  };
8023
7989
  }
8024
7990
  /**
8025
- * 解析一个已有 <history> 块的内条目(反思视图):user_message / sys / assistant
7991
+ * 解析一个已有 <history> 块的内条目(反思视图):user_message / assistant
8026
7992
  * (index 单条或 start/end 区间)/ skill_content(name 属性 + index 定位)/
8027
- * ask-user-question(index 定位)/ reasoning。
7993
+ * ask-user-question(index 定位)/ reasoning;其余标签(含旧版 sys)一律忽略。
8028
7994
  * 整块无法解析或根非 <history> 时降级为单条不可定位的历史遗留条目(text 为块内文原文,
8029
7995
  * 构建最终块时原样保留)。
8030
7996
  */
@@ -8058,18 +8024,6 @@ function parseBlockEntries(blockText, blockSeq) {
8058
8024
  text,
8059
8025
  blockSeq
8060
8026
  });
8061
- } else if (el.nodeName === "sys") {
8062
- const index = intAttr(el, "index");
8063
- if (index === void 0) continue;
8064
- const type = el.getAttribute("type");
8065
- entries.push({
8066
- kind: "sys",
8067
- lo: index,
8068
- hi: index,
8069
- text: "",
8070
- ...type === null ? {} : { sysKind: type },
8071
- blockSeq
8072
- });
8073
8027
  } else if (el.nodeName === "assistant") {
8074
8028
  const index = intAttr(el, "index");
8075
8029
  if (index !== void 0) {
@@ -8176,7 +8130,7 @@ function buildReflectView(blocks, options = {}) {
8176
8130
  }
8177
8131
  /**
8178
8132
  * 把一个视图条目构建为 XML 元素(正文统一以 CDATA 包裹,逐字原样;user 条目的注释
8179
- * 输出为 XML 注释节点;sys 条目为无正文的空元素,自闭合输出)。getHistory 输出与
8133
+ * 输出为 XML 注释节点)。getHistory 输出与
8180
8134
  * 最终 <history> 块共用。
8181
8135
  */
8182
8136
  function entryToElement(doc, entry) {
@@ -8187,12 +8141,6 @@ function entryToElement(doc, entry) {
8187
8141
  for (const note of entry.notes ?? []) el.appendChild(doc.createComment(note));
8188
8142
  return el;
8189
8143
  }
8190
- if (entry.kind === "sys") {
8191
- const el = doc.createElement("sys");
8192
- el.setAttribute("type", entry.sysKind ?? "");
8193
- if (entry.lo !== void 0) el.setAttribute("index", String(entry.lo));
8194
- return el;
8195
- }
8196
8144
  if (entry.kind === "reasoning") {
8197
8145
  const el = doc.createElement("reasoning");
8198
8146
  appendCdataText(doc, el, entry.text);
@@ -8491,10 +8439,6 @@ var CompressionState = class CompressionState {
8491
8439
  text: `${CompressionState.spanLabel(lo, hi)} 覆盖用户消息(index ${entry.lo}),用户消息不可压缩`,
8492
8440
  isError: true
8493
8441
  };
8494
- if (entry.kind === "sys") return {
8495
- text: `${CompressionState.spanLabel(lo, hi)} 覆盖系统消息(index ${entry.lo}),系统消息不可压缩`,
8496
- isError: true
8497
- };
8498
8442
  if (entry.kind === "assistant" && !(entry.lo >= lo && entry.hi <= hi)) return {
8499
8443
  text: `${CompressionState.spanLabel(lo, hi)} 与 assistant 条目 [${entry.lo}..${entry.hi}] 部分重叠,需完整包含或不相交`,
8500
8444
  isError: true
@@ -8627,7 +8571,7 @@ var CompressionState = class CompressionState {
8627
8571
  unprocessedAskIndices() {
8628
8572
  return this.view.entries.flatMap((entry) => entry.ask !== void 0 && entry.lo !== void 0 && !this.coveredBy(entry) && !this.rewrittenAsks.has(entry.lo) ? [entry.lo] : []);
8629
8573
  }
8630
- /** completeCompression:所有原始合法 ask 已压缩或重写后标记完成。 */
8574
+ /** completeCompression:所有原始合法 ask 已压缩或重写后标记完成;result 为最终 <history> 块。 */
8631
8575
  complete() {
8632
8576
  const pending = this.unprocessedAskIndices();
8633
8577
  if (pending.length > 0) return {
@@ -8636,12 +8580,12 @@ var CompressionState = class CompressionState {
8636
8580
  };
8637
8581
  this._completed = true;
8638
8582
  return {
8639
- text: "压缩完成",
8583
+ text: this.buildFinalBlock(),
8640
8584
  isError: false
8641
8585
  };
8642
8586
  }
8643
8587
  /**
8644
- * 构建最终 <history> 块:按 index 顺序合并视图条目与替换记录——user / sys 条目
8588
+ * 构建最终 <history> 块:按 index 顺序合并视图条目与替换记录——user 条目
8645
8589
  * 原样、被替换区间生成 <assistant index|start end> 摘要条目(content 以 CDATA 包裹嵌入)、
8646
8590
  * 未替换普通与历史条目原样保留,原始 ask 使用重写后的 q/a;reasoning 不进产物。
8647
8591
  * 块首按最终条目动态生成格式说明注释,开标签携带 tip 属性。
@@ -8691,7 +8635,6 @@ var CompressionState = class CompressionState {
8691
8635
  flushReplacementsBefore(void 0);
8692
8636
  const note = historyFormatNote({
8693
8637
  user: this.view.entries.some((e) => e.kind === "user"),
8694
- sys: this.view.entries.some((e) => e.kind === "sys"),
8695
8638
  skill: this.view.entries.some((e) => e.kind === "assistant" && e.toolName === "skill" && !coveredBy(e)),
8696
8639
  askUserQuestion: this.view.entries.some((e) => isAskEntry(e) && !coveredBy(e))
8697
8640
  });
@@ -8769,7 +8712,7 @@ const COMPRESSION_TOOL_SCHEMAS = [
8769
8712
  },
8770
8713
  {
8771
8714
  name: "compressHistory",
8772
- description: "把 index 单条或 start..end 连续区间的 assistant 类条目(模型输出文本、工具调用)替换为 content 摘要。index 与 start/end 二选一,start 与 end 成对提供且 start==end 等同 index。区间不得覆盖用户消息或系统消息,不得与已有替换区间部分重叠(完全包含则覆盖)。用户消息与系统消息保持原样,无需处理。",
8715
+ description: "把 index 单条或 start..end 连续区间的 assistant 类条目(模型输出文本、工具调用)替换为 content 摘要。index 与 start/end 二选一,start 与 end 成对提供且 start==end 等同 index。区间不得覆盖用户消息,不得与已有替换区间部分重叠(完全包含则覆盖)。用户消息保持原样,无需处理。",
8773
8716
  parameters: {
8774
8717
  type: "object",
8775
8718
  properties: {
@@ -8891,17 +8834,17 @@ function buildCompressionPrompt(skipReasoning) {
8891
8834
  "",
8892
8835
  "【工具】",
8893
8836
  "- getHistory(option?: {start?, end?}):查看压缩区间内的历史条目。start/end 缺省为要求区间的第一个/最后一个完整消息 index,必须在要求区间内。返回压缩视图:已压缩内容以摘要条目呈现,区间切入已压缩块时返回整块,不带 <history> 包裹。",
8894
- "- compressHistory(option?: {index?, start?, end?, content}):把 index 单条或 start..end 连续区间的 assistant 类条目替换为 content 摘要(纯文本,不要包含 CDATA 包裹,插件自动包裹)。index 与 start/end 二选一,start==end 等同 index。区间不得覆盖用户消息或系统消息;与已有替换区间部分重叠会被拒绝,完全包含则覆盖。",
8837
+ "- compressHistory(option?: {index?, start?, end?, content}):把 index 单条或 start..end 连续区间的 assistant 类条目替换为 content 摘要(纯文本,不要包含 CDATA 包裹,插件自动包裹)。index 与 start/end 二选一,start==end 等同 index。区间不得覆盖用户消息;与已有替换区间部分重叠会被拒绝,完全包含则覆盖。",
8895
8838
  "- completeCompression():全部压缩完成后调用,立即结束。",
8896
8839
  "",
8897
8840
  "【压缩要求】",
8898
- "- 先用 getHistory 查看区间内容,再划分模块分批压缩;用户消息与系统消息不可压缩、保持原样,无需处理。",
8841
+ "- 先用 getHistory 查看区间内容,再划分模块分批压缩;用户消息不可压缩、保持原样,无需处理。",
8899
8842
  ...skipReasoning ? [] : ["- <reasoning> 仅作压缩参考,不进产物。"],
8900
8843
  "- 将具有关联性的 assistant 消息按内在逻辑连贯性划分为连续模块,聚合为区间压缩(start..end)",
8901
8844
  "- 单条重要的完整消息以 index 单独压缩",
8902
8845
  "- 压缩后的 assistant 消息内,应当描述**行为逻辑**,强调关键的**结论、产出和任务**;涉及到的具体文件保留完整路径",
8903
8846
  "- 摘要粒度越往后越细:靠近末尾(最近)的消息保留更多细节,开头(较早)的消息简写。",
8904
- "- <history> 条目正文以 CDATA 包裹(空的 <sys> 条目为自闭合空元素,无正文),CDATA 内为逐字原样内容。",
8847
+ "- <history> 条目正文以 CDATA 包裹,CDATA 内为逐字原样内容。",
8905
8848
  "- 工具调用条目为 <assistant index=\"N\" type=\"toolcall\" tool-name=\"…\" callId=\"…\">,内含 <tool-args>(调用参数 JSON)与 <tool-result>(工具返回内容)两个 CDATA 子元素。",
8906
8849
  "- 加载的 skill 以 <skill_content name=\"…\" index=\"N\"> 条目呈现,内含 <skill_resources> 与 <skill_instructions> 两段,内文为加载的 skill 内容,属于关键信息。仅在你明确判断该 skill 与后续任务无关时,压缩它;如果该 skill 与后续任务相关,或者你无法判断,不要压缩,**保持原文**。",
8907
8850
  "- 已有 <history> 块中的 ask_user_question 以 <ask-user-question index=\"N\"> 呈现,CDATA 内为逐题成对的 q:(问题文本)与 a:(用户回答)行,未作答的题记为 a:(未回答)。这些提问已经处理;仅在明确判断与后续任务无关时压缩,否则保持原样。原始提问按本会话的专用处理规则执行。",
@@ -9130,18 +9073,30 @@ async function runCompressionLoop(ctx, session, options) {
9130
9073
  }
9131
9074
  //#endregion
9132
9075
  //#region src/om-event.ts
9133
- /** 解码一条会话事件为 om 私有事件:仅识别 plugin:dsh-plugin-om:*。 */
9076
+ /** om 信封 text 前缀:标识该 feedback/record 记录由本插件写入。 */
9077
+ const OM_EVENT_PREFIX = "om:1:";
9078
+ /**
9079
+ * 解码一条会话事件为 om 私有事件:仅识别 feedback/record 中带 om 信封前缀的
9080
+ * text;前缀缺失、JSON 非法、kind 未知或载荷字段缺失时返回 undefined。
9081
+ */
9134
9082
  function readOmEvent(event) {
9135
- if (event === void 0 || event === null) return void 0;
9136
- const data = event.data;
9137
- if (data === null || typeof data !== "object" || Array.isArray(data)) return void 0;
9138
- const record = data;
9139
- switch (event.type) {
9140
- case "plugin:dsh-plugin-om:warning": {
9141
- const { problem, message } = record;
9083
+ if (event === void 0 || event === null || event.type !== "feedback/record") return void 0;
9084
+ const text = event.data.text;
9085
+ if (typeof text !== "string" || !text.startsWith("om:1:")) return void 0;
9086
+ let envelope;
9087
+ try {
9088
+ envelope = JSON.parse(text.slice(5));
9089
+ } catch {
9090
+ return;
9091
+ }
9092
+ if (envelope === null || typeof envelope !== "object" || Array.isArray(envelope)) return void 0;
9093
+ const { kind, ...rest } = envelope;
9094
+ switch (kind) {
9095
+ case "om/warning": {
9096
+ const { problem, message } = rest;
9142
9097
  if (typeof problem !== "string" || typeof message !== "string") return void 0;
9143
9098
  return {
9144
- kind: event.type,
9099
+ kind,
9145
9100
  data: {
9146
9101
  problem,
9147
9102
  message
@@ -9149,20 +9104,20 @@ function readOmEvent(event) {
9149
9104
  seq: event.seq
9150
9105
  };
9151
9106
  }
9152
- case "plugin:dsh-plugin-om:observe-pending": {
9153
- const { triggerMessageIndex } = record;
9107
+ case "om/observe-pending": {
9108
+ const { triggerMessageIndex } = rest;
9154
9109
  if (typeof triggerMessageIndex !== "number" || !Number.isSafeInteger(triggerMessageIndex)) return void 0;
9155
9110
  return {
9156
- kind: event.type,
9111
+ kind,
9157
9112
  data: { triggerMessageIndex },
9158
9113
  seq: event.seq
9159
9114
  };
9160
9115
  }
9161
- case "plugin:dsh-plugin-om:observe-invalidate": {
9162
- const { pendingSeq } = record;
9116
+ case "om/observe-invalidate": {
9117
+ const { pendingSeq } = rest;
9163
9118
  if (typeof pendingSeq !== "number" || !Number.isSafeInteger(pendingSeq)) return void 0;
9164
9119
  return {
9165
- kind: event.type,
9120
+ kind,
9166
9121
  data: { pendingSeq },
9167
9122
  seq: event.seq
9168
9123
  };
@@ -9170,9 +9125,16 @@ function readOmEvent(event) {
9170
9125
  default: return;
9171
9126
  }
9172
9127
  }
9173
- /** 追加一条 om 私有事件(log-only,不进 surface),返回事件 seq。 */
9128
+ /** 编码一条 om 私有事件为 feedback/record 的 text 信封。 */
9129
+ function encodeOmEvent(kind, data) {
9130
+ return `${OM_EVENT_PREFIX}${JSON.stringify({
9131
+ kind,
9132
+ ...data
9133
+ })}`;
9134
+ }
9135
+ /** 追加一条 om 私有事件(借用 feedback/record,log-only,不进 surface),返回事件 seq。 */
9174
9136
  function appendOmEvent(session, kind, data) {
9175
- return session.append(kind, data).seq;
9137
+ return session.append("feedback/record", { text: encodeOmEvent(kind, data) }).seq;
9176
9138
  }
9177
9139
  function findOmEvents(session, kind) {
9178
9140
  const result = [];
@@ -9188,35 +9150,36 @@ function findOmEvents(session, kind) {
9188
9150
  * 降级报告:压缩流程中的挂载失败统一出口。
9189
9151
  * 导出 reportDegrade / DEGRADE_PROBLEMS / DegradedProblem。
9190
9152
  *
9191
- * 挂载失败类问题(服务缺失、服务调用异常)console.warn 到宿主进程外部输出,
9192
- * 并向会话日志追加 log-only 的 plugin:dsh-plugin-om:warning 事件,
9193
- * 客户端渲染为「功能降级」警告行。
9194
- * 同一会话同一问题只报告一次(按日志扫描去重,重启不重复)。
9195
- * 报告动作自身绝不抛错,追加失败只记日志,不阻塞压缩。
9196
- * 辅助函数的普通运行时报错不走本模块,仅记日志。
9153
+ * - 挂载失败类问题(服务缺失、服务调用异常)始终 console.warn 到宿主进程外部输出,
9154
+ * 并向会话日志追加 log-only 的 om 警告事件(借用 feedback/record 的 om 信封,
9155
+ * 见 om-event.ts;客户端渲染为「功能降级」警告行);
9156
+ * 同一会话同一问题只报告一次(按日志扫描去重,重启不重复)
9157
+ * - 报告动作自身绝不抛错:追加失败只记日志,不阻塞压缩
9158
+ * - 辅助函数的普通运行时报错(组装失败、请求头读取失败)不走本模块,仅记日志
9197
9159
  */
9198
- /** 各降级问题面向用户的简短说明(plugin:dsh-plugin-om:warning 载荷 message;客户端警告行直接展示)。 */
9160
+ /** 各降级问题面向用户的简短说明(om/warning 信封载荷 message;客户端警告行直接展示)。 */
9199
9161
  const DEGRADE_PROBLEMS = {
9200
9162
  "systemPrompt-missing": "系统提示词服务未挂载,上下文压力估算不扣除系统提示词 tokens(压缩触发会偏早)",
9201
9163
  "tokenMeter-unavailable": "token 计量服务异常,上下文压力估算降级(可能跳过压缩或按 0 计)",
9202
9164
  "reasoning-effort-unavailable": "配置的压缩思考等级不被压缩目标模型支持,压缩降级为模型默认思考等级"
9203
9165
  };
9204
9166
  /**
9205
- * 报告一次挂载失败类降级:console.warn 输出到宿主进程外部;同会话同问题首次
9206
- * 出现时,向会话日志追加 log-only plugin:dsh-plugin-om:warning 事件并输出 logger.warn。
9207
- * 日志扫描/事件追加失败只记日志,不抛错、不阻塞压缩。
9167
+ * 报告一次挂载失败类降级:console.warn 始终输出到宿主进程外部;同会话同问题首次
9168
+ * 出现时,向会话日志追加 log-only om 警告事件(客户端渲染警告行,每会话最多
9169
+ * 一次)并输出 logger.warn(避免每个 pre-step 重复刷日志)。
9170
+ * 日志扫描/事件追加失败只记日志,绝不抛错、不阻塞压缩。
9208
9171
  */
9209
9172
  function reportDegrade(session, logger, problem) {
9210
9173
  const message = DEGRADE_PROBLEMS[problem];
9211
9174
  let first = true;
9212
9175
  try {
9213
- first = !findOmEvents(session, "plugin:dsh-plugin-om:warning").some((om) => om.data.problem === problem);
9176
+ first = !findOmEvents(session, "om/warning").some((om) => om.data.problem === problem);
9214
9177
  } catch {}
9215
9178
  if (!first) return;
9216
9179
  console.warn(`${PLUGIN_LABEL}: ${message}`);
9217
9180
  logger.warn(message);
9218
9181
  try {
9219
- appendOmEvent(session, "plugin:dsh-plugin-om:warning", {
9182
+ appendOmEvent(session, "om/warning", {
9220
9183
  problem,
9221
9184
  message
9222
9185
  });
@@ -9244,8 +9207,8 @@ function reportDegrade(session, logger, problem) {
9244
9207
  * tailMessageCount 时,把压缩边界至触发点的全部消息作为压缩视图替换为新 <history>
9245
9208
  * 块(旧块保留),等待期间的新消息成为下一轮未压缩尾部(延迟窗口内压力允许
9246
9209
  * 短暂超阈值);tailMessageCount=0 时触发当轮直接执行(不落待定标记)
9247
- * - 待定标记以 log-only 自定义会话事件(kind 为 plugin:dsh-plugin-om:observe-pending /
9248
- * plugin:dsh-plugin-om:observe-invalidate,见 om-event.ts)持久化在会话日志中(重启后从日志恢复);
9210
+ * - 待定标记以 log-only om 信封事件(借用 feedback/record,kind 为 om/observe-pending /
9211
+ * om/observe-invalidate,见 om-event.ts)持久化在会话日志中(重启后从日志恢复);
9249
9212
  * 压缩失败保留待定,下个 pre-step 直接重试执行
9250
9213
  * - 两级在 pre-step 阻塞串行执行(先反思后观察);仅主会话生效;omEnabled=false 关闭
9251
9214
  * - 压缩目标默认跟随会话路由;compressProvider + compressModel 成对配置时覆盖路由
@@ -9260,7 +9223,7 @@ function reportDegrade(session, logger, problem) {
9260
9223
  * - 提交走宿主 compaction/* 生命周期事件(start 带 phase → summary → 替换消息 → end),
9261
9224
  * 失败补 end(error,实际报错 + 诊断子会话 sessionId);替换消息 source 标记插件标识供 UI 认领
9262
9225
  * - 挂载失败类问题(systemPrompt/tokenMeter 服务异常)始终 console 到外部进程,并追加
9263
- * log-only plugin:dsh-plugin-om:warning 事件(客户端渲染功能降级警告行,每会话同一
9226
+ * log-only om 警告事件(借用 feedback/record,客户端渲染功能降级警告行,每会话同一
9264
9227
  * 问题至多一次);
9265
9228
  * 辅助估算的普通运行时报错仅记日志。降级与报错都不阻塞压缩(tokenMeter 压力数据
9266
9229
  * 缺失时本轮跳过观察)
@@ -9438,8 +9401,8 @@ function hasHistoryBlock(session) {
9438
9401
  return false;
9439
9402
  }
9440
9403
  /**
9441
- * 查找当前活跃的观察压缩待定标记:按日志顺序取最后一条 plugin:dsh-plugin-om:observe-pending 事件,
9442
- * 其后须无引用它的 plugin:dsh-plugin-om:observe-invalidate(已失效),且其后的压缩边界 seq 不大于标记
9404
+ * 查找当前活跃的观察压缩待定标记:按日志顺序取最后一条 om/observe-pending 信封事件,
9405
+ * 其后须无引用它的 om/observe-invalidate(已失效),且其后的压缩边界 seq 不大于标记
9443
9406
  * seq(边界后移说明标记期间已发生过压缩,标记过期——兜底「执行成功但失效标记未写出」
9444
9407
  * 的崩溃窗口)。无活跃标记返回 undefined。
9445
9408
  */
@@ -9449,24 +9412,24 @@ function findObservePending(session) {
9449
9412
  const event = session.snapshotEvents()[seq];
9450
9413
  if (!event) continue;
9451
9414
  const om = readOmEvent(event);
9452
- if (om?.kind === "plugin:dsh-plugin-om:observe-pending") pending = {
9415
+ if (om?.kind === "om/observe-pending") pending = {
9453
9416
  seq,
9454
9417
  triggerMessageIndex: om.data.triggerMessageIndex
9455
9418
  };
9456
- else if (om?.kind === "plugin:dsh-plugin-om:observe-invalidate" && pending !== void 0 && om.data.pendingSeq === pending.seq) pending = void 0;
9419
+ else if (om?.kind === "om/observe-invalidate" && pending !== void 0 && om.data.pendingSeq === pending.seq) pending = void 0;
9457
9420
  }
9458
9421
  if (pending === void 0) return void 0;
9459
9422
  const { boundarySeq } = historySection(session);
9460
9423
  if (boundarySeq !== void 0 && boundarySeq > pending.seq) return void 0;
9461
9424
  return pending;
9462
9425
  }
9463
- /** 追加观察压缩待定标记(log-only 事件):记录触发点完整消息 index,返回事件 seq。 */
9426
+ /** 追加观察压缩待定标记(log-only om 信封事件):记录触发点完整消息 index,返回事件 seq。 */
9464
9427
  function appendObservePending(session, triggerMessageIndex) {
9465
- return appendOmEvent(session, "plugin:dsh-plugin-om:observe-pending", { triggerMessageIndex });
9428
+ return appendOmEvent(session, "om/observe-pending", { triggerMessageIndex });
9466
9429
  }
9467
- /** 追加观察压缩待定失效标记(log-only 事件):声明指定 pending 已失效,返回事件 seq。 */
9430
+ /** 追加观察压缩待定失效标记(log-only om 信封事件):声明指定 pending 已失效,返回事件 seq。 */
9468
9431
  function appendObserveInvalidate(session, pendingSeq) {
9469
- return appendOmEvent(session, "plugin:dsh-plugin-om:observe-invalidate", { pendingSeq });
9432
+ return appendOmEvent(session, "om/observe-invalidate", { pendingSeq });
9470
9433
  }
9471
9434
  /** 当前打开中的 turn 号(最近 turn/start 且未被 turn/end 关闭);无则 null。 */
9472
9435
  function openTurnOf(session) {
@@ -10386,19 +10349,11 @@ function toolcallElement(doc, session, cm, pruner, images) {
10386
10349
  appendImageComments(doc, el, images);
10387
10350
  return el;
10388
10351
  }
10389
- /** 按完整消息类别构建元素(user / sys / assistant 文本条目复用 parts 渲染)。 */
10352
+ /** 按完整消息类别构建元素(user / assistant 文本条目复用 parts 渲染)。 */
10390
10353
  function buildElement(doc, session, cm, pruner, images) {
10391
10354
  if (cm.type === "toolcall") return toolcallElement(doc, session, cm, pruner, images);
10392
10355
  const parts = renderCompleteMessageParts(session, cm, pruner);
10393
10356
  images.push(...parts.images);
10394
- if (cm.type === "sys") {
10395
- const el = doc.createElement("sys");
10396
- el.setAttribute("index", String(cm.index));
10397
- if (cm.kind !== void 0) el.setAttribute("type", cm.kind);
10398
- appendBodyText(doc, el, parts.text);
10399
- appendImageComments(doc, el, parts.images);
10400
- return el;
10401
- }
10402
10357
  const el = doc.createElement(cm.type === "user" ? "user_message" : "assistant");
10403
10358
  el.setAttribute("index", String(cm.index));
10404
10359
  if (cm.type === "assistant") el.setAttribute("type", "text");
@@ -10408,12 +10363,6 @@ function buildElement(doc, session, cm, pruner, images) {
10408
10363
  }
10409
10364
  /** 主渲染失败时的回退元素:按完整消息类别输出最简形态,正文为回退文本。 */
10410
10365
  function fallbackElement(doc, cm, text) {
10411
- if (cm.type === "sys") {
10412
- const el = doc.createElement("sys");
10413
- el.setAttribute("index", String(cm.index));
10414
- if (cm.kind !== void 0) el.setAttribute("type", cm.kind);
10415
- return el;
10416
- }
10417
10366
  const el = doc.createElement(cm.type === "user" ? "user_message" : "assistant");
10418
10367
  el.setAttribute("index", String(cm.index));
10419
10368
  if (cm.type !== "user") el.setAttribute("type", cm.type === "toolcall" ? "toolcall" : "text");
@@ -10719,9 +10668,9 @@ function buildRecallTool(options) {
10719
10668
  //#region src/system-reminder.ts
10720
10669
  /**
10721
10670
  * system-reminder:以 <system-reminder> 用户消息向主会话注入插件提醒,不进系统提示词。
10722
- * - 进度提醒:OM 启用时提示模型边做边简述计划与进展。
10671
+ * - 进度提醒:表层缺少同 kind 消息时补发,或无记录活动累计至少 4 个已结束 step、超过 10 次工具调用时重发。
10723
10672
  * - 完整消息定义提醒:OM 或 recall 启用时说明 `<history>` 块与 recall 共用的完整消息 index。
10724
- * 每个 step 检查表层,被压缩遮蔽或文本过期时补发,保证模型请求中每种恒有一条。
10673
+ * 每个 step 检查表层;真实用户消息、非空模型 text 与进度提醒重置活动窗口,定义提醒缺失或文本过期时补发。
10725
10674
  * 导出 PROGRESS_REMINDER_SOURCE_KIND / DEFINITION_REMINDER_SOURCE_KIND / 对应 source 类型 /
10726
10675
  * SystemReminder / PROGRESS_REMINDER / DEFINITION_REMINDER / systemReminderMessage /
10727
10676
  * activeSystemReminders / ensureSystemReminders。
@@ -10742,11 +10691,11 @@ function wrap(lines) {
10742
10691
  const PROGRESS_REMINDER = {
10743
10692
  kind: PROGRESS_REMINDER_SOURCE_KIND,
10744
10693
  text: wrap([
10745
- "在工作过程中同步输出文本,简洁记录关键结论与后续规划。思考内容不计入记录。",
10746
- "- 每个阶段性工作开始前记录一次,一个阶段通常是 1-5 个工具调用",
10747
- "- 禁止连续 10 个以上工具调用而无记录",
10748
- "- 记录后在同一回复中继续调用工具,不要停下等待",
10749
- "- 最终答案仅总结结果,不能替代这些记录"
10694
+ "在工作过程中持续输出文本,记录最近几步的成果:",
10695
+ "- 1-2句话即可,概括为主,不必覆盖所有细节",
10696
+ "- 承上启下,突出要点,例如“读 f1,发现 L1 关联了 f2-L2,读 f2”,“m1 完成,按计划开始 m2”",
10697
+ "- 记录后继续完成任务,不要等待确认",
10698
+ "- 记录仅是中间产物,最终输出需要另行构建"
10750
10699
  ])
10751
10700
  };
10752
10701
  /** 完整消息定义提醒。 */
@@ -10778,9 +10727,40 @@ function activeSystemReminders(config, hasHistory) {
10778
10727
  function isCurrent(reminder, source, content) {
10779
10728
  return source.kind === reminder.kind && content.length === 1 && content[0]?.type === "text" && content[0].text === reminder.text;
10780
10729
  }
10730
+ /** 进度提醒在表层缺失,或静默窗口达到 4 个已结束 step 且超过 10 次调用时补发。 */
10731
+ function progressReminderTrigger(surface, events, messages) {
10732
+ if (messages.some((message) => message.source.kind === "plugin:dsh-plugin-om:progress")) return void 0;
10733
+ if (!surface.some((event) => event.type === "user/message" && event.data.source.kind === "plugin:dsh-plugin-om:progress")) return "missing";
10734
+ if (messages.some((message) => message.source.kind === "user")) return void 0;
10735
+ const ended = /* @__PURE__ */ new Set();
10736
+ for (const event of events) if (event.type === "step/end") ended.add(`${event.data.turn}:${event.data.step}`);
10737
+ const steps = /* @__PURE__ */ new Set();
10738
+ let toolCalls = 0;
10739
+ let textStep;
10740
+ for (const event of surface) if (event.type === "user/message") {
10741
+ const kind = event.data.source.kind;
10742
+ if (kind === "user" || kind === "plugin:dsh-plugin-om:progress") {
10743
+ steps.clear();
10744
+ toolCalls = 0;
10745
+ textStep = void 0;
10746
+ }
10747
+ } else if (event.type === "assistant/message") {
10748
+ const { turn, step, message } = event.data;
10749
+ const key = `${turn}:${step}`;
10750
+ if (message.content.some((block) => block.type === "text" && block.text.trim() !== "")) {
10751
+ steps.clear();
10752
+ toolCalls = 0;
10753
+ textStep = key;
10754
+ } else if (key !== textStep && ended.has(key)) {
10755
+ steps.add(key);
10756
+ toolCalls += message.content.filter((block) => block.type === "tool-call").length;
10757
+ }
10758
+ }
10759
+ return steps.size >= 4 && toolCalls > 10 ? "activity" : void 0;
10760
+ }
10781
10761
  /**
10782
- * 保证本 step 之后的消息列表中每种指定提醒各有一条当前文本:本 step 已带上或表层已有则跳过,
10783
- * 否则按顺序追加到末尾。返回新数组,不修改入参。
10762
+ * 按表层与待输入消息补发提醒,追加到末尾且不修改入参。
10763
+ * 进度提醒按 kind 去重并检测活动窗口,活动达标时追加立刻记录要求;定义提醒缺失或文本过期时补发。
10784
10764
  */
10785
10765
  function ensureSystemReminders(session, messages, reminders) {
10786
10766
  const result = [...messages];
@@ -10788,9 +10768,18 @@ function ensureSystemReminders(session, messages, reminders) {
10788
10768
  const events = session.snapshotEvents();
10789
10769
  const surface = session.surface.nodes.flatMap((seq) => {
10790
10770
  const event = events[seq];
10791
- return event?.type === "user/message" ? [event.data] : [];
10771
+ return event === void 0 ? [] : [event];
10792
10772
  });
10793
- for (const reminder of reminders) if (![...result, ...surface].some((message) => isCurrent(reminder, message.source, message.content))) result.push(systemReminderMessage(reminder));
10773
+ const surfaceMessages = surface.flatMap((event) => event.type === "user/message" ? [event.data] : []);
10774
+ for (const reminder of reminders) if (reminder.kind === "plugin:dsh-plugin-om:progress") {
10775
+ const trigger = progressReminderTrigger(surface, events, result);
10776
+ if (trigger === void 0) continue;
10777
+ const progress = trigger === "activity" ? {
10778
+ ...reminder,
10779
+ text: reminder.text.replace("\n</system-reminder>", "\n你应当*立刻*输出一条记录\n</system-reminder>")
10780
+ } : reminder;
10781
+ result.push(systemReminderMessage(progress));
10782
+ } else if (![...result, ...surfaceMessages].some((message) => isCurrent(reminder, message.source, message.content))) result.push(systemReminderMessage(reminder));
10794
10783
  return result;
10795
10784
  }
10796
10785
  //#endregion
@@ -11,7 +11,7 @@ export declare function messageIdOfEvent(event: SessionEvent | undefined): strin
11
11
  /** 消息索引:按日志顺序列出全部消息事件,并按 message_id 定位下标。 */
12
12
  export declare function indexMessages(session: Session): MessageIndex;
13
13
  /**
14
- * 完整消息索引:按日志顺序把消息事件折叠为完整消息序列(四类,见文件头)。
14
+ * 完整消息索引:按日志顺序把消息事件折叠为完整消息序列(三类,见文件头)。
15
15
  * 工具调用结果按 source.callId 匹配其 tool-call 并入该条;未匹配的 result 独立成条(防御)。
16
16
  * 本插件自产消息不占位;压缩在 agent/pre-step 触发(call-result 完备),不存在未闭合调用。
17
17
  */
@@ -38,7 +38,7 @@ export declare function toolResultMessageOf(session: Session, cm: CompleteMessag
38
38
  /** 渲染 toolcall 完整消息的工具返回文本(仅 result 内容;无配对 result 时为空串)。 */
39
39
  export declare function renderToolResultText(session: Session, cm: CompleteMessage, pruner?: PrunerLike): string;
40
40
  /** 渲染一条完整消息为「文本 + 图片」(recall 输出用):
41
- * user/sys 取消息原文,assistant 取文本块,toolcall 为调用块 + 结果文本
41
+ * user 取消息原文,assistant 取文本块,toolcall 为调用块 + 结果文本
42
42
  * (pruner 裁剪超大结果);同时收集该条完整消息携带的图片附件(含 tool-result 嵌套,
43
43
  * pruner 裁剪掉的图片不收集)。
44
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"log-index.d.ts","sourceRoot":"","sources":["../src/log-index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EACV,eAAe,EACf,OAAO,EACP,YAAY,EAEZ,OAAO,EACP,YAAY,EACb,MAAM,YAAY,CAAC;AAGpB,+CAA+C;AAC/C,MAAM,MAAM,UAAU,GAAG;IAAE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,KAAK,OAAO,EAAE,GAAG,IAAI,CAAA;CAAE,CAAC;AAE7F,oCAAoC;AACpC,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED,gEAAgE;AAChE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAMpF;AAED,6CAA6C;AAC7C,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,CAoB5D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,EAAE,CA+DzE;AAC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