builder.io 1.11.13 → 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 +182 -181
- 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 +125 -125
- package/server/index.mjs +122 -122
- package/types/cli/codegen.d.ts +18 -5
- package/types/cli/repo-indexing/repo-indexing-utils.d.ts +9 -1
- package/types/cli/utils/parseGitDiff.d.ts +2 -1
- package/types/tsconfig.tsbuildinfo +1 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare class CodeGenSession {
|
|
|
56
56
|
loadHistory(): Promise<LoadHistoryResult>;
|
|
57
57
|
loadWholeSession(opts?: LoadWholeSessionOptions): Promise<LoadWholeSessionResult>;
|
|
58
58
|
loadMoreTurns(): Promise<CodegenTurn[]>;
|
|
59
|
+
setCustomInstructions(instructions: CustomInstruction[]): void;
|
|
59
60
|
pushRepoV2(repoInfo: {
|
|
60
61
|
repoFullName: string;
|
|
61
62
|
repoUrl: string;
|
|
@@ -311,7 +312,7 @@ export declare class CodeGenSession {
|
|
|
311
312
|
* @param filePath A file path that may include a workspace prefix
|
|
312
313
|
* @returns The file content or null if the file doesn't exist
|
|
313
314
|
*/
|
|
314
|
-
readFile(filePath: string): Promise<string | null>;
|
|
315
|
+
readFile(filePath: string, skipAclCheck?: boolean): Promise<string | null>;
|
|
315
316
|
/**
|
|
316
317
|
* Checks if a file exists in the workspace
|
|
317
318
|
* @param filePath A file path that may include a workspace prefix
|
|
@@ -335,7 +336,7 @@ export declare class CodeGenSession {
|
|
|
335
336
|
* @param content The content to write
|
|
336
337
|
* @returns True if the write was successful, false otherwise
|
|
337
338
|
*/
|
|
338
|
-
writeFile(filePath: string, content: string | Uint8Array): Promise<string | null>;
|
|
339
|
+
writeFile(filePath: string, content: string | Uint8Array, skipAclCheck?: boolean): Promise<string | null>;
|
|
339
340
|
/**
|
|
340
341
|
* Lists files in a directory in the workspace
|
|
341
342
|
* @param dirPath A directory path that may include a workspace prefix
|
|
@@ -356,7 +357,7 @@ export declare class CodeGenSession {
|
|
|
356
357
|
* @param filePath A file path that may include a workspace prefix
|
|
357
358
|
* @returns True if the delete was successful, false otherwise
|
|
358
359
|
*/
|
|
359
|
-
deleteFile(filePath: string): Promise<string | null>;
|
|
360
|
+
deleteFile(filePath: string, skipAclCheck?: boolean): Promise<string | null>;
|
|
360
361
|
getLinesStats(): {
|
|
361
362
|
net: number;
|
|
362
363
|
added: number;
|
|
@@ -366,16 +367,26 @@ export declare class CodeGenSession {
|
|
|
366
367
|
* Get git diff between current commit and remote branch
|
|
367
368
|
* If remote current branch doesn't exist, gets diff between default branch and current branch
|
|
368
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
|
|
369
372
|
*/
|
|
370
|
-
getDiffFromRemote(numberOfContextLines
|
|
373
|
+
getDiffFromRemote({ numberOfContextLines, includeFilesOnly, filePaths, }: {
|
|
374
|
+
numberOfContextLines?: number;
|
|
375
|
+
includeFilesOnly?: boolean;
|
|
376
|
+
filePaths?: Array<string>;
|
|
377
|
+
}): Promise<ApplyActionsResult[]>;
|
|
371
378
|
/**
|
|
372
379
|
* Get git diff based on the specified mode
|
|
373
380
|
* @param mode - The diff mode: 'previous-commit', 'parent-branch', or 'remote'
|
|
374
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
|
|
375
384
|
*/
|
|
376
|
-
getDiff({ mode, numberOfContextLines, }: {
|
|
385
|
+
getDiff({ mode, numberOfContextLines, includeFilesOnly, filePaths, }: {
|
|
377
386
|
mode: "remote-parent-branch" | "remote-current-branch";
|
|
378
387
|
numberOfContextLines?: number;
|
|
388
|
+
includeFilesOnly?: boolean;
|
|
389
|
+
filePaths?: Array<string>;
|
|
379
390
|
}): Promise<{
|
|
380
391
|
state: "error" | "success";
|
|
381
392
|
diff?: ApplyActionsResult[];
|
|
@@ -389,6 +400,8 @@ export declare class CodeGenSession {
|
|
|
389
400
|
/**
|
|
390
401
|
* Get git diff between current branch and its parent branch (main/master)
|
|
391
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
|
|
392
405
|
*/
|
|
393
406
|
private getDiffFromParentBranch;
|
|
394
407
|
}
|
|
@@ -16,7 +16,15 @@ export declare const runCodeGen: (sys: DevToolsSys, credentials: Credentials, se
|
|
|
16
16
|
tags?: object;
|
|
17
17
|
maxTokens?: number;
|
|
18
18
|
}, metadata?: any) => Promise<string>;
|
|
19
|
-
export declare const getAllDesignSystems: (credentials: Credentials,
|
|
19
|
+
export declare const getAllDesignSystems: (credentials: Credentials, opts?: {
|
|
20
|
+
/**
|
|
21
|
+
* If true, only design systems that the user has permission to edit will be
|
|
22
|
+
* returned. If false, all design systems that the user has permission to edit
|
|
23
|
+
* as well as design systems that the user has permission to read but not edit
|
|
24
|
+
* will be returned. Defaults to false.
|
|
25
|
+
*/
|
|
26
|
+
onlyEditAccess?: boolean;
|
|
27
|
+
}) => Promise<DesignSystem[]>;
|
|
20
28
|
export declare const getDisplayDesignSystems: (credentials: Credentials) => Promise<DisplayDesignSystem[]>;
|
|
21
29
|
export declare const getDesignSystemsByScope: (scope: DesignSystemScope, designSystems: DesignSystem[]) => DesignSystem[];
|
|
22
30
|
export declare const getDesignSystemByName: (designSystemName: string, designSystems: DesignSystem[]) => DesignSystem | null;
|
|
@@ -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[];
|