openclaw-cortex-memory 0.1.0-Alpha.4 → 0.1.0-Alpha.5
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 +82 -3
- package/SKILL.md +58 -3
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +118 -2
- package/dist/index.js.map +1 -1
- package/dist/openclaw.plugin.json +101 -1
- package/dist/src/dedup/three_stage_deduplicator.d.ts +25 -0
- package/dist/src/dedup/three_stage_deduplicator.d.ts.map +1 -0
- package/dist/src/dedup/three_stage_deduplicator.js +225 -0
- package/dist/src/dedup/three_stage_deduplicator.js.map +1 -0
- package/dist/src/engine/ts_engine.d.ts +36 -0
- package/dist/src/engine/ts_engine.d.ts.map +1 -1
- package/dist/src/engine/ts_engine.js +197 -32
- package/dist/src/engine/ts_engine.js.map +1 -1
- package/dist/src/engine/types.d.ts +4 -0
- package/dist/src/engine/types.d.ts.map +1 -1
- package/dist/src/graph/ontology.d.ts +53 -0
- package/dist/src/graph/ontology.d.ts.map +1 -0
- package/dist/src/graph/ontology.js +252 -0
- package/dist/src/graph/ontology.js.map +1 -0
- package/dist/src/session/session_end.d.ts +55 -0
- package/dist/src/session/session_end.d.ts.map +1 -1
- package/dist/src/session/session_end.js +237 -51
- package/dist/src/session/session_end.js.map +1 -1
- package/dist/src/store/archive_store.d.ts +89 -0
- package/dist/src/store/archive_store.d.ts.map +1 -0
- package/dist/src/store/archive_store.js +242 -0
- package/dist/src/store/archive_store.js.map +1 -0
- package/dist/src/store/read_store.d.ts +24 -0
- package/dist/src/store/read_store.d.ts.map +1 -1
- package/dist/src/store/read_store.js +635 -27
- package/dist/src/store/read_store.js.map +1 -1
- package/dist/src/store/vector_store.d.ts +30 -0
- package/dist/src/store/vector_store.d.ts.map +1 -0
- package/dist/src/store/vector_store.js +127 -0
- package/dist/src/store/vector_store.js.map +1 -0
- package/dist/src/sync/session_sync.d.ts +7 -0
- package/dist/src/sync/session_sync.d.ts.map +1 -1
- package/dist/src/sync/session_sync.js +109 -7
- package/dist/src/sync/session_sync.js.map +1 -1
- package/openclaw.plugin.json +101 -1
- package/package.json +6 -2
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "openclaw-cortex-memory",
|
|
3
3
|
"name": "Cortex Memory",
|
|
4
|
-
"version": "0.1.0-Alpha.
|
|
4
|
+
"version": "0.1.0-Alpha.5",
|
|
5
5
|
"description": "Long-term memory system with semantic, episodic, and procedural memory for AI Agents",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"author": "OpenClaw Community",
|
|
@@ -84,6 +84,23 @@
|
|
|
84
84
|
"entity": {
|
|
85
85
|
"type": "string",
|
|
86
86
|
"description": "Entity name"
|
|
87
|
+
},
|
|
88
|
+
"rel": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "Optional relation type filter"
|
|
91
|
+
},
|
|
92
|
+
"dir": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Relation direction filter",
|
|
95
|
+
"enum": ["incoming", "outgoing", "both"]
|
|
96
|
+
},
|
|
97
|
+
"path_to": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Find path from entity to this target entity"
|
|
100
|
+
},
|
|
101
|
+
"max_depth": {
|
|
102
|
+
"type": "integer",
|
|
103
|
+
"description": "Path query max depth (2~4)"
|
|
87
104
|
}
|
|
88
105
|
},
|
|
89
106
|
"required": ["entity"],
|
|
@@ -199,6 +216,11 @@
|
|
|
199
216
|
"description": "Automatically trigger reflection periodically",
|
|
200
217
|
"default": false
|
|
201
218
|
},
|
|
219
|
+
"autoReflectIntervalMinutes": {
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"description": "Auto reflection scan interval in minutes",
|
|
222
|
+
"default": 30
|
|
223
|
+
},
|
|
202
224
|
"embedding": {
|
|
203
225
|
"type": "object",
|
|
204
226
|
"description": "Embedding model configuration",
|
|
@@ -288,6 +310,84 @@
|
|
|
288
310
|
"type": "boolean",
|
|
289
311
|
"description": "Fallback to OpenClaw builtin memory when Cortex Memory fails",
|
|
290
312
|
"default": true
|
|
313
|
+
},
|
|
314
|
+
"readFusion": {
|
|
315
|
+
"type": "object",
|
|
316
|
+
"description": "Post-rerank LLM fusion for multi-route retrieval results",
|
|
317
|
+
"properties": {
|
|
318
|
+
"enabled": {
|
|
319
|
+
"type": "boolean",
|
|
320
|
+
"description": "Enable LLM fusion after rerank",
|
|
321
|
+
"default": true
|
|
322
|
+
},
|
|
323
|
+
"maxCandidates": {
|
|
324
|
+
"type": "integer",
|
|
325
|
+
"description": "Maximum reranked candidates used for fusion",
|
|
326
|
+
"default": 10
|
|
327
|
+
},
|
|
328
|
+
"authoritative": {
|
|
329
|
+
"type": "boolean",
|
|
330
|
+
"description": "Return only fused authoritative memory package to agent",
|
|
331
|
+
"default": true
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"additionalProperties": false
|
|
335
|
+
},
|
|
336
|
+
"memoryDecay": {
|
|
337
|
+
"type": "object",
|
|
338
|
+
"description": "Time-decay controls for retrieval ranking by event_type",
|
|
339
|
+
"properties": {
|
|
340
|
+
"enabled": {
|
|
341
|
+
"type": "boolean",
|
|
342
|
+
"description": "Enable event-type half-life decay in retrieval ranking",
|
|
343
|
+
"default": true
|
|
344
|
+
},
|
|
345
|
+
"minFloor": {
|
|
346
|
+
"type": "number",
|
|
347
|
+
"description": "Minimum decay factor floor in [0,1]",
|
|
348
|
+
"default": 0.15
|
|
349
|
+
},
|
|
350
|
+
"defaultHalfLifeDays": {
|
|
351
|
+
"type": "number",
|
|
352
|
+
"description": "Default half-life in days for unconfigured event types",
|
|
353
|
+
"default": 90
|
|
354
|
+
},
|
|
355
|
+
"halfLifeByEventType": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"description": "Half-life days overrides by event_type",
|
|
358
|
+
"additionalProperties": {
|
|
359
|
+
"type": "number"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"antiDecay": {
|
|
363
|
+
"type": "object",
|
|
364
|
+
"description": "Hit-frequency anti-decay controls",
|
|
365
|
+
"properties": {
|
|
366
|
+
"enabled": {
|
|
367
|
+
"type": "boolean",
|
|
368
|
+
"description": "Enable anti-decay boost for frequently hit memories",
|
|
369
|
+
"default": true
|
|
370
|
+
},
|
|
371
|
+
"maxBoost": {
|
|
372
|
+
"type": "number",
|
|
373
|
+
"description": "Maximum multiplicative anti-decay boost (>=1)",
|
|
374
|
+
"default": 1.6
|
|
375
|
+
},
|
|
376
|
+
"hitWeight": {
|
|
377
|
+
"type": "number",
|
|
378
|
+
"description": "Hit count to boost conversion weight",
|
|
379
|
+
"default": 0.08
|
|
380
|
+
},
|
|
381
|
+
"recentWindowDays": {
|
|
382
|
+
"type": "number",
|
|
383
|
+
"description": "Recent hit window in days for freshness contribution",
|
|
384
|
+
"default": 30
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"additionalProperties": false
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"additionalProperties": false
|
|
291
391
|
}
|
|
292
392
|
},
|
|
293
393
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-cortex-memory",
|
|
3
|
-
"version": "0.1.0-Alpha.
|
|
3
|
+
"version": "0.1.0-Alpha.5",
|
|
4
4
|
"description": "Long-term memory system for OpenClaw AI Agent",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"check:version": "node scripts/check-version.js",
|
|
14
14
|
"test:compat": "node scripts/compat-regression.js",
|
|
15
15
|
"test:model": "node scripts/model-regression.js",
|
|
16
|
-
"test:
|
|
16
|
+
"test:graph": "node scripts/graph-eval.js",
|
|
17
|
+
"test:all": "npm run test:compat && npm run test:model && npm run test:graph",
|
|
17
18
|
"release:check": "node scripts/release-pipeline.js",
|
|
18
19
|
"dev": "tsc --watch",
|
|
19
20
|
"prepack": "npm run build",
|
|
@@ -31,6 +32,9 @@
|
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"undici": "^6.21.0"
|
|
33
34
|
},
|
|
35
|
+
"optionalDependencies": {
|
|
36
|
+
"@lancedb/lancedb": "^0.22.0"
|
|
37
|
+
},
|
|
34
38
|
"devDependencies": {
|
|
35
39
|
"@types/node": "^22.19.15",
|
|
36
40
|
"typescript": "^5.7.2"
|