@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 +1 -1
- package/{channel-BpMr77-3.js → channel-Cjn7oWbb.js} +9 -2
- package/channel-plugin-api.js +1 -1
- package/package.json +1 -1
- package/setup-entry.js +1 -1
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-
|
|
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
|
-
|
|
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
|
-
})
|
|
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
|
}
|
package/channel-plugin-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mychatPlugin } from "./channel-
|
|
1
|
+
import { t as mychatPlugin } from "./channel-Cjn7oWbb.js";
|
|
2
2
|
export { mychatPlugin };
|
package/package.json
CHANGED
package/setup-entry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mychatPlugin } from "./channel-
|
|
1
|
+
import { t as mychatPlugin } from "./channel-Cjn7oWbb.js";
|
|
2
2
|
export { mychatPlugin };
|