@openclaw/memory-lancedb 2026.7.1-beta.1 → 2026.7.1-beta.4
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 +6 -17
- package/npm-shrinkwrap.json +88 -65
- package/package.json +7 -7
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 [];
|
|
@@ -1042,7 +1031,7 @@ var memory_lancedb_default = definePluginEntry({
|
|
|
1042
1031
|
return {
|
|
1043
1032
|
content: [{
|
|
1044
1033
|
type: "text",
|
|
1045
|
-
text: `Stored: "${text
|
|
1034
|
+
text: `Stored: "${truncateUtf16Safe(text, 100)}..."`
|
|
1046
1035
|
}],
|
|
1047
1036
|
details: {
|
|
1048
1037
|
action: "created",
|
|
@@ -1098,7 +1087,7 @@ var memory_lancedb_default = definePluginEntry({
|
|
|
1098
1087
|
}
|
|
1099
1088
|
};
|
|
1100
1089
|
}
|
|
1101
|
-
const list = results.map((r) => `- [${r.entry.id}] ${r.entry.text
|
|
1090
|
+
const list = results.map((r) => `- [${r.entry.id}] ${truncateUtf16Safe(r.entry.text, 60)}...`).join("\n");
|
|
1102
1091
|
const sanitizedCandidates = results.map((r) => ({
|
|
1103
1092
|
id: r.entry.id,
|
|
1104
1093
|
text: r.entry.text,
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/memory-lancedb",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.4",
|
|
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.4",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@lancedb/lancedb": "0.30.0",
|
|
12
|
-
"apache-arrow": "
|
|
13
|
-
"openai": "6.
|
|
14
|
-
"typebox": "1.
|
|
12
|
+
"apache-arrow": "18.1.0",
|
|
13
|
+
"openai": "6.45.0",
|
|
14
|
+
"typebox": "1.3.3"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"node_modules/@lancedb/lancedb": {
|
|
@@ -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.43",
|
|
185
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz",
|
|
186
|
+
"integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==",
|
|
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": {
|
|
@@ -367,18 +372,27 @@
|
|
|
367
372
|
"license": "MIT"
|
|
368
373
|
},
|
|
369
374
|
"node_modules/openai": {
|
|
370
|
-
"version": "6.
|
|
371
|
-
"resolved": "https://registry.npmjs.org/openai/-/openai-6.
|
|
372
|
-
"integrity": "sha512-
|
|
375
|
+
"version": "6.45.0",
|
|
376
|
+
"resolved": "https://registry.npmjs.org/openai/-/openai-6.45.0.tgz",
|
|
377
|
+
"integrity": "sha512-5DQVNErssk0afNpTTHUm/qZPU4iKR9OYdNid8Ib4puq4gHNNvGWZht2zY4h9a8JMF949Ik6m8gQutllVPbjdnw==",
|
|
373
378
|
"license": "Apache-2.0",
|
|
374
|
-
"bin": {
|
|
375
|
-
"openai": "bin/cli"
|
|
376
|
-
},
|
|
377
379
|
"peerDependencies": {
|
|
380
|
+
"@aws-sdk/credential-provider-node": ">=3.972.0 <4",
|
|
381
|
+
"@smithy/hash-node": ">=4.3.0 <5",
|
|
382
|
+
"@smithy/signature-v4": ">=5.4.0 <6",
|
|
378
383
|
"ws": "^8.18.0",
|
|
379
384
|
"zod": "^3.25 || ^4.0"
|
|
380
385
|
},
|
|
381
386
|
"peerDependenciesMeta": {
|
|
387
|
+
"@aws-sdk/credential-provider-node": {
|
|
388
|
+
"optional": true
|
|
389
|
+
},
|
|
390
|
+
"@smithy/hash-node": {
|
|
391
|
+
"optional": true
|
|
392
|
+
},
|
|
393
|
+
"@smithy/signature-v4": {
|
|
394
|
+
"optional": true
|
|
395
|
+
},
|
|
382
396
|
"ws": {
|
|
383
397
|
"optional": true
|
|
384
398
|
},
|
|
@@ -418,6 +432,15 @@
|
|
|
418
432
|
"node": ">=12.17"
|
|
419
433
|
}
|
|
420
434
|
},
|
|
435
|
+
"node_modules/table-layout/node_modules/array-back": {
|
|
436
|
+
"version": "6.2.3",
|
|
437
|
+
"resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.3.tgz",
|
|
438
|
+
"integrity": "sha512-SGDvmg6QTYiTxCBkYVmThcoa67uLl35pyzRHdpCGBOcqFy6BtwnphoFPk7LhJshD+Yk1Kt35WGWeZPTgwR4Fhw==",
|
|
439
|
+
"license": "MIT",
|
|
440
|
+
"engines": {
|
|
441
|
+
"node": ">=12.17"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
421
444
|
"node_modules/tslib": {
|
|
422
445
|
"version": "2.8.1",
|
|
423
446
|
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
|
@@ -425,24 +448,24 @@
|
|
|
425
448
|
"license": "0BSD"
|
|
426
449
|
},
|
|
427
450
|
"node_modules/typebox": {
|
|
428
|
-
"version": "1.
|
|
429
|
-
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.
|
|
430
|
-
"integrity": "sha512-
|
|
451
|
+
"version": "1.3.3",
|
|
452
|
+
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.3.tgz",
|
|
453
|
+
"integrity": "sha512-URXGUE31PJDQC+PtRMJeLdF4kmmOdFoVPikPCtV2oOIhUpNpppEdIz7W8bH8cFYPYHdDpaRvqwdegMTmHliudg==",
|
|
431
454
|
"license": "MIT"
|
|
432
455
|
},
|
|
433
456
|
"node_modules/typical": {
|
|
434
|
-
"version": "
|
|
435
|
-
"resolved": "https://registry.npmjs.org/typical/-/typical-
|
|
436
|
-
"integrity": "sha512-
|
|
457
|
+
"version": "4.0.0",
|
|
458
|
+
"resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz",
|
|
459
|
+
"integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==",
|
|
437
460
|
"license": "MIT",
|
|
438
461
|
"engines": {
|
|
439
|
-
"node": ">=
|
|
462
|
+
"node": ">=8"
|
|
440
463
|
}
|
|
441
464
|
},
|
|
442
465
|
"node_modules/undici-types": {
|
|
443
|
-
"version": "
|
|
444
|
-
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-
|
|
445
|
-
"integrity": "sha512-
|
|
466
|
+
"version": "6.21.0",
|
|
467
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
|
|
468
|
+
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
|
|
446
469
|
"license": "MIT"
|
|
447
470
|
},
|
|
448
471
|
"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.4",
|
|
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,9 +9,9 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@lancedb/lancedb": "0.30.0",
|
|
12
|
-
"apache-arrow": "
|
|
13
|
-
"openai": "6.
|
|
14
|
-
"typebox": "1.
|
|
12
|
+
"apache-arrow": "18.1.0",
|
|
13
|
+
"openai": "6.45.0",
|
|
14
|
+
"typebox": "1.3.3"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@openclaw/plugin-sdk": "workspace:*"
|
|
@@ -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.4"
|
|
30
30
|
},
|
|
31
31
|
"build": {
|
|
32
|
-
"openclawVersion": "2026.7.1-beta.
|
|
32
|
+
"openclawVersion": "2026.7.1-beta.4"
|
|
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.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"openclaw": {
|