@agenr/openclaw-plugin 1.5.0 → 3.3.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.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "id": "agenr",
3
3
  "name": "agenr",
4
- "version": "1.4.0",
4
+ "version": "3.3.0",
5
5
  "description": "agenr memory plugin for OpenClaw",
6
6
  "kind": "memory",
7
7
  "contracts": {
8
- "tools": ["agenr_store", "agenr_recall", "agenr_retire", "agenr_update", "agenr_trace"]
8
+ "tools": ["agenr_store", "agenr_recall", "agenr_fetch", "agenr_retire", "agenr_update", "agenr_trace"]
9
9
  },
10
10
  "uiHints": {
11
11
  "dbPath": {
@@ -27,6 +27,18 @@
27
27
  "claimExtractionModel": {
28
28
  "label": "Claim extraction model",
29
29
  "help": "Model used for claim-key extraction when storing entries. Uses OpenClaw's configured auth. Format: provider/model (for example, openai/gpt-5.4-nano). Defaults to the agent's primary model."
30
+ },
31
+ "storeNudge": {
32
+ "label": "Store nudge",
33
+ "help": "Optional mid-session reminder settings for prompting durable memory storage after several turns of memory silence."
34
+ },
35
+ "memoryPolicy": {
36
+ "label": "Memory policy",
37
+ "help": "Optional runtime overrides for claim-aware read behavior, session-start memory injection, and proactive before-turn surfacing."
38
+ },
39
+ "debug": {
40
+ "label": "Debug log",
41
+ "help": "Optional opt-in JSONL debug sink that records recall, session-start, and before-turn decisions into a dedicated agenr log file separate from OpenClaw host logs."
30
42
  }
31
43
  },
32
44
  "configSchema": {
@@ -55,6 +67,140 @@
55
67
  "type": "string",
56
68
  "minLength": 1,
57
69
  "description": "Model override for claim-key extraction at store time (e.g. 'openai/gpt-5.4-mini'). Uses OpenClaw auth and falls back to the agent's primary model."
70
+ },
71
+ "storeNudge": {
72
+ "type": "object",
73
+ "additionalProperties": false,
74
+ "description": "Optional mid-session reminder settings for prompting durable memory storage after several turns without memory activity.",
75
+ "properties": {
76
+ "enabled": {
77
+ "type": "boolean",
78
+ "description": "Enable or disable mid-session store nudges. Defaults to true."
79
+ },
80
+ "threshold": {
81
+ "type": "integer",
82
+ "minimum": 1,
83
+ "description": "Turns without durable memory activity before prompting the agent to review recent conversation. Defaults to 8."
84
+ },
85
+ "maxPerSession": {
86
+ "type": "integer",
87
+ "minimum": 1,
88
+ "description": "Maximum nudges injected during one session lifetime. Defaults to 5."
89
+ }
90
+ }
91
+ },
92
+ "debug": {
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "description": "Optional opt-in JSONL debug sink for live OpenClaw runs. Writes agenr-only events to a dedicated log file rather than the shared host log.",
96
+ "properties": {
97
+ "enabled": {
98
+ "type": "boolean",
99
+ "description": "Enable or disable the agenr JSONL debug sink. Defaults to false."
100
+ },
101
+ "logPath": {
102
+ "type": "string",
103
+ "minLength": 1,
104
+ "description": "Optional explicit log-file path. Defaults to agenr-debug.jsonl inside the OpenClaw state directory."
105
+ },
106
+ "eventLevel": {
107
+ "type": "string",
108
+ "enum": ["basic", "detailed"],
109
+ "description": "Event detail level. Detailed enables bounded top-K candidate breakdowns for recall and before-turn events. Defaults to basic."
110
+ },
111
+ "perSessionFiles": {
112
+ "type": "boolean",
113
+ "description": "Split one JSONL file per OpenClaw session id. Defaults to false."
114
+ },
115
+ "maxTopCandidates": {
116
+ "type": "integer",
117
+ "minimum": 1,
118
+ "maximum": 25,
119
+ "description": "Cap for top-K candidate breakdowns included in detailed events. Defaults to 10."
120
+ }
121
+ }
122
+ },
123
+ "memoryPolicy": {
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "description": "Optional runtime overrides for claim-aware read behavior exposed by the OpenClaw adapter.",
127
+ "properties": {
128
+ "sessionStart": {
129
+ "type": "object",
130
+ "additionalProperties": false,
131
+ "description": "Optional session-start overrides for prompt-time memory injection behavior.",
132
+ "properties": {
133
+ "enabled": {
134
+ "type": "boolean",
135
+ "description": "Enable or disable all session-start memory injection. Defaults to true."
136
+ },
137
+ "coreMemory": {
138
+ "type": "boolean",
139
+ "description": "Enable or disable always-on Core Memory injection at session start. Defaults to true."
140
+ },
141
+ "relevantDurableMemory": {
142
+ "type": "boolean",
143
+ "description": "Enable or disable artifact-grounded Relevant Durable Memory injection at session start. Defaults to true."
144
+ }
145
+ }
146
+ },
147
+ "beforeTurn": {
148
+ "type": "object",
149
+ "additionalProperties": false,
150
+ "description": "Optional before-turn overrides for proactive prompt-time memory injection behavior.",
151
+ "properties": {
152
+ "enabled": {
153
+ "type": "boolean",
154
+ "description": "Enable or disable the proactive before-turn memory patch. Defaults to true."
155
+ },
156
+ "procedureSuggestion": {
157
+ "type": "boolean",
158
+ "description": "Enable or disable proactive high-confidence procedure suggestion inside the before-turn patch. Defaults to true."
159
+ },
160
+ "maxDurableEntries": {
161
+ "type": "integer",
162
+ "minimum": 1,
163
+ "description": "Normal durable-item cap for before-turn recall. Defaults to 1 and only expands when all surfaced items are very high confidence."
164
+ },
165
+ "recallThreshold": {
166
+ "type": "number",
167
+ "minimum": 0,
168
+ "maximum": 1,
169
+ "description": "Durable-recall score threshold required before an entry can surface during before-turn recall. Defaults to 0.6."
170
+ },
171
+ "highConfidenceRecallThreshold": {
172
+ "type": "number",
173
+ "minimum": 0,
174
+ "maximum": 1,
175
+ "description": "Durable-recall score threshold required before before-turn recall can expand beyond the normal durable-item cap. Defaults to 0.85."
176
+ },
177
+ "procedureThreshold": {
178
+ "type": "number",
179
+ "minimum": 0,
180
+ "maximum": 1,
181
+ "description": "Procedure-recall score threshold required before a proactive procedure can surface. Defaults to 0.72."
182
+ }
183
+ }
184
+ },
185
+ "slotPolicies": {
186
+ "type": "object",
187
+ "additionalProperties": false,
188
+ "description": "Claim-slot policy overrides keyed by canonical claim-key attribute head.",
189
+ "properties": {
190
+ "attributeHeads": {
191
+ "type": "object",
192
+ "description": "Map canonical attribute heads such as `integration` or `preference` to `exclusive` or `multivalued` read-time slot behavior.",
193
+ "propertyNames": {
194
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
195
+ },
196
+ "additionalProperties": {
197
+ "type": "string",
198
+ "enum": ["exclusive", "multivalued"]
199
+ }
200
+ }
201
+ }
202
+ }
203
+ }
58
204
  }
59
205
  }
60
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenr/openclaw-plugin",
3
- "version": "1.5.0",
3
+ "version": "3.3.0",
4
4
  "description": "agenr memory plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,15 +17,17 @@
17
17
  ]
18
18
  },
19
19
  "dependencies": {
20
+ "@earendil-works/pi-ai": "^0.78.0",
20
21
  "@libsql/client": "^0.17.2",
21
- "openclaw": "^2026.3.24"
22
+ "openclaw": "^2026.4.9",
23
+ "yaml": "^2.8.3"
22
24
  },
23
25
  "engines": {
24
26
  "node": ">=24"
25
27
  },
26
- "license": "AGPL-3.0",
28
+ "license": "MIT",
27
29
  "scripts": {
28
- "build": "tsup --config tsup.config.ts",
29
- "build:debug": "tsup --config tsup.config.ts --sourcemap"
30
+ "build": "node build.mjs",
31
+ "build:debug": "node build.mjs"
30
32
  }
31
33
  }