agents-relay 2.0.238 → 2.0.239
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/README.md +1 -1
- package/dist/agent-shortcut.js +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -289,7 +289,7 @@ npx agents-relay task create --repo OWNER/REPO --pr 5 --id JOB_ID \
|
|
|
289
289
|
--input "Research the dashboard UX and write the final report to the declared output file."
|
|
290
290
|
~~~
|
|
291
291
|
|
|
292
|
-
SQLite and the canonical Graphs are authoritative for terminal lifecycle. A remote PR merge/close is an audit observation, not a state transition. Final Review PASS authorizes local Git merge; confirmed local-merge evidence gates `COMPLETED`. The dashboard exposes `/api/jobs` and distinguishes durable Job lifecycle from derived runtime status. The `/api/runtime-summary` Running Tasks, worker, and model totals count only `RUNNING` Tasks belonging to `ACTIVE` Jobs with an execution ID, lease owner, and unexpired lease; old durable RUNNING flags without a current lease are not active workload. Shortcut execution is shown separately from managed queue execution: an externally triggered Shortcut is WAITING until its foreground runner starts, then RUNNING, and never shows MERGE_PENDING solely because its content-only Task completed. The Shortcut badge and selected Job details expose execution mode and graph-node progress. Daemon startup orphan-recovery must not reclaim externally owned Shortcut Worker leases; only the foreground Shortcut Runner owns their recovery. For model-backed Shortcut nodes, the same caller-configured `--shared-root` (or `AGENTS_RELAY_SHARED_ROOT`) must be supplied to child Worker execution context, not just Shortcut discovery.
|
|
292
|
+
SQLite and the canonical Graphs are authoritative for terminal lifecycle. A remote PR merge/close is an audit observation, not a state transition. Final Review PASS authorizes local Git merge; confirmed local-merge evidence gates `COMPLETED`. The dashboard exposes `/api/jobs` and distinguishes durable Job lifecycle from derived runtime status. The `/api/runtime-summary` Running Tasks, worker, and model totals count only `RUNNING` Tasks belonging to `ACTIVE` Jobs with an execution ID, lease owner, and unexpired lease; old durable RUNNING flags without a current lease are not active workload. Shortcut execution is shown separately from managed queue execution: an externally triggered Shortcut is WAITING until its foreground runner starts, then RUNNING, and never shows MERGE_PENDING solely because its content-only Task completed. The Shortcut badge and selected Job details expose execution mode and graph-node progress. Shortcut artifact hashing accepts a relative file present in both the Project and its canonical Run only if the two resolved files have identical bytes; it records the Run copy and still rejects different contents, path escapes and ambiguous provenance. Daemon startup orphan-recovery must not reclaim externally owned Shortcut Worker leases; only the foreground Shortcut Runner owns their recovery. For model-backed Shortcut nodes, the same caller-configured `--shared-root` (or `AGENTS_RELAY_SHARED_ROOT`) must be supplied to child Worker execution context, not just Shortcut discovery.
|
|
293
293
|
|
|
294
294
|
Relay has no orchestrator worker adapter for new work. Orchestrators are external clients that create/plan durable Tasks; Execution Router selects a real worker route (`codex` or `chatgpt`). The CLI and dashboard do not expose manual orchestrator-only `task start`, `task complete`, or synthetic `record` paths.
|
|
295
295
|
|
package/dist/agent-shortcut.js
CHANGED
|
@@ -431,10 +431,15 @@ export async function runAgentShortcut(options) {
|
|
|
431
431
|
}
|
|
432
432
|
if (found.length === 0)
|
|
433
433
|
throw new Error(`shortcut artifact missing or outside project: ${artifact}`);
|
|
434
|
-
|
|
434
|
+
// A copied project asset may exist at both paths. Identical bytes
|
|
435
|
+
// are unambiguous; prefer the Run copy, but fail closed on a diff.
|
|
436
|
+
const contents = await Promise.all(found.map(path => readFile(path)));
|
|
437
|
+
const hashes = contents.map(digestBytes);
|
|
438
|
+
if (new Set(hashes).size > 1)
|
|
435
439
|
throw new Error(`shortcut artifact ambiguous between project and run: ${artifact}`);
|
|
436
|
-
const
|
|
437
|
-
|
|
440
|
+
const selected = checkedRunRoot ? found.findIndex(path => inside(checkedRunRoot, path)) : -1;
|
|
441
|
+
const index = selected >= 0 ? selected : 0;
|
|
442
|
+
artifactHashes[relative(projectReal, found[index])] = hashes[index];
|
|
438
443
|
}
|
|
439
444
|
return { id, value: result, artifactHashes };
|
|
440
445
|
}
|