builder.io 1.7.6 → 1.7.8

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.
@@ -33,6 +33,10 @@ export interface ToolContext extends Partial<FusionContext> {
33
33
  signal: AbortSignal;
34
34
  workingDirectory: string;
35
35
  allowedCommands: RegExp[];
36
+ getAllFiles: (options: {
37
+ getDotFiles?: boolean;
38
+ pattern?: string;
39
+ }) => Promise<string[]>;
36
40
  restore: (options: {
37
41
  location: "before" | "after";
38
42
  predicate: (turn: CodegenTurn | null, index: number) => boolean;
@@ -57,7 +61,7 @@ export interface ToolContext extends Partial<FusionContext> {
57
61
  writeFile: (filePath: string, content: string | Uint8Array) => Promise<boolean>;
58
62
  deleteFile: (filePath: string) => Promise<boolean>;
59
63
  fileExists: (filePath: string) => Promise<boolean>;
60
- listDir: (dirPath: string, ignoreGlobs?: string[]) => Promise<string[]>;
64
+ listDir: (dirPath: string) => Promise<string[]>;
61
65
  stat: (filePath: string) => Promise<{
62
66
  isDirectory: () => boolean;
63
67
  isFile: () => boolean;
@@ -194,7 +194,10 @@ export declare class CodeGenSession {
194
194
  logs: string;
195
195
  } | null>;
196
196
  setDebug(debug: boolean): void;
197
- getAllFiles(): Promise<string[]>;
197
+ getAllFiles(options?: {
198
+ getDotFiles?: boolean;
199
+ pattern?: string;
200
+ }): Promise<string[]>;
198
201
  getSessionId(): string;
199
202
  getSpaceId(): string | undefined;
200
203
  revertToCommitHash(commitHash: string): Promise<void>;
@@ -4,7 +4,7 @@ export declare function extractSignatureInfo(content: string): {
4
4
  sessionKey?: string;
5
5
  snippetId?: string;
6
6
  };
7
- export declare function getAllProjectFiles(basePath: string, globPattern?: string, extraIgnorePatterns?: string[]): Promise<string[]>;
7
+ export declare function getAllProjectFiles(basePath: string, globPattern?: string, extraIgnorePatterns?: string[], getDotFiles?: boolean): Promise<string[]>;
8
8
  export declare function findBuilderFiles(basePath: string, targetContentId: string, targetSessionKey: string): Promise<FileNode[]>;
9
9
  export declare function filterNonImportantFiles(files: string[]): string[];
10
10
  export declare function getIgnorePatterns(basePath: string): (path: string) => boolean;