@xdarkicex/openclaw-memory-libravdb 1.4.18 → 1.4.19
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 +6 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15,10 +15,13 @@ export function register(api) {
|
|
|
15
15
|
registerMemoryCliMetadata(api);
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const mode = api.registrationMode;
|
|
19
|
+
const isFullMode = mode === "full";
|
|
19
20
|
const cfg = api.pluginConfig;
|
|
20
|
-
//
|
|
21
|
-
|
|
21
|
+
// OpenClaw lazy-loads plugin-owned CLI commands through discovery mode.
|
|
22
|
+
// Provide a runtime there so subcommands attach real handlers, but keep the
|
|
23
|
+
// long-lived memory/context-engine registrations gated to full mode only.
|
|
24
|
+
const runtimeOrNull = (isFullMode || mode === "discovery")
|
|
22
25
|
? createPluginRuntime(cfg, api.logger ?? console)
|
|
23
26
|
: null;
|
|
24
27
|
registerMemoryCli(api, runtimeOrNull, cfg, api.logger ?? console);
|
package/openclaw.plugin.json
CHANGED