MCPcopy
hub / github.com/coder/mux / waitForAgentTask

Function waitForAgentTask

src/node/services/workflows/WorkflowRunner.test.ts:191–199  ·  view source on GitHub ↗
(taskId)

Source from the content-addressed store, hash-verified

189 return specs.map((spec) => ({ taskId: `task_${spec.id}`, status: "starting" as const }));
190 },
191 async waitForAgentTask(taskId) {
192 const id = taskId.replace("task_", "");
193 return {
194 taskId,
195 reportMarkdown: `Plan ${id}`,
196 planFilePath: `/tmp/mux/plans/${id}.md`,
197 structuredOutput: {},
198 };
199 },
200 });
201
202 await expect(runner.run("wfr_parallel_plan_result")).resolves.toEqual({

Callers 1

waitForReportMethod · 0.85

Calls 2

getStepMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected