@rallycry/conveyor-agent 7.2.13 → 7.2.14
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.
|
@@ -253,13 +253,25 @@ var AgentConnection = class _AgentConnection {
|
|
|
253
253
|
async emitStatus(status) {
|
|
254
254
|
this.lastEmittedStatus = status;
|
|
255
255
|
await this.flushEvents();
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
const AWAIT_STATUSES = ["idle", "waiting_for_input", "connected"];
|
|
257
|
+
if (AWAIT_STATUSES.includes(status)) {
|
|
258
|
+
try {
|
|
259
|
+
await this.call("reportAgentStatus", {
|
|
260
|
+
sessionId: this.config.sessionId,
|
|
261
|
+
status
|
|
262
|
+
});
|
|
263
|
+
this.lastReportedStatus = status;
|
|
264
|
+
} catch {
|
|
265
|
+
}
|
|
266
|
+
} else {
|
|
267
|
+
void this.call("reportAgentStatus", {
|
|
268
|
+
sessionId: this.config.sessionId,
|
|
269
|
+
status
|
|
270
|
+
}).then(() => {
|
|
271
|
+
this.lastReportedStatus = status;
|
|
272
|
+
}).catch(() => {
|
|
273
|
+
});
|
|
274
|
+
}
|
|
263
275
|
}
|
|
264
276
|
postChatMessage(content) {
|
|
265
277
|
if (!this.socket) return;
|
|
@@ -7681,4 +7693,4 @@ export {
|
|
|
7681
7693
|
loadForwardPorts,
|
|
7682
7694
|
loadConveyorConfig
|
|
7683
7695
|
};
|
|
7684
|
-
//# sourceMappingURL=chunk-
|
|
7696
|
+
//# sourceMappingURL=chunk-FDYL6LO7.js.map
|