@xdarkicex/openclaw-memory-libravdb 1.4.8 → 1.4.10
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/dist/context-engine.d.ts +42 -5
- package/dist/context-engine.js +106 -9
- package/dist/generated/libravdb/ipc/v1/rpc_pb.d.ts +1803 -0
- package/dist/generated/libravdb/ipc/v1/rpc_pb.d.ts.map +1 -0
- package/dist/generated/libravdb/ipc/v1/rpc_pb.js +2800 -0
- package/dist/generated/libravdb/ipc/v1/rpc_pb.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin-runtime.d.ts +1 -0
- package/dist/plugin-runtime.js +4 -1
- package/dist/rpc-protobuf-codecs.d.ts +1 -1
- package/dist/rpc-protobuf-codecs.js +9 -2
- package/dist/rpc.d.ts +1 -0
- package/dist/rpc.js +89 -10
- package/dist/sidecar.d.ts +2 -1
- package/dist/sidecar.js +20 -4
- package/dist/types.d.ts +2 -0
- package/docs/install.md +10 -1
- package/docs/installation.md +14 -1
- package/openclaw.plugin.json +158 -47
- package/package.json +5 -6
package/openclaw.plugin.json
CHANGED
|
@@ -2,17 +2,35 @@
|
|
|
2
2
|
"id": "libravdb-memory",
|
|
3
3
|
"name": "LibraVDB Memory",
|
|
4
4
|
"description": "Persistent vector memory with three-tier hybrid scoring",
|
|
5
|
-
"version": "1.4.
|
|
6
|
-
"kind":
|
|
5
|
+
"version": "1.4.10",
|
|
6
|
+
"kind": [
|
|
7
|
+
"memory",
|
|
8
|
+
"context-engine"
|
|
9
|
+
],
|
|
7
10
|
"configSchema": {
|
|
8
11
|
"type": "object",
|
|
9
12
|
"additionalProperties": false,
|
|
10
13
|
"properties": {
|
|
11
|
-
"dbPath": {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
14
|
+
"dbPath": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"sidecarPath": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"useSessionSummarySearchExperiment": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"embeddingRuntimePath": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"embeddingBackend": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"bundled",
|
|
30
|
+
"onnx-local",
|
|
31
|
+
"custom-local"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
16
34
|
"embeddingProfile": {
|
|
17
35
|
"type": "string",
|
|
18
36
|
"default": "all-minilm-l6-v2"
|
|
@@ -21,22 +39,60 @@
|
|
|
21
39
|
"type": "string",
|
|
22
40
|
"default": "all-minilm-l6-v2"
|
|
23
41
|
},
|
|
24
|
-
"embeddingModelPath": {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
"embeddingModelPath": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"embeddingTokenizerPath": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"embeddingDimensions": {
|
|
49
|
+
"type": "number"
|
|
50
|
+
},
|
|
51
|
+
"embeddingNormalize": {
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
},
|
|
54
|
+
"summarizerBackend": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"bundled",
|
|
58
|
+
"onnx-local",
|
|
59
|
+
"ollama-local",
|
|
60
|
+
"custom-local"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"summarizerProfile": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"summarizerRuntimePath": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"summarizerModelPath": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"summarizerTokenizerPath": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"summarizerModel": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"summarizerEndpoint": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"sessionTTL": {
|
|
82
|
+
"type": "number"
|
|
83
|
+
},
|
|
84
|
+
"topK": {
|
|
85
|
+
"type": "number"
|
|
86
|
+
},
|
|
87
|
+
"alpha": {
|
|
88
|
+
"type": "number"
|
|
89
|
+
},
|
|
90
|
+
"beta": {
|
|
91
|
+
"type": "number"
|
|
92
|
+
},
|
|
93
|
+
"gamma": {
|
|
94
|
+
"type": "number"
|
|
95
|
+
},
|
|
40
96
|
"ingestionGateThreshold": {
|
|
41
97
|
"type": "number",
|
|
42
98
|
"default": 0.35
|
|
@@ -47,7 +103,9 @@
|
|
|
47
103
|
},
|
|
48
104
|
"markdownIngestionRoots": {
|
|
49
105
|
"type": "array",
|
|
50
|
-
"items": {
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
51
109
|
},
|
|
52
110
|
"markdownIngestionObsidianEnabled": {
|
|
53
111
|
"type": "boolean",
|
|
@@ -55,15 +113,21 @@
|
|
|
55
113
|
},
|
|
56
114
|
"markdownIngestionObsidianRoots": {
|
|
57
115
|
"type": "array",
|
|
58
|
-
"items": {
|
|
116
|
+
"items": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
}
|
|
59
119
|
},
|
|
60
120
|
"markdownIngestionObsidianInclude": {
|
|
61
121
|
"type": "array",
|
|
62
|
-
"items": {
|
|
122
|
+
"items": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
63
125
|
},
|
|
64
126
|
"markdownIngestionObsidianExclude": {
|
|
65
127
|
"type": "array",
|
|
66
|
-
"items": {
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
67
131
|
},
|
|
68
132
|
"markdownIngestionObsidianDebounceMs": {
|
|
69
133
|
"type": "number",
|
|
@@ -71,11 +135,15 @@
|
|
|
71
135
|
},
|
|
72
136
|
"markdownIngestionInclude": {
|
|
73
137
|
"type": "array",
|
|
74
|
-
"items": {
|
|
138
|
+
"items": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
}
|
|
75
141
|
},
|
|
76
142
|
"markdownIngestionExclude": {
|
|
77
143
|
"type": "array",
|
|
78
|
-
"items": {
|
|
144
|
+
"items": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
}
|
|
79
147
|
},
|
|
80
148
|
"markdownIngestionCollection": {
|
|
81
149
|
"type": "string",
|
|
@@ -103,16 +171,38 @@
|
|
|
103
171
|
"type": "object",
|
|
104
172
|
"additionalProperties": false,
|
|
105
173
|
"default": {
|
|
106
|
-
"w1c": 0.35,
|
|
107
|
-
"
|
|
174
|
+
"w1c": 0.35,
|
|
175
|
+
"w2c": 0.4,
|
|
176
|
+
"w3c": 0.25,
|
|
177
|
+
"w1t": 0.4,
|
|
178
|
+
"w2t": 0.35,
|
|
179
|
+
"w3t": 0.25
|
|
108
180
|
},
|
|
109
181
|
"properties": {
|
|
110
|
-
"w1c": {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
182
|
+
"w1c": {
|
|
183
|
+
"type": "number",
|
|
184
|
+
"default": 0.35
|
|
185
|
+
},
|
|
186
|
+
"w2c": {
|
|
187
|
+
"type": "number",
|
|
188
|
+
"default": 0.4
|
|
189
|
+
},
|
|
190
|
+
"w3c": {
|
|
191
|
+
"type": "number",
|
|
192
|
+
"default": 0.25
|
|
193
|
+
},
|
|
194
|
+
"w1t": {
|
|
195
|
+
"type": "number",
|
|
196
|
+
"default": 0.4
|
|
197
|
+
},
|
|
198
|
+
"w2t": {
|
|
199
|
+
"type": "number",
|
|
200
|
+
"default": 0.35
|
|
201
|
+
},
|
|
202
|
+
"w3t": {
|
|
203
|
+
"type": "number",
|
|
204
|
+
"default": 0.25
|
|
205
|
+
}
|
|
116
206
|
}
|
|
117
207
|
},
|
|
118
208
|
"gatingTechNorm": {
|
|
@@ -132,21 +222,42 @@
|
|
|
132
222
|
"default": 0.5,
|
|
133
223
|
"description": "Controls how much summary confidence affects retrieval score. 0 ignores summary quality and 1 fully suppresses zero-confidence summaries."
|
|
134
224
|
},
|
|
135
|
-
"recencyLambdaSession": {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"
|
|
139
|
-
|
|
225
|
+
"recencyLambdaSession": {
|
|
226
|
+
"type": "number"
|
|
227
|
+
},
|
|
228
|
+
"recencyLambdaUser": {
|
|
229
|
+
"type": "number"
|
|
230
|
+
},
|
|
231
|
+
"recencyLambdaGlobal": {
|
|
232
|
+
"type": "number"
|
|
233
|
+
},
|
|
234
|
+
"tokenBudgetFraction": {
|
|
235
|
+
"type": "number"
|
|
236
|
+
},
|
|
237
|
+
"compactThreshold": {
|
|
238
|
+
"type": "number"
|
|
239
|
+
},
|
|
140
240
|
"compactSessionTokenBudget": {
|
|
141
241
|
"type": "number",
|
|
142
242
|
"default": 2000,
|
|
143
243
|
"description": "Auto-trigger compaction when the session accumulates this many tokens since the last compaction. Set to 0 to disable auto-compaction."
|
|
144
244
|
},
|
|
145
|
-
"ollamaUrl": {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
|
|
245
|
+
"ollamaUrl": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
},
|
|
248
|
+
"compactModel": {
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"rpcTimeoutMs": {
|
|
252
|
+
"type": "number",
|
|
253
|
+
"default": 30000
|
|
254
|
+
},
|
|
255
|
+
"maxRetries": {
|
|
256
|
+
"type": "number"
|
|
257
|
+
},
|
|
258
|
+
"logLevel": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
}
|
|
150
261
|
}
|
|
151
262
|
}
|
|
152
263
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xdarkicex/openclaw-memory-libravdb",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "
|
|
40
|
+
"build": "tsc -p tsconfig.build.json && mkdir -p dist/proto dist/generated && cp -rf api/proto/. dist/proto/ && cp -rf src/generated/. dist/generated/",
|
|
41
41
|
"check": "tsc --noEmit && pnpm run test:ts",
|
|
42
42
|
"test:ts": "tsc -p tsconfig.tests.json && node --test .ts-build/test/unit/*.test.js",
|
|
43
43
|
"test:integration": "tsc -p tsconfig.tests.json && node --test .ts-build/test/integration/checklist-validation.test.js .ts-build/test/integration/dream-promotion.test.js .ts-build/test/integration/host-flow.test.js .ts-build/test/integration/markdown-ingest.test.js .ts-build/test/integration/sidecar-lifecycle.test.js",
|
|
@@ -49,18 +49,17 @@
|
|
|
49
49
|
"benchmark:longmemeval:score": "node scripts/longmemeval-score.mjs",
|
|
50
50
|
"benchmark:longmemeval:diagnose": "node scripts/longmemeval-diagnose.mjs",
|
|
51
51
|
"prepack": "npm run build",
|
|
52
|
-
"build:daemon": "bash scripts/build-daemon.sh"
|
|
53
|
-
"generate:contracts": "cd ../libravdb-contracts && pnpm run build && cp -r gen/js/. ../openclaw-memory-libravdb/src/generated/"
|
|
52
|
+
"build:daemon": "bash scripts/build-daemon.sh"
|
|
54
53
|
},
|
|
55
54
|
"dependencies": {
|
|
56
55
|
"@bufbuild/protobuf": "1.7.2",
|
|
57
56
|
"@grpc/grpc-js": "^1.14.3",
|
|
58
57
|
"@grpc/proto-loader": "^0.8.0",
|
|
59
|
-
"@xdarkicex/libravdb-contracts": "file:../libravdb-contracts",
|
|
60
58
|
"openclaw": "*"
|
|
61
59
|
},
|
|
62
60
|
"devDependencies": {
|
|
63
|
-
"@types/node": "^20.11.0"
|
|
61
|
+
"@types/node": "^20.11.0",
|
|
62
|
+
"typescript": "^6.0.3"
|
|
64
63
|
},
|
|
65
64
|
"peerDependencies": {
|
|
66
65
|
"openclaw": ">=2026.3.22"
|