@colinlu50/openclaw-lark-stream 260327.2.6 → 260328.1.0
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 +4 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115690,7 +115690,8 @@ var init_streaming_card_controller = __esm({
|
|
|
115690
115690
|
if (sessionApi?.resolveStorePath && sessionApi?.loadSessionStore) {
|
|
115691
115691
|
const storePath2 = sessionApi.resolveStorePath(sessionStorePath, { agentId: this.deps.agentId });
|
|
115692
115692
|
const store3 = sessionApi.loadSessionStore(storePath2, { skipCache: true });
|
|
115693
|
-
const
|
|
115693
|
+
const prefixedKey = `agent:${this.deps.agentId}:${key}`;
|
|
115694
|
+
const entry2 = store3[prefixedKey] ?? store3[key];
|
|
115694
115695
|
if (!entry2 || typeof entry2 !== "object") {
|
|
115695
115696
|
log17.debug("footer metrics lookup: session entry missing", {
|
|
115696
115697
|
sessionKey: this.deps.sessionKey,
|
|
@@ -115727,7 +115728,8 @@ var init_streaming_card_controller = __esm({
|
|
|
115727
115728
|
const raw = await readFile(storePath, "utf8");
|
|
115728
115729
|
const parsed = JSON.parse(raw);
|
|
115729
115730
|
const store2 = parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
115730
|
-
const
|
|
115731
|
+
const prefixedKey2 = `agent:${this.deps.agentId}:${key}`;
|
|
115732
|
+
const entry = store2[prefixedKey2] ?? store2[key];
|
|
115731
115733
|
if (!entry || typeof entry !== "object") {
|
|
115732
115734
|
log17.debug("footer metrics lookup: session entry missing", {
|
|
115733
115735
|
sessionKey: this.deps.sessionKey,
|