@angular/cli 22.2.1 → 22.3.0-next.0

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 (377) hide show
  1. package/bin/ng.js +7 -10
  2. package/bin/version.js +98 -0
  3. package/index.d.ts +19 -0
  4. package/lib/chunk-5AASRQKS.js +85 -0
  5. package/lib/chunk-A2VIYA2E.js +165 -0
  6. package/lib/chunk-CAZUOCTC.js +225 -0
  7. package/lib/chunk-DHWVZMLH.js +206 -0
  8. package/lib/chunk-FZ5GFCWU.js +483 -0
  9. package/lib/chunk-G7TRU43D.js +42 -0
  10. package/lib/chunk-GHUUJYOY.js +40 -0
  11. package/lib/chunk-JBLF2TH3.js +267 -0
  12. package/lib/chunk-Q67GOPL7.js +380 -0
  13. package/lib/chunk-SN4KY4Z3.js +24 -0
  14. package/lib/chunk-XFL2J3CJ.js +24 -0
  15. package/lib/chunk-XG3HVNIL.js +59 -0
  16. package/lib/chunk-YM7ILCS5.js +2573 -0
  17. package/lib/cli/index.js +353 -105
  18. package/lib/cli-4CMZ6KMR.js +48 -0
  19. package/lib/cli-4Q7DGTBA.js +33 -0
  20. package/lib/cli-6AHY7ADW.js +96 -0
  21. package/lib/cli-A5UAJDO6.js +135 -0
  22. package/lib/cli-ACLGUIBI.js +2531 -0
  23. package/lib/cli-BQRFWIMG.js +35 -0
  24. package/lib/cli-CWICUPZW.js +42 -0
  25. package/lib/cli-DWQUM3M2.js +29 -0
  26. package/lib/cli-L4TM4JH3.js +88 -0
  27. package/lib/cli-LYBZEMDR.js +96 -0
  28. package/lib/cli-PDCEX7HQ.js +605 -0
  29. package/lib/cli-PJVTDBQM.js +51 -0
  30. package/lib/cli-PRIRL3WP.js +185 -0
  31. package/lib/cli-PU5VH7JB.js +189 -0
  32. package/lib/cli-QUH44NUB.js +68 -0
  33. package/lib/cli-VVITNTBC.js +50 -0
  34. package/lib/cli-XM4L4PP4.js +1651 -0
  35. package/lib/cli-Y2ECUR33.js +33 -0
  36. package/lib/cli-YDSMJOSO.js +182 -0
  37. package/lib/color-SJPGXZVA.js +8 -0
  38. package/lib/config/schema.json +204 -0
  39. package/lib/config-QXK7SSVG.js +22 -0
  40. package/lib/init.js +91 -180
  41. package/package.json +20 -15
  42. package/lib/cli/index.d.ts +0 -11
  43. package/lib/cli/index.js.map +0 -1
  44. package/lib/config/workspace-schema.d.ts +0 -1025
  45. package/lib/config/workspace-schema.js +0 -131
  46. package/lib/config/workspace-schema.js.map +0 -1
  47. package/lib/init.d.ts +0 -8
  48. package/lib/init.js.map +0 -1
  49. package/src/analytics/analytics-collector.d.ts +0 -35
  50. package/src/analytics/analytics-collector.js +0 -195
  51. package/src/analytics/analytics-collector.js.map +0 -1
  52. package/src/analytics/analytics-parameters.d.ts +0 -101
  53. package/src/analytics/analytics-parameters.js +0 -107
  54. package/src/analytics/analytics-parameters.js.map +0 -1
  55. package/src/analytics/analytics.d.ts +0 -27
  56. package/src/analytics/analytics.js +0 -183
  57. package/src/analytics/analytics.js.map +0 -1
  58. package/src/command-builder/architect-base-command-module.d.ts +0 -30
  59. package/src/command-builder/architect-base-command-module.js +0 -244
  60. package/src/command-builder/architect-base-command-module.js.map +0 -1
  61. package/src/command-builder/architect-command-module.d.ts +0 -28
  62. package/src/command-builder/architect-command-module.js +0 -218
  63. package/src/command-builder/architect-command-module.js.map +0 -1
  64. package/src/command-builder/command-module.d.ts +0 -73
  65. package/src/command-builder/command-module.js +0 -260
  66. package/src/command-builder/command-module.js.map +0 -1
  67. package/src/command-builder/command-runner.d.ts +0 -9
  68. package/src/command-builder/command-runner.js +0 -202
  69. package/src/command-builder/command-runner.js.map +0 -1
  70. package/src/command-builder/definitions.d.ts +0 -41
  71. package/src/command-builder/definitions.js +0 -20
  72. package/src/command-builder/definitions.js.map +0 -1
  73. package/src/command-builder/schematics-command-module.d.ts +0 -41
  74. package/src/command-builder/schematics-command-module.js +0 -408
  75. package/src/command-builder/schematics-command-module.js.map +0 -1
  76. package/src/command-builder/utilities/command.d.ts +0 -13
  77. package/src/command-builder/utilities/command.js +0 -39
  78. package/src/command-builder/utilities/command.js.map +0 -1
  79. package/src/command-builder/utilities/json-help.d.ts +0 -37
  80. package/src/command-builder/utilities/json-help.js +0 -92
  81. package/src/command-builder/utilities/json-help.js.map +0 -1
  82. package/src/command-builder/utilities/json-schema.d.ts +0 -64
  83. package/src/command-builder/utilities/json-schema.js +0 -349
  84. package/src/command-builder/utilities/json-schema.js.map +0 -1
  85. package/src/command-builder/utilities/normalize-options-middleware.d.ts +0 -18
  86. package/src/command-builder/utilities/normalize-options-middleware.js +0 -37
  87. package/src/command-builder/utilities/normalize-options-middleware.js.map +0 -1
  88. package/src/command-builder/utilities/schematic-engine-host.d.ts +0 -15
  89. package/src/command-builder/utilities/schematic-engine-host.js +0 -179
  90. package/src/command-builder/utilities/schematic-engine-host.js.map +0 -1
  91. package/src/command-builder/utilities/schematic-workflow.d.ts +0 -14
  92. package/src/command-builder/utilities/schematic-workflow.js +0 -70
  93. package/src/command-builder/utilities/schematic-workflow.js.map +0 -1
  94. package/src/commands/add/cli.d.ts +0 -41
  95. package/src/commands/add/cli.js +0 -705
  96. package/src/commands/add/cli.js.map +0 -1
  97. package/src/commands/add/long-description.md +0 -7
  98. package/src/commands/analytics/cli.d.ts +0 -16
  99. package/src/commands/analytics/cli.js +0 -34
  100. package/src/commands/analytics/cli.js.map +0 -1
  101. package/src/commands/analytics/info/cli.d.ts +0 -16
  102. package/src/commands/analytics/info/cli.js +0 -25
  103. package/src/commands/analytics/info/cli.js.map +0 -1
  104. package/src/commands/analytics/long-description.md +0 -20
  105. package/src/commands/analytics/settings/cli.d.ts +0 -35
  106. package/src/commands/analytics/settings/cli.js +0 -54
  107. package/src/commands/analytics/settings/cli.js.map +0 -1
  108. package/src/commands/build/cli.d.ts +0 -16
  109. package/src/commands/build/cli.js +0 -21
  110. package/src/commands/build/cli.js.map +0 -1
  111. package/src/commands/build/long-description.md +0 -18
  112. package/src/commands/cache/clean/cli.d.ts +0 -17
  113. package/src/commands/cache/clean/cli.js +0 -32
  114. package/src/commands/cache/clean/cli.js.map +0 -1
  115. package/src/commands/cache/cli.d.ts +0 -17
  116. package/src/commands/cache/cli.js +0 -36
  117. package/src/commands/cache/cli.js.map +0 -1
  118. package/src/commands/cache/info/cli.d.ts +0 -20
  119. package/src/commands/cache/info/cli.js +0 -139
  120. package/src/commands/cache/info/cli.js.map +0 -1
  121. package/src/commands/cache/long-description.md +0 -53
  122. package/src/commands/cache/settings/cli.d.ts +0 -27
  123. package/src/commands/cache/settings/cli.js +0 -41
  124. package/src/commands/cache/settings/cli.js.map +0 -1
  125. package/src/commands/cache/utilities.d.ts +0 -11
  126. package/src/commands/cache/utilities.js +0 -90
  127. package/src/commands/cache/utilities.js.map +0 -1
  128. package/src/commands/command-config.d.ts +0 -17
  129. package/src/commands/command-config.js +0 -116
  130. package/src/commands/command-config.js.map +0 -1
  131. package/src/commands/completion/cli.d.ts +0 -16
  132. package/src/commands/completion/cli.js +0 -61
  133. package/src/commands/completion/cli.js.map +0 -1
  134. package/src/commands/completion/long-description.md +0 -67
  135. package/src/commands/config/cli.d.ts +0 -24
  136. package/src/commands/config/cli.js +0 -150
  137. package/src/commands/config/cli.js.map +0 -1
  138. package/src/commands/config/long-description.md +0 -13
  139. package/src/commands/deploy/cli.d.ts +0 -17
  140. package/src/commands/deploy/cli.js +0 -38
  141. package/src/commands/deploy/cli.js.map +0 -1
  142. package/src/commands/deploy/long-description.md +0 -22
  143. package/src/commands/e2e/cli.d.ts +0 -18
  144. package/src/commands/e2e/cli.js +0 -42
  145. package/src/commands/e2e/cli.js.map +0 -1
  146. package/src/commands/extract-i18n/cli.d.ts +0 -17
  147. package/src/commands/extract-i18n/cli.js +0 -48
  148. package/src/commands/extract-i18n/cli.js.map +0 -1
  149. package/src/commands/generate/cli.d.ts +0 -47
  150. package/src/commands/generate/cli.js +0 -189
  151. package/src/commands/generate/cli.js.map +0 -1
  152. package/src/commands/lint/cli.d.ts +0 -17
  153. package/src/commands/lint/cli.js +0 -25
  154. package/src/commands/lint/cli.js.map +0 -1
  155. package/src/commands/lint/long-description.md +0 -20
  156. package/src/commands/make-this-awesome/cli.d.ts +0 -17
  157. package/src/commands/make-this-awesome/cli.js +0 -36
  158. package/src/commands/make-this-awesome/cli.js.map +0 -1
  159. package/src/commands/mcp/cli.d.ts +0 -21
  160. package/src/commands/mcp/cli.js +0 -74
  161. package/src/commands/mcp/cli.js.map +0 -1
  162. package/src/commands/mcp/constants.d.ts +0 -10
  163. package/src/commands/mcp/constants.js +0 -16
  164. package/src/commands/mcp/constants.js.map +0 -1
  165. package/src/commands/mcp/devserver.d.ts +0 -85
  166. package/src/commands/mcp/devserver.js +0 -109
  167. package/src/commands/mcp/devserver.js.map +0 -1
  168. package/src/commands/mcp/host.d.ts +0 -103
  169. package/src/commands/mcp/host.js +0 -270
  170. package/src/commands/mcp/host.js.map +0 -1
  171. package/src/commands/mcp/mcp-server.d.ts +0 -38
  172. package/src/commands/mcp/mcp-server.js +0 -176
  173. package/src/commands/mcp/mcp-server.js.map +0 -1
  174. package/src/commands/mcp/resources/ai-tutor.md +0 -822
  175. package/src/commands/mcp/resources/best-practices.md +0 -59
  176. package/src/commands/mcp/resources/instructions.d.ts +0 -9
  177. package/src/commands/mcp/resources/instructions.js +0 -26
  178. package/src/commands/mcp/resources/instructions.js.map +0 -1
  179. package/src/commands/mcp/shared-options.d.ts +0 -12
  180. package/src/commands/mcp/shared-options.js +0 -22
  181. package/src/commands/mcp/shared-options.js.map +0 -1
  182. package/src/commands/mcp/tools/ai-tutor.d.ts +0 -12
  183. package/src/commands/mcp/tools/ai-tutor.js +0 -59
  184. package/src/commands/mcp/tools/ai-tutor.js.map +0 -1
  185. package/src/commands/mcp/tools/best-practices.d.ts +0 -13
  186. package/src/commands/mcp/tools/best-practices.js +0 -196
  187. package/src/commands/mcp/tools/best-practices.js.map +0 -1
  188. package/src/commands/mcp/tools/devserver/devserver-start.d.ts +0 -32
  189. package/src/commands/mcp/tools/devserver/devserver-start.js +0 -110
  190. package/src/commands/mcp/tools/devserver/devserver-start.js.map +0 -1
  191. package/src/commands/mcp/tools/devserver/devserver-stop.d.ts +0 -31
  192. package/src/commands/mcp/tools/devserver/devserver-stop.js +0 -69
  193. package/src/commands/mcp/tools/devserver/devserver-stop.js.map +0 -1
  194. package/src/commands/mcp/tools/devserver/devserver-wait-for-build.d.ts +0 -41
  195. package/src/commands/mcp/tools/devserver/devserver-wait-for-build.js +0 -105
  196. package/src/commands/mcp/tools/devserver/devserver-wait-for-build.js.map +0 -1
  197. package/src/commands/mcp/tools/doc-search.d.ts +0 -21
  198. package/src/commands/mcp/tools/doc-search.js +0 -307
  199. package/src/commands/mcp/tools/doc-search.js.map +0 -1
  200. package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.d.ts +0 -17
  201. package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.js +0 -62
  202. package/src/commands/mcp/tools/onpush-zoneless-migration/analyze-for-unsupported-zone-uses.js.map +0 -1
  203. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.d.ts +0 -12
  204. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js +0 -70
  205. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-single-file.js.map +0 -1
  206. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.d.ts +0 -12
  207. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.js +0 -60
  208. package/src/commands/mcp/tools/onpush-zoneless-migration/migrate-test-file.js.map +0 -1
  209. package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.d.ts +0 -15
  210. package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js +0 -238
  211. package/src/commands/mcp/tools/onpush-zoneless-migration/prompts.js.map +0 -1
  212. package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.d.ts +0 -9
  213. package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.js +0 -14
  214. package/src/commands/mcp/tools/onpush-zoneless-migration/send-debug-message.js.map +0 -1
  215. package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.d.ts +0 -36
  216. package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.js +0 -135
  217. package/src/commands/mcp/tools/onpush-zoneless-migration/ts-utils.js.map +0 -1
  218. package/src/commands/mcp/tools/onpush-zoneless-migration/types.d.ts +0 -13
  219. package/src/commands/mcp/tools/onpush-zoneless-migration/types.js +0 -10
  220. package/src/commands/mcp/tools/onpush-zoneless-migration/types.js.map +0 -1
  221. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.d.ts +0 -16
  222. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js +0 -215
  223. package/src/commands/mcp/tools/onpush-zoneless-migration/zoneless-migration.js.map +0 -1
  224. package/src/commands/mcp/tools/projects.d.ts +0 -48
  225. package/src/commands/mcp/tools/projects.js +0 -541
  226. package/src/commands/mcp/tools/projects.js.map +0 -1
  227. package/src/commands/mcp/tools/run-target/build-target-strategy.d.ts +0 -14
  228. package/src/commands/mcp/tools/run-target/build-target-strategy.js +0 -53
  229. package/src/commands/mcp/tools/run-target/build-target-strategy.js.map +0 -1
  230. package/src/commands/mcp/tools/run-target/generic-target-strategy.d.ts +0 -14
  231. package/src/commands/mcp/tools/run-target/generic-target-strategy.js +0 -63
  232. package/src/commands/mcp/tools/run-target/generic-target-strategy.js.map +0 -1
  233. package/src/commands/mcp/tools/run-target/options-serializer.d.ts +0 -13
  234. package/src/commands/mcp/tools/run-target/options-serializer.js +0 -41
  235. package/src/commands/mcp/tools/run-target/options-serializer.js.map +0 -1
  236. package/src/commands/mcp/tools/run-target/run-target.d.ts +0 -34
  237. package/src/commands/mcp/tools/run-target/run-target.js +0 -69
  238. package/src/commands/mcp/tools/run-target/run-target.js.map +0 -1
  239. package/src/commands/mcp/tools/run-target/strategy.d.ts +0 -15
  240. package/src/commands/mcp/tools/run-target/strategy.js +0 -10
  241. package/src/commands/mcp/tools/run-target/strategy.js.map +0 -1
  242. package/src/commands/mcp/tools/run-target/types.d.ts +0 -39
  243. package/src/commands/mcp/tools/run-target/types.js +0 -41
  244. package/src/commands/mcp/tools/run-target/types.js.map +0 -1
  245. package/src/commands/mcp/tools/run-target/unit-test-strategy.d.ts +0 -14
  246. package/src/commands/mcp/tools/run-target/unit-test-strategy.js +0 -56
  247. package/src/commands/mcp/tools/run-target/unit-test-strategy.js.map +0 -1
  248. package/src/commands/mcp/tools/tool-registry.d.ts +0 -40
  249. package/src/commands/mcp/tools/tool-registry.js +0 -40
  250. package/src/commands/mcp/tools/tool-registry.js.map +0 -1
  251. package/src/commands/mcp/utils.d.ts +0 -25
  252. package/src/commands/mcp/utils.js +0 -44
  253. package/src/commands/mcp/utils.js.map +0 -1
  254. package/src/commands/mcp/workspace-utils.d.ts +0 -55
  255. package/src/commands/mcp/workspace-utils.js +0 -181
  256. package/src/commands/mcp/workspace-utils.js.map +0 -1
  257. package/src/commands/new/cli.d.ts +0 -27
  258. package/src/commands/new/cli.js +0 -76
  259. package/src/commands/new/cli.js.map +0 -1
  260. package/src/commands/new/long-description.md +0 -15
  261. package/src/commands/run/cli.d.ts +0 -25
  262. package/src/commands/run/cli.js +0 -89
  263. package/src/commands/run/cli.js.map +0 -1
  264. package/src/commands/run/long-description.md +0 -10
  265. package/src/commands/serve/cli.d.ts +0 -16
  266. package/src/commands/serve/cli.js +0 -20
  267. package/src/commands/serve/cli.js.map +0 -1
  268. package/src/commands/test/cli.d.ts +0 -16
  269. package/src/commands/test/cli.js +0 -21
  270. package/src/commands/test/cli.js.map +0 -1
  271. package/src/commands/test/long-description.md +0 -2
  272. package/src/commands/update/cli.d.ts +0 -50
  273. package/src/commands/update/cli.js +0 -586
  274. package/src/commands/update/cli.js.map +0 -1
  275. package/src/commands/update/long-description.md +0 -22
  276. package/src/commands/update/update-resolver.d.ts +0 -75
  277. package/src/commands/update/update-resolver.js +0 -918
  278. package/src/commands/update/update-resolver.js.map +0 -1
  279. package/src/commands/update/utilities/cli-version.d.ts +0 -48
  280. package/src/commands/update/utilities/cli-version.js +0 -196
  281. package/src/commands/update/utilities/cli-version.js.map +0 -1
  282. package/src/commands/update/utilities/constants.d.ts +0 -12
  283. package/src/commands/update/utilities/constants.js +0 -16
  284. package/src/commands/update/utilities/constants.js.map +0 -1
  285. package/src/commands/update/utilities/git.d.ts +0 -36
  286. package/src/commands/update/utilities/git.js +0 -148
  287. package/src/commands/update/utilities/git.js.map +0 -1
  288. package/src/commands/update/utilities/migration.d.ts +0 -32
  289. package/src/commands/update/utilities/migration.js +0 -271
  290. package/src/commands/update/utilities/migration.js.map +0 -1
  291. package/src/commands/version/cli.d.ts +0 -36
  292. package/src/commands/version/cli.js +0 -117
  293. package/src/commands/version/cli.js.map +0 -1
  294. package/src/commands/version/version-info.d.ts +0 -46
  295. package/src/commands/version/version-info.js +0 -101
  296. package/src/commands/version/version-info.js.map +0 -1
  297. package/src/package-managers/discovery.d.ts +0 -23
  298. package/src/package-managers/discovery.js +0 -104
  299. package/src/package-managers/discovery.js.map +0 -1
  300. package/src/package-managers/error.d.ts +0 -43
  301. package/src/package-managers/error.js +0 -41
  302. package/src/package-managers/error.js.map +0 -1
  303. package/src/package-managers/factory.d.ts +0 -30
  304. package/src/package-managers/factory.js +0 -137
  305. package/src/package-managers/factory.js.map +0 -1
  306. package/src/package-managers/host.d.ts +0 -86
  307. package/src/package-managers/host.js +0 -91
  308. package/src/package-managers/host.js.map +0 -1
  309. package/src/package-managers/index.d.ts +0 -13
  310. package/src/package-managers/index.js +0 -17
  311. package/src/package-managers/index.js.map +0 -1
  312. package/src/package-managers/logger.d.ts +0 -27
  313. package/src/package-managers/logger.js +0 -10
  314. package/src/package-managers/logger.js.map +0 -1
  315. package/src/package-managers/package-manager-descriptor.d.ts +0 -269
  316. package/src/package-managers/package-manager-descriptor.js +0 -210
  317. package/src/package-managers/package-manager-descriptor.js.map +0 -1
  318. package/src/package-managers/package-manager.d.ts +0 -200
  319. package/src/package-managers/package-manager.js +0 -720
  320. package/src/package-managers/package-manager.js.map +0 -1
  321. package/src/package-managers/package-metadata.d.ts +0 -91
  322. package/src/package-managers/package-metadata.js +0 -10
  323. package/src/package-managers/package-metadata.js.map +0 -1
  324. package/src/package-managers/package-tree.d.ts +0 -23
  325. package/src/package-managers/package-tree.js +0 -10
  326. package/src/package-managers/package-tree.js.map +0 -1
  327. package/src/package-managers/parsers.d.ts +0 -167
  328. package/src/package-managers/parsers.js +0 -674
  329. package/src/package-managers/parsers.js.map +0 -1
  330. package/src/utilities/color.d.ts +0 -23
  331. package/src/utilities/color.js +0 -41
  332. package/src/utilities/color.js.map +0 -1
  333. package/src/utilities/completion.d.ts +0 -30
  334. package/src/utilities/completion.js +0 -270
  335. package/src/utilities/completion.js.map +0 -1
  336. package/src/utilities/config.d.ts +0 -38
  337. package/src/utilities/config.js +0 -368
  338. package/src/utilities/config.js.map +0 -1
  339. package/src/utilities/environment-options.d.ts +0 -25
  340. package/src/utilities/environment-options.js +0 -60
  341. package/src/utilities/environment-options.js.map +0 -1
  342. package/src/utilities/eol.d.ts +0 -20
  343. package/src/utilities/eol.js +0 -35
  344. package/src/utilities/eol.js.map +0 -1
  345. package/src/utilities/error.d.ts +0 -18
  346. package/src/utilities/error.js +0 -41
  347. package/src/utilities/error.js.map +0 -1
  348. package/src/utilities/find-up.d.ts +0 -21
  349. package/src/utilities/find-up.js +0 -67
  350. package/src/utilities/find-up.js.map +0 -1
  351. package/src/utilities/json-file.d.ts +0 -24
  352. package/src/utilities/json-file.js +0 -179
  353. package/src/utilities/json-file.js.map +0 -1
  354. package/src/utilities/log-file.d.ts +0 -13
  355. package/src/utilities/log-file.js +0 -28
  356. package/src/utilities/log-file.js.map +0 -1
  357. package/src/utilities/memoize.d.ts +0 -15
  358. package/src/utilities/memoize.js +0 -64
  359. package/src/utilities/memoize.js.map +0 -1
  360. package/src/utilities/node-version.d.ts +0 -21
  361. package/src/utilities/node-version.js +0 -65
  362. package/src/utilities/node-version.js.map +0 -1
  363. package/src/utilities/prettier.d.ts +0 -19
  364. package/src/utilities/prettier.js +0 -105
  365. package/src/utilities/prettier.js.map +0 -1
  366. package/src/utilities/project.d.ts +0 -8
  367. package/src/utilities/project.js +0 -81
  368. package/src/utilities/project.js.map +0 -1
  369. package/src/utilities/prompt.d.ts +0 -17
  370. package/src/utilities/prompt.js +0 -90
  371. package/src/utilities/prompt.js.map +0 -1
  372. package/src/utilities/tty.d.ts +0 -16
  373. package/src/utilities/tty.js +0 -23
  374. package/src/utilities/tty.js.map +0 -1
  375. package/src/utilities/version.d.ts +0 -16
  376. package/src/utilities/version.js +0 -26
  377. package/src/utilities/version.js.map +0 -1
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { MissingTargetChoice } from '../../command-builder/architect-base-command-module';
9
- import { ArchitectCommandModule } from '../../command-builder/architect-command-module';
10
- import { CommandModuleImplementation } from '../../command-builder/command-module';
11
- export default class LintCommandModule extends ArchitectCommandModule implements CommandModuleImplementation {
12
- missingTargetChoices: MissingTargetChoice[];
13
- multiTarget: boolean;
14
- command: string;
15
- longDescriptionPath: string;
16
- describe: string;
17
- }
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const node_path_1 = require("node:path");
11
- const architect_command_module_1 = require("../../command-builder/architect-command-module");
12
- class LintCommandModule extends architect_command_module_1.ArchitectCommandModule {
13
- missingTargetChoices = [
14
- {
15
- name: 'ESLint',
16
- value: 'angular-eslint',
17
- },
18
- ];
19
- multiTarget = true;
20
- command = 'lint [project]';
21
- longDescriptionPath = (0, node_path_1.join)(__dirname, 'long-description.md');
22
- describe = 'Runs linting tools on Angular application code in a given project folder.';
23
- }
24
- exports.default = LintCommandModule;
25
- //# sourceMappingURL=cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,yCAAiC;AAEjC,6FAAwF;AAGxF,MAAqB,iBACnB,SAAQ,iDAAsB;IAGrB,oBAAoB,GAA0B;QACrD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,gBAAgB;SACxB;KACF,CAAC;IAEF,WAAW,GAAG,IAAI,CAAC;IACnB,OAAO,GAAG,gBAAgB,CAAC;IAC3B,mBAAmB,GAAG,IAAA,gBAAI,EAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;IAC7D,QAAQ,GAAG,2EAA2E,CAAC;CACxF;AAfD,oCAeC"}
@@ -1,20 +0,0 @@
1
- The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.
2
- When a project name is not supplied, executes the `lint` builder for all projects.
3
-
4
- To use the `ng lint` command, use `ng add` to add a package that implements linting capabilities. Adding the package automatically updates your workspace configuration, adding a lint [CLI builder](tools/cli/cli-builder).
5
- For example:
6
-
7
- ```json
8
- "projects": {
9
- "my-project": {
10
- ...
11
- "architect": {
12
- ...
13
- "lint": {
14
- "builder": "@angular-eslint/builder:lint",
15
- "options": {}
16
- }
17
- }
18
- }
19
- }
20
- ```
@@ -1,17 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { Argv } from 'yargs';
9
- import { CommandModule, CommandModuleImplementation } from '../../command-builder/command-module';
10
- export default class AwesomeCommandModule extends CommandModule implements CommandModuleImplementation {
11
- command: string;
12
- describe: false;
13
- deprecated: boolean;
14
- longDescriptionPath?: string | undefined;
15
- builder(localYargs: Argv): Argv;
16
- run(): void;
17
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const command_module_1 = require("../../command-builder/command-module");
11
- const color_1 = require("../../utilities/color");
12
- class AwesomeCommandModule extends command_module_1.CommandModule {
13
- command = 'make-this-awesome';
14
- describe = false;
15
- deprecated = false;
16
- longDescriptionPath;
17
- builder(localYargs) {
18
- return localYargs;
19
- }
20
- run() {
21
- const pickOne = (of) => of[Math.floor(Math.random() * of.length)];
22
- const phrase = pickOne([
23
- `You're on it, there's nothing for me to do!`,
24
- `Let's take a look... nope, it's all good!`,
25
- `You're doing fine.`,
26
- `You're already doing great.`,
27
- `Nothing to do; already awesome. Exiting.`,
28
- `Error 418: As Awesome As Can Get.`,
29
- `I spy with my little eye a great developer!`,
30
- `Noop... already awesome.`,
31
- ]);
32
- this.context.logger.info(color_1.colors.green(phrase));
33
- }
34
- }
35
- exports.default = AwesomeCommandModule;
36
- //# sourceMappingURL=cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAGH,yEAAkG;AAClG,iDAA+C;AAE/C,MAAqB,oBACnB,SAAQ,8BAAa;IAGrB,OAAO,GAAG,mBAAmB,CAAC;IAC9B,QAAQ,GAAG,KAAc,CAAC;IAC1B,UAAU,GAAG,KAAK,CAAC;IACnB,mBAAmB,CAAsB;IAEzC,OAAO,CAAC,UAAgB;QACtB,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,GAAG;QACD,MAAM,OAAO,GAAG,CAAC,EAAY,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;QAE5E,MAAM,MAAM,GAAG,OAAO,CAAC;YACrB,6CAA6C;YAC7C,2CAA2C;YAC3C,oBAAoB;YACpB,6BAA6B;YAC7B,0CAA0C;YAC1C,mCAAmC;YACnC,6CAA6C;YAC7C,0BAA0B;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,cAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACjD,CAAC;CACF;AA7BD,uCA6BC"}
@@ -1,21 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import type { Argv } from 'yargs';
9
- import { CommandModule, type CommandModuleImplementation } from '../../command-builder/command-module';
10
- export default class McpCommandModule extends CommandModule implements CommandModuleImplementation {
11
- command: string;
12
- describe: false;
13
- longDescriptionPath: undefined;
14
- builder(localYargs: Argv): Argv;
15
- run(options: {
16
- root: string[] | undefined;
17
- readOnly: boolean;
18
- localOnly: boolean;
19
- experimentalTool: string[] | undefined;
20
- }): Promise<void>;
21
- }
@@ -1,74 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const stdio_1 = require("@modelcontextprotocol/server/stdio");
11
- const command_module_1 = require("../../command-builder/command-module");
12
- const tty_1 = require("../../utilities/tty");
13
- const mcp_server_1 = require("./mcp-server");
14
- const INTERACTIVE_MESSAGE = `
15
- To start using the Angular CLI MCP Server, add this configuration to your host:
16
-
17
- {
18
- "mcpServers": {
19
- "angular-cli": {
20
- "command": "npx",
21
- "args": ["-y", "@angular/cli", "mcp"]
22
- }
23
- }
24
- }
25
-
26
- Exact configuration may differ depending on the host.
27
-
28
- For more information and documentation, visit: https://angular.dev/ai/mcp
29
- `;
30
- class McpCommandModule extends command_module_1.CommandModule {
31
- command = 'mcp';
32
- describe = false;
33
- longDescriptionPath = undefined;
34
- builder(localYargs) {
35
- return localYargs
36
- .option('root', {
37
- type: 'string',
38
- array: true,
39
- describe: 'Allowed root directory paths for filesystem access and workspace discovery. Can be specified multiple times.',
40
- })
41
- .option('read-only', {
42
- type: 'boolean',
43
- default: false,
44
- describe: 'Only register read-only tools.',
45
- })
46
- .option('local-only', {
47
- type: 'boolean',
48
- default: false,
49
- describe: 'Only register tools that do not require internet access.',
50
- })
51
- .option('experimental-tool', {
52
- type: 'string',
53
- alias: 'E',
54
- array: true,
55
- describe: 'Enable an experimental tool.',
56
- hidden: true,
57
- });
58
- }
59
- async run(options) {
60
- if ((0, tty_1.isTTY)()) {
61
- this.context.logger.info(INTERACTIVE_MESSAGE);
62
- return;
63
- }
64
- (0, stdio_1.serveStdio)(() => (0, mcp_server_1.createMcpServer)({
65
- workspace: this.context.workspace,
66
- readOnly: options.readOnly,
67
- localOnly: options.localOnly,
68
- experimentalTools: options.experimentalTool,
69
- roots: options.root,
70
- }, this.context.logger));
71
- }
72
- }
73
- exports.default = McpCommandModule;
74
- //# sourceMappingURL=cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["cli.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAEH,8DAAgE;AAEhE,yEAG8C;AAC9C,6CAA4C;AAC5C,6CAA+C;AAE/C,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;CAe3B,CAAC;AAEF,MAAqB,gBAAiB,SAAQ,8BAAa;IACzD,OAAO,GAAG,KAAK,CAAC;IAChB,QAAQ,GAAG,KAAc,CAAC;IAC1B,mBAAmB,GAAG,SAAS,CAAC;IAEhC,OAAO,CAAC,UAAgB;QACtB,OAAO,UAAU;aACd,MAAM,CAAC,MAAM,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,IAAI;YACX,QAAQ,EACN,8GAA8G;SACjH,CAAC;aACD,MAAM,CAAC,WAAW,EAAE;YACnB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,gCAAgC;SAC3C,CAAC;aACD,MAAM,CAAC,YAAY,EAAE;YACpB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,0DAA0D;SACrE,CAAC;aACD,MAAM,CAAC,mBAAmB,EAAE;YAC3B,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,8BAA8B;YACxC,MAAM,EAAE,IAAI;SACb,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,OAKT;QACC,IAAI,IAAA,WAAK,GAAE,EAAE,CAAC;YACZ,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;YAE9C,OAAO;QACT,CAAC;QAED,IAAA,kBAAU,EAAC,GAAG,EAAE,CACd,IAAA,4BAAe,EACb;YACE,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS;YACjC,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,iBAAiB,EAAE,OAAO,CAAC,gBAAgB;YAC3C,KAAK,EAAE,OAAO,CAAC,IAAI;SACpB,EACD,IAAI,CAAC,OAAO,CAAC,MAAM,CACpB,CACF,CAAC;IACJ,CAAC;CACF;AAzDD,mCAyDC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- export declare const k1 = "@angular/cli";
9
- export declare const at = "gv2tkIHTOiWtI6Su96LXLQ==";
10
- export declare const iv: Buffer<ArrayBuffer>;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.iv = exports.at = exports.k1 = void 0;
11
- exports.k1 = '@angular/cli';
12
- exports.at = 'gv2tkIHTOiWtI6Su96LXLQ==';
13
- exports.iv = Buffer.from([
14
- 0x97, 0xf4, 0x62, 0x95, 0x3e, 0x12, 0x76, 0x84, 0x8a, 0x09, 0x4a, 0xc9, 0xeb, 0xa2, 0x84, 0x69,
15
- ]);
16
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEU,QAAA,EAAE,GAAG,cAAc,CAAC;AACpB,QAAA,EAAE,GAAG,0BAA0B,CAAC;AAChC,QAAA,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC;IAC5B,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;CAC/F,CAAC,CAAC"}
@@ -1,85 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { type Host } from './host';
9
- export type BuildStatus = 'success' | 'failure' | 'unknown';
10
- /**
11
- * An Angular development server managed by the MCP server.
12
- */
13
- export interface Devserver {
14
- /**
15
- * Launches the dev server and returns immediately.
16
- *
17
- * Throws if this server is already running.
18
- */
19
- start(): void;
20
- /**
21
- * If the dev server is running, stops it.
22
- */
23
- stop(): void;
24
- /**
25
- * Gets all the server logs so far (stdout + stderr).
26
- */
27
- getServerLogs(): string[];
28
- /**
29
- * Gets all the server logs from the latest build.
30
- */
31
- getMostRecentBuild(): {
32
- status: BuildStatus;
33
- logs: string[];
34
- };
35
- /**
36
- * Whether the dev server is currently being built, or is awaiting further changes.
37
- */
38
- isBuilding(): boolean;
39
- /**
40
- * `ng serve` port to use.
41
- */
42
- port: number;
43
- /**
44
- * The workspace path for this server.
45
- */
46
- workspacePath: string;
47
- /**
48
- * The project name for this server.
49
- */
50
- project: string;
51
- }
52
- /**
53
- * A local Angular development server managed by the MCP server.
54
- */
55
- export declare class LocalDevserver implements Devserver {
56
- readonly host: Host;
57
- readonly port: number;
58
- readonly workspacePath: string;
59
- readonly project: string;
60
- private devserverProcess;
61
- private serverLogs;
62
- private buildInProgress;
63
- private latestBuildLogStartIndex?;
64
- private latestBuildStatus;
65
- constructor({ host, port, workspacePath, project, }: {
66
- host: Host;
67
- port: number;
68
- workspacePath: string;
69
- project: string;
70
- });
71
- start(): void;
72
- private addLog;
73
- stop(): void;
74
- getServerLogs(): string[];
75
- getMostRecentBuild(): {
76
- status: BuildStatus;
77
- logs: string[];
78
- };
79
- isBuilding(): boolean;
80
- }
81
- export declare function getDevserverKey(workspacePath: string, projectName: string): string;
82
- export declare function createDevServerNotFoundError(devservers: Map<string, {
83
- project: string;
84
- workspacePath: string;
85
- }>): Error;
@@ -1,109 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.LocalDevserver = void 0;
11
- exports.getDevserverKey = getDevserverKey;
12
- exports.createDevServerNotFoundError = createDevServerNotFoundError;
13
- const host_1 = require("./host");
14
- // Log messages that we want to catch to identify the build status.
15
- const BUILD_SUCCEEDED_MESSAGE = 'Application bundle generation complete.';
16
- const BUILD_FAILED_MESSAGE = 'Application bundle generation failed.';
17
- const WAITING_FOR_CHANGES_MESSAGE = 'Watch mode enabled. Watching for file changes...';
18
- const CHANGES_DETECTED_START_MESSAGE = '❯ Changes detected. Rebuilding...';
19
- const CHANGES_DETECTED_SUCCESS_MESSAGE = '✔ Changes detected. Rebuilding...';
20
- const BUILD_START_MESSAGES = [CHANGES_DETECTED_START_MESSAGE];
21
- const BUILD_END_MESSAGES = [
22
- BUILD_SUCCEEDED_MESSAGE,
23
- BUILD_FAILED_MESSAGE,
24
- WAITING_FOR_CHANGES_MESSAGE,
25
- CHANGES_DETECTED_SUCCESS_MESSAGE,
26
- ];
27
- /**
28
- * A local Angular development server managed by the MCP server.
29
- */
30
- class LocalDevserver {
31
- host;
32
- port;
33
- workspacePath;
34
- project;
35
- devserverProcess = null;
36
- serverLogs = [];
37
- buildInProgress = false;
38
- latestBuildLogStartIndex = undefined;
39
- latestBuildStatus = 'unknown';
40
- constructor({ host, port, workspacePath, project, }) {
41
- this.host = host;
42
- this.port = port;
43
- this.workspacePath = workspacePath;
44
- this.project = project;
45
- }
46
- start() {
47
- if (this.devserverProcess) {
48
- throw Error('Dev server already started.');
49
- }
50
- const args = ['serve'];
51
- if (this.project) {
52
- args.push(this.project);
53
- }
54
- args.push(`--port=${this.port}`);
55
- this.devserverProcess = this.host.startNgProcess(args, {
56
- stdio: 'pipe',
57
- cwd: this.workspacePath,
58
- });
59
- (0, host_1.processStreamLines)(this.devserverProcess.stdout, (line) => this.addLog(line));
60
- (0, host_1.processStreamLines)(this.devserverProcess.stderr, (line) => this.addLog(line));
61
- this.devserverProcess.on('close', () => {
62
- this.stop();
63
- });
64
- this.buildInProgress = true;
65
- }
66
- addLog(log) {
67
- this.serverLogs.push(log);
68
- if (BUILD_START_MESSAGES.some((message) => log.startsWith(message))) {
69
- this.buildInProgress = true;
70
- this.latestBuildLogStartIndex = this.serverLogs.length - 1;
71
- }
72
- else if (BUILD_END_MESSAGES.some((message) => log.startsWith(message))) {
73
- this.buildInProgress = false;
74
- // We consider everything except a specific failure message to be a success.
75
- this.latestBuildStatus = log.startsWith(BUILD_FAILED_MESSAGE) ? 'failure' : 'success';
76
- }
77
- }
78
- stop() {
79
- this.devserverProcess?.kill();
80
- this.devserverProcess = null;
81
- }
82
- getServerLogs() {
83
- return [...this.serverLogs];
84
- }
85
- getMostRecentBuild() {
86
- return {
87
- status: this.latestBuildStatus,
88
- logs: this.serverLogs.slice(this.latestBuildLogStartIndex),
89
- };
90
- }
91
- isBuilding() {
92
- return this.buildInProgress;
93
- }
94
- }
95
- exports.LocalDevserver = LocalDevserver;
96
- function getDevserverKey(workspacePath, projectName) {
97
- return `${workspacePath}:${projectName}`;
98
- }
99
- function createDevServerNotFoundError(devservers) {
100
- if (devservers.size === 0) {
101
- return new Error('No development servers are currently running.');
102
- }
103
- const runningServers = Array.from(devservers.values())
104
- .map((server) => `- Project '${server.project}' in workspace path '${server.workspacePath}'`)
105
- .join('\n');
106
- return new Error(`Dev server not found. Currently running servers:\n${runningServers}\n` +
107
- 'Please provide the correct workspace and project arguments.');
108
- }
109
- //# sourceMappingURL=devserver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devserver.js","sourceRoot":"","sources":["devserver.ts"],"names":[],"mappings":"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"}
@@ -1,103 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { ChildProcess } from 'node:child_process';
9
- import { Stats } from 'node:fs';
10
- /**
11
- * An error thrown when a command fails to execute.
12
- */
13
- export declare class CommandError extends Error {
14
- readonly logs: string[];
15
- readonly code: number | null;
16
- constructor(message: string, logs: string[], code: number | null);
17
- }
18
- /**
19
- * An abstraction layer for operating-system or file-system operations.
20
- */
21
- export interface Host {
22
- /**
23
- * Gets the stats of a file or directory.
24
- * @param path The path to the file or directory.
25
- * @returns A promise that resolves to the stats.
26
- */
27
- stat(path: string): Promise<Stats>;
28
- /**
29
- * Checks if a path exists on the file system.
30
- * @param path The path to check.
31
- * @returns A boolean indicating whether the path exists.
32
- */
33
- existsSync(path: string): boolean;
34
- /**
35
- * Reads a file and returns its content.
36
- * @param path The path to the file.
37
- * @param encoding The encoding to use.
38
- * @returns A promise that resolves to the file content.
39
- */
40
- readFile(path: string, encoding: BufferEncoding): Promise<string>;
41
- /**
42
- * Finds files matching a glob pattern.
43
- * @param pattern The glob pattern.
44
- * @param options Options for the glob search.
45
- * @returns An async iterable of file entries.
46
- */
47
- glob(pattern: string, options: {
48
- cwd: string;
49
- }): AsyncIterable<{
50
- name: string;
51
- parentPath: string;
52
- isFile(): boolean;
53
- }>;
54
- /**
55
- * Spawns a child process and returns a promise that resolves with the process's
56
- * output or rejects with a structured error.
57
- * @param args The arguments to pass to the command.
58
- * @param options Options for the child process.
59
- * @returns A promise that resolves with the standard output and standard error of the command.
60
- */
61
- executeNgCommand(args: readonly string[], options?: {
62
- timeout?: number;
63
- stdio?: 'pipe' | 'ignore';
64
- cwd?: string;
65
- env?: Record<string, string>;
66
- }): Promise<{
67
- logs: string[];
68
- }>;
69
- /**
70
- * Spawns a long-running child process and returns the `ChildProcess` object.
71
- * @param args The arguments to pass to the command.
72
- * @param options Options for the child process.
73
- * @returns The spawned `ChildProcess` instance.
74
- */
75
- startNgProcess(args: readonly string[], options?: {
76
- stdio?: 'pipe' | 'ignore';
77
- cwd?: string;
78
- env?: Record<string, string>;
79
- }): ChildProcess;
80
- /**
81
- * Finds an available TCP port on the system.
82
- */
83
- getAvailablePort(): Promise<number>;
84
- /**
85
- * Checks whether a TCP port is available on the system.
86
- */
87
- isPortAvailable(port: number): Promise<boolean>;
88
- /**
89
- * Sets the allowed roots for this host.
90
- */
91
- setRoots(roots: string[]): void;
92
- }
93
- /**
94
- * A concrete implementation of the `Host` interface that runs on a local workspace.
95
- */
96
- export declare const LocalWorkspaceHost: Host;
97
- export declare function createRootRestrictedHost(baseHost: Host, initialRoots?: string[]): Host;
98
- /**
99
- * Binds a readline interface to the given stream to process each line.
100
- * Sanitizes lines by removing VT/ANSI control characters, trimming trailing whitespace,
101
- * and preserving leading indentation.
102
- */
103
- export declare function processStreamLines(stream: NodeJS.ReadableStream | undefined | null, lineCallback: (line: string) => void): void;