agents-relay 1.0.25 → 1.0.26
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/reconciler.js +9 -0
- package/package.json +1 -1
package/dist/reconciler.js
CHANGED
|
@@ -235,6 +235,15 @@ export class Reconciler {
|
|
|
235
235
|
return;
|
|
236
236
|
const evidence = { summary: event.message || `Review ${outcome}`, data: { ...(event.data ?? {}), review: reviewData ?? { headSha }, headSha, outcome } };
|
|
237
237
|
job.review = { outcome, headSha, taskId: task.id, evidence, updatedAt: event.timestamp || new Date().toISOString() };
|
|
238
|
+
if (outcome !== 'started') {
|
|
239
|
+
task.state = 'SUCCEEDED';
|
|
240
|
+
task.result = evidence;
|
|
241
|
+
task.error = null;
|
|
242
|
+
task.leaseOwner = null;
|
|
243
|
+
task.leaseExpiresAt = null;
|
|
244
|
+
task.updatedAt = job.review.updatedAt;
|
|
245
|
+
await this.store.saveTask(task);
|
|
246
|
+
}
|
|
238
247
|
job.updatedAt = job.review.updatedAt;
|
|
239
248
|
await this.store.saveJob(job);
|
|
240
249
|
}
|