@builder.io/dev-tools 1.18.11-dev.202511202319.621aec6ae → 1.18.11-dev.202511210301.98709336d

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 (437) hide show
  1. package/cli/index.cjs +77 -108
  2. package/cli/index.cjs.map +3 -3
  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 -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 +58 -112
  15. package/types/cli/builder-add/interface.d.ts +4 -21
  16. package/types/cli/code-file-utils.d.ts +9 -17
  17. package/types/cli/code.d.ts +3 -13
  18. package/types/cli/credentials.d.ts +45 -61
  19. package/types/cli/download.d.ts +4 -9
  20. package/types/cli/figma-publish.d.ts +17 -34
  21. package/types/cli/figma-utils.d.ts +21 -51
  22. package/types/cli/figma.d.ts +2 -9
  23. package/types/cli/generate.d.ts +11 -14
  24. package/types/cli/incremental-tsc.d.ts +7 -19
  25. package/types/cli/launch/config.d.ts +3 -13
  26. package/types/cli/launch/dry-run-backup.d.ts +7 -14
  27. package/types/cli/launch/errors.d.ts +2 -7
  28. package/types/cli/launch/github.d.ts +2 -8
  29. package/types/cli/launch/grafana.d.ts +1 -5
  30. package/types/cli/launch/machine-health.d.ts +3 -8
  31. package/types/cli/launch/proxy.d.ts +3 -6
  32. package/types/cli/launch/server.d.ts +10 -16
  33. package/types/cli/launch.d.ts +99 -102
  34. package/types/cli/prettier.d.ts +2 -9
  35. package/types/cli/repo-connect/env-collector.d.ts +11 -16
  36. package/types/cli/repo-connect/file-collector.d.ts +15 -22
  37. package/types/cli/repo-connect/install-runner.d.ts +5 -8
  38. package/types/cli/repo-connect/package-detector.d.ts +8 -12
  39. package/types/cli/repo-connect/repo-connect.d.ts +1 -4
  40. package/types/cli/repo-indexing/repo-indexing.d.ts +17 -37
  41. package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
  42. package/types/cli/repo-metrics.d.ts +1 -4
  43. package/types/cli/report/figma-report.d.ts +36 -63
  44. package/types/cli/server-ws.d.ts +32 -40
  45. package/types/cli/spinner.d.ts +4 -4
  46. package/types/cli/sync-utils.d.ts +16 -39
  47. package/types/cli/track.d.ts +1 -4
  48. package/types/cli/utils/component-group-mdx-prompt.d.ts +1 -2
  49. package/types/cli/utils/dev-server-url-parser.d.ts +3 -6
  50. package/types/cli/utils/env-capture.d.ts +15 -21
  51. package/types/cli/utils/feature-flags.d.ts +1 -3
  52. package/types/cli/utils/file-overrides-manager.d.ts +23 -39
  53. package/types/cli/utils/git.d.ts +16 -28
  54. package/types/cli/utils/hosts-file-manager.d.ts +4 -7
  55. package/types/cli/utils/lock-file.d.ts +7 -10
  56. package/types/cli/utils/parseGitDiff.d.ts +1 -4
  57. package/types/cli/utils/process-tracker.d.ts +51 -85
  58. package/types/cli/utils/repo-indexing-agent-prompt.d.ts +1 -2
  59. package/types/cli/utils/terminal-buffer.d.ts +23 -23
  60. package/types/cli/utils/workspace-path-resolver.d.ts +16 -23
  61. package/types/client/client-api.d.ts +10 -42
  62. package/types/client/edit-button/document-listeners.d.ts +1 -3
  63. package/types/client/edit-button/index.d.ts +6 -6
  64. package/types/client/menu/index.d.ts +3 -3
  65. package/types/client/menu/pages/component-detail.d.ts +2 -8
  66. package/types/client/menu/pages/component-input.d.ts +1 -5
  67. package/types/client/menu/pages/component-list.d.ts +1 -4
  68. package/types/client/menu/toggle/menu-toggle.d.ts +1 -4
  69. package/types/client/setup-ui/overview.d.ts +2 -2
  70. package/types/client/tracking.d.ts +11 -11
  71. package/types/client/utils.d.ts +3 -5
  72. package/types/common/ast/app-dependencies.d.ts +2 -8
  73. package/types/common/ast/component-info.d.ts +6 -26
  74. package/types/common/ast/component-input-types.d.ts +1 -1
  75. package/types/common/ast/component-registry.d.ts +8 -23
  76. package/types/common/ast/ensure-array-statement.d.ts +3 -7
  77. package/types/common/ast/ensure-comments.d.ts +1 -5
  78. package/types/common/ast/ensure-imports.d.ts +5 -10
  79. package/types/common/ast/exported-statements.d.ts +4 -8
  80. package/types/common/ast/imported-statements.d.ts +1 -5
  81. package/types/common/ast/normalize-statements.d.ts +3 -12
  82. package/types/common/ast/remove-unused-imports.d.ts +1 -4
  83. package/types/common/ast/transform.d.ts +3 -13
  84. package/types/common/ast/utils.d.ts +19 -42
  85. package/types/common/builder/builder-api.d.ts +23 -32
  86. package/types/common/builder/builder-sdks.d.ts +8 -10
  87. package/types/common/builder/content-generation.d.ts +7 -10
  88. package/types/common/builder/content-ids.d.ts +1 -2
  89. package/types/common/cache.d.ts +1 -4
  90. package/types/common/constants.d.ts +1 -2
  91. package/types/common/dotenv.d.ts +5 -24
  92. package/types/common/fs.d.ts +4 -17
  93. package/types/common/interactive-select-files.d.ts +2 -16
  94. package/types/common/mem-sys.d.ts +5 -7
  95. package/types/common/node-request.d.ts +4 -4
  96. package/types/common/path.d.ts +3 -1
  97. package/types/common/test-utils.d.ts +7 -21
  98. package/types/common/typescript.d.ts +7 -26
  99. package/types/common/utils.d.ts +1 -1
  100. package/types/core/adapters/angular/angular-api-key.d.ts +6 -29
  101. package/types/core/adapters/angular/angular-app-module-imports.d.ts +2 -12
  102. package/types/core/adapters/angular/angular-app-routes-update.d.ts +1 -6
  103. package/types/core/adapters/angular/angular-components.d.ts +12 -40
  104. package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +3 -9
  105. package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +4 -16
  106. package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +1 -3
  107. package/types/core/adapters/angular/angular-registry-parse.d.ts +10 -22
  108. package/types/core/adapters/angular/angular-registry.d.ts +2 -15
  109. package/types/core/adapters/angular/angular-test-utils.d.ts +4 -8
  110. package/types/core/adapters/angular/index.d.ts +12 -20
  111. package/types/core/adapters/angular/types.d.ts +5 -5
  112. package/types/core/adapters/next/index.d.ts +18 -26
  113. package/types/core/adapters/next/next-api-key.d.ts +1 -4
  114. package/types/core/adapters/next/next-component-info.d.ts +2 -9
  115. package/types/core/adapters/next/next-components.d.ts +1 -4
  116. package/types/core/adapters/next/next-ensure-builder-setup.d.ts +2 -6
  117. package/types/core/adapters/next/next-ensure-config-plugin.d.ts +1 -5
  118. package/types/core/adapters/next/next-registry-parse.d.ts +8 -21
  119. package/types/core/adapters/next/next-registry.d.ts +2 -15
  120. package/types/core/adapters/next/next-test-utils.d.ts +11 -21
  121. package/types/core/adapters/qwik-city/index.d.ts +6 -14
  122. package/types/core/adapters/qwik-city/qwik-api-key.d.ts +1 -4
  123. package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +1 -4
  124. package/types/core/adapters/qwik-city/qwik-components.d.ts +8 -23
  125. package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +2 -6
  126. package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +1 -5
  127. package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +10 -22
  128. package/types/core/adapters/qwik-city/qwik-registry.d.ts +2 -15
  129. package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +4 -8
  130. package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +1 -3
  131. package/types/core/adapters/react/index.d.ts +11 -19
  132. package/types/core/adapters/react/react-api-key.d.ts +1 -4
  133. package/types/core/adapters/react/react-builder-sdk-setup.d.ts +1 -3
  134. package/types/core/adapters/react/react-component-info.d.ts +2 -9
  135. package/types/core/adapters/react/react-components.d.ts +11 -37
  136. package/types/core/adapters/react/react-ensure-builder-setup.d.ts +2 -6
  137. package/types/core/adapters/react/react-registry-parse.d.ts +8 -21
  138. package/types/core/adapters/react/react-registry.d.ts +2 -15
  139. package/types/core/adapters/react/react-test-utils.d.ts +5 -11
  140. package/types/core/adapters/react/react-ts-program.d.ts +1 -3
  141. package/types/core/adapters/remix/index.d.ts +11 -19
  142. package/types/core/adapters/remix/remix-api-key.d.ts +1 -4
  143. package/types/core/adapters/remix/remix-components.d.ts +1 -4
  144. package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +3 -9
  145. package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +1 -5
  146. package/types/core/adapters/remix/remix-registry-parse.d.ts +10 -22
  147. package/types/core/adapters/remix/remix-registry.d.ts +2 -15
  148. package/types/core/adapters/remix/remix-test-utils.d.ts +5 -11
  149. package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +2 -12
  150. package/types/core/adapters/vue/index.d.ts +12 -20
  151. package/types/core/adapters/vue/vue-api-key.d.ts +1 -4
  152. package/types/core/adapters/vue/vue-components.d.ts +2 -10
  153. package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +3 -7
  154. package/types/core/adapters/vue/vue-registry-parse.d.ts +9 -19
  155. package/types/core/adapters/vue/vue-registry.d.ts +3 -6
  156. package/types/core/adapters/webpack/webpack-config-helpers.d.ts +3 -8
  157. package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +1 -5
  158. package/types/core/create-dev-tools.d.ts +1 -4
  159. package/types/core/detect-frameworks.d.ts +2 -7
  160. package/types/core/ensure-config-plugin.d.ts +2 -6
  161. package/types/core/find-dependencies.d.ts +3 -6
  162. package/types/core/import-export-registry.d.ts +2 -9
  163. package/types/core/index.d.ts +3 -18
  164. package/types/figma/index.d.ts +64 -95
  165. package/types/node/node-sys.d.ts +6 -13
  166. package/types/remix/index.d.ts +3 -5
  167. package/types/server/auth.d.ts +1 -4
  168. package/types/server/builder-connect.d.ts +6 -21
  169. package/types/server/client-script.d.ts +2 -6
  170. package/types/server/create-dev-tools-server.d.ts +1 -3
  171. package/types/server/dev-tools-api.d.ts +1 -4
  172. package/types/server/dev-tools-http-server.d.ts +1 -3
  173. package/types/server/index.d.ts +1 -28
  174. package/types/server/request-handler.d.ts +1 -6
  175. package/types/tsconfig.tsbuildinfo +1 -1
  176. package/types/types/codegen-server.d.ts +1 -1
  177. package/types/types/connection-tracker.d.ts +34 -34
  178. package/types/types/proxy-middleware.d.ts +14 -24
  179. package/types/types/websocket-types.d.ts +7 -9
  180. package/types/types.d.ts +358 -387
  181. package/types/vite/main.d.ts +1 -1
  182. package/types/webpack/main.d.ts +5 -5
  183. package/types/cli/env-substitution.d.ts +0 -22
  184. package/types/cli/env-substitution.test.d.ts +0 -1
  185. package/types/cli/utils/env-filter.d.ts +0 -42
  186. package/types/cli/utils/lock-file-example.d.ts +0 -30
  187. package/types/cli/utils/sudo-helper.d.ts +0 -21
  188. package/types/packages/dev-tools/_tests_/code.e2e.d.ts +0 -1
  189. package/types/packages/dev-tools/_tests_/create-builder.e2e.d.ts +0 -1
  190. package/types/packages/dev-tools/_tests_/dev-tools.e2e.d.ts +0 -1
  191. package/types/packages/dev-tools/_tests_/figma-generate.e2e.d.ts +0 -1
  192. package/types/packages/dev-tools/_tests_/figma-publish.e2e.d.ts +0 -1
  193. package/types/packages/dev-tools/_tests_/fusionInit.e2e.d.ts +0 -1
  194. package/types/packages/dev-tools/_tests_/help.e2e.d.ts +0 -1
  195. package/types/packages/dev-tools/_tests_/launch.e2e.d.ts +0 -1
  196. package/types/packages/dev-tools/_tests_/repo-indexing.test.d.ts +0 -1
  197. package/types/packages/dev-tools/_tests_/sync-utils.test.d.ts +0 -1
  198. package/types/packages/dev-tools/_tests_/utils.d.ts +0 -57
  199. package/types/packages/dev-tools/_tests_/vitest.config.d.ts +0 -2
  200. package/types/packages/dev-tools/_tests_/workspace.e2e.d.ts +0 -1
  201. package/types/packages/dev-tools/angular/index.d.ts +0 -1
  202. package/types/packages/dev-tools/cli/__tests__/isLikelyFixedString.spec.d.ts +0 -1
  203. package/types/packages/dev-tools/cli/__tests__/parseGitDiffToApplyActions.spec.d.ts +0 -1
  204. package/types/packages/dev-tools/cli/abort-signal-any.d.ts +0 -3
  205. package/types/packages/dev-tools/cli/auth/auth-utils.d.ts +0 -4
  206. package/types/packages/dev-tools/cli/auth/auth.d.ts +0 -7
  207. package/types/packages/dev-tools/cli/auth/status.d.ts +0 -3
  208. package/types/packages/dev-tools/cli/backup.d.ts +0 -172
  209. package/types/packages/dev-tools/cli/builder-add/interface.d.ts +0 -22
  210. package/types/packages/dev-tools/cli/builder-add/options.d.ts +0 -2
  211. package/types/packages/dev-tools/cli/code-file-utils.d.ts +0 -20
  212. package/types/packages/dev-tools/cli/code-file-utils.unit.d.ts +0 -1
  213. package/types/packages/dev-tools/cli/code-tools.d.ts +0 -131
  214. package/types/packages/dev-tools/cli/code.d.ts +0 -17
  215. package/types/packages/dev-tools/cli/codegen.d.ts +0 -456
  216. package/types/packages/dev-tools/cli/constants.d.ts +0 -1
  217. package/types/packages/dev-tools/cli/credentials.d.ts +0 -69
  218. package/types/packages/dev-tools/cli/download.d.ts +0 -15
  219. package/types/packages/dev-tools/cli/exit.d.ts +0 -1
  220. package/types/packages/dev-tools/cli/fetch.d.ts +0 -1
  221. package/types/packages/dev-tools/cli/figma-publish.d.ts +0 -41
  222. package/types/packages/dev-tools/cli/figma-publish.spec.d.ts +0 -1
  223. package/types/packages/dev-tools/cli/figma-utils.d.ts +0 -61
  224. package/types/packages/dev-tools/cli/figma.d.ts +0 -11
  225. package/types/packages/dev-tools/cli/generate.d.ts +0 -19
  226. package/types/packages/dev-tools/cli/help.d.ts +0 -1
  227. package/types/packages/dev-tools/cli/incremental-tsc.d.ts +0 -42
  228. package/types/packages/dev-tools/cli/index.d.ts +0 -97
  229. package/types/packages/dev-tools/cli/indexing.d.ts +0 -11
  230. package/types/packages/dev-tools/cli/launch/InitStateMachine.d.ts +0 -142
  231. package/types/packages/dev-tools/cli/launch/config.d.ts +0 -15
  232. package/types/packages/dev-tools/cli/launch/dev-server-orchestrator.d.ts +0 -114
  233. package/types/packages/dev-tools/cli/launch/dry-run-backup.d.ts +0 -16
  234. package/types/packages/dev-tools/cli/launch/errors.d.ts +0 -8
  235. package/types/packages/dev-tools/cli/launch/github.d.ts +0 -9
  236. package/types/packages/dev-tools/cli/launch/grafana.d.ts +0 -8
  237. package/types/packages/dev-tools/cli/launch/helpers.d.ts +0 -42
  238. package/types/packages/dev-tools/cli/launch/helpers.test.d.ts +0 -1
  239. package/types/packages/dev-tools/cli/launch/machine-health.d.ts +0 -17
  240. package/types/packages/dev-tools/cli/launch/proxy.d.ts +0 -6
  241. package/types/packages/dev-tools/cli/launch/server.d.ts +0 -26
  242. package/types/packages/dev-tools/cli/launch.d.ts +0 -93
  243. package/types/packages/dev-tools/cli/prettier.d.ts +0 -10
  244. package/types/packages/dev-tools/cli/prettier.integration.test.d.ts +0 -1
  245. package/types/packages/dev-tools/cli/repo-indexing/component-discovery.d.ts +0 -21
  246. package/types/packages/dev-tools/cli/repo-indexing/component-indexing.d.ts +0 -34
  247. package/types/packages/dev-tools/cli/repo-indexing/icons.d.ts +0 -32
  248. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing-utils.d.ts +0 -109
  249. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.d.ts +0 -41
  250. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.mock.d.ts +0 -5
  251. package/types/packages/dev-tools/cli/repo-indexing/types.d.ts +0 -12
  252. package/types/packages/dev-tools/cli/repo-metrics.d.ts +0 -9
  253. package/types/packages/dev-tools/cli/report/figma-report.d.ts +0 -81
  254. package/types/packages/dev-tools/cli/server-ws.d.ts +0 -60
  255. package/types/packages/dev-tools/cli/spinner.d.ts +0 -6
  256. package/types/packages/dev-tools/cli/sync-utils.d.ts +0 -45
  257. package/types/packages/dev-tools/cli/track.d.ts +0 -8
  258. package/types/packages/dev-tools/cli/utils/component-group-mdx-prompt.d.ts +0 -2
  259. package/types/packages/dev-tools/cli/utils/dev-server-url-parser.d.ts +0 -15
  260. package/types/packages/dev-tools/cli/utils/dev-server-url-parser.test.d.ts +0 -1
  261. package/types/packages/dev-tools/cli/utils/feature-flags.d.ts +0 -4
  262. package/types/packages/dev-tools/cli/utils/git.d.ts +0 -34
  263. package/types/packages/dev-tools/cli/utils/open.d.ts +0 -1
  264. package/types/packages/dev-tools/cli/utils/parseGitDiff.d.ts +0 -11
  265. package/types/packages/dev-tools/cli/utils/repo-indexing-agent-prompt.d.ts +0 -2
  266. package/types/packages/dev-tools/cli/utils/repo-indexing-group-prompt.d.ts +0 -1
  267. package/types/packages/dev-tools/cli/utils/signals.d.ts +0 -2
  268. package/types/packages/dev-tools/cli/utils/terminal-buffer.d.ts +0 -29
  269. package/types/packages/dev-tools/cli/utils/terminal-buffer.spec.d.ts +0 -1
  270. package/types/packages/dev-tools/cli/utils/workspace-path-resolver.d.ts +0 -99
  271. package/types/packages/dev-tools/cli/utils/workspace-path-resolver.unit.d.ts +0 -1
  272. package/types/packages/dev-tools/cli/version.d.ts +0 -1
  273. package/types/packages/dev-tools/client/client-api.d.ts +0 -44
  274. package/types/packages/dev-tools/client/edit-button/document-listeners.d.ts +0 -4
  275. package/types/packages/dev-tools/client/edit-button/index.d.ts +0 -8
  276. package/types/packages/dev-tools/client/index.d.ts +0 -1
  277. package/types/packages/dev-tools/client/menu/index.d.ts +0 -5
  278. package/types/packages/dev-tools/client/menu/pages/component-detail.d.ts +0 -10
  279. package/types/packages/dev-tools/client/menu/pages/component-input.d.ts +0 -7
  280. package/types/packages/dev-tools/client/menu/pages/component-list.d.ts +0 -7
  281. package/types/packages/dev-tools/client/menu/pages/home.d.ts +0 -1
  282. package/types/packages/dev-tools/client/menu/pages/settings.d.ts +0 -1
  283. package/types/packages/dev-tools/client/menu/toggle/menu-toggle.d.ts +0 -5
  284. package/types/packages/dev-tools/client/setup-ui/connected.d.ts +0 -1
  285. package/types/packages/dev-tools/client/setup-ui/index.d.ts +0 -1
  286. package/types/packages/dev-tools/client/setup-ui/overview.d.ts +0 -4
  287. package/types/packages/dev-tools/client/tracking.d.ts +0 -22
  288. package/types/packages/dev-tools/client/utils.d.ts +0 -16
  289. package/types/packages/dev-tools/common/ast/app-dependencies.d.ts +0 -10
  290. package/types/packages/dev-tools/common/ast/component-info.d.ts +0 -29
  291. package/types/packages/dev-tools/common/ast/component-input-types.d.ts +0 -43
  292. package/types/packages/dev-tools/common/ast/component-registry.d.ts +0 -24
  293. package/types/packages/dev-tools/common/ast/convert-values.d.ts +0 -43
  294. package/types/packages/dev-tools/common/ast/convert-values.unit.d.ts +0 -1
  295. package/types/packages/dev-tools/common/ast/ensure-array-statement.d.ts +0 -11
  296. package/types/packages/dev-tools/common/ast/ensure-array-statement.unit.d.ts +0 -1
  297. package/types/packages/dev-tools/common/ast/ensure-comments.d.ts +0 -5
  298. package/types/packages/dev-tools/common/ast/ensure-imports.d.ts +0 -14
  299. package/types/packages/dev-tools/common/ast/ensure-imports.unit.d.ts +0 -1
  300. package/types/packages/dev-tools/common/ast/exported-statements.d.ts +0 -12
  301. package/types/packages/dev-tools/common/ast/exported-statements.unit.d.ts +0 -1
  302. package/types/packages/dev-tools/common/ast/imported-statements.d.ts +0 -8
  303. package/types/packages/dev-tools/common/ast/imported-statements.unit.d.ts +0 -1
  304. package/types/packages/dev-tools/common/ast/normalize-statements.d.ts +0 -16
  305. package/types/packages/dev-tools/common/ast/normalize-statements.unit.d.ts +0 -1
  306. package/types/packages/dev-tools/common/ast/remove-unused-imports.d.ts +0 -6
  307. package/types/packages/dev-tools/common/ast/remove-unused-imports.unit.d.ts +0 -1
  308. package/types/packages/dev-tools/common/ast/transform.d.ts +0 -15
  309. package/types/packages/dev-tools/common/ast/utils.d.ts +0 -49
  310. package/types/packages/dev-tools/common/ast/utils.unit.d.ts +0 -1
  311. package/types/packages/dev-tools/common/builder/builder-api.d.ts +0 -36
  312. package/types/packages/dev-tools/common/builder/builder-sdks.d.ts +0 -12
  313. package/types/packages/dev-tools/common/builder/content-generation.d.ts +0 -11
  314. package/types/packages/dev-tools/common/builder/content-ids.d.ts +0 -4
  315. package/types/packages/dev-tools/common/cache.d.ts +0 -6
  316. package/types/packages/dev-tools/common/constants.d.ts +0 -17
  317. package/types/packages/dev-tools/common/dotenv.d.ts +0 -25
  318. package/types/packages/dev-tools/common/dotenv.test.d.ts +0 -1
  319. package/types/packages/dev-tools/common/errors.d.ts +0 -50
  320. package/types/packages/dev-tools/common/estimate-code-tokens.d.ts +0 -1
  321. package/types/packages/dev-tools/common/fs.d.ts +0 -19
  322. package/types/packages/dev-tools/common/interactive-select-files.d.ts +0 -17
  323. package/types/packages/dev-tools/common/mem-sys.d.ts +0 -10
  324. package/types/packages/dev-tools/common/node-request.d.ts +0 -7
  325. package/types/packages/dev-tools/common/path.d.ts +0 -2
  326. package/types/packages/dev-tools/common/test-utils.d.ts +0 -23
  327. package/types/packages/dev-tools/common/typescript.d.ts +0 -28
  328. package/types/packages/dev-tools/common/utils.d.ts +0 -55
  329. package/types/packages/dev-tools/common/utils.unit.d.ts +0 -1
  330. package/types/packages/dev-tools/core/adapters/angular/angular-api-key.d.ts +0 -33
  331. package/types/packages/dev-tools/core/adapters/angular/angular-api-key.unit.d.ts +0 -1
  332. package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.d.ts +0 -13
  333. package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.unit.d.ts +0 -1
  334. package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.d.ts +0 -7
  335. package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.unit.d.ts +0 -1
  336. package/types/packages/dev-tools/core/adapters/angular/angular-components.d.ts +0 -46
  337. package/types/packages/dev-tools/core/adapters/angular/angular-components.unit.d.ts +0 -1
  338. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-builder-setup.d.ts +0 -11
  339. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.d.ts +0 -21
  340. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.unit.d.ts +0 -1
  341. package/types/packages/dev-tools/core/adapters/angular/angular-fix-tsconfig.d.ts +0 -4
  342. package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.d.ts +0 -28
  343. package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.unit.d.ts +0 -1
  344. package/types/packages/dev-tools/core/adapters/angular/angular-registry.d.ts +0 -16
  345. package/types/packages/dev-tools/core/adapters/angular/angular-registry.unit.d.ts +0 -1
  346. package/types/packages/dev-tools/core/adapters/angular/angular-test-utils.d.ts +0 -10
  347. package/types/packages/dev-tools/core/adapters/angular/index.d.ts +0 -22
  348. package/types/packages/dev-tools/core/adapters/angular/types.d.ts +0 -11
  349. package/types/packages/dev-tools/core/adapters/next/index.d.ts +0 -36
  350. package/types/packages/dev-tools/core/adapters/next/next-api-key.d.ts +0 -7
  351. package/types/packages/dev-tools/core/adapters/next/next-component-info.d.ts +0 -12
  352. package/types/packages/dev-tools/core/adapters/next/next-component-info.unit.d.ts +0 -1
  353. package/types/packages/dev-tools/core/adapters/next/next-component-inputs.unit.d.ts +0 -1
  354. package/types/packages/dev-tools/core/adapters/next/next-component-source-inputs.unit.d.ts +0 -1
  355. package/types/packages/dev-tools/core/adapters/next/next-components.d.ts +0 -7
  356. package/types/packages/dev-tools/core/adapters/next/next-ensure-builder-setup.d.ts +0 -8
  357. package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.d.ts +0 -7
  358. package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.unit.d.ts +0 -1
  359. package/types/packages/dev-tools/core/adapters/next/next-registry-parse.d.ts +0 -26
  360. package/types/packages/dev-tools/core/adapters/next/next-registry-parse.unit.d.ts +0 -1
  361. package/types/packages/dev-tools/core/adapters/next/next-registry.d.ts +0 -16
  362. package/types/packages/dev-tools/core/adapters/next/next-registry.unit.d.ts +0 -1
  363. package/types/packages/dev-tools/core/adapters/next/next-test-utils.d.ts +0 -26
  364. package/types/packages/dev-tools/core/adapters/qwik-city/index.d.ts +0 -16
  365. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-api-key.d.ts +0 -7
  366. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +0 -6
  367. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.d.ts +0 -30
  368. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.unit.d.ts +0 -1
  369. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +0 -8
  370. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +0 -6
  371. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.d.ts +0 -28
  372. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.unit.d.ts +0 -1
  373. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.d.ts +0 -16
  374. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.unit.d.ts +0 -1
  375. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-test-utils.d.ts +0 -10
  376. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.d.ts +0 -4
  377. package/types/packages/dev-tools/core/adapters/react/index.d.ts +0 -21
  378. package/types/packages/dev-tools/core/adapters/react/react-api-key.d.ts +0 -9
  379. package/types/packages/dev-tools/core/adapters/react/react-builder-sdk-setup.d.ts +0 -4
  380. package/types/packages/dev-tools/core/adapters/react/react-component-info.d.ts +0 -12
  381. package/types/packages/dev-tools/core/adapters/react/react-components.d.ts +0 -44
  382. package/types/packages/dev-tools/core/adapters/react/react-components.unit.d.ts +0 -1
  383. package/types/packages/dev-tools/core/adapters/react/react-ensure-builder-setup.d.ts +0 -8
  384. package/types/packages/dev-tools/core/adapters/react/react-registry-parse.d.ts +0 -26
  385. package/types/packages/dev-tools/core/adapters/react/react-registry-parse.unit.d.ts +0 -1
  386. package/types/packages/dev-tools/core/adapters/react/react-registry.d.ts +0 -16
  387. package/types/packages/dev-tools/core/adapters/react/react-registry.unit.d.ts +0 -1
  388. package/types/packages/dev-tools/core/adapters/react/react-test-utils.d.ts +0 -13
  389. package/types/packages/dev-tools/core/adapters/react/react-ts-program.d.ts +0 -4
  390. package/types/packages/dev-tools/core/adapters/remix/index.d.ts +0 -21
  391. package/types/packages/dev-tools/core/adapters/remix/remix-api-key.d.ts +0 -7
  392. package/types/packages/dev-tools/core/adapters/remix/remix-components.d.ts +0 -7
  393. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-builder-setup.d.ts +0 -11
  394. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.d.ts +0 -7
  395. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.unit.d.ts +0 -1
  396. package/types/packages/dev-tools/core/adapters/remix/remix-registry-parse.d.ts +0 -28
  397. package/types/packages/dev-tools/core/adapters/remix/remix-registry.d.ts +0 -16
  398. package/types/packages/dev-tools/core/adapters/remix/remix-registry.unit.d.ts +0 -1
  399. package/types/packages/dev-tools/core/adapters/remix/remix-test-utils.d.ts +0 -13
  400. package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.d.ts +0 -17
  401. package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.unit.d.ts +0 -1
  402. package/types/packages/dev-tools/core/adapters/vue/index.d.ts +0 -22
  403. package/types/packages/dev-tools/core/adapters/vue/vue-api-key.d.ts +0 -9
  404. package/types/packages/dev-tools/core/adapters/vue/vue-components.d.ts +0 -12
  405. package/types/packages/dev-tools/core/adapters/vue/vue-ensure-builder-setup.d.ts +0 -11
  406. package/types/packages/dev-tools/core/adapters/vue/vue-registry-parse.d.ts +0 -26
  407. package/types/packages/dev-tools/core/adapters/vue/vue-registry.d.ts +0 -8
  408. package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.d.ts +0 -16
  409. package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.unit.d.ts +0 -1
  410. package/types/packages/dev-tools/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +0 -7
  411. package/types/packages/dev-tools/core/client-script.d.ts +0 -1
  412. package/types/packages/dev-tools/core/create-dev-tools.d.ts +0 -4
  413. package/types/packages/dev-tools/core/detect-frameworks.d.ts +0 -9
  414. package/types/packages/dev-tools/core/ensure-config-plugin.d.ts +0 -7
  415. package/types/packages/dev-tools/core/find-dependencies.d.ts +0 -10
  416. package/types/packages/dev-tools/core/import-export-registry.d.ts +0 -10
  417. package/types/packages/dev-tools/core/index.d.ts +0 -23
  418. package/types/packages/dev-tools/figma/index.d.ts +0 -119
  419. package/types/packages/dev-tools/node/index.d.ts +0 -2
  420. package/types/packages/dev-tools/node/node-sys.d.ts +0 -21
  421. package/types/packages/dev-tools/remix/index.d.ts +0 -8
  422. package/types/packages/dev-tools/server/auth.d.ts +0 -5
  423. package/types/packages/dev-tools/server/builder-connect.d.ts +0 -21
  424. package/types/packages/dev-tools/server/client-script.d.ts +0 -7
  425. package/types/packages/dev-tools/server/create-dev-tools-server.d.ts +0 -4
  426. package/types/packages/dev-tools/server/dev-tools-api.d.ts +0 -5
  427. package/types/packages/dev-tools/server/dev-tools-http-server.d.ts +0 -4
  428. package/types/packages/dev-tools/server/index.d.ts +0 -30
  429. package/types/packages/dev-tools/server/request-handler.d.ts +0 -8
  430. package/types/packages/dev-tools/types/codegen-server.d.ts +0 -14
  431. package/types/packages/dev-tools/types/connection-tracker.d.ts +0 -41
  432. package/types/packages/dev-tools/types/proxy-middleware.d.ts +0 -41
  433. package/types/packages/dev-tools/types/websocket-types.d.ts +0 -19
  434. package/types/packages/dev-tools/types.d.ts +0 -554
  435. package/types/packages/dev-tools/vite/main.d.ts +0 -7
  436. package/types/packages/dev-tools/vitest.config.d.ts +0 -2
  437. package/types/packages/dev-tools/webpack/main.d.ts +0 -9
@@ -3,59 +3,29 @@ import type { DevToolsSys } from "../types";
3
3
  import type { CLIArgs } from "./index";
4
4
  import type { FigmaBuilderLink, FigmaComponentInfo } from "$/ai-utils";
5
5
  type FigmaAPIOpts = {
6
- auth: {
7
- access_token: string;
8
- oauth: boolean;
9
- };
10
- params?: Record<string, any>;
6
+ auth: {
7
+ access_token: string;
8
+ oauth: boolean;
9
+ };
10
+ params?: Record<string, any>;
11
11
  };
12
12
  export declare const parseFigmaURL: (str: string) => {
13
- fileID: string;
14
- nodeId: string;
13
+ fileID: string;
14
+ nodeId: string;
15
15
  } | null;
16
- export declare const figmaApi: <T = any>(
17
- sys: DevToolsSys,
18
- args: CLIArgs,
19
- path: string,
20
- { auth, params }: FigmaAPIOpts,
21
- ) => Promise<T>;
22
- export declare const getFigmaNodeData: (
23
- sys: DevToolsSys,
24
- args: CLIArgs,
25
- auth: {
26
- access_token: string;
27
- oauth: boolean;
28
- },
29
- fileId: string,
30
- nodeIds: string,
31
- depth?: number,
32
- ) => Promise<any>;
33
- export declare function getImportDataFromToken(
34
- credentials: Credentials,
35
- token: string,
36
- verbose: boolean,
37
- ): Promise<(readonly [string, FigmaComponentInfo])[]>;
16
+ export declare const figmaApi: <T = any>(sys: DevToolsSys, args: CLIArgs, path: string, { auth, params }: FigmaAPIOpts) => Promise<T>;
17
+ export declare const getFigmaNodeData: (sys: DevToolsSys, args: CLIArgs, auth: {
18
+ access_token: string;
19
+ oauth: boolean;
20
+ }, fileId: string, nodeIds: string, depth?: number) => Promise<any>;
21
+ export declare function getImportDataFromToken(credentials: Credentials, token: string, verbose: boolean): Promise<(readonly [string, FigmaComponentInfo])[]>;
38
22
  export declare function needsFigmaAuth(urls: string[]): boolean;
39
- export declare function getFigmaNodeDataFromURLs(
40
- sys: DevToolsSys,
41
- args: CLIArgs,
42
- figmaAuth:
43
- | {
44
- access_token: string;
45
- oauth: boolean;
46
- }
47
- | undefined,
48
- builderAuth: {
49
- privateKey: string;
50
- spaceId: string;
51
- },
52
- urls: string[],
53
- ): Promise<(readonly [string, FigmaComponentInfo])[]>;
54
- export declare function inPlaceResolveFigmaURLs(
55
- sys: DevToolsSys,
56
- args: CLIArgs,
57
- figmaAuth: FigmaAuth,
58
- figmaBuilderLinks: FigmaBuilderLink[],
59
- figmaLinksToResolve: string[],
60
- ): Promise<void>;
23
+ export declare function getFigmaNodeDataFromURLs(sys: DevToolsSys, args: CLIArgs, figmaAuth: {
24
+ access_token: string;
25
+ oauth: boolean;
26
+ } | undefined, builderAuth: {
27
+ privateKey: string;
28
+ spaceId: string;
29
+ }, urls: string[]): Promise<(readonly [string, FigmaComponentInfo])[]>;
30
+ export declare function inPlaceResolveFigmaURLs(sys: DevToolsSys, args: CLIArgs, figmaAuth: FigmaAuth, figmaBuilderLinks: FigmaBuilderLink[], figmaLinksToResolve: string[]): Promise<void>;
61
31
  export {};
@@ -1,11 +1,4 @@
1
1
  import type { DevToolsSys } from "../types";
2
2
  import type { CLIArgs } from ".";
3
- export declare const runFigmaCommand: (
4
- sys: DevToolsSys,
5
- subCommand: string,
6
- args: CLIArgs,
7
- ) => Promise<void>;
8
- export declare function askToInstallBuilder(
9
- sys: DevToolsSys,
10
- args: CLIArgs,
11
- ): Promise<void>;
3
+ export declare const runFigmaCommand: (sys: DevToolsSys, subCommand: string, args: CLIArgs) => Promise<void>;
4
+ export declare function askToInstallBuilder(sys: DevToolsSys, args: CLIArgs): Promise<void>;
@@ -1,19 +1,16 @@
1
1
  import type { ComponentInfo, ComponentRegistry, DevToolsSys } from "../types";
2
2
  import type { CLIArgs } from "./index";
3
3
  import { type FigmaComponentInfo, type UserContext } from "$/ai-utils";
4
- export declare const runFigmaGenerate: (
5
- sys: DevToolsSys,
6
- args: CLIArgs,
7
- ) => Promise<undefined>;
4
+ export declare const runFigmaGenerate: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
8
5
  export interface MappingCodeV3 {
9
- figmaNode?: FigmaComponentInfo;
10
- registry?: ComponentRegistry;
11
- userContext?: UserContext;
12
- figmaUrl?: string;
13
- docsUrl?: string;
14
- registeredCmp?: ComponentInfo;
15
- previousCompletion?: string;
16
- userPrompt?: string;
17
- token?: string;
18
- pragma?: string;
6
+ figmaNode?: FigmaComponentInfo;
7
+ registry?: ComponentRegistry;
8
+ userContext?: UserContext;
9
+ figmaUrl?: string;
10
+ docsUrl?: string;
11
+ registeredCmp?: ComponentInfo;
12
+ previousCompletion?: string;
13
+ userPrompt?: string;
14
+ token?: string;
15
+ pragma?: string;
19
16
  }
@@ -8,35 +8,23 @@ import * as ts from "typescript";
8
8
  * @returns An object containing the new builder program and collected diagnostics.
9
9
  */
10
10
  export interface CheckpointData {
11
- program: ts.EmitAndSemanticDiagnosticsBuilderProgram;
12
- diagnostics: ts.Diagnostic[];
11
+ program: ts.EmitAndSemanticDiagnosticsBuilderProgram;
12
+ diagnostics: ts.Diagnostic[];
13
13
  }
14
14
  export type Checkpoint = CheckpointData | null;
15
- export declare function runCheckpoint(
16
- projectDir: string,
17
- oldProgram?: ts.EmitAndSemanticDiagnosticsBuilderProgram,
18
- ): Checkpoint;
15
+ export declare function runCheckpoint(projectDir: string, oldProgram?: ts.EmitAndSemanticDiagnosticsBuilderProgram): Checkpoint;
19
16
  export declare function filterDiagnostic(c: ts.Diagnostic): boolean;
20
17
  /**
21
18
  * Given a new list of diagnostics and a baseline list, filter out diagnostics
22
19
  * that were already present in the baseline.
23
20
  */
24
- export declare function filterBaselineDiagnostics(
25
- baselineFingerprints: Set<string>,
26
- checkpoint: Checkpoint,
27
- ): ts.Diagnostic[];
28
- export declare function createFingerprintSet(
29
- checkpoint: Checkpoint,
30
- ): Set<string>;
21
+ export declare function filterBaselineDiagnostics(baselineFingerprints: Set<string>, checkpoint: Checkpoint): ts.Diagnostic[];
22
+ export declare function createFingerprintSet(checkpoint: Checkpoint): Set<string>;
31
23
  /**
32
24
  * Pretty prints diagnostics as a plain text string.
33
25
  *
34
26
  * @param diagnostics - An array of ts.Diagnostic objects.
35
27
  * @returns A formatted string that describes the diagnostics.
36
28
  */
37
- export declare function prettyPrintDiagnostics(
38
- diagnostics: ts.Diagnostic[],
39
- ): string;
40
- export declare function prettyPrintDiagnosticsWithContext(
41
- diagnostics: ts.Diagnostic[],
42
- ): string;
29
+ export declare function prettyPrintDiagnostics(diagnostics: ts.Diagnostic[]): string;
30
+ export declare function prettyPrintDiagnosticsWithContext(diagnostics: ts.Diagnostic[]): string;
@@ -1,16 +1,6 @@
1
1
  import { type FusionConfig } from "$/ai-utils";
2
2
  import type { LaunchArgs } from "../launch";
3
3
  import type { DevToolsSys } from "../../types";
4
- export declare function getFusionConfig(
5
- sys: DevToolsSys,
6
- args: LaunchArgs,
7
- ): Promise<FusionConfig>;
8
- export declare function saveFusionConfig(
9
- sys: DevToolsSys,
10
- fusionConfig: FusionConfig,
11
- args: LaunchArgs,
12
- ): Promise<void>;
13
- export declare function trackConfigData(
14
- sys: DevToolsSys,
15
- fusionConfig: FusionConfig,
16
- ): void;
4
+ export declare function getFusionConfig(sys: DevToolsSys, args: LaunchArgs): Promise<FusionConfig>;
5
+ export declare function saveFusionConfig(sys: DevToolsSys, fusionConfig: FusionConfig, args: LaunchArgs): Promise<void>;
6
+ export declare function trackConfigData(sys: DevToolsSys, fusionConfig: FusionConfig): void;
@@ -1,16 +1,9 @@
1
1
  import { type InitConfig } from "./InitStateMachine";
2
2
  import type { InitState } from "$/ai-utils";
3
- export declare const attemptDryRunBackupGit: (
4
- initConfig: InitConfig,
5
- realInitState: InitState,
6
- ) => Promise<
7
- | {
8
- success: boolean;
9
- error: string;
10
- }
11
- | {
12
- success: boolean;
13
- error?: undefined;
14
- }
15
- | null
16
- >;
3
+ export declare const attemptDryRunBackupGit: (initConfig: InitConfig, realInitState: InitState) => Promise<{
4
+ success: boolean;
5
+ error: string;
6
+ } | {
7
+ success: boolean;
8
+ error?: undefined;
9
+ } | null>;
@@ -1,8 +1,3 @@
1
1
  export declare const isGitHubAuthError: (errorMessage: string) => boolean;
2
- export declare const getGitHubAuthErrorMessage: (
3
- repoName: string,
4
- hasGhToken: boolean,
5
- ) => string;
6
- export declare const getUserMessageForNpmInstallErrors: (
7
- errorOutput: string,
8
- ) => string;
2
+ export declare const getGitHubAuthErrorMessage: (repoName: string, hasGhToken: boolean) => string;
3
+ export declare const getUserMessageForNpmInstallErrors: (errorOutput: string) => string;
@@ -1,9 +1,3 @@
1
1
  export declare const getKVHiddenComment: (key: string, value: string) => string;
2
- export declare const getPreviewUrl: (
3
- projectId: string,
4
- branchName: string,
5
- ) => string;
6
- export declare const getInitialDescription: (
7
- projectId: string,
8
- branchName: string,
9
- ) => string;
2
+ export declare const getPreviewUrl: (projectId: string, branchName: string) => string;
3
+ export declare const getInitialDescription: (projectId: string, branchName: string) => string;
@@ -1,8 +1,4 @@
1
1
  import type { FusionMetrics } from "$/ai-utils";
2
2
  import type { Credentials } from "../credentials";
3
3
  import type { DevToolsSys } from "../../types";
4
- export declare function pushMetrics(
5
- sys: DevToolsSys,
6
- credentials: Credentials,
7
- body: FusionMetrics,
8
- ): Promise<void>;
4
+ export declare function pushMetrics(sys: DevToolsSys, credentials: Credentials, body: FusionMetrics): Promise<void>;
@@ -2,16 +2,11 @@ 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
8
  /**
9
9
  * Creates a fusion status monitor that pings the status endpoint periodically
10
10
  */
11
- export declare function createFusionStatusMonitor(
12
- sys: DevToolsSys,
13
- credentials: Credentials,
14
- fusionConfig: FusionConfig,
15
- sharedState: LaunchServerStatus,
16
- ): FusionStatusMonitor | null;
11
+ export declare function createFusionStatusMonitor(sys: DevToolsSys, credentials: Credentials, fusionConfig: FusionConfig, sharedState: LaunchServerStatus): FusionStatusMonitor | null;
17
12
  export {};
@@ -1,14 +1,11 @@
1
1
  import type { DevToolsSys } from "../../types";
2
2
  import type { ProxyMiddleware } from "../../types/proxy-middleware";
3
- export declare const createProxy: (
4
- serverUrl: string,
5
- sys: DevToolsSys,
6
- ) => ProxyMiddleware;
3
+ export declare const createProxy: (serverUrl: string, sys: DevToolsSys) => ProxyMiddleware;
7
4
  /**
8
5
  * Detects if HTML was server-side rendered by checking for framework-specific markers.
9
6
  * Returns whether SSR was used and whether the header/head was server-rendered.
10
7
  */
11
8
  export declare const detectSSR: (body: string) => {
12
- hasSSR: boolean;
13
- hasHeaderSSR: boolean;
9
+ hasSSR: boolean;
10
+ hasHeaderSSR: boolean;
14
11
  };
@@ -6,21 +6,15 @@ export declare const BUILDER_API_ENDPOINT_PREFIX: string;
6
6
  * Endpoints that are not authenticated because they are used by the fly.io health check.
7
7
  */
8
8
  export declare const NON_AUTHENTICATED_ENDPOINTS: {
9
- readonly STATUS: "/status";
10
- readonly PROXY_STATUS: "/proxy-status";
11
- readonly STATUS_V2: "/status-v2";
12
- readonly INIT_LOGS: "/init-logs";
9
+ readonly STATUS: "/status";
10
+ readonly PROXY_STATUS: "/proxy-status";
11
+ readonly STATUS_V2: "/status-v2";
12
+ readonly INIT_LOGS: "/init-logs";
13
13
  };
14
- export declare const configureServer: ({
15
- app,
16
- validBuilderPrivateKey,
17
- authenticateProxy,
18
- isLocal,
19
- sharedState,
20
- }: {
21
- app: Express;
22
- validBuilderPrivateKey: string | undefined;
23
- authenticateProxy: boolean;
24
- isLocal: boolean;
25
- sharedState: LaunchServerStatus;
14
+ export declare const configureServer: ({ app, validBuilderPrivateKey, authenticateProxy, isLocal, sharedState, }: {
15
+ app: Express;
16
+ validBuilderPrivateKey: string | undefined;
17
+ authenticateProxy: boolean;
18
+ isLocal: boolean;
19
+ sharedState: LaunchServerStatus;
26
20
  }) => void;
@@ -2,107 +2,104 @@ 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;
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
101
  }
102
- export declare function runFusionCommand({
103
- sys,
104
- args,
105
- }: {
106
- sys: DevToolsSys;
107
- args: LaunchArgs;
102
+ export declare function runFusionCommand({ sys, args, }: {
103
+ sys: DevToolsSys;
104
+ args: LaunchArgs;
108
105
  }): Promise<void>;
@@ -1,10 +1,3 @@
1
1
  import builtInPrettier from "prettier";
2
- export declare function loadPrettier(
3
- absoluteFilePath: string | undefined,
4
- ): typeof builtInPrettier;
5
- export declare function prettierFormat(
6
- workingDirectory: string,
7
- code: string,
8
- parser: string | undefined,
9
- filePath: string | undefined,
10
- ): Promise<string>;
2
+ export declare function loadPrettier(absoluteFilePath: string | undefined): typeof builtInPrettier;
3
+ 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>;