@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 +1 -1
- package/{channel-D_abyn0t.js → channel-CoROTtFt.js} +3 -1
- 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-7z_VfQ27.js";
|
|
2
|
-
import { t as mychatPlugin } from "./channel-
|
|
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 (
|
|
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() {
|
package/channel-plugin-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mychatPlugin } from "./channel-
|
|
1
|
+
import { t as mychatPlugin } from "./channel-CoROTtFt.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-CoROTtFt.js";
|
|
2
2
|
export { mychatPlugin };
|