builder.io 1.11.13 → 1.11.14

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.
@@ -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;
@@ -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, userSettings: UserSettings | null, onlyEditAccess?: boolean) => Promise<DesignSystem[]>;
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;