/**
 * Simple unified diff generator for Edit tool's old_string / new_string.
 *
 * Produces a minimal diff showing removed (-) and added (+) lines.
 */
/**
 * Generate a unified-style diff string from old and new content.
 * Returns empty string if the strings are identical.
 */
export function generateDiff(oldString, newString) {
    if (oldString === newString)
        return "";
    const oldLines = oldString.split("\n");
    const newLines = newString.split("\n");
    const parts = [];
    for (const line of oldLines) {
        parts.push(`-${line}`);
    }
    for (const line of newLines) {
        parts.push(`+${line}`);
    }
    return parts.join("\n");
}
//# sourceMappingURL=diff.js.map