memory-braid 0.8.0 → 0.8.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +2 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memory-braid",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
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
@@ -1672,11 +1672,8 @@ const memoryBraidPlugin = {
1672
1672
  register(api: OpenClawPluginApi) {
1673
1673
  const cfg = parseConfig(api.pluginConfig);
1674
1674
  const log = new MemoryBraidLogger(api.logger, cfg.debug);
1675
- const initialStateDir = api.runtime.state.resolveStateDir();
1676
- const mem0 = new Mem0Adapter(cfg, log, { stateDir: initialStateDir });
1677
- const entityExtraction = new EntityExtractionManager(cfg.entityExtraction, log, {
1678
- stateDir: initialStateDir,
1679
- });
1675
+ const mem0 = new Mem0Adapter(cfg, log);
1676
+ const entityExtraction = new EntityExtractionManager(cfg.entityExtraction, log);
1680
1677
  const recallSeenByScope = new Map<string, string>();
1681
1678
  const captureSeenByScope = new Map<string, string>();
1682
1679
  const pendingInboundTurns = new Map<string, PendingInboundTurn>();