@alfe.ai/openclaw-database 0.0.6 → 0.0.8

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/plugin.d.cts CHANGED
@@ -6,6 +6,7 @@ interface PluginApi {
6
6
  error: (...args: unknown[]) => void;
7
7
  debug: (...args: unknown[]) => void;
8
8
  };
9
+ registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
9
10
  registerTool(tool: unknown): void;
10
11
  }
11
12
  declare const plugin: {
package/dist/plugin.d.ts CHANGED
@@ -6,6 +6,7 @@ interface PluginApi {
6
6
  error: (...args: unknown[]) => void;
7
7
  debug: (...args: unknown[]) => void;
8
8
  };
9
+ registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
9
10
  registerTool(tool: unknown): void;
10
11
  }
11
12
  declare const plugin: {
package/dist/plugin2.cjs CHANGED
@@ -484,12 +484,12 @@ function reportAudit(apiUrl, apiKey, entry) {
484
484
  }
485
485
  const plugin = {
486
486
  id: "@alfe.ai/openclaw-database",
487
- name: "Database",
487
+ name: "Alfe Database",
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");
491
+ if (api.registrationMode === "cli-metadata") {
492
+ log.debug("CLI metadata mode — skipping database init");
493
493
  return;
494
494
  }
495
495
  log.info("Database plugin activating...");
package/dist/plugin2.js CHANGED
@@ -484,12 +484,12 @@ function reportAudit(apiUrl, apiKey, entry) {
484
484
  }
485
485
  const plugin = {
486
486
  id: "@alfe.ai/openclaw-database",
487
- name: "Database",
487
+ name: "Alfe Database",
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");
491
+ if (api.registrationMode === "cli-metadata") {
492
+ log.debug("CLI metadata mode — skipping database init");
493
493
  return;
494
494
  }
495
495
  log.info("Database plugin activating...");
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "@alfe.ai/openclaw-database",
3
- "name": "Database",
3
+ "name": "Alfe Database",
4
4
  "version": "0.0.1",
5
5
  "description": "MongoDB database access for agents — query, insert, update, delete, and manage collections",
6
6
  "entry": "./dist/plugin.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-database",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
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": {