@alfe.ai/openclaw-webhooks 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.cjs CHANGED
@@ -52,8 +52,8 @@ const plugin = {
52
52
  version: "0.1.0",
53
53
  activate(api) {
54
54
  const log = api.logger;
55
- if (!("runtime" in api)) {
56
- log.debug("Management command context — skipping webhooks resource init");
55
+ if (api.registrationMode === "cli-metadata") {
56
+ log.debug("CLI metadata mode — skipping webhooks resource init");
57
57
  return;
58
58
  }
59
59
  const alreadyActivated = globalThis.__alfeWebhooksPluginActivated === true;
package/dist/plugin.d.cts CHANGED
@@ -28,6 +28,7 @@ interface OpenClawConfig {
28
28
  }
29
29
  interface OpenClawPluginApi {
30
30
  logger: Logger;
31
+ registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
31
32
  config?: OpenClawConfig;
32
33
  registerGatewayMethod?(name: string, handler: (...args: unknown[]) => Promise<unknown>): void;
33
34
  on(event: string, handler: (...args: unknown[]) => void | Promise<void>, options?: {
package/dist/plugin.d.ts CHANGED
@@ -28,6 +28,7 @@ interface OpenClawConfig {
28
28
  }
29
29
  interface OpenClawPluginApi {
30
30
  logger: Logger;
31
+ registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
31
32
  config?: OpenClawConfig;
32
33
  registerGatewayMethod?(name: string, handler: (...args: unknown[]) => Promise<unknown>): void;
33
34
  on(event: string, handler: (...args: unknown[]) => void | Promise<void>, options?: {
package/dist/plugin.js CHANGED
@@ -52,8 +52,8 @@ const plugin = {
52
52
  version: "0.1.0",
53
53
  activate(api) {
54
54
  const log = api.logger;
55
- if (!("runtime" in api)) {
56
- log.debug("Management command context — skipping webhooks resource init");
55
+ if (api.registrationMode === "cli-metadata") {
56
+ log.debug("CLI metadata mode — skipping webhooks resource init");
57
57
  return;
58
58
  }
59
59
  const alreadyActivated = globalThis.__alfeWebhooksPluginActivated === true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-webhooks",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "OpenClaw webhooks plugin for Alfe — receive and manage external webhooks",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "ws": "^8.18.0",
31
- "@alfe.ai/config": "0.0.7",
31
+ "@alfe.ai/config": "0.0.8",
32
32
  "@alfe.ai/webhooks": "^0.0.2"
33
33
  },
34
34
  "license": "UNLICENSED",