@botschat/botschat 0.1.23 → 0.1.24

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.
@@ -1149,9 +1149,10 @@ var chatCmd = new Command9("chat").description("Chat with an AI agent").argument
1149
1149
  updateConfig({ defaultSession: sessionId });
1150
1150
  }
1151
1151
  }
1152
+ const wsSessionId = randomUUID3();
1152
1153
  const wsProtocol = cfg.url.startsWith("https") ? "wss" : "ws";
1153
1154
  const wsHost = cfg.url.replace(/^https?:\/\//, "");
1154
- const wsUrl = `${wsProtocol}://${wsHost}/api/ws/${cfg.userId}/${encodeURIComponent(sessionId)}`;
1155
+ const wsUrl = `${wsProtocol}://${wsHost}/api/ws/${cfg.userId}/${wsSessionId}`;
1155
1156
  const timeoutMs = parseFloat(opts.timeout) * 1e3;
1156
1157
  if (interactive) {
1157
1158
  await runInteractive(wsUrl, sessionId, opts.agent, cfg.userId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botschat/botschat",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "BotsChat channel plugin for OpenClaw — connects your OpenClaw agent to the BotsChat cloud platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",