agents-relay 2.0.260 → 2.0.261

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.
@@ -2,7 +2,7 @@ import { execFileSync } from 'node:child_process';
2
2
  import { withLocalMergeLock } from './local-merge-lock.js';
3
3
  import { resolve } from 'node:path';
4
4
  import { existsSync, readFileSync } from 'node:fs';
5
- import { implementationComplete } from './runtime-status.js';
5
+ import { implementationComplete, implementationTasks } from './runtime-status.js';
6
6
  import { completionGateSatisfied } from './task-transitions.js';
7
7
  function git(cwd, ...args) {
8
8
  return execFileSync('git', ['-C', cwd, ...args], {
@@ -22,7 +22,7 @@ export function localSourceHead(repoPath, sourceRef) {
22
22
  return git(repoPath, 'rev-parse', '--verify', ref(sourceRef));
23
23
  }
24
24
  export function requiresLocalGitMerge(job) {
25
- return Boolean(job.localMerge) || job.tasks.some(task => task.output?.kind === 'task_pr');
25
+ return Boolean(job.localMerge) || implementationTasks(job).some(task => task.output?.kind === 'task_pr');
26
26
  }
27
27
  export function localMergeFacts(job, headSha, now = Date.now) {
28
28
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.260",
3
+ "version": "2.0.261",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "repository": {
6
6
  "type": "git",