// src/profiles/coder.ts
var DEFAULT_MAX_DIFF_LINES = 400;
function coderTaskToPrompt(task) {
  const base = task.baseBranch ?? "main";
  const testCmd = task.testCmd ?? "pnpm test --run";
  const typecheckCmd = task.typecheckCmd ?? "pnpm typecheck";
  const maxDiff = task.maxDiffLines ?? DEFAULT_MAX_DIFF_LINES;
  const forbidden = task.forbiddenPaths?.length ? task.forbiddenPaths.join(", ") : "(none)";
  const context = task.contextFiles?.length ? task.contextFiles.map((f) => `  - ${f}`).join("\n") : "  (none)";
  return [
    `Goal: ${task.goal}`,
    `Repo: ${task.repoRoot}`,
    `Base branch: ${base}`,
    `Run tests with: ${testCmd}`,
    `Run typecheck with: ${typecheckCmd}`,
    `Forbidden paths: ${forbidden}`,
    `Max diff lines: ${maxDiff}`,
    "Context files:",
    context,
    "",
    "Produce a minimal patch on a fresh branch. Run tests and typecheck before",
    "returning. Emit the final JSON result block exactly as instructed."
  ].join("\n");
}

export {
  coderTaskToPrompt
};
//# sourceMappingURL=chunk-5IBQAPVB.js.map