@builder.io/dev-tools 1.7.4 → 1.7.5-dev.202507172057.680472589

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.
@@ -169,7 +169,9 @@ export declare class CodeGenSession {
169
169
  logs: string;
170
170
  } | null>;
171
171
  setDebug(debug: boolean): void;
172
- getAllFiles(): Promise<string[]>;
172
+ getAllFiles(options?: {
173
+ getDotFiles?: boolean;
174
+ }): Promise<string[]>;
173
175
  getSessionId(): string;
174
176
  getSpaceId(): string | undefined;
175
177
  revertToCommitHash(commitHash: string): Promise<void>;
@@ -228,9 +230,16 @@ export declare class CodeGenSession {
228
230
  configureDevOrchestrator(opts: {
229
231
  devCommand?: string;
230
232
  setupCommand?: string;
233
+ proxyPort?: number;
231
234
  proxyServer?: string;
232
235
  env?: Record<string, string | null>;
233
- }): Promise<void>;
236
+ replaceEnvs?: boolean;
237
+ }): Promise<{
238
+ devCommand: boolean;
239
+ setupCommand: boolean;
240
+ proxyServer: boolean;
241
+ env: boolean;
242
+ }>;
234
243
  close(uploadGitBackup?: boolean): Promise<void>;
235
244
  emitGitStatus(): Promise<GenerateCompletionStepGit | null>;
236
245
  manualCommit(options: {
@@ -23,13 +23,14 @@ export interface DevServerOrchestrator {
23
23
  proxyMiddleware: ProxyRequestHandler | undefined;
24
24
  pid: number | undefined;
25
25
  abortSetupCommand: () => void;
26
+ clearEnvVariables: () => void;
26
27
  setEnvVariable: (key: string, value: string | undefined) => void;
27
28
  ensureDevCommand: (abortSignal?: AbortSignal) => Promise<boolean>;
28
29
  ensureSetupCommand: (abortSignal?: AbortSignal) => Promise<boolean>;
29
30
  setupCommandPromise: Promise<SetupCommandResult> | undefined;
30
31
  runSetupCommand: (signal?: AbortSignal) => Promise<SetupCommandResult>;
31
- setSetupCommand: (newCommand: string, signal?: AbortSignal) => Promise<SetupCommandResult>;
32
- setCommand: (newCommand: string, signal?: AbortSignal) => Promise<boolean>;
32
+ setSetupCommand: (newCommand: string, forceRestart?: boolean, signal?: AbortSignal) => Promise<SetupCommandResult | null>;
33
+ setDevCommand: (newCommand: string, signal?: AbortSignal) => Promise<boolean>;
33
34
  setProxyServer: (newProxyServer: string) => Promise<boolean>;
34
35
  setPort: (newPort: number) => Promise<boolean>;
35
36
  pingServer: (signal?: AbortSignal) => Promise<Response>;
@@ -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
+ };
@@ -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;
@@ -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" | "number" | "boolean" | "object" | "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;