@alfe.ai/openclaw-database 0.0.7 → 0.0.9

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,14 +484,11 @@ 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");
493
- return;
494
- }
491
+ if (api.registrationMode && api.registrationMode !== "full") return;
495
492
  log.info("Database plugin activating...");
496
493
  let apiUrl;
497
494
  let apiKey;
package/dist/plugin2.js CHANGED
@@ -484,14 +484,11 @@ 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");
493
- return;
494
- }
491
+ if (api.registrationMode && api.registrationMode !== "full") return;
495
492
  log.info("Database plugin activating...");
496
493
  let apiUrl;
497
494
  let apiKey;
@@ -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.7",
3
+ "version": "0.0.9",
4
4
  "description": "OpenClaw database plugin — MongoDB access for agents via MCP tools",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",