);
return rows.map(row => ({
toolCallId: row.tool_call_id as string,
filePath: row.file_path as string,
kind: (row.edit_type as IFileEditRecord['kind']) ?? 'edit',
originalPath: row.original_path as string | undefined ?? undefined,
addedLines: row.added_lines as number | undefined ?? undefined,
removedLines: row.removed_lines as number | undefined ?? undefined,
}));
}