agents-relay 1.0.70 → 1.0.71

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 +3 -3
  2. package/package.json +1 -1
package/dist/pool.js CHANGED
@@ -81,7 +81,7 @@ export class RepositoryWorkerPool {
81
81
  const store = new GitHubStore(this.client, repository, prNumber, this.trustedAuthors);
82
82
  await this.makeReconciler(store, Math.max(1, this.concurrency)).reconcile(jobId);
83
83
  }
84
- async handleTerminalEvent(event) {
84
+ async handleLifecycleEvent(event) {
85
85
  const target = this.jobTargets.get(event.job_id);
86
86
  if (!target || !this.repositories.includes(target.repository)) {
87
87
  process.stderr.write(`warning: terminal event target unknown for job ${event.job_id}\n`);
@@ -92,8 +92,8 @@ export class RepositoryWorkerPool {
92
92
  }
93
93
  async watch(bus) {
94
94
  return bus.subscribeAll(async (event) => {
95
- if (['task.completed', 'task.failed', 'task.blocked', 'review.started', 'review.approved', 'review.changes_required', 'review.blocked'].includes(event.type)) {
96
- await this.handleTerminalEvent(event);
95
+ if (['task.started', 'task.completed', 'task.failed', 'task.blocked', 'task.cancelled', 'review.started', 'review.approved', 'review.changes_required', 'review.blocked'].includes(event.type)) {
96
+ await this.handleLifecycleEvent(event);
97
97
  return;
98
98
  }
99
99
  if (event.type === 'job.wake' || event.type === 'github.webhook') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {