{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CA+B9D","sourcesContent":["import type { ProjectTask } from \"./tasks.js\";\n\nexport function buildTaskInstruction(task: ProjectTask): string {\n\tif (task.workdir !== undefined && task.workdir !== task.dir) {\n\t\treturn [\n\t\t\t`The product lives at ${task.workdir}. Work directly there.`,\n\t\t\t`This task's own directory (${task.dir}) holds only this description and its check; do not build the product inside it.`,\n\t\t\t\"Read the task below.\",\n\t\t\t\"Do the task in the repository.\",\n\t\t\t`Then run ${task.verifyPath} to check your work.`,\n\t\t\t\"If the check fails, fix your work and run it again.\",\n\t\t\t\"Stop after the check passes.\",\n\t\t\t`If a file named STOP appears in ${task.workdir}, commit your work. Then stop.`,\n\t\t\t\"\",\n\t\t\t\"---\",\n\t\t\t\"\",\n\t\t\ttask.description,\n\t\t].join(\"\\n\");\n\t}\n\treturn [\n\t\t`Your working directory is ${task.dir}.`,\n\t\t`Your workspace directory is ${task.dir}/workspace.`,\n\t\t\"Read the task below.\",\n\t\t\"Do the task in the workspace directory.\",\n\t\t`Then run ${task.verifyPath} to check your work.`,\n\t\t\"If the check fails, fix your work and run it again.\",\n\t\t\"Stop after the check passes.\",\n\t\t`If a file named STOP appears in the task directory, commit your work in the workspace. Then stop.`,\n\t\t\"\",\n\t\t\"---\",\n\t\t\"\",\n\t\ttask.description,\n\t].join(\"\\n\");\n}\n"]}