@xdarkicex/openclaw-memory-libravdb 1.9.5 → 1.9.7
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.js +14 -10
- package/dist/index.js +16 -10
- package/dist/types.d.ts +2 -0
- package/openclaw.plugin.json +5 -1
- package/package.json +1 -1
package/dist/context-engine.js
CHANGED
|
@@ -2266,16 +2266,20 @@ export function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
2266
2266
|
logger.warn?.(`BeforeTurnKernel failed for session ${sessionId}: ${err instanceof Error ? err.message : String(err)}`);
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2269
|
+
const assembleTimeout = cfg.assembleTimeoutMs ?? 30000;
|
|
2270
|
+
const resp = await Promise.race([
|
|
2271
|
+
client.assembleContextInternal({
|
|
2272
|
+
sessionId,
|
|
2273
|
+
sessionKey: args.sessionKey,
|
|
2274
|
+
userId,
|
|
2275
|
+
prompt: strippedPrompt,
|
|
2276
|
+
messages,
|
|
2277
|
+
tokenBudget: args.tokenBudget,
|
|
2278
|
+
config: buildAssemblyConfig(args.tokenBudget),
|
|
2279
|
+
emitDebug: true,
|
|
2280
|
+
}),
|
|
2281
|
+
new Promise((_, reject) => setTimeout(() => reject(new Error(`AssembleContextInternal timed out after ${assembleTimeout}ms`)), assembleTimeout)),
|
|
2282
|
+
]);
|
|
2279
2283
|
const assembled = normalizeAssembleResult(resp, args.messages);
|
|
2280
2284
|
const continuityContext = await injectContinuityContext({
|
|
2281
2285
|
client,
|
package/dist/index.js
CHANGED
|
@@ -37454,16 +37454,22 @@ function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
37454
37454
|
);
|
|
37455
37455
|
}
|
|
37456
37456
|
}
|
|
37457
|
-
const
|
|
37458
|
-
|
|
37459
|
-
|
|
37460
|
-
|
|
37461
|
-
|
|
37462
|
-
|
|
37463
|
-
|
|
37464
|
-
|
|
37465
|
-
|
|
37466
|
-
|
|
37457
|
+
const assembleTimeout = cfg.assembleTimeoutMs ?? 3e4;
|
|
37458
|
+
const resp = await Promise.race([
|
|
37459
|
+
client.assembleContextInternal({
|
|
37460
|
+
sessionId,
|
|
37461
|
+
sessionKey: args.sessionKey,
|
|
37462
|
+
userId,
|
|
37463
|
+
prompt: strippedPrompt,
|
|
37464
|
+
messages,
|
|
37465
|
+
tokenBudget: args.tokenBudget,
|
|
37466
|
+
config: buildAssemblyConfig(args.tokenBudget),
|
|
37467
|
+
emitDebug: true
|
|
37468
|
+
}),
|
|
37469
|
+
new Promise(
|
|
37470
|
+
(_, reject) => setTimeout(() => reject(new Error(`AssembleContextInternal timed out after ${assembleTimeout}ms`)), assembleTimeout)
|
|
37471
|
+
)
|
|
37472
|
+
]);
|
|
37467
37473
|
const assembled = normalizeAssembleResult(resp, args.messages);
|
|
37468
37474
|
const continuityContext = await injectContinuityContext({
|
|
37469
37475
|
client,
|
package/dist/types.d.ts
CHANGED
|
@@ -133,6 +133,8 @@ export interface PluginConfig {
|
|
|
133
133
|
beforeTurnEnabled?: boolean;
|
|
134
134
|
/** Timeout in milliseconds for the BeforeTurnKernel gRPC call. Default: 5000 */
|
|
135
135
|
beforeTurnTimeoutMs?: number;
|
|
136
|
+
/** Timeout in milliseconds for the AssembleContextInternal gRPC call. Default: 30000 */
|
|
137
|
+
assembleTimeoutMs?: number;
|
|
136
138
|
/** Maximum number of retrieved memories to inject per turn. Default: 5 */
|
|
137
139
|
beforeTurnMaxMemories?: number;
|
|
138
140
|
/** Minimum similarity score (0.0–1.0) for semantic search hits. Default: 0.4 */
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "libravdb-memory",
|
|
3
3
|
"name": "LibraVDB Memory",
|
|
4
4
|
"description": "Persistent vector memory with three-tier hybrid scoring",
|
|
5
|
-
"version": "1.9.
|
|
5
|
+
"version": "1.9.7",
|
|
6
6
|
"kind": [
|
|
7
7
|
"memory",
|
|
8
8
|
"context-engine"
|
|
@@ -181,6 +181,10 @@
|
|
|
181
181
|
"beforeTurnTimeoutMs": {
|
|
182
182
|
"type": "number"
|
|
183
183
|
},
|
|
184
|
+
"assembleTimeoutMs": {
|
|
185
|
+
"type": "number",
|
|
186
|
+
"description": "Timeout in milliseconds for the AssembleContextInternal gRPC call. Default: 30000"
|
|
187
|
+
},
|
|
184
188
|
"beforeTurnMaxMemories": {
|
|
185
189
|
"type": "number"
|
|
186
190
|
},
|