@colinlu50/openclaw-lark-stream 260327.2.3 → 260327.2.4
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.js +8 -5
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -114951,12 +114951,14 @@ function buildCompleteCard(params) {
|
|
|
114951
114951
|
innerLines.push("");
|
|
114952
114952
|
}
|
|
114953
114953
|
}
|
|
114954
|
-
const
|
|
114954
|
+
const toolEvents = streamEvents.filter((e) => e.type === "tool");
|
|
114955
|
+
const totalToolMs = toolEvents.reduce((s, e) => s + (e.durationMs ?? 0), 0);
|
|
114955
114956
|
const totalReasonMs = streamEvents.filter((e) => e.type === "reasoning").reduce((s, e) => s + (e.elapsedMs ?? 0), 0);
|
|
114956
114957
|
const totalMs = totalToolMs + totalReasonMs;
|
|
114957
114958
|
const totalDur = totalMs > 0 ? formatElapsed(totalMs) : "";
|
|
114958
|
-
const
|
|
114959
|
-
const
|
|
114959
|
+
const toolCount = toolEvents.length;
|
|
114960
|
+
const zhHeader = toolCount > 0 ? totalDur ? `${toolCount} \u6B21\u5DE5\u5177\u8C03\u7528 (${totalDur})` : `${toolCount} \u6B21\u5DE5\u5177\u8C03\u7528` : totalDur ? `\u601D\u8003\u8FC7\u7A0B (${totalDur})` : "\u601D\u8003\u8FC7\u7A0B";
|
|
114961
|
+
const enHeader = toolCount > 0 ? totalDur ? `${toolCount} tool calls (${totalDur})` : `${toolCount} tool calls` : totalDur ? `Process (${totalDur})` : "Process";
|
|
114960
114962
|
elements.push({
|
|
114961
114963
|
tag: "collapsible_panel",
|
|
114962
114964
|
expanded: false,
|
|
@@ -115687,8 +115689,8 @@ var init_streaming_card_controller = __esm({
|
|
|
115687
115689
|
const key = this.deps.sessionKey.trim().toLowerCase();
|
|
115688
115690
|
const sessionApi = runtime2.agent?.session;
|
|
115689
115691
|
if (sessionApi?.resolveStorePath && sessionApi?.loadSessionStore) {
|
|
115690
|
-
const storePath2 = sessionApi.resolveStorePath(sessionStorePath);
|
|
115691
|
-
const store3 = sessionApi.loadSessionStore(storePath2);
|
|
115692
|
+
const storePath2 = sessionApi.resolveStorePath(sessionStorePath, { agentId: this.deps.agentId });
|
|
115693
|
+
const store3 = sessionApi.loadSessionStore(storePath2, { skipCache: true });
|
|
115692
115694
|
const entry2 = store3[key];
|
|
115693
115695
|
if (!entry2 || typeof entry2 !== "object") {
|
|
115694
115696
|
log17.debug("footer metrics lookup: session entry missing", {
|
|
@@ -116479,6 +116481,7 @@ function createFeishuReplyDispatcher(params) {
|
|
|
116479
116481
|
});
|
|
116480
116482
|
const controller = useStreamingCards ? new StreamingCardController({
|
|
116481
116483
|
cfg,
|
|
116484
|
+
agentId,
|
|
116482
116485
|
sessionKey,
|
|
116483
116486
|
accountId,
|
|
116484
116487
|
chatId,
|