@builder.io/dev-tools 1.18.17-dev.202511261237.4c93e80d6 → 1.18.17-dev.202511261458.038d96925

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
@@ -17,11 +17,6 @@ export declare function getAllProjectFiles({ basePath, globPattern, extraIgnoreP
17
17
  export declare function findBuilderFiles(basePath: string, targetContentId: string, targetSessionKey: string): Promise<FileNode[]>;
18
18
  export declare function filterNonImportantFiles(files: string[]): string[];
19
19
  export declare function getIgnorePatterns(basePath: string): (path: string) => boolean;
20
- /**
21
- * Get all ignore patterns as an array of strings for tools like ripgrep
22
- * This includes base patterns and patterns from .gitignore/.builderignore files
23
- */
24
- export declare function getIgnorePatternsArray(basePath: string): string[];
25
20
  export declare function watchDirectory(basePath: string, syncInfo: SyncInfo, onChange: (updatedSyncInfo: SyncInfo) => void): () => Promise<void>;
26
21
  export declare function setupSyncServer(sys: DevToolsSys, initialSyncInfo?: SyncInfo): Promise<void>;
27
22
  export declare function syncCommand(opts: AddCliOptions): Promise<SyncInfo | undefined>;