@openclaw/memory-lancedb 2026.7.1-beta.1 → 2026.7.1-beta.2
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/index.js +4 -15
- package/npm-shrinkwrap.json +68 -54
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { Buffer } from "node:buffer";
|
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
6
6
|
import { optionalFiniteNumberSchema, optionalPositiveIntegerSchema } from "openclaw/plugin-sdk/channel-actions";
|
|
7
7
|
import { BUNDLED_CHAT_CHANNEL_ENVELOPE_PREFIXES } from "openclaw/plugin-sdk/chat-channel-ids";
|
|
8
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
8
9
|
import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/message-tool-delivery-hints";
|
|
9
10
|
import { parseStrictPositiveInteger, resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
|
|
10
11
|
import { readFiniteNumberParam, readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
|
|
@@ -21,21 +22,9 @@ import { Type } from "typebox";
|
|
|
21
22
|
* Uses LanceDB for storage and OpenAI for embeddings.
|
|
22
23
|
* Provides seamless auto-recall and auto-capture via lifecycle hooks.
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return openAiModulePromise;
|
|
28
|
-
}
|
|
29
|
-
let memoryEmbeddingProviderModulePromise;
|
|
30
|
-
function loadMemoryEmbeddingProviderModule() {
|
|
31
|
-
memoryEmbeddingProviderModulePromise ??= import("openclaw/plugin-sdk/memory-core-host-engine-embeddings");
|
|
32
|
-
return memoryEmbeddingProviderModulePromise;
|
|
33
|
-
}
|
|
34
|
-
let memoryHostCoreModulePromise;
|
|
35
|
-
function loadMemoryHostCoreModule() {
|
|
36
|
-
memoryHostCoreModulePromise ??= import("openclaw/plugin-sdk/memory-host-core");
|
|
37
|
-
return memoryHostCoreModulePromise;
|
|
38
|
-
}
|
|
25
|
+
const loadOpenAiModule = createLazyRuntimeModule(() => import("openai"));
|
|
26
|
+
const loadMemoryEmbeddingProviderModule = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/memory-core-host-engine-embeddings"));
|
|
27
|
+
const loadMemoryHostCoreModule = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/memory-host-core"));
|
|
39
28
|
function extractUserTextContent(message) {
|
|
40
29
|
const msgObj = asOptionalRecord(message);
|
|
41
30
|
if (!msgObj || msgObj.role !== "user") return [];
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/memory-lancedb",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/memory-lancedb",
|
|
9
|
-
"version": "2026.7.1-beta.
|
|
9
|
+
"version": "2026.7.1-beta.2",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@lancedb/lancedb": "0.30.0",
|
|
12
|
-
"apache-arrow": "
|
|
12
|
+
"apache-arrow": "18.1.0",
|
|
13
13
|
"openai": "6.39.1",
|
|
14
14
|
"typebox": "1.1.39"
|
|
15
15
|
}
|
|
@@ -181,12 +181,12 @@
|
|
|
181
181
|
"license": "MIT"
|
|
182
182
|
},
|
|
183
183
|
"node_modules/@types/node": {
|
|
184
|
-
"version": "
|
|
185
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-
|
|
186
|
-
"integrity": "sha512-
|
|
184
|
+
"version": "20.19.42",
|
|
185
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.42.tgz",
|
|
186
|
+
"integrity": "sha512-5L7SUaFC1RyDraj2yRhyBzHTobyXHmohD100CChNtyPyleoq37Mqab5Gn8XEKI04dfN/oqPdpHk38MgcQWHbZg==",
|
|
187
187
|
"license": "MIT",
|
|
188
188
|
"dependencies": {
|
|
189
|
-
"undici-types": "~
|
|
189
|
+
"undici-types": "~6.21.0"
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
"node_modules/ansi-styles": {
|
|
@@ -205,18 +205,18 @@
|
|
|
205
205
|
}
|
|
206
206
|
},
|
|
207
207
|
"node_modules/apache-arrow": {
|
|
208
|
-
"version": "
|
|
209
|
-
"resolved": "https://registry.npmjs.org/apache-arrow/-/apache-arrow-
|
|
210
|
-
"integrity": "sha512-
|
|
208
|
+
"version": "18.1.0",
|
|
209
|
+
"resolved": "https://registry.npmjs.org/apache-arrow/-/apache-arrow-18.1.0.tgz",
|
|
210
|
+
"integrity": "sha512-v/ShMp57iBnBp4lDgV8Jx3d3Q5/Hac25FWmQ98eMahUiHPXcvwIMKJD0hBIgclm/FCG+LwPkAKtkRO1O/W0YGg==",
|
|
211
211
|
"license": "Apache-2.0",
|
|
212
212
|
"dependencies": {
|
|
213
213
|
"@swc/helpers": "^0.5.11",
|
|
214
214
|
"@types/command-line-args": "^5.2.3",
|
|
215
215
|
"@types/command-line-usage": "^5.0.4",
|
|
216
|
-
"@types/node": "^
|
|
217
|
-
"command-line-args": "^
|
|
216
|
+
"@types/node": "^20.13.0",
|
|
217
|
+
"command-line-args": "^5.2.1",
|
|
218
218
|
"command-line-usage": "^7.0.1",
|
|
219
|
-
"flatbuffers": "^
|
|
219
|
+
"flatbuffers": "^24.3.25",
|
|
220
220
|
"json-bignum": "^0.0.3",
|
|
221
221
|
"tslib": "^2.6.2"
|
|
222
222
|
},
|
|
@@ -225,12 +225,12 @@
|
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
"node_modules/array-back": {
|
|
228
|
-
"version": "
|
|
229
|
-
"resolved": "https://registry.npmjs.org/array-back/-/array-back-
|
|
230
|
-
"integrity": "sha512-
|
|
228
|
+
"version": "3.1.0",
|
|
229
|
+
"resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz",
|
|
230
|
+
"integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==",
|
|
231
231
|
"license": "MIT",
|
|
232
232
|
"engines": {
|
|
233
|
-
"node": ">=
|
|
233
|
+
"node": ">=6"
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
"node_modules/chalk": {
|
|
@@ -283,26 +283,18 @@
|
|
|
283
283
|
"license": "MIT"
|
|
284
284
|
},
|
|
285
285
|
"node_modules/command-line-args": {
|
|
286
|
-
"version": "
|
|
287
|
-
"resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-
|
|
288
|
-
"integrity": "sha512-
|
|
286
|
+
"version": "5.2.1",
|
|
287
|
+
"resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz",
|
|
288
|
+
"integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==",
|
|
289
289
|
"license": "MIT",
|
|
290
290
|
"dependencies": {
|
|
291
|
-
"array-back": "^
|
|
292
|
-
"find-replace": "^
|
|
291
|
+
"array-back": "^3.1.0",
|
|
292
|
+
"find-replace": "^3.0.0",
|
|
293
293
|
"lodash.camelcase": "^4.3.0",
|
|
294
|
-
"typical": "^
|
|
294
|
+
"typical": "^4.0.0"
|
|
295
295
|
},
|
|
296
296
|
"engines": {
|
|
297
|
-
"node": ">=
|
|
298
|
-
},
|
|
299
|
-
"peerDependencies": {
|
|
300
|
-
"@75lb/nature": "latest"
|
|
301
|
-
},
|
|
302
|
-
"peerDependenciesMeta": {
|
|
303
|
-
"@75lb/nature": {
|
|
304
|
-
"optional": true
|
|
305
|
-
}
|
|
297
|
+
"node": ">=4.0.0"
|
|
306
298
|
}
|
|
307
299
|
},
|
|
308
300
|
"node_modules/command-line-usage": {
|
|
@@ -320,27 +312,40 @@
|
|
|
320
312
|
"node": ">=12.20.0"
|
|
321
313
|
}
|
|
322
314
|
},
|
|
323
|
-
"node_modules/
|
|
324
|
-
"version": "
|
|
325
|
-
"resolved": "https://registry.npmjs.org/
|
|
326
|
-
"integrity": "sha512-
|
|
315
|
+
"node_modules/command-line-usage/node_modules/array-back": {
|
|
316
|
+
"version": "6.2.3",
|
|
317
|
+
"resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.3.tgz",
|
|
318
|
+
"integrity": "sha512-SGDvmg6QTYiTxCBkYVmThcoa67uLl35pyzRHdpCGBOcqFy6BtwnphoFPk7LhJshD+Yk1Kt35WGWeZPTgwR4Fhw==",
|
|
327
319
|
"license": "MIT",
|
|
328
320
|
"engines": {
|
|
329
|
-
"node": ">=
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
321
|
+
"node": ">=12.17"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"node_modules/command-line-usage/node_modules/typical": {
|
|
325
|
+
"version": "7.3.0",
|
|
326
|
+
"resolved": "https://registry.npmjs.org/typical/-/typical-7.3.0.tgz",
|
|
327
|
+
"integrity": "sha512-ya4mg/30vm+DOWfBg4YK3j2WD6TWtRkCbasOJr40CseYENzCUby/7rIvXA99JGsQHeNxLbnXdyLLxKSv3tauFw==",
|
|
328
|
+
"license": "MIT",
|
|
329
|
+
"engines": {
|
|
330
|
+
"node": ">=12.17"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"node_modules/find-replace": {
|
|
334
|
+
"version": "3.0.0",
|
|
335
|
+
"resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz",
|
|
336
|
+
"integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==",
|
|
337
|
+
"license": "MIT",
|
|
338
|
+
"dependencies": {
|
|
339
|
+
"array-back": "^3.0.1"
|
|
333
340
|
},
|
|
334
|
-
"
|
|
335
|
-
"
|
|
336
|
-
"optional": true
|
|
337
|
-
}
|
|
341
|
+
"engines": {
|
|
342
|
+
"node": ">=4.0.0"
|
|
338
343
|
}
|
|
339
344
|
},
|
|
340
345
|
"node_modules/flatbuffers": {
|
|
341
|
-
"version": "
|
|
342
|
-
"resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-
|
|
343
|
-
"integrity": "sha512-
|
|
346
|
+
"version": "24.12.23",
|
|
347
|
+
"resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-24.12.23.tgz",
|
|
348
|
+
"integrity": "sha512-dLVCAISd5mhls514keQzmEG6QHmUUsNuWsb4tFafIUwvvgDjXhtfAYSKOzt5SWOy+qByV5pbsDZ+Vb7HUOBEdA==",
|
|
344
349
|
"license": "Apache-2.0"
|
|
345
350
|
},
|
|
346
351
|
"node_modules/has-flag": {
|
|
@@ -418,6 +423,15 @@
|
|
|
418
423
|
"node": ">=12.17"
|
|
419
424
|
}
|
|
420
425
|
},
|
|
426
|
+
"node_modules/table-layout/node_modules/array-back": {
|
|
427
|
+
"version": "6.2.3",
|
|
428
|
+
"resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.3.tgz",
|
|
429
|
+
"integrity": "sha512-SGDvmg6QTYiTxCBkYVmThcoa67uLl35pyzRHdpCGBOcqFy6BtwnphoFPk7LhJshD+Yk1Kt35WGWeZPTgwR4Fhw==",
|
|
430
|
+
"license": "MIT",
|
|
431
|
+
"engines": {
|
|
432
|
+
"node": ">=12.17"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
421
435
|
"node_modules/tslib": {
|
|
422
436
|
"version": "2.8.1",
|
|
423
437
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
|
@@ -431,18 +445,18 @@
|
|
|
431
445
|
"license": "MIT"
|
|
432
446
|
},
|
|
433
447
|
"node_modules/typical": {
|
|
434
|
-
"version": "
|
|
435
|
-
"resolved": "https://registry.npmjs.org/typical/-/typical-
|
|
436
|
-
"integrity": "sha512-
|
|
448
|
+
"version": "4.0.0",
|
|
449
|
+
"resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz",
|
|
450
|
+
"integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==",
|
|
437
451
|
"license": "MIT",
|
|
438
452
|
"engines": {
|
|
439
|
-
"node": ">=
|
|
453
|
+
"node": ">=8"
|
|
440
454
|
}
|
|
441
455
|
},
|
|
442
456
|
"node_modules/undici-types": {
|
|
443
|
-
"version": "
|
|
444
|
-
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-
|
|
445
|
-
"integrity": "sha512-
|
|
457
|
+
"version": "6.21.0",
|
|
458
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
|
|
459
|
+
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
|
|
446
460
|
"license": "MIT"
|
|
447
461
|
},
|
|
448
462
|
"node_modules/wordwrapjs": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/memory-lancedb",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.2",
|
|
4
4
|
"description": "OpenClaw LanceDB-backed long-term memory plugin with auto-recall, auto-capture, and vector search.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@lancedb/lancedb": "0.30.0",
|
|
12
|
-
"apache-arrow": "
|
|
12
|
+
"apache-arrow": "18.1.0",
|
|
13
13
|
"openai": "6.39.1",
|
|
14
14
|
"typebox": "1.1.39"
|
|
15
15
|
},
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"minHostVersion": ">=2026.5.31"
|
|
27
27
|
},
|
|
28
28
|
"compat": {
|
|
29
|
-
"pluginApi": ">=2026.7.1-beta.
|
|
29
|
+
"pluginApi": ">=2026.7.1-beta.2"
|
|
30
30
|
},
|
|
31
31
|
"build": {
|
|
32
|
-
"openclawVersion": "2026.7.1-beta.
|
|
32
|
+
"openclawVersion": "2026.7.1-beta.2"
|
|
33
33
|
},
|
|
34
34
|
"release": {
|
|
35
35
|
"bundleRuntimeDependencies": false,
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"README.md"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"openclaw": ">=2026.7.1-beta.
|
|
50
|
+
"openclaw": ">=2026.7.1-beta.2"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"openclaw": {
|