@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.
@@ -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,2 @@
1
+ import type { DevToolsSys } from "../core";
2
+ export declare const parseDesignSystemVersion: (sys: DevToolsSys, designSystemPackage: string) => Promise<string | null | undefined>;
@@ -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,5 @@
1
+ export declare const mockDeps: {
2
+ getStoredComponentDocs: () => Promise<never[]>;
3
+ storeComponentDocs: () => Promise<{}>;
4
+ runCodeGen: () => Promise<string>;
5
+ };
@@ -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): "number" | "string" | "boolean" | "object" | "array";
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;
@@ -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\"" | "builder.io";
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