@rallycry/conveyor-agent 7.2.12 → 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.
- package/dist/{chunk-IMRY5HP6.js → chunk-FDYL6LO7.js} +21 -9
- package/dist/chunk-FDYL6LO7.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{task-audit-handler-UA3OZSG6.js → task-audit-handler-KGTVMVAP.js} +11 -2
- package/dist/task-audit-handler-KGTVMVAP.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-IMRY5HP6.js.map +0 -1
- package/dist/task-audit-handler-UA3OZSG6.js.map +0 -1
|
@@ -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;
|
|
@@ -7236,7 +7248,7 @@ var ProjectRunner = class {
|
|
|
7236
7248
|
async handleAuditTasks(request) {
|
|
7237
7249
|
this.connection.emitStatus("busy");
|
|
7238
7250
|
try {
|
|
7239
|
-
const { handleTaskAudit } = await import("./task-audit-handler-
|
|
7251
|
+
const { handleTaskAudit } = await import("./task-audit-handler-KGTVMVAP.js");
|
|
7240
7252
|
await handleTaskAudit(request, this.connection, this.projectDir);
|
|
7241
7253
|
} catch (error) {
|
|
7242
7254
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -7681,4 +7693,4 @@ export {
|
|
|
7681
7693
|
loadForwardPorts,
|
|
7682
7694
|
loadConveyorConfig
|
|
7683
7695
|
};
|
|
7684
|
-
//# sourceMappingURL=chunk-
|
|
7696
|
+
//# sourceMappingURL=chunk-FDYL6LO7.js.map
|