@alfe.ai/openclaw-webhooks 0.0.3 → 0.0.4

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.ts CHANGED
@@ -41,7 +41,7 @@ declare const plugin: {
41
41
  name: string;
42
42
  description: string;
43
43
  version: string;
44
- activate(api: OpenClawPluginApi): Promise<void>;
44
+ activate(api: OpenClawPluginApi): void;
45
45
  deactivate(api: OpenClawPluginApi): void;
46
46
  };
47
47
  //#endregion
package/dist/plugin.js CHANGED
@@ -50,7 +50,7 @@ const plugin = {
50
50
  name: "Alfe Webhooks Plugin",
51
51
  description: "Receive and manage HTTP webhooks from external services",
52
52
  version: "0.1.0",
53
- async activate(api) {
53
+ activate(api) {
54
54
  if (globalThis.__alfeWebhooksPluginActivated) {
55
55
  api.logger.debug("Alfe Webhooks plugin already activated, skipping re-init");
56
56
  return;
@@ -61,11 +61,15 @@ const plugin = {
61
61
  const pluginConfig = (api.config ?? {}).plugins?.entries?.["@alfe.ai/openclaw-webhooks"]?.config ?? {};
62
62
  let alfeConfig = null;
63
63
  try {
64
- alfeConfig = await resolveConfig();
64
+ alfeConfig = resolveConfig();
65
65
  } catch {
66
66
  log.info("Could not resolve Alfe config — daemon IPC and webhooks WS auth unavailable");
67
67
  }
68
- daemonIpcClient = await connectToDaemon(pluginConfig.daemonSocket ?? alfeConfig?.socketPath ?? DEFAULT_SOCKET_PATH, log);
68
+ connectToDaemon(pluginConfig.daemonSocket ?? alfeConfig?.socketPath ?? DEFAULT_SOCKET_PATH, log).then((client) => {
69
+ daemonIpcClient = client;
70
+ }).catch((err) => {
71
+ log.debug(`Daemon connect failed: ${err.message}`);
72
+ });
69
73
  const webhooksWsUrl = pluginConfig.webhooksWsUrl;
70
74
  const apiKey = alfeConfig?.apiKey;
71
75
  if (webhooksWsUrl && apiKey) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw-webhooks",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "OpenClaw webhooks plugin for Alfe — receive and manage external webhooks",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin.js",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "ws": "^8.18.0",
29
- "@alfe.ai/config": "0.0.5",
29
+ "@alfe.ai/config": "0.0.6",
30
30
  "@alfe.ai/webhooks": "^0.0.1"
31
31
  },
32
32
  "license": "UNLICENSED",