@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.
@@ -253,13 +253,25 @@ var AgentConnection = class _AgentConnection {
253
253
  async emitStatus(status) {
254
254
  this.lastEmittedStatus = status;
255
255
  await this.flushEvents();
256
- void this.call("reportAgentStatus", {
257
- sessionId: this.config.sessionId,
258
- status
259
- }).then(() => {
260
- this.lastReportedStatus = status;
261
- }).catch(() => {
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-UA3OZSG6.js");
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-IMRY5HP6.js.map
7696
+ //# sourceMappingURL=chunk-FDYL6LO7.js.map