@alfe.ai/openclaw 0.0.40 → 0.0.41

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/index.cjs CHANGED
@@ -4027,6 +4027,7 @@ var OpenClawGatewayAdapter = class extends BaseAgentClient {
4027
4027
  if (!this.lastTick) return;
4028
4028
  if (Date.now() - this.lastTick > 6e4) this.closeConnection(4e3, "tick timeout");
4029
4029
  }, 3e4);
4030
+ this.tickTimer.unref();
4030
4031
  }
4031
4032
  /** Parse the standard agent response format into plain text. */
4032
4033
  static parseAgentResponse(response) {
package/dist/index.js CHANGED
@@ -4026,6 +4026,7 @@ var OpenClawGatewayAdapter = class extends BaseAgentClient {
4026
4026
  if (!this.lastTick) return;
4027
4027
  if (Date.now() - this.lastTick > 6e4) this.closeConnection(4e3, "tick timeout");
4028
4028
  }, 3e4);
4029
+ this.tickTimer.unref();
4029
4030
  }
4030
4031
  /** Parse the standard agent response format into plain text. */
4031
4032
  static parseAgentResponse(response) {
package/dist/plugin.d.cts CHANGED
@@ -32,7 +32,7 @@ interface PluginApi {
32
32
  };
33
33
  };
34
34
  registerTool(tool: ToolDef): void;
35
- registerService?(service: {
35
+ registerService(service: {
36
36
  id: string;
37
37
  start: (ctx: PluginServiceContext) => void | Promise<void>;
38
38
  stop?: (ctx: PluginServiceContext) => void | Promise<void>;
package/dist/plugin.d.ts CHANGED
@@ -32,7 +32,7 @@ interface PluginApi {
32
32
  };
33
33
  };
34
34
  registerTool(tool: ToolDef): void;
35
- registerService?(service: {
35
+ registerService(service: {
36
36
  id: string;
37
37
  start: (ctx: PluginServiceContext) => void | Promise<void>;
38
38
  stop?: (ctx: PluginServiceContext) => void | Promise<void>;
package/dist/plugin2.cjs CHANGED
@@ -3029,6 +3029,7 @@ var IPCClient = class extends node_events.EventEmitter {
3029
3029
  this.reconnectTimer = setTimeout(() => {
3030
3030
  this.doConnect();
3031
3031
  }, delay);
3032
+ this.reconnectTimer.unref();
3032
3033
  }
3033
3034
  clearReconnectTimer() {
3034
3035
  if (this.reconnectTimer) {
@@ -3263,7 +3264,7 @@ const plugin = {
3263
3264
  globalThis.__alfeOpenclawPluginActivated = false;
3264
3265
  log.info("Alfe OpenClaw Plugin deactivated");
3265
3266
  };
3266
- if (api.registerService) api.registerService({
3267
+ api.registerService({
3267
3268
  id: "alfe-daemon-ipc",
3268
3269
  start: () => {
3269
3270
  startDaemonIpc();
@@ -3272,7 +3273,6 @@ const plugin = {
3272
3273
  stopDaemonIpc();
3273
3274
  }
3274
3275
  });
3275
- else startDaemonIpc();
3276
3276
  },
3277
3277
  deactivate(api) {
3278
3278
  const log = api.logger;
package/dist/plugin2.js CHANGED
@@ -3030,6 +3030,7 @@ var IPCClient = class extends EventEmitter {
3030
3030
  this.reconnectTimer = setTimeout(() => {
3031
3031
  this.doConnect();
3032
3032
  }, delay);
3033
+ this.reconnectTimer.unref();
3033
3034
  }
3034
3035
  clearReconnectTimer() {
3035
3036
  if (this.reconnectTimer) {
@@ -3264,7 +3265,7 @@ const plugin = {
3264
3265
  globalThis.__alfeOpenclawPluginActivated = false;
3265
3266
  log.info("Alfe OpenClaw Plugin deactivated");
3266
3267
  };
3267
- if (api.registerService) api.registerService({
3268
+ api.registerService({
3268
3269
  id: "alfe-daemon-ipc",
3269
3270
  start: () => {
3270
3271
  startDaemonIpc();
@@ -3273,7 +3274,6 @@ const plugin = {
3273
3274
  stopDaemonIpc();
3274
3275
  }
3275
3276
  });
3276
- else startDaemonIpc();
3277
3277
  },
3278
3278
  deactivate(api) {
3279
3279
  const log = api.logger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/openclaw",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "OpenClaw plugin for Alfe — connects to local gateway daemon via IPC for integration management",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,9 +25,17 @@
25
25
  "dependencies": {
26
26
  "@auriclabs/logger": "^0.1.1",
27
27
  "@sinclair/typebox": "^0.34.48",
28
- "@alfe.ai/agent-api-client": "^0.1.1",
28
+ "@alfe.ai/agent-api-client": "^0.1.3",
29
29
  "@alfe.ai/config": "^0.0.8"
30
30
  },
31
+ "peerDependencies": {
32
+ "openclaw": ">=2026.3.0"
33
+ },
34
+ "peerDependenciesMeta": {
35
+ "openclaw": {
36
+ "optional": true
37
+ }
38
+ },
31
39
  "files": [
32
40
  "dist",
33
41
  "openclaw.plugin.json"