agents-relay 1.0.153 → 1.0.154

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.
@@ -145,7 +145,6 @@ export class Reconciler extends ReconcilerReviewBase {
145
145
  await this.store.appendTask(recovery);
146
146
  await this.emit(eventFor(job.id, recovery.id, null, "troubleshooter.created", "queued", "Troubleshooter task " + recovery.id + " created for failed/blocked work", "orchestrator", { agentName: "troubleshooter" }));
147
147
  }
148
- await this.routeExecutableTasks(await this.store.load(jobId));
149
148
  for (const task of job.tasks)
150
149
  if (task.state === 'CANCELLED') {
151
150
  this.live.get(task.id)?.execution.cancel();
@@ -171,6 +170,8 @@ export class Reconciler extends ReconcilerReviewBase {
171
170
  if (scheduled.state !== previousState || scheduled.updatedAt !== job.updatedAt)
172
171
  await this.store.saveJob(scheduled);
173
172
  if (prState === 'OPEN') {
173
+ await this.routeExecutableTasks(await this.store.load(jobId));
174
+ scheduled = schedule(await this.store.load(jobId));
174
175
  for (const task of scheduled.tasks.filter(item => item.state === 'SUCCEEDED' && (item.continuation || scheduled.continuation) && !item.continuationDeliveredAt))
175
176
  this.detach(this.deliverContinuation(scheduled, task), scheduled.id, task.id, 'continuation');
176
177
  const capacity = Math.max(0, (this.options.maxConcurrent ?? 4) - this.live.size - this.plannerLive.size);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "1.0.153",
3
+ "version": "1.0.154",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {