@builder.io/dev-tools 1.24.0-dev.202602060823.cf6b0e472 → 1.24.0-dev.202602060949.9613162d0

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 (238) hide show
  1. package/cli/index.cjs +91 -305
  2. package/cli/index.cjs.map +2 -2
  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 +2 -2
  9. package/server/index.mjs +2 -2
  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-tools.test.d.ts +1 -0
  18. package/types/cli/code.d.ts +3 -13
  19. package/types/cli/codegen.d.ts +0 -8
  20. package/types/cli/credentials.d.ts +45 -61
  21. package/types/cli/detectors/nextjs.d.ts +1 -4
  22. package/types/cli/detectors/svelte.d.ts +1 -4
  23. package/types/cli/detectors/vue.d.ts +1 -4
  24. package/types/cli/download.d.ts +4 -9
  25. package/types/cli/dsi-mcp.d.ts +1 -4
  26. package/types/cli/fetch.d.ts +2 -7
  27. package/types/cli/figma-publish.d.ts +17 -34
  28. package/types/cli/figma-utils.d.ts +21 -51
  29. package/types/cli/figma.d.ts +2 -9
  30. package/types/cli/generate.d.ts +11 -14
  31. package/types/cli/github-cli.test.d.ts +1 -0
  32. package/types/cli/incremental-tsc.d.ts +7 -19
  33. package/types/cli/index.d.ts +154 -154
  34. package/types/cli/launch/InitStateMachine.d.ts +89 -156
  35. package/types/cli/launch/config.d.ts +3 -13
  36. package/types/cli/launch/dry-run-backup.d.ts +7 -14
  37. package/types/cli/launch/errors.d.ts +2 -7
  38. package/types/cli/launch/grafana.d.ts +1 -5
  39. package/types/cli/launch/helpers.d.ts +10 -19
  40. package/types/cli/launch/machine-health.d.ts +3 -8
  41. package/types/cli/launch/proxy.d.ts +4 -11
  42. package/types/cli/launch/server.d.ts +12 -19
  43. package/types/cli/launch/vscode-tunnel-manager.d.ts +68 -77
  44. package/types/cli/launch.d.ts +106 -109
  45. package/types/cli/prettier.d.ts +2 -9
  46. package/types/cli/repo-connect/env-collector.d.ts +11 -16
  47. package/types/cli/repo-connect/file-collector.d.ts +15 -22
  48. package/types/cli/repo-connect/git-detector.d.ts +11 -13
  49. package/types/cli/repo-connect/install-runner.d.ts +5 -8
  50. package/types/cli/repo-connect/package-detector.d.ts +8 -12
  51. package/types/cli/repo-connect/repo-connect.d.ts +1 -4
  52. package/types/cli/repo-indexing/component-discovery.d.ts +17 -30
  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 +0 -2
  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/track.d.ts +1 -4
  66. package/types/cli/utils/agent-discovery.d.ts +5 -10
  67. package/types/cli/utils/codegen-utils.d.ts +0 -9
  68. package/types/cli/utils/component-group-mdx-prompt.d.ts +1 -2
  69. package/types/cli/utils/discovery-test-utils.d.ts +1 -3
  70. package/types/cli/utils/env-capture.d.ts +15 -21
  71. package/types/cli/utils/env-substitution.d.ts +1 -4
  72. package/types/cli/utils/feature-flags.d.ts +1 -3
  73. package/types/cli/utils/file-overrides-manager.d.ts +23 -39
  74. package/types/cli/utils/git.d.ts +16 -28
  75. package/types/cli/utils/hosts-file-manager.d.ts +4 -7
  76. package/types/cli/utils/lock-file.d.ts +7 -10
  77. package/types/cli/utils/parseGitDiff.d.ts +1 -4
  78. package/types/cli/utils/process-tracker.d.ts +51 -85
  79. package/types/cli/utils/repo-indexing-agent-prompt.d.ts +1 -2
  80. package/types/cli/utils/rules-discovery.d.ts +5 -10
  81. package/types/cli/utils/rules-parser.d.ts +1 -5
  82. package/types/cli/utils/terminal-buffer.d.ts +23 -23
  83. package/types/cli/utils/workspace-path-resolver.d.ts +16 -23
  84. package/types/cli/utils/yaml-frontmatter.d.ts +6 -10
  85. package/types/client/client-api.d.ts +10 -42
  86. package/types/client/edit-button/document-listeners.d.ts +1 -3
  87. package/types/client/edit-button/index.d.ts +6 -6
  88. package/types/client/menu/index.d.ts +3 -3
  89. package/types/client/menu/pages/component-detail.d.ts +2 -8
  90. package/types/client/menu/pages/component-input.d.ts +1 -5
  91. package/types/client/menu/pages/component-list.d.ts +1 -4
  92. package/types/client/menu/toggle/menu-toggle.d.ts +1 -4
  93. package/types/client/setup-ui/overview.d.ts +2 -2
  94. package/types/client/tracking.d.ts +11 -11
  95. package/types/client/utils.d.ts +3 -5
  96. package/types/common/ast/app-dependencies.d.ts +2 -8
  97. package/types/common/ast/component-info.d.ts +6 -26
  98. package/types/common/ast/component-input-types.d.ts +9 -28
  99. package/types/common/ast/component-registry.d.ts +8 -23
  100. package/types/common/ast/convert-values.d.ts +8 -40
  101. package/types/common/ast/ensure-array-statement.d.ts +3 -7
  102. package/types/common/ast/ensure-comments.d.ts +1 -5
  103. package/types/common/ast/ensure-imports.d.ts +5 -10
  104. package/types/common/ast/exported-statements.d.ts +4 -8
  105. package/types/common/ast/imported-statements.d.ts +1 -5
  106. package/types/common/ast/normalize-statements.d.ts +3 -12
  107. package/types/common/ast/remove-unused-imports.d.ts +1 -4
  108. package/types/common/ast/transform.d.ts +3 -13
  109. package/types/common/ast/utils.d.ts +19 -42
  110. package/types/common/builder/builder-api.d.ts +23 -32
  111. package/types/common/builder/builder-sdks.d.ts +8 -10
  112. package/types/common/builder/content-generation.d.ts +7 -10
  113. package/types/common/builder/content-ids.d.ts +1 -2
  114. package/types/common/cache.d.ts +1 -4
  115. package/types/common/constants.d.ts +1 -2
  116. package/types/common/dotenv.d.ts +5 -24
  117. package/types/common/errors.d.ts +22 -50
  118. package/types/common/fs.d.ts +4 -17
  119. package/types/common/interactive-select-files.d.ts +2 -16
  120. package/types/common/mem-sys.d.ts +5 -7
  121. package/types/common/node-request.d.ts +4 -4
  122. package/types/common/path.d.ts +3 -1
  123. package/types/common/test-utils.d.ts +7 -21
  124. package/types/common/typescript.d.ts +7 -26
  125. package/types/common/utils.d.ts +8 -36
  126. package/types/core/adapters/angular/angular-api-key.d.ts +6 -29
  127. package/types/core/adapters/angular/angular-app-module-imports.d.ts +2 -12
  128. package/types/core/adapters/angular/angular-app-routes-update.d.ts +1 -6
  129. package/types/core/adapters/angular/angular-components.d.ts +12 -40
  130. package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +3 -9
  131. package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +4 -16
  132. package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +1 -3
  133. package/types/core/adapters/angular/angular-registry-parse.d.ts +10 -22
  134. package/types/core/adapters/angular/angular-registry.d.ts +2 -15
  135. package/types/core/adapters/angular/angular-test-utils.d.ts +4 -8
  136. package/types/core/adapters/angular/index.d.ts +12 -20
  137. package/types/core/adapters/angular/types.d.ts +5 -5
  138. package/types/core/adapters/next/index.d.ts +18 -26
  139. package/types/core/adapters/next/next-api-key.d.ts +1 -4
  140. package/types/core/adapters/next/next-component-info.d.ts +2 -9
  141. package/types/core/adapters/next/next-components.d.ts +1 -4
  142. package/types/core/adapters/next/next-ensure-builder-setup.d.ts +2 -6
  143. package/types/core/adapters/next/next-ensure-config-plugin.d.ts +1 -5
  144. package/types/core/adapters/next/next-registry-parse.d.ts +8 -21
  145. package/types/core/adapters/next/next-registry.d.ts +2 -15
  146. package/types/core/adapters/next/next-test-utils.d.ts +11 -21
  147. package/types/core/adapters/qwik-city/index.d.ts +6 -14
  148. package/types/core/adapters/qwik-city/qwik-api-key.d.ts +1 -4
  149. package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +1 -4
  150. package/types/core/adapters/qwik-city/qwik-components.d.ts +8 -23
  151. package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +2 -6
  152. package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +1 -5
  153. package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +10 -22
  154. package/types/core/adapters/qwik-city/qwik-registry.d.ts +2 -15
  155. package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +4 -8
  156. package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +1 -3
  157. package/types/core/adapters/react/index.d.ts +11 -19
  158. package/types/core/adapters/react/react-api-key.d.ts +1 -4
  159. package/types/core/adapters/react/react-builder-sdk-setup.d.ts +1 -3
  160. package/types/core/adapters/react/react-component-info.d.ts +2 -9
  161. package/types/core/adapters/react/react-components.d.ts +11 -37
  162. package/types/core/adapters/react/react-ensure-builder-setup.d.ts +2 -6
  163. package/types/core/adapters/react/react-registry-parse.d.ts +8 -21
  164. package/types/core/adapters/react/react-registry.d.ts +2 -15
  165. package/types/core/adapters/react/react-test-utils.d.ts +5 -11
  166. package/types/core/adapters/react/react-ts-program.d.ts +1 -3
  167. package/types/core/adapters/remix/index.d.ts +11 -19
  168. package/types/core/adapters/remix/remix-api-key.d.ts +1 -4
  169. package/types/core/adapters/remix/remix-components.d.ts +1 -4
  170. package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +3 -9
  171. package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +1 -5
  172. package/types/core/adapters/remix/remix-registry-parse.d.ts +10 -22
  173. package/types/core/adapters/remix/remix-registry.d.ts +2 -15
  174. package/types/core/adapters/remix/remix-test-utils.d.ts +5 -11
  175. package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +2 -12
  176. package/types/core/adapters/vue/index.d.ts +12 -20
  177. package/types/core/adapters/vue/vue-api-key.d.ts +1 -4
  178. package/types/core/adapters/vue/vue-components.d.ts +2 -10
  179. package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +3 -7
  180. package/types/core/adapters/vue/vue-registry-parse.d.ts +9 -19
  181. package/types/core/adapters/vue/vue-registry.d.ts +3 -6
  182. package/types/core/adapters/webpack/webpack-config-helpers.d.ts +3 -8
  183. package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +1 -5
  184. package/types/core/create-dev-tools.d.ts +1 -4
  185. package/types/core/detect-frameworks.d.ts +2 -7
  186. package/types/core/ensure-config-plugin.d.ts +2 -6
  187. package/types/core/find-dependencies.d.ts +3 -6
  188. package/types/core/import-export-registry.d.ts +2 -9
  189. package/types/core/index.d.ts +3 -18
  190. package/types/figma/index.d.ts +64 -95
  191. package/types/node/node-sys.d.ts +6 -13
  192. package/types/remix/index.d.ts +3 -5
  193. package/types/server/auth.d.ts +1 -4
  194. package/types/server/builder-connect.d.ts +6 -21
  195. package/types/server/client-script.d.ts +2 -6
  196. package/types/server/create-dev-tools-server.d.ts +1 -3
  197. package/types/server/dev-tools-api.d.ts +1 -4
  198. package/types/server/dev-tools-http-server.d.ts +1 -3
  199. package/types/server/index.d.ts +1 -28
  200. package/types/server/request-handler.d.ts +1 -6
  201. package/types/tsconfig.tsbuildinfo +1 -1
  202. package/types/types/codegen-server.d.ts +1 -1
  203. package/types/types/connection-tracker.d.ts +34 -34
  204. package/types/types/proxy-middleware.d.ts +15 -25
  205. package/types/types/websocket-types.d.ts +7 -9
  206. package/types/types.d.ts +358 -387
  207. package/types/vite/main.d.ts +1 -1
  208. package/types/webpack/main.d.ts +5 -5
  209. package/vendors/darwin-arm64/complete/rg.bash +783 -0
  210. package/vendors/darwin-arm64/complete/rg.fish +175 -0
  211. package/vendors/darwin-arm64/doc/rg.1 +2178 -0
  212. package/vendors/darwin-arm64/rg +0 -0
  213. package/vendors/darwin-x64/complete/rg.bash +783 -0
  214. package/vendors/darwin-x64/complete/rg.fish +175 -0
  215. package/vendors/darwin-x64/doc/rg.1 +2178 -0
  216. package/vendors/darwin-x64/rg +0 -0
  217. package/vendors/linux-arm64/complete/rg.bash +783 -0
  218. package/vendors/linux-arm64/complete/rg.fish +175 -0
  219. package/vendors/linux-arm64/doc/rg.1 +2178 -0
  220. package/vendors/linux-arm64/rg +0 -0
  221. package/vendors/linux-x64/complete/rg.bash +783 -0
  222. package/vendors/linux-x64/complete/rg.fish +175 -0
  223. package/vendors/linux-x64/doc/rg.1 +2178 -0
  224. package/vendors/linux-x64/rg +0 -0
  225. package/vendors/win32-x64/rg.exe +0 -0
  226. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/COPYING +3 -0
  227. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/LICENSE-MIT +21 -0
  228. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/README.md +516 -0
  229. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/UNLICENSE +24 -0
  230. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/_rg +665 -0
  231. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/_rg.ps1 +213 -0
  232. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/rg.bash +783 -0
  233. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/complete/rg.fish +175 -0
  234. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/CHANGELOG.md +1689 -0
  235. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/FAQ.md +1046 -0
  236. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/GUIDE.md +1022 -0
  237. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/doc/rg.1 +2178 -0
  238. package/vendors/win32-x64/ripgrep-14.1.0-x86_64-pc-windows-msvc/rg.exe +0 -0
@@ -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>;
@@ -1,34 +1,21 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { Credentials } from "../credentials";
3
- import type {
4
- WorkspaceConfiguration,
5
- ComponentDocument,
6
- PrivacyMode,
7
- } from "$/ai-utils";
3
+ import type { WorkspaceConfiguration, ComponentDocument, PrivacyMode } from "$/ai-utils";
8
4
  import type { ComponentTask } from "./types";
9
- export declare const discoverComponents: (
10
- sys: DevToolsSys,
11
- credentials: Credentials,
12
- sessionId: string,
13
- remoteComponents: ComponentDocument[],
14
- opts?: {
15
- force?: boolean;
16
- designSystemPackage?: string;
17
- designSystemVersion?: string;
18
- workspaceConfig?: WorkspaceConfiguration;
19
- debug?: boolean;
20
- specificComponents?: string[];
21
- include?: string | string[];
22
- exclude?: string | string[];
23
- instructions?: string;
24
- privacyMode?: PrivacyMode;
25
- },
26
- ) => Promise<{
27
- numComponentsFound: number;
28
- componentsToIndex: ComponentTask[];
29
- discoveredComponents: ComponentTask[];
5
+ export declare const discoverComponents: (sys: DevToolsSys, credentials: Credentials, sessionId: string, remoteComponents: ComponentDocument[], opts?: {
6
+ force?: boolean;
7
+ designSystemPackage?: string;
8
+ designSystemVersion?: string;
9
+ workspaceConfig?: WorkspaceConfiguration;
10
+ debug?: boolean;
11
+ specificComponents?: string[];
12
+ include?: string | string[];
13
+ exclude?: string | string[];
14
+ instructions?: string;
15
+ privacyMode?: PrivacyMode;
16
+ }) => Promise<{
17
+ numComponentsFound: number;
18
+ componentsToIndex: ComponentTask[];
19
+ discoveredComponents: ComponentTask[];
30
20
  }>;
31
- export declare const computeHash: (
32
- sys: DevToolsSys,
33
- files: string[],
34
- ) => Promise<string>;
21
+ export declare const computeHash: (sys: DevToolsSys, files: string[]) => Promise<string>;
@@ -1,39 +1,27 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { Credentials } from "../credentials";
3
3
  import type { WorkspaceConfiguration, PrivacyMode } from "$/ai-utils";
4
- export declare const discoverIcons: (
5
- sys: DevToolsSys,
6
- credentials: Credentials,
7
- sessionId: string,
8
- opts?: {
9
- designSystemPackage?: string;
10
- workspaceConfig?: WorkspaceConfiguration;
11
- debug?: boolean;
12
- include?: string | string[];
13
- exclude?: string | string[];
14
- instructions?: string;
15
- privacyMode?: PrivacyMode;
16
- },
17
- ) => Promise<
18
- | {
19
- icons: string[];
20
- usage: string;
21
- hash: string | undefined;
22
- }
23
- | undefined
24
- >;
25
- export declare const processIcons: (
26
- credentials: Credentials,
27
- iconDiscovery: {
28
- icons: string[];
29
- usage: string;
30
- hash?: string;
31
- },
32
- opts: {
33
- designSystemId: string;
34
- sessionId: string;
35
- debug?: boolean;
36
- previousHash?: string | null;
37
- force?: boolean;
38
- },
39
- ) => Promise<boolean>;
4
+ export declare const discoverIcons: (sys: DevToolsSys, credentials: Credentials, sessionId: string, opts?: {
5
+ designSystemPackage?: string;
6
+ workspaceConfig?: WorkspaceConfiguration;
7
+ debug?: boolean;
8
+ include?: string | string[];
9
+ exclude?: string | string[];
10
+ instructions?: string;
11
+ privacyMode?: PrivacyMode;
12
+ }) => Promise<{
13
+ icons: string[];
14
+ usage: string;
15
+ hash: string | undefined;
16
+ } | undefined>;
17
+ export declare const processIcons: (credentials: Credentials, iconDiscovery: {
18
+ icons: string[];
19
+ usage: string;
20
+ hash?: string;
21
+ }, opts: {
22
+ designSystemId: string;
23
+ sessionId: string;
24
+ debug?: boolean;
25
+ previousHash?: string | null;
26
+ force?: boolean;
27
+ }) => Promise<boolean>;
@@ -1,25 +1,17 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { Credentials } from "../credentials";
3
3
  import type { WorkspaceConfiguration, PrivacyMode } from "$/ai-utils";
4
- export declare const discoverInstallation: (
5
- sys: DevToolsSys,
6
- credentials: Credentials,
7
- sessionId: string,
8
- opts: {
9
- designSystemId: string;
10
- designSystemPackage?: string;
11
- designSystemVersion?: string;
12
- workspaceConfig?: WorkspaceConfiguration;
13
- debug?: boolean;
14
- include?: string | string[];
15
- exclude?: string | string[];
16
- instructions?: string;
17
- privacyMode?: PrivacyMode;
18
- },
19
- ) => Promise<
20
- | {
21
- hash: string;
22
- relevantFiles: string[];
23
- }
24
- | undefined
25
- >;
4
+ export declare const discoverInstallation: (sys: DevToolsSys, credentials: Credentials, sessionId: string, opts: {
5
+ designSystemId: string;
6
+ designSystemPackage?: string;
7
+ designSystemVersion?: string;
8
+ workspaceConfig?: WorkspaceConfiguration;
9
+ debug?: boolean;
10
+ include?: string | string[];
11
+ exclude?: string | string[];
12
+ instructions?: string;
13
+ privacyMode?: PrivacyMode;
14
+ }) => Promise<{
15
+ hash: string;
16
+ relevantFiles: string[];
17
+ } | undefined>;