@aka_openclaw_plugin/mychat 0.1.6 → 0.1.7

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-7z_VfQ27.js";
2
- import { t as mychatPlugin } from "./channel-D_abyn0t.js";
2
+ import { t as mychatPlugin } from "./channel-CoROTtFt.js";
3
3
  //#region api.ts
4
4
  init_runtime();
5
5
  //#endregion
@@ -206,7 +206,9 @@ function createMychatWsClient(params) {
206
206
  const handlers = /* @__PURE__ */ new Set();
207
207
  function buildUrl() {
208
208
  const url = new URL(wsUrl);
209
- if (!url.pathname.includes("/ws/bot")) url.pathname = url.pathname.replace(/\/+$/, "") + "/ws/bot";
209
+ if (url.pathname.endsWith("/ws/bot")) {} else if (url.pathname.endsWith("/ws/")) url.pathname += "bot";
210
+ else if (url.pathname.endsWith("/ws")) url.pathname += "/bot";
211
+ else url.pathname = url.pathname.replace(/\/+$/, "") + "/ws/bot";
210
212
  return url.toString();
211
213
  }
212
214
  function scheduleReconnect() {
@@ -1,2 +1,2 @@
1
- import { t as mychatPlugin } from "./channel-D_abyn0t.js";
1
+ import { t as mychatPlugin } from "./channel-CoROTtFt.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.6",
3
+ "version": "0.1.7",
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-D_abyn0t.js";
1
+ import { t as mychatPlugin } from "./channel-CoROTtFt.js";
2
2
  export { mychatPlugin };