memory-braid 0.4.0 → 0.4.1

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/README.md CHANGED
@@ -553,6 +553,7 @@ Key events:
553
553
  - `memory_braid.mem0.request|response|error`
554
554
 
555
555
  `debug.includePayloads=true` includes payload fields; otherwise sensitive text fields are omitted.
556
+ `memory_braid.search.inject` now logs `injectedTextPreview` when payloads are enabled.
556
557
 
557
558
  Traceability tips:
558
559
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memory-braid",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "OpenClaw memory plugin that augments local memory with Mem0 capture and recall.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/index.ts CHANGED
@@ -918,6 +918,7 @@ const memoryBraidPlugin = {
918
918
  return;
919
919
  }
920
920
 
921
+ const prependContext = formatRelevantMemories(injected, cfg.debug.maxSnippetChars);
921
922
  const scope = resolveScopeFromHookContext(ctx);
922
923
  log.debug("memory_braid.search.inject", {
923
924
  runId,
@@ -925,10 +926,11 @@ const memoryBraidPlugin = {
925
926
  sessionKey: scope.sessionKey,
926
927
  workspaceHash: scope.workspaceHash,
927
928
  count: injected.length,
929
+ injectedTextPreview: prependContext,
928
930
  });
929
931
 
930
932
  return {
931
- prependContext: formatRelevantMemories(injected, cfg.debug.maxSnippetChars),
933
+ prependContext,
932
934
  };
933
935
  });
934
936