@agenr/agenr-plugin 2.0.1 → 2.1.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,7 +1,7 @@
1
1
  {
2
2
  "id": "agenr",
3
3
  "name": "agenr",
4
- "version": "2.0.1",
4
+ "version": "2.1.0",
5
5
  "description": "agenr memory plugin for OpenClaw",
6
6
  "kind": "memory",
7
7
  "contracts": {
@@ -34,7 +34,11 @@
34
34
  },
35
35
  "memoryPolicy": {
36
36
  "label": "Memory policy",
37
- "help": "Optional runtime overrides for claim-aware read behavior such as slot-policy classes."
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."
38
42
  }
39
43
  },
40
44
  "configSchema": {
@@ -85,11 +89,91 @@
85
89
  }
86
90
  }
87
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
+ },
88
123
  "memoryPolicy": {
89
124
  "type": "object",
90
125
  "additionalProperties": false,
91
126
  "description": "Optional runtime overrides for claim-aware read behavior exposed by the OpenClaw adapter.",
92
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
+ "relevantDurableMemory": {
134
+ "type": "boolean",
135
+ "description": "Enable or disable artifact-grounded Relevant Durable Memory injection at session start. Defaults to true."
136
+ }
137
+ }
138
+ },
139
+ "beforeTurn": {
140
+ "type": "object",
141
+ "additionalProperties": false,
142
+ "description": "Optional before-turn overrides for proactive prompt-time memory injection behavior.",
143
+ "properties": {
144
+ "enabled": {
145
+ "type": "boolean",
146
+ "description": "Enable or disable the proactive before-turn memory patch. Defaults to true."
147
+ },
148
+ "procedureSuggestion": {
149
+ "type": "boolean",
150
+ "description": "Enable or disable proactive high-confidence procedure suggestion inside the before-turn patch. Defaults to true."
151
+ },
152
+ "maxDurableEntries": {
153
+ "type": "integer",
154
+ "minimum": 1,
155
+ "description": "Normal durable-item cap for before-turn recall. Defaults to 1 and only expands when all surfaced items are very high confidence."
156
+ },
157
+ "recallThreshold": {
158
+ "type": "number",
159
+ "minimum": 0,
160
+ "maximum": 1,
161
+ "description": "Durable-recall score threshold required before an entry can surface during before-turn recall. Defaults to 0.6."
162
+ },
163
+ "highConfidenceRecallThreshold": {
164
+ "type": "number",
165
+ "minimum": 0,
166
+ "maximum": 1,
167
+ "description": "Durable-recall score threshold required before before-turn recall can expand beyond the normal durable-item cap. Defaults to 0.85."
168
+ },
169
+ "procedureThreshold": {
170
+ "type": "number",
171
+ "minimum": 0,
172
+ "maximum": 1,
173
+ "description": "Procedure-recall score threshold required before a proactive procedure can surface. Defaults to 0.72."
174
+ }
175
+ }
176
+ },
93
177
  "slotPolicies": {
94
178
  "type": "object",
95
179
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenr/agenr-plugin",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "agenr memory plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "exports": {