agents-relay 2.0.160 → 2.0.161

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/planner.js +5 -1
  2. package/package.json +1 -1
package/dist/planner.js CHANGED
@@ -476,6 +476,10 @@ export class CommandObjectivePlanner {
476
476
  }
477
477
  const DEFAULT_PLANNER_AGENT = join(dirname(fileURLToPath(import.meta.url)), '..', 'skills', 'agents-relay', 'agents', 'planner.agent.md');
478
478
  const DEFAULT_TASK_JOB_CONTRACT = join(dirname(fileURLToPath(import.meta.url)), '..', 'skills', 'agents-relay', 'contracts', 'task-job-contract.md');
479
+ export function buildPlannerCodexArgs(storeDirectory, input) {
480
+ return ['exec', '--json', '--sandbox', 'workspace-write', '--add-dir', resolvePath(dirname(storeDirectory)),
481
+ '-c', 'sandbox_workspace_write.network_access=true', '--', input];
482
+ }
479
483
  function parsePlannerAgentMessage(line) {
480
484
  try {
481
485
  const value = JSON.parse(line);
@@ -504,7 +508,7 @@ export class AgentObjectivePlanner {
504
508
  const prompt = renderAgentPrompt(await buildReferenceFirstPrompt({ role: 'planner', adapter: 'codex', system: (effectivePlanner ? `[Effective planner contract SHA-256: ${effectivePlanner.hash}]\n\n` : '') + instructions.trim() + '\n\n## Shared Task / Job Contract\n\n' + contract.trim(), user: resolvedContext + '## Durable planner input\n\n' + plannerInput(context) }), 'codex');
505
509
  const runAgent = (input) => new Promise((resolve, reject) => {
506
510
  // Plan apply writes unified relay.sqlite beside AGENTS_RELAY_STORE_DIR.
507
- const child = spawnOwnedProcess(this.command, ['exec', '--json', '--sandbox', 'workspace-write', '--add-dir', resolvePath(dirname(relayStoreDirectory())), '--', input], { invocation: 'planner.agent', signal, correlation: { jobId: context.job.id }, spawn: { cwd: context.executionContext?.project.path, stdio: ['ignore', 'pipe', 'pipe'] } });
511
+ const child = spawnOwnedProcess(this.command, buildPlannerCodexArgs(relayStoreDirectory(), input), { invocation: 'planner.agent', signal, correlation: { jobId: context.job.id }, spawn: { cwd: context.executionContext?.project.path, stdio: ['ignore', 'pipe', 'pipe'] } });
508
512
  let stdoutBuffer = '', finalMessage = '', stderrTail = '';
509
513
  const consume = (line) => {
510
514
  const message = parsePlannerAgentMessage(line);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.160",
3
+ "version": "2.0.161",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "repository": {
6
6
  "type": "git",