@builder.io/dev-tools 1.18.17-dev.202511261159.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.
- package/cli/index.cjs +72 -7
- package/cli/index.cjs.map +2 -2
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +2 -2
- package/server/index.mjs +2 -2
- package/types/cli/codegen.d.ts +17 -0
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -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
|