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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/cli/index.cjs +76 -107
  2. package/cli/index.cjs.map +3 -3
  3. package/core/index.cjs +1 -1
  4. package/core/index.mjs +1 -1
  5. package/node/index.cjs +1 -1
  6. package/node/index.mjs +1 -1
  7. package/package.json +1 -1
  8. package/server/index.cjs +2 -2
  9. package/server/index.mjs +2 -2
  10. package/types/_tests_/utils.d.ts +35 -48
  11. package/types/cli/abort-signal-any.d.ts +1 -3
  12. package/types/cli/auth/auth-utils.d.ts +1 -3
  13. package/types/cli/auth/auth.d.ts +1 -5
  14. package/types/cli/backup.d.ts +58 -112
  15. package/types/cli/builder-add/interface.d.ts +4 -21
  16. package/types/cli/code-file-utils.d.ts +9 -17
  17. package/types/cli/code.d.ts +3 -13
  18. package/types/cli/credentials.d.ts +45 -61
  19. package/types/cli/download.d.ts +4 -9
  20. package/types/cli/figma-publish.d.ts +17 -34
  21. package/types/cli/figma-utils.d.ts +21 -51
  22. package/types/cli/figma.d.ts +2 -9
  23. package/types/cli/generate.d.ts +11 -14
  24. package/types/cli/incremental-tsc.d.ts +7 -19
  25. package/types/cli/launch/config.d.ts +3 -13
  26. package/types/cli/launch/dry-run-backup.d.ts +7 -14
  27. package/types/cli/launch/errors.d.ts +2 -7
  28. package/types/cli/launch/github.d.ts +2 -8
  29. package/types/cli/launch/grafana.d.ts +1 -5
  30. package/types/cli/launch/machine-health.d.ts +3 -8
  31. package/types/cli/launch/proxy.d.ts +3 -6
  32. package/types/cli/launch/server.d.ts +10 -16
  33. package/types/cli/launch.d.ts +99 -102
  34. package/types/cli/prettier.d.ts +2 -9
  35. package/types/cli/repo-connect/env-collector.d.ts +11 -16
  36. package/types/cli/repo-connect/file-collector.d.ts +15 -22
  37. package/types/cli/repo-connect/install-runner.d.ts +5 -8
  38. package/types/cli/repo-connect/package-detector.d.ts +8 -12
  39. package/types/cli/repo-connect/repo-connect.d.ts +1 -4
  40. package/types/cli/repo-indexing/repo-indexing.d.ts +17 -37
  41. package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
  42. package/types/cli/repo-metrics.d.ts +1 -4
  43. package/types/cli/report/figma-report.d.ts +36 -63
  44. package/types/cli/server-ws.d.ts +32 -40
  45. package/types/cli/spinner.d.ts +4 -4
  46. package/types/cli/sync-utils.d.ts +16 -39
  47. package/types/cli/track.d.ts +1 -4
  48. package/types/cli/utils/component-group-mdx-prompt.d.ts +1 -2
  49. package/types/cli/utils/dev-server-url-parser.d.ts +3 -6
  50. package/types/cli/utils/env-capture.d.ts +15 -21
  51. package/types/cli/utils/feature-flags.d.ts +1 -3
  52. package/types/cli/utils/file-overrides-manager.d.ts +23 -39
  53. package/types/cli/utils/git.d.ts +16 -28
  54. package/types/cli/utils/hosts-file-manager.d.ts +4 -7
  55. package/types/cli/utils/lock-file.d.ts +7 -10
  56. package/types/cli/utils/parseGitDiff.d.ts +1 -4
  57. package/types/cli/utils/process-tracker.d.ts +51 -85
  58. package/types/cli/utils/repo-indexing-agent-prompt.d.ts +1 -2
  59. package/types/cli/utils/terminal-buffer.d.ts +23 -23
  60. package/types/cli/utils/workspace-path-resolver.d.ts +16 -23
  61. package/types/client/client-api.d.ts +10 -42
  62. package/types/client/edit-button/document-listeners.d.ts +1 -3
  63. package/types/client/edit-button/index.d.ts +6 -6
  64. package/types/client/menu/index.d.ts +3 -3
  65. package/types/client/menu/pages/component-detail.d.ts +2 -8
  66. package/types/client/menu/pages/component-input.d.ts +1 -5
  67. package/types/client/menu/pages/component-list.d.ts +1 -4
  68. package/types/client/menu/toggle/menu-toggle.d.ts +1 -4
  69. package/types/client/setup-ui/overview.d.ts +2 -2
  70. package/types/client/tracking.d.ts +11 -11
  71. package/types/client/utils.d.ts +3 -5
  72. package/types/common/ast/app-dependencies.d.ts +2 -8
  73. package/types/common/ast/component-info.d.ts +6 -26
  74. package/types/common/ast/component-input-types.d.ts +1 -1
  75. package/types/common/ast/component-registry.d.ts +8 -23
  76. package/types/common/ast/ensure-array-statement.d.ts +3 -7
  77. package/types/common/ast/ensure-comments.d.ts +1 -5
  78. package/types/common/ast/ensure-imports.d.ts +5 -10
  79. package/types/common/ast/exported-statements.d.ts +4 -8
  80. package/types/common/ast/imported-statements.d.ts +1 -5
  81. package/types/common/ast/normalize-statements.d.ts +3 -12
  82. package/types/common/ast/remove-unused-imports.d.ts +1 -4
  83. package/types/common/ast/transform.d.ts +3 -13
  84. package/types/common/ast/utils.d.ts +19 -42
  85. package/types/common/builder/builder-api.d.ts +23 -32
  86. package/types/common/builder/builder-sdks.d.ts +8 -10
  87. package/types/common/builder/content-generation.d.ts +7 -10
  88. package/types/common/builder/content-ids.d.ts +1 -2
  89. package/types/common/cache.d.ts +1 -4
  90. package/types/common/constants.d.ts +1 -2
  91. package/types/common/dotenv.d.ts +5 -24
  92. package/types/common/fs.d.ts +4 -17
  93. package/types/common/interactive-select-files.d.ts +2 -16
  94. package/types/common/mem-sys.d.ts +5 -7
  95. package/types/common/node-request.d.ts +4 -4
  96. package/types/common/path.d.ts +3 -1
  97. package/types/common/test-utils.d.ts +7 -21
  98. package/types/common/typescript.d.ts +7 -26
  99. package/types/common/utils.d.ts +1 -1
  100. package/types/core/adapters/angular/angular-api-key.d.ts +6 -29
  101. package/types/core/adapters/angular/angular-app-module-imports.d.ts +2 -12
  102. package/types/core/adapters/angular/angular-app-routes-update.d.ts +1 -6
  103. package/types/core/adapters/angular/angular-components.d.ts +12 -40
  104. package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +3 -9
  105. package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +4 -16
  106. package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +1 -3
  107. package/types/core/adapters/angular/angular-registry-parse.d.ts +10 -22
  108. package/types/core/adapters/angular/angular-registry.d.ts +2 -15
  109. package/types/core/adapters/angular/angular-test-utils.d.ts +4 -8
  110. package/types/core/adapters/angular/index.d.ts +12 -20
  111. package/types/core/adapters/angular/types.d.ts +5 -5
  112. package/types/core/adapters/next/index.d.ts +18 -26
  113. package/types/core/adapters/next/next-api-key.d.ts +1 -4
  114. package/types/core/adapters/next/next-component-info.d.ts +2 -9
  115. package/types/core/adapters/next/next-components.d.ts +1 -4
  116. package/types/core/adapters/next/next-ensure-builder-setup.d.ts +2 -6
  117. package/types/core/adapters/next/next-ensure-config-plugin.d.ts +1 -5
  118. package/types/core/adapters/next/next-registry-parse.d.ts +8 -21
  119. package/types/core/adapters/next/next-registry.d.ts +2 -15
  120. package/types/core/adapters/next/next-test-utils.d.ts +11 -21
  121. package/types/core/adapters/qwik-city/index.d.ts +6 -14
  122. package/types/core/adapters/qwik-city/qwik-api-key.d.ts +1 -4
  123. package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +1 -4
  124. package/types/core/adapters/qwik-city/qwik-components.d.ts +8 -23
  125. package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +2 -6
  126. package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +1 -5
  127. package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +10 -22
  128. package/types/core/adapters/qwik-city/qwik-registry.d.ts +2 -15
  129. package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +4 -8
  130. package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +1 -3
  131. package/types/core/adapters/react/index.d.ts +11 -19
  132. package/types/core/adapters/react/react-api-key.d.ts +1 -4
  133. package/types/core/adapters/react/react-builder-sdk-setup.d.ts +1 -3
  134. package/types/core/adapters/react/react-component-info.d.ts +2 -9
  135. package/types/core/adapters/react/react-components.d.ts +11 -37
  136. package/types/core/adapters/react/react-ensure-builder-setup.d.ts +2 -6
  137. package/types/core/adapters/react/react-registry-parse.d.ts +8 -21
  138. package/types/core/adapters/react/react-registry.d.ts +2 -15
  139. package/types/core/adapters/react/react-test-utils.d.ts +5 -11
  140. package/types/core/adapters/react/react-ts-program.d.ts +1 -3
  141. package/types/core/adapters/remix/index.d.ts +11 -19
  142. package/types/core/adapters/remix/remix-api-key.d.ts +1 -4
  143. package/types/core/adapters/remix/remix-components.d.ts +1 -4
  144. package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +3 -9
  145. package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +1 -5
  146. package/types/core/adapters/remix/remix-registry-parse.d.ts +10 -22
  147. package/types/core/adapters/remix/remix-registry.d.ts +2 -15
  148. package/types/core/adapters/remix/remix-test-utils.d.ts +5 -11
  149. package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +2 -12
  150. package/types/core/adapters/vue/index.d.ts +12 -20
  151. package/types/core/adapters/vue/vue-api-key.d.ts +1 -4
  152. package/types/core/adapters/vue/vue-components.d.ts +2 -10
  153. package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +3 -7
  154. package/types/core/adapters/vue/vue-registry-parse.d.ts +9 -19
  155. package/types/core/adapters/vue/vue-registry.d.ts +3 -6
  156. package/types/core/adapters/webpack/webpack-config-helpers.d.ts +3 -8
  157. package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +1 -5
  158. package/types/core/create-dev-tools.d.ts +1 -4
  159. package/types/core/detect-frameworks.d.ts +2 -7
  160. package/types/core/ensure-config-plugin.d.ts +2 -6
  161. package/types/core/find-dependencies.d.ts +3 -6
  162. package/types/core/import-export-registry.d.ts +2 -9
  163. package/types/core/index.d.ts +3 -18
  164. package/types/figma/index.d.ts +64 -95
  165. package/types/node/node-sys.d.ts +6 -13
  166. package/types/remix/index.d.ts +3 -5
  167. package/types/server/auth.d.ts +1 -4
  168. package/types/server/builder-connect.d.ts +6 -21
  169. package/types/server/client-script.d.ts +2 -6
  170. package/types/server/create-dev-tools-server.d.ts +1 -3
  171. package/types/server/dev-tools-api.d.ts +1 -4
  172. package/types/server/dev-tools-http-server.d.ts +1 -3
  173. package/types/server/index.d.ts +1 -28
  174. package/types/server/request-handler.d.ts +1 -6
  175. package/types/tsconfig.tsbuildinfo +1 -1
  176. package/types/types/codegen-server.d.ts +1 -1
  177. package/types/types/connection-tracker.d.ts +34 -34
  178. package/types/types/proxy-middleware.d.ts +14 -24
  179. package/types/types/websocket-types.d.ts +7 -9
  180. package/types/types.d.ts +358 -387
  181. package/types/vite/main.d.ts +1 -1
  182. package/types/webpack/main.d.ts +5 -5
  183. package/types/cli/env-substitution.d.ts +0 -22
  184. package/types/cli/env-substitution.test.d.ts +0 -1
  185. package/types/cli/utils/env-filter.d.ts +0 -42
  186. package/types/cli/utils/lock-file-example.d.ts +0 -30
  187. package/types/cli/utils/sudo-helper.d.ts +0 -21
  188. package/types/packages/dev-tools/_tests_/code.e2e.d.ts +0 -1
  189. package/types/packages/dev-tools/_tests_/create-builder.e2e.d.ts +0 -1
  190. package/types/packages/dev-tools/_tests_/dev-tools.e2e.d.ts +0 -1
  191. package/types/packages/dev-tools/_tests_/figma-generate.e2e.d.ts +0 -1
  192. package/types/packages/dev-tools/_tests_/figma-publish.e2e.d.ts +0 -1
  193. package/types/packages/dev-tools/_tests_/fusionInit.e2e.d.ts +0 -1
  194. package/types/packages/dev-tools/_tests_/help.e2e.d.ts +0 -1
  195. package/types/packages/dev-tools/_tests_/launch.e2e.d.ts +0 -1
  196. package/types/packages/dev-tools/_tests_/repo-indexing.test.d.ts +0 -1
  197. package/types/packages/dev-tools/_tests_/sync-utils.test.d.ts +0 -1
  198. package/types/packages/dev-tools/_tests_/utils.d.ts +0 -57
  199. package/types/packages/dev-tools/_tests_/vitest.config.d.ts +0 -2
  200. package/types/packages/dev-tools/_tests_/workspace.e2e.d.ts +0 -1
  201. package/types/packages/dev-tools/angular/index.d.ts +0 -1
  202. package/types/packages/dev-tools/cli/__tests__/isLikelyFixedString.spec.d.ts +0 -1
  203. package/types/packages/dev-tools/cli/__tests__/parseGitDiffToApplyActions.spec.d.ts +0 -1
  204. package/types/packages/dev-tools/cli/abort-signal-any.d.ts +0 -3
  205. package/types/packages/dev-tools/cli/auth/auth-utils.d.ts +0 -4
  206. package/types/packages/dev-tools/cli/auth/auth.d.ts +0 -7
  207. package/types/packages/dev-tools/cli/auth/status.d.ts +0 -3
  208. package/types/packages/dev-tools/cli/backup.d.ts +0 -172
  209. package/types/packages/dev-tools/cli/builder-add/interface.d.ts +0 -22
  210. package/types/packages/dev-tools/cli/builder-add/options.d.ts +0 -2
  211. package/types/packages/dev-tools/cli/code-file-utils.d.ts +0 -20
  212. package/types/packages/dev-tools/cli/code-file-utils.unit.d.ts +0 -1
  213. package/types/packages/dev-tools/cli/code-tools.d.ts +0 -131
  214. package/types/packages/dev-tools/cli/code.d.ts +0 -17
  215. package/types/packages/dev-tools/cli/codegen.d.ts +0 -456
  216. package/types/packages/dev-tools/cli/constants.d.ts +0 -1
  217. package/types/packages/dev-tools/cli/credentials.d.ts +0 -69
  218. package/types/packages/dev-tools/cli/download.d.ts +0 -15
  219. package/types/packages/dev-tools/cli/exit.d.ts +0 -1
  220. package/types/packages/dev-tools/cli/fetch.d.ts +0 -1
  221. package/types/packages/dev-tools/cli/figma-publish.d.ts +0 -41
  222. package/types/packages/dev-tools/cli/figma-publish.spec.d.ts +0 -1
  223. package/types/packages/dev-tools/cli/figma-utils.d.ts +0 -61
  224. package/types/packages/dev-tools/cli/figma.d.ts +0 -11
  225. package/types/packages/dev-tools/cli/generate.d.ts +0 -19
  226. package/types/packages/dev-tools/cli/help.d.ts +0 -1
  227. package/types/packages/dev-tools/cli/incremental-tsc.d.ts +0 -42
  228. package/types/packages/dev-tools/cli/index.d.ts +0 -97
  229. package/types/packages/dev-tools/cli/indexing.d.ts +0 -11
  230. package/types/packages/dev-tools/cli/launch/InitStateMachine.d.ts +0 -142
  231. package/types/packages/dev-tools/cli/launch/config.d.ts +0 -15
  232. package/types/packages/dev-tools/cli/launch/dev-server-orchestrator.d.ts +0 -114
  233. package/types/packages/dev-tools/cli/launch/dry-run-backup.d.ts +0 -16
  234. package/types/packages/dev-tools/cli/launch/errors.d.ts +0 -8
  235. package/types/packages/dev-tools/cli/launch/github.d.ts +0 -9
  236. package/types/packages/dev-tools/cli/launch/grafana.d.ts +0 -8
  237. package/types/packages/dev-tools/cli/launch/helpers.d.ts +0 -42
  238. package/types/packages/dev-tools/cli/launch/helpers.test.d.ts +0 -1
  239. package/types/packages/dev-tools/cli/launch/machine-health.d.ts +0 -17
  240. package/types/packages/dev-tools/cli/launch/proxy.d.ts +0 -6
  241. package/types/packages/dev-tools/cli/launch/server.d.ts +0 -26
  242. package/types/packages/dev-tools/cli/launch.d.ts +0 -93
  243. package/types/packages/dev-tools/cli/prettier.d.ts +0 -10
  244. package/types/packages/dev-tools/cli/prettier.integration.test.d.ts +0 -1
  245. package/types/packages/dev-tools/cli/repo-indexing/component-discovery.d.ts +0 -21
  246. package/types/packages/dev-tools/cli/repo-indexing/component-indexing.d.ts +0 -34
  247. package/types/packages/dev-tools/cli/repo-indexing/icons.d.ts +0 -32
  248. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing-utils.d.ts +0 -109
  249. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.d.ts +0 -41
  250. package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.mock.d.ts +0 -5
  251. package/types/packages/dev-tools/cli/repo-indexing/types.d.ts +0 -12
  252. package/types/packages/dev-tools/cli/repo-metrics.d.ts +0 -9
  253. package/types/packages/dev-tools/cli/report/figma-report.d.ts +0 -81
  254. package/types/packages/dev-tools/cli/server-ws.d.ts +0 -60
  255. package/types/packages/dev-tools/cli/spinner.d.ts +0 -6
  256. package/types/packages/dev-tools/cli/sync-utils.d.ts +0 -45
  257. package/types/packages/dev-tools/cli/track.d.ts +0 -8
  258. package/types/packages/dev-tools/cli/utils/component-group-mdx-prompt.d.ts +0 -2
  259. package/types/packages/dev-tools/cli/utils/dev-server-url-parser.d.ts +0 -15
  260. package/types/packages/dev-tools/cli/utils/dev-server-url-parser.test.d.ts +0 -1
  261. package/types/packages/dev-tools/cli/utils/feature-flags.d.ts +0 -4
  262. package/types/packages/dev-tools/cli/utils/git.d.ts +0 -34
  263. package/types/packages/dev-tools/cli/utils/open.d.ts +0 -1
  264. package/types/packages/dev-tools/cli/utils/parseGitDiff.d.ts +0 -11
  265. package/types/packages/dev-tools/cli/utils/repo-indexing-agent-prompt.d.ts +0 -2
  266. package/types/packages/dev-tools/cli/utils/repo-indexing-group-prompt.d.ts +0 -1
  267. package/types/packages/dev-tools/cli/utils/signals.d.ts +0 -2
  268. package/types/packages/dev-tools/cli/utils/terminal-buffer.d.ts +0 -29
  269. package/types/packages/dev-tools/cli/utils/terminal-buffer.spec.d.ts +0 -1
  270. package/types/packages/dev-tools/cli/utils/workspace-path-resolver.d.ts +0 -99
  271. package/types/packages/dev-tools/cli/utils/workspace-path-resolver.unit.d.ts +0 -1
  272. package/types/packages/dev-tools/cli/version.d.ts +0 -1
  273. package/types/packages/dev-tools/client/client-api.d.ts +0 -44
  274. package/types/packages/dev-tools/client/edit-button/document-listeners.d.ts +0 -4
  275. package/types/packages/dev-tools/client/edit-button/index.d.ts +0 -8
  276. package/types/packages/dev-tools/client/index.d.ts +0 -1
  277. package/types/packages/dev-tools/client/menu/index.d.ts +0 -5
  278. package/types/packages/dev-tools/client/menu/pages/component-detail.d.ts +0 -10
  279. package/types/packages/dev-tools/client/menu/pages/component-input.d.ts +0 -7
  280. package/types/packages/dev-tools/client/menu/pages/component-list.d.ts +0 -7
  281. package/types/packages/dev-tools/client/menu/pages/home.d.ts +0 -1
  282. package/types/packages/dev-tools/client/menu/pages/settings.d.ts +0 -1
  283. package/types/packages/dev-tools/client/menu/toggle/menu-toggle.d.ts +0 -5
  284. package/types/packages/dev-tools/client/setup-ui/connected.d.ts +0 -1
  285. package/types/packages/dev-tools/client/setup-ui/index.d.ts +0 -1
  286. package/types/packages/dev-tools/client/setup-ui/overview.d.ts +0 -4
  287. package/types/packages/dev-tools/client/tracking.d.ts +0 -22
  288. package/types/packages/dev-tools/client/utils.d.ts +0 -16
  289. package/types/packages/dev-tools/common/ast/app-dependencies.d.ts +0 -10
  290. package/types/packages/dev-tools/common/ast/component-info.d.ts +0 -29
  291. package/types/packages/dev-tools/common/ast/component-input-types.d.ts +0 -43
  292. package/types/packages/dev-tools/common/ast/component-registry.d.ts +0 -24
  293. package/types/packages/dev-tools/common/ast/convert-values.d.ts +0 -43
  294. package/types/packages/dev-tools/common/ast/convert-values.unit.d.ts +0 -1
  295. package/types/packages/dev-tools/common/ast/ensure-array-statement.d.ts +0 -11
  296. package/types/packages/dev-tools/common/ast/ensure-array-statement.unit.d.ts +0 -1
  297. package/types/packages/dev-tools/common/ast/ensure-comments.d.ts +0 -5
  298. package/types/packages/dev-tools/common/ast/ensure-imports.d.ts +0 -14
  299. package/types/packages/dev-tools/common/ast/ensure-imports.unit.d.ts +0 -1
  300. package/types/packages/dev-tools/common/ast/exported-statements.d.ts +0 -12
  301. package/types/packages/dev-tools/common/ast/exported-statements.unit.d.ts +0 -1
  302. package/types/packages/dev-tools/common/ast/imported-statements.d.ts +0 -8
  303. package/types/packages/dev-tools/common/ast/imported-statements.unit.d.ts +0 -1
  304. package/types/packages/dev-tools/common/ast/normalize-statements.d.ts +0 -16
  305. package/types/packages/dev-tools/common/ast/normalize-statements.unit.d.ts +0 -1
  306. package/types/packages/dev-tools/common/ast/remove-unused-imports.d.ts +0 -6
  307. package/types/packages/dev-tools/common/ast/remove-unused-imports.unit.d.ts +0 -1
  308. package/types/packages/dev-tools/common/ast/transform.d.ts +0 -15
  309. package/types/packages/dev-tools/common/ast/utils.d.ts +0 -49
  310. package/types/packages/dev-tools/common/ast/utils.unit.d.ts +0 -1
  311. package/types/packages/dev-tools/common/builder/builder-api.d.ts +0 -36
  312. package/types/packages/dev-tools/common/builder/builder-sdks.d.ts +0 -12
  313. package/types/packages/dev-tools/common/builder/content-generation.d.ts +0 -11
  314. package/types/packages/dev-tools/common/builder/content-ids.d.ts +0 -4
  315. package/types/packages/dev-tools/common/cache.d.ts +0 -6
  316. package/types/packages/dev-tools/common/constants.d.ts +0 -17
  317. package/types/packages/dev-tools/common/dotenv.d.ts +0 -25
  318. package/types/packages/dev-tools/common/dotenv.test.d.ts +0 -1
  319. package/types/packages/dev-tools/common/errors.d.ts +0 -50
  320. package/types/packages/dev-tools/common/estimate-code-tokens.d.ts +0 -1
  321. package/types/packages/dev-tools/common/fs.d.ts +0 -19
  322. package/types/packages/dev-tools/common/interactive-select-files.d.ts +0 -17
  323. package/types/packages/dev-tools/common/mem-sys.d.ts +0 -10
  324. package/types/packages/dev-tools/common/node-request.d.ts +0 -7
  325. package/types/packages/dev-tools/common/path.d.ts +0 -2
  326. package/types/packages/dev-tools/common/test-utils.d.ts +0 -23
  327. package/types/packages/dev-tools/common/typescript.d.ts +0 -28
  328. package/types/packages/dev-tools/common/utils.d.ts +0 -55
  329. package/types/packages/dev-tools/common/utils.unit.d.ts +0 -1
  330. package/types/packages/dev-tools/core/adapters/angular/angular-api-key.d.ts +0 -33
  331. package/types/packages/dev-tools/core/adapters/angular/angular-api-key.unit.d.ts +0 -1
  332. package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.d.ts +0 -13
  333. package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.unit.d.ts +0 -1
  334. package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.d.ts +0 -7
  335. package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.unit.d.ts +0 -1
  336. package/types/packages/dev-tools/core/adapters/angular/angular-components.d.ts +0 -46
  337. package/types/packages/dev-tools/core/adapters/angular/angular-components.unit.d.ts +0 -1
  338. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-builder-setup.d.ts +0 -11
  339. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.d.ts +0 -21
  340. package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.unit.d.ts +0 -1
  341. package/types/packages/dev-tools/core/adapters/angular/angular-fix-tsconfig.d.ts +0 -4
  342. package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.d.ts +0 -28
  343. package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.unit.d.ts +0 -1
  344. package/types/packages/dev-tools/core/adapters/angular/angular-registry.d.ts +0 -16
  345. package/types/packages/dev-tools/core/adapters/angular/angular-registry.unit.d.ts +0 -1
  346. package/types/packages/dev-tools/core/adapters/angular/angular-test-utils.d.ts +0 -10
  347. package/types/packages/dev-tools/core/adapters/angular/index.d.ts +0 -22
  348. package/types/packages/dev-tools/core/adapters/angular/types.d.ts +0 -11
  349. package/types/packages/dev-tools/core/adapters/next/index.d.ts +0 -36
  350. package/types/packages/dev-tools/core/adapters/next/next-api-key.d.ts +0 -7
  351. package/types/packages/dev-tools/core/adapters/next/next-component-info.d.ts +0 -12
  352. package/types/packages/dev-tools/core/adapters/next/next-component-info.unit.d.ts +0 -1
  353. package/types/packages/dev-tools/core/adapters/next/next-component-inputs.unit.d.ts +0 -1
  354. package/types/packages/dev-tools/core/adapters/next/next-component-source-inputs.unit.d.ts +0 -1
  355. package/types/packages/dev-tools/core/adapters/next/next-components.d.ts +0 -7
  356. package/types/packages/dev-tools/core/adapters/next/next-ensure-builder-setup.d.ts +0 -8
  357. package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.d.ts +0 -7
  358. package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.unit.d.ts +0 -1
  359. package/types/packages/dev-tools/core/adapters/next/next-registry-parse.d.ts +0 -26
  360. package/types/packages/dev-tools/core/adapters/next/next-registry-parse.unit.d.ts +0 -1
  361. package/types/packages/dev-tools/core/adapters/next/next-registry.d.ts +0 -16
  362. package/types/packages/dev-tools/core/adapters/next/next-registry.unit.d.ts +0 -1
  363. package/types/packages/dev-tools/core/adapters/next/next-test-utils.d.ts +0 -26
  364. package/types/packages/dev-tools/core/adapters/qwik-city/index.d.ts +0 -16
  365. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-api-key.d.ts +0 -7
  366. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +0 -6
  367. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.d.ts +0 -30
  368. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.unit.d.ts +0 -1
  369. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +0 -8
  370. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +0 -6
  371. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.d.ts +0 -28
  372. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.unit.d.ts +0 -1
  373. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.d.ts +0 -16
  374. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.unit.d.ts +0 -1
  375. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-test-utils.d.ts +0 -10
  376. package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.d.ts +0 -4
  377. package/types/packages/dev-tools/core/adapters/react/index.d.ts +0 -21
  378. package/types/packages/dev-tools/core/adapters/react/react-api-key.d.ts +0 -9
  379. package/types/packages/dev-tools/core/adapters/react/react-builder-sdk-setup.d.ts +0 -4
  380. package/types/packages/dev-tools/core/adapters/react/react-component-info.d.ts +0 -12
  381. package/types/packages/dev-tools/core/adapters/react/react-components.d.ts +0 -44
  382. package/types/packages/dev-tools/core/adapters/react/react-components.unit.d.ts +0 -1
  383. package/types/packages/dev-tools/core/adapters/react/react-ensure-builder-setup.d.ts +0 -8
  384. package/types/packages/dev-tools/core/adapters/react/react-registry-parse.d.ts +0 -26
  385. package/types/packages/dev-tools/core/adapters/react/react-registry-parse.unit.d.ts +0 -1
  386. package/types/packages/dev-tools/core/adapters/react/react-registry.d.ts +0 -16
  387. package/types/packages/dev-tools/core/adapters/react/react-registry.unit.d.ts +0 -1
  388. package/types/packages/dev-tools/core/adapters/react/react-test-utils.d.ts +0 -13
  389. package/types/packages/dev-tools/core/adapters/react/react-ts-program.d.ts +0 -4
  390. package/types/packages/dev-tools/core/adapters/remix/index.d.ts +0 -21
  391. package/types/packages/dev-tools/core/adapters/remix/remix-api-key.d.ts +0 -7
  392. package/types/packages/dev-tools/core/adapters/remix/remix-components.d.ts +0 -7
  393. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-builder-setup.d.ts +0 -11
  394. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.d.ts +0 -7
  395. package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.unit.d.ts +0 -1
  396. package/types/packages/dev-tools/core/adapters/remix/remix-registry-parse.d.ts +0 -28
  397. package/types/packages/dev-tools/core/adapters/remix/remix-registry.d.ts +0 -16
  398. package/types/packages/dev-tools/core/adapters/remix/remix-registry.unit.d.ts +0 -1
  399. package/types/packages/dev-tools/core/adapters/remix/remix-test-utils.d.ts +0 -13
  400. package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.d.ts +0 -17
  401. package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.unit.d.ts +0 -1
  402. package/types/packages/dev-tools/core/adapters/vue/index.d.ts +0 -22
  403. package/types/packages/dev-tools/core/adapters/vue/vue-api-key.d.ts +0 -9
  404. package/types/packages/dev-tools/core/adapters/vue/vue-components.d.ts +0 -12
  405. package/types/packages/dev-tools/core/adapters/vue/vue-ensure-builder-setup.d.ts +0 -11
  406. package/types/packages/dev-tools/core/adapters/vue/vue-registry-parse.d.ts +0 -26
  407. package/types/packages/dev-tools/core/adapters/vue/vue-registry.d.ts +0 -8
  408. package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.d.ts +0 -16
  409. package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.unit.d.ts +0 -1
  410. package/types/packages/dev-tools/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +0 -7
  411. package/types/packages/dev-tools/core/client-script.d.ts +0 -1
  412. package/types/packages/dev-tools/core/create-dev-tools.d.ts +0 -4
  413. package/types/packages/dev-tools/core/detect-frameworks.d.ts +0 -9
  414. package/types/packages/dev-tools/core/ensure-config-plugin.d.ts +0 -7
  415. package/types/packages/dev-tools/core/find-dependencies.d.ts +0 -10
  416. package/types/packages/dev-tools/core/import-export-registry.d.ts +0 -10
  417. package/types/packages/dev-tools/core/index.d.ts +0 -23
  418. package/types/packages/dev-tools/figma/index.d.ts +0 -119
  419. package/types/packages/dev-tools/node/index.d.ts +0 -2
  420. package/types/packages/dev-tools/node/node-sys.d.ts +0 -21
  421. package/types/packages/dev-tools/remix/index.d.ts +0 -8
  422. package/types/packages/dev-tools/server/auth.d.ts +0 -5
  423. package/types/packages/dev-tools/server/builder-connect.d.ts +0 -21
  424. package/types/packages/dev-tools/server/client-script.d.ts +0 -7
  425. package/types/packages/dev-tools/server/create-dev-tools-server.d.ts +0 -4
  426. package/types/packages/dev-tools/server/dev-tools-api.d.ts +0 -5
  427. package/types/packages/dev-tools/server/dev-tools-http-server.d.ts +0 -4
  428. package/types/packages/dev-tools/server/index.d.ts +0 -30
  429. package/types/packages/dev-tools/server/request-handler.d.ts +0 -8
  430. package/types/packages/dev-tools/types/codegen-server.d.ts +0 -14
  431. package/types/packages/dev-tools/types/connection-tracker.d.ts +0 -41
  432. package/types/packages/dev-tools/types/proxy-middleware.d.ts +0 -41
  433. package/types/packages/dev-tools/types/websocket-types.d.ts +0 -19
  434. package/types/packages/dev-tools/types.d.ts +0 -554
  435. package/types/packages/dev-tools/vite/main.d.ts +0 -7
  436. package/types/packages/dev-tools/vitest.config.d.ts +0 -2
  437. package/types/packages/dev-tools/webpack/main.d.ts +0 -9
@@ -1,21 +0,0 @@
1
- import type { DevToolsSys } from "../../types";
2
- import type { Credentials } from "../credentials";
3
- import type { WorkspaceConfiguration } from "$/ai-utils";
4
- import type { Component } from "./types";
5
- export declare const discoverComponents: (
6
- sys: DevToolsSys,
7
- credentials: Credentials,
8
- sessionId: string,
9
- remoteComponents: Component[],
10
- opts?: {
11
- force?: boolean | undefined;
12
- designSystemPackage?: string | undefined;
13
- designSystemVersion?: string | undefined;
14
- workspaceConfig?: WorkspaceConfiguration | undefined;
15
- debug?: boolean | undefined;
16
- },
17
- ) => Promise<{
18
- numComponentsFound: number;
19
- componentsToIndex: Component[];
20
- discoveredComponents: Component[];
21
- }>;
@@ -1,34 +0,0 @@
1
- import type { DevToolsSys } from "../../types";
2
- import type { Credentials } from "../credentials";
3
- import type { Component } from "./types";
4
- import type { WorkspaceConfiguration } from "$/ai-utils";
5
- export declare const processComponent: (
6
- sys: DevToolsSys,
7
- credentials: Credentials,
8
- sessionId: string,
9
- component: Component,
10
- opts?: {
11
- designSystemId?: string | null | undefined;
12
- designSystemPackage?: string | undefined;
13
- designSystemVersion?: string | undefined;
14
- retriesAllowed?: number | undefined;
15
- workspaceConfig?: WorkspaceConfiguration | undefined;
16
- debug?: boolean | undefined;
17
- },
18
- ) => Promise<void>;
19
- export declare const processAgent: (
20
- sys: DevToolsSys,
21
- credentials: Credentials,
22
- discoveredComponents: Component[],
23
- opts?: {
24
- hasIcons?: boolean | undefined;
25
- designSystemId?: string | null | undefined;
26
- retriesAllowed?: number | undefined;
27
- debug?: boolean | undefined;
28
- },
29
- ) => Promise<void>;
30
- export declare const deprecateObsoleteComponents: (
31
- credentials: Credentials,
32
- localComponents: Component[],
33
- remoteComponents: Component[],
34
- ) => Promise<void>;
@@ -1,32 +0,0 @@
1
- import type { DevToolsSys } from "../../types";
2
- import type { Credentials } from "../credentials";
3
- import type { WorkspaceConfiguration } from "$/ai-utils";
4
- export declare const discoverIcons: (
5
- sys: DevToolsSys,
6
- credentials: Credentials,
7
- sessionId: string,
8
- opts?: {
9
- designSystemPackage?: string | undefined;
10
- workspaceConfig?: WorkspaceConfiguration | undefined;
11
- debug?: boolean | undefined;
12
- },
13
- ) => Promise<{
14
- icons: string[];
15
- usage: string;
16
- hash: string | undefined;
17
- }>;
18
- export declare const processIcons: (
19
- credentials: Credentials,
20
- iconDiscovery: {
21
- icons: string[];
22
- usage: string;
23
- hash?: string | undefined;
24
- },
25
- opts: {
26
- designSystemId: string;
27
- sessionId: string;
28
- debug?: boolean | undefined;
29
- previousHash?: string | null | undefined;
30
- force?: boolean | undefined;
31
- },
32
- ) => Promise<boolean>;
@@ -1,109 +0,0 @@
1
- import type { DevToolsSys } from "../../core";
2
- import { type Credentials } from "../credentials";
3
- import type {
4
- DesignSystem,
5
- GenerateUserMessage,
6
- WorkspaceConfiguration,
7
- StoreComponentDocsInput,
8
- UpdateDesignSystemInput,
9
- DesignSystemScope,
10
- DisplayDesignSystem,
11
- } from "$/ai-utils";
12
- export declare const AGENT_FILE = "AGENTS.md";
13
- export declare const ICONS_FILE = "icons.md";
14
- export declare const REPO_INDEXING_FOLDER = "repo-indexing";
15
- export interface UserSettings {
16
- isAdminInOrganization: boolean;
17
- email: string;
18
- }
19
- export declare const promptForDesignSystemScope: (
20
- credentials: Credentials,
21
- userSettings: UserSettings | null,
22
- ) => Promise<DesignSystemScope | undefined>;
23
- export declare const parseDesignSystem: (
24
- sys: DevToolsSys,
25
- designSystemPackage?: string | undefined,
26
- ) => Promise<{
27
- name: any;
28
- version: string | undefined;
29
- }>;
30
- export declare const storeComponentDocs: (
31
- credentials: Credentials,
32
- body: StoreComponentDocsInput,
33
- debug?: boolean | undefined,
34
- ) => Promise<any>;
35
- export declare const runCodeGen: (
36
- sys: DevToolsSys,
37
- credentials: Credentials,
38
- sessionId: string,
39
- message: GenerateUserMessage,
40
- debug?: boolean | undefined,
41
- designSystemPackage?: string | undefined,
42
- workspaceConfig?: WorkspaceConfiguration | undefined,
43
- opts?: {
44
- tags?: object | undefined;
45
- maxTokens?: number | undefined;
46
- },
47
- metadata?: any,
48
- ) => Promise<string>;
49
- interface GetAllDesignSystemsOpts {
50
- /**
51
- * If true, only design systems that the user has permission to edit will be
52
- * returned. If false, all design systems that the user has permission to edit
53
- * as well as design systems that the user has permission to read but not edit
54
- * will be returned. Defaults to false.
55
- */
56
- onlyEditAccess?: boolean;
57
- /**
58
- * If true, design systems that are scoped to the global space will be included.
59
- * Defaults to false.
60
- */
61
- includeGlobalScopeDesignSystems?: boolean;
62
- /**
63
- * If true, the # of component docs in each design system will also be returned.
64
- * Defaults to false.
65
- */
66
- includeDocumentCount?: boolean;
67
- }
68
- export declare function getAllDesignSystems(
69
- credentials: Credentials,
70
- opts: {
71
- includeDocumentCount: true;
72
- } & Omit<GetAllDesignSystemsOpts, "includeDocumentCount">,
73
- ): Promise<DisplayDesignSystem[]>;
74
- export declare function getAllDesignSystems(
75
- credentials: Credentials,
76
- opts?: GetAllDesignSystemsOpts,
77
- ): Promise<DesignSystem[]>;
78
- export declare const getDesignSystemsByScope: (
79
- scope: DesignSystemScope,
80
- designSystems: DesignSystem[],
81
- ) => DesignSystem[];
82
- export declare const getDesignSystemByName: (
83
- designSystemName: string,
84
- designSystems: DesignSystem[],
85
- ) => DesignSystem | null;
86
- export declare const getDesignSystemByNameAndScope: (
87
- credentials: Credentials,
88
- designSystemName: string,
89
- scope: DesignSystemScope,
90
- designSystems: DesignSystem[],
91
- ) => DesignSystem | null;
92
- export declare const addDesignSystem: (
93
- credentials: Credentials,
94
- body: {
95
- designSystemName: string;
96
- designSystemVersion?: string | undefined;
97
- designSystemPackage?: string | undefined;
98
- status: string;
99
- scope: DesignSystemScope;
100
- },
101
- ) => Promise<any>;
102
- export declare const updateDesignSystem: (
103
- credentials: Credentials,
104
- body: UpdateDesignSystemInput,
105
- ) => Promise<any>;
106
- export declare const checkRepoIndexingFolder: (
107
- sys: DevToolsSys,
108
- ) => Promise<boolean>;
109
- export {};
@@ -1,41 +0,0 @@
1
- import type { DevToolsSys } from "../../types";
2
- import type { CLIArgs } from "../index";
3
- import { type Credentials } from "../credentials";
4
- import type { Component } from "./types";
5
- export declare const displayComponentLibrarySummary: (
6
- components: Component[],
7
- indexedComponents: Component[],
8
- startTime: number,
9
- failedComponents: string[] | undefined,
10
- isForce: boolean | undefined,
11
- designSystemName: string,
12
- designSystemId?: string | undefined,
13
- numIconsIndexed?: number,
14
- ) => void;
15
- export interface RepoIndexingDoc {
16
- name: string;
17
- content:
18
- | string
19
- | {
20
- name: string;
21
- description: string;
22
- components: string[];
23
- relevantFiles: string[];
24
- }[];
25
- createdDate: string;
26
- description: string;
27
- id: string;
28
- ownerId: string;
29
- userId: string;
30
- }
31
- export declare const runRepoIndexing: (
32
- sys: DevToolsSys,
33
- args: CLIArgs,
34
- ) => Promise<void>;
35
- export declare const isFeatureAllowed: (
36
- credentials: Credentials,
37
- debug?: boolean | undefined,
38
- ) => Promise<{
39
- isAllowed: boolean;
40
- reason?: string | undefined;
41
- }>;
@@ -1,5 +0,0 @@
1
- export declare const mockDeps: {
2
- getStoredComponentDocs: () => Promise<never[]>;
3
- storeComponentDocs: () => Promise<{}>;
4
- runCodeGen: () => Promise<string>;
5
- };
@@ -1,12 +0,0 @@
1
- export interface Component {
2
- id?: string;
3
- name: string;
4
- description: string;
5
- relatedComponents: string[];
6
- relevantFiles: string[];
7
- designSystemPackage?: string;
8
- designSystemVersion?: string;
9
- hash?: string;
10
- designSystemId?: string | null;
11
- tokens?: number;
12
- }
@@ -1,9 +0,0 @@
1
- import type { RepoMetrics } from "$/ai-utils";
2
- import type { DevToolsSys } from "../types";
3
- /**
4
- * Collect comprehensive repository metrics
5
- */
6
- export declare function collectRepoMetrics(
7
- sys: DevToolsSys,
8
- basePath: string,
9
- ): Promise<RepoMetrics>;
@@ -1,81 +0,0 @@
1
- import type { FigmaComponentInfo } from "$/ai-utils";
2
- import type { CLIArgs } from "..";
3
- import type { DevToolsSys } from "../../core";
4
- import type {
5
- PublishedComponent,
6
- PublishedComponentSet,
7
- } from "@figma/rest-api-spec";
8
- type Context = {
9
- sys: DevToolsSys;
10
- args: CLIArgs;
11
- debug: (msg: unknown) => void;
12
- figmaAuth: {
13
- access_token: string;
14
- oauth: boolean;
15
- };
16
- };
17
- /**
18
- * A component or component set
19
- */
20
- type FigmaTeamComponent = {
21
- /** The unique identifier for the component. */
22
- key: string;
23
- /** The unique identifier of the Figma file that contains the component. */
24
- file_key: string;
25
- /** The unique identifier of the component node within the Figma file. */
26
- node_id: string;
27
- /** A URL to a thumbnail image of the component. */
28
- thumbnail_url?: string;
29
- /** The name of the component. */
30
- name: string;
31
- /** The description of the component as entered by the publisher. */
32
- description: string;
33
- /** The component data. */
34
- componentData?: FigmaComponentInfo;
35
- /** Whether the component is published. */
36
- isPublished?: boolean;
37
- };
38
- export declare function extractFigmaIds(url: string): {
39
- teamId?: string;
40
- fileKey?: string;
41
- nodeId?: string;
42
- };
43
- export declare function fetchTeamComponents(
44
- context: Context,
45
- teamId: string,
46
- onProgress: () => void,
47
- ): Promise<PublishedComponent[]>;
48
- export declare function fetchTeamComponentSets(
49
- context: Context,
50
- teamId: string,
51
- onProgress: () => void,
52
- ): Promise<PublishedComponentSet[]>;
53
- /**
54
- * Returns a list of components and component sets that are present in the file or selection as
55
- * well as a set of remote keys for components that are referenced but not present.
56
- */
57
- export declare function processFileOrSelection(
58
- context: Context,
59
- fileKey: string,
60
- nodeId?: string,
61
- ): Promise<{
62
- fileComponents: FigmaTeamComponent[];
63
- remoteKeys: Set<string>;
64
- }>;
65
- export declare function fetchRemoteComponentData(
66
- context: Context,
67
- remoteKeys: Set<string>,
68
- ): Promise<(FigmaTeamComponent | undefined)[]>;
69
- export declare function resolveComponentData(
70
- context: Context,
71
- components: FigmaTeamComponent[],
72
- ): Promise<FigmaTeamComponent[]>;
73
- export declare function generateComponentReport(
74
- component: FigmaTeamComponent,
75
- baseDir: string,
76
- ): Promise<void>;
77
- export declare const runFigmaReport: (
78
- sys: DevToolsSys,
79
- args: CLIArgs,
80
- ) => Promise<void>;
81
- export {};
@@ -1,60 +0,0 @@
1
- import type { Duplex } from "node:stream";
2
- import type { IncomingMessage } from "node:http";
3
- export type SocketRequest = {
4
- id: number;
5
- jsonrpc: string;
6
- method: string;
7
- params: any;
8
- };
9
- export type SocketResponse<T = any> = {
10
- id?: number | null;
11
- jsonrpc: string;
12
- result?: T;
13
- notification?: string;
14
- params?: any;
15
- error?: {
16
- code: number;
17
- message: string;
18
- data?: any;
19
- };
20
- };
21
- export type SocketSendOptions = {
22
- timeout?: number;
23
- };
24
- export type SocketQueue = {
25
- type: "request" | "notification";
26
- result?: SocketResponse["result"];
27
- error?: SocketResponse["error"];
28
- };
29
- import type { ServerOptions } from "ws";
30
- import type { WebSocket } from "ws";
31
- type RegisterFn<T = any> = (params: T, socketId: string) => Promise<any> | any;
32
- type SocketEvents = {
33
- listening: () => Promise<void> | void;
34
- connection: (socket: WebSocket, socketId: string) => Promise<void> | void;
35
- disconnection: (socketId: string) => Promise<void> | void;
36
- error: (error: Error) => Promise<void> | void;
37
- "socket-error": (socketId: string, error: Error) => Promise<void> | void;
38
- close: () => Promise<void> | void;
39
- };
40
- export declare function RPCWebSocketServer(opts: ServerOptions): {
41
- on: <EventKey extends keyof SocketEvents>(
42
- event: EventKey,
43
- cb: SocketEvents[EventKey],
44
- ) => void;
45
- event: (e: string) => void;
46
- handleUpgrade: (
47
- req: IncomingMessage,
48
- socket: Duplex,
49
- upgradeHead: Buffer,
50
- callback?:
51
- | ((client: WebSocket, request: IncomingMessage) => void)
52
- | undefined,
53
- ) => Promise<void>;
54
- clients: () => Map<string, WebSocket>;
55
- register: <T = any>(method: string, fn: RegisterFn<T>) => void;
56
- emit: (name: string, ...params: any[]) => void;
57
- notify: (name: string, socketId: string, ...params: any[]) => void;
58
- close: () => Promise<unknown>;
59
- };
60
- export {};
@@ -1,6 +0,0 @@
1
- export declare const spinner: () => {
2
- start: (msg?: string) => void;
3
- stop: (msg?: string | undefined, code?: number) => void;
4
- message: (msg?: string) => void;
5
- extra: (msg?: string) => void;
6
- };
@@ -1,45 +0,0 @@
1
- import type { AddCliOptions, DevToolsSys, FileNode, SyncInfo } from "../types";
2
- export declare function extractSignatureInfo(content: string): {
3
- contentId?: string;
4
- sessionKey?: string;
5
- snippetId?: string;
6
- };
7
- export interface GetAllProjectFilesOptions {
8
- sys?: DevToolsSys;
9
- basePath: string;
10
- globPattern?: string | string[];
11
- extraIgnorePatterns?: string[];
12
- dot?: boolean;
13
- deep?: number;
14
- gitignore?: boolean;
15
- }
16
- export declare function getAllProjectFiles({
17
- basePath,
18
- globPattern,
19
- extraIgnorePatterns,
20
- dot,
21
- deep,
22
- gitignore,
23
- sys,
24
- }: GetAllProjectFilesOptions): Promise<string[]>;
25
- export declare function findBuilderFiles(
26
- basePath: string,
27
- targetContentId: string,
28
- targetSessionKey: string,
29
- ): Promise<FileNode[]>;
30
- export declare function filterNonImportantFiles(files: string[]): string[];
31
- export declare function getIgnorePatterns(
32
- basePath: string,
33
- ): (path: string) => boolean;
34
- export declare function watchDirectory(
35
- basePath: string,
36
- syncInfo: SyncInfo,
37
- onChange: (updatedSyncInfo: SyncInfo) => void,
38
- ): () => Promise<void>;
39
- export declare function setupSyncServer(
40
- sys: DevToolsSys,
41
- initialSyncInfo?: SyncInfo,
42
- ): Promise<void>;
43
- export declare function syncCommand(
44
- opts: AddCliOptions,
45
- ): Promise<SyncInfo | undefined>;
@@ -1,8 +0,0 @@
1
- import * as Amplitude from "@amplitude/analytics-node";
2
- import * as Sentry from "@sentry/node";
3
- export declare function initTracking(verbose: boolean): Promise<typeof Sentry>;
4
- export declare function track(
5
- eventName: string,
6
- options: Record<string, any>,
7
- ): Promise<Amplitude.Types.Result>;
8
- export declare function setUserId(id: string): Promise<void>;
@@ -1,2 +0,0 @@
1
- export declare const COMPONENT_GROUP_MDX_PROMPT =
2
- "# Component Documentation Generation\n\n## Objective\nGenerate comprehensive MDX documentation for a specific component, analyzing their interfaces, relationships, and usage patterns using the relevant files provided in the input.\n\n## Instructions\n\n### 1. Component Analysis\nFor the given component, analyze each relevant file by:\n- **Interdependency mapping** - Document how components depend on each other\n- **Interface examination** - Extract and document all props, their types, and descriptions\n- **Context analysis** - Identify shared state, contexts, or communication patterns\n- **Compositional patterns** - Document required parent-child relationships\n- **Usage pattern analysis** - Identify how components work together\n- **Example extraction** - Find real usage examples from the codebase\n\n{{COMPONENT_NAME}} has the following related components: {{RELATED_COMPONENTS}}\nThe following files are associated with {{COMPONENT_NAME}}: {{FILE_LIST}}\n\n### 2. Documentation Structure\nCreate comprehensive documentation covering:\n- **Component rationale** - Why these components work together and when to use them\n- **Architectural overview** - How the components form a cohesive system\n- **Component interfaces** - Detailed prop documentation with interdependencies\n- **Composition patterns** - Required and optional usage combinations\n- **Integration examples** - Real-world scenarios showing the component in action\n- **Best practices** - Recommended usage patterns and guidelines\n\n## Required Output Format\n\nGenerate an MDX file with this structure:\n\n```mdx\n---\n# {{COMPONENT_NAME}}\n\n## Overview\n\n### Purpose\n{{COMPONENT_DESCRIPTION}}\n\n### When to Use\n[Expand on the use cases mentioned in the description - be specific about scenarios, user needs, and implementation contexts]\n\n### Architecture\n[Explain the architectural pattern based on coupling strength:]\n- **Critical/Strong Coupling**: Describe the required relationships, shared context, or compositional hierarchy\n- **Moderate Coupling**: Explain how components enhance each other\n- **No Coupling**: Note that this is a standalone component\n\n### Component Interdependencies\n[Map out component relationships - only for components with coupling:]\n- Required parent-child relationships\n- Shared context dependencies \n- Communication patterns between components\n- Related components\n\n## Components\n\n### [PrimaryComponent] {Primary Component for components with coupling}\n[Mark the main/root component for coupled components]\n\n**Purpose:** [What this specific component does]\n\n**Interface:**\n```typescript\ninterface [PrimaryComponent]Props {\n // Document all props with types and descriptions\n children: React.ReactNode; // Required child components (for coupled components)\n property: string; // Description of what this prop does\n onAction?: () => void; // Optional callback description\n}\n```\n\n**Dependencies:** [For coupled components - what this component requires]\n**Provides:** [For coupled components - what context/state this component provides to children]\n\n**Usage Example:**\n```tsx\nimport { [PrimaryComponent] } from '@your-library/components';\n\nfunction Example() {\n return (\n <[PrimaryComponent]\n property=\"value\"\n onAction={() => console.log('action')}\n >\n {/* Required children for coupled components */}\n </[PrimaryComponent]>\n );\n}\n```\n\n### [DependentComponent] {Dependent Component for components with coupling}\n[Mark components that depend on the primary component]\n\n**Purpose:** [What this specific component does]\n\n**Interface:**\n```typescript\ninterface [DependentComponent]Props {\n // Props specific to this component\n // Note any props that are passed down from parent context\n}\n```\n\n**Context Dependencies:** [What context/state this component requires from parent]\n**Parent Requirements:** [Required parent components for proper functionality]\n\n**Usage Example:**\n```tsx\n// Must be used within [PrimaryComponent] for coupled components\n<[PrimaryComponent]>\n <[DependentComponent] prop=\"value\">\n Content\n </[DependentComponent]>\n</[PrimaryComponent]>\n```\n\n### [StandaloneComponent] {For uncoupled components}\n[For components with no coupling]\n\n**Purpose:** [What this component does and when to use it]\n\n**Interface:**\n```typescript\ninterface [StandaloneComponent]Props {\n // All props with types and descriptions\n}\n```\n\n**Usage Example:**\n```tsx\nimport { [StandaloneComponent] } from '@your-library/components';\n\nfunction Example() {\n return (\n <[StandaloneComponent]\n property=\"value\"\n onAction={() => console.log('action')}\n />\n );\n}\n```\n\n## Integration Patterns\n\n### Basic Usage {Only for coupled components}\n```tsx\nimport { [PrimaryComponent], [DependentComponent1], [DependentComponent2] } from '@your-library/components';\n\n// Minimal required structure\nfunction BasicExample() {\n return (\n <[PrimaryComponent]>\n <[DependentComponent1]>Required content</[DependentComponent1]>\n <[DependentComponent2]>More content</[DependentComponent2]>\n </[PrimaryComponent]>\n );\n}\n```\n\n### Advanced Usage {Only for coupled components}\n```tsx\n// Complex usage with all features\nfunction AdvancedExample() {\n return (\n <[PrimaryComponent] \n property=\"value\" \n onAction={handleAction}\n >\n <[DependentComponent1] prop=\"value\">\n <Content />\n </[DependentComponent1]>\n <[DependentComponent2] prop=\"value\">\n <MoreContent />\n </[DependentComponent2]>\n </[PrimaryComponent]>\n );\n}\n```\n\n### Common Variations {Adapt based on component types}\n```tsx\n// Show different ways to use the component(s)\n// Include conditional rendering, different prop combinations, etc.\n```\n\n## Component Relationships {Only for coupled components}\n\n### Data Flow\n[Explain how data flows between the component and related components}\n\n### Context Sharing\n[Document shared contexts, providers, or state management]\n\n### Event Handling\n[Describe how events bubble up or propagate between components]\n\n## Best Practices\n\n### Usage Guidelines\n- [Specific recommendation based on component purpose and use cases]\n- [Another recommendation focusing on accessibility or performance]\n- [Usage pattern guidance based on the component's architecture]\n\n### Accessibility {When relevant}\n- [ARIA relationships between components]\n- [Keyboard navigation patterns]\n- [Screen reader considerations]\n\n### Performance {When relevant}\n- [Optimization recommendations]\n- [State management best practices]\n- [Rendering performance considerations]\n\n## Common Patterns {Expand based on component functionality}\n\n### Pattern 1: [Specific Pattern Name]\n```tsx\n// Example showing a specific usage pattern\n// Include comments explaining why this pattern is recommended\n```\n\n### Pattern 2: [Another Pattern Name]\n```tsx\n// Another common pattern with explanation\n```\n\n```\n\n## File Generation Requirements\n\n**File Naming:**\n- Use kebab-case derived from component name: `{{COMPONENT_NAME_KEBAB}}.mdx`\n- Place in `repo-indexing/` folder\n- Example: `repo-indexing/{{COMPONENT_NAME_KEBAB}}.mdx`\n\n**Content Requirements:**\n1. **Use coupling strength context** - Adapt documentation structure based on couplingStrength value\n2. **Extract real interfaces** - Don't create placeholder interfaces, extract actual TypeScript interfaces from the codebase\n3. **Leverage component description** - Expand on the provided description with specific use cases and implementation guidance\n4. **Document interdependencies** - For coupled components, clearly explain component relationships and requirements\n5. **Include practical examples** - Use realistic, working code examples that demonstrate proper usage\n6. **Show integration patterns** - For coupled components, demonstrate required composition patterns\n**Coupling-Specific Requirements:**\n- **Critical/Strong Coupling**: Focus on required relationships, composition patterns, and shared context\n- **Moderate Coupling**: Show how components enhance each other and optional usage patterns \n- **No Coupling**: Document standalone usage, variants, and individual component capabilities\n\n## Output\nReturn only the complete MDX file content, ready to be saved as `repo-indexing/{{COMPONENT_NAME_KEBAB}}.mdx`. You must use the Write tool in your response.";
@@ -1,15 +0,0 @@
1
- export interface DevServerUrlInfo {
2
- url: string;
3
- port: number;
4
- }
5
- /**
6
- * Parse dev server output to extract URL and port information
7
- *
8
- * @param output - The command output string to parse
9
- * @param customPatterns - Optional array of custom regex patterns to try first
10
- * @returns Object with url and port, or null if no valid URL found
11
- */
12
- export declare function parseDevServerOutput(
13
- output: string,
14
- customPatterns?: string[],
15
- ): DevServerUrlInfo | null;
@@ -1,4 +0,0 @@
1
- export declare function setFeatureFlags(
2
- featureFlags: Record<string, boolean>,
3
- ): void;
4
- export declare function getFeatureFlag(featureFlag: string): boolean;
@@ -1,34 +0,0 @@
1
- import type { DevToolsSys } from "../../types";
2
- import type { Credentials } from "../credentials";
3
- import type { GitConfigs } from "$/ai-utils";
4
- export interface RunCommandOptions {
5
- cwd?: string;
6
- debug?: boolean;
7
- sys: DevToolsSys;
8
- timeout?: number;
9
- stdin?: string;
10
- retry?: number;
11
- }
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>;
34
- export {};
@@ -1 +0,0 @@
1
- export declare function openBrowser(href: string): Promise<void>;
@@ -1,11 +0,0 @@
1
- import type { ApplyActionsResult } from "../../../ai-utils/src/codegen";
2
- /**
3
- * Parse git diff output and convert it to ApplyActionsResult array
4
- * @param diff - The git diff output string
5
- * @param includeFilesOnly - If true, only populate action and filePath properties
6
- * @returns Array of ApplyActionsResult objects
7
- */
8
- export declare function parseGitDiffToApplyActions(
9
- diff: string,
10
- includeFilesOnly?: boolean,
11
- ): ApplyActionsResult[];
@@ -1,2 +0,0 @@
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\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 +0,0 @@
1
- export declare const REPO_INDEXING_GROUP_PROMPT: string;
@@ -1,2 +0,0 @@
1
- export declare function registerSigTerm(): void;
2
- export declare function unregisterSigTerm(): void;
@@ -1,29 +0,0 @@
1
- /**
2
- * Simple terminal buffer that handles basic control sequences
3
- * to properly represent what would be shown in a real terminal
4
- */
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;
29
- }