chatroom-cli 1.6.0 → 1.6.2

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11765,6 +11765,16 @@ To reconnect, run:`);
11765
11765
  }, (error) => {
11766
11766
  this.handleSubscriptionError(error, "task subscription");
11767
11767
  });
11768
+ try {
11769
+ await this.client.mutation(api.participants.join, {
11770
+ sessionId: this.sessionId,
11771
+ chatroomId: this.chatroomId,
11772
+ role: this.role,
11773
+ action: "get-next-task:started"
11774
+ });
11775
+ } catch (error) {
11776
+ console.warn("[get-next-task] Failed to emit agent.waiting after subscription start:", error);
11777
+ }
11768
11778
  }
11769
11779
  async handleSubscriptionResponse(response) {
11770
11780
  if (this.taskProcessed)
@@ -11966,7 +11976,7 @@ async function getNextTask(chatroomId, options) {
11966
11976
  sessionId,
11967
11977
  chatroomId,
11968
11978
  role,
11969
- action: "get-next-task:started",
11979
+ action: "get-next-task:connecting",
11970
11980
  connectionId,
11971
11981
  agentType: participantAgentType
11972
11982
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chatroom-cli",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "CLI for multi-agent chatroom collaboration",
5
5
  "type": "module",
6
6
  "bin": {