@builder.io/dev-tools 1.25.0-dev.202602091727.eacc0b043 → 1.26.0-dev.202602091901.45f4b8d8b

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 (228) hide show
  1. package/cli/index.cjs +1698 -406
  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 +3 -3
  8. package/server/index.cjs +16 -90
  9. package/server/index.mjs +16 -90
  10. package/types/_tests_/utils.d.ts +48 -35
  11. package/types/cli/abort-signal-any.d.ts +3 -1
  12. package/types/cli/auth/auth-utils.d.ts +3 -1
  13. package/types/cli/auth/auth.d.ts +5 -1
  14. package/types/cli/backup.d.ts +114 -60
  15. package/types/cli/builder-add/interface.d.ts +21 -4
  16. package/types/cli/code-file-utils.d.ts +11 -8
  17. package/types/cli/code.d.ts +13 -3
  18. package/types/cli/codegen.d.ts +9 -1
  19. package/types/cli/credentials.d.ts +61 -45
  20. package/types/cli/detectors/nextjs.d.ts +4 -1
  21. package/types/cli/detectors/svelte.d.ts +4 -1
  22. package/types/cli/detectors/vue.d.ts +4 -1
  23. package/types/cli/doctor/doctor.d.ts +3 -0
  24. package/types/cli/download.d.ts +9 -4
  25. package/types/cli/dsi-mcp.d.ts +4 -1
  26. package/types/cli/figma-publish.d.ts +34 -17
  27. package/types/cli/figma-utils.d.ts +51 -21
  28. package/types/cli/figma.d.ts +9 -2
  29. package/types/cli/generate.d.ts +14 -11
  30. package/types/cli/incremental-tsc.d.ts +19 -7
  31. package/types/cli/index.d.ts +154 -154
  32. package/types/cli/launch/config.d.ts +13 -3
  33. package/types/cli/launch/dry-run-backup.d.ts +14 -7
  34. package/types/cli/launch/errors.d.ts +7 -2
  35. package/types/cli/launch/grafana.d.ts +5 -1
  36. package/types/cli/launch/helpers.d.ts +19 -10
  37. package/types/cli/launch/machine-health.d.ts +8 -3
  38. package/types/cli/launch/proxy.d.ts +11 -4
  39. package/types/cli/launch/server.d.ts +19 -12
  40. package/types/cli/launch/vscode-tunnel-manager.d.ts +77 -68
  41. package/types/cli/launch.d.ts +109 -106
  42. package/types/cli/prettier.d.ts +9 -2
  43. package/types/cli/repo-connect/env-collector.d.ts +16 -11
  44. package/types/cli/repo-connect/file-collector.d.ts +22 -15
  45. package/types/cli/repo-connect/git-detector.d.ts +13 -11
  46. package/types/cli/repo-connect/install-runner.d.ts +8 -5
  47. package/types/cli/repo-connect/package-detector.d.ts +12 -8
  48. package/types/cli/repo-connect/repo-connect.d.ts +4 -1
  49. package/types/cli/repo-indexing/component-discovery.d.ts +30 -17
  50. package/types/cli/repo-indexing/icons.d.ts +36 -24
  51. package/types/cli/repo-indexing/installation.d.ts +22 -14
  52. package/types/cli/repo-indexing/repo-indexing-utils.d.ts +138 -79
  53. package/types/cli/repo-indexing/repo-indexing.d.ts +37 -17
  54. package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
  55. package/types/cli/repo-indexing/tokens.d.ts +44 -25
  56. package/types/cli/repo-metrics-utils.d.ts +13 -5
  57. package/types/cli/repo-metrics.d.ts +4 -1
  58. package/types/cli/report/figma-report.d.ts +63 -36
  59. package/types/cli/server-ws.d.ts +40 -32
  60. package/types/cli/spinner.d.ts +4 -4
  61. package/types/cli/track.d.ts +4 -1
  62. package/types/cli/utils/agent-discovery.d.ts +10 -5
  63. package/types/cli/utils/agent-parser.d.ts +0 -6
  64. package/types/cli/utils/codegen-utils.d.ts +10 -1
  65. package/types/cli/utils/component-group-mdx-prompt.d.ts +2 -1
  66. package/types/cli/utils/discovery-test-utils.d.ts +3 -1
  67. package/types/cli/utils/env-capture.d.ts +21 -15
  68. package/types/cli/utils/env-substitution.d.ts +4 -1
  69. package/types/cli/utils/feature-flags.d.ts +3 -1
  70. package/types/cli/utils/file-overrides-manager.d.ts +39 -23
  71. package/types/cli/utils/git.d.ts +28 -16
  72. package/types/cli/utils/hosts-file-manager.d.ts +7 -4
  73. package/types/cli/utils/lock-file.d.ts +10 -7
  74. package/types/cli/utils/parseGitDiff.d.ts +4 -1
  75. package/types/cli/utils/process-tracker.d.ts +85 -51
  76. package/types/cli/utils/rules-discovery.d.ts +10 -5
  77. package/types/cli/utils/rules-parser.d.ts +5 -1
  78. package/types/cli/utils/terminal-buffer.d.ts +23 -23
  79. package/types/cli/utils/workspace-path-resolver.d.ts +23 -16
  80. package/types/cli/utils/yaml-frontmatter.d.ts +10 -6
  81. package/types/client/client-api.d.ts +42 -10
  82. package/types/client/edit-button/document-listeners.d.ts +3 -1
  83. package/types/client/edit-button/index.d.ts +6 -6
  84. package/types/client/menu/index.d.ts +3 -3
  85. package/types/client/menu/pages/component-detail.d.ts +8 -2
  86. package/types/client/menu/pages/component-input.d.ts +5 -1
  87. package/types/client/menu/pages/component-list.d.ts +4 -1
  88. package/types/client/menu/toggle/menu-toggle.d.ts +4 -1
  89. package/types/client/setup-ui/overview.d.ts +2 -2
  90. package/types/client/tracking.d.ts +11 -11
  91. package/types/client/utils.d.ts +5 -3
  92. package/types/common/ast/app-dependencies.d.ts +8 -2
  93. package/types/common/ast/component-info.d.ts +26 -6
  94. package/types/common/ast/component-input-types.d.ts +28 -9
  95. package/types/common/ast/component-registry.d.ts +23 -8
  96. package/types/common/ast/convert-values.d.ts +40 -8
  97. package/types/common/ast/ensure-array-statement.d.ts +7 -3
  98. package/types/common/ast/ensure-comments.d.ts +5 -1
  99. package/types/common/ast/ensure-imports.d.ts +10 -5
  100. package/types/common/ast/exported-statements.d.ts +8 -4
  101. package/types/common/ast/imported-statements.d.ts +5 -1
  102. package/types/common/ast/normalize-statements.d.ts +12 -3
  103. package/types/common/ast/remove-unused-imports.d.ts +4 -1
  104. package/types/common/ast/transform.d.ts +13 -3
  105. package/types/common/ast/utils.d.ts +42 -19
  106. package/types/common/builder/builder-api.d.ts +32 -23
  107. package/types/common/builder/builder-sdks.d.ts +10 -8
  108. package/types/common/builder/content-generation.d.ts +10 -7
  109. package/types/common/builder/content-ids.d.ts +2 -1
  110. package/types/common/cache.d.ts +4 -1
  111. package/types/common/constants.d.ts +2 -1
  112. package/types/common/dotenv.d.ts +24 -5
  113. package/types/common/errors.d.ts +50 -22
  114. package/types/common/fs.d.ts +17 -4
  115. package/types/common/interactive-select-files.d.ts +16 -2
  116. package/types/common/mem-sys.d.ts +7 -5
  117. package/types/common/node-request.d.ts +4 -4
  118. package/types/common/path.d.ts +1 -3
  119. package/types/common/test-utils.d.ts +21 -7
  120. package/types/common/typescript.d.ts +26 -7
  121. package/types/common/utils.d.ts +36 -8
  122. package/types/core/adapters/angular/angular-api-key.d.ts +29 -6
  123. package/types/core/adapters/angular/angular-app-module-imports.d.ts +12 -2
  124. package/types/core/adapters/angular/angular-app-routes-update.d.ts +6 -1
  125. package/types/core/adapters/angular/angular-components.d.ts +40 -12
  126. package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +9 -3
  127. package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +16 -4
  128. package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +3 -1
  129. package/types/core/adapters/angular/angular-registry-parse.d.ts +22 -10
  130. package/types/core/adapters/angular/angular-registry.d.ts +15 -2
  131. package/types/core/adapters/angular/angular-test-utils.d.ts +8 -4
  132. package/types/core/adapters/angular/index.d.ts +20 -12
  133. package/types/core/adapters/angular/types.d.ts +5 -5
  134. package/types/core/adapters/next/index.d.ts +26 -18
  135. package/types/core/adapters/next/next-api-key.d.ts +4 -1
  136. package/types/core/adapters/next/next-component-info.d.ts +9 -2
  137. package/types/core/adapters/next/next-components.d.ts +4 -1
  138. package/types/core/adapters/next/next-ensure-builder-setup.d.ts +6 -2
  139. package/types/core/adapters/next/next-ensure-config-plugin.d.ts +5 -1
  140. package/types/core/adapters/next/next-registry-parse.d.ts +21 -8
  141. package/types/core/adapters/next/next-registry.d.ts +15 -2
  142. package/types/core/adapters/next/next-test-utils.d.ts +21 -11
  143. package/types/core/adapters/qwik-city/index.d.ts +14 -6
  144. package/types/core/adapters/qwik-city/qwik-api-key.d.ts +4 -1
  145. package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +4 -1
  146. package/types/core/adapters/qwik-city/qwik-components.d.ts +23 -8
  147. package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +6 -2
  148. package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +5 -1
  149. package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +22 -10
  150. package/types/core/adapters/qwik-city/qwik-registry.d.ts +15 -2
  151. package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +8 -4
  152. package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +3 -1
  153. package/types/core/adapters/react/index.d.ts +19 -11
  154. package/types/core/adapters/react/react-api-key.d.ts +4 -1
  155. package/types/core/adapters/react/react-builder-sdk-setup.d.ts +3 -1
  156. package/types/core/adapters/react/react-component-info.d.ts +9 -2
  157. package/types/core/adapters/react/react-components.d.ts +37 -11
  158. package/types/core/adapters/react/react-ensure-builder-setup.d.ts +6 -2
  159. package/types/core/adapters/react/react-registry-parse.d.ts +21 -8
  160. package/types/core/adapters/react/react-registry.d.ts +15 -2
  161. package/types/core/adapters/react/react-test-utils.d.ts +11 -5
  162. package/types/core/adapters/react/react-ts-program.d.ts +3 -1
  163. package/types/core/adapters/remix/index.d.ts +19 -11
  164. package/types/core/adapters/remix/remix-api-key.d.ts +4 -1
  165. package/types/core/adapters/remix/remix-components.d.ts +4 -1
  166. package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +9 -3
  167. package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +5 -1
  168. package/types/core/adapters/remix/remix-registry-parse.d.ts +22 -10
  169. package/types/core/adapters/remix/remix-registry.d.ts +15 -2
  170. package/types/core/adapters/remix/remix-test-utils.d.ts +11 -5
  171. package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +12 -2
  172. package/types/core/adapters/vue/index.d.ts +20 -12
  173. package/types/core/adapters/vue/vue-api-key.d.ts +4 -1
  174. package/types/core/adapters/vue/vue-components.d.ts +10 -2
  175. package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +7 -3
  176. package/types/core/adapters/vue/vue-registry-parse.d.ts +19 -9
  177. package/types/core/adapters/vue/vue-registry.d.ts +6 -3
  178. package/types/core/adapters/webpack/webpack-config-helpers.d.ts +8 -3
  179. package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +5 -1
  180. package/types/core/create-dev-tools.d.ts +4 -1
  181. package/types/core/detect-frameworks.d.ts +7 -2
  182. package/types/core/ensure-config-plugin.d.ts +6 -2
  183. package/types/core/find-dependencies.d.ts +6 -3
  184. package/types/core/import-export-registry.d.ts +9 -2
  185. package/types/core/index.d.ts +18 -3
  186. package/types/figma/index.d.ts +95 -64
  187. package/types/node/node-sys.d.ts +13 -6
  188. package/types/remix/index.d.ts +5 -3
  189. package/types/server/auth.d.ts +4 -1
  190. package/types/server/builder-connect.d.ts +21 -6
  191. package/types/server/client-script.d.ts +6 -2
  192. package/types/server/create-dev-tools-server.d.ts +3 -1
  193. package/types/server/dev-tools-api.d.ts +4 -1
  194. package/types/server/dev-tools-http-server.d.ts +3 -1
  195. package/types/server/index.d.ts +28 -1
  196. package/types/server/request-handler.d.ts +6 -1
  197. package/types/tsconfig.tsbuildinfo +1 -1
  198. package/types/types/codegen-server.d.ts +1 -1
  199. package/types/types/connection-tracker.d.ts +34 -34
  200. package/types/types/proxy-middleware.d.ts +25 -15
  201. package/types/types/websocket-types.d.ts +9 -7
  202. package/types/types.d.ts +387 -358
  203. package/types/vite/main.d.ts +1 -1
  204. package/types/webpack/main.d.ts +5 -5
  205. package/vendors/darwin-arm64/complete/rg.bash +783 -0
  206. package/vendors/darwin-arm64/complete/rg.fish +175 -0
  207. package/vendors/darwin-arm64/doc/rg.1 +2178 -0
  208. package/vendors/darwin-arm64/rg +0 -0
  209. package/vendors/darwin-x64/complete/rg.bash +783 -0
  210. package/vendors/darwin-x64/complete/rg.fish +175 -0
  211. package/vendors/darwin-x64/doc/rg.1 +2178 -0
  212. package/vendors/darwin-x64/rg +0 -0
  213. package/vendors/linux-arm64/complete/rg.bash +783 -0
  214. package/vendors/linux-arm64/complete/rg.fish +175 -0
  215. package/vendors/linux-arm64/doc/rg.1 +2178 -0
  216. package/vendors/linux-arm64/rg +0 -0
  217. package/vendors/linux-x64/complete/rg.bash +783 -0
  218. package/vendors/linux-x64/complete/rg.fish +175 -0
  219. package/vendors/linux-x64/doc/rg.1 +2178 -0
  220. package/vendors/linux-x64/rg +0 -0
  221. package/vendors/win32-x64/rg.exe +0 -0
  222. package/types/cli/indexing.d.ts +0 -5
  223. package/types/cli/launch/github.d.ts +0 -3
  224. package/types/cli/repo-indexing.d.ts +0 -17
  225. package/types/cli/repo-indexing.mock.d.ts +0 -5
  226. package/types/cli/utils/dev-server-url-parser.d.ts +0 -12
  227. package/types/cli/utils/dev-server-url-parser.test.d.ts +0 -1
  228. package/types/cli/utils/repo-indexing-group-prompts.d.ts +0 -1
@@ -2,8 +2,13 @@ import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
2
  import type { Credentials } from "../credentials";
3
3
  import type { FusionConfig, LaunchServerStatus } from "$/ai-utils";
4
4
  interface FusionStatusMonitor {
5
- start: () => void;
6
- stop: () => void;
5
+ start: () => void;
6
+ stop: () => void;
7
7
  }
8
- export declare function createFusionStatusMonitor(sys: DevToolsSys, credentials: Credentials, fusionConfig: FusionConfig, sharedState: LaunchServerStatus): FusionStatusMonitor | null;
8
+ export declare function createFusionStatusMonitor(
9
+ sys: DevToolsSys,
10
+ credentials: Credentials,
11
+ fusionConfig: FusionConfig,
12
+ sharedState: LaunchServerStatus,
13
+ ): FusionStatusMonitor | null;
9
14
  export {};
@@ -1,14 +1,21 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { ProxyMiddleware } from "../../types/proxy-middleware";
3
3
  import type { IncomingMessage } from "http";
4
- export declare const createPassThroughProxy: () => import("http-proxy-3").ProxyServer<typeof IncomingMessage, typeof import("http").ServerResponse, Error>;
5
- export declare const createProxyMiddleware: (serverUrl: URL, sys: DevToolsSys) => ProxyMiddleware | undefined;
4
+ export declare const createPassThroughProxy: () => import("http-proxy-3").ProxyServer<
5
+ typeof IncomingMessage,
6
+ typeof import("http").ServerResponse,
7
+ Error
8
+ >;
9
+ export declare const createProxyMiddleware: (
10
+ serverUrl: URL,
11
+ sys: DevToolsSys,
12
+ ) => ProxyMiddleware | undefined;
6
13
  /**
7
14
  * Detects if HTML was server-side rendered by checking for framework-specific markers.
8
15
  * Returns whether SSR was used and whether the header/head was server-rendered.
9
16
  */
10
17
  export declare const detectSSR: (body: string) => {
11
- hasSSR: boolean;
12
- hasHeaderSSR: boolean;
18
+ hasSSR: boolean;
19
+ hasHeaderSSR: boolean;
13
20
  };
14
21
  export declare const permissiveHTTPS: any;
@@ -7,17 +7,24 @@ 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: ({ 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;
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;
23
30
  }) => 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,12 +97,21 @@ export declare function getTunnelManager(): VSCodeTunnelManager;
97
97
  /**
98
98
  * Generate VS Code deep link for a tunnel
99
99
  */
100
- export declare function generateVSCodeDeepLink(tunnelName: string, workspacePath?: string): string;
100
+ export declare function generateVSCodeDeepLink(
101
+ tunnelName: string,
102
+ workspacePath?: string,
103
+ ): string;
101
104
  /**
102
105
  * Generate Cursor deep link for a tunnel
103
106
  */
104
- export declare function generateCursorDeepLink(tunnelName: string, workspacePath?: string): string;
107
+ export declare function generateCursorDeepLink(
108
+ tunnelName: string,
109
+ workspacePath?: string,
110
+ ): string;
105
111
  /**
106
112
  * Generate web editor link for a tunnel
107
113
  */
108
- export declare function generateWebEditorLink(tunnelName: string, workspacePath?: string): string;
114
+ export declare function generateWebEditorLink(
115
+ tunnelName: string,
116
+ workspacePath?: string,
117
+ ): string;
@@ -2,111 +2,114 @@ 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({ sys, args, }: {
110
- sys: DevToolsSys;
111
- args: LaunchArgs;
109
+ export declare function runFusionCommand({
110
+ sys,
111
+ args,
112
+ }: {
113
+ sys: DevToolsSys;
114
+ args: LaunchArgs;
112
115
  }): Promise<void>;
@@ -8,9 +8,16 @@
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(absoluteFilePath: string | undefined): typeof import("prettier") | null;
11
+ export declare function loadPrettier(
12
+ absoluteFilePath: string | undefined,
13
+ ): typeof import("prettier") | null;
12
14
  /**
13
15
  * Format code using prettier.
14
16
  * Gracefully returns original code if prettier is not available.
15
17
  */
16
- export declare function prettierFormat(workingDirectory: string, code: string, parser: string | undefined, filePath: string | undefined): Promise<string>;
18
+ export declare function prettierFormat(
19
+ workingDirectory: string,
20
+ code: string,
21
+ parser: string | undefined,
22
+ filePath: string | undefined,
23
+ ): Promise<string>;
@@ -1,27 +1,32 @@
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(dotEnvVars?: Record<string, string>): CategorizedEnvVar[];
14
+ export declare function filterAndCategorizeEnvVars(
15
+ dotEnvVars?: Record<string, string>,
16
+ ): CategorizedEnvVar[];
15
17
  /**
16
18
  * Present multiselect UI for environment variables
17
19
  */
18
- export declare function selectEnvironmentVariables(sys: DevToolsSys, gitRoot: string): Promise<EnvironmentVariable[] | null>;
20
+ export declare function selectEnvironmentVariables(
21
+ sys: DevToolsSys,
22
+ gitRoot: string,
23
+ ): Promise<EnvironmentVariable[] | null>;
19
24
  /**
20
25
  * Format environment variables summary
21
26
  */
22
27
  export declare function formatEnvSummary(envVars: EnvironmentVariable[]): {
23
- total: number;
24
- secrets: number;
25
- public: number;
28
+ total: number;
29
+ secrets: number;
30
+ public: number;
26
31
  };
27
32
  export {};
@@ -1,23 +1,26 @@
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(sys: DevToolsSys, gitRoot: string): Promise<CollectedFiles>;
20
+ export declare function collectConfigFiles(
21
+ sys: DevToolsSys,
22
+ gitRoot: string,
23
+ ): Promise<CollectedFiles>;
21
24
  /**
22
25
  * Convert collected files to FileOverride array with proper path conventions
23
26
  *
@@ -26,7 +29,9 @@ export declare function collectConfigFiles(sys: DevToolsSys, gitRoot: string): P
26
29
  * - ~/ prefix = relative to home directory
27
30
  * - absolute paths = only for well-known system files
28
31
  */
29
- export declare function filesToFileOverrides(collected: CollectedFiles): FileOverride[];
32
+ export declare function filesToFileOverrides(
33
+ collected: CollectedFiles,
34
+ ): FileOverride[];
30
35
  /**
31
36
  * Format collected files summary
32
37
  */
@@ -34,4 +39,6 @@ export declare function formatFilesSummary(collected: CollectedFiles): string[];
34
39
  /**
35
40
  * Present multiselect UI for file overrides
36
41
  */
37
- export declare function selectFileOverrides(collected: CollectedFiles): Promise<FileOverride[] | null>;
42
+ export declare function selectFileOverrides(
43
+ collected: CollectedFiles,
44
+ ): Promise<FileOverride[] | null>;
@@ -1,20 +1,22 @@
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(sys: DevToolsSys): Promise<GitInfo | undefined>;
17
+ export declare function detectGitInfo(
18
+ sys: DevToolsSys,
19
+ ): Promise<GitInfo | undefined>;
18
20
  /**
19
21
  * Display git info in a user-friendly format
20
22
  */
@@ -1,10 +1,13 @@
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(cwd: string, initialCommand?: string): Promise<InstallResult>;
10
+ export declare function runInstallCommand(
11
+ cwd: string,
12
+ initialCommand?: string,
13
+ ): Promise<InstallResult>;