@joshuaswarren/openclaw-engram 9.1.8 → 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.
package/dist/access-cli.js
CHANGED
|
@@ -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
|
|
18209
|
+
const allMemories = await new StorageManager(options.memoryDir).readAllMemories();
|
|
18210
18210
|
const verifiedMemoryById = new Map(
|
|
18211
|
-
|
|
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
|
|
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 = [];
|
|
@@ -28985,4 +28984,4 @@ export {
|
|
|
28985
28984
|
EngramAccessInputError,
|
|
28986
28985
|
EngramAccessService
|
|
28987
28986
|
};
|
|
28988
|
-
//# sourceMappingURL=chunk-
|
|
28987
|
+
//# sourceMappingURL=chunk-OQOCVPYG.js.map
|