@builder.io/dev-tools 1.22.2-dev.202602021932.a1fb74ebb → 1.22.2-dev.202602022342.768d3c452

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.
Files changed (210) hide show
  1. package/cli/index.cjs +1186 -745
  2. package/cli/index.cjs.map +4 -4
  3. package/core/index.cjs +1 -1
  4. package/core/index.mjs +1 -1
  5. package/node/index.cjs +1 -1
  6. package/node/index.mjs +1 -1
  7. package/package.json +1 -1
  8. package/server/index.cjs +2 -5
  9. package/server/index.mjs +2 -5
  10. package/types/_tests_/utils.d.ts +35 -48
  11. package/types/cli/abort-signal-any.d.ts +1 -3
  12. package/types/cli/auth/auth-utils.d.ts +1 -3
  13. package/types/cli/auth/auth.d.ts +1 -5
  14. package/types/cli/backup.d.ts +60 -114
  15. package/types/cli/builder-add/interface.d.ts +4 -21
  16. package/types/cli/code-file-utils.d.ts +8 -11
  17. package/types/cli/code.d.ts +3 -13
  18. package/types/cli/constants.d.ts +1 -1
  19. package/types/cli/credentials.d.ts +45 -61
  20. package/types/cli/detectors/nextjs.d.ts +1 -4
  21. package/types/cli/detectors/svelte.d.ts +1 -4
  22. package/types/cli/detectors/vue.d.ts +1 -4
  23. package/types/cli/download.d.ts +4 -9
  24. package/types/cli/dsi-mcp.d.ts +1 -4
  25. package/types/cli/fetch.d.ts +2 -7
  26. package/types/cli/figma-publish.d.ts +17 -34
  27. package/types/cli/figma-utils.d.ts +21 -51
  28. package/types/cli/figma.d.ts +2 -9
  29. package/types/cli/generate.d.ts +11 -14
  30. package/types/cli/incremental-tsc.d.ts +7 -19
  31. package/types/cli/index.d.ts +154 -154
  32. package/types/cli/launch/InitStateMachine.d.ts +89 -156
  33. package/types/cli/launch/config.d.ts +3 -13
  34. package/types/cli/launch/dev-server-orchestrator.d.ts +99 -131
  35. package/types/cli/launch/dry-run-backup.d.ts +7 -14
  36. package/types/cli/launch/errors.d.ts +2 -7
  37. package/types/cli/launch/grafana.d.ts +1 -5
  38. package/types/cli/launch/helpers.d.ts +10 -19
  39. package/types/cli/launch/machine-health.d.ts +3 -8
  40. package/types/cli/launch/proxy.d.ts +4 -11
  41. package/types/cli/launch/server.d.ts +12 -19
  42. package/types/cli/launch/vscode-tunnel-manager.d.ts +68 -77
  43. package/types/cli/launch.d.ts +106 -109
  44. package/types/cli/prettier.d.ts +2 -9
  45. package/types/cli/repo-connect/env-collector.d.ts +11 -16
  46. package/types/cli/repo-connect/file-collector.d.ts +15 -22
  47. package/types/cli/repo-connect/git-detector.d.ts +11 -13
  48. package/types/cli/repo-connect/install-runner.d.ts +5 -8
  49. package/types/cli/repo-connect/package-detector.d.ts +8 -12
  50. package/types/cli/repo-connect/repo-connect.d.ts +1 -4
  51. package/types/cli/repo-indexing/component-discovery.d.ts +17 -30
  52. package/types/cli/repo-indexing/component-indexing.d.ts +20 -39
  53. package/types/cli/repo-indexing/icons.d.ts +24 -36
  54. package/types/cli/repo-indexing/installation.d.ts +14 -22
  55. package/types/cli/repo-indexing/repo-indexing-utils.d.ts +79 -138
  56. package/types/cli/repo-indexing/repo-indexing.d.ts +17 -37
  57. package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
  58. package/types/cli/repo-indexing/tokens.d.ts +25 -44
  59. package/types/cli/repo-indexing/types.d.ts +29 -29
  60. package/types/cli/repo-metrics-utils.d.ts +5 -13
  61. package/types/cli/repo-metrics.d.ts +1 -4
  62. package/types/cli/report/figma-report.d.ts +36 -63
  63. package/types/cli/server-ws.d.ts +32 -40
  64. package/types/cli/spinner.d.ts +4 -4
  65. package/types/cli/sync-utils.d.ts +18 -45
  66. package/types/cli/track.d.ts +1 -4
  67. package/types/cli/utils/agent-discovery.d.ts +5 -10
  68. package/types/cli/utils/agent-parser.d.ts +14 -18
  69. package/types/cli/utils/component-group-mdx-prompt.d.ts +1 -2
  70. package/types/cli/utils/discovery-test-utils.d.ts +1 -3
  71. package/types/cli/utils/env-capture.d.ts +15 -21
  72. package/types/cli/utils/env-substitution.d.ts +1 -4
  73. package/types/cli/utils/feature-flags.d.ts +1 -3
  74. package/types/cli/utils/file-overrides-manager.d.ts +23 -39
  75. package/types/cli/utils/git.d.ts +16 -28
  76. package/types/cli/utils/hosts-file-manager.d.ts +4 -7
  77. package/types/cli/utils/lock-file.d.ts +7 -10
  78. package/types/cli/utils/parseGitDiff.d.ts +1 -4
  79. package/types/cli/utils/process-tracker.d.ts +51 -85
  80. package/types/cli/utils/project-configuration-agent.d.ts +2 -0
  81. package/types/cli/utils/repo-indexing-agent-prompt.d.ts +1 -2
  82. package/types/cli/utils/rules-discovery.d.ts +5 -10
  83. package/types/cli/utils/rules-parser.d.ts +1 -5
  84. package/types/cli/utils/terminal-buffer.d.ts +23 -23
  85. package/types/cli/utils/workspace-path-resolver.d.ts +16 -23
  86. package/types/cli/utils/yaml-frontmatter.d.ts +6 -10
  87. package/types/client/client-api.d.ts +10 -42
  88. package/types/client/edit-button/document-listeners.d.ts +1 -3
  89. package/types/client/edit-button/index.d.ts +6 -6
  90. package/types/client/menu/index.d.ts +3 -3
  91. package/types/client/menu/pages/component-detail.d.ts +2 -8
  92. package/types/client/menu/pages/component-input.d.ts +1 -5
  93. package/types/client/menu/pages/component-list.d.ts +1 -4
  94. package/types/client/menu/toggle/menu-toggle.d.ts +1 -4
  95. package/types/client/setup-ui/overview.d.ts +2 -2
  96. package/types/client/tracking.d.ts +11 -11
  97. package/types/client/utils.d.ts +3 -5
  98. package/types/common/ast/app-dependencies.d.ts +2 -8
  99. package/types/common/ast/component-info.d.ts +6 -26
  100. package/types/common/ast/component-input-types.d.ts +9 -28
  101. package/types/common/ast/component-registry.d.ts +8 -23
  102. package/types/common/ast/convert-values.d.ts +8 -40
  103. package/types/common/ast/ensure-array-statement.d.ts +3 -7
  104. package/types/common/ast/ensure-comments.d.ts +1 -5
  105. package/types/common/ast/ensure-imports.d.ts +5 -10
  106. package/types/common/ast/exported-statements.d.ts +4 -8
  107. package/types/common/ast/imported-statements.d.ts +1 -5
  108. package/types/common/ast/normalize-statements.d.ts +3 -12
  109. package/types/common/ast/remove-unused-imports.d.ts +1 -4
  110. package/types/common/ast/transform.d.ts +3 -13
  111. package/types/common/ast/utils.d.ts +19 -42
  112. package/types/common/builder/builder-api.d.ts +23 -32
  113. package/types/common/builder/builder-sdks.d.ts +8 -10
  114. package/types/common/builder/content-generation.d.ts +7 -10
  115. package/types/common/builder/content-ids.d.ts +1 -2
  116. package/types/common/cache.d.ts +1 -4
  117. package/types/common/constants.d.ts +1 -2
  118. package/types/common/dotenv.d.ts +5 -24
  119. package/types/common/errors.d.ts +22 -50
  120. package/types/common/fs.d.ts +4 -17
  121. package/types/common/interactive-select-files.d.ts +2 -16
  122. package/types/common/mem-sys.d.ts +5 -7
  123. package/types/common/node-request.d.ts +4 -4
  124. package/types/common/path.d.ts +3 -1
  125. package/types/common/test-utils.d.ts +7 -21
  126. package/types/common/typescript.d.ts +7 -26
  127. package/types/common/utils.d.ts +8 -36
  128. package/types/core/adapters/angular/angular-api-key.d.ts +6 -29
  129. package/types/core/adapters/angular/angular-app-module-imports.d.ts +2 -12
  130. package/types/core/adapters/angular/angular-app-routes-update.d.ts +1 -6
  131. package/types/core/adapters/angular/angular-components.d.ts +12 -40
  132. package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +3 -9
  133. package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +4 -16
  134. package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +1 -3
  135. package/types/core/adapters/angular/angular-registry-parse.d.ts +10 -22
  136. package/types/core/adapters/angular/angular-registry.d.ts +2 -15
  137. package/types/core/adapters/angular/angular-test-utils.d.ts +4 -8
  138. package/types/core/adapters/angular/index.d.ts +12 -20
  139. package/types/core/adapters/angular/types.d.ts +5 -5
  140. package/types/core/adapters/next/index.d.ts +18 -26
  141. package/types/core/adapters/next/next-api-key.d.ts +1 -4
  142. package/types/core/adapters/next/next-component-info.d.ts +2 -9
  143. package/types/core/adapters/next/next-components.d.ts +1 -4
  144. package/types/core/adapters/next/next-ensure-builder-setup.d.ts +2 -6
  145. package/types/core/adapters/next/next-ensure-config-plugin.d.ts +1 -5
  146. package/types/core/adapters/next/next-registry-parse.d.ts +8 -21
  147. package/types/core/adapters/next/next-registry.d.ts +2 -15
  148. package/types/core/adapters/next/next-test-utils.d.ts +11 -21
  149. package/types/core/adapters/qwik-city/index.d.ts +6 -14
  150. package/types/core/adapters/qwik-city/qwik-api-key.d.ts +1 -4
  151. package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +1 -4
  152. package/types/core/adapters/qwik-city/qwik-components.d.ts +8 -23
  153. package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +2 -6
  154. package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +1 -5
  155. package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +10 -22
  156. package/types/core/adapters/qwik-city/qwik-registry.d.ts +2 -15
  157. package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +4 -8
  158. package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +1 -3
  159. package/types/core/adapters/react/index.d.ts +11 -19
  160. package/types/core/adapters/react/react-api-key.d.ts +1 -4
  161. package/types/core/adapters/react/react-builder-sdk-setup.d.ts +1 -3
  162. package/types/core/adapters/react/react-component-info.d.ts +2 -9
  163. package/types/core/adapters/react/react-components.d.ts +11 -37
  164. package/types/core/adapters/react/react-ensure-builder-setup.d.ts +2 -6
  165. package/types/core/adapters/react/react-registry-parse.d.ts +8 -21
  166. package/types/core/adapters/react/react-registry.d.ts +2 -15
  167. package/types/core/adapters/react/react-test-utils.d.ts +5 -11
  168. package/types/core/adapters/react/react-ts-program.d.ts +1 -3
  169. package/types/core/adapters/remix/index.d.ts +11 -19
  170. package/types/core/adapters/remix/remix-api-key.d.ts +1 -4
  171. package/types/core/adapters/remix/remix-components.d.ts +1 -4
  172. package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +3 -9
  173. package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +1 -5
  174. package/types/core/adapters/remix/remix-registry-parse.d.ts +10 -22
  175. package/types/core/adapters/remix/remix-registry.d.ts +2 -15
  176. package/types/core/adapters/remix/remix-test-utils.d.ts +5 -11
  177. package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +2 -12
  178. package/types/core/adapters/vue/index.d.ts +12 -20
  179. package/types/core/adapters/vue/vue-api-key.d.ts +1 -4
  180. package/types/core/adapters/vue/vue-components.d.ts +2 -10
  181. package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +3 -7
  182. package/types/core/adapters/vue/vue-registry-parse.d.ts +9 -19
  183. package/types/core/adapters/vue/vue-registry.d.ts +3 -6
  184. package/types/core/adapters/webpack/webpack-config-helpers.d.ts +3 -8
  185. package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +1 -5
  186. package/types/core/create-dev-tools.d.ts +1 -4
  187. package/types/core/detect-frameworks.d.ts +2 -7
  188. package/types/core/ensure-config-plugin.d.ts +2 -6
  189. package/types/core/find-dependencies.d.ts +3 -6
  190. package/types/core/import-export-registry.d.ts +2 -9
  191. package/types/core/index.d.ts +3 -18
  192. package/types/figma/index.d.ts +64 -95
  193. package/types/node/node-sys.d.ts +6 -13
  194. package/types/remix/index.d.ts +3 -5
  195. package/types/server/auth.d.ts +1 -4
  196. package/types/server/builder-connect.d.ts +6 -21
  197. package/types/server/client-script.d.ts +2 -6
  198. package/types/server/create-dev-tools-server.d.ts +1 -3
  199. package/types/server/dev-tools-api.d.ts +1 -4
  200. package/types/server/dev-tools-http-server.d.ts +1 -3
  201. package/types/server/index.d.ts +1 -28
  202. package/types/server/request-handler.d.ts +1 -6
  203. package/types/tsconfig.tsbuildinfo +1 -1
  204. package/types/types/codegen-server.d.ts +1 -1
  205. package/types/types/connection-tracker.d.ts +34 -34
  206. package/types/types/proxy-middleware.d.ts +15 -25
  207. package/types/types/websocket-types.d.ts +7 -9
  208. package/types/types.d.ts +358 -387
  209. package/types/vite/main.d.ts +1 -1
  210. package/types/webpack/main.d.ts +5 -5
@@ -7,24 +7,17 @@ export declare const BUILDER_API_ENDPOINT_PREFIX: string;
7
7
  * Endpoints that are not authenticated because they are used by the fly.io health check.
8
8
  */
9
9
  export declare const NON_AUTHENTICATED_ENDPOINTS: {
10
- readonly STATUS: "/status";
11
- readonly PROXY_STATUS: "/proxy-status";
12
- readonly STATUS_V2: "/status-v2";
13
- readonly INIT_LOGS: "/init-logs";
14
- readonly TUNNEL_STATUS: "/tunnel/status";
10
+ readonly STATUS: "/status";
11
+ readonly PROXY_STATUS: "/proxy-status";
12
+ readonly STATUS_V2: "/status-v2";
13
+ readonly INIT_LOGS: "/init-logs";
14
+ readonly TUNNEL_STATUS: "/tunnel/status";
15
15
  };
16
- export declare const configureServer: ({
17
- sys,
18
- app,
19
- validBuilderPrivateKey,
20
- authenticateProxy,
21
- isLocal,
22
- sharedState,
23
- }: {
24
- sys: DevToolsSys;
25
- app: Express;
26
- validBuilderPrivateKey: string | undefined;
27
- authenticateProxy: boolean;
28
- isLocal: boolean;
29
- sharedState: LaunchServerStatus;
16
+ export declare const configureServer: ({ sys, app, validBuilderPrivateKey, authenticateProxy, isLocal, sharedState, }: {
17
+ sys: DevToolsSys;
18
+ app: Express;
19
+ validBuilderPrivateKey: string | undefined;
20
+ authenticateProxy: boolean;
21
+ isLocal: boolean;
22
+ sharedState: LaunchServerStatus;
30
23
  }) => void;
@@ -7,23 +7,23 @@ export type TunnelStatus = "stopped" | "starting" | "running" | "error";
7
7
  * VS Code Tunnel information
8
8
  */
9
9
  export interface TunnelInfo {
10
- status: TunnelStatus;
11
- name: string | null;
12
- url: string | null;
13
- vscodeUri: string | null;
14
- cursorUri: string | null;
15
- webUrl: string | null;
16
- error: string | null;
17
- workspacePath: string;
10
+ status: TunnelStatus;
11
+ name: string | null;
12
+ url: string | null;
13
+ vscodeUri: string | null;
14
+ cursorUri: string | null;
15
+ webUrl: string | null;
16
+ error: string | null;
17
+ workspacePath: string;
18
18
  }
19
19
  /**
20
20
  * Options for starting a VS Code tunnel
21
21
  */
22
22
  export interface TunnelOptions {
23
- name: string;
24
- workspacePath?: string;
25
- acceptLicense?: boolean;
26
- autoRestart?: boolean;
23
+ name: string;
24
+ workspacePath?: string;
25
+ acceptLicense?: boolean;
26
+ autoRestart?: boolean;
27
27
  }
28
28
  /**
29
29
  * VS Code Tunnel Manager
@@ -36,59 +36,59 @@ export interface TunnelOptions {
36
36
  * - Cleanup on shutdown
37
37
  */
38
38
  export declare class VSCodeTunnelManager extends EventEmitter {
39
- private process;
40
- private status;
41
- private tunnelName;
42
- private tunnelUrl;
43
- private error;
44
- private workspacePath;
45
- private autoRestart;
46
- private restartAttempts;
47
- private maxRestartAttempts;
48
- private restartDelay;
49
- private isShuttingDown;
50
- constructor();
51
- /**
52
- * Start the VS Code tunnel
53
- */
54
- start(options: TunnelOptions): Promise<TunnelInfo>;
55
- /**
56
- * Spawn the tunnel process
57
- */
58
- private spawnTunnel;
59
- /**
60
- * Parse tunnel output to extract URL
61
- */
62
- private parseOutput;
63
- /**
64
- * Stop the VS Code tunnel
65
- */
66
- stop(): Promise<void>;
67
- /**
68
- * Get current tunnel information
69
- */
70
- getInfo(): TunnelInfo;
71
- /**
72
- * Get tunnel status
73
- */
74
- getStatus(): TunnelStatus;
75
- /**
76
- * Check if tunnel is enabled
77
- * Enabled by default for cloud environments, can be disabled with VSCODE_TUNNEL_ENABLED=false
78
- */
79
- static isEnabled(): boolean;
80
- /**
81
- * Check if auto-start is enabled
82
- */
83
- static isAutoStartEnabled(): boolean;
84
- /**
85
- * Get the configured tunnel name from environment or generate one
86
- */
87
- static getTunnelName(projectId?: string, branchName?: string): string;
88
- /**
89
- * Get the configured workspace path
90
- */
91
- static getWorkspacePath(): string;
39
+ private process;
40
+ private status;
41
+ private tunnelName;
42
+ private tunnelUrl;
43
+ private error;
44
+ private workspacePath;
45
+ private autoRestart;
46
+ private restartAttempts;
47
+ private maxRestartAttempts;
48
+ private restartDelay;
49
+ private isShuttingDown;
50
+ constructor();
51
+ /**
52
+ * Start the VS Code tunnel
53
+ */
54
+ start(options: TunnelOptions): Promise<TunnelInfo>;
55
+ /**
56
+ * Spawn the tunnel process
57
+ */
58
+ private spawnTunnel;
59
+ /**
60
+ * Parse tunnel output to extract URL
61
+ */
62
+ private parseOutput;
63
+ /**
64
+ * Stop the VS Code tunnel
65
+ */
66
+ stop(): Promise<void>;
67
+ /**
68
+ * Get current tunnel information
69
+ */
70
+ getInfo(): TunnelInfo;
71
+ /**
72
+ * Get tunnel status
73
+ */
74
+ getStatus(): TunnelStatus;
75
+ /**
76
+ * Check if tunnel is enabled
77
+ * Enabled by default for cloud environments, can be disabled with VSCODE_TUNNEL_ENABLED=false
78
+ */
79
+ static isEnabled(): boolean;
80
+ /**
81
+ * Check if auto-start is enabled
82
+ */
83
+ static isAutoStartEnabled(): boolean;
84
+ /**
85
+ * Get the configured tunnel name from environment or generate one
86
+ */
87
+ static getTunnelName(projectId?: string, branchName?: string): string;
88
+ /**
89
+ * Get the configured workspace path
90
+ */
91
+ static getWorkspacePath(): string;
92
92
  }
93
93
  /**
94
94
  * Get the singleton tunnel manager instance
@@ -97,21 +97,12 @@ export declare function getTunnelManager(): VSCodeTunnelManager;
97
97
  /**
98
98
  * Generate VS Code deep link for a tunnel
99
99
  */
100
- export declare function generateVSCodeDeepLink(
101
- tunnelName: string,
102
- workspacePath?: string,
103
- ): string;
100
+ export declare function generateVSCodeDeepLink(tunnelName: string, workspacePath?: string): string;
104
101
  /**
105
102
  * Generate Cursor deep link for a tunnel
106
103
  */
107
- export declare function generateCursorDeepLink(
108
- tunnelName: string,
109
- workspacePath?: string,
110
- ): string;
104
+ export declare function generateCursorDeepLink(tunnelName: string, workspacePath?: string): string;
111
105
  /**
112
106
  * Generate web editor link for a tunnel
113
107
  */
114
- export declare function generateWebEditorLink(
115
- tunnelName: string,
116
- workspacePath?: string,
117
- ): string;
108
+ export declare function generateWebEditorLink(tunnelName: string, workspacePath?: string): string;
@@ -2,114 +2,111 @@ import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
2
  import type { CLIArgs } from "./index";
3
3
  export declare const DEFAULT_PROXY_PORT = 48752;
4
4
  export interface LaunchArgs extends CLIArgs {
5
- /** Project ID for the dev server. Only needed when running in a remote container. */
6
- projectId?: string;
7
- /** Branch name for the dev server. Only needed when running in a remote container. */
8
- branchName?: string;
9
- /** Silent mode for launch command */
10
- silent?: boolean;
11
- /** Port number for the dev server */
12
- port?: number;
13
- /** Port number for the dev server (shorthand) */
14
- p?: number;
15
- /** Dev server command to execute */
16
- command?: string;
17
- /** Install command to execute */
18
- installCommand?: string;
19
- /** Dev server command to execute (shorthand) */
20
- c?: string;
21
- /** Dev server URL to proxy to (alternative to command + port) */
22
- serverUrl?: string;
23
- /**
24
- * If true, CLI will run the init command instead of the launch command.
25
- *
26
- * @default false
27
- */
28
- fusionInit?: boolean;
29
- /**
30
- * If true, CLI will be interactive and prompt the user for input.
31
- *
32
- * @default true
33
- */
34
- interactive?: boolean;
35
- /**
36
- * Decides whether to skip authentication for the user's proxy server.
37
- * Our own _builder.io/ endpoitns are always authenticated.
38
- *
39
- * @default false
40
- */
41
- authenticateProxy?: boolean;
42
- /**
43
- * Indicates the type of docker image the CLI is running on.
44
- *
45
- * @default "node"
46
- */
47
- dockerImageType?: "fusion-starter" | "node";
48
- /**
49
- * Output structured JSON data.
50
- * Useful for programmatic consumption (e.g., VSCode extensions).
51
- *
52
- * @default false
53
- */
54
- jsonOutput?: boolean;
55
- /**
56
- * Enable local development mode with port availability checking.
57
- * When enabled, automatically finds an available port if the default is in use.
58
- *
59
- * @default false
60
- */
61
- local?: boolean;
62
- /**
63
- * Enable privacy mode for codegen.
64
- * When enabled, encrypts sensitive data in communication with the AI service.
65
- *
66
- * @default false
67
- */
68
- privacyMode?: boolean;
69
- /**
70
- * Auto-detect dev server URL and port from command output.
71
- * When enabled, the system will parse the dev server output to automatically
72
- * detect the server URL and port instead of requiring manual configuration.
73
- *
74
- * @default false
75
- */
76
- autoDetectDevServer?: boolean;
77
- /** Inlined to builder.config.json file */
78
- configJson?: string;
79
- /** Path to fusion.config.json file */
80
- configPath?: string;
81
- /**
82
- * Enable HTTPS server.
83
- * When enabled, creates both HTTP and HTTPS servers.
84
- *
85
- * @default false
86
- */
87
- https?: boolean;
88
- /**
89
- * Custom domain to use instead of localhost in proxy URLs.
90
- * Useful for development with custom SSL certificates.
91
- */
92
- localHttpsDomain?: string;
93
- /**
94
- * Enable native app mode.
95
- * When enabled, runs setup and dev commands without proxy server functionality.
96
- * Useful for native app development where the simulator handles its own server.
97
- *
98
- * @default false
99
- */
100
- nativeApp?: boolean;
101
- /**
102
- * Open Builder in chat-only mode.
103
- * When enabled, adds ?chatOnly=true to the Builder URL.
104
- *
105
- * @default false
106
- */
107
- chat?: boolean;
5
+ /** Project ID for the dev server. Only needed when running in a remote container. */
6
+ projectId?: string;
7
+ /** Branch name for the dev server. Only needed when running in a remote container. */
8
+ branchName?: string;
9
+ /** Silent mode for launch command */
10
+ silent?: boolean;
11
+ /** Port number for the dev server */
12
+ port?: number;
13
+ /** Port number for the dev server (shorthand) */
14
+ p?: number;
15
+ /** Dev server command to execute */
16
+ command?: string;
17
+ /** Install command to execute */
18
+ installCommand?: string;
19
+ /** Dev server command to execute (shorthand) */
20
+ c?: string;
21
+ /** Dev server URL to proxy to (alternative to command + port) */
22
+ serverUrl?: string;
23
+ /**
24
+ * If true, CLI will run the init command instead of the launch command.
25
+ *
26
+ * @default false
27
+ */
28
+ fusionInit?: boolean;
29
+ /**
30
+ * If true, CLI will be interactive and prompt the user for input.
31
+ *
32
+ * @default true
33
+ */
34
+ interactive?: boolean;
35
+ /**
36
+ * Decides whether to skip authentication for the user's proxy server.
37
+ * Our own _builder.io/ endpoitns are always authenticated.
38
+ *
39
+ * @default false
40
+ */
41
+ authenticateProxy?: boolean;
42
+ /**
43
+ * Indicates the type of docker image the CLI is running on.
44
+ *
45
+ * @default "node"
46
+ */
47
+ dockerImageType?: "fusion-starter" | "node";
48
+ /**
49
+ * Output structured JSON data.
50
+ * Useful for programmatic consumption (e.g., VSCode extensions).
51
+ *
52
+ * @default false
53
+ */
54
+ jsonOutput?: boolean;
55
+ /**
56
+ * Enable local development mode with port availability checking.
57
+ * When enabled, automatically finds an available port if the default is in use.
58
+ *
59
+ * @default false
60
+ */
61
+ local?: boolean;
62
+ /**
63
+ * Enable privacy mode for codegen.
64
+ * When enabled, encrypts sensitive data in communication with the AI service.
65
+ *
66
+ * @default false
67
+ */
68
+ privacyMode?: boolean;
69
+ /**
70
+ * Auto-detect dev server URL and port from command output.
71
+ * When enabled, the system will parse the dev server output to automatically
72
+ * detect the server URL and port instead of requiring manual configuration.
73
+ *
74
+ * @default false
75
+ */
76
+ autoDetectDevServer?: boolean;
77
+ /** Inlined to builder.config.json file */
78
+ configJson?: string;
79
+ /** Path to fusion.config.json file */
80
+ configPath?: string;
81
+ /**
82
+ * Enable HTTPS server.
83
+ * When enabled, creates both HTTP and HTTPS servers.
84
+ *
85
+ * @default false
86
+ */
87
+ https?: boolean;
88
+ /**
89
+ * Custom domain to use instead of localhost in proxy URLs.
90
+ * Useful for development with custom SSL certificates.
91
+ */
92
+ localHttpsDomain?: string;
93
+ /**
94
+ * Enable native app mode.
95
+ * When enabled, runs setup and dev commands without proxy server functionality.
96
+ * Useful for native app development where the simulator handles its own server.
97
+ *
98
+ * @default false
99
+ */
100
+ nativeApp?: boolean;
101
+ /**
102
+ * Open Builder in chat-only mode.
103
+ * When enabled, adds ?chatOnly=true to the Builder URL.
104
+ *
105
+ * @default false
106
+ */
107
+ chat?: boolean;
108
108
  }
109
- export declare function runFusionCommand({
110
- sys,
111
- args,
112
- }: {
113
- sys: DevToolsSys;
114
- args: LaunchArgs;
109
+ export declare function runFusionCommand({ sys, args, }: {
110
+ sys: DevToolsSys;
111
+ args: LaunchArgs;
115
112
  }): Promise<void>;
@@ -8,16 +8,9 @@
8
8
  * Load prettier, preferring the user's local installation.
9
9
  * Falls back to built-in prettier, or null if not available.
10
10
  */
11
- export declare function loadPrettier(
12
- absoluteFilePath: string | undefined,
13
- ): typeof import("prettier") | null;
11
+ export declare function loadPrettier(absoluteFilePath: string | undefined): typeof import("prettier") | null;
14
12
  /**
15
13
  * Format code using prettier.
16
14
  * Gracefully returns original code if prettier is not available.
17
15
  */
18
- export declare function prettierFormat(
19
- workingDirectory: string,
20
- code: string,
21
- parser: string | undefined,
22
- filePath: string | undefined,
23
- ): Promise<string>;
16
+ export declare function prettierFormat(workingDirectory: string, code: string, parser: string | undefined, filePath: string | undefined): Promise<string>;
@@ -1,32 +1,27 @@
1
1
  import type { EnvironmentVariable } from "$/ai-utils";
2
2
  import type { DevToolsSys } from "../../types";
3
3
  interface CategorizedEnvVar {
4
- key: string;
5
- value: string;
6
- category: string;
7
- isSecret: boolean;
8
- shouldPreselect: boolean;
9
- fromDotEnv?: boolean;
4
+ key: string;
5
+ value: string;
6
+ category: string;
7
+ isSecret: boolean;
8
+ shouldPreselect: boolean;
9
+ fromDotEnv?: boolean;
10
10
  }
11
11
  /**
12
12
  * Filter and categorize environment variables
13
13
  */
14
- export declare function filterAndCategorizeEnvVars(
15
- dotEnvVars?: Record<string, string>,
16
- ): CategorizedEnvVar[];
14
+ export declare function filterAndCategorizeEnvVars(dotEnvVars?: Record<string, string>): CategorizedEnvVar[];
17
15
  /**
18
16
  * Present multiselect UI for environment variables
19
17
  */
20
- export declare function selectEnvironmentVariables(
21
- sys: DevToolsSys,
22
- gitRoot: string,
23
- ): Promise<EnvironmentVariable[] | null>;
18
+ export declare function selectEnvironmentVariables(sys: DevToolsSys, gitRoot: string): Promise<EnvironmentVariable[] | null>;
24
19
  /**
25
20
  * Format environment variables summary
26
21
  */
27
22
  export declare function formatEnvSummary(envVars: EnvironmentVariable[]): {
28
- total: number;
29
- secrets: number;
30
- public: number;
23
+ total: number;
24
+ secrets: number;
25
+ public: number;
31
26
  };
32
27
  export {};
@@ -1,26 +1,23 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { FileOverride } from "$/ai-utils";
3
3
  export interface CollectedFiles {
4
- projectNpmrc?: {
5
- path: string;
6
- content: string;
7
- };
8
- userNpmrc?: {
9
- path: string;
10
- content: string;
11
- };
12
- etcHosts?: {
13
- path: string;
14
- content: string;
15
- };
4
+ projectNpmrc?: {
5
+ path: string;
6
+ content: string;
7
+ };
8
+ userNpmrc?: {
9
+ path: string;
10
+ content: string;
11
+ };
12
+ etcHosts?: {
13
+ path: string;
14
+ content: string;
15
+ };
16
16
  }
17
17
  /**
18
18
  * Collect configuration files from the project and system
19
19
  */
20
- export declare function collectConfigFiles(
21
- sys: DevToolsSys,
22
- gitRoot: string,
23
- ): Promise<CollectedFiles>;
20
+ export declare function collectConfigFiles(sys: DevToolsSys, gitRoot: string): Promise<CollectedFiles>;
24
21
  /**
25
22
  * Convert collected files to FileOverride array with proper path conventions
26
23
  *
@@ -29,9 +26,7 @@ export declare function collectConfigFiles(
29
26
  * - ~/ prefix = relative to home directory
30
27
  * - absolute paths = only for well-known system files
31
28
  */
32
- export declare function filesToFileOverrides(
33
- collected: CollectedFiles,
34
- ): FileOverride[];
29
+ export declare function filesToFileOverrides(collected: CollectedFiles): FileOverride[];
35
30
  /**
36
31
  * Format collected files summary
37
32
  */
@@ -39,6 +34,4 @@ export declare function formatFilesSummary(collected: CollectedFiles): string[];
39
34
  /**
40
35
  * Present multiselect UI for file overrides
41
36
  */
42
- export declare function selectFileOverrides(
43
- collected: CollectedFiles,
44
- ): Promise<FileOverride[] | null>;
37
+ export declare function selectFileOverrides(collected: CollectedFiles): Promise<FileOverride[] | null>;
@@ -1,22 +1,20 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  export interface GitInfo {
3
- gitRoot: string;
4
- recommendedRoot?: string;
5
- originUrl: string;
6
- repoProvider: "github" | "gitlab" | "bitbucket" | "azure" | "custom";
7
- repoProtocol: "https" | "ssh";
8
- repoFullName: string;
9
- repoOwner: string;
10
- repoName: string;
11
- isPrivate: boolean;
12
- projectName: string;
3
+ gitRoot: string;
4
+ recommendedRoot?: string;
5
+ originUrl: string;
6
+ repoProvider: "github" | "gitlab" | "bitbucket" | "azure" | "custom";
7
+ repoProtocol: "https" | "ssh";
8
+ repoFullName: string;
9
+ repoOwner: string;
10
+ repoName: string;
11
+ isPrivate: boolean;
12
+ projectName: string;
13
13
  }
14
14
  /**
15
15
  * Detect git repository information
16
16
  */
17
- export declare function detectGitInfo(
18
- sys: DevToolsSys,
19
- ): Promise<GitInfo | undefined>;
17
+ export declare function detectGitInfo(sys: DevToolsSys): Promise<GitInfo | undefined>;
20
18
  /**
21
19
  * Display git info in a user-friendly format
22
20
  */
@@ -1,13 +1,10 @@
1
1
  export interface InstallResult {
2
- success: boolean;
3
- command: string;
4
- exitCode?: number;
5
- skipped: boolean;
2
+ success: boolean;
3
+ command: string;
4
+ exitCode?: number;
5
+ skipped: boolean;
6
6
  }
7
7
  /**
8
8
  * Run install command with live output and retry logic
9
9
  */
10
- export declare function runInstallCommand(
11
- cwd: string,
12
- initialCommand?: string,
13
- ): Promise<InstallResult>;
10
+ export declare function runInstallCommand(cwd: string, initialCommand?: string): Promise<InstallResult>;
@@ -1,11 +1,11 @@
1
1
  import type { SetupMiseDependency } from "$/ai-utils";
2
2
  export interface PackageVersions {
3
- node?: string;
4
- npm?: string;
5
- pnpm?: string;
6
- yarn?: string;
7
- bun?: string;
8
- deno?: string;
3
+ node?: string;
4
+ npm?: string;
5
+ pnpm?: string;
6
+ yarn?: string;
7
+ bun?: string;
8
+ deno?: string;
9
9
  }
10
10
  /**
11
11
  * Detect versions of installed package managers and runtimes
@@ -14,12 +14,8 @@ export declare function detectPackageVersions(): Promise<PackageVersions>;
14
14
  /**
15
15
  * Convert package versions to SetupMiseDependency array
16
16
  */
17
- export declare function packagesToSetupDependencies(
18
- versions: PackageVersions,
19
- ): SetupMiseDependency[];
17
+ export declare function packagesToSetupDependencies(versions: PackageVersions): SetupMiseDependency[];
20
18
  /**
21
19
  * Format package versions for display
22
20
  */
23
- export declare function formatPackageVersions(
24
- versions: PackageVersions,
25
- ): string;
21
+ export declare function formatPackageVersions(versions: PackageVersions): string;
@@ -3,7 +3,4 @@ import type { CLIArgs } from "../index";
3
3
  /**
4
4
  * Main connect-repo command handler
5
5
  */
6
- export declare function runRepoConnectCommand(
7
- sys: DevToolsSys,
8
- args: CLIArgs,
9
- ): Promise<void>;
6
+ export declare function runRepoConnectCommand(sys: DevToolsSys, args: CLIArgs): Promise<void>;