@alfe.ai/openclaw-webhooks 0.0.12 → 0.0.14

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
@@ -177,7 +177,7 @@ const plugin = {
177
177
  });
178
178
  log.info("Registered gateway RPC methods: webhooks.create, webhooks.list, webhooks.delete, webhooks.rotate, webhooks.deliveries");
179
179
  }
180
- if (api.registerService) api.registerService({
180
+ api.registerService({
181
181
  id: "alfe-webhooks-relay",
182
182
  start: () => {
183
183
  startWebhooksService();
@@ -186,7 +186,6 @@ const plugin = {
186
186
  stopWebhooksService();
187
187
  }
188
188
  });
189
- else if (!(globalThis.__alfeWebhooksPluginActivated === true)) startWebhooksService();
190
189
  log.info("Alfe Webhooks plugin activated");
191
190
  },
192
191
  deactivate(api) {
package/dist/plugin.d.cts CHANGED
@@ -37,7 +37,7 @@ interface OpenClawPluginApi {
37
37
  registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
38
38
  config?: OpenClawConfig;
39
39
  registerGatewayMethod?(name: string, handler: (...args: unknown[]) => Promise<unknown>): void;
40
- registerService?(service: {
40
+ registerService(service: {
41
41
  id: string;
42
42
  start: (ctx: PluginServiceContext) => void | Promise<void>;
43
43
  stop?: (ctx: PluginServiceContext) => void | Promise<void>;
package/dist/plugin.d.ts CHANGED
@@ -37,7 +37,7 @@ interface OpenClawPluginApi {
37
37
  registrationMode?: 'full' | 'setup-only' | 'setup-runtime' | 'cli-metadata';
38
38
  config?: OpenClawConfig;
39
39
  registerGatewayMethod?(name: string, handler: (...args: unknown[]) => Promise<unknown>): void;
40
- registerService?(service: {
40
+ registerService(service: {
41
41
  id: string;
42
42
  start: (ctx: PluginServiceContext) => void | Promise<void>;
43
43
  stop?: (ctx: PluginServiceContext) => void | Promise<void>;
package/dist/plugin.js CHANGED
@@ -178,7 +178,7 @@ const plugin = {
178
178
  });
179
179
  log.info("Registered gateway RPC methods: webhooks.create, webhooks.list, webhooks.delete, webhooks.rotate, webhooks.deliveries");
180
180
  }
181
- if (api.registerService) api.registerService({
181
+ api.registerService({
182
182
  id: "alfe-webhooks-relay",
183
183
  start: () => {
184
184
  startWebhooksService();
@@ -187,7 +187,6 @@ const plugin = {
187
187
  stopWebhooksService();
188
188
  }
189
189
  });
190
- else if (!(globalThis.__alfeWebhooksPluginActivated === true)) startWebhooksService();
191
190
  log.info("Alfe Webhooks plugin activated");
192
191
  },
193
192
  deactivate(api) {
@@ -3,6 +3,7 @@
3
3
  "name": "Webhooks",
4
4
  "description": "Receive and manage external webhooks",
5
5
  "entry": "./dist/plugin.js",
6
+ "activation": { "onStartup": true },
6
7
  "configSchema": {
7
8
  "type": "object",
8
9
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-webhooks",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "OpenClaw webhooks plugin for Alfe — receive and manage external webhooks",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",
@@ -31,6 +31,14 @@
31
31
  "@alfe.ai/config": "0.0.8",
32
32
  "@alfe.ai/webhooks": "^0.0.2"
33
33
  },
34
+ "peerDependencies": {
35
+ "openclaw": ">=2026.3.0"
36
+ },
37
+ "peerDependenciesMeta": {
38
+ "openclaw": {
39
+ "optional": true
40
+ }
41
+ },
34
42
  "license": "UNLICENSED",
35
43
  "scripts": {
36
44
  "build": "tsdown",