@efengx/openclaw-channel-dragon 0.5.5 → 0.5.6

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.js CHANGED
@@ -78,6 +78,12 @@ const plugin = createChatChannelPlugin({
78
78
  startAccount: async (ctx) => {
79
79
  const account = base.config.resolveAccount(ctx.cfg, ctx.accountId);
80
80
  await getOrCreateContainer(account, ctx);
81
+ // v0.5.6+: Prevent channel exit by waiting for abort signal
82
+ if (ctx.abortSignal.aborted)
83
+ return;
84
+ await new Promise((resolve) => {
85
+ ctx.abortSignal.addEventListener('abort', resolve, { once: true });
86
+ });
81
87
  }
82
88
  },
83
89
  },
@@ -2,7 +2,7 @@
2
2
  "id": "dragon",
3
3
  "name": "Dragon Workbench Channel",
4
4
  "description": "Connect OpenClaw to the Dragon agent-client workbench chat.",
5
- "version": "0.5.5",
5
+ "version": "0.5.6",
6
6
  "enabledByDefault": true,
7
7
  "activation": {
8
8
  "onCapabilities": ["hook"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@efengx/openclaw-channel-dragon",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Dragon workbench channel for OpenClaw",
5
5
  "author": "feng xiang <ofengx@gmail.com>",
6
6
  "type": "module",