builder.io 1.11.14 → 1.11.15
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 +102 -101
- package/cli/index.cjs.map +4 -4
- 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 +3 -3
- package/server/index.mjs +3 -3
- package/types/cli/codegen.d.ts +14 -2
- package/types/cli/utils/parseGitDiff.d.ts +2 -1
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -367,16 +367,26 @@ export declare class CodeGenSession {
|
|
|
367
367
|
* Get git diff between current commit and remote branch
|
|
368
368
|
* If remote current branch doesn't exist, gets diff between default branch and current branch
|
|
369
369
|
* @param numberOfContextLines - Optional number of context lines to include in the diff
|
|
370
|
+
* @param includeFilesOnly - If true, only return filePath and action properties
|
|
371
|
+
* @param filePaths - Optional array of file paths to limit the diff to specific files
|
|
370
372
|
*/
|
|
371
|
-
getDiffFromRemote(numberOfContextLines
|
|
373
|
+
getDiffFromRemote({ numberOfContextLines, includeFilesOnly, filePaths, }: {
|
|
374
|
+
numberOfContextLines?: number;
|
|
375
|
+
includeFilesOnly?: boolean;
|
|
376
|
+
filePaths?: Array<string>;
|
|
377
|
+
}): Promise<ApplyActionsResult[]>;
|
|
372
378
|
/**
|
|
373
379
|
* Get git diff based on the specified mode
|
|
374
380
|
* @param mode - The diff mode: 'previous-commit', 'parent-branch', or 'remote'
|
|
375
381
|
* @param numberOfContextLines - Optional number of context lines to include in the diff (e.g., 999 for -U999)
|
|
382
|
+
* @param includeFilesOnly - If true, only return filePath and action properties
|
|
383
|
+
* @param filePaths - Optional array of file paths to limit the diff to specific files
|
|
376
384
|
*/
|
|
377
|
-
getDiff({ mode, numberOfContextLines, }: {
|
|
385
|
+
getDiff({ mode, numberOfContextLines, includeFilesOnly, filePaths, }: {
|
|
378
386
|
mode: "remote-parent-branch" | "remote-current-branch";
|
|
379
387
|
numberOfContextLines?: number;
|
|
388
|
+
includeFilesOnly?: boolean;
|
|
389
|
+
filePaths?: Array<string>;
|
|
380
390
|
}): Promise<{
|
|
381
391
|
state: "error" | "success";
|
|
382
392
|
diff?: ApplyActionsResult[];
|
|
@@ -390,6 +400,8 @@ export declare class CodeGenSession {
|
|
|
390
400
|
/**
|
|
391
401
|
* Get git diff between current branch and its parent branch (main/master)
|
|
392
402
|
* @param numberOfContextLines - Optional number of context lines to include in the diff
|
|
403
|
+
* @param includeFilesOnly - If true, only return filePath and action properties
|
|
404
|
+
* @param filePaths - Optional array of file paths to limit the diff to specific files
|
|
393
405
|
*/
|
|
394
406
|
private getDiffFromParentBranch;
|
|
395
407
|
}
|
|
@@ -2,6 +2,7 @@ import type { ApplyActionsResult } from "../../../ai-utils/src/codegen";
|
|
|
2
2
|
/**
|
|
3
3
|
* Parse git diff output and convert it to ApplyActionsResult array
|
|
4
4
|
* @param diff - The git diff output string
|
|
5
|
+
* @param includeFilesOnly - If true, only populate action and filePath properties
|
|
5
6
|
* @returns Array of ApplyActionsResult objects
|
|
6
7
|
*/
|
|
7
|
-
export declare function parseGitDiffToApplyActions(diff: string): ApplyActionsResult[];
|
|
8
|
+
export declare function parseGitDiffToApplyActions(diff: string, includeFilesOnly?: boolean): ApplyActionsResult[];
|