@aka_openclaw_plugin/mychat 0.1.15 → 0.1.16

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-CxT4NkH-.js";
2
+ import { t as mychatPlugin } from "./channel-Cjn7oWbb.js";
3
3
  //#region api.ts
4
4
  init_runtime();
5
5
  //#endregion
@@ -208,9 +208,6 @@ function createMychatHttpClient(params) {
208
208
  return null;
209
209
  }
210
210
  },
211
- async reportStatus(status) {
212
- return await request("POST", "/api/bot/status", { status }) !== null;
213
- },
214
211
  async healthCheck() {
215
212
  const url = `${base}/health`;
216
213
  const start = Date.now();
@@ -4194,21 +4191,13 @@ async function monitorMychatProvider(ctx) {
4194
4191
  lastError: null
4195
4192
  });
4196
4193
  logger?.info(`${prefix} bot connected botId=${readyBotSelf.botId}`);
4197
- try {
4198
- await httpClient.reportStatus("online");
4199
- logger?.info(`${prefix} reported status=online`);
4200
- } catch (err) {
4201
- logger?.warn(`${prefix} failed to report status: ${err}`);
4202
- }
4203
- ctx.abortSignal?.addEventListener("abort", async () => {
4194
+ ctx.abortSignal?.addEventListener("abort", () => {
4204
4195
  logger?.info(`${prefix} abort signal received, shutting down`);
4205
- await httpClient.reportStatus("offline").catch(() => {});
4206
4196
  lifecycle.shutdown();
4207
4197
  setStatus({ connected: false });
4208
4198
  });
4209
- return { unsubscribe: async () => {
4199
+ return { unsubscribe() {
4210
4200
  logger?.info(`${prefix} unsubscribe called, shutting down`);
4211
- await httpClient.reportStatus("offline").catch(() => {});
4212
4201
  lifecycle.shutdown();
4213
4202
  setStatus({ connected: false });
4214
4203
  } };
@@ -1,2 +1,2 @@
1
- import { t as mychatPlugin } from "./channel-CxT4NkH-.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.15",
3
+ "version": "0.1.16",
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-CxT4NkH-.js";
1
+ import { t as mychatPlugin } from "./channel-Cjn7oWbb.js";
2
2
  export { mychatPlugin };