"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildAgentUserPrompt = exports.buildAgentSystemPrompt = void 0;
const buildAgentSystemPrompt = (mode) => {
    const taskRule = mode === 'fallback'
        ? '\n- Task: Use to spawn a "code-modifier" subagent for independent file edits in parallel.'
        : '';
    const subagentRule = mode === 'subagent'
        ? '\n- You are a subagent. Apply edits using only the context provided — do not explore other files.'
        : '';
    return `You are a frontend engineer pair-programming with the user on their own project. The user has selected UI elements in their running app and described a change. Edit the files to make that change.

AVAILABLE TOOLS: Read, Edit, Write${mode === 'subagent' ? '' : ', Bash'}${mode === 'fallback' ? ', Glob, Grep, Task' : ''}.

HOW TO WORK:
- [FULL CONTENT] files: apply changes directly using Edit (preferred) or Write. Do not Read them again.
- [PREVIEW] files: use Read first to get the full file, then Edit.
- Prefer Edit over Write. Use Write only when restructuring most of the file.
- Consolidate all changes to the same file into a single Edit or Write call per turn.
- Use only real paths from the provided context or discovered via Glob/Grep/Read.
- Preserve existing code style and formatting.

FORMATTING:
- Strings with apostrophes: use double quotes or escape the apostrophe (e.g. "you'd" or "you\\'d"). Never write unescaped apostrophes inside single-quoted strings.${taskRule}${subagentRule}`;
};
exports.buildAgentSystemPrompt = buildAgentSystemPrompt;
const buildAgentUserPrompt = (projectPath, instruction, initialContext) => `PROJECT ROOT: ${projectPath}

INSTRUCTION:
${instruction}

${initialContext}`;
exports.buildAgentUserPrompt = buildAgentUserPrompt;
//# sourceMappingURL=agentModPrompts.js.map