agents-relay 1.0.89 → 1.0.90

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.
Files changed (2) hide show
  1. package/dist/pool.js +4 -1
  2. package/package.json +1 -1
package/dist/pool.js CHANGED
@@ -88,7 +88,10 @@ export class RepositoryWorkerPool {
88
88
  return;
89
89
  }
90
90
  const store = new GitHubStore(this.client, target.repository, target.prNumber, this.trustedAuthors);
91
- await this.makeReconciler(store, Math.max(1, this.concurrency)).handleEvent(event);
91
+ const reconciler = this.makeReconciler(store, Math.max(1, this.concurrency));
92
+ await reconciler.handleEvent(event);
93
+ if (['task.completed', 'task.failed', 'task.blocked', 'task.cancelled'].includes(event.type))
94
+ await reconciler.reconcile(event.job_id);
92
95
  }
93
96
  async watch(bus) {
94
97
  return bus.subscribeAll(async (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {