openclaw-plugin-memory-engine 4.2.2 → 4.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.
- package/README.md +1 -1
- package/dist/entry.js +2 -2
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +1 -1
- package/openclaw.plugin.json +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ Enable the plugin UI page once via **Control UI → Settings → Labs → Custom
|
|
|
40
40
|
|
|
41
41
|
## Privacy & Data
|
|
42
42
|
|
|
43
|
-
- **What is stored**: with session ingest enabled
|
|
43
|
+
- **What is stored**: with session ingest enabled, OpenClaw chat messages are stored as session_msg atoms in the configured SQLite database, and a per-session digest is refreshed periodically.
|
|
44
44
|
- **Opt out**: set ingest.enabled false in the plugin config to stop capturing chats entirely; existing captured data stays until cleaned.
|
|
45
45
|
- **Automatic cleanup**: session_msg and session_digest atoms carry a TTL (default 7 days, configurable via ingest.retention_days) and are expired automatically by the periodic flush.
|
|
46
46
|
- **Manual cleanup**: use memory_cleanup_sessions, memory_delete_atom, memory_export_all to review or purge stored contents.
|
package/dist/entry.js
CHANGED
|
@@ -46,7 +46,7 @@ export default definePluginEntry({
|
|
|
46
46
|
const me = createTools(dbPath);
|
|
47
47
|
const curator = new Curator(me.__db, me.__engine, (api.config ?? {}).curator ?? {});
|
|
48
48
|
const ingestCfg = ((api.config ?? {}).ingest ?? {});
|
|
49
|
-
const ingestEnabled = ingestCfg.enabled
|
|
49
|
+
const ingestEnabled = ingestCfg.enabled === true;
|
|
50
50
|
const retentionDays = Number(ingestCfg.retention_days ?? 7);
|
|
51
51
|
const logger = api.logger ?? console;
|
|
52
52
|
// ── Tools ─────────────────────────────────────────────
|
|
@@ -166,6 +166,6 @@ export default definePluginEntry({
|
|
|
166
166
|
}
|
|
167
167
|
}, FLUSH_MS);
|
|
168
168
|
timer.unref?.();
|
|
169
|
-
logger.info?.("[memory-engine] v" + VERSION + " registered: " + defs.length + " tools + ingest " + (ingestEnabled ? "on (retention " + retentionDays + "d)" : "
|
|
169
|
+
logger.info?.("[memory-engine] v" + VERSION + " registered: " + defs.length + " tools + ingest " + (ingestEnabled ? "on (retention " + retentionDays + "d)" : "off (enable via config ingest.enabled=true)") + " (" + (FLUSH_MS / 1000) + "s)");
|
|
170
170
|
},
|
|
171
171
|
});
|
package/dist/tools.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Python server and are exposed as explicit pointers.
|
|
5
5
|
*/
|
|
6
6
|
import { DatabaseSync } from "node:sqlite";
|
|
7
|
-
export declare const VERSION = "4.
|
|
7
|
+
export declare const VERSION = "4.3.0";
|
|
8
8
|
export declare function createTools(dbPath: string): {
|
|
9
9
|
__db: DatabaseSync;
|
|
10
10
|
version: () => {
|
package/dist/tools.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { DatabaseSync } from "node:sqlite";
|
|
7
7
|
import { Engine } from "./engine.js";
|
|
8
8
|
import { buildSessionDigest } from "./digest.js";
|
|
9
|
-
export const VERSION = "4.
|
|
9
|
+
export const VERSION = "4.3.0";
|
|
10
10
|
export function createTools(dbPath) {
|
|
11
11
|
const db = new DatabaseSync(dbPath);
|
|
12
12
|
const engine = new Engine(db, {});
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "memory-engine",
|
|
3
3
|
"name": "Memory Engine",
|
|
4
4
|
"description": "Native Memory Engine: 45 memory tools, session ingest/digest, curator and Control UI.",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.3.0",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"properties": {
|
|
13
13
|
"enabled": {
|
|
14
14
|
"type": "boolean",
|
|
15
|
-
"default":
|
|
16
|
-
"description": "Capture OpenClaw chat contents into the memory database.
|
|
15
|
+
"default": false,
|
|
16
|
+
"description": "Capture OpenClaw chat contents into the memory database. Default false (privacy-first); set true to enable session ingest."
|
|
17
17
|
},
|
|
18
18
|
"retention_days": {
|
|
19
19
|
"type": "number",
|