@uapkg/cli 1.3.0 → 1.3.1

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 (412) hide show
  1. package/dist/app/CompositionRoot.d.ts +36 -33
  2. package/dist/app/CompositionRoot.d.ts.map +1 -1
  3. package/dist/app/CompositionRoot.js +91 -109
  4. package/dist/app/CompositionRoot.js.map +1 -1
  5. package/dist/app/UAPKGApplication.d.ts +6 -3
  6. package/dist/app/UAPKGApplication.d.ts.map +1 -1
  7. package/dist/app/UAPKGApplication.js +155 -169
  8. package/dist/app/UAPKGApplication.js.map +1 -1
  9. package/dist/build/BuildMetadata.d.ts +9 -6
  10. package/dist/build/BuildMetadata.d.ts.map +1 -1
  11. package/dist/build/BuildMetadata.js +2 -2
  12. package/dist/cli/UAPKGCommandLine.d.ts +259 -257
  13. package/dist/cli/UAPKGCommandLine.d.ts.map +1 -1
  14. package/dist/cli/UAPKGCommandLine.js +248 -239
  15. package/dist/cli/UAPKGCommandLine.js.map +1 -1
  16. package/dist/cli/parseCommandLine.d.ts +5 -1
  17. package/dist/cli/parseCommandLine.d.ts.map +1 -1
  18. package/dist/cli/parseCommandLine.js +8 -3
  19. package/dist/cli/parseCommandLine.js.map +1 -1
  20. package/dist/cli/parsing/UAPKGCommandLineParser.d.ts +9 -6
  21. package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +1 -1
  22. package/dist/cli/parsing/UAPKGCommandLineParser.js +23 -31
  23. package/dist/cli/parsing/UAPKGCommandLineParser.js.map +1 -1
  24. package/dist/cli/parsing/UAPKGParserRegistry.d.ts +12 -9
  25. package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +1 -1
  26. package/dist/cli/parsing/UAPKGParserRegistry.js +53 -50
  27. package/dist/cli/parsing/UAPKGParserRegistry.js.map +1 -1
  28. package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts +9 -6
  29. package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +1 -1
  30. package/dist/cli/parsing/contracts/UAPKGCommandModule.js +1 -2
  31. package/dist/cli/parsing/modules/AddCommandModule.d.ts +8 -5
  32. package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +1 -1
  33. package/dist/cli/parsing/modules/AddCommandModule.js +49 -36
  34. package/dist/cli/parsing/modules/AddCommandModule.js.map +1 -1
  35. package/dist/cli/parsing/modules/ConfigCommandModule.d.ts +8 -5
  36. package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +1 -1
  37. package/dist/cli/parsing/modules/ConfigCommandModule.js +87 -83
  38. package/dist/cli/parsing/modules/ConfigCommandModule.js.map +1 -1
  39. package/dist/cli/parsing/modules/InitCommandModule.d.ts +8 -5
  40. package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +1 -1
  41. package/dist/cli/parsing/modules/InitCommandModule.js +25 -22
  42. package/dist/cli/parsing/modules/InitCommandModule.js.map +1 -1
  43. package/dist/cli/parsing/modules/InstallCommandModule.d.ts +8 -5
  44. package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +1 -1
  45. package/dist/cli/parsing/modules/InstallCommandModule.js +36 -28
  46. package/dist/cli/parsing/modules/InstallCommandModule.js.map +1 -1
  47. package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts +8 -5
  48. package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +1 -1
  49. package/dist/cli/parsing/modules/LifecycleCommandModule.js +78 -50
  50. package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +1 -1
  51. package/dist/cli/parsing/modules/ListCommandModule.d.ts +8 -5
  52. package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +1 -1
  53. package/dist/cli/parsing/modules/ListCommandModule.js +26 -15
  54. package/dist/cli/parsing/modules/ListCommandModule.js.map +1 -1
  55. package/dist/cli/parsing/modules/LoginCommandModule.d.ts +8 -5
  56. package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +1 -1
  57. package/dist/cli/parsing/modules/LoginCommandModule.js +34 -33
  58. package/dist/cli/parsing/modules/LoginCommandModule.js.map +1 -1
  59. package/dist/cli/parsing/modules/LogoutCommandModule.d.ts +8 -5
  60. package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +1 -1
  61. package/dist/cli/parsing/modules/LogoutCommandModule.js +30 -28
  62. package/dist/cli/parsing/modules/LogoutCommandModule.js.map +1 -1
  63. package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts +8 -5
  64. package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +1 -1
  65. package/dist/cli/parsing/modules/OutdatedCommandModule.js +21 -16
  66. package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +1 -1
  67. package/dist/cli/parsing/modules/PackCommandModule.d.ts +8 -5
  68. package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +1 -1
  69. package/dist/cli/parsing/modules/PackCommandModule.js +30 -28
  70. package/dist/cli/parsing/modules/PackCommandModule.js.map +1 -1
  71. package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts +8 -5
  72. package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +1 -1
  73. package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +14 -11
  74. package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +1 -1
  75. package/dist/cli/parsing/modules/PublishCommandModule.d.ts +8 -5
  76. package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +1 -1
  77. package/dist/cli/parsing/modules/PublishCommandModule.js +63 -47
  78. package/dist/cli/parsing/modules/PublishCommandModule.js.map +1 -1
  79. package/dist/cli/parsing/modules/RegistryCommandModule.d.ts +8 -5
  80. package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +1 -1
  81. package/dist/cli/parsing/modules/RegistryCommandModule.js +117 -120
  82. package/dist/cli/parsing/modules/RegistryCommandModule.js.map +1 -1
  83. package/dist/cli/parsing/modules/RemoveCommandModule.d.ts +8 -5
  84. package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +1 -1
  85. package/dist/cli/parsing/modules/RemoveCommandModule.js +25 -14
  86. package/dist/cli/parsing/modules/RemoveCommandModule.js.map +1 -1
  87. package/dist/cli/parsing/modules/RequestsCommandModule.d.ts +8 -5
  88. package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +1 -1
  89. package/dist/cli/parsing/modules/RequestsCommandModule.js +56 -60
  90. package/dist/cli/parsing/modules/RequestsCommandModule.js.map +1 -1
  91. package/dist/cli/parsing/modules/UpdateCommandModule.d.ts +8 -5
  92. package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +1 -1
  93. package/dist/cli/parsing/modules/UpdateCommandModule.js +38 -25
  94. package/dist/cli/parsing/modules/UpdateCommandModule.js.map +1 -1
  95. package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts +8 -5
  96. package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +1 -1
  97. package/dist/cli/parsing/modules/WhoamiCommandModule.js +30 -28
  98. package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +1 -1
  99. package/dist/cli/parsing/modules/WhyCommandModule.d.ts +8 -5
  100. package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +1 -1
  101. package/dist/cli/parsing/modules/WhyCommandModule.js +25 -14
  102. package/dist/cli/parsing/modules/WhyCommandModule.js.map +1 -1
  103. package/dist/cli/parsing/modules/sharedOptions.d.ts +8 -5
  104. package/dist/cli/parsing/modules/sharedOptions.d.ts.map +1 -1
  105. package/dist/cli/parsing/modules/sharedOptions.js +18 -23
  106. package/dist/cli/parsing/modules/sharedOptions.js.map +1 -1
  107. package/dist/cli/runUAPKGCLI.d.ts +4 -1
  108. package/dist/cli/runUAPKGCLI.d.ts.map +1 -1
  109. package/dist/cli/runUAPKGCLI.js +10 -5
  110. package/dist/cli/runUAPKGCLI.js.map +1 -1
  111. package/dist/cli-bootstrap.d.ts +1 -2
  112. package/dist/cli-bootstrap.js +15 -12
  113. package/dist/cli-bootstrap.js.map +1 -1
  114. package/dist/commands/AddCommand.d.ts +19 -16
  115. package/dist/commands/AddCommand.d.ts.map +1 -1
  116. package/dist/commands/AddCommand.js +49 -53
  117. package/dist/commands/AddCommand.js.map +1 -1
  118. package/dist/commands/Command.d.ts +5 -2
  119. package/dist/commands/Command.d.ts.map +1 -1
  120. package/dist/commands/Command.js +1 -2
  121. package/dist/commands/ConfigCommand.d.ts +28 -25
  122. package/dist/commands/ConfigCommand.d.ts.map +1 -1
  123. package/dist/commands/ConfigCommand.js +165 -186
  124. package/dist/commands/ConfigCommand.js.map +1 -1
  125. package/dist/commands/InitCommand.d.ts +19 -16
  126. package/dist/commands/InitCommand.d.ts.map +1 -1
  127. package/dist/commands/InitCommand.js +65 -60
  128. package/dist/commands/InitCommand.js.map +1 -1
  129. package/dist/commands/InstallCommand.d.ts +16 -13
  130. package/dist/commands/InstallCommand.d.ts.map +1 -1
  131. package/dist/commands/InstallCommand.js +118 -110
  132. package/dist/commands/InstallCommand.js.map +1 -1
  133. package/dist/commands/ListCommand.d.ts +13 -10
  134. package/dist/commands/ListCommand.d.ts.map +1 -1
  135. package/dist/commands/ListCommand.js +76 -81
  136. package/dist/commands/ListCommand.js.map +1 -1
  137. package/dist/commands/LoginCommand.d.ts +17 -14
  138. package/dist/commands/LoginCommand.d.ts.map +1 -1
  139. package/dist/commands/LoginCommand.js +66 -72
  140. package/dist/commands/LoginCommand.js.map +1 -1
  141. package/dist/commands/LogoutCommand.d.ts +15 -12
  142. package/dist/commands/LogoutCommand.d.ts.map +1 -1
  143. package/dist/commands/LogoutCommand.js +36 -37
  144. package/dist/commands/LogoutCommand.js.map +1 -1
  145. package/dist/commands/OutdatedCommand.d.ts +12 -9
  146. package/dist/commands/OutdatedCommand.d.ts.map +1 -1
  147. package/dist/commands/OutdatedCommand.js +41 -40
  148. package/dist/commands/OutdatedCommand.js.map +1 -1
  149. package/dist/commands/PackCommand.d.ts +13 -10
  150. package/dist/commands/PackCommand.d.ts.map +1 -1
  151. package/dist/commands/PackCommand.js +26 -21
  152. package/dist/commands/PackCommand.js.map +1 -1
  153. package/dist/commands/PackageLifecycleCommand.d.ts +23 -19
  154. package/dist/commands/PackageLifecycleCommand.d.ts.map +1 -1
  155. package/dist/commands/PackageLifecycleCommand.js +144 -138
  156. package/dist/commands/PackageLifecycleCommand.js.map +1 -1
  157. package/dist/commands/PostinstallCandidateBuilder.d.ts +11 -8
  158. package/dist/commands/PostinstallCandidateBuilder.d.ts.map +1 -1
  159. package/dist/commands/PostinstallCandidateBuilder.js +42 -42
  160. package/dist/commands/PostinstallCandidateBuilder.js.map +1 -1
  161. package/dist/commands/ProjectGetNameCommand.d.ts +10 -7
  162. package/dist/commands/ProjectGetNameCommand.d.ts.map +1 -1
  163. package/dist/commands/ProjectGetNameCommand.js +25 -25
  164. package/dist/commands/ProjectGetNameCommand.js.map +1 -1
  165. package/dist/commands/PublishCommand.d.ts +29 -23
  166. package/dist/commands/PublishCommand.d.ts.map +1 -1
  167. package/dist/commands/PublishCommand.js +243 -254
  168. package/dist/commands/PublishCommand.js.map +1 -1
  169. package/dist/commands/RegistryCommand.d.ts +38 -35
  170. package/dist/commands/RegistryCommand.d.ts.map +1 -1
  171. package/dist/commands/RegistryCommand.js +195 -223
  172. package/dist/commands/RegistryCommand.js.map +1 -1
  173. package/dist/commands/RemoveCommand.d.ts +14 -11
  174. package/dist/commands/RemoveCommand.d.ts.map +1 -1
  175. package/dist/commands/RemoveCommand.js +47 -54
  176. package/dist/commands/RemoveCommand.js.map +1 -1
  177. package/dist/commands/RequestsCommand.d.ts +21 -18
  178. package/dist/commands/RequestsCommand.d.ts.map +1 -1
  179. package/dist/commands/RequestsCommand.js +82 -95
  180. package/dist/commands/RequestsCommand.js.map +1 -1
  181. package/dist/commands/UpdateCommand.d.ts +29 -26
  182. package/dist/commands/UpdateCommand.d.ts.map +1 -1
  183. package/dist/commands/UpdateCommand.js +111 -111
  184. package/dist/commands/UpdateCommand.js.map +1 -1
  185. package/dist/commands/WhoamiCommand.d.ts +30 -27
  186. package/dist/commands/WhoamiCommand.d.ts.map +1 -1
  187. package/dist/commands/WhoamiCommand.js +63 -72
  188. package/dist/commands/WhoamiCommand.js.map +1 -1
  189. package/dist/commands/WhyCommand.d.ts +13 -10
  190. package/dist/commands/WhyCommand.d.ts.map +1 -1
  191. package/dist/commands/WhyCommand.js +45 -44
  192. package/dist/commands/WhyCommand.js.map +1 -1
  193. package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
  194. package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
  195. package/dist/commands/add/DependencyAddResolver.js +36 -36
  196. package/dist/commands/add/DependencyAddResolver.js.map +1 -1
  197. package/dist/control-plane/AccountManager.d.ts +96 -94
  198. package/dist/control-plane/AccountManager.d.ts.map +1 -1
  199. package/dist/control-plane/AccountManager.js +775 -967
  200. package/dist/control-plane/AccountManager.js.map +1 -1
  201. package/dist/control-plane/ArtifactObserver.d.ts +19 -16
  202. package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
  203. package/dist/control-plane/ArtifactObserver.js +73 -59
  204. package/dist/control-plane/ArtifactObserver.js.map +1 -1
  205. package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
  206. package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
  207. package/dist/control-plane/AuthMetadataStore.js +111 -113
  208. package/dist/control-plane/AuthMetadataStore.js.map +1 -1
  209. package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
  210. package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
  211. package/dist/control-plane/AuthStoragePaths.js +19 -14
  212. package/dist/control-plane/AuthStoragePaths.js.map +1 -1
  213. package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
  214. package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
  215. package/dist/control-plane/AuthenticationSelector.js +69 -63
  216. package/dist/control-plane/AuthenticationSelector.js.map +1 -1
  217. package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
  218. package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
  219. package/dist/control-plane/ControlPlaneClient.js +265 -254
  220. package/dist/control-plane/ControlPlaneClient.js.map +1 -1
  221. package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
  222. package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
  223. package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
  224. package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
  225. package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
  226. package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
  227. package/dist/control-plane/ControlPlaneTypes.js +88 -81
  228. package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
  229. package/dist/control-plane/CredentialStore.d.ts +20 -18
  230. package/dist/control-plane/CredentialStore.d.ts.map +1 -1
  231. package/dist/control-plane/CredentialStore.js +66 -83
  232. package/dist/control-plane/CredentialStore.js.map +1 -1
  233. package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
  234. package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
  235. package/dist/control-plane/DPoPKeyStore.js +57 -53
  236. package/dist/control-plane/DPoPKeyStore.js.map +1 -1
  237. package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
  238. package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
  239. package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
  240. package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
  241. package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
  242. package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
  243. package/dist/control-plane/PublishIdempotencyStore.js +97 -68
  244. package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
  245. package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
  246. package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
  247. package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
  248. package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
  249. package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
  250. package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
  251. package/dist/control-plane/RegistryGrantLock.js +149 -185
  252. package/dist/control-plane/RegistryGrantLock.js.map +1 -1
  253. package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
  254. package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
  255. package/dist/control-plane/RegistryTrustResolver.js +97 -132
  256. package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
  257. package/dist/index.d.ts +62 -39
  258. package/dist/index.js +60 -53
  259. package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
  260. package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
  261. package/dist/postinstall/api/PostinstallDsl.js +32 -35
  262. package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
  263. package/dist/postinstall/api/definePostinstall.d.ts +5 -2
  264. package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
  265. package/dist/postinstall/api/definePostinstall.js +20 -16
  266. package/dist/postinstall/api/definePostinstall.js.map +1 -1
  267. package/dist/postinstall/index.d.ts +25 -26
  268. package/dist/postinstall/index.js +25 -37
  269. package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
  270. package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
  271. package/dist/postinstall/loader/EntryResolver.js +36 -32
  272. package/dist/postinstall/loader/EntryResolver.js.map +1 -1
  273. package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
  274. package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
  275. package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
  276. package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
  277. package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
  278. package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
  279. package/dist/postinstall/loader/ExportValidator.js +36 -32
  280. package/dist/postinstall/loader/ExportValidator.js.map +1 -1
  281. package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
  282. package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
  283. package/dist/postinstall/loader/ModuleImporter.js +50 -58
  284. package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
  285. package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
  286. package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
  287. package/dist/postinstall/loader/PostinstallLoader.js +62 -58
  288. package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
  289. package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
  290. package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
  291. package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
  292. package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
  293. package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
  294. package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
  295. package/dist/postinstall/markers/MarkerBlockService.js +44 -44
  296. package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
  297. package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
  298. package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
  299. package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
  300. package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
  301. package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
  302. package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
  303. package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
  304. package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
  305. package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
  306. package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
  307. package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
  308. package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
  309. package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
  310. package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
  311. package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
  312. package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
  313. package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
  314. package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
  315. package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
  316. package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
  317. package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
  318. package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
  319. package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
  320. package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
  321. package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
  322. package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
  323. package/dist/postinstall/unreal/CSharpStructures.js +1 -2
  324. package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
  325. package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
  326. package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
  327. package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
  328. package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
  329. package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
  330. package/dist/postinstall/unreal/PluginHash.js +13 -8
  331. package/dist/postinstall/unreal/PluginHash.js.map +1 -1
  332. package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
  333. package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
  334. package/dist/postinstall/unreal/PrettyParseError.js +37 -37
  335. package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
  336. package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
  337. package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
  338. package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
  339. package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
  340. package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
  341. package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
  342. package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
  343. package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
  344. package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
  345. package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
  346. package/dist/postinstall/unreal/UProjectInjector.js +56 -52
  347. package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
  348. package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
  349. package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
  350. package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
  351. package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
  352. package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
  353. package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
  354. package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
  355. package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
  356. package/dist/prompts/InkPromptService.d.ts +10 -7
  357. package/dist/prompts/InkPromptService.d.ts.map +1 -1
  358. package/dist/prompts/InkPromptService.js +100 -71
  359. package/dist/prompts/InkPromptService.js.map +1 -1
  360. package/dist/prompts/ProjectContextDetector.d.ts +10 -7
  361. package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
  362. package/dist/prompts/ProjectContextDetector.js +32 -26
  363. package/dist/prompts/ProjectContextDetector.js.map +1 -1
  364. package/dist/prompts/PromptService.d.ts +11 -8
  365. package/dist/prompts/PromptService.d.ts.map +1 -1
  366. package/dist/prompts/PromptService.js +1 -8
  367. package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
  368. package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
  369. package/dist/reporting/DiagnosticDeduplicator.js +36 -35
  370. package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
  371. package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
  372. package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
  373. package/dist/reporting/DiagnosticRenderer.js +1 -2
  374. package/dist/reporting/DiagnosticReporter.d.ts +12 -9
  375. package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
  376. package/dist/reporting/DiagnosticReporter.js +40 -39
  377. package/dist/reporting/DiagnosticReporter.js.map +1 -1
  378. package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
  379. package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
  380. package/dist/reporting/InkDiagnosticRenderer.js +50 -42
  381. package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
  382. package/dist/reporting/InstallProgressReporter.d.ts +23 -20
  383. package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
  384. package/dist/reporting/InstallProgressReporter.js +48 -47
  385. package/dist/reporting/InstallProgressReporter.js.map +1 -1
  386. package/dist/reporting/JsonReporter.d.ts +16 -13
  387. package/dist/reporting/JsonReporter.d.ts.map +1 -1
  388. package/dist/reporting/JsonReporter.js +34 -20
  389. package/dist/reporting/JsonReporter.js.map +1 -1
  390. package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
  391. package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
  392. package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
  393. package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
  394. package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
  395. package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
  396. package/dist/reporting/TextDiagnosticRenderer.js +36 -28
  397. package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
  398. package/dist/reporting/TextSink.d.ts +14 -11
  399. package/dist/reporting/TextSink.d.ts.map +1 -1
  400. package/dist/reporting/TextSink.js +24 -20
  401. package/dist/reporting/TextSink.js.map +1 -1
  402. package/package.json +31 -32
  403. package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
  404. package/dist/cli-bootstrap.d.ts.map +0 -1
  405. package/dist/commands/Command.js.map +0 -1
  406. package/dist/index.d.ts.map +0 -1
  407. package/dist/index.js.map +0 -1
  408. package/dist/postinstall/index.d.ts.map +0 -1
  409. package/dist/postinstall/index.js.map +0 -1
  410. package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
  411. package/dist/prompts/PromptService.js.map +0 -1
  412. package/dist/reporting/DiagnosticRenderer.js.map +0 -1
@@ -1,55 +1,60 @@
1
- import fs from 'node:fs';
2
- import { createIoErrorDiagnostic, fail, ok } from '@uapkg/diagnostics';
3
- import { MarkerBlockEditor } from '../markers/MarkerBlockEditor.js';
4
- import { CSharpInjectionEngine } from './CSharpInjectionEngine.js';
5
- import { CSharpStructureAnalyzer } from './CSharpStructureAnalyzer.js';
6
- import { CSharpWrapperFactory } from './CSharpWrapperFactory.js';
7
- import { getWrapperClassName } from './PluginHash.js';
8
- const TARGET_CS_ZONES = ['target-includes', 'target-class-body', 'target-constructor'];
1
+ import { MarkerBlockEditor } from "../markers/MarkerBlockEditor.js";
2
+ import { CSharpInjectionEngine } from "./CSharpInjectionEngine.js";
3
+ import { CSharpStructureAnalyzer } from "./CSharpStructureAnalyzer.js";
4
+ import { CSharpWrapperFactory } from "./CSharpWrapperFactory.js";
5
+ import { getWrapperClassName } from "./PluginHash.js";
6
+ import { createIoErrorDiagnostic, fail, ok } from "@uapkg/diagnostics";
7
+ import fs from "node:fs";
8
+
9
+ //#region src/postinstall/unreal/TargetCsInjector.ts
10
+ const TARGET_CS_ZONES = [
11
+ "target-includes",
12
+ "target-class-body",
13
+ "target-constructor"
14
+ ];
9
15
  /**
10
- * Injects a plugin's `setupTargets` content into a single `*.Target.cs` file.
11
- *
12
- * Mirrors {@link BuildCsInjector} but targets `TargetRules`/`TargetInfo` and a
13
- * different marker-zone name-space. Never throws — errors become diagnostics.
14
- * Pre-existing owned marker blocks are integrity-checked before mutation and
15
- * surfaced as `POSTINSTALL_MARKER_CORRUPT` on failure.
16
- */
17
- export class TargetCsInjector {
18
- analyzer;
19
- wrapperFactory;
20
- injector;
21
- markerEditor;
22
- constructor(analyzer = new CSharpStructureAnalyzer(), wrapperFactory = new CSharpWrapperFactory(), injector = new CSharpInjectionEngine(), markerEditor = new MarkerBlockEditor()) {
23
- this.analyzer = analyzer;
24
- this.wrapperFactory = wrapperFactory;
25
- this.injector = injector;
26
- this.markerEditor = markerEditor;
27
- }
28
- apply(filePath, pluginName, zones) {
29
- try {
30
- let source = fs.readFileSync(filePath, 'utf-8');
31
- for (const zone of TARGET_CS_ZONES) {
32
- const check = this.markerEditor.validate(source, pluginName, zone, filePath);
33
- if (!check.ok)
34
- return fail(check.diagnostics);
35
- }
36
- if (zones.includes?.trim()) {
37
- source = this.injector.applyIncludes(source, pluginName, zones.includes, 'target-includes');
38
- }
39
- if (zones.classBody?.trim()) {
40
- const parsedForWrapper = this.analyzer.parseTarget(filePath, source);
41
- const wrapperClassName = getWrapperClassName(pluginName);
42
- const wrapper = this.wrapperFactory.createWrapper(wrapperClassName, 'TargetRules', 'target', zones.classBody);
43
- source = this.injector.applyClassWrapper(parsedForWrapper, pluginName, wrapper, 'target-class-body');
44
- const parsedForCtor = this.analyzer.parseTarget(filePath, source);
45
- source = this.injector.applyConstructorCall(parsedForCtor, pluginName, `${wrapperClassName}.Apply(this)`, 'target-constructor');
46
- }
47
- fs.writeFileSync(filePath, source, 'utf-8');
48
- return ok(undefined);
49
- }
50
- catch (error) {
51
- return fail([createIoErrorDiagnostic(filePath, error instanceof Error ? error.message : String(error))]);
52
- }
53
- }
54
- }
16
+ * Injects a plugin's `setupTargets` content into a single `*.Target.cs` file.
17
+ *
18
+ * Mirrors {@link BuildCsInjector} but targets `TargetRules`/`TargetInfo` and a
19
+ * different marker-zone name-space. Never throws — errors become diagnostics.
20
+ * Pre-existing owned marker blocks are integrity-checked before mutation and
21
+ * surfaced as `POSTINSTALL_MARKER_CORRUPT` on failure.
22
+ */
23
+ var TargetCsInjector = class {
24
+ analyzer;
25
+ wrapperFactory;
26
+ injector;
27
+ markerEditor;
28
+ constructor(analyzer = new CSharpStructureAnalyzer(), wrapperFactory = new CSharpWrapperFactory(), injector = new CSharpInjectionEngine(), markerEditor = new MarkerBlockEditor()) {
29
+ this.analyzer = analyzer;
30
+ this.wrapperFactory = wrapperFactory;
31
+ this.injector = injector;
32
+ this.markerEditor = markerEditor;
33
+ }
34
+ apply(filePath, pluginName, zones) {
35
+ try {
36
+ let source = fs.readFileSync(filePath, "utf-8");
37
+ for (const zone of TARGET_CS_ZONES) {
38
+ const check = this.markerEditor.validate(source, pluginName, zone, filePath);
39
+ if (!check.ok) return fail(check.diagnostics);
40
+ }
41
+ if (zones.includes?.trim()) source = this.injector.applyIncludes(source, pluginName, zones.includes, "target-includes");
42
+ if (zones.classBody?.trim()) {
43
+ const parsedForWrapper = this.analyzer.parseTarget(filePath, source);
44
+ const wrapperClassName = getWrapperClassName(pluginName);
45
+ const wrapper = this.wrapperFactory.createWrapper(wrapperClassName, "TargetRules", "target", zones.classBody);
46
+ source = this.injector.applyClassWrapper(parsedForWrapper, pluginName, wrapper, "target-class-body");
47
+ const parsedForCtor = this.analyzer.parseTarget(filePath, source);
48
+ source = this.injector.applyConstructorCall(parsedForCtor, pluginName, `${wrapperClassName}.Apply(this)`, "target-constructor");
49
+ }
50
+ fs.writeFileSync(filePath, source, "utf-8");
51
+ return ok(void 0);
52
+ } catch (error) {
53
+ return fail([createIoErrorDiagnostic(filePath, error instanceof Error ? error.message : String(error))]);
54
+ }
55
+ }
56
+ };
57
+
58
+ //#endregion
59
+ export { TargetCsInjector };
55
60
  //# sourceMappingURL=TargetCsInjector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TargetCsInjector.js","sourceRoot":"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,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3G,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"TargetCsInjector.js","names":[],"sources":["../../../src/postinstall/unreal/TargetCsInjector.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { createIoErrorDiagnostic, fail, ok, type Result } from '@uapkg/diagnostics';\nimport type { ZoneDefinition } from '../api/PostinstallDsl.js';\nimport { MarkerBlockEditor } from '../markers/MarkerBlockEditor.js';\nimport { CSharpInjectionEngine } from './CSharpInjectionEngine.js';\nimport { CSharpStructureAnalyzer } from './CSharpStructureAnalyzer.js';\nimport { CSharpWrapperFactory } from './CSharpWrapperFactory.js';\nimport { getWrapperClassName } from './PluginHash.js';\n\nconst TARGET_CS_ZONES = ['target-includes', 'target-class-body', 'target-constructor'] as const;\n\n/**\n * Injects a plugin's `setupTargets` content into a single `*.Target.cs` file.\n *\n * Mirrors {@link BuildCsInjector} but targets `TargetRules`/`TargetInfo` and a\n * different marker-zone name-space. Never throws — errors become diagnostics.\n * Pre-existing owned marker blocks are integrity-checked before mutation and\n * surfaced as `POSTINSTALL_MARKER_CORRUPT` on failure.\n */\nexport class TargetCsInjector {\n public constructor(\n private readonly analyzer: CSharpStructureAnalyzer = new CSharpStructureAnalyzer(),\n private readonly wrapperFactory: CSharpWrapperFactory = new CSharpWrapperFactory(),\n private readonly injector: CSharpInjectionEngine = new CSharpInjectionEngine(),\n private readonly markerEditor: MarkerBlockEditor = new MarkerBlockEditor(),\n ) {}\n\n public apply(filePath: string, pluginName: string, zones: ZoneDefinition): Result<void> {\n try {\n let source = fs.readFileSync(filePath, 'utf-8');\n\n for (const zone of TARGET_CS_ZONES) {\n const check = this.markerEditor.validate(source, pluginName, zone, filePath);\n if (!check.ok) return fail(check.diagnostics);\n }\n\n if (zones.includes?.trim()) {\n source = this.injector.applyIncludes(source, pluginName, zones.includes, 'target-includes');\n }\n if (zones.classBody?.trim()) {\n const parsedForWrapper = this.analyzer.parseTarget(filePath, source);\n const wrapperClassName = getWrapperClassName(pluginName);\n const wrapper = this.wrapperFactory.createWrapper(wrapperClassName, 'TargetRules', 'target', zones.classBody);\n source = this.injector.applyClassWrapper(parsedForWrapper, pluginName, wrapper, 'target-class-body');\n\n const parsedForCtor = this.analyzer.parseTarget(filePath, source);\n source = this.injector.applyConstructorCall(\n parsedForCtor,\n pluginName,\n `${wrapperClassName}.Apply(this)`,\n 'target-constructor',\n );\n }\n fs.writeFileSync(filePath, source, 'utf-8');\n return ok(undefined);\n } catch (error) {\n return fail([createIoErrorDiagnostic(filePath, error instanceof Error ? error.message : String(error))]);\n }\n }\n}\n"],"mappings":";;;;;;;;;AASA,MAAM,kBAAkB;CAAC;CAAmB;CAAqB;AAAoB;;;;;;;;;AAUrF,IAAa,mBAAb,MAA8B;CAET;CACA;CACA;CACA;CAJnB,AAAO,YACL,AAAiB,WAAoC,IAAI,wBAAwB,GACjF,AAAiB,iBAAuC,IAAI,qBAAqB,GACjF,AAAiB,WAAkC,IAAI,sBAAsB,GAC7E,AAAiB,eAAkC,IAAI,kBAAkB,GACzE;EAJiB;EACA;EACA;EACA;CAChB;CAEH,AAAO,MAAM,UAAkB,YAAoB,OAAqC;EACtF,IAAI;GACF,IAAI,SAAS,GAAG,aAAa,UAAU,OAAO;GAE9C,KAAK,MAAM,QAAQ,iBAAiB;IAClC,MAAM,QAAQ,KAAK,aAAa,SAAS,QAAQ,YAAY,MAAM,QAAQ;IAC3E,IAAI,CAAC,MAAM,IAAI,OAAO,KAAK,MAAM,WAAW;GAC9C;GAEA,IAAI,MAAM,UAAU,KAAK,GACvB,SAAS,KAAK,SAAS,cAAc,QAAQ,YAAY,MAAM,UAAU,iBAAiB;GAE5F,IAAI,MAAM,WAAW,KAAK,GAAG;IAC3B,MAAM,mBAAmB,KAAK,SAAS,YAAY,UAAU,MAAM;IACnE,MAAM,mBAAmB,oBAAoB,UAAU;IACvD,MAAM,UAAU,KAAK,eAAe,cAAc,kBAAkB,eAAe,UAAU,MAAM,SAAS;IAC5G,SAAS,KAAK,SAAS,kBAAkB,kBAAkB,YAAY,SAAS,mBAAmB;IAEnG,MAAM,gBAAgB,KAAK,SAAS,YAAY,UAAU,MAAM;IAChE,SAAS,KAAK,SAAS,qBACrB,eACA,YACA,GAAG,iBAAiB,eACpB,oBACF;GACF;GACA,GAAG,cAAc,UAAU,QAAQ,OAAO;GAC1C,OAAO,GAAG,MAAS;EACrB,SAAS,OAAO;GACd,OAAO,KAAK,CAAC,wBAAwB,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC,CAAC,CAAC;EACzG;CACF;AACF"}
@@ -1,4 +1,5 @@
1
- import { type Result } from '@uapkg/diagnostics';
1
+ import { Result } from "@uapkg/diagnostics";
2
+ //#region src/postinstall/unreal/UProjectInjector.d.ts
2
3
  /**
3
4
  * Enables the given plugin names in the host project's `.uproject` file,
4
5
  * preserving all other fields. Adds new entries with `Enabled: true` when the
@@ -6,7 +7,9 @@ import { type Result } from '@uapkg/diagnostics';
6
7
  *
7
8
  * Never throws — returns a `Result<void>`.
8
9
  */
9
- export declare class UProjectInjector {
10
- apply(projectFilePath: string, pluginNames: readonly string[]): Result<void>;
10
+ declare class UProjectInjector {
11
+ apply(projectFilePath: string, pluginNames: readonly string[]): Result<void>;
11
12
  }
13
+ //#endregion
14
+ export { UProjectInjector };
12
15
  //# sourceMappingURL=UProjectInjector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UProjectInjector.d.ts","sourceRoot":"","sources":["../../../src/postinstall/unreal/UProjectInjector.ts"],"names":[],"mappings":"AACA,OAAO,EAAiE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAahH;;;;;;GAMG;AACH,qBAAa,gBAAgB;IACpB,KAAK,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC;CA0CpF"}
1
+ {"version":3,"file":"UProjectInjector.d.ts","names":[],"sources":["../../../src/postinstall/unreal/UProjectInjector.ts"],"mappings":";;;;;;;;;cAqBa;EACJ,MAAM,yBAAyB,iCAAiC"}
@@ -1,54 +1,58 @@
1
- import fs from 'node:fs';
2
- import { createIoErrorDiagnostic, createParseErrorDiagnostic, fail, ok } from '@uapkg/diagnostics';
1
+ import { createIoErrorDiagnostic, createParseErrorDiagnostic, fail, ok } from "@uapkg/diagnostics";
2
+ import fs from "node:fs";
3
+
4
+ //#region src/postinstall/unreal/UProjectInjector.ts
3
5
  /**
4
- * Enables the given plugin names in the host project's `.uproject` file,
5
- * preserving all other fields. Adds new entries with `Enabled: true` when the
6
- * plugin isn't already listed; toggles `Enabled: true` on existing entries.
7
- *
8
- * Never throws — returns a `Result<void>`.
9
- */
10
- export class UProjectInjector {
11
- apply(projectFilePath, pluginNames) {
12
- if (pluginNames.length === 0)
13
- return ok(undefined);
14
- let source;
15
- try {
16
- source = fs.readFileSync(projectFilePath, 'utf-8');
17
- }
18
- catch (error) {
19
- return fail([createIoErrorDiagnostic(projectFilePath, error instanceof Error ? error.message : String(error))]);
20
- }
21
- let parsed;
22
- try {
23
- parsed = JSON.parse(source);
24
- }
25
- catch (error) {
26
- return fail([
27
- createParseErrorDiagnostic(error instanceof Error ? error.message : String(error), projectFilePath),
28
- ]);
29
- }
30
- const plugins = Array.isArray(parsed.Plugins) ? [...parsed.Plugins] : [];
31
- const indexByName = new Map();
32
- plugins.forEach((entry, index) => {
33
- if (typeof entry.Name === 'string' && entry.Name.trim())
34
- indexByName.set(entry.Name, index);
35
- });
36
- for (const pluginName of pluginNames) {
37
- const existingIndex = indexByName.get(pluginName);
38
- if (existingIndex === undefined) {
39
- plugins.push({ Name: pluginName, Enabled: true });
40
- continue;
41
- }
42
- plugins[existingIndex] = { ...plugins[existingIndex], Enabled: true };
43
- }
44
- parsed.Plugins = plugins;
45
- try {
46
- fs.writeFileSync(projectFilePath, `${JSON.stringify(parsed, null, 2)}\n`, 'utf-8');
47
- }
48
- catch (error) {
49
- return fail([createIoErrorDiagnostic(projectFilePath, error instanceof Error ? error.message : String(error))]);
50
- }
51
- return ok(undefined);
52
- }
53
- }
6
+ * Enables the given plugin names in the host project's `.uproject` file,
7
+ * preserving all other fields. Adds new entries with `Enabled: true` when the
8
+ * plugin isn't already listed; toggles `Enabled: true` on existing entries.
9
+ *
10
+ * Never throws — returns a `Result<void>`.
11
+ */
12
+ var UProjectInjector = class {
13
+ apply(projectFilePath, pluginNames) {
14
+ if (pluginNames.length === 0) return ok(void 0);
15
+ let source;
16
+ try {
17
+ source = fs.readFileSync(projectFilePath, "utf-8");
18
+ } catch (error) {
19
+ return fail([createIoErrorDiagnostic(projectFilePath, error instanceof Error ? error.message : String(error))]);
20
+ }
21
+ let parsed;
22
+ try {
23
+ parsed = JSON.parse(source);
24
+ } catch (error) {
25
+ return fail([createParseErrorDiagnostic(error instanceof Error ? error.message : String(error), projectFilePath)]);
26
+ }
27
+ const plugins = Array.isArray(parsed.Plugins) ? [...parsed.Plugins] : [];
28
+ const indexByName = /* @__PURE__ */ new Map();
29
+ plugins.forEach((entry, index) => {
30
+ if (typeof entry.Name === "string" && entry.Name.trim()) indexByName.set(entry.Name, index);
31
+ });
32
+ for (const pluginName of pluginNames) {
33
+ const existingIndex = indexByName.get(pluginName);
34
+ if (existingIndex === void 0) {
35
+ plugins.push({
36
+ Name: pluginName,
37
+ Enabled: true
38
+ });
39
+ continue;
40
+ }
41
+ plugins[existingIndex] = {
42
+ ...plugins[existingIndex],
43
+ Enabled: true
44
+ };
45
+ }
46
+ parsed.Plugins = plugins;
47
+ try {
48
+ fs.writeFileSync(projectFilePath, `${JSON.stringify(parsed, null, 2)}\n`, "utf-8");
49
+ } catch (error) {
50
+ return fail([createIoErrorDiagnostic(projectFilePath, error instanceof Error ? error.message : String(error))]);
51
+ }
52
+ return ok(void 0);
53
+ }
54
+ };
55
+
56
+ //#endregion
57
+ export { UProjectInjector };
54
58
  //# sourceMappingURL=UProjectInjector.js.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src/postinstall/unreal/UProjectInjector.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { createIoErrorDiagnostic, createParseErrorDiagnostic, fail, ok, type Result } from '@uapkg/diagnostics';\n\ninterface UProjectPluginEntry {\n Name?: string;\n Enabled?: boolean;\n [key: string]: unknown;\n}\n\ninterface UProjectDocument {\n Plugins?: UProjectPluginEntry[];\n [key: string]: unknown;\n}\n\n/**\n * Enables the given plugin names in the host project's `.uproject` file,\n * preserving all other fields. Adds new entries with `Enabled: true` when the\n * plugin isn't already listed; toggles `Enabled: true` on existing entries.\n *\n * Never throws — returns a `Result<void>`.\n */\nexport class UProjectInjector {\n public apply(projectFilePath: string, pluginNames: readonly string[]): Result<void> {\n if (pluginNames.length === 0) return ok(undefined);\n\n let source: string;\n try {\n source = fs.readFileSync(projectFilePath, 'utf-8');\n } catch (error) {\n return fail([createIoErrorDiagnostic(projectFilePath, error instanceof Error ? error.message : String(error))]);\n }\n\n let parsed: UProjectDocument;\n try {\n parsed = JSON.parse(source) as UProjectDocument;\n } catch (error) {\n return fail([\n createParseErrorDiagnostic(error instanceof Error ? error.message : String(error), projectFilePath),\n ]);\n }\n\n const plugins = Array.isArray(parsed.Plugins) ? [...parsed.Plugins] : [];\n const indexByName = new Map<string, number>();\n plugins.forEach((entry, index) => {\n if (typeof entry.Name === 'string' && entry.Name.trim()) indexByName.set(entry.Name, index);\n });\n\n for (const pluginName of pluginNames) {\n const existingIndex = indexByName.get(pluginName);\n if (existingIndex === undefined) {\n plugins.push({ Name: pluginName, Enabled: true });\n continue;\n }\n plugins[existingIndex] = { ...plugins[existingIndex], Enabled: true };\n }\n\n parsed.Plugins = plugins;\n try {\n fs.writeFileSync(projectFilePath, `${JSON.stringify(parsed, null, 2)}\\n`, 'utf-8');\n } catch (error) {\n return fail([createIoErrorDiagnostic(projectFilePath, error instanceof Error ? error.message : String(error))]);\n }\n return ok(undefined);\n }\n}\n"],"mappings":";;;;;;;;;;;AAqBA,IAAa,mBAAb,MAA8B;CAC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ataReader.d.ts
1
2
  /**
2
3
  * Reads the `Modules` array from a `.uproject` JSON file and returns the list
3
4
  * of module names. Used when no explicit `postinstall.modules` is configured
4
5
  * on the project manifest.
5
6
  */
6
- export declare class UProjectMetadataReader {
7
- readModuleNames(uprojectPath: string): string[];
7
+ declare class UProjectMetadataReader {
8
+ readModuleNames(uprojectPath: string): string[];
8
9
  }
10
+ //#endregion
11
+ export { UProjectMetadataReader };
9
12
  //# sourceMappingURL=UProjectMetadataReader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UProjectMetadataReader.d.ts","sourceRoot":"","sources":["../../../src/postinstall/unreal/UProjectMetadataReader.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,qBAAa,sBAAsB;IAC1B,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE;CAWvD"}
1
+ {"version":3,"file":"UProjectMetadataReader.d.ts","names":[],"sources":["../../../src/postinstall/unreal/UProjectMetadataReader.ts"],"mappings":";;;;;;cAea;EACJ,gBAAgB"}
@@ -1,20 +1,24 @@
1
- import fs from 'node:fs';
1
+ import fs from "node:fs";
2
+
3
+ //#region src/postinstall/unreal/UProjectMetadataReader.ts
2
4
  /**
3
- * Reads the `Modules` array from a `.uproject` JSON file and returns the list
4
- * of module names. Used when no explicit `postinstall.modules` is configured
5
- * on the project manifest.
6
- */
7
- export class UProjectMetadataReader {
8
- readModuleNames(uprojectPath) {
9
- const source = fs.readFileSync(uprojectPath, 'utf-8');
10
- let parsed;
11
- try {
12
- parsed = JSON.parse(source);
13
- }
14
- catch (error) {
15
- throw new Error(`Failed to parse ${uprojectPath}: ${error instanceof Error ? error.message : String(error)}`);
16
- }
17
- return (parsed.Modules ?? []).map((entry) => entry.Name?.trim()).filter((value) => Boolean(value));
18
- }
19
- }
5
+ * Reads the `Modules` array from a `.uproject` JSON file and returns the list
6
+ * of module names. Used when no explicit `postinstall.modules` is configured
7
+ * on the project manifest.
8
+ */
9
+ var UProjectMetadataReader = class {
10
+ readModuleNames(uprojectPath) {
11
+ const source = fs.readFileSync(uprojectPath, "utf-8");
12
+ let parsed;
13
+ try {
14
+ parsed = JSON.parse(source);
15
+ } catch (error) {
16
+ throw new Error(`Failed to parse ${uprojectPath}: ${error instanceof Error ? error.message : String(error)}`);
17
+ }
18
+ return (parsed.Modules ?? []).map((entry) => entry.Name?.trim()).filter((value) => Boolean(value));
19
+ }
20
+ };
21
+
22
+ //#endregion
23
+ export { UProjectMetadataReader };
20
24
  //# sourceMappingURL=UProjectMetadataReader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UProjectMetadataReader.js","sourceRoot":"","sources":["../../../src/postinstall/unreal/UProjectMetadataReader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AAUzB;;;;GAIG;AACH,MAAM,OAAO,sBAAsB;IAC1B,eAAe,CAAC,YAAoB;QACzC,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QACtD,IAAI,MAAwB,CAAC;QAC7B,IAAI,CAAC;YACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAqB,CAAC;QAClD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,mBAAmB,YAAY,KAAK,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAChH,CAAC;QAED,OAAO,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACtH,CAAC;CACF"}
1
+ {"version":3,"file":"UProjectMetadataReader.js","names":[],"sources":["../../../src/postinstall/unreal/UProjectMetadataReader.ts"],"sourcesContent":["import fs from 'node:fs';\n\ninterface UProjectModule {\n Name?: string;\n}\n\ninterface UProjectDocument {\n Modules?: UProjectModule[];\n}\n\n/**\n * Reads the `Modules` array from a `.uproject` JSON file and returns the list\n * of module names. Used when no explicit `postinstall.modules` is configured\n * on the project manifest.\n */\nexport class UProjectMetadataReader {\n public readModuleNames(uprojectPath: string): string[] {\n const source = fs.readFileSync(uprojectPath, 'utf-8');\n let parsed: UProjectDocument;\n try {\n parsed = JSON.parse(source) as UProjectDocument;\n } catch (error) {\n throw new Error(`Failed to parse ${uprojectPath}: ${error instanceof Error ? error.message : String(error)}`);\n }\n\n return (parsed.Modules ?? []).map((entry) => entry.Name?.trim()).filter((value): value is string => Boolean(value));\n }\n}\n"],"mappings":";;;;;;;;AAeA,IAAa,yBAAb,MAAoC;CAClC,AAAO,gBAAgB,cAAgC;EACrD,MAAM,SAAS,GAAG,aAAa,cAAc,OAAO;EACpD,IAAI;EACJ,IAAI;GACF,SAAS,KAAK,MAAM,MAAM;EAC5B,SAAS,OAAO;GACd,MAAM,IAAI,MAAM,mBAAmB,aAAa,IAAI,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,GAAG;EAC9G;EAEA,QAAQ,OAAO,WAAW,CAAC,EAAC,CAAE,KAAK,UAAU,MAAM,MAAM,KAAK,CAAC,CAAC,CAAC,QAAQ,UAA2B,QAAQ,KAAK,CAAC;CACpH;AACF"}
@@ -1,10 +1,11 @@
1
- import { CSharpStructureAnalyzer } from './CSharpStructureAnalyzer.js';
2
- import { ProjectFileLocator } from './ProjectFileLocator.js';
3
- export interface SourceCatalog {
4
- /** ModuleName → absolute path of its `*.Build.cs`. */
5
- readonly moduleFiles: ReadonlyMap<string, string>;
6
- /** Absolute paths to every `*.Target.cs` in the project source tree. */
7
- readonly targetFiles: readonly string[];
1
+ import { CSharpStructureAnalyzer } from "./CSharpStructureAnalyzer.js";
2
+ import { ProjectFileLocator } from "./ProjectFileLocator.js";
3
+ //#region src/postinstall/unreal/UnrealSourceCatalog.d.ts
4
+ interface SourceCatalog {
5
+ /** ModuleName → absolute path of its `*.Build.cs`. */
6
+ readonly moduleFiles: ReadonlyMap<string, string>;
7
+ /** Absolute paths to every `*.Target.cs` in the project source tree. */
8
+ readonly targetFiles: readonly string[];
8
9
  }
9
10
  /**
10
11
  * Scans the project source tree and validates every discovered `Build.cs` /
@@ -12,12 +13,14 @@ export interface SourceCatalog {
12
13
  * pre-flight check: the orchestrator runs it once before any injector mutates
13
14
  * a file, so we fail fast on malformed sources.
14
15
  */
15
- export declare class UnrealSourceCatalogBuilder {
16
- private readonly fileLocator;
17
- private readonly analyzer;
18
- constructor(fileLocator?: ProjectFileLocator, analyzer?: CSharpStructureAnalyzer);
19
- build(projectRoot: string, expectedModules: readonly string[]): SourceCatalog;
20
- private resolveModules;
21
- private resolveTargets;
16
+ declare class UnrealSourceCatalogBuilder {
17
+ private readonly fileLocator;
18
+ private readonly analyzer;
19
+ constructor(fileLocator?: ProjectFileLocator, analyzer?: CSharpStructureAnalyzer);
20
+ build(projectRoot: string, expectedModules: readonly string[]): SourceCatalog;
21
+ private resolveModules;
22
+ private resolveTargets;
22
23
  }
24
+ //#endregion
25
+ export { SourceCatalog, UnrealSourceCatalogBuilder };
23
26
  //# sourceMappingURL=UnrealSourceCatalog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnrealSourceCatalog.d.ts","sourceRoot":"","sources":["../../../src/postinstall/unreal/UnrealSourceCatalog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,wEAAwE;IACxE,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC;AAED;;;;;GAKG;AACH,qBAAa,0BAA0B;IAEnC,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,WAAW,GAAE,kBAA6C,EAC1D,QAAQ,GAAE,uBAAuD;IAG7E,KAAK,CAAC,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,MAAM,EAAE,GAAG,aAAa;IAMpF,OAAO,CAAC,cAAc;IA0BtB,OAAO,CAAC,cAAc;CAQvB"}
1
+ {"version":3,"file":"UnrealSourceCatalog.d.ts","names":[],"sources":["../../../src/postinstall/unreal/UnrealSourceCatalog.ts"],"mappings":";;;UAIiB;;WAEN,aAAa;;WAEb;;;;;;;;cASE;mBAEQ;mBACA;EAFnB,YACmB,cAAa,oBACb,WAAU;EAGtB,MAAM,qBAAqB,qCAAqC;UAM/D;UA0BA"}
@@ -1,52 +1,52 @@
1
- import fs from 'node:fs';
2
- import { CSharpStructureAnalyzer } from './CSharpStructureAnalyzer.js';
3
- import { ProjectFileLocator } from './ProjectFileLocator.js';
1
+ import { CSharpStructureAnalyzer } from "./CSharpStructureAnalyzer.js";
2
+ import { ProjectFileLocator } from "./ProjectFileLocator.js";
3
+ import fs from "node:fs";
4
+
5
+ //#region src/postinstall/unreal/UnrealSourceCatalog.ts
4
6
  /**
5
- * Scans the project source tree and validates every discovered `Build.cs` /
6
- * `Target.cs` with {@link CSharpStructureAnalyzer}. This is a one-shot
7
- * pre-flight check: the orchestrator runs it once before any injector mutates
8
- * a file, so we fail fast on malformed sources.
9
- */
10
- export class UnrealSourceCatalogBuilder {
11
- fileLocator;
12
- analyzer;
13
- constructor(fileLocator = new ProjectFileLocator(), analyzer = new CSharpStructureAnalyzer()) {
14
- this.fileLocator = fileLocator;
15
- this.analyzer = analyzer;
16
- }
17
- build(projectRoot, expectedModules) {
18
- const moduleFiles = this.resolveModules(projectRoot, expectedModules);
19
- const targetFiles = this.resolveTargets(projectRoot);
20
- return { moduleFiles, targetFiles };
21
- }
22
- resolveModules(projectRoot, expectedModules) {
23
- const files = this.fileLocator.findBuildFiles(projectRoot);
24
- const discovered = new Map();
25
- for (const filePath of files) {
26
- const source = fs.readFileSync(filePath, 'utf-8');
27
- const parsed = this.analyzer.parseModule(filePath, source);
28
- if (discovered.has(parsed.classInfo.className)) {
29
- throw new Error(`Duplicate ModuleRules class '${parsed.classInfo.className}' in ${discovered.get(parsed.classInfo.className)} and ${filePath}`);
30
- }
31
- discovered.set(parsed.classInfo.className, filePath);
32
- }
33
- const missing = expectedModules.filter((name) => !discovered.has(name));
34
- if (missing.length > 0) {
35
- throw new Error(`Missing module Build.cs files for: ${missing.join(', ')}`);
36
- }
37
- const moduleFiles = new Map();
38
- for (const moduleName of expectedModules) {
39
- moduleFiles.set(moduleName, discovered.get(moduleName));
40
- }
41
- return moduleFiles;
42
- }
43
- resolveTargets(projectRoot) {
44
- const files = this.fileLocator.findTargetFiles(projectRoot);
45
- for (const filePath of files) {
46
- const source = fs.readFileSync(filePath, 'utf-8');
47
- this.analyzer.parseTarget(filePath, source);
48
- }
49
- return files;
50
- }
51
- }
7
+ * Scans the project source tree and validates every discovered `Build.cs` /
8
+ * `Target.cs` with {@link CSharpStructureAnalyzer}. This is a one-shot
9
+ * pre-flight check: the orchestrator runs it once before any injector mutates
10
+ * a file, so we fail fast on malformed sources.
11
+ */
12
+ var UnrealSourceCatalogBuilder = class {
13
+ fileLocator;
14
+ analyzer;
15
+ constructor(fileLocator = new ProjectFileLocator(), analyzer = new CSharpStructureAnalyzer()) {
16
+ this.fileLocator = fileLocator;
17
+ this.analyzer = analyzer;
18
+ }
19
+ build(projectRoot, expectedModules) {
20
+ return {
21
+ moduleFiles: this.resolveModules(projectRoot, expectedModules),
22
+ targetFiles: this.resolveTargets(projectRoot)
23
+ };
24
+ }
25
+ resolveModules(projectRoot, expectedModules) {
26
+ const files = this.fileLocator.findBuildFiles(projectRoot);
27
+ const discovered = /* @__PURE__ */ new Map();
28
+ for (const filePath of files) {
29
+ const source = fs.readFileSync(filePath, "utf-8");
30
+ const parsed = this.analyzer.parseModule(filePath, source);
31
+ if (discovered.has(parsed.classInfo.className)) throw new Error(`Duplicate ModuleRules class '${parsed.classInfo.className}' in ${discovered.get(parsed.classInfo.className)} and ${filePath}`);
32
+ discovered.set(parsed.classInfo.className, filePath);
33
+ }
34
+ const missing = expectedModules.filter((name) => !discovered.has(name));
35
+ if (missing.length > 0) throw new Error(`Missing module Build.cs files for: ${missing.join(", ")}`);
36
+ const moduleFiles = /* @__PURE__ */ new Map();
37
+ for (const moduleName of expectedModules) moduleFiles.set(moduleName, discovered.get(moduleName));
38
+ return moduleFiles;
39
+ }
40
+ resolveTargets(projectRoot) {
41
+ const files = this.fileLocator.findTargetFiles(projectRoot);
42
+ for (const filePath of files) {
43
+ const source = fs.readFileSync(filePath, "utf-8");
44
+ this.analyzer.parseTarget(filePath, source);
45
+ }
46
+ return files;
47
+ }
48
+ };
49
+
50
+ //#endregion
51
+ export { UnrealSourceCatalogBuilder };
52
52
  //# sourceMappingURL=UnrealSourceCatalog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnrealSourceCatalog.js","sourceRoot":"","sources":["../../../src/postinstall/unreal/UnrealSourceCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAS7D;;;;;GAKG;AACH,MAAM,OAAO,0BAA0B;IAElB;IACA;IAFnB,YACmB,cAAkC,IAAI,kBAAkB,EAAE,EAC1D,WAAoC,IAAI,uBAAuB,EAAE;QADjE,gBAAW,GAAX,WAAW,CAA+C;QAC1D,aAAQ,GAAR,QAAQ,CAAyD;IACjF,CAAC;IAEG,KAAK,CAAC,WAAmB,EAAE,eAAkC;QAClE,MAAM,WAAW,GAAG,IAAI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M,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAC;QAC9C,KAAK,MAAM,UAAU,IAAI,eAAe,EAAE,CAAC;YACzC,WAAW,CAAC,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,UAAU,CAAW,CAAC,CAAC;QACpE,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IAEO,cAAc,CAAC,WAAmB;QACxC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QAC5D,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE,CAAC;YAC7B,MAAM,MAAM,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
1
+ {"version":3,"file":"UnrealSourceCatalog.js","names":[],"sources":["../../../src/postinstall/unreal/UnrealSourceCatalog.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { CSharpStructureAnalyzer } from './CSharpStructureAnalyzer.js';\nimport { ProjectFileLocator } from './ProjectFileLocator.js';\n\nexport interface SourceCatalog {\n /** ModuleName → absolute path of its `*.Build.cs`. */\n readonly moduleFiles: ReadonlyMap<string, string>;\n /** Absolute paths to every `*.Target.cs` in the project source tree. */\n readonly targetFiles: readonly string[];\n}\n\n/**\n * Scans the project source tree and validates every discovered `Build.cs` /\n * `Target.cs` with {@link CSharpStructureAnalyzer}. This is a one-shot\n * pre-flight check: the orchestrator runs it once before any injector mutates\n * a file, so we fail fast on malformed sources.\n */\nexport class UnrealSourceCatalogBuilder {\n public constructor(\n private readonly fileLocator: ProjectFileLocator = new ProjectFileLocator(),\n private readonly analyzer: CSharpStructureAnalyzer = new CSharpStructureAnalyzer(),\n ) {}\n\n public build(projectRoot: string, expectedModules: readonly string[]): SourceCatalog {\n const moduleFiles = this.resolveModules(projectRoot, expectedModules);\n const targetFiles = this.resolveTargets(projectRoot);\n return { moduleFiles, targetFiles };\n }\n\n private resolveModules(projectRoot: string, expectedModules: readonly string[]): Map<string, string> {\n const files = this.fileLocator.findBuildFiles(projectRoot);\n const discovered = new Map<string, string>();\n for (const filePath of files) {\n const source = fs.readFileSync(filePath, 'utf-8');\n const parsed = this.analyzer.parseModule(filePath, source);\n if (discovered.has(parsed.classInfo.className)) {\n throw new Error(\n `Duplicate ModuleRules class '${parsed.classInfo.className}' in ${discovered.get(parsed.classInfo.className)} and ${filePath}`,\n );\n }\n discovered.set(parsed.classInfo.className, filePath);\n }\n\n const missing = expectedModules.filter((name) => !discovered.has(name));\n if (missing.length > 0) {\n throw new Error(`Missing module Build.cs files for: ${missing.join(', ')}`);\n }\n\n const moduleFiles = new Map<string, string>();\n for (const moduleName of expectedModules) {\n moduleFiles.set(moduleName, discovered.get(moduleName) as string);\n }\n return moduleFiles;\n }\n\n private resolveTargets(projectRoot: string): string[] {\n const files = this.fileLocator.findTargetFiles(projectRoot);\n for (const filePath of files) {\n const source = fs.readFileSync(filePath, 'utf-8');\n this.analyzer.parseTarget(filePath, source);\n }\n return files;\n }\n}\n"],"mappings":";;;;;;;;;;;AAiBA,IAAa,6BAAb,MAAwC;CAEnB;CACA;CAFnB,AAAO,YACL,AAAiB,cAAkC,IAAI,mBAAmB,GAC1E,AAAiB,WAAoC,IAAI,wBAAwB,GACjF;EAFiB;EACA;CAChB;CAEH,AAAO,MAAM,aAAqB,iBAAmD;EAGnF,OAAO;GAAE,aAFW,KAAK,eAAe,aAAa,eAElC;GAAG,aADF,KAAK,eAAe,WACR;EAAE;CACpC;CAEA,AAAQ,eAAe,aAAqB,iBAAyD;EACnG,MAAM,QAAQ,KAAK,YAAY,eAAe,WAAW;EACzD,MAAM,6BAAa,IAAI,IAAoB;EAC3C,KAAK,MAAM,YAAY,OAAO;GAC5B,MAAM,SAAS,GAAG,aAAa,UAAU,OAAO;GAChD,MAAM,SAAS,KAAK,SAAS,YAAY,UAAU,MAAM;GACzD,IAAI,WAAW,IAAI,OAAO,UAAU,SAAS,GAC3C,MAAM,IAAI,MACR,gCAAgC,OAAO,UAAU,UAAU,OAAO,WAAW,IAAI,OAAO,UAAU,SAAS,EAAE,OAAO,UACtH;GAEF,WAAW,IAAI,OAAO,UAAU,WAAW,QAAQ;EACrD;EAEA,MAAM,UAAU,gBAAgB,QAAQ,SAAS,CAAC,WAAW,IAAI,IAAI,CAAC;EACtE,IAAI,QAAQ,SAAS,GACnB,MAAM,IAAI,MAAM,sCAAsC,QAAQ,KAAK,IAAI,GAAG;EAG5E,MAAM,8BAAc,IAAI,IAAoB;EAC5C,KAAK,MAAM,cAAc,iBACvB,YAAY,IAAI,YAAY,WAAW,IAAI,UAAU,CAAW;EAElE,OAAO;CACT;CAEA,AAAQ,eAAe,aAA+B;EACpD,MAAM,QAAQ,KAAK,YAAY,gBAAgB,WAAW;EAC1D,KAAK,MAAM,YAAY,OAAO;GAC5B,MAAM,SAAS,GAAG,aAAa,UAAU,OAAO;GAChD,KAAK,SAAS,YAAY,UAAU,MAAM;EAC5C;EACA,OAAO;CACT;AACF"}
@@ -1,9 +1,12 @@
1
- import type { PromptService, SelectOption } from './PromptService.js';
2
- export declare class InkPromptService implements PromptService {
3
- private readonly isInteractive;
4
- constructor(isInteractive?: boolean);
5
- select(message: string, options: SelectOption[], fallbackValue: string): Promise<string>;
6
- text(message: string, initialValue: string): Promise<string>;
7
- secret(message: string): Promise<string>;
1
+ import { PromptService, SelectOption } from "./PromptService.js";
2
+ //#region src/prompts/InkPromptService.d.ts
3
+ declare class InkPromptService implements PromptService {
4
+ private readonly isInteractive;
5
+ constructor(isInteractive?: boolean);
6
+ select(message: string, options: SelectOption[], fallbackValue: string): Promise<string>;
7
+ text(message: string, initialValue: string): Promise<string>;
8
+ secret(message: string): Promise<string>;
8
9
  }
10
+ //#endregion
11
+ export { InkPromptService };
9
12
  //# sourceMappingURL=InkPromptService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InkPromptService.d.ts","sourceRoot":"","sources":["../../src/prompts/InkPromptService.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAStE,qBAAa,gBAAiB,YAAW,aAAa;IACjC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,UAAgE;IAEpG,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAUxF,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAY5D,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAStD"}
1
+ {"version":3,"file":"InkPromptService.d.ts","names":[],"sources":["../../src/prompts/InkPromptService.tsx"],"mappings":";;cAca,4BAA4B;mBACH;EAApC,YAAoC;EAEvB,OAAO,iBAAiB,SAAS,gBAAgB,wBAAwB;EAUzE,KAAK,iBAAiB,uBAAuB;EAY7C,OAAO,kBAAkB"}