@builder.io/dev-tools 1.19.3 → 1.19.5
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 +417 -417
- 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 +13 -13
- package/server/index.mjs +13 -13
- package/types/cli/utils/codegen-utils.d.ts +2 -1
- package/types/cli/utils/rules-discovery.d.ts +5 -3
- package/types/cli/utils/rules-discovery.test.d.ts +1 -0
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -39,7 +39,7 @@ export declare const parseCLIURL: (url: string | undefined) => {
|
|
|
39
39
|
export declare function getUserContext(sys: DevToolsSys, gitWorkingDirectory?: string): Promise<UserContext>;
|
|
40
40
|
export declare function makeAsyncIterator<T>(): readonly [AsyncGenerator<T, void, void>, (event: T) => void, () => void];
|
|
41
41
|
export declare function isAGENTSFile(filePath: string): boolean;
|
|
42
|
-
export declare function isBaseImportantFile(filePath: string): boolean;
|
|
42
|
+
export declare function isBaseImportantFile(filePath: string, recommendedRootDir: string): boolean;
|
|
43
43
|
export declare function hasBuildError(text: string): boolean;
|
|
44
44
|
/**
|
|
45
45
|
* Loads a workspace configuration from a JSON file
|
|
@@ -76,3 +76,4 @@ export declare function waitRace(promise: Promise<any>, timeout: number): Promis
|
|
|
76
76
|
export declare function newAbortError(): Error;
|
|
77
77
|
export declare function getDevServerStep(devServer: DevServerOrchestrator, fusionConfig: FusionConfig | undefined): GenerateCompletionStepDevServerState;
|
|
78
78
|
export declare function moveArrayElement<T>(arr: T[], old_index: number, new_index: number): T[];
|
|
79
|
+
export declare function computeRecommendedRootDir(workspace: WorkspaceConfiguration | undefined): string;
|
|
@@ -7,8 +7,10 @@ import type { CustomInstruction } from "$/ai-utils";
|
|
|
7
7
|
/**
|
|
8
8
|
* Get custom instructions from the filesystem
|
|
9
9
|
* Searches for instruction files in:
|
|
10
|
-
* - .cursor/rules/
|
|
11
|
-
* - .builder/rules/
|
|
10
|
+
* - .cursor/rules/ - Rule files (.mdc, .md, etc.)
|
|
11
|
+
* - .builder/rules/ - Rule files (.mdc, .md, etc.)
|
|
12
|
+
* - .claude/skills/ - SKILL.md files only (subdirectories supported)
|
|
13
|
+
* - .builder/skills/ - SKILL.md files only (subdirectories supported)
|
|
12
14
|
* - .cursorrules, .builderrules, .windsurfrules
|
|
13
15
|
* - .github/copilot-instructions.md
|
|
14
16
|
*
|
|
@@ -16,7 +18,7 @@ import type { CustomInstruction } from "$/ai-utils";
|
|
|
16
18
|
* @param projectDir - Project directory (used for relative paths)
|
|
17
19
|
* @param currentDir - Starting directory for search
|
|
18
20
|
* @param rootDir - Root directory to stop search
|
|
19
|
-
* @returns Array of discovered custom instructions
|
|
21
|
+
* @returns Array of discovered custom instructions (both rules and skills)
|
|
20
22
|
*/
|
|
21
23
|
export declare function getCustomInstructions({ sys, projectDir, currentDir, rootDir, }: {
|
|
22
24
|
sys: DevToolsSys;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|