@xdarkicex/openclaw-memory-libravdb 1.8.5 → 1.8.6
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/README.md +1 -0
- package/dist/context-engine.d.ts +5 -1
- package/dist/context-engine.js +5 -0
- package/dist/index.js +6 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -480,3 +480,4 @@ service checkout. For the full source workflow, read [Development](./docs/develo
|
|
|
480
480
|
- default data path: `$HOME/.libravdbd/data_nomic-embed-text-v1_5.libravdb`
|
|
481
481
|
- default macOS/Linux endpoint: `unix:$HOME/.libravdbd/run/libravdb.sock`
|
|
482
482
|
- default Windows endpoint: `tcp:127.0.0.1:37421`
|
|
483
|
+
|
package/dist/context-engine.d.ts
CHANGED
|
@@ -124,7 +124,11 @@ export declare function buildContextEngineFactory(runtime: PluginRuntime, cfg: P
|
|
|
124
124
|
isHeartbeat?: boolean;
|
|
125
125
|
tokenBudget?: number;
|
|
126
126
|
runtimeContext?: Record<string, unknown>;
|
|
127
|
-
}): Promise<import("@xdarkicex/libravdb-contracts").AfterTurnKernelResponse
|
|
127
|
+
}): Promise<import("@xdarkicex/libravdb-contracts").AfterTurnKernelResponse | {
|
|
128
|
+
ok: boolean;
|
|
129
|
+
skipped: boolean;
|
|
130
|
+
reason: string;
|
|
131
|
+
}>;
|
|
128
132
|
prepareSubagentSpawn(params: {
|
|
129
133
|
parentSessionKey: string;
|
|
130
134
|
childSessionKey: string;
|
package/dist/context-engine.js
CHANGED
|
@@ -1974,6 +1974,11 @@ export function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
1974
1974
|
`overlapIndex=${overlapIndex} startIndex=${startIndex} ` +
|
|
1975
1975
|
`prePromptMessageCount=${args.prePromptMessageCount ?? "unknown"} ` +
|
|
1976
1976
|
`heartbeat=${args.isHeartbeat ?? false}`);
|
|
1977
|
+
if (newMessages.length === 0) {
|
|
1978
|
+
logger.info?.(`LibraVDB afterTurn skipped sessionId=${sessionId} reason=no-new-messages ` +
|
|
1979
|
+
`messageCount=${messages.length} overlapIndex=${overlapIndex}`);
|
|
1980
|
+
return { ok: true, skipped: true, reason: "no-new-messages" };
|
|
1981
|
+
}
|
|
1977
1982
|
try {
|
|
1978
1983
|
const client = await runtime.getClient();
|
|
1979
1984
|
const currentTokenCount = normalizeCurrentTokenCount(typeof args.runtimeContext?.currentTokenCount === "number"
|
package/dist/index.js
CHANGED
|
@@ -28501,6 +28501,12 @@ function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
28501
28501
|
logger.info?.(
|
|
28502
28502
|
`LibraVDB afterTurn sessionId=${sessionId} userId=${userId} messageCount=${messages.length} newMessages=${newMessages.length} overlapIndex=${overlapIndex} startIndex=${startIndex} prePromptMessageCount=${args.prePromptMessageCount ?? "unknown"} heartbeat=${args.isHeartbeat ?? false}`
|
|
28503
28503
|
);
|
|
28504
|
+
if (newMessages.length === 0) {
|
|
28505
|
+
logger.info?.(
|
|
28506
|
+
`LibraVDB afterTurn skipped sessionId=${sessionId} reason=no-new-messages messageCount=${messages.length} overlapIndex=${overlapIndex}`
|
|
28507
|
+
);
|
|
28508
|
+
return { ok: true, skipped: true, reason: "no-new-messages" };
|
|
28509
|
+
}
|
|
28504
28510
|
try {
|
|
28505
28511
|
const client = await runtime.getClient();
|
|
28506
28512
|
const currentTokenCount = normalizeCurrentTokenCount(
|
package/openclaw.plugin.json
CHANGED