@builder.io/dev-tools 1.7.9 → 1.7.10-dev.202507212120.a87b6e5f8
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/angular/index.cjs +46 -1
- package/angular/index.mjs +21 -1
- package/cli/index.cjs +108427 -3853
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +14129 -790
- package/core/index.mjs +14119 -790
- package/figma/index.cjs +47 -1
- package/figma/index.mjs +27 -1
- package/node/index.cjs +25310 -105
- package/node/index.mjs +25314 -105
- package/package.json +1 -1
- package/remix/build.cjs +132 -1
- package/remix/index.mjs +113 -1
- package/server/index.cjs +21941 -1468
- package/server/index.mjs +21937 -1465
- package/types/cli/codegen.d.ts +1 -1
- package/types/cli/launch/install-jsx-plugin.d.ts +7 -0
- package/types/cli/launch/logger.d.ts +38 -0
- package/types/cli/launch-init-v2.d.ts +13 -0
- package/types/cli/launch-init.d.ts +19 -0
- package/types/cli/repo-indexing-utils.d.ts +2 -0
- package/types/cli/repo-indexing.d.ts +17 -0
- package/types/cli/repo-indexing.mock.d.ts +5 -0
- package/types/cli/utils/repo-indexing-group-prompts.d.ts +1 -0
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/utils.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/vite/index.cjs +153 -3
- package/vite/index.mjs +119 -3
- package/webpack/index.cjs +2883 -27
- package/webpack/index.mjs +2871 -27
package/types/cli/codegen.d.ts
CHANGED
|
@@ -218,7 +218,7 @@ export declare class CodeGenSession {
|
|
|
218
218
|
sendFeedback(feedback: Partial<CodegenFeedback>): Promise<void>;
|
|
219
219
|
lastTurnHasChanges(): Promise<boolean>;
|
|
220
220
|
waitUntilState(state: GenerateCompletionState, timeout?: number): Promise<void>;
|
|
221
|
-
clearSession(): void
|
|
221
|
+
clearSession(): Promise<void>;
|
|
222
222
|
sendMessage(message: GenerateUserMessage, immediate?: boolean): Promise<void>;
|
|
223
223
|
getTurns(): CodegenTurn[];
|
|
224
224
|
getSessionContext(): SessionContext;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
+
import { type InstallOutcome } from "./helpers";
|
|
3
|
+
export declare const installJsxPlugin: (sys: DevToolsSys) => Promise<{
|
|
4
|
+
timestamp: string;
|
|
5
|
+
installOutcome: InstallOutcome;
|
|
6
|
+
error: string | undefined;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initialize logging by wrapping all console methods to write to logs file
|
|
3
|
+
*/
|
|
4
|
+
export declare function initializeLogging(): void;
|
|
5
|
+
/**
|
|
6
|
+
* Reset console methods to their original state
|
|
7
|
+
*/
|
|
8
|
+
export declare function resetLogging(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Display intro message with logging
|
|
11
|
+
*/
|
|
12
|
+
export declare const intro: (message: string) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Wrapped clack logging methods with file logging
|
|
15
|
+
*/
|
|
16
|
+
export declare const log: {
|
|
17
|
+
info: (message: string) => void;
|
|
18
|
+
success: (message: string) => void;
|
|
19
|
+
error: (message: string) => void;
|
|
20
|
+
warn: (message: string) => void;
|
|
21
|
+
step: (message: string) => void;
|
|
22
|
+
message: (message?: string, { symbol }?: import("@clack/prompts").LogMessageOptions) => void;
|
|
23
|
+
warning: (message: string) => void;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Display outro message with logging
|
|
27
|
+
*/
|
|
28
|
+
export declare const outro: (message: string) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Reads logs with pagination
|
|
31
|
+
* @param nextToken Line number to start reading from (0-indexed)
|
|
32
|
+
* @param limit Number of lines to read
|
|
33
|
+
* @returns Object containing logs array and next token
|
|
34
|
+
*/
|
|
35
|
+
export declare const readLogs: (nextToken?: number, limit?: number) => {
|
|
36
|
+
logs: string[];
|
|
37
|
+
nextToken: number | null;
|
|
38
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
+
import type { CLIArgs } from "./index";
|
|
3
|
+
export interface InitArgs extends CLIArgs {
|
|
4
|
+
repoFullName?: string;
|
|
5
|
+
branchName?: string;
|
|
6
|
+
githubToken?: string;
|
|
7
|
+
installCommand?: string;
|
|
8
|
+
dockerImageType?: "fusion-starter" | "node";
|
|
9
|
+
}
|
|
10
|
+
export declare function runLaunchInitCommandV2({ args, sys, }: {
|
|
11
|
+
sys: DevToolsSys;
|
|
12
|
+
args: InitArgs;
|
|
13
|
+
}): Promise<number>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DevToolsSys } from "@builder.io/dev-tools/core";
|
|
2
|
+
import type { CLIArgs } from "./index";
|
|
3
|
+
export interface InitArgs extends CLIArgs {
|
|
4
|
+
repoFullName?: string;
|
|
5
|
+
branchName?: string;
|
|
6
|
+
githubToken?: string;
|
|
7
|
+
installCommand?: string;
|
|
8
|
+
volumePath?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Indicates the type of docker image the CLI is running on.
|
|
11
|
+
*
|
|
12
|
+
* @default "node"
|
|
13
|
+
*/
|
|
14
|
+
dockerImageType?: "fusion-starter" | "node";
|
|
15
|
+
}
|
|
16
|
+
export declare function runLaunchInitCommand({ args, sys, }: {
|
|
17
|
+
sys: DevToolsSys;
|
|
18
|
+
args: InitArgs;
|
|
19
|
+
}): Promise<number>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DevToolsSys } from "../types";
|
|
2
|
+
import type { CLIArgs } from "./index";
|
|
3
|
+
export interface RepoIndexingDoc {
|
|
4
|
+
name: string;
|
|
5
|
+
content: string | {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
components: string[];
|
|
9
|
+
relevantFiles: string[];
|
|
10
|
+
}[];
|
|
11
|
+
createdDate: string;
|
|
12
|
+
description: string;
|
|
13
|
+
id: string;
|
|
14
|
+
ownerId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const runRepoIndexing: (sys: DevToolsSys, args: CLIArgs) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const REPO_INDEXING_GROUP_PROMPT: string;
|
|
@@ -17,7 +17,7 @@ export declare const NUMBER_TYPES: string[];
|
|
|
17
17
|
export declare const BOOLEAN_TYPES: string[];
|
|
18
18
|
export declare const ARRAY_TYPES: string[];
|
|
19
19
|
export declare const OBJECT_TYPES: string[];
|
|
20
|
-
export declare function getPrimitiveType(t: string): "
|
|
20
|
+
export declare function getPrimitiveType(t: string): "string" | "object" | "number" | "boolean" | "array";
|
|
21
21
|
export declare function removeQuotes(text: string): string;
|
|
22
22
|
export declare const resolveType: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string[] | undefined;
|
|
23
23
|
export declare const typeToString: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string;
|
package/types/common/utils.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function clone<T>(obj: T): T;
|
|
|
19
19
|
export declare function shouldSkipFolder(sys: DevToolsSys, skipFolders: Set<string>, fileName: string): boolean;
|
|
20
20
|
export declare function getPackageManager(): string;
|
|
21
21
|
export declare function isWindows(): boolean;
|
|
22
|
-
export declare function builderNpxPackage(): "\"@builder.io/dev-tools\""
|
|
22
|
+
export declare function builderNpxPackage(): "builder.io" | "\"@builder.io/dev-tools\"";
|
|
23
23
|
/**
|
|
24
24
|
* Sanitizes a component name for use in filesystem paths by replacing invalid characters with underscores
|
|
25
25
|
* @param name The component name to sanitize
|