@builder.io/dev-tools 1.18.11-dev.202511202306.80563b8f8 → 1.18.11-dev.202511202319.621aec6ae

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 +115 -91
  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 +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 +112 -58
  15. package/types/cli/builder-add/interface.d.ts +21 -4
  16. package/types/cli/code-file-utils.d.ts +17 -9
  17. package/types/cli/code.d.ts +13 -3
  18. package/types/cli/credentials.d.ts +61 -45
  19. package/types/cli/download.d.ts +9 -4
  20. package/types/cli/env-substitution.d.ts +22 -0
  21. package/types/cli/env-substitution.test.d.ts +1 -0
  22. package/types/cli/figma-publish.d.ts +34 -17
  23. package/types/cli/figma-utils.d.ts +51 -21
  24. package/types/cli/figma.d.ts +9 -2
  25. package/types/cli/generate.d.ts +14 -11
  26. package/types/cli/incremental-tsc.d.ts +19 -7
  27. package/types/cli/launch/config.d.ts +13 -3
  28. package/types/cli/launch/dry-run-backup.d.ts +14 -7
  29. package/types/cli/launch/errors.d.ts +7 -2
  30. package/types/cli/launch/github.d.ts +8 -2
  31. package/types/cli/launch/grafana.d.ts +5 -1
  32. package/types/cli/launch/machine-health.d.ts +8 -3
  33. package/types/cli/launch/proxy.d.ts +6 -3
  34. package/types/cli/launch/server.d.ts +16 -10
  35. package/types/cli/launch.d.ts +102 -99
  36. package/types/cli/prettier.d.ts +9 -2
  37. package/types/cli/repo-connect/env-collector.d.ts +16 -11
  38. package/types/cli/repo-connect/file-collector.d.ts +22 -15
  39. package/types/cli/repo-connect/install-runner.d.ts +8 -5
  40. package/types/cli/repo-connect/package-detector.d.ts +12 -8
  41. package/types/cli/repo-connect/repo-connect.d.ts +4 -1
  42. package/types/cli/repo-indexing/repo-indexing.d.ts +37 -17
  43. package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
  44. package/types/cli/repo-metrics.d.ts +4 -1
  45. package/types/cli/report/figma-report.d.ts +63 -36
  46. package/types/cli/server-ws.d.ts +40 -32
  47. package/types/cli/spinner.d.ts +4 -4
  48. package/types/cli/sync-utils.d.ts +39 -16
  49. package/types/cli/track.d.ts +4 -1
  50. package/types/cli/utils/component-group-mdx-prompt.d.ts +2 -1
  51. package/types/cli/utils/dev-server-url-parser.d.ts +6 -3
  52. package/types/cli/utils/env-capture.d.ts +21 -15
  53. package/types/cli/utils/env-filter.d.ts +42 -0
  54. package/types/cli/utils/feature-flags.d.ts +3 -1
  55. package/types/cli/utils/file-overrides-manager.d.ts +39 -23
  56. package/types/cli/utils/git.d.ts +28 -16
  57. package/types/cli/utils/hosts-file-manager.d.ts +7 -4
  58. package/types/cli/utils/lock-file-example.d.ts +30 -0
  59. package/types/cli/utils/lock-file.d.ts +10 -7
  60. package/types/cli/utils/parseGitDiff.d.ts +4 -1
  61. package/types/cli/utils/process-tracker.d.ts +85 -51
  62. package/types/cli/utils/repo-indexing-agent-prompt.d.ts +2 -1
  63. package/types/cli/utils/sudo-helper.d.ts +21 -0
  64. package/types/cli/utils/terminal-buffer.d.ts +23 -23
  65. package/types/cli/utils/workspace-path-resolver.d.ts +23 -16
  66. package/types/client/client-api.d.ts +42 -10
  67. package/types/client/edit-button/document-listeners.d.ts +3 -1
  68. package/types/client/edit-button/index.d.ts +6 -6
  69. package/types/client/menu/index.d.ts +3 -3
  70. package/types/client/menu/pages/component-detail.d.ts +8 -2
  71. package/types/client/menu/pages/component-input.d.ts +5 -1
  72. package/types/client/menu/pages/component-list.d.ts +4 -1
  73. package/types/client/menu/toggle/menu-toggle.d.ts +4 -1
  74. package/types/client/setup-ui/overview.d.ts +2 -2
  75. package/types/client/tracking.d.ts +11 -11
  76. package/types/client/utils.d.ts +5 -3
  77. package/types/common/ast/app-dependencies.d.ts +8 -2
  78. package/types/common/ast/component-info.d.ts +26 -6
  79. package/types/common/ast/component-input-types.d.ts +1 -1
  80. package/types/common/ast/component-registry.d.ts +23 -8
  81. package/types/common/ast/ensure-array-statement.d.ts +7 -3
  82. package/types/common/ast/ensure-comments.d.ts +5 -1
  83. package/types/common/ast/ensure-imports.d.ts +10 -5
  84. package/types/common/ast/exported-statements.d.ts +8 -4
  85. package/types/common/ast/imported-statements.d.ts +5 -1
  86. package/types/common/ast/normalize-statements.d.ts +12 -3
  87. package/types/common/ast/remove-unused-imports.d.ts +4 -1
  88. package/types/common/ast/transform.d.ts +13 -3
  89. package/types/common/ast/utils.d.ts +42 -19
  90. package/types/common/builder/builder-api.d.ts +32 -23
  91. package/types/common/builder/builder-sdks.d.ts +10 -8
  92. package/types/common/builder/content-generation.d.ts +10 -7
  93. package/types/common/builder/content-ids.d.ts +2 -1
  94. package/types/common/cache.d.ts +4 -1
  95. package/types/common/constants.d.ts +2 -1
  96. package/types/common/dotenv.d.ts +24 -5
  97. package/types/common/fs.d.ts +17 -4
  98. package/types/common/interactive-select-files.d.ts +16 -2
  99. package/types/common/mem-sys.d.ts +7 -5
  100. package/types/common/node-request.d.ts +4 -4
  101. package/types/common/path.d.ts +1 -3
  102. package/types/common/test-utils.d.ts +21 -7
  103. package/types/common/typescript.d.ts +26 -7
  104. package/types/common/utils.d.ts +1 -1
  105. package/types/core/adapters/angular/angular-api-key.d.ts +29 -6
  106. package/types/core/adapters/angular/angular-app-module-imports.d.ts +12 -2
  107. package/types/core/adapters/angular/angular-app-routes-update.d.ts +6 -1
  108. package/types/core/adapters/angular/angular-components.d.ts +40 -12
  109. package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +9 -3
  110. package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +16 -4
  111. package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +3 -1
  112. package/types/core/adapters/angular/angular-registry-parse.d.ts +22 -10
  113. package/types/core/adapters/angular/angular-registry.d.ts +15 -2
  114. package/types/core/adapters/angular/angular-test-utils.d.ts +8 -4
  115. package/types/core/adapters/angular/index.d.ts +20 -12
  116. package/types/core/adapters/angular/types.d.ts +5 -5
  117. package/types/core/adapters/next/index.d.ts +26 -18
  118. package/types/core/adapters/next/next-api-key.d.ts +4 -1
  119. package/types/core/adapters/next/next-component-info.d.ts +9 -2
  120. package/types/core/adapters/next/next-components.d.ts +4 -1
  121. package/types/core/adapters/next/next-ensure-builder-setup.d.ts +6 -2
  122. package/types/core/adapters/next/next-ensure-config-plugin.d.ts +5 -1
  123. package/types/core/adapters/next/next-registry-parse.d.ts +21 -8
  124. package/types/core/adapters/next/next-registry.d.ts +15 -2
  125. package/types/core/adapters/next/next-test-utils.d.ts +21 -11
  126. package/types/core/adapters/qwik-city/index.d.ts +14 -6
  127. package/types/core/adapters/qwik-city/qwik-api-key.d.ts +4 -1
  128. package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +4 -1
  129. package/types/core/adapters/qwik-city/qwik-components.d.ts +23 -8
  130. package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +6 -2
  131. package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +5 -1
  132. package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +22 -10
  133. package/types/core/adapters/qwik-city/qwik-registry.d.ts +15 -2
  134. package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +8 -4
  135. package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +3 -1
  136. package/types/core/adapters/react/index.d.ts +19 -11
  137. package/types/core/adapters/react/react-api-key.d.ts +4 -1
  138. package/types/core/adapters/react/react-builder-sdk-setup.d.ts +3 -1
  139. package/types/core/adapters/react/react-component-info.d.ts +9 -2
  140. package/types/core/adapters/react/react-components.d.ts +37 -11
  141. package/types/core/adapters/react/react-ensure-builder-setup.d.ts +6 -2
  142. package/types/core/adapters/react/react-registry-parse.d.ts +21 -8
  143. package/types/core/adapters/react/react-registry.d.ts +15 -2
  144. package/types/core/adapters/react/react-test-utils.d.ts +11 -5
  145. package/types/core/adapters/react/react-ts-program.d.ts +3 -1
  146. package/types/core/adapters/remix/index.d.ts +19 -11
  147. package/types/core/adapters/remix/remix-api-key.d.ts +4 -1
  148. package/types/core/adapters/remix/remix-components.d.ts +4 -1
  149. package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +9 -3
  150. package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +5 -1
  151. package/types/core/adapters/remix/remix-registry-parse.d.ts +22 -10
  152. package/types/core/adapters/remix/remix-registry.d.ts +15 -2
  153. package/types/core/adapters/remix/remix-test-utils.d.ts +11 -5
  154. package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +12 -2
  155. package/types/core/adapters/vue/index.d.ts +20 -12
  156. package/types/core/adapters/vue/vue-api-key.d.ts +4 -1
  157. package/types/core/adapters/vue/vue-components.d.ts +10 -2
  158. package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +7 -3
  159. package/types/core/adapters/vue/vue-registry-parse.d.ts +19 -9
  160. package/types/core/adapters/vue/vue-registry.d.ts +6 -3
  161. package/types/core/adapters/webpack/webpack-config-helpers.d.ts +8 -3
  162. package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +5 -1
  163. package/types/core/create-dev-tools.d.ts +4 -1
  164. package/types/core/detect-frameworks.d.ts +7 -2
  165. package/types/core/ensure-config-plugin.d.ts +6 -2
  166. package/types/core/find-dependencies.d.ts +6 -3
  167. package/types/core/import-export-registry.d.ts +9 -2
  168. package/types/core/index.d.ts +18 -3
  169. package/types/figma/index.d.ts +95 -64
  170. package/types/node/node-sys.d.ts +13 -6
  171. package/types/packages/dev-tools/_tests_/code.e2e.d.ts +1 -0
  172. package/types/packages/dev-tools/_tests_/create-builder.e2e.d.ts +1 -0
  173. package/types/packages/dev-tools/_tests_/dev-tools.e2e.d.ts +1 -0
  174. package/types/packages/dev-tools/_tests_/figma-generate.e2e.d.ts +1 -0
  175. package/types/packages/dev-tools/_tests_/figma-publish.e2e.d.ts +1 -0
  176. package/types/packages/dev-tools/_tests_/fusionInit.e2e.d.ts +1 -0
  177. package/types/packages/dev-tools/_tests_/help.e2e.d.ts +1 -0
  178. package/types/packages/dev-tools/_tests_/launch.e2e.d.ts +1 -0
  179. package/types/packages/dev-tools/_tests_/repo-indexing.test.d.ts +1 -0
  180. package/types/packages/dev-tools/_tests_/sync-utils.test.d.ts +1 -0
  181. package/types/packages/dev-tools/_tests_/utils.d.ts +57 -0
  182. package/types/packages/dev-tools/_tests_/vitest.config.d.ts +2 -0
  183. package/types/packages/dev-tools/_tests_/workspace.e2e.d.ts +1 -0
  184. package/types/packages/dev-tools/angular/index.d.ts +1 -0
  185. package/types/packages/dev-tools/cli/__tests__/isLikelyFixedString.spec.d.ts +1 -0
  186. package/types/packages/dev-tools/cli/__tests__/parseGitDiffToApplyActions.spec.d.ts +1 -0
  187. package/types/packages/dev-tools/cli/abort-signal-any.d.ts +3 -0
  188. package/types/packages/dev-tools/cli/auth/auth-utils.d.ts +4 -0
  189. package/types/packages/dev-tools/cli/auth/auth.d.ts +7 -0
  190. package/types/packages/dev-tools/cli/auth/status.d.ts +3 -0
  191. package/types/packages/dev-tools/cli/backup.d.ts +172 -0
  192. package/types/packages/dev-tools/cli/builder-add/interface.d.ts +22 -0
  193. package/types/packages/dev-tools/cli/builder-add/options.d.ts +2 -0
  194. package/types/packages/dev-tools/cli/code-file-utils.d.ts +20 -0
  195. package/types/packages/dev-tools/cli/code-file-utils.unit.d.ts +1 -0
  196. package/types/packages/dev-tools/cli/code-tools.d.ts +131 -0
  197. package/types/packages/dev-tools/cli/code.d.ts +17 -0
  198. package/types/packages/dev-tools/cli/codegen.d.ts +456 -0
  199. package/types/packages/dev-tools/cli/constants.d.ts +1 -0
  200. package/types/packages/dev-tools/cli/credentials.d.ts +69 -0
  201. package/types/packages/dev-tools/cli/download.d.ts +15 -0
  202. package/types/packages/dev-tools/cli/exit.d.ts +1 -0
  203. package/types/packages/dev-tools/cli/fetch.d.ts +1 -0
  204. package/types/packages/dev-tools/cli/figma-publish.d.ts +41 -0
  205. package/types/packages/dev-tools/cli/figma-publish.spec.d.ts +1 -0
  206. package/types/packages/dev-tools/cli/figma-utils.d.ts +61 -0
  207. package/types/packages/dev-tools/cli/figma.d.ts +11 -0
  208. package/types/packages/dev-tools/cli/generate.d.ts +19 -0
  209. package/types/packages/dev-tools/cli/help.d.ts +1 -0
  210. package/types/packages/dev-tools/cli/incremental-tsc.d.ts +42 -0
  211. package/types/packages/dev-tools/cli/index.d.ts +97 -0
  212. package/types/packages/dev-tools/cli/indexing.d.ts +11 -0
  213. package/types/packages/dev-tools/cli/launch/InitStateMachine.d.ts +142 -0
  214. package/types/packages/dev-tools/cli/launch/config.d.ts +15 -0
  215. package/types/packages/dev-tools/cli/launch/dev-server-orchestrator.d.ts +114 -0
  216. package/types/packages/dev-tools/cli/launch/dry-run-backup.d.ts +16 -0
  217. package/types/packages/dev-tools/cli/launch/errors.d.ts +8 -0
  218. package/types/packages/dev-tools/cli/launch/github.d.ts +9 -0
  219. package/types/packages/dev-tools/cli/launch/grafana.d.ts +8 -0
  220. package/types/packages/dev-tools/cli/launch/helpers.d.ts +42 -0
  221. package/types/packages/dev-tools/cli/launch/helpers.test.d.ts +1 -0
  222. package/types/packages/dev-tools/cli/launch/machine-health.d.ts +17 -0
  223. package/types/packages/dev-tools/cli/launch/proxy.d.ts +6 -0
  224. package/types/packages/dev-tools/cli/launch/server.d.ts +26 -0
  225. package/types/packages/dev-tools/cli/launch.d.ts +93 -0
  226. package/types/packages/dev-tools/cli/prettier.d.ts +10 -0
  227. package/types/packages/dev-tools/cli/prettier.integration.test.d.ts +1 -0
  228. package/types/packages/dev-tools/cli/repo-indexing/component-discovery.d.ts +21 -0
  229. package/types/packages/dev-tools/cli/repo-indexing/component-indexing.d.ts +34 -0
  230. package/types/packages/dev-tools/cli/repo-indexing/icons.d.ts +32 -0
  231. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing-utils.d.ts +109 -0
  232. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.d.ts +41 -0
  233. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.mock.d.ts +5 -0
  234. package/types/packages/dev-tools/cli/repo-indexing/types.d.ts +12 -0
  235. package/types/packages/dev-tools/cli/repo-metrics.d.ts +9 -0
  236. package/types/packages/dev-tools/cli/report/figma-report.d.ts +81 -0
  237. package/types/packages/dev-tools/cli/server-ws.d.ts +60 -0
  238. package/types/packages/dev-tools/cli/spinner.d.ts +6 -0
  239. package/types/packages/dev-tools/cli/sync-utils.d.ts +45 -0
  240. package/types/packages/dev-tools/cli/track.d.ts +8 -0
  241. package/types/packages/dev-tools/cli/utils/component-group-mdx-prompt.d.ts +2 -0
  242. package/types/packages/dev-tools/cli/utils/dev-server-url-parser.d.ts +15 -0
  243. package/types/packages/dev-tools/cli/utils/dev-server-url-parser.test.d.ts +1 -0
  244. package/types/packages/dev-tools/cli/utils/feature-flags.d.ts +4 -0
  245. package/types/packages/dev-tools/cli/utils/git.d.ts +34 -0
  246. package/types/packages/dev-tools/cli/utils/open.d.ts +1 -0
  247. package/types/packages/dev-tools/cli/utils/parseGitDiff.d.ts +11 -0
  248. package/types/packages/dev-tools/cli/utils/repo-indexing-agent-prompt.d.ts +2 -0
  249. package/types/packages/dev-tools/cli/utils/repo-indexing-group-prompt.d.ts +1 -0
  250. package/types/packages/dev-tools/cli/utils/signals.d.ts +2 -0
  251. package/types/packages/dev-tools/cli/utils/terminal-buffer.d.ts +29 -0
  252. package/types/packages/dev-tools/cli/utils/terminal-buffer.spec.d.ts +1 -0
  253. package/types/packages/dev-tools/cli/utils/workspace-path-resolver.d.ts +99 -0
  254. package/types/packages/dev-tools/cli/utils/workspace-path-resolver.unit.d.ts +1 -0
  255. package/types/packages/dev-tools/cli/version.d.ts +1 -0
  256. package/types/packages/dev-tools/client/client-api.d.ts +44 -0
  257. package/types/packages/dev-tools/client/edit-button/document-listeners.d.ts +4 -0
  258. package/types/packages/dev-tools/client/edit-button/index.d.ts +8 -0
  259. package/types/packages/dev-tools/client/index.d.ts +1 -0
  260. package/types/packages/dev-tools/client/menu/index.d.ts +5 -0
  261. package/types/packages/dev-tools/client/menu/pages/component-detail.d.ts +10 -0
  262. package/types/packages/dev-tools/client/menu/pages/component-input.d.ts +7 -0
  263. package/types/packages/dev-tools/client/menu/pages/component-list.d.ts +7 -0
  264. package/types/packages/dev-tools/client/menu/pages/home.d.ts +1 -0
  265. package/types/packages/dev-tools/client/menu/pages/settings.d.ts +1 -0
  266. package/types/packages/dev-tools/client/menu/toggle/menu-toggle.d.ts +5 -0
  267. package/types/packages/dev-tools/client/setup-ui/connected.d.ts +1 -0
  268. package/types/packages/dev-tools/client/setup-ui/index.d.ts +1 -0
  269. package/types/packages/dev-tools/client/setup-ui/overview.d.ts +4 -0
  270. package/types/packages/dev-tools/client/tracking.d.ts +22 -0
  271. package/types/packages/dev-tools/client/utils.d.ts +16 -0
  272. package/types/packages/dev-tools/common/ast/app-dependencies.d.ts +10 -0
  273. package/types/packages/dev-tools/common/ast/component-info.d.ts +29 -0
  274. package/types/packages/dev-tools/common/ast/component-input-types.d.ts +43 -0
  275. package/types/packages/dev-tools/common/ast/component-registry.d.ts +24 -0
  276. package/types/packages/dev-tools/common/ast/convert-values.d.ts +43 -0
  277. package/types/packages/dev-tools/common/ast/convert-values.unit.d.ts +1 -0
  278. package/types/packages/dev-tools/common/ast/ensure-array-statement.d.ts +11 -0
  279. package/types/packages/dev-tools/common/ast/ensure-array-statement.unit.d.ts +1 -0
  280. package/types/packages/dev-tools/common/ast/ensure-comments.d.ts +5 -0
  281. package/types/packages/dev-tools/common/ast/ensure-imports.d.ts +14 -0
  282. package/types/packages/dev-tools/common/ast/ensure-imports.unit.d.ts +1 -0
  283. package/types/packages/dev-tools/common/ast/exported-statements.d.ts +12 -0
  284. package/types/packages/dev-tools/common/ast/exported-statements.unit.d.ts +1 -0
  285. package/types/packages/dev-tools/common/ast/imported-statements.d.ts +8 -0
  286. package/types/packages/dev-tools/common/ast/imported-statements.unit.d.ts +1 -0
  287. package/types/packages/dev-tools/common/ast/normalize-statements.d.ts +16 -0
  288. package/types/packages/dev-tools/common/ast/normalize-statements.unit.d.ts +1 -0
  289. package/types/packages/dev-tools/common/ast/remove-unused-imports.d.ts +6 -0
  290. package/types/packages/dev-tools/common/ast/remove-unused-imports.unit.d.ts +1 -0
  291. package/types/packages/dev-tools/common/ast/transform.d.ts +15 -0
  292. package/types/packages/dev-tools/common/ast/utils.d.ts +49 -0
  293. package/types/packages/dev-tools/common/ast/utils.unit.d.ts +1 -0
  294. package/types/packages/dev-tools/common/builder/builder-api.d.ts +36 -0
  295. package/types/packages/dev-tools/common/builder/builder-sdks.d.ts +12 -0
  296. package/types/packages/dev-tools/common/builder/content-generation.d.ts +11 -0
  297. package/types/packages/dev-tools/common/builder/content-ids.d.ts +4 -0
  298. package/types/packages/dev-tools/common/cache.d.ts +6 -0
  299. package/types/packages/dev-tools/common/constants.d.ts +17 -0
  300. package/types/packages/dev-tools/common/dotenv.d.ts +25 -0
  301. package/types/packages/dev-tools/common/dotenv.test.d.ts +1 -0
  302. package/types/packages/dev-tools/common/errors.d.ts +50 -0
  303. package/types/packages/dev-tools/common/estimate-code-tokens.d.ts +1 -0
  304. package/types/packages/dev-tools/common/fs.d.ts +19 -0
  305. package/types/packages/dev-tools/common/interactive-select-files.d.ts +17 -0
  306. package/types/packages/dev-tools/common/mem-sys.d.ts +10 -0
  307. package/types/packages/dev-tools/common/node-request.d.ts +7 -0
  308. package/types/packages/dev-tools/common/path.d.ts +2 -0
  309. package/types/packages/dev-tools/common/test-utils.d.ts +23 -0
  310. package/types/packages/dev-tools/common/typescript.d.ts +28 -0
  311. package/types/packages/dev-tools/common/utils.d.ts +55 -0
  312. package/types/packages/dev-tools/common/utils.unit.d.ts +1 -0
  313. package/types/packages/dev-tools/core/adapters/angular/angular-api-key.d.ts +33 -0
  314. package/types/packages/dev-tools/core/adapters/angular/angular-api-key.unit.d.ts +1 -0
  315. package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.d.ts +13 -0
  316. package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.unit.d.ts +1 -0
  317. package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.d.ts +7 -0
  318. package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.unit.d.ts +1 -0
  319. package/types/packages/dev-tools/core/adapters/angular/angular-components.d.ts +46 -0
  320. package/types/packages/dev-tools/core/adapters/angular/angular-components.unit.d.ts +1 -0
  321. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-builder-setup.d.ts +11 -0
  322. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.d.ts +21 -0
  323. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.unit.d.ts +1 -0
  324. package/types/packages/dev-tools/core/adapters/angular/angular-fix-tsconfig.d.ts +4 -0
  325. package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.d.ts +28 -0
  326. package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.unit.d.ts +1 -0
  327. package/types/packages/dev-tools/core/adapters/angular/angular-registry.d.ts +16 -0
  328. package/types/packages/dev-tools/core/adapters/angular/angular-registry.unit.d.ts +1 -0
  329. package/types/packages/dev-tools/core/adapters/angular/angular-test-utils.d.ts +10 -0
  330. package/types/packages/dev-tools/core/adapters/angular/index.d.ts +22 -0
  331. package/types/packages/dev-tools/core/adapters/angular/types.d.ts +11 -0
  332. package/types/packages/dev-tools/core/adapters/next/index.d.ts +36 -0
  333. package/types/packages/dev-tools/core/adapters/next/next-api-key.d.ts +7 -0
  334. package/types/packages/dev-tools/core/adapters/next/next-component-info.d.ts +12 -0
  335. package/types/packages/dev-tools/core/adapters/next/next-component-info.unit.d.ts +1 -0
  336. package/types/packages/dev-tools/core/adapters/next/next-component-inputs.unit.d.ts +1 -0
  337. package/types/packages/dev-tools/core/adapters/next/next-component-source-inputs.unit.d.ts +1 -0
  338. package/types/packages/dev-tools/core/adapters/next/next-components.d.ts +7 -0
  339. package/types/packages/dev-tools/core/adapters/next/next-ensure-builder-setup.d.ts +8 -0
  340. package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.d.ts +7 -0
  341. package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.unit.d.ts +1 -0
  342. package/types/packages/dev-tools/core/adapters/next/next-registry-parse.d.ts +26 -0
  343. package/types/packages/dev-tools/core/adapters/next/next-registry-parse.unit.d.ts +1 -0
  344. package/types/packages/dev-tools/core/adapters/next/next-registry.d.ts +16 -0
  345. package/types/packages/dev-tools/core/adapters/next/next-registry.unit.d.ts +1 -0
  346. package/types/packages/dev-tools/core/adapters/next/next-test-utils.d.ts +26 -0
  347. package/types/packages/dev-tools/core/adapters/qwik-city/index.d.ts +16 -0
  348. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-api-key.d.ts +7 -0
  349. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +6 -0
  350. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.d.ts +30 -0
  351. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.unit.d.ts +1 -0
  352. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +8 -0
  353. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +6 -0
  354. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.d.ts +28 -0
  355. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.unit.d.ts +1 -0
  356. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.d.ts +16 -0
  357. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.unit.d.ts +1 -0
  358. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-test-utils.d.ts +10 -0
  359. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.d.ts +4 -0
  360. package/types/packages/dev-tools/core/adapters/react/index.d.ts +21 -0
  361. package/types/packages/dev-tools/core/adapters/react/react-api-key.d.ts +9 -0
  362. package/types/packages/dev-tools/core/adapters/react/react-builder-sdk-setup.d.ts +4 -0
  363. package/types/packages/dev-tools/core/adapters/react/react-component-info.d.ts +12 -0
  364. package/types/packages/dev-tools/core/adapters/react/react-components.d.ts +44 -0
  365. package/types/packages/dev-tools/core/adapters/react/react-components.unit.d.ts +1 -0
  366. package/types/packages/dev-tools/core/adapters/react/react-ensure-builder-setup.d.ts +8 -0
  367. package/types/packages/dev-tools/core/adapters/react/react-registry-parse.d.ts +26 -0
  368. package/types/packages/dev-tools/core/adapters/react/react-registry-parse.unit.d.ts +1 -0
  369. package/types/packages/dev-tools/core/adapters/react/react-registry.d.ts +16 -0
  370. package/types/packages/dev-tools/core/adapters/react/react-registry.unit.d.ts +1 -0
  371. package/types/packages/dev-tools/core/adapters/react/react-test-utils.d.ts +13 -0
  372. package/types/packages/dev-tools/core/adapters/react/react-ts-program.d.ts +4 -0
  373. package/types/packages/dev-tools/core/adapters/remix/index.d.ts +21 -0
  374. package/types/packages/dev-tools/core/adapters/remix/remix-api-key.d.ts +7 -0
  375. package/types/packages/dev-tools/core/adapters/remix/remix-components.d.ts +7 -0
  376. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-builder-setup.d.ts +11 -0
  377. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.d.ts +7 -0
  378. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.unit.d.ts +1 -0
  379. package/types/packages/dev-tools/core/adapters/remix/remix-registry-parse.d.ts +28 -0
  380. package/types/packages/dev-tools/core/adapters/remix/remix-registry.d.ts +16 -0
  381. package/types/packages/dev-tools/core/adapters/remix/remix-registry.unit.d.ts +1 -0
  382. package/types/packages/dev-tools/core/adapters/remix/remix-test-utils.d.ts +13 -0
  383. package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.d.ts +17 -0
  384. package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.unit.d.ts +1 -0
  385. package/types/packages/dev-tools/core/adapters/vue/index.d.ts +22 -0
  386. package/types/packages/dev-tools/core/adapters/vue/vue-api-key.d.ts +9 -0
  387. package/types/packages/dev-tools/core/adapters/vue/vue-components.d.ts +12 -0
  388. package/types/packages/dev-tools/core/adapters/vue/vue-ensure-builder-setup.d.ts +11 -0
  389. package/types/packages/dev-tools/core/adapters/vue/vue-registry-parse.d.ts +26 -0
  390. package/types/packages/dev-tools/core/adapters/vue/vue-registry.d.ts +8 -0
  391. package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.d.ts +16 -0
  392. package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.unit.d.ts +1 -0
  393. package/types/packages/dev-tools/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +7 -0
  394. package/types/packages/dev-tools/core/client-script.d.ts +1 -0
  395. package/types/packages/dev-tools/core/create-dev-tools.d.ts +4 -0
  396. package/types/packages/dev-tools/core/detect-frameworks.d.ts +9 -0
  397. package/types/packages/dev-tools/core/ensure-config-plugin.d.ts +7 -0
  398. package/types/packages/dev-tools/core/find-dependencies.d.ts +10 -0
  399. package/types/packages/dev-tools/core/import-export-registry.d.ts +10 -0
  400. package/types/packages/dev-tools/core/index.d.ts +23 -0
  401. package/types/packages/dev-tools/figma/index.d.ts +119 -0
  402. package/types/packages/dev-tools/node/index.d.ts +2 -0
  403. package/types/packages/dev-tools/node/node-sys.d.ts +21 -0
  404. package/types/packages/dev-tools/remix/index.d.ts +8 -0
  405. package/types/packages/dev-tools/server/auth.d.ts +5 -0
  406. package/types/packages/dev-tools/server/builder-connect.d.ts +21 -0
  407. package/types/packages/dev-tools/server/client-script.d.ts +7 -0
  408. package/types/packages/dev-tools/server/create-dev-tools-server.d.ts +4 -0
  409. package/types/packages/dev-tools/server/dev-tools-api.d.ts +5 -0
  410. package/types/packages/dev-tools/server/dev-tools-http-server.d.ts +4 -0
  411. package/types/packages/dev-tools/server/index.d.ts +30 -0
  412. package/types/packages/dev-tools/server/request-handler.d.ts +8 -0
  413. package/types/packages/dev-tools/types/codegen-server.d.ts +14 -0
  414. package/types/packages/dev-tools/types/connection-tracker.d.ts +41 -0
  415. package/types/packages/dev-tools/types/proxy-middleware.d.ts +41 -0
  416. package/types/packages/dev-tools/types/websocket-types.d.ts +19 -0
  417. package/types/packages/dev-tools/types.d.ts +554 -0
  418. package/types/packages/dev-tools/vite/main.d.ts +7 -0
  419. package/types/packages/dev-tools/vitest.config.d.ts +2 -0
  420. package/types/packages/dev-tools/webpack/main.d.ts +9 -0
  421. package/types/remix/index.d.ts +5 -3
  422. package/types/server/auth.d.ts +4 -1
  423. package/types/server/builder-connect.d.ts +21 -6
  424. package/types/server/client-script.d.ts +6 -2
  425. package/types/server/create-dev-tools-server.d.ts +3 -1
  426. package/types/server/dev-tools-api.d.ts +4 -1
  427. package/types/server/dev-tools-http-server.d.ts +3 -1
  428. package/types/server/index.d.ts +28 -1
  429. package/types/server/request-handler.d.ts +6 -1
  430. package/types/tsconfig.tsbuildinfo +1 -1
  431. package/types/types/codegen-server.d.ts +1 -1
  432. package/types/types/connection-tracker.d.ts +34 -34
  433. package/types/types/proxy-middleware.d.ts +24 -14
  434. package/types/types/websocket-types.d.ts +9 -7
  435. package/types/types.d.ts +387 -358
  436. package/types/vite/main.d.ts +1 -1
  437. package/types/webpack/main.d.ts +5 -5
@@ -1,26 +1,26 @@
1
1
  export interface FileOverride {
2
- /**
3
- * Path where the file should be written.
4
- * - Absolute paths: "/app/.env", "/etc/config/app.conf"
5
- * - Tilde expansion: "~/.config/app.json" (expands to home directory)
6
- * - Relative paths: "./file.txt", "config.json" (resolved against working directory)
7
- */
8
- path: string;
9
- /**
10
- * Content to write to the file.
11
- */
12
- content: string;
2
+ /**
3
+ * Path where the file should be written.
4
+ * - Absolute paths: "/app/.env", "/etc/config/app.conf"
5
+ * - Tilde expansion: "~/.config/app.json" (expands to home directory)
6
+ * - Relative paths: "./file.txt", "config.json" (resolved against working directory)
7
+ */
8
+ path: string;
9
+ /**
10
+ * Content to write to the file.
11
+ */
12
+ content: string;
13
13
  }
14
14
  export interface SentryLike {
15
- captureException: (error: unknown) => void;
15
+ captureException: (error: unknown) => void;
16
16
  }
17
17
  export interface ApplyFileOverridesResult {
18
- success: boolean;
19
- appliedFiles: string[];
20
- failedFiles: Array<{
21
- path: string;
22
- error: string;
23
- }>;
18
+ success: boolean;
19
+ appliedFiles: string[];
20
+ failedFiles: Array<{
21
+ path: string;
22
+ error: string;
23
+ }>;
24
24
  }
25
25
  /**
26
26
  * Expand tilde (~) in file path to home directory
@@ -35,7 +35,10 @@ export declare function expandTildePath(filePath: string): string;
35
35
  * @param workingDirectory - Optional working directory for resolving relative paths
36
36
  * @returns Resolved absolute path
37
37
  */
38
- export declare function resolveFilePath(filePath: string, workingDirectory?: string): string;
38
+ export declare function resolveFilePath(
39
+ filePath: string,
40
+ workingDirectory?: string,
41
+ ): string;
39
42
  /**
40
43
  * Validate that a file path can be resolved to an absolute path
41
44
  * Supports tilde (~) expansion and relative paths (when workingDirectory is provided)
@@ -43,7 +46,10 @@ export declare function resolveFilePath(filePath: string, workingDirectory?: str
43
46
  * @param workingDirectory - Optional working directory for resolving relative paths
44
47
  * @returns true if valid, false otherwise
45
48
  */
46
- export declare function isValidFilePath(filePath: string, workingDirectory?: string): boolean;
49
+ export declare function isValidFilePath(
50
+ filePath: string,
51
+ workingDirectory?: string,
52
+ ): boolean;
47
53
  /**
48
54
  * Apply multiple file overrides to the filesystem.
49
55
  * This function will:
@@ -58,7 +64,11 @@ export declare function isValidFilePath(filePath: string, workingDirectory?: str
58
64
  * @param sentry - Optional Sentry instance for error logging
59
65
  * @returns Object with overall success status and details for each file
60
66
  */
61
- export declare function applyFileOverrides(overrides: FileOverride[], workingDirectory?: string, sentry?: SentryLike): ApplyFileOverridesResult;
67
+ export declare function applyFileOverrides(
68
+ overrides: FileOverride[],
69
+ workingDirectory?: string,
70
+ sentry?: SentryLike,
71
+ ): ApplyFileOverridesResult;
62
72
  /**
63
73
  * Read a file and return its content
64
74
  * Supports tilde (~) expansion and relative paths.
@@ -66,7 +76,10 @@ export declare function applyFileOverrides(overrides: FileOverride[], workingDir
66
76
  * @param workingDirectory - Optional working directory for resolving relative paths
67
77
  * @returns The file content or null if it cannot be read
68
78
  */
69
- export declare function readFileOverride(filePath: string, workingDirectory?: string): string | null;
79
+ export declare function readFileOverride(
80
+ filePath: string,
81
+ workingDirectory?: string,
82
+ ): string | null;
70
83
  /**
71
84
  * Check if a file exists at the given path
72
85
  * Supports tilde (~) expansion and relative paths.
@@ -74,4 +87,7 @@ export declare function readFileOverride(filePath: string, workingDirectory?: st
74
87
  * @param workingDirectory - Optional working directory for resolving relative paths
75
88
  * @returns true if the file exists, false otherwise
76
89
  */
77
- export declare function fileOverrideExists(filePath: string, workingDirectory?: string): boolean;
90
+ export declare function fileOverrideExists(
91
+ filePath: string,
92
+ workingDirectory?: string,
93
+ ): boolean;
@@ -2,21 +2,33 @@ import type { DevToolsSys } from "../../types";
2
2
  import type { Credentials } from "../credentials";
3
3
  import type { GitConfigs } from "$/ai-utils";
4
4
  export interface RunCommandOptions {
5
- cwd?: string;
6
- debug?: boolean;
7
- sys: DevToolsSys;
8
- timeout?: number;
9
- stdin?: string;
10
- retry?: number;
5
+ cwd?: string;
6
+ debug?: boolean;
7
+ sys: DevToolsSys;
8
+ timeout?: number;
9
+ stdin?: string;
10
+ retry?: number;
11
11
  }
12
- type FetchGitConfigsResult = {
13
- success: true;
14
- gitConfigs: GitConfigs;
15
- } | {
16
- success: false;
17
- error: Error;
18
- };
19
- export declare function runCommand(cmd: string, args: string[], opts: RunCommandOptions): Promise<string>;
20
- export declare const isGitRepoCorrupted: (stdout: string, stderr: string) => boolean;
21
- export declare function fetchGitConfigs(credentials: Credentials, projectId: string): Promise<FetchGitConfigsResult>;
12
+ type FetchGitConfigsResult =
13
+ | {
14
+ success: true;
15
+ gitConfigs: GitConfigs;
16
+ }
17
+ | {
18
+ success: false;
19
+ error: Error;
20
+ };
21
+ export declare function runCommand(
22
+ cmd: string,
23
+ args: string[],
24
+ opts: RunCommandOptions,
25
+ ): Promise<string>;
26
+ export declare const isGitRepoCorrupted: (
27
+ stdout: string,
28
+ stderr: string,
29
+ ) => boolean;
30
+ export declare function fetchGitConfigs(
31
+ credentials: Credentials,
32
+ projectId: string,
33
+ ): Promise<FetchGitConfigsResult>;
22
34
  export {};
@@ -1,9 +1,9 @@
1
1
  export interface HostEntry {
2
- hostname: string;
3
- ip?: string;
2
+ hostname: string;
3
+ ip?: string;
4
4
  }
5
5
  export interface SentryLike {
6
- captureException: (error: unknown) => void;
6
+ captureException: (error: unknown) => void;
7
7
  }
8
8
  /**
9
9
  * Check if a hostname is localhost or 127.0.0.1
@@ -20,7 +20,10 @@ export declare function isLocalhost(hostname: string): boolean;
20
20
  * @param sentry - Optional Sentry instance for error logging
21
21
  * @returns true if successful, false otherwise
22
22
  */
23
- export declare function updateHostsFile(entries: HostEntry[], sentry?: SentryLike): boolean;
23
+ export declare function updateHostsFile(
24
+ entries: HostEntry[],
25
+ sentry?: SentryLike,
26
+ ): boolean;
24
27
  /**
25
28
  * Remove all managed entries from the hosts file
26
29
  * @param sentry - Optional Sentry instance for error logging
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Example demonstrating the lock file conflict behaviors
3
+ *
4
+ * This script demonstrates three different conflict behaviors:
5
+ * - 'exit': Exits with code -10 if lock exists (default)
6
+ * - 'replace': Overwrites existing lock file
7
+ * - 'kill': Kills the existing process and overwrites lock file
8
+ *
9
+ * Usage:
10
+ * ```bash
11
+ * # Example 1: Exit behavior (default)
12
+ * # First run - creates lock file and waits
13
+ * ts-node lock-file-example.ts exit
14
+ * # Second run (in another terminal) - exits with code -10
15
+ * ts-node lock-file-example.ts exit
16
+ *
17
+ * # Example 2: Replace behavior
18
+ * # First run - creates lock file and waits
19
+ * ts-node lock-file-example.ts replace
20
+ * # Second run - replaces the lock file (first process still runs)
21
+ * ts-node lock-file-example.ts replace
22
+ *
23
+ * # Example 3: Kill behavior
24
+ * # First run - creates lock file and waits
25
+ * ts-node lock-file-example.ts kill
26
+ * # Second run - kills the first process and takes over
27
+ * ts-node lock-file-example.ts kill
28
+ * ```
29
+ */
30
+ export {};
@@ -1,12 +1,12 @@
1
1
  import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
2
  import type { FusionConfig } from "$/ai-utils";
3
3
  export interface LockFileData {
4
- cwd: string;
5
- projectId?: string;
6
- branchId?: string;
7
- pid: number;
8
- createdAt: number;
9
- port?: number;
4
+ cwd: string;
5
+ projectId?: string;
6
+ branchId?: string;
7
+ pid: number;
8
+ createdAt: number;
9
+ port?: number;
10
10
  }
11
11
  export type LockConflictBehavior = "replace" | "exit" | "kill";
12
12
  /**
@@ -25,4 +25,7 @@ export type LockConflictBehavior = "replace" | "exit" | "kill";
25
25
  * @param projectId - Optional project ID
26
26
  * @param branchId - Optional branch ID/name
27
27
  */
28
- export declare function registerLock(sys: DevToolsSys, fusionConfig: FusionConfig): Promise<void>;
28
+ export declare function registerLock(
29
+ sys: DevToolsSys,
30
+ fusionConfig: FusionConfig,
31
+ ): Promise<void>;
@@ -5,4 +5,7 @@ import type { ApplyActionsResult } from "../../../ai-utils/src/codegen";
5
5
  * @param includeFilesOnly - If true, only populate action and filePath properties
6
6
  * @returns Array of ApplyActionsResult objects
7
7
  */
8
- export declare function parseGitDiffToApplyActions(diff: string, includeFilesOnly?: boolean): ApplyActionsResult[];
8
+ export declare function parseGitDiffToApplyActions(
9
+ diff: string,
10
+ includeFilesOnly?: boolean,
11
+ ): ApplyActionsResult[];
@@ -1,4 +1,11 @@
1
- import { ChildProcess, type ChildProcessWithoutNullStreams, type ChildProcessByStdio, type SpawnOptions, type StdioPipe, type StdioNull } from "child_process";
1
+ import {
2
+ ChildProcess,
3
+ type ChildProcessWithoutNullStreams,
4
+ type ChildProcessByStdio,
5
+ type SpawnOptions,
6
+ type StdioPipe,
7
+ type StdioNull,
8
+ } from "child_process";
2
9
  import type { Readable } from "stream";
3
10
  import type { DevToolsSys } from "../../types";
4
11
  import type { DevCommandProcess } from "../launch/dev-server-orchestrator";
@@ -7,65 +14,81 @@ import type { DevCommandProcess } from "../launch/dev-server-orchestrator";
7
14
  * and ensures they are killed when the main process exits
8
15
  */
9
16
  declare class ProcessTracker {
10
- private processes;
11
- private cleanupHandlersRegistered;
12
- constructor();
13
- /**
14
- * Register a spawned process for tracking and cleanup
15
- */
16
- track(childProcess: ChildProcess): void;
17
- /**
18
- * Untrack a process (useful if you're managing it manually)
19
- */
20
- untrack(childProcess: ChildProcess): void;
21
- /**
22
- * Kill all tracked processes
23
- * @param sys - DevToolsSys for logging and Sentry integration
24
- */
25
- killAll(sys?: DevToolsSys): Promise<void>;
26
- /**
27
- * Register cleanup handlers for various exit signals
28
- */
29
- private registerCleanupHandlers;
30
- /**
31
- * Get the number of tracked processes
32
- */
33
- get count(): number;
17
+ private processes;
18
+ private cleanupHandlersRegistered;
19
+ constructor();
20
+ /**
21
+ * Register a spawned process for tracking and cleanup
22
+ */
23
+ track(childProcess: ChildProcess): void;
24
+ /**
25
+ * Untrack a process (useful if you're managing it manually)
26
+ */
27
+ untrack(childProcess: ChildProcess): void;
28
+ /**
29
+ * Kill all tracked processes
30
+ * @param sys - DevToolsSys for logging and Sentry integration
31
+ */
32
+ killAll(sys?: DevToolsSys): Promise<void>;
33
+ /**
34
+ * Register cleanup handlers for various exit signals
35
+ */
36
+ private registerCleanupHandlers;
37
+ /**
38
+ * Get the number of tracked processes
39
+ */
40
+ get count(): number;
34
41
  }
35
42
  export declare const processTracker: ProcessTracker;
36
43
  /**
37
44
  * Options for trackedSpawn function
38
45
  */
39
46
  export interface TrackedSpawnOptions {
40
- /** The command to run */
41
- command: string;
42
- /** Arguments for the command */
43
- args?: readonly string[];
44
- /** Spawn options */
45
- options?: SpawnOptions;
47
+ /** The command to run */
48
+ command: string;
49
+ /** Arguments for the command */
50
+ args?: readonly string[];
51
+ /** Spawn options */
52
+ options?: SpawnOptions;
46
53
  }
47
54
  /**
48
55
  * Wrapper around child_process.spawn that automatically tracks the spawned process
49
56
  * and ensures it gets killed when the main process exits
50
57
  */
51
- export declare function trackedSpawn(config: TrackedSpawnOptions & {
52
- options: SpawnOptions & {
53
- stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
54
- };
55
- }): ChildProcessWithoutNullStreams;
56
- export declare function trackedSpawn(config: TrackedSpawnOptions & {
57
- options: SpawnOptions & {
58
- stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
59
- };
60
- }): ChildProcessByStdio<null, Readable, Readable>;
58
+ export declare function trackedSpawn(
59
+ config: TrackedSpawnOptions & {
60
+ options: SpawnOptions & {
61
+ stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
62
+ };
63
+ },
64
+ ): ChildProcessWithoutNullStreams;
65
+ export declare function trackedSpawn(
66
+ config: TrackedSpawnOptions & {
67
+ options: SpawnOptions & {
68
+ stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
69
+ };
70
+ },
71
+ ): ChildProcessByStdio<null, Readable, Readable>;
61
72
  export declare function trackedSpawn(config: TrackedSpawnOptions): ChildProcess;
62
- export declare function safeSpawn(shell: string, command: string, options: SpawnOptions & {
63
- stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
64
- }): ChildProcessWithoutNullStreams;
65
- export declare function safeSpawn(shell: string, command: string, options: SpawnOptions & {
66
- stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
67
- }): ChildProcessByStdio<null, Readable, Readable>;
68
- export declare function safeSpawn(shell: string, command: string, options: SpawnOptions): ChildProcess;
73
+ export declare function safeSpawn(
74
+ shell: string,
75
+ command: string,
76
+ options: SpawnOptions & {
77
+ stdio: "pipe" | [StdioPipe, StdioPipe, StdioPipe];
78
+ },
79
+ ): ChildProcessWithoutNullStreams;
80
+ export declare function safeSpawn(
81
+ shell: string,
82
+ command: string,
83
+ options: SpawnOptions & {
84
+ stdio: [StdioNull | "ignore", StdioPipe, StdioPipe];
85
+ },
86
+ ): ChildProcessByStdio<null, Readable, Readable>;
87
+ export declare function safeSpawn(
88
+ shell: string,
89
+ command: string,
90
+ options: SpawnOptions,
91
+ ): ChildProcess;
69
92
  export declare const getTempFolder: () => string;
70
93
  export declare const cleanupTempFolder: () => boolean;
71
94
  /**
@@ -75,12 +98,23 @@ export declare const isMultiLineCommand: (command: string) => boolean;
75
98
  /**
76
99
  * Creates a temporary script file for multi-line commands
77
100
  */
78
- export declare const createTempScript: (command: string, shell: string) => string;
101
+ export declare const createTempScript: (
102
+ command: string,
103
+ shell: string,
104
+ ) => string;
79
105
  export declare const getTempScriptPath: (extension: string) => string;
80
106
  /**
81
107
  * Cleans up a temporary script file
82
108
  */
83
109
  export declare const cleanupTempScript: (scriptPath: string) => void;
84
- export declare const getCommandWithShellArgs: (command: string, shell: string) => string[];
85
- export declare function killProcess(sys: DevToolsSys, procOrPid: ChildProcess | DevCommandProcess | number | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<boolean>;
110
+ export declare const getCommandWithShellArgs: (
111
+ command: string,
112
+ shell: string,
113
+ ) => string[];
114
+ export declare function killProcess(
115
+ sys: DevToolsSys,
116
+ procOrPid: ChildProcess | DevCommandProcess | number | undefined,
117
+ abortSignal?: AbortSignal,
118
+ timeout?: number,
119
+ ): Promise<boolean>;
86
120
  export {};
@@ -1 +1,2 @@
1
- export declare const REPO_INDEXING_AGENT_PROMPT = "# Design System Component Reference\n\nThis document provides a comprehensive overview of the design system's component architecture and available components for code generation and development reference.\n\n## System Architecture\n\nThe design system follows a modular component-based architecture where each component provides specific functionality. Components are organized into logical groups that can work independently or in combination with other components.\n\n### Component Organization Principles\n\n- **Single Responsibility**: Each component serves a specific purpose\n- **Composability**: Components can be combined to create complex interfaces\n- **Consistency**: All components follow the same design patterns and API conventions\n- **Accessibility**: Components are built with accessibility standards in mind\n\n## Documentation Structure\n\nFor detailed documentation on any component, refer to the corresponding MDX file in the `design-system-docs` folder. The documentation files follow the naming convention:\n\n```\ndesign-system-docs/[componentname].mdx\n```\n\nFor example:\n- `design-system-docs/button.mdx` - Detailed documentation for Button component\n- `design-system-docs/table.mdx` - Detailed documentation for Table component\n- `design-system-docs/annotationcontext.mdx` - Detailed documentation for AnnotationContext\n- `design-system-docs/applayout.mdx` - Detailed documentation for AppLayout component\n\nThese MDX files contain comprehensive information including:\n- Component API documentation\n- Usage examples\n- Props and configuration options\n- Best practices and implementation guidelines\n- Accessibility requirements\n- Integration patterns with other components\n\n## Components\n\n{{COMPONENTS}}\n{{ICONS}}\n{{TOKENS}}\n\n## Usage Guidelines\n\n### Component Dependencies\n- Most components are self-contained and can be used independently\n- Identify any components that require multiple components to work together\n- Some components work better in combination (e.g., Form + FormField, Table + Pagination)\n\n### Integration Patterns\n- Layout components typically serve as containers for other components\n- Form controls should be wrapped in FormField components for proper labeling\n- Navigation components can be used independently or as part of larger layout structures\n- Data display components can be enhanced with interactive elements like buttons and popovers\n\n### Accessibility Considerations\n- All components are built with accessibility in mind\n- Use semantic HTML structures provided by the components\n- Leverage built-in ARIA attributes and keyboard navigation\n- The LiveRegion component provides additional accessibility announcements when needed\n\n### Responsive Design\n- Layout components provide responsive behavior out of the box\n- Grid and ColumnLayout components adapt to different screen sizes\n- Mobile-friendly navigation patterns are built into navigation components\n\n## Usage Reference\n\nThis reference should be used to understand the available components and their intended purposes when generating code or building applications with this design system. For specific implementation details, always consult the corresponding MDX documentation file in the `design-system-docs` folder.";
1
+ export declare const REPO_INDEXING_AGENT_PROMPT =
2
+ "# Design System Component Reference\n\nThis document provides a comprehensive overview of the design system's component architecture and available components for code generation and development reference.\n\n## System Architecture\n\nThe design system follows a modular component-based architecture where each component provides specific functionality. Components are organized into logical groups that can work independently or in combination with other components.\n\n### Component Organization Principles\n\n- **Single Responsibility**: Each component serves a specific purpose\n- **Composability**: Components can be combined to create complex interfaces\n- **Consistency**: All components follow the same design patterns and API conventions\n- **Accessibility**: Components are built with accessibility standards in mind\n\n## Documentation Structure\n\nFor detailed documentation on any component, refer to the corresponding MDX file in the `design-system-docs` folder. The documentation files follow the naming convention:\n\n```\ndesign-system-docs/[componentname].mdx\n```\n\nFor example:\n- `design-system-docs/button.mdx` - Detailed documentation for Button component\n- `design-system-docs/table.mdx` - Detailed documentation for Table component\n- `design-system-docs/annotationcontext.mdx` - Detailed documentation for AnnotationContext\n- `design-system-docs/applayout.mdx` - Detailed documentation for AppLayout component\n\nThese MDX files contain comprehensive information including:\n- Component API documentation\n- Usage examples\n- Props and configuration options\n- Best practices and implementation guidelines\n- Accessibility requirements\n- Integration patterns with other components\n\n## Components\n\n{{COMPONENTS}}\n{{ICONS}}\n{{TOKENS}}\n\n## Usage Guidelines\n\n### Component Dependencies\n- Most components are self-contained and can be used independently\n- Identify any components that require multiple components to work together\n- Some components work better in combination (e.g., Form + FormField, Table + Pagination)\n\n### Integration Patterns\n- Layout components typically serve as containers for other components\n- Form controls should be wrapped in FormField components for proper labeling\n- Navigation components can be used independently or as part of larger layout structures\n- Data display components can be enhanced with interactive elements like buttons and popovers\n\n### Accessibility Considerations\n- All components are built with accessibility in mind\n- Use semantic HTML structures provided by the components\n- Leverage built-in ARIA attributes and keyboard navigation\n- The LiveRegion component provides additional accessibility announcements when needed\n\n### Responsive Design\n- Layout components provide responsive behavior out of the box\n- Grid and ColumnLayout components adapt to different screen sizes\n- Mobile-friendly navigation patterns are built into navigation components\n\n## Usage Reference\n\nThis reference should be used to understand the available components and their intended purposes when generating code or building applications with this design system. For specific implementation details, always consult the corresponding MDX documentation file in the `design-system-docs` folder.";
@@ -0,0 +1,21 @@
1
+ import type { DevToolsSys } from "@builder.io/dev-tools/core";
2
+ /**
3
+ * Detects if a command contains "sudo"
4
+ * @param command The command string to check
5
+ * @returns true if the command contains "sudo", false otherwise
6
+ */
7
+ export declare function detectSudoInCommand(command: string): boolean;
8
+ /**
9
+ * Executes a command with sudo using sudo-prompt
10
+ * @param command The command to execute
11
+ * @param sys DevToolsSys instance for logging
12
+ * @returns Promise with the execution result
13
+ */
14
+ export declare function executeSudoCommand(
15
+ command: string,
16
+ sys: DevToolsSys,
17
+ ): Promise<{
18
+ stdout: string;
19
+ stderr: string;
20
+ error?: Error;
21
+ }>;
@@ -3,27 +3,27 @@
3
3
  * to properly represent what would be shown in a real terminal
4
4
  */
5
5
  export declare class TerminalBuffer {
6
- private lines;
7
- private currentLine;
8
- private currentColumn;
9
- private maxLines;
10
- private maxColumns;
11
- private chunks;
12
- constructor(maxLines?: number, maxColumns?: number);
13
- write(data: string): void;
14
- private ensureLineExists;
15
- getWrite(): string;
16
- getContent(): string;
17
- clear(): void;
18
- /**
19
- * Get current cursor position for testing/debugging
20
- */
21
- getCursorPosition(): {
22
- line: number;
23
- column: number;
24
- };
25
- /**
26
- * Get the current number of lines for testing/debugging
27
- */
28
- getLineCount(): number;
6
+ private lines;
7
+ private currentLine;
8
+ private currentColumn;
9
+ private maxLines;
10
+ private maxColumns;
11
+ private chunks;
12
+ constructor(maxLines?: number, maxColumns?: number);
13
+ write(data: string): void;
14
+ private ensureLineExists;
15
+ getWrite(): string;
16
+ getContent(): string;
17
+ clear(): void;
18
+ /**
19
+ * Get current cursor position for testing/debugging
20
+ */
21
+ getCursorPosition(): {
22
+ line: number;
23
+ column: number;
24
+ };
25
+ /**
26
+ * Get the current number of lines for testing/debugging
27
+ */
28
+ getLineCount(): number;
29
29
  }
@@ -1,16 +1,19 @@
1
- import type { WorkspaceFolder, WorkspaceConfiguration } from "@builder.io/ai-utils";
1
+ import type {
2
+ WorkspaceFolder,
3
+ WorkspaceConfiguration,
4
+ } from "@builder.io/ai-utils";
2
5
  import type { DevToolsSys } from "../../types";
3
6
  export interface ResolveWorkspacePathOptions {
4
- filePath: string;
5
- forceWorkspace?: boolean;
6
- workspace?: WorkspaceConfiguration;
7
- workingDirectory: string;
8
- sys: DevToolsSys;
9
- canCollapseWorkspace?: boolean;
7
+ filePath: string;
8
+ forceWorkspace?: boolean;
9
+ workspace?: WorkspaceConfiguration;
10
+ workingDirectory: string;
11
+ sys: DevToolsSys;
12
+ canCollapseWorkspace?: boolean;
10
13
  }
11
14
  export interface ResolveWorkspacePathResult {
12
- resolvedPath: string;
13
- workspaceFolder?: WorkspaceFolder;
15
+ resolvedPath: string;
16
+ workspaceFolder?: WorkspaceFolder;
14
17
  }
15
18
  /**
16
19
  * Resolves a workspace file path to its actual file system path.
@@ -49,13 +52,15 @@ export interface ResolveWorkspacePathResult {
49
52
  * // }
50
53
  * ```
51
54
  */
52
- export declare function resolveWorkspacePath(options: ResolveWorkspacePathOptions): ResolveWorkspacePathResult;
55
+ export declare function resolveWorkspacePath(
56
+ options: ResolveWorkspacePathOptions,
57
+ ): ResolveWorkspacePathResult;
53
58
  export interface AbsolutePathToWorkspaceUrlOptions {
54
- absolutePath: string;
55
- workspace?: WorkspaceConfiguration;
56
- workingDirectory: string;
57
- sys: DevToolsSys;
58
- canCollapseWorkspace?: boolean;
59
+ absolutePath: string;
60
+ workspace?: WorkspaceConfiguration;
61
+ workingDirectory: string;
62
+ sys: DevToolsSys;
63
+ canCollapseWorkspace?: boolean;
59
64
  }
60
65
  /**
61
66
  * Converts an absolute file system path to a workspace URL if possible.
@@ -89,4 +94,6 @@ export interface AbsolutePathToWorkspaceUrlOptions {
89
94
  * // Returns: 'frontend/src/components/Button.tsx'
90
95
  * ```
91
96
  */
92
- export declare function absolutePathToWorkspaceUrl(options: AbsolutePathToWorkspaceUrlOptions): string | undefined;
97
+ export declare function absolutePathToWorkspaceUrl(
98
+ options: AbsolutePathToWorkspaceUrlOptions,
99
+ ): string | undefined;
@@ -1,12 +1,44 @@
1
- import type { ComponentRegistry, ConnectedBuilder, GetRegistryOptions, LaunchEditorFile, LoadComponentOptions, LocalConfig, RegisterComponentOptions, SetComponentInfoOptions, SetComponentInputOptions, UnregisterComponentOptions, ValidatedBuilder } from "../types";
2
- export declare const apiConnectBuilder: (publicApiKey: string, privateAuthKey: string, kind: string | null) => Promise<ConnectedBuilder>;
1
+ import type {
2
+ ComponentRegistry,
3
+ ConnectedBuilder,
4
+ GetRegistryOptions,
5
+ LaunchEditorFile,
6
+ LoadComponentOptions,
7
+ LocalConfig,
8
+ RegisterComponentOptions,
9
+ SetComponentInfoOptions,
10
+ SetComponentInputOptions,
11
+ UnregisterComponentOptions,
12
+ ValidatedBuilder,
13
+ } from "../types";
14
+ export declare const apiConnectBuilder: (
15
+ publicApiKey: string,
16
+ privateAuthKey: string,
17
+ kind: string | null,
18
+ ) => Promise<ConnectedBuilder>;
3
19
  export declare const apiValidateBuilder: () => Promise<ValidatedBuilder>;
4
- export declare const apiLaunchEditor: (file: LaunchEditorFile) => Promise<unknown>;
5
- export declare const apiRegistry: (opts?: GetRegistryOptions) => Promise<ComponentRegistry>;
6
- export declare const apiLoadComponent: (opts: LoadComponentOptions) => Promise<ComponentRegistry>;
7
- export declare const apiRegisterComponent: (opts: RegisterComponentOptions) => Promise<ComponentRegistry>;
8
- export declare const apiSetComponentInfo: (opts: SetComponentInfoOptions) => Promise<ComponentRegistry>;
9
- export declare const apiSetComponentInput: (opts: SetComponentInputOptions) => Promise<ComponentRegistry>;
10
- export declare const apiUnregisterComponent: (opts: UnregisterComponentOptions) => Promise<ComponentRegistry>;
11
- export declare const apiDevToolsEnabled: (enabled: boolean) => Promise<ComponentRegistry>;
20
+ export declare const apiLaunchEditor: (
21
+ file: LaunchEditorFile,
22
+ ) => Promise<unknown>;
23
+ export declare const apiRegistry: (
24
+ opts?: GetRegistryOptions,
25
+ ) => Promise<ComponentRegistry>;
26
+ export declare const apiLoadComponent: (
27
+ opts: LoadComponentOptions,
28
+ ) => Promise<ComponentRegistry>;
29
+ export declare const apiRegisterComponent: (
30
+ opts: RegisterComponentOptions,
31
+ ) => Promise<ComponentRegistry>;
32
+ export declare const apiSetComponentInfo: (
33
+ opts: SetComponentInfoOptions,
34
+ ) => Promise<ComponentRegistry>;
35
+ export declare const apiSetComponentInput: (
36
+ opts: SetComponentInputOptions,
37
+ ) => Promise<ComponentRegistry>;
38
+ export declare const apiUnregisterComponent: (
39
+ opts: UnregisterComponentOptions,
40
+ ) => Promise<ComponentRegistry>;
41
+ export declare const apiDevToolsEnabled: (
42
+ enabled: boolean,
43
+ ) => Promise<ComponentRegistry>;
12
44
  export declare const apiLocalConfig: () => Promise<LocalConfig>;
@@ -1,2 +1,4 @@
1
1
  import type { BuilderDevToolsEditButton } from ".";
2
- export declare function initDocumentListeners(editButton: BuilderDevToolsEditButton): void;
2
+ export declare function initDocumentListeners(
3
+ editButton: BuilderDevToolsEditButton,
4
+ ): void;
@@ -1,8 +1,8 @@
1
1
  export declare class BuilderDevToolsEditButton extends HTMLElement {
2
- openInBuilder: HTMLAnchorElement | null;
3
- block: HTMLElement | null;
4
- constructor();
5
- connectedCallback(): void;
6
- show(contentElm: HTMLElement, blockElm: HTMLElement): string | null;
7
- hide(): void;
2
+ openInBuilder: HTMLAnchorElement | null;
3
+ block: HTMLElement | null;
4
+ constructor();
5
+ connectedCallback(): void;
6
+ show(contentElm: HTMLElement, blockElm: HTMLElement): string | null;
7
+ hide(): void;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  export declare class BuilderDevToolsMenu extends HTMLElement {
2
- constructor();
3
- connectedCallback(): void;
4
- highlightOpener(): void;
2
+ constructor();
3
+ connectedCallback(): void;
4
+ highlightOpener(): void;
5
5
  }