dsh-plugin-om 0.0.48 → 0.0.49

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
@@ -190,162 +190,149 @@ function phaseLabel(phase) {
190
190
  function compressionRecordLabel(phase, rounds, success) {
191
191
  return `OM 压缩${success ? "会话记录" : "失败日志"}(${phaseLabel(phase)} · ${rounds} 轮)`;
192
192
  }
193
- /** usage 各桶文案(缺失桶显示 -)。 */
194
- function usageLine(usage) {
195
- const field = (value) => value === void 0 ? "-" : String(value);
196
- return `input ${field(usage.inputTokens)} / output ${field(usage.outputTokens)} / cacheRead ${field(usage.cacheReadTokens)} / cacheWrite ${field(usage.cacheWriteTokens)} / reasoning ${field(usage.reasoningTokens)} tokens`;
197
- }
198
- /** 汇总逐轮 usage(各桶任一轮存在即求和保留;全部轮次无 usage 时返回 undefined)。 */
199
- function sumRoundUsage(rounds) {
200
- let total;
201
- for (const round of rounds) {
202
- if (round.usage === void 0) continue;
203
- if (total === void 0) {
204
- total = { ...round.usage };
205
- continue;
206
- }
207
- const sum = (a, b) => a === void 0 && b === void 0 ? void 0 : (a ?? 0) + (b ?? 0);
208
- const merged = {
209
- inputTokens: (total.inputTokens ?? 0) + (round.usage.inputTokens ?? 0),
210
- outputTokens: (total.outputTokens ?? 0) + (round.usage.outputTokens ?? 0)
211
- };
212
- const cacheRead = sum(total.cacheReadTokens, round.usage.cacheReadTokens);
213
- const cacheWrite = sum(total.cacheWriteTokens, round.usage.cacheWriteTokens);
214
- const reasoning = sum(total.reasoningTokens, round.usage.reasoningTokens);
215
- if (cacheRead !== void 0) merged.cacheReadTokens = cacheRead;
216
- if (cacheWrite !== void 0) merged.cacheWriteTokens = cacheWrite;
217
- if (reasoning !== void 0) merged.reasoningTokens = reasoning;
218
- total = merged;
219
- }
220
- return total;
193
+ /**
194
+ * 构造一个 seed 事件信封:seq 由调用方按顺序传入,surface 事件附 surfaceOp:'append'。
195
+ * 宿主 seed 边界校验信封字段(type/seq/time/data/surfaceOp)与消息形状,并原样保留
196
+ * time(append 路径会强制改写为 Date.now()),故诊断记录经 seed 重建时间线。信封为
197
+ * 判别联合,泛型构造需一次断言(与 tests/helpers.ts 同法)。
198
+ */
199
+ function seedEvent(type, seq, time, data, surfaceOp) {
200
+ return {
201
+ type,
202
+ seq,
203
+ time,
204
+ data,
205
+ ...surfaceOp === void 0 ? {} : { surfaceOp }
206
+ };
221
207
  }
222
208
  /**
223
- * 格式化压缩循环统计为统计消息文本:起止时间(ISO)、总耗时、逐轮请求耗时与
224
- * usage、usage 合计。随会话记录在子会话末尾落盘。
209
+ * 重建压缩循环的 seed 事件时间线:descriptor + turn/step 生命周期 + 逐消息事件。每个
210
+ * 事件携带从循环统计推导的 time——turn 边界取循环起止、第 k 个 assistant 取第 k 轮
211
+ * 起止(step/start = startedAt、assistant/message = startedAt + durationMs)、工具调用
212
+ * 与结果与其 assistant 同刻(内存工具瞬时)——并把逐轮 usage 附加到 assistant/message。
213
+ * 时间全程单调不减;轮次数组短于 assistant 数时(流错误注入的部分 assistant)回落上一
214
+ * 轮结束时刻与循环结束时刻。
225
215
  */
226
- function formatCompressionStats(phase, success, stats) {
227
- const lines = [
228
- "【压缩统计】",
229
- `阶段:${phaseLabel(phase)}|结果:${success ? "成功" : "失败"}`,
230
- `开始:${new Date(stats.startedAt).toISOString()}`,
231
- `结束:${new Date(stats.completedAt).toISOString()}`,
232
- `总耗时:${stats.durationMs} ms`,
233
- `请求轮数:${stats.rounds.length}`
234
- ];
235
- if (stats.rounds.length > 0) {
236
- lines.push("逐轮:");
237
- for (const round of stats.rounds) lines.push(`- 第 ${round.round} 轮:耗时 ${round.durationMs} ms${round.usage === void 0 ? "" : `,${usageLine(round.usage)}`}`);
238
- }
239
- const usage = sumRoundUsage(stats.rounds);
240
- if (usage !== void 0) lines.push(`usage 合计:${usageLine(usage)}`);
241
- return lines.join("\n");
242
- }
243
- /** 构造插件自产 user 消息(子会话统计消息;source 为插件自有 kind)。 */
244
- function makeStatsMessage(text) {
245
- return createUserMessage({
246
- content: [{
247
- type: "text",
248
- text
249
- }],
250
- source: omSource()
216
+ function buildCompressionSeed(messages, stats, label) {
217
+ const seed = [];
218
+ const push = (type, time, data, surfaceOp) => {
219
+ seed.push(seedEvent(type, seed.length, time, data, surfaceOp));
220
+ };
221
+ let cursor = stats.startedAt;
222
+ const at = (time) => {
223
+ cursor = Math.max(cursor, time);
224
+ return cursor;
225
+ };
226
+ const executed = new Set(messages.filter((message) => message.role === "tool").map((message) => message.toolCallId));
227
+ push("subagent/descriptor", at(stats.startedAt), {
228
+ version: SUBAGENT_DESCRIPTOR_VERSION,
229
+ mode: "one-shot",
230
+ provider: COMPACTION_LOG_PROVIDER,
231
+ label
251
232
  });
233
+ push("turn/start", at(stats.startedAt), { turn: 1 });
234
+ let step = 0;
235
+ let assistantIndex = 0;
236
+ let stepTime = stats.startedAt;
237
+ let pending = [];
238
+ const closeStep = () => {
239
+ if (step === 0) return;
240
+ for (const call of pending) {
241
+ if (executed.has(call.id)) continue;
242
+ const repair = createToolResultMessage({
243
+ callId: call.id,
244
+ content: [{
245
+ type: "text",
246
+ text: "压缩循环未执行此工具调用"
247
+ }],
248
+ isError: true
249
+ });
250
+ push("tool/result", at(stepTime), {
251
+ turn: 1,
252
+ step,
253
+ message: {
254
+ ...repair,
255
+ id: `forked-tool-result-${call.id}-${uuid()}`
256
+ },
257
+ error: {
258
+ name: "ToolNotStartedError",
259
+ code: "TOOL_NOT_STARTED"
260
+ }
261
+ }, "append");
262
+ }
263
+ push("step/end", at(stepTime), {
264
+ turn: 1,
265
+ step
266
+ });
267
+ pending = [];
268
+ };
269
+ for (const message of messages) if (message.role === "assistant") {
270
+ closeStep();
271
+ step += 1;
272
+ const round = stats.rounds[assistantIndex];
273
+ assistantIndex += 1;
274
+ const startAt = round?.startedAt ?? stepTime;
275
+ const completedAt = round === void 0 ? stats.completedAt : round.startedAt + round.durationMs;
276
+ push("step/start", at(startAt), {
277
+ turn: 1,
278
+ step
279
+ });
280
+ const assistant = message;
281
+ const assistantTime = at(completedAt);
282
+ push("assistant/message", assistantTime, {
283
+ turn: 1,
284
+ step,
285
+ message: assistant,
286
+ stream: [],
287
+ ...round?.usage === void 0 ? {} : { usage: round.usage }
288
+ }, "append");
289
+ stepTime = assistantTime;
290
+ pending = assistant.content.filter((block) => block.type === "tool-call");
291
+ for (const call of pending) {
292
+ if (!executed.has(call.id)) continue;
293
+ push("tool/call", at(stepTime), {
294
+ turn: 1,
295
+ step,
296
+ callId: call.id,
297
+ name: call.name,
298
+ arguments: call.arguments
299
+ });
300
+ }
301
+ } else if (message.role === "tool") push("tool/result", at(stepTime), {
302
+ turn: 1,
303
+ step,
304
+ message
305
+ }, "append");
306
+ else push("user/message", at(step === 0 ? stats.startedAt : stepTime), message, "append");
307
+ closeStep();
308
+ push("turn/end", at(stats.completedAt), {
309
+ turn: 1,
310
+ reason: { kind: "completed" }
311
+ });
312
+ return seed;
252
313
  }
253
314
  /**
254
- * 把一次压缩工具循环的完整会话消息组落盘为子会话:ctx.sessions.create 创建子会话
255
- * (header origin 'subagent'、parentSession 指向主会话、delegationDepth = 父 + 1、
256
- * cwd 继承主会话),追加 one-shot descriptor(provider om-compaction-log,label 含
257
- * 压缩阶段与轮数),逐消息按角色原样追加(assistant → assistant/message、tool →
258
- * tool/result、其余 → user/message),末尾追加插件来源统计消息(起止
259
- * 时间、总耗时、逐轮耗时与 usage),flush 持久化,返回子会话 id。成功与失败均调用;
260
- * 落盘自身绝不抛错,任何失败仅 logger.warn 并返回 undefined。
315
+ * 把一次压缩工具循环的完整会话消息组落盘为子会话:以重建时间线的 seed 事件经
316
+ * ctx.sessions.create 构造子会话(header origin 'subagent'、parentSession 指向主会话、
317
+ * delegationDepth = 父 + 1、cwd 继承主会话;首事件 one-shot descriptor,provider
318
+ * om-compaction-log,label 含压缩阶段与轮数),flush 持久化,在父会话登记
319
+ * subagent/catalog,返回子会话 id。成功与失败均调用;落盘自身绝不抛错,任何失败仅
320
+ * logger.warn 并返回 undefined。
261
321
  */
262
322
  async function recordCompressionSession(ctx, parentSession, options) {
263
323
  const logger = makeLogger(ctx, options.debug);
264
324
  try {
265
325
  const header = parentSession.header;
266
- const child = ctx.sessions.create(SessionId(`om-compaction-log-${uuid()}`), { meta: {
267
- ...header.cwd === void 0 ? {} : { cwd: header.cwd },
268
- parentSession: parentSession.id,
269
- origin: "subagent",
270
- delegationDepth: (header.delegationDepth ?? 0) + 1
271
- } });
272
326
  const label = compressionRecordLabel(options.phase, options.stats.rounds.length, options.success);
273
- child.append("subagent/descriptor", {
274
- version: SUBAGENT_DESCRIPTOR_VERSION,
275
- mode: "one-shot",
276
- provider: COMPACTION_LOG_PROVIDER,
277
- label
278
- });
279
- child.append("turn/start", { turn: 1 });
280
- let step = 0;
281
- const executed = new Set(options.messages.filter((message) => message.role === "tool").map((message) => message.toolCallId));
282
- let pending = [];
283
- const closeStep = () => {
284
- if (step === 0) return;
285
- for (const call of pending) {
286
- if (executed.has(call.id)) continue;
287
- const repair = createToolResultMessage({
288
- callId: call.id,
289
- content: [{
290
- type: "text",
291
- text: "压缩循环未执行此工具调用"
292
- }],
293
- isError: true
294
- });
295
- child.append("tool/result", {
296
- turn: 1,
297
- step,
298
- message: {
299
- ...repair,
300
- id: `forked-tool-result-${call.id}-${uuid()}`
301
- },
302
- error: {
303
- name: "ToolNotStartedError",
304
- code: "TOOL_NOT_STARTED"
305
- }
306
- }, { surfaceOp: "append" });
307
- }
308
- child.append("step/end", {
309
- turn: 1,
310
- step
311
- });
312
- pending = [];
313
- };
314
- for (const message of options.messages) if (message.role === "assistant") {
315
- closeStep();
316
- step += 1;
317
- child.append("step/start", {
318
- turn: 1,
319
- step
320
- });
321
- child.append("assistant/message", {
322
- turn: 1,
323
- step,
324
- message,
325
- stream: []
326
- }, { surfaceOp: "append" });
327
- pending = message.content.filter((block) => block.type === "tool-call");
328
- for (const call of pending) {
329
- if (!executed.has(call.id)) continue;
330
- child.append("tool/call", {
331
- turn: 1,
332
- step,
333
- callId: call.id,
334
- name: call.name,
335
- arguments: call.arguments
336
- });
327
+ const seed = buildCompressionSeed(options.messages, options.stats, label);
328
+ const child = ctx.sessions.create(SessionId(`om-compaction-log-${uuid()}`), {
329
+ seed,
330
+ meta: {
331
+ ...header.cwd === void 0 ? {} : { cwd: header.cwd },
332
+ parentSession: parentSession.id,
333
+ origin: "subagent",
334
+ delegationDepth: (header.delegationDepth ?? 0) + 1
337
335
  }
338
- } else if (message.role === "tool") child.append("tool/result", {
339
- turn: 1,
340
- step,
341
- message
342
- }, { surfaceOp: "append" });
343
- else child.append("user/message", message, { surfaceOp: "append" });
344
- closeStep();
345
- child.append("user/message", makeStatsMessage(formatCompressionStats(options.phase, options.success, options.stats)), { surfaceOp: "append" });
346
- child.append("turn/end", {
347
- turn: 1,
348
- reason: { kind: "completed" }
349
336
  });
350
337
  const persistence = ctx.get("sessionPersistence");
351
338
  if (persistence === void 0) throw new Error("宿主未提供 sessionPersistence 服务");
@@ -9024,7 +9011,6 @@ async function runCompressionLoop(ctx, session, options) {
9024
9011
  };
9025
9012
  const recordSessionId = async (success, stats) => recordCompressionSession(ctx, session, {
9026
9013
  phase: options.phase,
9027
- target: options.target,
9028
9014
  messages,
9029
9015
  stats,
9030
9016
  success,
@@ -9244,7 +9230,7 @@ function reportDegrade(session, logger, problem) {
9244
9230
  /**
9245
9231
  * 两级自动压缩(观察/反思)与 compaction 生命周期提交。
9246
9232
  * 导出 estimateTextTokens / isPairBalancedAfter / computeCompressRange / historySection /
9247
- * findObservePending / reflectPass / observePass / maybeCompress。
9233
+ * hasHistoryBlock / findObservePending / reflectPass / observePass / maybeCompress。
9248
9234
  *
9249
9235
  * - 摘要生成走工具驱动的压缩循环(compress-loop.ts runCompressionLoop):首条 user
9250
9236
  * 消息仅含压缩指令与 start/end 区间,模型经 getHistory / compressHistory /
@@ -9446,6 +9432,11 @@ function historySection(session) {
9446
9432
  boundarySeq
9447
9433
  };
9448
9434
  }
9435
+ /** 表层是否存在合法 <history> 压缩日志块。 */
9436
+ function hasHistoryBlock(session) {
9437
+ for (const seq of session.surface.nodes) if (historyTextOf(session.snapshotEvents()[seq]) !== void 0) return true;
9438
+ return false;
9439
+ }
9449
9440
  /**
9450
9441
  * 查找当前活跃的观察压缩待定标记:按日志顺序取最后一条 plugin:dsh-plugin-om:observe-pending 事件,
9451
9442
  * 其后须无引用它的 plugin:dsh-plugin-om:observe-invalidate(已失效),且其后的压缩边界 seq 不大于标记
@@ -10751,11 +10742,11 @@ function wrap(lines) {
10751
10742
  const PROGRESS_REMINDER = {
10752
10743
  kind: PROGRESS_REMINDER_SOURCE_KIND,
10753
10744
  text: wrap([
10754
- "Narrate your progress while you work, not only when the task is finished.",
10755
- "- Before your first tool call on a task, state your plan in one or two sentences.",
10756
- "- After each meaningful chunk of work (a group of related tool calls, a finished investigation, a completed edit), briefly report what you found or did and what you will do next, then continue.",
10757
- "- Do not narrate every individual tool call; one short note per chunk is enough.",
10758
- "- Do not save all commentary for the final answer. The final answer summarizes outcomes."
10745
+ "在工作过程中同步输出文本,简洁记录关键结论与后续规划。思考内容不计入记录。",
10746
+ "- 每个阶段性工作开始前记录一次,一个阶段通常是 1-5 个工具调用",
10747
+ "- 禁止连续 10 个以上工具调用而无记录",
10748
+ "- 记录后在同一回复中继续调用工具,不要停下等待",
10749
+ "- 最终答案仅总结结果,不能替代这些记录"
10759
10750
  ])
10760
10751
  };
10761
10752
  /** 完整消息定义提醒。 */
@@ -10776,11 +10767,11 @@ function systemReminderMessage(reminder) {
10776
10767
  }
10777
10768
  });
10778
10769
  }
10779
- /** 按配置返回应注入的提醒,顺序固定:进度在前,定义在后。 */
10780
- function activeSystemReminders(config) {
10770
+ /** 按配置与当前表层是否有 history 块返回应注入的提醒,顺序固定:进度在前,定义在后。 */
10771
+ function activeSystemReminders(config, hasHistory) {
10781
10772
  const reminders = [];
10782
10773
  if (config.omEnabled) reminders.push(PROGRESS_REMINDER);
10783
- if (config.omEnabled || config.recallEnabled) reminders.push(DEFINITION_REMINDER);
10774
+ if (config.recallEnabled || hasHistory) reminders.push(DEFINITION_REMINDER);
10784
10775
  return reminders;
10785
10776
  }
10786
10777
  /** 消息是否为指定提醒的当前文本。 */
@@ -10868,7 +10859,8 @@ function apply(ctx, config) {
10868
10859
  return { kind: "reject" };
10869
10860
  }
10870
10861
  const decision = await next();
10871
- const reminders = activeSystemReminders(currentConfig(config));
10862
+ const hasHistory = hasHistoryBlock(agent.session);
10863
+ const reminders = activeSystemReminders(currentConfig(config), hasHistory);
10872
10864
  if (decision.kind === "enter" && !signal.aborted && reminders.length > 0 && isMainSession(agent.session)) return {
10873
10865
  ...decision,
10874
10866
  messages: ensureSystemReminders(agent.session, decision.messages, reminders)
@@ -25,8 +25,8 @@ export declare const PROGRESS_REMINDER: SystemReminder;
25
25
  export declare const DEFINITION_REMINDER: SystemReminder;
26
26
  /** 构造一条新的提醒消息。 */
27
27
  export declare function systemReminderMessage(reminder: SystemReminder): UserMessage;
28
- /** 按配置返回应注入的提醒,顺序固定:进度在前,定义在后。 */
29
- export declare function activeSystemReminders(config: Pick<PluginConfig, 'omEnabled' | 'recallEnabled'>): SystemReminder[];
28
+ /** 按配置与当前表层是否有 history 块返回应注入的提醒,顺序固定:进度在前,定义在后。 */
29
+ export declare function activeSystemReminders(config: Pick<PluginConfig, 'omEnabled' | 'recallEnabled'>, hasHistory: boolean): SystemReminder[];
30
30
  /**
31
31
  * 保证本 step 之后的消息列表中每种指定提醒各有一条当前文本:本 step 已带上或表层已有则跳过,
32
32
  * 否则按顺序追加到末尾。返回新数组,不修改入参。
@@ -1 +1 @@
1
- {"version":3,"file":"system-reminder.d.ts","sourceRoot":"","sources":["../src/system-reminder.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEvD,yEAAyE;AAC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+ "version": "0.0.49",
4
4
  "type": "module",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -41,7 +41,8 @@
41
41
  "@deepseek-ai/dsh-client-locale",
42
42
  "@deepseek-ai/dsh-client-ui-conversation",
43
43
  "@deepseek-ai/dsh-client-ui-settings",
44
- "@deepseek-ai/dsh-client-ui-plugin-manager"
44
+ "@deepseek-ai/dsh-client-ui-plugin-manager",
45
+ "@deepseek-ai/dsh-client-ui-workspace"
45
46
  ],
46
47
  "platform": "web"
47
48
  }
@@ -81,6 +82,7 @@
81
82
  "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
82
83
  "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
83
84
  "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
85
+ "@deepseek-ai/dsh-client-ui-workspace": "0.2.0-rc.2",
84
86
  "@deepseek-ai/dsh-compaction": "0.2.0-rc.2",
85
87
  "@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.0-rc.2",
86
88
  "@deepseek-ai/dsh-invariants": "0.2.0-rc.2",