You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`\x1b[31m✖ API request failed with status ${response.status}: ${responseText}\x1b[0m`
313
-
);
314
311
thrownewError(
315
312
`API request failed with status ${response.status}: ${responseText}`
316
313
);
@@ -554,7 +551,18 @@ async function getAiChanges({
554
551
/**
555
552
* Service: Get changes from backend (original endpoint)
556
553
* @param {Object} params Request parameters
557
-
* @returns {Promise<Object>} Backend response
554
+
* @param {string} params.githubRepoName The GitHub repository name
555
+
* @param {Array<Object>} params.fileChanges Array of file change objects to process. Each object represents changes for a single file.
556
+
* @param {string} params.fileChanges[].encoded_location The encoded file location identifier used to determine which file to modify
557
+
* @param {string} params.fileChanges[].file_content The current content of the file being modified
558
+
* @param {Array<Object>} params.fileChanges[].style_changes Array of style-related changes to apply to the file. Each object contains styling modifications.
559
+
* @param {Array<Object>} params.fileChanges[].text_changes Array of text-based changes to apply to the file. Each object contains:
560
+
* @param {string} params.fileChanges[].text_changes[].old_text The original HTML/text content to be replaced (mapped from old_html)
561
+
* @param {string} params.fileChanges[].text_changes[].new_text The new HTML/text content to replace with (mapped from new_html)
562
+
* @param {string} [params.fileChanges[].text_changes[].encoded_location] The encoded location for this specific text change (inherited from parent change object)
563
+
* @param {Array<Object>} [params.fileChanges[].text_changes[].style_changes] Any style changes associated with this text change (inherited from parent change object)
564
+
* @param {string} [params.authHeader] The authorization header for backend API authentication (Bearer token)
565
+
* @returns {Promise<Object>} Backend response containing the processed changes, typically with an 'updated_files' property mapping file paths to their new content
0 commit comments