"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildPRDescriptionPrompt = exports.buildPRTitlePrompt = exports.buildCommitMessagePrompt = void 0;
const buildCommitMessagePrompt = (instruction, filesChanged, truncatedDiff) => `You are writing a git commit message. Given the user's instruction and the git diff, write a concise commit message.

Rules:
- Single line only, max 50 characters
- Imperative mood (e.g. "Add", "Fix", "Update")
- No quotes around the message
- No conventional commit prefixes (no "feat:", "fix:", etc.)
- If the diff is large, focus on the most important change

User instruction: ${instruction}

Files changed: ${filesChanged.join(', ')}

Diff:
${truncatedDiff}

Commit message:`;
exports.buildCommitMessagePrompt = buildCommitMessagePrompt;
const buildPRTitlePrompt = (truncatedLog, filesChanged) => `You are writing a GitHub pull request title. Given the commit messages and files changed, write a concise PR title.

Rules:
- Max 72 characters
- No quotes around the title
- No conventional commit prefixes (no "feat:", "fix:", etc.)
- Summarize the overall change, not individual commits
- Use imperative mood (e.g. "Add", "Fix", "Update")
- Return ONLY the title, nothing else

Commit messages:
${truncatedLog}

Files changed: ${filesChanged.join(', ')}

PR title:`;
exports.buildPRTitlePrompt = buildPRTitlePrompt;
const buildPRDescriptionPrompt = (truncatedLog, filesChanged, truncatedDiff) => `You are writing a GitHub pull request description. Given the commit messages, files changed, and diff, write a clear and useful PR description.

Rules:
- Use markdown formatting
- Start with a brief summary paragraph of what the PR does (2-3 sentences max)
- Then add a "## Changes" section with bullet points for key changes
- If there are notable implementation details, add a brief "## Notes" section
- Keep it concise — no filler, no boilerplate sections that aren't relevant
- Do NOT include a title (that's generated separately)
- End with: "Made with [Rivet](https://rivet.design)"
- Return ONLY the description, nothing else

Commit messages:
${truncatedLog}

Files changed: ${filesChanged.join(', ')}

Diff:
${truncatedDiff}

PR description:`;
exports.buildPRDescriptionPrompt = buildPRDescriptionPrompt;
//# sourceMappingURL=gitPrompts.js.map