@uapkg/cli 1.2.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 -129
  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 -244
  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,60 +1,56 @@
1
- import * as CSharpAst from '@amplication/csharp-ast';
1
+ import * as CSharpAst from "@amplication/csharp-ast";
2
+
3
+ //#region src/postinstall/unreal/CSharpWrapperFactory.ts
2
4
  /**
3
- * Produces the hashed helper class that wraps user-supplied `classBody` content.
4
- *
5
- * The helper has the shape:
6
- *
7
- * ```csharp
8
- * static class UAPKG_<hash>
9
- * {
10
- * public static void Apply(ModuleRules|TargetRules rules|target)
11
- * {
12
- * <user body>
13
- * }
14
- * }
15
- * ```
16
- *
17
- * We use `@amplication/csharp-ast` to generate a syntactically valid class and
18
- * then patch the output:
19
- * * strip an invalid `using ;` line the library emits for empty namespaces;
20
- * * retype the `object` parameter back to the requested ModuleRules/TargetRules.
21
- */
22
- export class CSharpWrapperFactory {
23
- createWrapper(className, contextType, contextName, body) {
24
- const wrapperClass = new CSharpAst.Class({
25
- name: className,
26
- namespace: '',
27
- access: 'private',
28
- static_: true,
29
- isNestedClass: true,
30
- });
31
- const applyMethod = new CSharpAst.Method({
32
- name: 'Apply',
33
- access: 'public',
34
- isAsync: false,
35
- type: CSharpAst.MethodType.STATIC,
36
- parameters: [
37
- new CSharpAst.Parameter({
38
- name: contextName,
39
- // csharp-ast adds invalid `using ;` when ClassReference namespace is empty.
40
- // We emit with `object` and patch to ModuleRules/TargetRules below.
41
- type: CSharpAst.Type.object(),
42
- }),
43
- ],
44
- body: new CSharpAst.CodeBlock({ code: body.trim() }),
45
- });
46
- wrapperClass.addMethod(applyMethod);
47
- const writer = new CSharpAst.Writer({});
48
- writer.writeNode(wrapperClass);
49
- return this.normalize(writer.toString(), contextType, contextName);
50
- }
51
- normalize(source, contextType, contextName) {
52
- const withoutTrailing = source.trim().replace(/[ \t]+\n/g, '\n');
53
- return withoutTrailing
54
- .replace(/^private static class/m, 'static class')
55
- .replace(new RegExp(`public static void Apply\\(object\\s+${contextName}\\)`), `public static void Apply(${contextType} ${contextName})`)
56
- .replace(/\)\s*{\n/g, ')\n {\n')
57
- .replace(/;\}/g, ';\n }');
58
- }
59
- }
5
+ * Produces the hashed helper class that wraps user-supplied `classBody` content.
6
+ *
7
+ * The helper has the shape:
8
+ *
9
+ * ```csharp
10
+ * static class UAPKG_<hash>
11
+ * {
12
+ * public static void Apply(ModuleRules|TargetRules rules|target)
13
+ * {
14
+ * <user body>
15
+ * }
16
+ * }
17
+ * ```
18
+ *
19
+ * We use `@amplication/csharp-ast` to generate a syntactically valid class and
20
+ * then patch the output:
21
+ * * strip an invalid `using ;` line the library emits for empty namespaces;
22
+ * * retype the `object` parameter back to the requested ModuleRules/TargetRules.
23
+ */
24
+ var CSharpWrapperFactory = class {
25
+ createWrapper(className, contextType, contextName, body) {
26
+ const wrapperClass = new CSharpAst.Class({
27
+ name: className,
28
+ namespace: "",
29
+ access: "private",
30
+ static_: true,
31
+ isNestedClass: true
32
+ });
33
+ const applyMethod = new CSharpAst.Method({
34
+ name: "Apply",
35
+ access: "public",
36
+ isAsync: false,
37
+ type: CSharpAst.MethodType.STATIC,
38
+ parameters: [new CSharpAst.Parameter({
39
+ name: contextName,
40
+ type: CSharpAst.Type.object()
41
+ })],
42
+ body: new CSharpAst.CodeBlock({ code: body.trim() })
43
+ });
44
+ wrapperClass.addMethod(applyMethod);
45
+ const writer = new CSharpAst.Writer({});
46
+ writer.writeNode(wrapperClass);
47
+ return this.normalize(writer.toString(), contextType, contextName);
48
+ }
49
+ normalize(source, contextType, contextName) {
50
+ return source.trim().replace(/[ \t]+\n/g, "\n").replace(/^private static class/m, "static class").replace(new RegExp(`public static void Apply\\(object\\s+${contextName}\\)`), `public static void Apply(${contextType} ${contextName})`).replace(/\)\s*{\n/g, ")\n {\n").replace(/;\}/g, ";\n }");
51
+ }
52
+ };
53
+
54
+ //#endregion
55
+ export { CSharpWrapperFactory };
60
56
  //# sourceMappingURL=CSharpWrapperFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CSharpWrapperFactory.js","sourceRoot":"","sources":["../../../src/postinstall/unreal/CSharpWrapperFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAC;AAIrD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,oBAAoB;IACxB,aAAa,CAAC,SAAiB,EAAE,WAA+B,EAAE,WAAmB,EAAE,IAAY;QACxG,MAAM,YAAY,GAAG,IAAI,SAAS,CAAC,KAAK,CAAC;YACvC,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,EAAE;YACb,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,IAAI;YACb,aAAa,EAAE,IAAI;SACpB,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC;YACvC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,MAAM;YACjC,UAAU,EAAE;gBACV,IAAI,SAAS,CAAC,SAAS,CAAC;oBACtB,IAAI,EAAE,WAAW;oBACjB,4EAA4E;oBAC5E,oEAAoE;oBACpE,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE;iBAC9B,CAAC;aACH;YACD,IAAI,EAAE,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;SACrD,CAAC,CAAC;QACH,YAAY,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAEpC,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACxC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;IACrE,CAAC;IAEO,SAAS,CAAC,MAAc,EAAE,WAA+B,EAAE,WAAmB;QACpF,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjE,OAAO,eAAe;aACnB,OAAO,CAAC,wBAAwB,EAAE,cAAc,CAAC;aACjD,OAAO,CACN,IAAI,MAAM,CAAC,wCAAwC,WAAW,KAAK,CAAC,EACpE,4BAA4B,WAAW,IAAI,WAAW,GAAG,CAC1D;aACA,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC;aAClC,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACjC,CAAC;CACF"}
1
+ {"version":3,"file":"CSharpWrapperFactory.js","names":[],"sources":["../../../src/postinstall/unreal/CSharpWrapperFactory.ts"],"sourcesContent":["import * as CSharpAst from '@amplication/csharp-ast';\n\nexport type WrapperContextType = 'ModuleRules' | 'TargetRules';\n\n/**\n * Produces the hashed helper class that wraps user-supplied `classBody` content.\n *\n * The helper has the shape:\n *\n * ```csharp\n * static class UAPKG_<hash>\n * {\n * public static void Apply(ModuleRules|TargetRules rules|target)\n * {\n * <user body>\n * }\n * }\n * ```\n *\n * We use `@amplication/csharp-ast` to generate a syntactically valid class and\n * then patch the output:\n * * strip an invalid `using ;` line the library emits for empty namespaces;\n * * retype the `object` parameter back to the requested ModuleRules/TargetRules.\n */\nexport class CSharpWrapperFactory {\n public createWrapper(className: string, contextType: WrapperContextType, contextName: string, body: string): string {\n const wrapperClass = new CSharpAst.Class({\n name: className,\n namespace: '',\n access: 'private',\n static_: true,\n isNestedClass: true,\n });\n const applyMethod = new CSharpAst.Method({\n name: 'Apply',\n access: 'public',\n isAsync: false,\n type: CSharpAst.MethodType.STATIC,\n parameters: [\n new CSharpAst.Parameter({\n name: contextName,\n // csharp-ast adds invalid `using ;` when ClassReference namespace is empty.\n // We emit with `object` and patch to ModuleRules/TargetRules below.\n type: CSharpAst.Type.object(),\n }),\n ],\n body: new CSharpAst.CodeBlock({ code: body.trim() }),\n });\n wrapperClass.addMethod(applyMethod);\n\n const writer = new CSharpAst.Writer({});\n writer.writeNode(wrapperClass);\n return this.normalize(writer.toString(), contextType, contextName);\n }\n\n private normalize(source: string, contextType: WrapperContextType, contextName: string): string {\n const withoutTrailing = source.trim().replace(/[ \\t]+\\n/g, '\\n');\n return withoutTrailing\n .replace(/^private static class/m, 'static class')\n .replace(\n new RegExp(`public static void Apply\\\\(object\\\\s+${contextName}\\\\)`),\n `public static void Apply(${contextType} ${contextName})`,\n )\n .replace(/\\)\\s*{\\n/g, ')\\n {\\n')\n .replace(/;\\}/g, ';\\n }');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,IAAa,uBAAb,MAAkC;CAChC,AAAO,cAAc,WAAmB,aAAiC,aAAqB,MAAsB;EAClH,MAAM,eAAe,IAAI,UAAU,MAAM;GACvC,MAAM;GACN,WAAW;GACX,QAAQ;GACR,SAAS;GACT,eAAe;EACjB,CAAC;EACD,MAAM,cAAc,IAAI,UAAU,OAAO;GACvC,MAAM;GACN,QAAQ;GACR,SAAS;GACT,MAAM,UAAU,WAAW;GAC3B,YAAY,CACV,IAAI,UAAU,UAAU;IACtB,MAAM;IAGN,MAAM,UAAU,KAAK,OAAO;GAC9B,CAAC,CACH;GACA,MAAM,IAAI,UAAU,UAAU,EAAE,MAAM,KAAK,KAAK,EAAE,CAAC;EACrD,CAAC;EACD,aAAa,UAAU,WAAW;EAElC,MAAM,SAAS,IAAI,UAAU,OAAO,CAAC,CAAC;EACtC,OAAO,UAAU,YAAY;EAC7B,OAAO,KAAK,UAAU,OAAO,SAAS,GAAG,aAAa,WAAW;CACnE;CAEA,AAAQ,UAAU,QAAgB,aAAiC,aAA6B;EAE9F,OADwB,OAAO,KAAK,CAAC,CAAC,QAAQ,aAAa,IACtC,CAAC,CACnB,QAAQ,0BAA0B,cAAc,CAAC,CACjD,QACC,IAAI,OAAO,wCAAwC,YAAY,IAAI,GACnE,4BAA4B,YAAY,GAAG,YAAY,EACzD,CAAC,CACA,QAAQ,aAAa,YAAY,CAAC,CAClC,QAAQ,QAAQ,UAAU;CAC/B;AACF"}
@@ -1,8 +1,11 @@
1
+ //#region src/postinstall/unreal/PluginHash.d.ts
1
2
  /** Deterministic 8-char SHA-1 hash of a plugin name; used for uniquely-named helper classes. */
2
- export declare function getPluginHash(pluginName: string): string;
3
+ declare function getPluginHash(pluginName: string): string;
3
4
  /**
4
5
  * Name of the nested helper class uapkg injects into a Build.cs / Target.cs.
5
6
  * Hashed so two plugins can never collide inside the same module or target.
6
7
  */
7
- export declare function getWrapperClassName(pluginName: string): string;
8
+ declare function getWrapperClassName(pluginName: string): string;
9
+ //#endregion
10
+ export { getPluginHash, getWrapperClassName };
8
11
  //# sourceMappingURL=PluginHash.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PluginHash.d.ts","sourceRoot":"","sources":["../../../src/postinstall/unreal/PluginHash.ts"],"names":[],"mappings":"AAEA,gGAAgG;AAChG,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE9D"}
1
+ {"version":3,"file":"PluginHash.d.ts","names":[],"sources":["../../../src/postinstall/unreal/PluginHash.ts"],"mappings":";;iBAGgB,cAAc;;;;;iBAQd,oBAAoB"}
@@ -1,13 +1,18 @@
1
- import { createHash } from 'node:crypto';
1
+ import { createHash } from "node:crypto";
2
+
3
+ //#region src/postinstall/unreal/PluginHash.ts
2
4
  /** Deterministic 8-char SHA-1 hash of a plugin name; used for uniquely-named helper classes. */
3
- export function getPluginHash(pluginName) {
4
- return createHash('sha1').update(pluginName).digest('hex').slice(0, 8).toLowerCase();
5
+ function getPluginHash(pluginName) {
6
+ return createHash("sha1").update(pluginName).digest("hex").slice(0, 8).toLowerCase();
5
7
  }
6
8
  /**
7
- * Name of the nested helper class uapkg injects into a Build.cs / Target.cs.
8
- * Hashed so two plugins can never collide inside the same module or target.
9
- */
10
- export function getWrapperClassName(pluginName) {
11
- return `UAPKG_${getPluginHash(pluginName)}`;
9
+ * Name of the nested helper class uapkg injects into a Build.cs / Target.cs.
10
+ * Hashed so two plugins can never collide inside the same module or target.
11
+ */
12
+ function getWrapperClassName(pluginName) {
13
+ return `UAPKG_${getPluginHash(pluginName)}`;
12
14
  }
15
+
16
+ //#endregion
17
+ export { getPluginHash, getWrapperClassName };
13
18
  //# sourceMappingURL=PluginHash.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PluginHash.js","sourceRoot":"","sources":["../../../src/postinstall/unreal/PluginHash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,gGAAgG;AAChG,MAAM,UAAU,aAAa,CAAC,UAAkB;IAC9C,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AACvF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAAkB;IACpD,OAAO,SAAS,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"file":"PluginHash.js","names":[],"sources":["../../../src/postinstall/unreal/PluginHash.ts"],"sourcesContent":["import { createHash } from 'node:crypto';\n\n/** Deterministic 8-char SHA-1 hash of a plugin name; used for uniquely-named helper classes. */\nexport function getPluginHash(pluginName: string): string {\n return createHash('sha1').update(pluginName).digest('hex').slice(0, 8).toLowerCase();\n}\n\n/**\n * Name of the nested helper class uapkg injects into a Build.cs / Target.cs.\n * Hashed so two plugins can never collide inside the same module or target.\n */\nexport function getWrapperClassName(pluginName: string): string {\n return `UAPKG_${getPluginHash(pluginName)}`;\n}\n"],"mappings":";;;;AAGA,SAAgB,cAAc,YAA4B;CACxD,OAAO,WAAW,MAAM,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,YAAY;AACrF;;;;;AAMA,SAAgB,oBAAoB,YAA4B;CAC9D,OAAO,SAAS,cAAc,UAAU;AAC1C"}
@@ -1,3 +1,4 @@
1
+ //#region src/postinstall/unreal/PrettyParseError.d.ts
1
2
  /**
2
3
  * Structured parse failure for C# build files. Emitted as the `reason` payload
3
4
  * of `POSTINSTALL_LOAD_FAILED`-adjacent diagnostics by injector callers.
@@ -6,10 +7,12 @@
6
7
  * it composes cleanly with `try/catch`, but the new postinstall subsystem never
7
8
  * lets it escape — injectors catch and convert to diagnostics.
8
9
  */
9
- export declare class PrettyParseError extends Error {
10
- readonly filePath: string;
11
- readonly line: number;
12
- readonly column: number;
13
- constructor(filePath: string, message: string, source: string, index: number);
10
+ declare class PrettyParseError extends Error {
11
+ readonly filePath: string;
12
+ readonly line: number;
13
+ readonly column: number;
14
+ constructor(filePath: string, message: string, source: string, index: number);
14
15
  }
16
+ //#endregion
17
+ export { PrettyParseError };
15
18
  //# sourceMappingURL=PrettyParseError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrettyParseError.d.ts","sourceRoot":"","sources":["../../../src/postinstall/unreal/PrettyParseError.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,MAAM,EAAE,MAAM,CAAC;gBAEZ,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CASpF"}
1
+ {"version":3,"file":"PrettyParseError.d.ts","names":[],"sources":["../../../src/postinstall/unreal/PrettyParseError.ts"],"mappings":";;;;;;;;;cAQa,yBAAyB;WACpB;WACA;WACA;EAEhB,YAAmB,kBAAkB,iBAAiB,gBAAgB"}
@@ -1,43 +1,43 @@
1
+ //#region src/postinstall/unreal/PrettyParseError.ts
1
2
  /**
2
- * Structured parse failure for C# build files. Emitted as the `reason` payload
3
- * of `POSTINSTALL_LOAD_FAILED`-adjacent diagnostics by injector callers.
4
- *
5
- * Unlike the legacy version this class is still a standard `Error` subclass so
6
- * it composes cleanly with `try/catch`, but the new postinstall subsystem never
7
- * lets it escape — injectors catch and convert to diagnostics.
8
- */
9
- export class PrettyParseError extends Error {
10
- filePath;
11
- line;
12
- column;
13
- constructor(filePath, message, source, index) {
14
- const { line, column } = toLineAndColumn(source, index);
15
- const snippet = formatSnippet(source, line, column);
16
- super(`${filePath}:${line}:${column} ${message}\n${snippet}`);
17
- this.name = 'PrettyParseError';
18
- this.filePath = filePath;
19
- this.line = line;
20
- this.column = column;
21
- }
22
- }
3
+ * Structured parse failure for C# build files. Emitted as the `reason` payload
4
+ * of `POSTINSTALL_LOAD_FAILED`-adjacent diagnostics by injector callers.
5
+ *
6
+ * Unlike the legacy version this class is still a standard `Error` subclass so
7
+ * it composes cleanly with `try/catch`, but the new postinstall subsystem never
8
+ * lets it escape — injectors catch and convert to diagnostics.
9
+ */
10
+ var PrettyParseError = class extends Error {
11
+ filePath;
12
+ line;
13
+ column;
14
+ constructor(filePath, message, source, index) {
15
+ const { line, column } = toLineAndColumn(source, index);
16
+ const snippet = formatSnippet(source, line, column);
17
+ super(`${filePath}:${line}:${column} ${message}\n${snippet}`);
18
+ this.name = "PrettyParseError";
19
+ this.filePath = filePath;
20
+ this.line = line;
21
+ this.column = column;
22
+ }
23
+ };
23
24
  function toLineAndColumn(source, index) {
24
- let line = 1;
25
- let column = 1;
26
- const limit = Math.min(index, source.length);
27
- for (let i = 0; i < limit; i += 1) {
28
- if (source[i] === '\n') {
29
- line += 1;
30
- column = 1;
31
- }
32
- else {
33
- column += 1;
34
- }
35
- }
36
- return { line, column };
25
+ let line = 1;
26
+ let column = 1;
27
+ const limit = Math.min(index, source.length);
28
+ for (let i = 0; i < limit; i += 1) if (source[i] === "\n") {
29
+ line += 1;
30
+ column = 1;
31
+ } else column += 1;
32
+ return {
33
+ line,
34
+ column
35
+ };
37
36
  }
38
37
  function formatSnippet(source, line, column) {
39
- const lines = source.split(/\r?\n/);
40
- const lineText = lines[line - 1] ?? '';
41
- return `${lineText}\n${' '.repeat(Math.max(0, column - 1))}^`;
38
+ return `${source.split(/\r?\n/)[line - 1] ?? ""}\n${" ".repeat(Math.max(0, column - 1))}^`;
42
39
  }
40
+
41
+ //#endregion
42
+ export { PrettyParseError };
43
43
  //# sourceMappingURL=PrettyParseError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrettyParseError.js","sourceRoot":"","sources":["../../../src/postinstall/unreal/PrettyParseError.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzB,QAAQ,CAAS;IACjB,IAAI,CAAS;IACb,MAAM,CAAS;IAE/B,YAAmB,QAAgB,EAAE,OAAe,EAAE,MAAc,EAAE,KAAa;QACjF,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,eAAe,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QACpD,KAAK,CAAC,GAAG,QAAQ,IAAI,IAAI,IAAI,MAAM,IAAI,OAAO,KAAK,OAAO,EAAE,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,SAAS,eAAe,CAAC,MAAc,EAAE,KAAa;IACpD,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YACvB,IAAI,IAAI,CAAC,CAAC;YACV,MAAM,GAAG,CAAC,CAAC;QACb,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,CAAC,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1B,CAAC;AAED,SAAS,aAAa,CAAC,MAAc,EAAE,IAAY,EAAE,MAAc;IACjE,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IACvC,OAAO,GAAG,QAAQ,KAAK,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AAChE,CAAC"}
1
+ {"version":3,"file":"PrettyParseError.js","names":[],"sources":["../../../src/postinstall/unreal/PrettyParseError.ts"],"sourcesContent":["/**\n * Structured parse failure for C# build files. Emitted as the `reason` payload\n * of `POSTINSTALL_LOAD_FAILED`-adjacent diagnostics by injector callers.\n *\n * Unlike the legacy version this class is still a standard `Error` subclass so\n * it composes cleanly with `try/catch`, but the new postinstall subsystem never\n * lets it escape — injectors catch and convert to diagnostics.\n */\nexport class PrettyParseError extends Error {\n public readonly filePath: string;\n public readonly line: number;\n public readonly column: number;\n\n public constructor(filePath: string, message: string, source: string, index: number) {\n const { line, column } = toLineAndColumn(source, index);\n const snippet = formatSnippet(source, line, column);\n super(`${filePath}:${line}:${column} ${message}\\n${snippet}`);\n this.name = 'PrettyParseError';\n this.filePath = filePath;\n this.line = line;\n this.column = column;\n }\n}\n\nfunction toLineAndColumn(source: string, index: number): { line: number; column: number } {\n let line = 1;\n let column = 1;\n const limit = Math.min(index, source.length);\n for (let i = 0; i < limit; i += 1) {\n if (source[i] === '\\n') {\n line += 1;\n column = 1;\n } else {\n column += 1;\n }\n }\n return { line, column };\n}\n\nfunction formatSnippet(source: string, line: number, column: number): string {\n const lines = source.split(/\\r?\\n/);\n const lineText = lines[line - 1] ?? '';\n return `${lineText}\\n${' '.repeat(Math.max(0, column - 1))}^`;\n}\n"],"mappings":";;;;;;;;;AAQA,IAAa,mBAAb,cAAsC,MAAM;CAC1C,AAAgB;CAChB,AAAgB;CAChB,AAAgB;CAEhB,AAAO,YAAY,UAAkB,SAAiB,QAAgB,OAAe;EACnF,MAAM,EAAE,MAAM,WAAW,gBAAgB,QAAQ,KAAK;EACtD,MAAM,UAAU,cAAc,QAAQ,MAAM,MAAM;EAClD,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,IAAI,SAAS;EAC5D,KAAK,OAAO;EACZ,KAAK,WAAW;EAChB,KAAK,OAAO;EACZ,KAAK,SAAS;CAChB;AACF;AAEA,SAAS,gBAAgB,QAAgB,OAAiD;CACxF,IAAI,OAAO;CACX,IAAI,SAAS;CACb,MAAM,QAAQ,KAAK,IAAI,OAAO,OAAO,MAAM;CAC3C,KAAK,IAAI,IAAI,GAAG,IAAI,OAAO,KAAK,GAC9B,IAAI,OAAO,OAAO,MAAM;EACtB,QAAQ;EACR,SAAS;CACX,OACE,UAAU;CAGd,OAAO;EAAE;EAAM;CAAO;AACxB;AAEA,SAAS,cAAc,QAAgB,MAAc,QAAwB;CAG3E,OAAO,GAFO,OAAO,MAAM,OACN,CAAC,CAAC,OAAO,MAAM,GACjB,IAAI,IAAI,OAAO,KAAK,IAAI,GAAG,SAAS,CAAC,CAAC,EAAE;AAC7D"}
@@ -1,3 +1,4 @@
1
+ //#region src/postinstall/unreal/ProjectFileLocator.d.ts
1
2
  /**
2
3
  * Pure-IO locator for Unreal build-tree anchors:
3
4
  * * `*.Build.cs` files under `<projectRoot>/Source`
@@ -7,14 +8,16 @@
7
8
  * This module does no parsing; {@link UnrealSourceCatalog} pairs the returned
8
9
  * paths with a {@link CSharpStructureAnalyzer} to validate them.
9
10
  */
10
- export declare class ProjectFileLocator {
11
- findBuildFiles(projectRoot: string): string[];
12
- findTargetFiles(projectRoot: string): string[];
13
- /**
14
- * Returns the single `.uproject` file at `projectRoot`, or throws if 0 or 2+
15
- * exist. Callers in the new subsystem catch and convert to diagnostics.
16
- */
17
- findProjectFile(projectRoot: string): string;
18
- private findBySuffix;
11
+ declare class ProjectFileLocator {
12
+ findBuildFiles(projectRoot: string): string[];
13
+ findTargetFiles(projectRoot: string): string[];
14
+ /**
15
+ * Returns the single `.uproject` file at `projectRoot`, or throws if 0 or 2+
16
+ * exist. Callers in the new subsystem catch and convert to diagnostics.
17
+ */
18
+ findProjectFile(projectRoot: string): string;
19
+ private findBySuffix;
19
20
  }
21
+ //#endregion
22
+ export { ProjectFileLocator };
20
23
  //# sourceMappingURL=ProjectFileLocator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectFileLocator.d.ts","sourceRoot":"","sources":["../../../src/postinstall/unreal/ProjectFileLocator.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,qBAAa,kBAAkB;IACtB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE;IAI7C,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE;IAIrD;;;OAGG;IACI,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAWnD,OAAO,CAAC,YAAY;CAkBrB"}
1
+ {"version":3,"file":"ProjectFileLocator.d.ts","names":[],"sources":["../../../src/postinstall/unreal/ProjectFileLocator.ts"],"mappings":";;;;;;;;;;cAYa;EACJ,eAAe;EAIf,gBAAgB;;;;;EAQhB,gBAAgB;UAWf"}
@@ -1,53 +1,51 @@
1
- import fs from 'node:fs';
2
- import * as path from 'node:path';
1
+ import * as path$1 from "node:path";
2
+ import fs from "node:fs";
3
+
4
+ //#region src/postinstall/unreal/ProjectFileLocator.ts
3
5
  /**
4
- * Pure-IO locator for Unreal build-tree anchors:
5
- * * `*.Build.cs` files under `<projectRoot>/Source`
6
- * * `*.Target.cs` files under `<projectRoot>/Source`
7
- * * The single `*.uproject` at the project root.
8
- *
9
- * This module does no parsing; {@link UnrealSourceCatalog} pairs the returned
10
- * paths with a {@link CSharpStructureAnalyzer} to validate them.
11
- */
12
- export class ProjectFileLocator {
13
- findBuildFiles(projectRoot) {
14
- return this.findBySuffix(path.join(projectRoot, 'Source'), '.Build.cs');
15
- }
16
- findTargetFiles(projectRoot) {
17
- return this.findBySuffix(path.join(projectRoot, 'Source'), '.Target.cs');
18
- }
19
- /**
20
- * Returns the single `.uproject` file at `projectRoot`, or throws if 0 or 2+
21
- * exist. Callers in the new subsystem catch and convert to diagnostics.
22
- */
23
- findProjectFile(projectRoot) {
24
- const entries = fs
25
- .readdirSync(projectRoot, { withFileTypes: true })
26
- .filter((entry) => entry.isFile() && entry.name.toLowerCase().endsWith('.uproject'))
27
- .map((entry) => path.join(projectRoot, entry.name));
28
- if (entries.length !== 1) {
29
- throw new Error(`Expected exactly one .uproject in ${projectRoot}, found ${entries.length}`);
30
- }
31
- return entries[0];
32
- }
33
- findBySuffix(root, suffix) {
34
- if (!fs.existsSync(root))
35
- return [];
36
- const files = [];
37
- const stack = [root];
38
- while (stack.length > 0) {
39
- const current = stack.pop();
40
- for (const entry of fs.readdirSync(current, { withFileTypes: true })) {
41
- const fullPath = path.join(current, entry.name);
42
- if (entry.isDirectory()) {
43
- stack.push(fullPath);
44
- continue;
45
- }
46
- if (entry.isFile() && fullPath.endsWith(suffix))
47
- files.push(fullPath);
48
- }
49
- }
50
- return files.sort((a, b) => a.localeCompare(b));
51
- }
52
- }
6
+ * Pure-IO locator for Unreal build-tree anchors:
7
+ * * `*.Build.cs` files under `<projectRoot>/Source`
8
+ * * `*.Target.cs` files under `<projectRoot>/Source`
9
+ * * The single `*.uproject` at the project root.
10
+ *
11
+ * This module does no parsing; {@link UnrealSourceCatalog} pairs the returned
12
+ * paths with a {@link CSharpStructureAnalyzer} to validate them.
13
+ */
14
+ var ProjectFileLocator = class {
15
+ findBuildFiles(projectRoot) {
16
+ return this.findBySuffix(path$1.join(projectRoot, "Source"), ".Build.cs");
17
+ }
18
+ findTargetFiles(projectRoot) {
19
+ return this.findBySuffix(path$1.join(projectRoot, "Source"), ".Target.cs");
20
+ }
21
+ /**
22
+ * Returns the single `.uproject` file at `projectRoot`, or throws if 0 or 2+
23
+ * exist. Callers in the new subsystem catch and convert to diagnostics.
24
+ */
25
+ findProjectFile(projectRoot) {
26
+ const entries = fs.readdirSync(projectRoot, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.toLowerCase().endsWith(".uproject")).map((entry) => path$1.join(projectRoot, entry.name));
27
+ if (entries.length !== 1) throw new Error(`Expected exactly one .uproject in ${projectRoot}, found ${entries.length}`);
28
+ return entries[0];
29
+ }
30
+ findBySuffix(root, suffix) {
31
+ if (!fs.existsSync(root)) return [];
32
+ const files = [];
33
+ const stack = [root];
34
+ while (stack.length > 0) {
35
+ const current = stack.pop();
36
+ for (const entry of fs.readdirSync(current, { withFileTypes: true })) {
37
+ const fullPath = path$1.join(current, entry.name);
38
+ if (entry.isDirectory()) {
39
+ stack.push(fullPath);
40
+ continue;
41
+ }
42
+ if (entry.isFile() && fullPath.endsWith(suffix)) files.push(fullPath);
43
+ }
44
+ }
45
+ return files.sort((a, b) => a.localeCompare(b));
46
+ }
47
+ };
48
+
49
+ //#endregion
50
+ export { ProjectFileLocator };
53
51
  //# sourceMappingURL=ProjectFileLocator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectFileLocator.js","sourceRoot":"","sources":["../../../src/postinstall/unreal/ProjectFileLocator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC;;;;;;;;GAQG;AACH,MAAM,OAAO,kBAAkB;IACtB,cAAc,CAAC,WAAmB;QACvC,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,CAAC;IAC1E,CAAC;IAEM,eAAe,CAAC,WAAmB;QACxC,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACI,eAAe,CAAC,WAAmB;QACxC,MAAM,OAAO,GAAG,EAAE;aACf,WAAW,CAAC,WAAW,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;aACjD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;aACnF,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QACtD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,qCAAqC,WAAW,WAAW,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAC/F,CAAC;QACD,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAEO,YAAY,CAAC,IAAY,EAAE,MAAc;QAC/C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;YAAE,OAAO,EAAE,CAAC;QAEpC,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC;QACrB,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,EAAY,CAAC;YACtC,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;gBACrE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;gBAChD,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;oBACxB,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBACrB,SAAS;gBACX,CAAC;gBACD,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;oBAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACxE,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,CAAC;CACF"}
1
+ {"version":3,"file":"ProjectFileLocator.js","names":["path"],"sources":["../../../src/postinstall/unreal/ProjectFileLocator.ts"],"sourcesContent":["import fs from 'node:fs';\nimport * as path from 'node:path';\n\n/**\n * Pure-IO locator for Unreal build-tree anchors:\n * * `*.Build.cs` files under `<projectRoot>/Source`\n * * `*.Target.cs` files under `<projectRoot>/Source`\n * * The single `*.uproject` at the project root.\n *\n * This module does no parsing; {@link UnrealSourceCatalog} pairs the returned\n * paths with a {@link CSharpStructureAnalyzer} to validate them.\n */\nexport class ProjectFileLocator {\n public findBuildFiles(projectRoot: string): string[] {\n return this.findBySuffix(path.join(projectRoot, 'Source'), '.Build.cs');\n }\n\n public findTargetFiles(projectRoot: string): string[] {\n return this.findBySuffix(path.join(projectRoot, 'Source'), '.Target.cs');\n }\n\n /**\n * Returns the single `.uproject` file at `projectRoot`, or throws if 0 or 2+\n * exist. Callers in the new subsystem catch and convert to diagnostics.\n */\n public findProjectFile(projectRoot: string): string {\n const entries = fs\n .readdirSync(projectRoot, { withFileTypes: true })\n .filter((entry) => entry.isFile() && entry.name.toLowerCase().endsWith('.uproject'))\n .map((entry) => path.join(projectRoot, entry.name));\n if (entries.length !== 1) {\n throw new Error(`Expected exactly one .uproject in ${projectRoot}, found ${entries.length}`);\n }\n return entries[0];\n }\n\n private findBySuffix(root: string, suffix: string): string[] {\n if (!fs.existsSync(root)) return [];\n\n const files: string[] = [];\n const stack = [root];\n while (stack.length > 0) {\n const current = stack.pop() as string;\n for (const entry of fs.readdirSync(current, { withFileTypes: true })) {\n const fullPath = path.join(current, entry.name);\n if (entry.isDirectory()) {\n stack.push(fullPath);\n continue;\n }\n if (entry.isFile() && fullPath.endsWith(suffix)) files.push(fullPath);\n }\n }\n return files.sort((a, b) => a.localeCompare(b));\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,IAAa,qBAAb,MAAgC;CAC9B,AAAO,eAAe,aAA+B;EACnD,OAAO,KAAK,aAAaA,OAAK,KAAK,aAAa,QAAQ,GAAG,WAAW;CACxE;CAEA,AAAO,gBAAgB,aAA+B;EACpD,OAAO,KAAK,aAAaA,OAAK,KAAK,aAAa,QAAQ,GAAG,YAAY;CACzE;;;;;CAMA,AAAO,gBAAgB,aAA6B;EAClD,MAAM,UAAU,GACb,YAAY,aAAa,EAAE,eAAe,KAAK,CAAC,CAAC,CACjD,QAAQ,UAAU,MAAM,OAAO,KAAK,MAAM,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CACnF,KAAK,UAAUA,OAAK,KAAK,aAAa,MAAM,IAAI,CAAC;EACpD,IAAI,QAAQ,WAAW,GACrB,MAAM,IAAI,MAAM,qCAAqC,YAAY,UAAU,QAAQ,QAAQ;EAE7F,OAAO,QAAQ;CACjB;CAEA,AAAQ,aAAa,MAAc,QAA0B;EAC3D,IAAI,CAAC,GAAG,WAAW,IAAI,GAAG,OAAO,CAAC;EAElC,MAAM,QAAkB,CAAC;EACzB,MAAM,QAAQ,CAAC,IAAI;EACnB,OAAO,MAAM,SAAS,GAAG;GACvB,MAAM,UAAU,MAAM,IAAI;GAC1B,KAAK,MAAM,SAAS,GAAG,YAAY,SAAS,EAAE,eAAe,KAAK,CAAC,GAAG;IACpE,MAAM,WAAWA,OAAK,KAAK,SAAS,MAAM,IAAI;IAC9C,IAAI,MAAM,YAAY,GAAG;KACvB,MAAM,KAAK,QAAQ;KACnB;IACF;IACA,IAAI,MAAM,OAAO,KAAK,SAAS,SAAS,MAAM,GAAG,MAAM,KAAK,QAAQ;GACtE;EACF;EACA,OAAO,MAAM,MAAM,GAAG,MAAM,EAAE,cAAc,CAAC,CAAC;CAChD;AACF"}
@@ -1,9 +1,10 @@
1
- import { type Result } from '@uapkg/diagnostics';
2
- import type { ZoneDefinition } from '../api/PostinstallDsl.js';
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';
1
+ import { ZoneDefinition } from "../api/PostinstallDsl.js";
2
+ import { MarkerBlockEditor } from "../markers/MarkerBlockEditor.js";
3
+ import { CSharpInjectionEngine } from "./CSharpInjectionEngine.js";
4
+ import { CSharpStructureAnalyzer } from "./CSharpStructureAnalyzer.js";
5
+ import { CSharpWrapperFactory } from "./CSharpWrapperFactory.js";
6
+ import { Result } from "@uapkg/diagnostics";
7
+ //#region src/postinstall/unreal/TargetCsInjector.d.ts
7
8
  /**
8
9
  * Injects a plugin's `setupTargets` content into a single `*.Target.cs` file.
9
10
  *
@@ -12,12 +13,14 @@ import { CSharpWrapperFactory } from './CSharpWrapperFactory.js';
12
13
  * Pre-existing owned marker blocks are integrity-checked before mutation and
13
14
  * surfaced as `POSTINSTALL_MARKER_CORRUPT` on failure.
14
15
  */
15
- export declare class TargetCsInjector {
16
- private readonly analyzer;
17
- private readonly wrapperFactory;
18
- private readonly injector;
19
- private readonly markerEditor;
20
- constructor(analyzer?: CSharpStructureAnalyzer, wrapperFactory?: CSharpWrapperFactory, injector?: CSharpInjectionEngine, markerEditor?: MarkerBlockEditor);
21
- apply(filePath: string, pluginName: string, zones: ZoneDefinition): Result<void>;
16
+ declare class TargetCsInjector {
17
+ private readonly analyzer;
18
+ private readonly wrapperFactory;
19
+ private readonly injector;
20
+ private readonly markerEditor;
21
+ constructor(analyzer?: CSharpStructureAnalyzer, wrapperFactory?: CSharpWrapperFactory, injector?: CSharpInjectionEngine, markerEditor?: MarkerBlockEditor);
22
+ apply(filePath: string, pluginName: string, zones: ZoneDefinition): Result<void>;
22
23
  }
24
+ //#endregion
25
+ export { TargetCsInjector };
23
26
  //# sourceMappingURL=TargetCsInjector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TargetCsInjector.d.ts","sourceRoot":"","sources":["../../../src/postinstall/unreal/TargetCsInjector.ts"],"names":[],"mappings":"AACA,OAAO,EAAqC,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAKjE;;;;;;;GAOG;AACH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAHZ,QAAQ,GAAE,uBAAuD,EACjE,cAAc,GAAE,oBAAiD,EACjE,QAAQ,GAAE,qBAAmD,EAC7D,YAAY,GAAE,iBAA2C;IAGrE,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC;CAgCxF"}
1
+ {"version":3,"file":"TargetCsInjector.d.ts","names":[],"sources":["../../../src/postinstall/unreal/TargetCsInjector.ts"],"mappings":";;;;;;;;;;;;;;;cAmBa;mBAEQ;mBACA;mBACA;mBACA;EAJnB,YACmB,WAAU,yBACV,iBAAgB,sBAChB,WAAU,uBACV,eAAc;EAG1B,MAAM,kBAAkB,oBAAoB,OAAO,iBAAiB"}