chatroom-cli 1.6.1 → 1.6.3
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/dist/index.js +13 -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:
|
|
11979
|
+
action: "get-next-task:connecting",
|
|
11970
11980
|
connectionId,
|
|
11971
11981
|
agentType: participantAgentType
|
|
11972
11982
|
});
|
|
@@ -14465,7 +14475,8 @@ async function executeStartAgent(ctx, args) {
|
|
|
14465
14475
|
chatroomId,
|
|
14466
14476
|
role,
|
|
14467
14477
|
pid,
|
|
14468
|
-
model
|
|
14478
|
+
model,
|
|
14479
|
+
reason
|
|
14469
14480
|
});
|
|
14470
14481
|
console.log(` Updated backend with PID: ${pid}`);
|
|
14471
14482
|
ctx.deps.machine.persistAgentPid(ctx.machineId, chatroomId, role, pid, agentHarness);
|