agents-relay 1.0.87 → 1.0.88
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/planner.js +1 -1
- package/package.json +1 -1
package/dist/planner.js
CHANGED
|
@@ -197,7 +197,7 @@ export class AgentObjectivePlanner {
|
|
|
197
197
|
const resolvedContext = context.executionContext ? executionContextPrompt(context.executionContext) + '\n\n' : '';
|
|
198
198
|
const prompt = instructions.trim() + '\n\n## Shared Task / Job Contract\n\n' + contract.trim() + '\n\n' + resolvedContext + '## Durable planner input\n\n' + plannerInput(context);
|
|
199
199
|
return await new Promise((resolve, reject) => {
|
|
200
|
-
const child = spawn(this.command, ['exec', '--json', '--', prompt], { stdio: ['ignore', 'pipe', 'pipe'] });
|
|
200
|
+
const child = spawn(this.command, ['exec', '--json', '--', prompt], { cwd: context.executionContext?.project.path, stdio: ['ignore', 'pipe', 'pipe'] });
|
|
201
201
|
let stdoutBuffer = '';
|
|
202
202
|
let finalMessage = '';
|
|
203
203
|
let stderrTail = '';
|