@xdarkicex/openclaw-memory-libravdb 1.4.60 → 1.4.61
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 +17 -5
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39911,6 +39911,21 @@ function register(api) {
|
|
|
39911
39911
|
logger.info?.(
|
|
39912
39912
|
`LibraVDB registering mode=${registrationMode} lightweight=${isLightweight} discovery=${isDiscovery} userId=${cfg.userId ?? "(auto)"} crossSessionRecall=${cfg.crossSessionRecall !== false}`
|
|
39913
39913
|
);
|
|
39914
|
+
const memSlot = api.config?.plugins?.slots?.memory;
|
|
39915
|
+
if (!isLightweight && !isDiscovery) {
|
|
39916
|
+
if (memSlot && memSlot !== MEMORY_ID && memSlot !== "none") {
|
|
39917
|
+
throw new Error(
|
|
39918
|
+
`[libravdb-memory] plugins.slots.memory is "${memSlot}". Set it to "libravdb-memory" before enabling this plugin.`
|
|
39919
|
+
);
|
|
39920
|
+
}
|
|
39921
|
+
if (memSlot === "none") {
|
|
39922
|
+
logger.info?.(
|
|
39923
|
+
'[libravdb-memory] plugins.slots.memory is "none"; skipping memory capability, context engine, embedding providers, services, and hooks.'
|
|
39924
|
+
);
|
|
39925
|
+
registerMemoryCli(api, null, cfg, logger);
|
|
39926
|
+
return;
|
|
39927
|
+
}
|
|
39928
|
+
}
|
|
39914
39929
|
const runtimeOrNull = isLightweight ? null : createPluginRuntime(cfg, logger);
|
|
39915
39930
|
registerMemoryCli(api, runtimeOrNull, cfg, logger);
|
|
39916
39931
|
if (isLightweight || isDiscovery) {
|
|
@@ -39927,11 +39942,8 @@ function register(api) {
|
|
|
39927
39942
|
}
|
|
39928
39943
|
const runtime = runtimeOrNull;
|
|
39929
39944
|
if (!runtime) return;
|
|
39930
|
-
|
|
39931
|
-
|
|
39932
|
-
throw new Error(
|
|
39933
|
-
`[libravdb-memory] plugins.slots.memory is "${memSlot}". Set it to "libravdb-memory" before enabling this plugin.`
|
|
39934
|
-
);
|
|
39945
|
+
if (!memSlot) {
|
|
39946
|
+
logger.warn?.('[libravdb-memory] plugins.slots.memory is unset; set it to "libravdb-memory" for memory to work.');
|
|
39935
39947
|
}
|
|
39936
39948
|
api.registerMemoryCapability(MEMORY_ID, {
|
|
39937
39949
|
promptBuilder: buildMemoryPromptSection(runtime.getRpc, cfg),
|
package/openclaw.plugin.json
CHANGED