@openclaw/memory-lancedb 2026.7.2-beta.3 → 2026.7.2-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 +13 -3
- package/npm-shrinkwrap.json +10 -10
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { MESSAGE_TOOL_DELIVERY_HINTS } from "openclaw/plugin-sdk/message-tool-de
|
|
|
11
11
|
import { parseStrictPositiveInteger, resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
|
|
12
12
|
import { readFiniteNumberParam, readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
|
|
13
13
|
import { resolveLivePluginConfigObject } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
14
|
-
import { normalizeAgentId } from "openclaw/plugin-sdk/routing";
|
|
14
|
+
import { isIncognitoSessionKey, normalizeAgentId } from "openclaw/plugin-sdk/routing";
|
|
15
15
|
import { ensureGlobalUndiciEnvProxyDispatcher } from "openclaw/plugin-sdk/runtime-env";
|
|
16
16
|
import { asOptionalRecord, normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
17
17
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
@@ -866,7 +866,7 @@ var memory_lancedb_default = definePluginEntry({
|
|
|
866
866
|
const resolveEnabledAgentId = (rawAgentId, runtimeConfig = resolveRuntimeConfig()) => {
|
|
867
867
|
if (!rawAgentId?.trim()) return;
|
|
868
868
|
const agentId = normalizeAgentId(rawAgentId);
|
|
869
|
-
return (resolveAgentConfig(runtimeConfig, agentId)?.
|
|
869
|
+
return (resolveAgentConfig(runtimeConfig, agentId)?.memory?.search)?.enabled ?? runtimeConfig.memory?.search?.enabled ?? true ? agentId : void 0;
|
|
870
870
|
};
|
|
871
871
|
const resolveCliAgentId = (rawAgentId) => {
|
|
872
872
|
if (typeof rawAgentId === "string" && rawAgentId.trim()) return normalizeAgentId(rawAgentId);
|
|
@@ -1008,6 +1008,16 @@ var memory_lancedb_default = definePluginEntry({
|
|
|
1008
1008
|
category: Type.Optional(Type.Enum(MEMORY_CATEGORIES, { type: "string" }))
|
|
1009
1009
|
}),
|
|
1010
1010
|
async execute(_toolCallId, params) {
|
|
1011
|
+
if (isIncognitoSessionKey(ctx.sessionKey)) return {
|
|
1012
|
+
content: [{
|
|
1013
|
+
type: "text",
|
|
1014
|
+
text: "Memory was not stored because this is an incognito session."
|
|
1015
|
+
}],
|
|
1016
|
+
details: {
|
|
1017
|
+
action: "rejected",
|
|
1018
|
+
reason: "incognito_session"
|
|
1019
|
+
}
|
|
1020
|
+
};
|
|
1011
1021
|
const { text, category = "other" } = params;
|
|
1012
1022
|
const importance = readFiniteNumberParam(params, "importance", {
|
|
1013
1023
|
min: 0,
|
|
@@ -1229,7 +1239,7 @@ var memory_lancedb_default = definePluginEntry({
|
|
|
1229
1239
|
});
|
|
1230
1240
|
api.on("agent_end", async (event, ctx) => {
|
|
1231
1241
|
const currentCfg = resolveCurrentHookConfig();
|
|
1232
|
-
if (!currentCfg.autoCapture) return;
|
|
1242
|
+
if (!currentCfg.autoCapture || isIncognitoSessionKey(ctx.sessionKey)) return;
|
|
1233
1243
|
const agentId = resolveEnabledAgentId(ctx.agentId);
|
|
1234
1244
|
if (!agentId) return;
|
|
1235
1245
|
if (!event.success || !event.messages || event.messages.length === 0) return;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/memory-lancedb",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-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.2-beta.
|
|
9
|
+
"version": "2026.7.2-beta.4",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@lancedb/lancedb": "0.30.0",
|
|
12
12
|
"apache-arrow": "18.1.0",
|
|
13
|
-
"openai": "6.
|
|
14
|
-
"typebox": "1.3.
|
|
13
|
+
"openai": "6.48.0",
|
|
14
|
+
"typebox": "1.3.6"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"node_modules/@lancedb/lancedb": {
|
|
@@ -372,9 +372,9 @@
|
|
|
372
372
|
"license": "MIT"
|
|
373
373
|
},
|
|
374
374
|
"node_modules/openai": {
|
|
375
|
-
"version": "6.
|
|
376
|
-
"resolved": "https://registry.npmjs.org/openai/-/openai-6.
|
|
377
|
-
"integrity": "sha512-
|
|
375
|
+
"version": "6.48.0",
|
|
376
|
+
"resolved": "https://registry.npmjs.org/openai/-/openai-6.48.0.tgz",
|
|
377
|
+
"integrity": "sha512-KhVp+FyV50QrXNextvL9hIU5l6ox5HYuKQjGVk7lIqprgJol90+dQXWONV6S1lRWsKA1bXjrow8RsUT14M1hNA==",
|
|
378
378
|
"license": "Apache-2.0",
|
|
379
379
|
"peerDependencies": {
|
|
380
380
|
"@aws-sdk/credential-provider-node": ">=3.972.0 <4",
|
|
@@ -448,9 +448,9 @@
|
|
|
448
448
|
"license": "0BSD"
|
|
449
449
|
},
|
|
450
450
|
"node_modules/typebox": {
|
|
451
|
-
"version": "1.3.
|
|
452
|
-
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.
|
|
453
|
-
"integrity": "sha512-
|
|
451
|
+
"version": "1.3.6",
|
|
452
|
+
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.6.tgz",
|
|
453
|
+
"integrity": "sha512-Sc8RA0NCMEFmApHNU9ZMzqcpQj46She44J8ffpLM/bdhLNUZKq7DJumcLcsFx1gRmDfQPgCgOmFFJ7rcnfWNyA==",
|
|
454
454
|
"license": "MIT"
|
|
455
455
|
},
|
|
456
456
|
"node_modules/typical": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/memory-lancedb",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-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",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@lancedb/lancedb": "0.30.0",
|
|
12
12
|
"apache-arrow": "18.1.0",
|
|
13
|
-
"openai": "6.
|
|
14
|
-
"typebox": "1.3.
|
|
13
|
+
"openai": "6.48.0",
|
|
14
|
+
"typebox": "1.3.6"
|
|
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.2-beta.
|
|
29
|
+
"pluginApi": ">=2026.7.2-beta.4"
|
|
30
30
|
},
|
|
31
31
|
"build": {
|
|
32
|
-
"openclawVersion": "2026.7.2-beta.
|
|
32
|
+
"openclawVersion": "2026.7.2-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.2-beta.
|
|
50
|
+
"openclaw": ">=2026.7.2-beta.4"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"openclaw": {
|