@openclaw/memory-lancedb 2026.9.4 → 2026.9.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/assets/activity/memory_forget.svg +4 -0
- package/assets/activity/memory_store.svg +4 -0
- package/assets/activity.svg +4 -0
- package/assets/icon.png +0 -0
- package/dist/{dist-BsS9bYPg.js → .setup/dist-DQC6YpsS.mjs} +953 -362
- package/dist/doctor-contract-api.js +2 -2
- package/dist/embeddings.js +7 -1
- package/dist/index.js +2 -0
- package/dist/lancedb-runtime.js +17 -27
- package/openclaw.plugin.json +33 -1
- package/package.json +19 -15
- /package/dist/{rolldown-runtime-BMI-E3GI.js → .setup/rolldown-runtime-BMI-E3GI.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as __toESM } from "
|
|
1
|
+
import { o as __toESM } from "./.setup/rolldown-runtime-BMI-E3GI.mjs";
|
|
2
2
|
import { MEMORY_AGENT_ID_COLUMN, MEMORY_TABLE_NAME, hasAgentScopeColumn, memoryAgentPredicate, quoteLanceSqlString } from "./lancedb-schema.js";
|
|
3
3
|
import { resolveDefaultAgentId } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
4
4
|
import { normalizeAgentId } from "openclaw/plugin-sdk/routing";
|
|
@@ -81,7 +81,7 @@ async function openMemoryTable(params) {
|
|
|
81
81
|
table: null,
|
|
82
82
|
dbPath
|
|
83
83
|
};
|
|
84
|
-
const lancedb = await import("
|
|
84
|
+
const lancedb = await import("./.setup/dist-DQC6YpsS.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1));
|
|
85
85
|
const storageOptions = resolveStorageOptions(params.config, params.env);
|
|
86
86
|
const connection = await lancedb.connect(dbPath, storageOptions ? { storageOptions } : {});
|
|
87
87
|
return {
|
package/dist/embeddings.js
CHANGED
|
@@ -314,10 +314,16 @@ var MemoryRecallEmbeddingError = class extends Error {
|
|
|
314
314
|
}
|
|
315
315
|
};
|
|
316
316
|
function createEmbeddings(api) {
|
|
317
|
-
|
|
317
|
+
let provider = new ProviderAdapterEmbeddings(api);
|
|
318
318
|
let direct;
|
|
319
319
|
let closed = false;
|
|
320
320
|
return {
|
|
321
|
+
start() {
|
|
322
|
+
if (closed) {
|
|
323
|
+
provider = new ProviderAdapterEmbeddings(api);
|
|
324
|
+
closed = false;
|
|
325
|
+
}
|
|
326
|
+
},
|
|
321
327
|
async embed(agentId, text, embeddingConfig, timeoutMs) {
|
|
322
328
|
if (closed) throw new Error("memory-lancedb embeddings are closed");
|
|
323
329
|
const embedding = { ...embeddingConfig };
|
package/dist/index.js
CHANGED
|
@@ -407,6 +407,8 @@ var memory_lancedb_default = definePluginEntry({
|
|
|
407
407
|
api.registerService({
|
|
408
408
|
id: "memory-lancedb",
|
|
409
409
|
start: () => {
|
|
410
|
+
embeddings.start();
|
|
411
|
+
captureStopped = false;
|
|
410
412
|
api.logger.info(`memory-lancedb: initialized (db: ${resolvedDbPath}, model: ${cfg.embedding.model})`);
|
|
411
413
|
},
|
|
412
414
|
stop: async () => {
|
package/dist/lancedb-runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as __toESM } from "
|
|
1
|
+
import { o as __toESM } from "./.setup/rolldown-runtime-BMI-E3GI.mjs";
|
|
2
2
|
//#region extensions/memory-lancedb/lancedb-runtime.ts
|
|
3
3
|
function buildLoadFailureMessage(error) {
|
|
4
4
|
return [
|
|
@@ -17,32 +17,22 @@ function buildUnsupportedNativePlatformMessage(params) {
|
|
|
17
17
|
"Disable memory-lancedb or switch to a supported memory backend/platform."
|
|
18
18
|
].join(" ");
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}), { cause: error });
|
|
37
|
-
throw new Error(buildLoadFailureMessage(error), { cause: error });
|
|
38
|
-
});
|
|
39
|
-
return await loadPromise;
|
|
40
|
-
} };
|
|
41
|
-
}
|
|
42
|
-
if (process.env.VITEST === "true") Reflect.set(globalThis, Symbol.for("openclaw.memoryLanceDbRuntimeTestApi"), { createRuntimeLoader: createLanceDbRuntimeLoader });
|
|
43
|
-
const defaultLoader = createLanceDbRuntimeLoader();
|
|
44
|
-
async function loadLanceDbModule(logger) {
|
|
45
|
-
return await defaultLoader.load(logger);
|
|
20
|
+
const platform = process.platform;
|
|
21
|
+
const arch = process.arch;
|
|
22
|
+
let loadPromise = null;
|
|
23
|
+
async function loadLanceDbModule() {
|
|
24
|
+
if (!loadPromise) loadPromise = import("./.setup/dist-DQC6YpsS.mjs").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).catch((error) => {
|
|
25
|
+
loadPromise = null;
|
|
26
|
+
if (isUnsupportedNativePlatform({
|
|
27
|
+
platform,
|
|
28
|
+
arch
|
|
29
|
+
})) throw new Error(buildUnsupportedNativePlatformMessage({
|
|
30
|
+
platform,
|
|
31
|
+
arch
|
|
32
|
+
}), { cause: error });
|
|
33
|
+
throw new Error(buildLoadFailureMessage(error), { cause: error });
|
|
34
|
+
});
|
|
35
|
+
return await loadPromise;
|
|
46
36
|
}
|
|
47
37
|
//#endregion
|
|
48
38
|
export { loadLanceDbModule };
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "memory-lancedb",
|
|
3
|
-
"categories": ["memory"
|
|
3
|
+
"categories": ["memory"],
|
|
4
4
|
"doctorContract": {
|
|
5
5
|
"stateMigrations": [
|
|
6
6
|
{ "id": "memory-lancedb-agent-scope" },
|
|
@@ -99,6 +99,38 @@
|
|
|
99
99
|
"help": "Storage configuration options (access_key, secret_key, endpoint, etc.); supports ${ENV_VAR} values"
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
+
"configGroups": [
|
|
103
|
+
{
|
|
104
|
+
"id": "embeddings",
|
|
105
|
+
"title": "Embeddings",
|
|
106
|
+
"order": 10,
|
|
107
|
+
"properties": ["embedding"]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "storage",
|
|
111
|
+
"title": "Storage",
|
|
112
|
+
"order": 20,
|
|
113
|
+
"properties": ["dbPath", "storageOptions"]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"id": "memory-capture",
|
|
117
|
+
"title": "Memory capture",
|
|
118
|
+
"order": 30,
|
|
119
|
+
"properties": ["autoCapture", "captureMaxChars", "customTriggers"]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": "memory-recall",
|
|
123
|
+
"title": "Memory recall",
|
|
124
|
+
"order": 40,
|
|
125
|
+
"properties": ["autoRecall", "recallMaxChars"]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "dreaming",
|
|
129
|
+
"title": "Dreaming",
|
|
130
|
+
"order": 50,
|
|
131
|
+
"properties": ["dreaming"]
|
|
132
|
+
}
|
|
133
|
+
],
|
|
102
134
|
"configSchema": {
|
|
103
135
|
"type": "object",
|
|
104
136
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/memory-lancedb",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.5",
|
|
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,36 +9,37 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"apache-arrow": "18.1.0",
|
|
12
|
-
"openai": "7.
|
|
13
|
-
"typebox": "1.3.
|
|
12
|
+
"openai": "7.12.1",
|
|
13
|
+
"typebox": "1.3.30"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@lancedb/lancedb": "0.
|
|
16
|
+
"@lancedb/lancedb": "0.38.0",
|
|
17
17
|
"@openclaw/plugin-sdk": "workspace:*"
|
|
18
18
|
},
|
|
19
19
|
"optionalDependencies": {
|
|
20
|
-
"@lancedb/lancedb-darwin-arm64": "0.
|
|
21
|
-
"@lancedb/lancedb-linux-arm64-gnu": "0.
|
|
22
|
-
"@lancedb/lancedb-linux-arm64-musl": "0.
|
|
23
|
-
"@lancedb/lancedb-linux-x64-gnu": "0.
|
|
24
|
-
"@lancedb/lancedb-linux-x64-musl": "0.
|
|
25
|
-
"@lancedb/lancedb-win32-arm64-msvc": "0.
|
|
26
|
-
"@lancedb/lancedb-win32-x64-msvc": "0.
|
|
20
|
+
"@lancedb/lancedb-darwin-arm64": "0.38.0",
|
|
21
|
+
"@lancedb/lancedb-linux-arm64-gnu": "0.38.0",
|
|
22
|
+
"@lancedb/lancedb-linux-arm64-musl": "0.38.0",
|
|
23
|
+
"@lancedb/lancedb-linux-x64-gnu": "0.38.0",
|
|
24
|
+
"@lancedb/lancedb-linux-x64-musl": "0.38.0",
|
|
25
|
+
"@lancedb/lancedb-win32-arm64-msvc": "0.38.0",
|
|
26
|
+
"@lancedb/lancedb-win32-x64-msvc": "0.38.0"
|
|
27
27
|
},
|
|
28
28
|
"openclaw": {
|
|
29
29
|
"extensions": [
|
|
30
30
|
"./index.ts"
|
|
31
31
|
],
|
|
32
32
|
"install": {
|
|
33
|
+
"clawhubSpec": "clawhub:@openclaw/memory-lancedb",
|
|
33
34
|
"npmSpec": "@openclaw/memory-lancedb",
|
|
34
35
|
"defaultChoice": "npm",
|
|
35
36
|
"minHostVersion": ">=2026.5.31"
|
|
36
37
|
},
|
|
37
38
|
"compat": {
|
|
38
|
-
"pluginApi": ">=2026.9.
|
|
39
|
+
"pluginApi": ">=2026.9.5"
|
|
39
40
|
},
|
|
40
41
|
"build": {
|
|
41
|
-
"openclawVersion": "2026.9.
|
|
42
|
+
"openclawVersion": "2026.9.5"
|
|
42
43
|
},
|
|
43
44
|
"release": {
|
|
44
45
|
"bundleRuntimeDependencies": false,
|
|
@@ -52,10 +53,13 @@
|
|
|
52
53
|
"files": [
|
|
53
54
|
"dist/**",
|
|
54
55
|
"openclaw.plugin.json",
|
|
55
|
-
"README.md"
|
|
56
|
+
"README.md",
|
|
57
|
+
"assets/icon.png",
|
|
58
|
+
"assets/activity.svg",
|
|
59
|
+
"assets/activity/*.svg"
|
|
56
60
|
],
|
|
57
61
|
"peerDependencies": {
|
|
58
|
-
"openclaw": ">=2026.9.
|
|
62
|
+
"openclaw": ">=2026.9.5"
|
|
59
63
|
},
|
|
60
64
|
"peerDependenciesMeta": {
|
|
61
65
|
"openclaw": {
|
|
File without changes
|