@alfe.ai/openclaw-database 0.0.5 → 0.0.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/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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-database",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "OpenClaw database plugin — MongoDB access for agents via MCP tools",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "mongodb": "^6.12.0",
31
- "@alfe.ai/config": "0.0.7"
31
+ "@alfe.ai/config": "0.0.8"
32
32
  },
33
33
  "license": "UNLICENSED",
34
34
  "scripts": {