@builder.io/dev-tools 1.17.4-dev.202510291025.824fafb3d → 1.17.4-dev.202511031253.1b48ed2e7

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 (272) hide show
  1. package/cli/index.cjs +52 -74
  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 +61 -37
  9. package/server/index.mjs +61 -37
  10. package/types/cli/codegen.d.ts +1 -1
  11. package/types/cli/repo-indexing.d.ts +17 -0
  12. package/types/common/ast/component-input-types.d.ts +1 -1
  13. package/types/scripts/analyze-projects.d.ts +18 -0
  14. package/types/scripts/call-ensure-container.d.ts +4 -0
  15. package/types/scripts/check-backup.d.ts +1 -0
  16. package/types/scripts/download-projects.d.ts +12 -0
  17. package/types/scripts/utils/db.d.ts +3 -0
  18. package/types/scripts/utils/ensure-container.d.ts +7 -0
  19. package/types/scripts/utils/remove-machine-and-volume.d.ts +5 -0
  20. package/types/tsconfig.tsbuildinfo +1 -1
  21. package/types/cli/utils/lock-file-example.d.ts +0 -30
  22. package/types/cli/utils/sudo-helper.d.ts +0 -18
  23. package/types/packages/dev-tools/_tests_/create-builder.e2e.d.ts +0 -1
  24. package/types/packages/dev-tools/_tests_/dev-tools.e2e.d.ts +0 -1
  25. package/types/packages/dev-tools/_tests_/figma-generate.e2e.d.ts +0 -1
  26. package/types/packages/dev-tools/_tests_/figma-publish.e2e.d.ts +0 -1
  27. package/types/packages/dev-tools/_tests_/fusionInit.e2e.d.ts +0 -1
  28. package/types/packages/dev-tools/_tests_/help.e2e.d.ts +0 -1
  29. package/types/packages/dev-tools/_tests_/launch.e2e.d.ts +0 -1
  30. package/types/packages/dev-tools/_tests_/repo-indexing.test.d.ts +0 -1
  31. package/types/packages/dev-tools/_tests_/sync-utils.test.d.ts +0 -1
  32. package/types/packages/dev-tools/_tests_/utils.d.ts +0 -44
  33. package/types/packages/dev-tools/_tests_/vitest.config.d.ts +0 -2
  34. package/types/packages/dev-tools/_tests_/workspace.e2e.d.ts +0 -1
  35. package/types/packages/dev-tools/angular/index.d.ts +0 -1
  36. package/types/packages/dev-tools/cli/__tests__/isLikelyFixedString.spec.d.ts +0 -1
  37. package/types/packages/dev-tools/cli/__tests__/parseGitDiffToApplyActions.spec.d.ts +0 -1
  38. package/types/packages/dev-tools/cli/abort-signal-any.d.ts +0 -1
  39. package/types/packages/dev-tools/cli/auth/auth-utils.d.ts +0 -2
  40. package/types/packages/dev-tools/cli/auth/auth.d.ts +0 -3
  41. package/types/packages/dev-tools/cli/auth/status.d.ts +0 -3
  42. package/types/packages/dev-tools/cli/backup.d.ts +0 -118
  43. package/types/packages/dev-tools/cli/builder-add/interface.d.ts +0 -5
  44. package/types/packages/dev-tools/cli/builder-add/options.d.ts +0 -2
  45. package/types/packages/dev-tools/cli/code-file-utils.d.ts +0 -12
  46. package/types/packages/dev-tools/cli/code-file-utils.unit.d.ts +0 -1
  47. package/types/packages/dev-tools/cli/code-tools.d.ts +0 -99
  48. package/types/packages/dev-tools/cli/code.d.ts +0 -7
  49. package/types/packages/dev-tools/cli/codegen.d.ts +0 -350
  50. package/types/packages/dev-tools/cli/constants.d.ts +0 -1
  51. package/types/packages/dev-tools/cli/credentials.d.ts +0 -53
  52. package/types/packages/dev-tools/cli/download.d.ts +0 -10
  53. package/types/packages/dev-tools/cli/exit.d.ts +0 -1
  54. package/types/packages/dev-tools/cli/fetch.d.ts +0 -1
  55. package/types/packages/dev-tools/cli/figma-publish.d.ts +0 -24
  56. package/types/packages/dev-tools/cli/figma-publish.spec.d.ts +0 -1
  57. package/types/packages/dev-tools/cli/figma-utils.d.ts +0 -31
  58. package/types/packages/dev-tools/cli/figma.d.ts +0 -4
  59. package/types/packages/dev-tools/cli/generate.d.ts +0 -16
  60. package/types/packages/dev-tools/cli/help.d.ts +0 -1
  61. package/types/packages/dev-tools/cli/incremental-tsc.d.ts +0 -30
  62. package/types/packages/dev-tools/cli/index.d.ts +0 -97
  63. package/types/packages/dev-tools/cli/indexing.d.ts +0 -5
  64. package/types/packages/dev-tools/cli/launch/InitStateMachine.d.ts +0 -77
  65. package/types/packages/dev-tools/cli/launch/config.d.ts +0 -6
  66. package/types/packages/dev-tools/cli/launch/dev-server-orchestrator.d.ts +0 -85
  67. package/types/packages/dev-tools/cli/launch/dry-run-backup.d.ts +0 -9
  68. package/types/packages/dev-tools/cli/launch/errors.d.ts +0 -3
  69. package/types/packages/dev-tools/cli/launch/github.d.ts +0 -3
  70. package/types/packages/dev-tools/cli/launch/grafana.d.ts +0 -4
  71. package/types/packages/dev-tools/cli/launch/helpers.d.ts +0 -29
  72. package/types/packages/dev-tools/cli/launch/helpers.test.d.ts +0 -1
  73. package/types/packages/dev-tools/cli/launch/machine-health.d.ts +0 -12
  74. package/types/packages/dev-tools/cli/launch/proxy.d.ts +0 -3
  75. package/types/packages/dev-tools/cli/launch/server.d.ts +0 -20
  76. package/types/packages/dev-tools/cli/launch.d.ts +0 -90
  77. package/types/packages/dev-tools/cli/prettier.d.ts +0 -3
  78. package/types/packages/dev-tools/cli/prettier.integration.test.d.ts +0 -1
  79. package/types/packages/dev-tools/cli/repo-indexing/component-discovery.d.ts +0 -15
  80. package/types/packages/dev-tools/cli/repo-indexing/component-indexing.d.ts +0 -19
  81. package/types/packages/dev-tools/cli/repo-indexing/icons.d.ts +0 -23
  82. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing-utils.d.ts +0 -56
  83. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.d.ts +0 -24
  84. package/types/packages/dev-tools/cli/repo-indexing/types.d.ts +0 -12
  85. package/types/packages/dev-tools/cli/repo-metrics.d.ts +0 -6
  86. package/types/packages/dev-tools/cli/report/figma-report.d.ts +0 -54
  87. package/types/packages/dev-tools/cli/server-ws.d.ts +0 -50
  88. package/types/packages/dev-tools/cli/spinner.d.ts +0 -6
  89. package/types/packages/dev-tools/cli/sync-utils.d.ts +0 -22
  90. package/types/packages/dev-tools/cli/track.d.ts +0 -5
  91. package/types/packages/dev-tools/cli/utils/component-group-mdx-prompt.d.ts +0 -1
  92. package/types/packages/dev-tools/cli/utils/dev-server-url-parser.d.ts +0 -12
  93. package/types/packages/dev-tools/cli/utils/dev-server-url-parser.test.d.ts +0 -1
  94. package/types/packages/dev-tools/cli/utils/feature-flags.d.ts +0 -2
  95. package/types/packages/dev-tools/cli/utils/git.d.ts +0 -22
  96. package/types/packages/dev-tools/cli/utils/open.d.ts +0 -1
  97. package/types/packages/dev-tools/cli/utils/parseGitDiff.d.ts +0 -8
  98. package/types/packages/dev-tools/cli/utils/repo-indexing-agent-prompt.d.ts +0 -1
  99. package/types/packages/dev-tools/cli/utils/signals.d.ts +0 -2
  100. package/types/packages/dev-tools/cli/utils/terminal-buffer.d.ts +0 -29
  101. package/types/packages/dev-tools/cli/utils/terminal-buffer.spec.d.ts +0 -1
  102. package/types/packages/dev-tools/cli/utils/workspace-path-resolver.d.ts +0 -92
  103. package/types/packages/dev-tools/cli/utils/workspace-path-resolver.unit.d.ts +0 -1
  104. package/types/packages/dev-tools/cli/version.d.ts +0 -1
  105. package/types/packages/dev-tools/client/client-api.d.ts +0 -12
  106. package/types/packages/dev-tools/client/edit-button/document-listeners.d.ts +0 -2
  107. package/types/packages/dev-tools/client/edit-button/index.d.ts +0 -8
  108. package/types/packages/dev-tools/client/index.d.ts +0 -1
  109. package/types/packages/dev-tools/client/menu/index.d.ts +0 -5
  110. package/types/packages/dev-tools/client/menu/pages/component-detail.d.ts +0 -4
  111. package/types/packages/dev-tools/client/menu/pages/component-input.d.ts +0 -3
  112. package/types/packages/dev-tools/client/menu/pages/component-list.d.ts +0 -4
  113. package/types/packages/dev-tools/client/menu/pages/home.d.ts +0 -1
  114. package/types/packages/dev-tools/client/menu/pages/settings.d.ts +0 -1
  115. package/types/packages/dev-tools/client/menu/toggle/menu-toggle.d.ts +0 -2
  116. package/types/packages/dev-tools/client/setup-ui/connected.d.ts +0 -1
  117. package/types/packages/dev-tools/client/setup-ui/index.d.ts +0 -1
  118. package/types/packages/dev-tools/client/setup-ui/overview.d.ts +0 -4
  119. package/types/packages/dev-tools/client/tracking.d.ts +0 -22
  120. package/types/packages/dev-tools/client/utils.d.ts +0 -14
  121. package/types/packages/dev-tools/common/ast/app-dependencies.d.ts +0 -4
  122. package/types/packages/dev-tools/common/ast/component-info.d.ts +0 -9
  123. package/types/packages/dev-tools/common/ast/component-input-types.d.ts +0 -24
  124. package/types/packages/dev-tools/common/ast/component-registry.d.ts +0 -9
  125. package/types/packages/dev-tools/common/ast/convert-values.d.ts +0 -11
  126. package/types/packages/dev-tools/common/ast/convert-values.unit.d.ts +0 -1
  127. package/types/packages/dev-tools/common/ast/ensure-array-statement.d.ts +0 -7
  128. package/types/packages/dev-tools/common/ast/ensure-array-statement.unit.d.ts +0 -1
  129. package/types/packages/dev-tools/common/ast/ensure-comments.d.ts +0 -1
  130. package/types/packages/dev-tools/common/ast/ensure-imports.d.ts +0 -9
  131. package/types/packages/dev-tools/common/ast/ensure-imports.unit.d.ts +0 -1
  132. package/types/packages/dev-tools/common/ast/exported-statements.d.ts +0 -8
  133. package/types/packages/dev-tools/common/ast/exported-statements.unit.d.ts +0 -1
  134. package/types/packages/dev-tools/common/ast/imported-statements.d.ts +0 -4
  135. package/types/packages/dev-tools/common/ast/imported-statements.unit.d.ts +0 -1
  136. package/types/packages/dev-tools/common/ast/normalize-statements.d.ts +0 -7
  137. package/types/packages/dev-tools/common/ast/normalize-statements.unit.d.ts +0 -1
  138. package/types/packages/dev-tools/common/ast/remove-unused-imports.d.ts +0 -3
  139. package/types/packages/dev-tools/common/ast/remove-unused-imports.unit.d.ts +0 -1
  140. package/types/packages/dev-tools/common/ast/transform.d.ts +0 -5
  141. package/types/packages/dev-tools/common/ast/utils.d.ts +0 -26
  142. package/types/packages/dev-tools/common/ast/utils.unit.d.ts +0 -1
  143. package/types/packages/dev-tools/common/builder/builder-api.d.ts +0 -27
  144. package/types/packages/dev-tools/common/builder/builder-sdks.d.ts +0 -10
  145. package/types/packages/dev-tools/common/builder/content-generation.d.ts +0 -8
  146. package/types/packages/dev-tools/common/builder/content-ids.d.ts +0 -3
  147. package/types/packages/dev-tools/common/cache.d.ts +0 -3
  148. package/types/packages/dev-tools/common/constants.d.ts +0 -16
  149. package/types/packages/dev-tools/common/dotenv.d.ts +0 -6
  150. package/types/packages/dev-tools/common/dotenv.test.d.ts +0 -1
  151. package/types/packages/dev-tools/common/errors.d.ts +0 -32
  152. package/types/packages/dev-tools/common/estimate-code-tokens.d.ts +0 -1
  153. package/types/packages/dev-tools/common/fs.d.ts +0 -6
  154. package/types/packages/dev-tools/common/interactive-select-files.d.ts +0 -3
  155. package/types/packages/dev-tools/common/mem-sys.d.ts +0 -8
  156. package/types/packages/dev-tools/common/node-request.d.ts +0 -7
  157. package/types/packages/dev-tools/common/path.d.ts +0 -4
  158. package/types/packages/dev-tools/common/test-utils.d.ts +0 -9
  159. package/types/packages/dev-tools/common/typescript.d.ts +0 -9
  160. package/types/packages/dev-tools/common/utils.d.ts +0 -28
  161. package/types/packages/dev-tools/common/utils.unit.d.ts +0 -1
  162. package/types/packages/dev-tools/core/adapters/angular/angular-api-key.d.ts +0 -10
  163. package/types/packages/dev-tools/core/adapters/angular/angular-api-key.unit.d.ts +0 -1
  164. package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.d.ts +0 -3
  165. package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.unit.d.ts +0 -1
  166. package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.d.ts +0 -2
  167. package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.unit.d.ts +0 -1
  168. package/types/packages/dev-tools/core/adapters/angular/angular-components.d.ts +0 -18
  169. package/types/packages/dev-tools/core/adapters/angular/angular-components.unit.d.ts +0 -1
  170. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-builder-setup.d.ts +0 -5
  171. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.d.ts +0 -9
  172. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.unit.d.ts +0 -1
  173. package/types/packages/dev-tools/core/adapters/angular/angular-fix-tsconfig.d.ts +0 -2
  174. package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.d.ts +0 -16
  175. package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.unit.d.ts +0 -1
  176. package/types/packages/dev-tools/core/adapters/angular/angular-registry.d.ts +0 -3
  177. package/types/packages/dev-tools/core/adapters/angular/angular-registry.unit.d.ts +0 -1
  178. package/types/packages/dev-tools/core/adapters/angular/angular-test-utils.d.ts +0 -6
  179. package/types/packages/dev-tools/core/adapters/angular/index.d.ts +0 -14
  180. package/types/packages/dev-tools/core/adapters/angular/types.d.ts +0 -11
  181. package/types/packages/dev-tools/core/adapters/next/index.d.ts +0 -28
  182. package/types/packages/dev-tools/core/adapters/next/next-api-key.d.ts +0 -4
  183. package/types/packages/dev-tools/core/adapters/next/next-component-info.d.ts +0 -5
  184. package/types/packages/dev-tools/core/adapters/next/next-component-info.unit.d.ts +0 -1
  185. package/types/packages/dev-tools/core/adapters/next/next-component-inputs.unit.d.ts +0 -1
  186. package/types/packages/dev-tools/core/adapters/next/next-component-source-inputs.unit.d.ts +0 -1
  187. package/types/packages/dev-tools/core/adapters/next/next-components.d.ts +0 -4
  188. package/types/packages/dev-tools/core/adapters/next/next-ensure-builder-setup.d.ts +0 -4
  189. package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.d.ts +0 -3
  190. package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.unit.d.ts +0 -1
  191. package/types/packages/dev-tools/core/adapters/next/next-registry-parse.d.ts +0 -13
  192. package/types/packages/dev-tools/core/adapters/next/next-registry-parse.unit.d.ts +0 -1
  193. package/types/packages/dev-tools/core/adapters/next/next-registry.d.ts +0 -3
  194. package/types/packages/dev-tools/core/adapters/next/next-registry.unit.d.ts +0 -1
  195. package/types/packages/dev-tools/core/adapters/next/next-test-utils.d.ts +0 -16
  196. package/types/packages/dev-tools/core/adapters/qwik-city/index.d.ts +0 -8
  197. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-api-key.d.ts +0 -4
  198. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +0 -3
  199. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.d.ts +0 -15
  200. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.unit.d.ts +0 -1
  201. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +0 -4
  202. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +0 -2
  203. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.d.ts +0 -16
  204. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.unit.d.ts +0 -1
  205. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.d.ts +0 -3
  206. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.unit.d.ts +0 -1
  207. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-test-utils.d.ts +0 -6
  208. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.d.ts +0 -2
  209. package/types/packages/dev-tools/core/adapters/react/index.d.ts +0 -13
  210. package/types/packages/dev-tools/core/adapters/react/react-api-key.d.ts +0 -6
  211. package/types/packages/dev-tools/core/adapters/react/react-builder-sdk-setup.d.ts +0 -2
  212. package/types/packages/dev-tools/core/adapters/react/react-component-info.d.ts +0 -5
  213. package/types/packages/dev-tools/core/adapters/react/react-components.d.ts +0 -18
  214. package/types/packages/dev-tools/core/adapters/react/react-components.unit.d.ts +0 -1
  215. package/types/packages/dev-tools/core/adapters/react/react-ensure-builder-setup.d.ts +0 -4
  216. package/types/packages/dev-tools/core/adapters/react/react-registry-parse.d.ts +0 -13
  217. package/types/packages/dev-tools/core/adapters/react/react-registry-parse.unit.d.ts +0 -1
  218. package/types/packages/dev-tools/core/adapters/react/react-registry.d.ts +0 -3
  219. package/types/packages/dev-tools/core/adapters/react/react-registry.unit.d.ts +0 -1
  220. package/types/packages/dev-tools/core/adapters/react/react-test-utils.d.ts +0 -7
  221. package/types/packages/dev-tools/core/adapters/react/react-ts-program.d.ts +0 -2
  222. package/types/packages/dev-tools/core/adapters/remix/index.d.ts +0 -13
  223. package/types/packages/dev-tools/core/adapters/remix/remix-api-key.d.ts +0 -4
  224. package/types/packages/dev-tools/core/adapters/remix/remix-components.d.ts +0 -4
  225. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-builder-setup.d.ts +0 -5
  226. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.d.ts +0 -3
  227. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.unit.d.ts +0 -1
  228. package/types/packages/dev-tools/core/adapters/remix/remix-registry-parse.d.ts +0 -16
  229. package/types/packages/dev-tools/core/adapters/remix/remix-registry.d.ts +0 -3
  230. package/types/packages/dev-tools/core/adapters/remix/remix-registry.unit.d.ts +0 -1
  231. package/types/packages/dev-tools/core/adapters/remix/remix-test-utils.d.ts +0 -7
  232. package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.d.ts +0 -7
  233. package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.unit.d.ts +0 -1
  234. package/types/packages/dev-tools/core/adapters/vue/index.d.ts +0 -14
  235. package/types/packages/dev-tools/core/adapters/vue/vue-api-key.d.ts +0 -6
  236. package/types/packages/dev-tools/core/adapters/vue/vue-components.d.ts +0 -4
  237. package/types/packages/dev-tools/core/adapters/vue/vue-ensure-builder-setup.d.ts +0 -7
  238. package/types/packages/dev-tools/core/adapters/vue/vue-registry-parse.d.ts +0 -16
  239. package/types/packages/dev-tools/core/adapters/vue/vue-registry.d.ts +0 -5
  240. package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.d.ts +0 -11
  241. package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.unit.d.ts +0 -1
  242. package/types/packages/dev-tools/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +0 -3
  243. package/types/packages/dev-tools/core/client-script.d.ts +0 -1
  244. package/types/packages/dev-tools/core/create-dev-tools.d.ts +0 -2
  245. package/types/packages/dev-tools/core/detect-frameworks.d.ts +0 -4
  246. package/types/packages/dev-tools/core/ensure-config-plugin.d.ts +0 -3
  247. package/types/packages/dev-tools/core/find-dependencies.d.ts +0 -7
  248. package/types/packages/dev-tools/core/import-export-registry.d.ts +0 -3
  249. package/types/packages/dev-tools/core/index.d.ts +0 -8
  250. package/types/packages/dev-tools/figma/index.d.ts +0 -88
  251. package/types/packages/dev-tools/node/index.d.ts +0 -2
  252. package/types/packages/dev-tools/node/node-sys.d.ts +0 -14
  253. package/types/packages/dev-tools/remix/index.d.ts +0 -6
  254. package/types/packages/dev-tools/server/auth.d.ts +0 -2
  255. package/types/packages/dev-tools/server/builder-connect.d.ts +0 -6
  256. package/types/packages/dev-tools/server/client-script.d.ts +0 -3
  257. package/types/packages/dev-tools/server/create-dev-tools-server.d.ts +0 -2
  258. package/types/packages/dev-tools/server/dev-tools-api.d.ts +0 -2
  259. package/types/packages/dev-tools/server/dev-tools-http-server.d.ts +0 -2
  260. package/types/packages/dev-tools/server/index.d.ts +0 -3
  261. package/types/packages/dev-tools/server/request-handler.d.ts +0 -3
  262. package/types/packages/dev-tools/types/codegen-server.d.ts +0 -14
  263. package/types/packages/dev-tools/types/connection-tracker.d.ts +0 -41
  264. package/types/packages/dev-tools/types/proxy-middleware.d.ts +0 -31
  265. package/types/packages/dev-tools/types/websocket-types.d.ts +0 -17
  266. package/types/packages/dev-tools/types.d.ts +0 -525
  267. package/types/packages/dev-tools/vite/main.d.ts +0 -7
  268. package/types/packages/dev-tools/vitest.config.d.ts +0 -2
  269. package/types/packages/dev-tools/webpack/main.d.ts +0 -9
  270. /package/types/{packages/dev-tools/cli/repo-indexing → cli}/repo-indexing.mock.d.ts +0 -0
  271. /package/types/{packages/dev-tools/cli/utils/repo-indexing-group-prompt.d.ts → cli/utils/repo-indexing-group-prompts.d.ts} +0 -0
  272. /package/types/{packages/dev-tools/_tests_/code.e2e.d.ts → scripts/cli.d.ts} +0 -0
@@ -1,30 +0,0 @@
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,18 +0,0 @@
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(command: string, sys: DevToolsSys): Promise<{
15
- stdout: string;
16
- stderr: string;
17
- error?: Error;
18
- }>;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,44 +0,0 @@
1
- import { type ExpectStatic } from "vitest";
2
- interface CLI {
3
- output(): string;
4
- consumeOutput(): string;
5
- inputText(text: string): Promise<void>;
6
- inputEnter(text?: string): Promise<void>;
7
- inputArrowUp(): Promise<void>;
8
- inputArrowDown(): Promise<void>;
9
- inputArrowRight(): Promise<void>;
10
- inputArrowLeft(): Promise<void>;
11
- inputCtrlC(): Promise<void>;
12
- inputSpace(): Promise<void>;
13
- waitUntilText(text: string, timeout?: number): Promise<void>;
14
- waitUntilExit(): Promise<number>;
15
- wait(ms: number): Promise<void>;
16
- getProjectPath(): string;
17
- writeFile(path: string, content: string): Promise<void>;
18
- readFile(path: string): string;
19
- exists(path: string): boolean;
20
- readdir(path: string): string[];
21
- fsSnapshot(path: string): Promise<Snapshot>;
22
- fsDiff(oldSnap: Snapshot): Promise<{
23
- added: string[];
24
- removed: string[];
25
- modified: string[];
26
- }>;
27
- npm(...args: string[]): Promise<number>;
28
- spawn(command: string, args: string[]): Promise<number>;
29
- }
30
- export declare function testCLI(name: string, template: string | undefined, handler: (cli: Handler, expect: ExpectStatic) => Promise<void>, timeout?: number, skip?: boolean): void;
31
- type Handler = (cmd: "builderio" | "create-builderio", args: string[], options?: {
32
- debug?: boolean;
33
- }) => CLI;
34
- export declare function createCLI(template: string | undefined, handler: (cli: Handler) => Promise<void>): Promise<void>;
35
- /**
36
- * A snapshot maps a file's relative path to its hash.
37
- */
38
- type Snapshot = {
39
- cwd: string;
40
- hashes: {
41
- [file: string]: string;
42
- };
43
- };
44
- export {};
@@ -1,2 +0,0 @@
1
- declare const _default: import("vitest/config").UserConfigFnObject;
2
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export declare function builderDevTools(): Promise<void>;
@@ -1 +0,0 @@
1
- export declare function abortSignalAny(input: (AbortSignal | undefined)[]): AbortSignal;
@@ -1,2 +0,0 @@
1
- import type { Credentials } from "../credentials";
2
- export declare function getUserSettingsByUserId(credentials: Credentials): Promise<any>;
@@ -1,3 +0,0 @@
1
- import type { DevToolsSys } from "../../types";
2
- import type { CLIArgs } from "../index";
3
- export declare const runAuthCommand: (sys: DevToolsSys, subCommand: string, args: CLIArgs) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import type { DevToolsSys } from "../../types";
2
- import type { CLIArgs } from "../index";
3
- export declare const runAuthStatus: (sys: DevToolsSys, args: CLIArgs) => void;
@@ -1,118 +0,0 @@
1
- import type { DevToolsSys } from "../types";
2
- import type { Credentials } from "./credentials";
3
- import { type GitBackupUploadUrlResult, type GitBackupUploadUrlOptions, type GitBackupRecordOptions, type GitBackupRecordResult, type BackupMetadata, type WorkspaceConfiguration, type CodegenRuntimeStatus, type BackupGitRepoResult } from "$/ai-utils";
4
- interface BackupGitRepoOptions {
5
- sys: DevToolsSys;
6
- credentials: Credentials;
7
- projectId: string;
8
- branchName: string;
9
- repoPath: string;
10
- aiBranch: string;
11
- featureBranch: string;
12
- workspace: WorkspaceConfiguration | undefined;
13
- /**
14
- * If true, the system is connected to the git provider.
15
- * If false, the system is offline and will not fetch any branches from origin.
16
- */
17
- isConnectedToProvider: boolean;
18
- debug: boolean;
19
- forcedFullBackup: boolean;
20
- canAbortMerge: boolean;
21
- }
22
- /**
23
- * Creates a backup of git repository changes made by the AI system.
24
- *
25
- * This function handles both partial and full backups:
26
- * - Partial backups: Only include commits created locally (on aiBranch) that aren't in upstream.
27
- * This keeps backups small and doesn't store the entire repo's code. Requires a clone from
28
- * upstream plus applying the backup to restore.
29
- * - Full backups: Complete repo backup that can be directly cloned from.
30
- *
31
- * The aiBranch is where the AI creates commits as work progresses, while featureBranch
32
- * is the base branch where work started (usually "main").
33
- */
34
- export declare function backupGitRepo({ sys, credentials, projectId, branchName, repoPath, aiBranch, featureBranch, workspace, isConnectedToProvider, debug, forcedFullBackup, canAbortMerge }: BackupGitRepoOptions): Promise<BackupGitRepoResult>;
35
- type InitialCommitHashResult = {
36
- initialBranch: string;
37
- initialCommitHash: string | undefined;
38
- partial: false;
39
- forcedFullBackup: true;
40
- } | {
41
- initialBranch: string;
42
- initialCommitHash: string;
43
- partial: boolean;
44
- forcedFullBackup: false;
45
- };
46
- /**
47
- * Determines the initial commit hash and whether to create a partial or full backup.
48
- *
49
- * Partial backups are preferred to keep backup sizes small, but full backups are needed when:
50
- * - The repo is an example/starter template (users can't push to origin, need to fork)
51
- * - There's no origin remote configured
52
- *
53
- * For partial backups, we fetch the latest state of the chosen upstream branch from origin
54
- * to ensure the backup has the correct commit range reference.
55
- */
56
- export declare function getInitialCommitHash({ sys, repoPath, featureBranch, debug, workspace, isConnectedToProvider, forcedFullBackup, credentials, projectId }: {
57
- sys: DevToolsSys;
58
- repoPath: string;
59
- featureBranch: string;
60
- debug: boolean;
61
- workspace: WorkspaceConfiguration | undefined;
62
- isConnectedToProvider: boolean;
63
- forcedFullBackup: boolean;
64
- credentials: Credentials;
65
- projectId: string;
66
- }): Promise<InitialCommitHashResult>;
67
- /**
68
- * Requests a signed upload URL for git backup
69
- */
70
- export declare function requestSignedUploadUrl(credentials: Credentials, body: GitBackupUploadUrlOptions): Promise<GitBackupUploadUrlResult | null>;
71
- /**
72
- * Records a successful git backup in Firebase
73
- */
74
- export declare function recordBackup(credentials: Credentials, body: GitBackupRecordOptions): Promise<GitBackupRecordResult>;
75
- export interface GitBackupDownloadResultValid {
76
- success: true;
77
- partial: boolean;
78
- bundlePath: string | undefined;
79
- bundleSize: number;
80
- gitBranchName: string;
81
- lastCommitHash: string;
82
- }
83
- export interface GitBackupDownloadResultInvalid {
84
- success: false;
85
- error: Error;
86
- }
87
- export type GitBackupDownloadResult = GitBackupDownloadResultValid | GitBackupDownloadResultInvalid;
88
- /**
89
- * Downloads a git backup bundle from remote storage.
90
- * Handles both empty backups (no bundle file) and regular backups with bundle files.
91
- * @returns The path to the downloaded bundle file, or undefined if it's an empty backup
92
- */
93
- export declare function downloadGitBackup(sys: DevToolsSys, response: BackupMetadata): Promise<GitBackupDownloadResult>;
94
- /**
95
- * Uploads a file stream to a signed URL (Google Cloud Storage).
96
- * Uses MD5 hash for content verification as required by GCS.
97
- */
98
- export declare function uploadFileStream(filePath: string, signedUrl: string, size: number, contentMd5: string): Promise<Response>;
99
- export declare function computeMD5Hash(bundlePath: string): Promise<{
100
- contentMd5: string;
101
- size: number;
102
- }>;
103
- /**
104
- * Updates the last commit hash in the database for tracking purposes.
105
- * This is called frequently throughout the codebase (after every commit creation)
106
- * to track the current state and determine if backups are up-to-date.
107
- */
108
- export declare function setRuntimeStatus(sys: DevToolsSys, credentials: Credentials, data: CodegenRuntimeStatus): Promise<any>;
109
- /**
110
- * Computes a unique backup reference string that combines version, repo URL, and commit hash.
111
- * This reference can be used to identify and retrieve specific backups.
112
- */
113
- export declare function computeBackupRef(input: {
114
- version: string | undefined;
115
- originalRepoUrl: string | undefined;
116
- commitHash: string | undefined;
117
- }): string | undefined;
118
- export {};
@@ -1,5 +0,0 @@
1
- import type { AddCliOptions, FileNode, FolderNode, Snippet, SyncInfo } from "../../types";
2
- export declare function addCommand(opts: AddCliOptions): Promise<SyncInfo | undefined>;
3
- export declare function fetchSnippet(id: string): Promise<Snippet | null>;
4
- export declare function writeFiles(appRootDir: string, snippet: Snippet, files: Array<FileNode | FolderNode>, rootPath: string, addSessionLink: boolean): Promise<FileNode[]>;
5
- export declare function suggestRootPath(appRootDir: string, framework: string): string;
@@ -1,2 +0,0 @@
1
- import type { AddCliOptions } from "../../types";
2
- export declare function getOptions(cwd: string, args: string[]): AddCliOptions;
@@ -1,12 +0,0 @@
1
- import type { DevToolsSys } from "../types";
2
- import type { Credentials } from "./credentials";
3
- import type { CodebaseSearchOptions, CodebaseSearchResponse } from "$/ai-utils";
4
- export declare function shouldIncludeFile(inputFile: string, ctx: {
5
- foundFiles: string[];
6
- allFiles: string[];
7
- selectedFilePaths: Map<string, number>;
8
- cwd: string;
9
- appRootDir: string;
10
- fallbackImportance: number | 0;
11
- }): number | 0;
12
- export declare function searchCodeBase(sys: DevToolsSys, credentials: Credentials, signal: AbortSignal | undefined, body: CodebaseSearchOptions): Promise<CodebaseSearchResponse | null>;
@@ -1,99 +0,0 @@
1
- import type { AccessResult, CodeGenPosition, CodeGenTools, CodegenTurn, ContentMessageItemToolResult, FusionConfig, GenerateCompletionStep, Permission, ProjectFile, UserSource, WorkspaceFolder } from "$/ai-utils";
2
- import type { DevToolsSys } from "../core";
3
- import { type DevServerOrchestrator } from "./launch/dev-server-orchestrator";
4
- import type { CodeGenEventEmitter } from "./codegen";
5
- import type { Credentials } from "./credentials";
6
- export interface LLMToolCalls {
7
- name: CodeGenTools;
8
- input: Record<string, any>;
9
- id: string;
10
- abortController: AbortController;
11
- }
12
- export interface ToolResolution {
13
- toolResult: string;
14
- isError: boolean;
15
- title?: string;
16
- }
17
- export interface FusionContext {
18
- devServerOrchestrator?: DevServerOrchestrator;
19
- git: boolean;
20
- gitRemote?: string;
21
- gitAutoInit?: boolean;
22
- }
23
- export interface ToolContext extends Partial<FusionContext> {
24
- sys: DevToolsSys;
25
- credentials: Credentials;
26
- files: ProjectFile[];
27
- user: UserSource;
28
- position: CodeGenPosition;
29
- emitter: CodeGenEventEmitter;
30
- fusionConfig: FusionConfig | undefined;
31
- canCollapseWorkspace: boolean;
32
- signal: AbortSignal;
33
- workingDirectory: string;
34
- allowedCommands: RegExp[];
35
- getAllFiles: (options: {
36
- getDotFiles?: boolean;
37
- pattern?: string;
38
- }) => Promise<string[]>;
39
- restore: (options: {
40
- location: "before" | "after";
41
- predicate: (turn: CodegenTurn | null, index: number) => boolean;
42
- dryRun?: boolean;
43
- revert?: boolean;
44
- forceReplay?: boolean;
45
- debug?: string;
46
- }) => Promise<{
47
- undone: string[] | null;
48
- message: string;
49
- }>;
50
- bashWorkingDirectory: string;
51
- filterText: (text: string) => string;
52
- resolveWorkspacePath: (path: string, forceWorkspace: boolean) => {
53
- resolvedPath: string;
54
- workspaceFolder?: WorkspaceFolder;
55
- };
56
- absolutePathToWorkspaceUrl: (absolutePath: string) => string | undefined;
57
- workspaceFolders: Array<{
58
- path: string;
59
- name?: string;
60
- }>;
61
- patchFusionConfig: (patch: Partial<FusionConfig>) => void;
62
- passThrough: (toolCall: LLMToolCalls, signal: AbortSignal) => Promise<ToolResolution>;
63
- readFile: (filePath: string) => Promise<string | null>;
64
- writeFile: (filePath: string, content: string | Uint8Array) => Promise<string | null>;
65
- deleteFile: (filePath: string) => Promise<string | null>;
66
- fileExists: (filePath: string) => Promise<{
67
- absolutePath: string | undefined;
68
- recommendedPath: string | undefined;
69
- workspaceFolder: WorkspaceFolder | undefined;
70
- virtual: boolean;
71
- }>;
72
- listDir: (dirPath: string) => Promise<string[]>;
73
- evaluateAccess: (resource: string, permission: Permission) => AccessResult;
74
- stat: (filePath: string) => Promise<{
75
- isDirectory: () => boolean;
76
- isFile: () => boolean;
77
- size: number;
78
- } | null>;
79
- }
80
- export declare function resolveToolCalls(toolContext: ToolContext, toolCalls: LLMToolCalls[], existingToolResults: ContentMessageItemToolResult[] | undefined, onStep: (step: GenerateCompletionStep) => void): Promise<ContentMessageItemToolResult[]>;
81
- interface RipgrepMatch {
82
- path: string;
83
- lineNumber: number;
84
- lineContent: string;
85
- }
86
- interface RipgrepResult {
87
- matches: RipgrepMatch[];
88
- }
89
- export declare function runRipgrep(sys: DevToolsSys, bashWorkingDirectory: string, pattern: string, includeGlob?: string, excludeGlob?: string): Promise<RipgrepResult>;
90
- /**
91
- * Returns true if query is likely a string literal rather than a regex.
92
- * Returns false otherwise.
93
- * This is intended to ensure that queries such as "import {" do not get
94
- * interpreted as invalid regex values by ripgrep.
95
- * @param query - The query to check
96
- */
97
- export declare const isLikelyFixedString: (query: string) => boolean;
98
- export declare function newAbortError(): Error;
99
- export {};
@@ -1,7 +0,0 @@
1
- import type { DevToolsSys } from "../types";
2
- import type { CLIArgs } from "./index";
3
- import { type UserContext } from "$/ai-utils";
4
- export declare const runCodeCommand: (sys: DevToolsSys, subCommand: string, args: CLIArgs) => Promise<void>;
5
- export declare const runCodeGen: (sys: DevToolsSys, args: CLIArgs) => Promise<undefined>;
6
- export declare function checkProjectRoot(sys: DevToolsSys, interactive: boolean): Promise<void>;
7
- export declare function getUserContext(sys: DevToolsSys): Promise<UserContext>;