@builder.io/dev-tools 1.18.17-dev.202511261237.4c93e80d6 → 1.18.17-dev.202511261329.962ee17e9

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.
@@ -321,6 +321,23 @@ export declare class CodeGenSession {
321
321
  * @returns The file content or null if the file doesn't exist
322
322
  */
323
323
  readFile(filePath: string, skipAclCheck?: boolean): Promise<string | null>;
324
+ /**
325
+ * Gets file content at a specific git reference (e.g., origin/main, HEAD~1, commit hash)
326
+ * @param filePath - The file path relative to the workspace
327
+ * @param gitRef - The git reference (branch, commit, tag) - defaults to parent branch
328
+ * @returns The file content at that reference, or null if not found
329
+ */
330
+ getFileAtRef(filePath: string, gitRef?: string): Promise<string | null>;
331
+ /**
332
+ * Gets the diff information for a single file including full content
333
+ * @param filePath - The file path to get diff for
334
+ * @returns Object with oldContent (from parent branch) and newContent (current)
335
+ */
336
+ getSingleFileDiff(filePath: string): Promise<{
337
+ oldContent: string | null;
338
+ newContent: string | null;
339
+ action: "create" | "update" | "delete";
340
+ }>;
324
341
  /**
325
342
  * Checks if a file exists in the workspace
326
343
  * @param filePath A file path that may include a workspace prefix