@aka_openclaw_plugin/mychat 0.1.10 → 0.1.11

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-BTGCJxf9.js";
2
+ import { t as mychatPlugin } from "./channel-Notyh4R-.js";
3
3
  //#region api.ts
4
4
  init_runtime();
5
5
  //#endregion
@@ -3786,11 +3786,15 @@ function createMychatWsClient(params) {
3786
3786
  ws.on("open", () => {
3787
3787
  connected = true;
3788
3788
  currentDelay = initialDelay;
3789
- console.log(`[mychat] WS connected botSelfId=${botSelfId ?? "none"}`);
3790
- if (botSelfId) ws?.send(JSON.stringify({
3791
- type: "subscribe",
3792
- body: { subscribe: { conversationId: botSelfId } }
3793
- }));
3789
+ console.log(`[mychat] WS open event fired, connected=true botSelfId=${botSelfId ?? "none"}`);
3790
+ if (botSelfId) {
3791
+ const subMsg = JSON.stringify({
3792
+ type: "subscribe",
3793
+ body: { subscribe: { conversationId: botSelfId } }
3794
+ });
3795
+ console.log(`[mychat] WS subscribing to conversationId=${botSelfId}`);
3796
+ ws?.send(subMsg);
3797
+ }
3794
3798
  });
3795
3799
  ws.on("message", (data) => {
3796
3800
  try {
@@ -3833,7 +3837,9 @@ function createMychatWsClient(params) {
3833
3837
  };
3834
3838
  },
3835
3839
  isConnected() {
3836
- return connected;
3840
+ const state = connected;
3841
+ console.log(`[mychat] WS isConnected() called, returning ${state}`);
3842
+ return state;
3837
3843
  }
3838
3844
  };
3839
3845
  }
@@ -1,2 +1,2 @@
1
- import { t as mychatPlugin } from "./channel-BTGCJxf9.js";
1
+ import { t as mychatPlugin } from "./channel-Notyh4R-.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.10",
3
+ "version": "0.1.11",
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-BTGCJxf9.js";
1
+ import { t as mychatPlugin } from "./channel-Notyh4R-.js";
2
2
  export { mychatPlugin };