@alfe.ai/openclaw-webhooks 0.0.6 → 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/plugin.cjs CHANGED
@@ -52,6 +52,10 @@ 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");
57
+ return;
58
+ }
55
59
  const alreadyActivated = globalThis.__alfeWebhooksPluginActivated === true;
56
60
  globalThis.__alfeWebhooksPluginActivated = true;
57
61
  if (alreadyActivated) log.debug("Alfe Webhooks plugin re-registering gateway methods");
package/dist/plugin.js CHANGED
@@ -52,6 +52,10 @@ 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");
57
+ return;
58
+ }
55
59
  const alreadyActivated = globalThis.__alfeWebhooksPluginActivated === true;
56
60
  globalThis.__alfeWebhooksPluginActivated = true;
57
61
  if (alreadyActivated) log.debug("Alfe Webhooks plugin re-registering gateway methods");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-webhooks",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "OpenClaw webhooks plugin for Alfe — receive and manage external webhooks",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",