@joshuaswarren/openclaw-engram 9.1.7 → 9.1.9

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.
@@ -3,7 +3,7 @@ import {
3
3
  EngramAccessService,
4
4
  Orchestrator,
5
5
  parseConfig
6
- } from "./chunk-Z6PKTPAF.js";
6
+ } from "./chunk-OQOCVPYG.js";
7
7
  import "./chunk-UO4TIAAW.js";
8
8
  import "./chunk-IMMYYNXG.js";
9
9
  import "./chunk-YKWJUR3I.js";
@@ -18206,9 +18206,9 @@ function resolveVerifiedEpisodeMemoriesFromMap(memoryById, memoryIds) {
18206
18206
  async function searchVerifiedEpisodes(options) {
18207
18207
  const queryTokens = new Set(normalizeRecallTokens(options.query, ["what", "which"]));
18208
18208
  if (queryTokens.size === 0 || options.maxResults <= 0) return [];
18209
- const storage = new StorageManager(options.memoryDir);
18209
+ const allMemories = await new StorageManager(options.memoryDir).readAllMemories();
18210
18210
  const verifiedMemoryById = new Map(
18211
- (await storage.readAllMemories()).filter((memory) => memory.frontmatter.status !== "archived").filter((memory) => memory.frontmatter.memoryKind === "episode").map((memory) => [memory.frontmatter.id, memory])
18211
+ allMemories.filter((memory) => memory.frontmatter.status !== "archived").filter((memory) => memory.frontmatter.memoryKind === "episode").map((memory) => [memory.frontmatter.id, memory])
18212
18212
  );
18213
18213
  const boxes = await createReadOnlyBoxBuilder(options.memoryDir).readRecentBoxes(Math.max(1, Math.floor(options.boxRecallDays ?? 3))).catch(() => []);
18214
18214
  const candidates = [];
@@ -18294,8 +18294,7 @@ function scoreVerifiedSemanticRuleCandidate(rule, sourceMemory, queryTokens, eff
18294
18294
  async function searchVerifiedSemanticRules(options) {
18295
18295
  const queryTokens = new Set(normalizeRecallTokens(options.query, ["what", "which"]));
18296
18296
  if (queryTokens.size === 0 || options.maxResults <= 0) return [];
18297
- const storage = new StorageManager(options.memoryDir);
18298
- const allMemories = await storage.readAllMemories();
18297
+ const allMemories = await new StorageManager(options.memoryDir).readAllMemories();
18299
18298
  const memoryById = new Map(allMemories.map((memory) => [memory.frontmatter.id, memory]));
18300
18299
  const minEffectiveConfidence = options.minEffectiveConfidence ?? DEFAULT_MIN_EFFECTIVE_CONFIDENCE;
18301
18300
  const candidates = [];
@@ -28810,8 +28809,15 @@ var EngramAccessService = class {
28810
28809
  const lcmSessionKey = namespace !== this.orchestrator.config.defaultNamespace ? `${namespace}:${request.sessionKey}` : request.sessionKey;
28811
28810
  let lcmArchived = false;
28812
28811
  if (this.orchestrator.lcmEngine && this.orchestrator.lcmEngine.enabled) {
28813
- await this.orchestrator.lcmEngine.observeMessages(lcmSessionKey, request.messages);
28814
- lcmArchived = true;
28812
+ try {
28813
+ const lcmPromise = this.orchestrator.lcmEngine.observeMessages(lcmSessionKey, request.messages);
28814
+ lcmPromise.catch((err) => {
28815
+ log.error(`access-observe LCM archival failed: ${err}`);
28816
+ });
28817
+ lcmArchived = true;
28818
+ } catch (err) {
28819
+ log.error(`access-observe LCM enqueue failed: ${err}`);
28820
+ }
28815
28821
  }
28816
28822
  let extractionQueued = false;
28817
28823
  if (request.skipExtraction !== true) {
@@ -28978,4 +28984,4 @@ export {
28978
28984
  EngramAccessInputError,
28979
28985
  EngramAccessService
28980
28986
  };
28981
- //# sourceMappingURL=chunk-Z6PKTPAF.js.map
28987
+ //# sourceMappingURL=chunk-OQOCVPYG.js.map