@agentchatme/openclaw 0.6.14 → 0.6.15
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 +11 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -12
- package/dist/index.js.map +1 -1
- package/dist/setup-entry.cjs +11 -12
- package/dist/setup-entry.cjs.map +1 -1
- package/dist/setup-entry.js +11 -12
- package/dist/setup-entry.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { setSetupChannelEnabled, WizardCancelledError } from 'openclaw/plugin-sd
|
|
|
3
3
|
import { readApiKeyFromEnv } from './credentials/read-env.js';
|
|
4
4
|
import { writeAgentsAnchor, removeAgentsAnchor } from './binding/agents-anchor.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
+
import { waitUntilAbort } from 'openclaw/plugin-sdk/channel-lifecycle';
|
|
6
7
|
import pino from 'pino';
|
|
7
8
|
import { WebSocket } from 'ws';
|
|
8
9
|
import { dispatchInboundDirectDmWithRuntime } from 'openclaw/plugin-sdk/direct-dm';
|
|
@@ -1854,7 +1855,7 @@ var CircuitBreaker = class {
|
|
|
1854
1855
|
};
|
|
1855
1856
|
|
|
1856
1857
|
// src/version.ts
|
|
1857
|
-
var PACKAGE_VERSION = "0.6.
|
|
1858
|
+
var PACKAGE_VERSION = "0.6.15";
|
|
1858
1859
|
|
|
1859
1860
|
// src/outbound.ts
|
|
1860
1861
|
var DEFAULT_RETRY_POLICY = {
|
|
@@ -2651,17 +2652,15 @@ var agentchatGatewayAdapter = {
|
|
|
2651
2652
|
gatewayCfg: ctx.cfg,
|
|
2652
2653
|
selfHandle: account.config.agentHandle
|
|
2653
2654
|
});
|
|
2654
|
-
ctx.abortSignal
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
{ once: true }
|
|
2664
|
-
);
|
|
2655
|
+
await waitUntilAbort(ctx.abortSignal, async () => {
|
|
2656
|
+
try {
|
|
2657
|
+
await unregisterRuntime(ctx.accountId, Date.now() + 5e3);
|
|
2658
|
+
} catch (err3) {
|
|
2659
|
+
ctx.log?.error?.(
|
|
2660
|
+
`[agentchat:${ctx.accountId}] unregisterRuntime failed on abort: ${err3 instanceof Error ? err3.message : String(err3)}`
|
|
2661
|
+
);
|
|
2662
|
+
}
|
|
2663
|
+
});
|
|
2665
2664
|
},
|
|
2666
2665
|
async stopAccount(ctx) {
|
|
2667
2666
|
await unregisterRuntime(ctx.accountId, Date.now() + 5e3);
|