agents-relay 1.0.33 → 1.0.34
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/cli.js +6 -3
- package/dist/reconciler.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -65,7 +65,7 @@ Example:
|
|
|
65
65
|
'job create': `Create or reuse an open PR and persist one durable job marker.
|
|
66
66
|
|
|
67
67
|
Required: --repo OWNER/REPO, --id JOB_ID, and --head BRANCH.
|
|
68
|
-
Common: --base BRANCH (default: main), --title TEXT, --body TEXT, --mode fixed|autonomous, --no-auto-merge.
|
|
68
|
+
Common: --base BRANCH (default: main), --title TEXT, --body TEXT, --mode fixed|autonomous, --no-auto-merge, --no-review.
|
|
69
69
|
With --start, also require --adapter codex|chatgpt, --model MODEL, --output task-pr|file,
|
|
70
70
|
and --input TEXT. The initial task ID defaults to 'initial'; use --task-id to override it.
|
|
71
71
|
|
|
@@ -270,7 +270,7 @@ export async function ensureManagedGitHubJob(client, repositoryName, trustedAuth
|
|
|
270
270
|
if (!(error instanceof Error) || !error.message.includes('has no durable'))
|
|
271
271
|
throw error;
|
|
272
272
|
const now = new Date().toISOString();
|
|
273
|
-
job = { id: options.id, title: options.title || pr.title || 'Agents Relay job', objective: options.objective || pr.body || undefined, description: pr.body || undefined, priority: options.priority ?? 'P2', executionMode: options.executionMode ?? 'fixed', autoMerge: options.autoMerge ?? true, prNumber: pr.number, repository: repositoryName, state: 'OPEN', continuation: options.continuation ?? null, initialPlanning: options.initialTasks?.length ? { status: 'pending', decisionId: 'planner-0' } : undefined, createdAt: now, updatedAt: now, tasks: [] };
|
|
273
|
+
job = { id: options.id, title: options.title || pr.title || 'Agents Relay job', objective: options.objective || pr.body || undefined, description: pr.body || undefined, priority: options.priority ?? 'P2', executionMode: options.executionMode ?? 'fixed', autoMerge: options.autoMerge ?? true, reviewEnabled: options.reviewEnabled ?? true, prNumber: pr.number, repository: repositoryName, state: 'OPEN', continuation: options.continuation ?? null, initialPlanning: options.initialTasks?.length ? { status: 'pending', decisionId: 'planner-0' } : undefined, createdAt: now, updatedAt: now, tasks: [] };
|
|
274
274
|
}
|
|
275
275
|
if (!job.description && pr.body)
|
|
276
276
|
job.description = pr.body;
|
|
@@ -280,6 +280,8 @@ export async function ensureManagedGitHubJob(client, repositoryName, trustedAuth
|
|
|
280
280
|
job.executionMode = options.executionMode;
|
|
281
281
|
if (options.autoMerge !== undefined)
|
|
282
282
|
job.autoMerge = options.autoMerge;
|
|
283
|
+
if (options.reviewEnabled !== undefined)
|
|
284
|
+
job.reviewEnabled = options.reviewEnabled;
|
|
283
285
|
if (options.priority)
|
|
284
286
|
job.priority = options.priority;
|
|
285
287
|
else if (!job.priority)
|
|
@@ -492,6 +494,7 @@ async function runJobCommand(action, args) {
|
|
|
492
494
|
priority: priority(args),
|
|
493
495
|
executionMode: requestedExecutionMode(args),
|
|
494
496
|
autoMerge: !hasArg(args, '--no-auto-merge'),
|
|
497
|
+
reviewEnabled: !hasArg(args, '--no-review'),
|
|
495
498
|
continuation: continuation(args),
|
|
496
499
|
prNumber,
|
|
497
500
|
head: arg(args, '--head') || undefined,
|
|
@@ -603,7 +606,7 @@ async function main() {
|
|
|
603
606
|
}
|
|
604
607
|
if (command === 'init') {
|
|
605
608
|
const now = new Date().toISOString();
|
|
606
|
-
const job = { id: arg(args, '--id', randomUUID()), title: arg(args, '--title', 'Agents Relay job'), objective: arg(args, '--objective') || undefined, priority: priority(args), executionMode: executionMode(args), autoMerge: !hasArg(args, '--no-auto-merge'), prNumber: Number(arg(args, '--pr', '0')), repository: arg(args, '--repo'), state: 'OPEN', continuation: continuation(args), createdAt: now, updatedAt: now, tasks: [] };
|
|
609
|
+
const job = { id: arg(args, '--id', randomUUID()), title: arg(args, '--title', 'Agents Relay job'), objective: arg(args, '--objective') || undefined, priority: priority(args), executionMode: executionMode(args), autoMerge: !hasArg(args, '--no-auto-merge'), reviewEnabled: !hasArg(args, '--no-review'), prNumber: Number(arg(args, '--pr', '0')), repository: arg(args, '--repo'), state: 'OPEN', continuation: continuation(args), createdAt: now, updatedAt: now, tasks: [] };
|
|
607
610
|
let store;
|
|
608
611
|
let file = null;
|
|
609
612
|
if (arg(args, '--repo') && arg(args, '--pr'))
|
package/dist/reconciler.js
CHANGED
|
@@ -199,7 +199,7 @@ export class Reconciler {
|
|
|
199
199
|
await this.store.saveJob(job);
|
|
200
200
|
}
|
|
201
201
|
async ensureFinalReview(job, prState, headSha) {
|
|
202
|
-
if (prState !== 'OPEN' || job.state !== 'COMPLETED' || !headSha)
|
|
202
|
+
if (job.reviewEnabled === false || prState !== 'OPEN' || job.state !== 'COMPLETED' || !headSha)
|
|
203
203
|
return;
|
|
204
204
|
if (!this.preReviewGatesPass(job))
|
|
205
205
|
return;
|