@aka_openclaw_plugin/mychat 0.1.13 → 0.1.14

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/api.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as tryGetMychatRuntime, i as setMychatRuntime, n as init_runtime, t as getMychatRuntime } from "./runtime-PfFuZ2Rm.js";
2
- import { t as mychatPlugin } from "./channel-BpMr77-3.js";
2
+ import { t as mychatPlugin } from "./channel-Cjn7oWbb.js";
3
3
  //#region api.ts
4
4
  init_runtime();
5
5
  //#endregion
@@ -4335,14 +4335,21 @@ function createMychatPluginBase() {
4335
4335
  accountId: ctx.accountId,
4336
4336
  setStatus: ctx.setStatus
4337
4337
  });
4338
- return { unsubscribe: (await monitorMychatProvider({
4338
+ const result = await monitorMychatProvider({
4339
4339
  cfg: ctx.cfg,
4340
4340
  runtime: ctx.runtime,
4341
4341
  account: ctx.account,
4342
4342
  setStatus,
4343
4343
  abortSignal: ctx.abortSignal,
4344
4344
  log: ctx.log
4345
- })).unsubscribe };
4345
+ });
4346
+ await new Promise((resolve) => {
4347
+ const originalUnsubscribe = result.unsubscribe;
4348
+ result.unsubscribe = () => {
4349
+ originalUnsubscribe();
4350
+ resolve();
4351
+ };
4352
+ });
4346
4353
  } }
4347
4354
  };
4348
4355
  }
@@ -1,2 +1,2 @@
1
- import { t as mychatPlugin } from "./channel-BpMr77-3.js";
1
+ import { t as mychatPlugin } from "./channel-Cjn7oWbb.js";
2
2
  export { mychatPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aka_openclaw_plugin/mychat",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "OpenClaw MyChat channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
package/setup-entry.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as mychatPlugin } from "./channel-BpMr77-3.js";
1
+ import { t as mychatPlugin } from "./channel-Cjn7oWbb.js";
2
2
  export { mychatPlugin };