@alfe.ai/openclaw-database 0.0.5 → 0.0.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/dist/plugin2.cjs +4 -0
- package/dist/plugin2.js +4 -0
- package/package.json +1 -1
package/dist/plugin2.cjs
CHANGED
|
@@ -488,6 +488,10 @@ const plugin = {
|
|
|
488
488
|
version: "0.0.1",
|
|
489
489
|
activate(api) {
|
|
490
490
|
const log = api.logger;
|
|
491
|
+
if (!("runtime" in api)) {
|
|
492
|
+
log.debug("Management command context — skipping database init");
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
491
495
|
log.info("Database plugin activating...");
|
|
492
496
|
let apiUrl;
|
|
493
497
|
let apiKey;
|
package/dist/plugin2.js
CHANGED
|
@@ -488,6 +488,10 @@ const plugin = {
|
|
|
488
488
|
version: "0.0.1",
|
|
489
489
|
activate(api) {
|
|
490
490
|
const log = api.logger;
|
|
491
|
+
if (!("runtime" in api)) {
|
|
492
|
+
log.debug("Management command context — skipping database init");
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
491
495
|
log.info("Database plugin activating...");
|
|
492
496
|
let apiUrl;
|
|
493
497
|
let apiKey;
|