openclaw-memory-hierarchical 0.1.2 → 0.2.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.
Files changed (2) hide show
  1. package/index.ts +8 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -52,7 +52,14 @@ export default {
52
52
  api.logger.debug?.(
53
53
  `loaded hierarchical memory: L1=${memCtx.counts.L1} L2=${memCtx.counts.L2} L3=${memCtx.counts.L3} (~${memCtx.tokenEstimate} tokens)`,
54
54
  );
55
- return { prependContext: memCtx.memorySection };
55
+ return {
56
+ injectMessages: [
57
+ {
58
+ role: "assistant",
59
+ content: [{ type: "text", text: memCtx.memorySection }],
60
+ },
61
+ ],
62
+ };
56
63
  }
57
64
  } catch (err) {
58
65
  api.logger.warn(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-memory-hierarchical",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Hierarchical (2048-style) autobiographical memory plugin for OpenClaw. Continuously summarizes conversations into layered first-person memories (L1 → L2 → L3).",
5
5
  "type": "module",
6
6
  "keywords": [