@builder.io/dev-tools 1.18.30-dev.202512030730.8490c5730 → 1.18.31-dev.202512040610.ca7703d22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -341,6 +341,26 @@ export declare class CodeGenSession {
341
341
  newContent: string | null;
342
342
  action: "create" | "update" | "delete";
343
343
  }>;
344
+ /**
345
+ * Discards changes for a specific file, restoring it to the merge-base state
346
+ * Creates a commit after discarding so changes can be reverted
347
+ * @param filePath - The file path to discard changes for
348
+ * @returns success status, commit hash for reverting, and optional error message
349
+ */
350
+ discardFileChanges(filePath: string): Promise<{
351
+ success: boolean;
352
+ commitHash?: string;
353
+ error?: string;
354
+ }>;
355
+ /**
356
+ * Reverts a commit by its hash
357
+ * @param commitHash - The commit hash to revert
358
+ * @returns success status and optional error message
359
+ */
360
+ revertCommit(commitHash: string): Promise<{
361
+ success: boolean;
362
+ error?: string;
363
+ }>;
344
364
  /**
345
365
  * Checks if a file exists in the workspace
346
366
  * @param filePath A file path that may include a workspace prefix