@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.
- package/bin/botschat-cli.mjs +2 -1
- package/package.json +1 -1
package/bin/botschat-cli.mjs
CHANGED
|
@@ -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}/${
|
|
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