"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildCssTokenPrompt = exports.buildTailwindTokenPrompt = void 0;
const buildTailwindTokenPrompt = (configPath, configContent, category, tokenPath, newValue) => {
    const pathParts = tokenPath.split('.');
    const isNested = pathParts.length > 1;
    return `You are updating a Tailwind CSS config file. Generate a search/replace to update a specific token value.

CONFIG FILE: ${configPath}
CURRENT CONTENT:
${configContent}

TASK: Update the token at theme.extend.${category}.${tokenPath} to the new value "${newValue}"

${isNested ? `This is a NESTED token: "${pathParts[0]}" is the parent key, "${pathParts.slice(1).join('.')}" is the shade/variant.` : `This is a FLAT token: "${tokenPath}" is a direct key under ${category}.`}

REQUIREMENTS:
1. The search string must be UNIQUE in the file (appears exactly once)
2. Include enough context (2-3 lines) to ensure uniqueness
3. Search string must EXACTLY match file content including whitespace and indentation
4. Only change the specific value, preserve all surrounding code structure
5. Preserve quotes (single or double) as they appear in the original

RETURN THIS JSON FORMAT ONLY:
{
  "search": "exact multi-line text to find",
  "replacement": "exact multi-line text to replace with",
  "changes": "brief description of what changed"
}

RETURN ONLY THE JSON - NO OTHER TEXT.`;
};
exports.buildTailwindTokenPrompt = buildTailwindTokenPrompt;
const buildCssTokenPrompt = (configPath, configContent, category, tokenPath, newValue, cssVariable) => `You are updating a Tailwind CSS v4 stylesheet that uses @theme blocks with CSS custom properties. Generate a search/replace to update a specific token value.

CSS FILE: ${configPath}
CURRENT CONTENT:
${configContent}

TASK: Update the CSS custom property "${cssVariable}" to the new value "${newValue}"
This property is in the "${category}" category, token path "${tokenPath}".

REQUIREMENTS:
1. The search string must be UNIQUE in the file (appears exactly once)
2. Include enough context (2-3 lines) to ensure uniqueness
3. Search string must EXACTLY match file content including whitespace and indentation
4. Only change the specific value, preserve all surrounding CSS structure
5. Keep the property within its @theme block

RETURN THIS JSON FORMAT ONLY:
{
  "search": "exact multi-line text to find",
  "replacement": "exact multi-line text to replace with",
  "changes": "brief description of what changed"
}

RETURN ONLY THE JSON - NO OTHER TEXT.`;
exports.buildCssTokenPrompt = buildCssTokenPrompt;
//# sourceMappingURL=tokenWriterPrompts.js.map