@clawos-dev/clawd 0.2.294 → 0.2.296

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/cli.cjs CHANGED
@@ -44001,17 +44001,24 @@ function extractLarkReplyText(events) {
44001
44001
  break;
44002
44002
  }
44003
44003
  }
44004
- const tail = events.slice(lastUserIdx + 1);
44004
+ const texts = events.slice(lastUserIdx + 1).filter((ev) => ev.kind === "text");
44005
+ const snapshots = texts.filter((ev) => !ev.partialId);
44006
+ if (snapshots.length > 0) {
44007
+ return snapshots.map((ev) => ev.text).filter((t) => t.length > 0).join("\n").trim();
44008
+ }
44005
44009
  const order = [];
44006
- const latest = /* @__PURE__ */ new Map();
44007
- let anon = 0;
44008
- for (const ev of tail) {
44009
- if (ev.kind !== "text") continue;
44010
- const key = ev.partialId ?? `__snapshot_${anon++}`;
44011
- if (!latest.has(key)) order.push(key);
44012
- latest.set(key, ev.text);
44010
+ const chunks = /* @__PURE__ */ new Map();
44011
+ for (const ev of texts) {
44012
+ const key = ev.partialId ?? "";
44013
+ let list = chunks.get(key);
44014
+ if (!list) {
44015
+ list = [];
44016
+ chunks.set(key, list);
44017
+ order.push(key);
44018
+ }
44019
+ list.push(ev.text);
44013
44020
  }
44014
- return order.map((k2) => latest.get(k2) ?? "").filter((t) => t.length > 0).join("\n").trim();
44021
+ return order.map((k2) => (chunks.get(k2) ?? []).join("")).filter((t) => t.length > 0).join("\n").trim();
44015
44022
  }
44016
44023
 
44017
44024
  // src/session/runner.ts
@@ -58943,7 +58950,7 @@ function computeMethodAccess(args) {
58943
58950
  }
58944
58951
 
58945
58952
  // src/version.ts
58946
- var version = "0.2.294".length > 0 ? "0.2.294" : "dev";
58953
+ var version = "0.2.296".length > 0 ? "0.2.296" : "dev";
58947
58954
 
58948
58955
  // src/cli-probe/probe.ts
58949
58956
  var fs56 = __toESM(require("fs"), 1);