小橘 57c740cdde Revert "chore(workflow): auto-generated commit"
This reverts commit 75f2768a8c7713879bb2ab564f42f24bc609338e.
2026-04-28 15:49:22 +00:00

32 lines
753 B
TypeScript

import { nerveAgentContext } from "@uncaged/nerve-workflow-utils";
import type { IssueData } from "../issue-reader/index.js";
export function buildPlannerPrompt(params: {
issue: IssueData;
nerveYamlText: string;
}): string {
const { issue, nerveYamlText } = params;
return `You are planning a fix for a Gitea issue in this repository.
${nerveAgentContext}
Issue URL: ${issue.url}
Issue title: ${issue.title}
Issue body:
${issue.body}
Issue comments:
${issue.comments.map((c) => `- ${c.author} (${c.createdAt}): ${c.body}`).join("\n") || "(none)"}
Current nerve.yaml:
\`\`\`yaml
${nerveYamlText}
\`\`\`
Output implementation-ready markdown with sections:
1) Problem understanding
2) Change strategy
3) Test strategy (commands)
4) Risks`;
}