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.
- package/cli/index.cjs +107 -110
- 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/code-tools.d.ts +5 -1
- package/types/cli/codegen.d.ts +4 -1
- package/types/cli/sync-utils.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types.d.ts +1 -1
|
@@ -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
|
|
64
|
+
listDir: (dirPath: string) => Promise<string[]>;
|
|
61
65
|
stat: (filePath: string) => Promise<{
|
|
62
66
|
isDirectory: () => boolean;
|
|
63
67
|
isFile: () => boolean;
|
package/types/cli/codegen.d.ts
CHANGED
|
@@ -194,7 +194,10 @@ export declare class CodeGenSession {
|
|
|
194
194
|
logs: string;
|
|
195
195
|
} | null>;
|
|
196
196
|
setDebug(debug: boolean): void;
|
|
197
|
-
getAllFiles(
|
|
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;
|