export type TesterPromptParams = { workflowName: string; plannerSpec: object; coderOutput: string; nerveRoot: string; }; export function testerPrompt({ workflowName, plannerSpec, coderOutput, nerveRoot: _nerveRoot, }: TesterPromptParams): string { return `You are testing a generated Nerve workflow by doing a dry-run review. Workflow: ${workflowName} Planner specification: ${JSON.stringify(plannerSpec, null, 2)} Coder output summary: ${coderOutput.slice(0, 6000)} Required checks: 1) Verify role transitions are coherent and terminates to END. 2) Verify generated workflow adheres to planner intent. 3) Verify retry loops are explicit for recoverable failures. 4) Verify no obvious runtime-breaking issue in generated index.ts. Return exactly: PASS|| or FAIL||`; }