@uapkg/cli 1.3.0 → 1.3.2

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
package/dist/index.js CHANGED
@@ -1,53 +1,60 @@
1
- // ---------------------------------------------------------------------------
2
- // @uapkg/uapkg — public API
3
- //
4
- // Phase 8 + Phase 10 final surface. Legacy exports (`UAPKGManifest`,
5
- // `FileManifestRepository`, `DependencyGraphBuilder`, `TOMLLockfileRepository`,
6
- // `DependencyInstaller`, `SafetyPolicy`, etc.) were removed in Phase 10; use
7
- // `@uapkg/package-manifest` + `@uapkg/package-manifest-schema` instead.
8
- // ---------------------------------------------------------------------------
9
- // Application dispatcher + composition root
10
- export { CompositionRoot } from './app/CompositionRoot.js';
11
- export { UAPKGApplication } from './app/UAPKGApplication.js';
12
- // CLI
13
- export { parseUAPKGCommandLine } from './cli/parseCommandLine.js';
14
- export { runUAPKGCLI } from './cli/runUAPKGCLI.js';
15
- export { createUAPKGCommandLineFactory, UAPKG_WHOAMI_FIELDS, UAPKGCommandLineFactory, } from './cli/UAPKGCommandLine.js';
16
- // Commands — new surface
17
- export { AddCommand } from './commands/AddCommand.js';
18
- // Commands — retained, ported onto CompositionRoot in Phase 10
19
- export { ConfigCommand } from './commands/ConfigCommand.js';
20
- export { InitCommand } from './commands/InitCommand.js';
21
- export { InstallCommand } from './commands/InstallCommand.js';
22
- export { ListCommand } from './commands/ListCommand.js';
23
- export { LoginCommand } from './commands/LoginCommand.js';
24
- export { LogoutCommand } from './commands/LogoutCommand.js';
25
- export { OutdatedCommand } from './commands/OutdatedCommand.js';
26
- export { PackCommand } from './commands/PackCommand.js';
27
- export { ProjectGetNameCommand, } from './commands/ProjectGetNameCommand.js';
28
- export { PublishCommand } from './commands/PublishCommand.js';
29
- export { RegistryCommand, } from './commands/RegistryCommand.js';
30
- export { RemoveCommand } from './commands/RemoveCommand.js';
31
- export { RequestsCommand } from './commands/RequestsCommand.js';
32
- export { UpdateCommand } from './commands/UpdateCommand.js';
33
- export { WhoamiCommand, } from './commands/WhoamiCommand.js';
34
- export { WhyCommand } from './commands/WhyCommand.js';
35
- // Control-plane authentication
36
- export { AccountManager, controlPlaneDiagnosticForError, describeControlPlaneError, LoginError, loginDiagnosticForError, } from './control-plane/AccountManager.js';
37
- export { AuthMetadataStore } from './control-plane/AuthMetadataStore.js';
38
- export { ControlPlaneClient, } from './control-plane/ControlPlaneClient.js';
39
- export * from './control-plane/ControlPlaneTypes.js';
40
- export { CredentialStore } from './control-plane/CredentialStore.js';
41
- export { DPoPKeyStore } from './control-plane/DPoPKeyStore.js';
42
- export { FileRegistryGrantLock, } from './control-plane/RegistryGrantLock.js';
43
- export { canonicalizeRegistryGitOrigin, fingerprintRegistryGitOrigin, RegistryTrustResolver, } from './control-plane/RegistryTrustResolver.js';
44
- // Postinstall — new subsystem (Phase 7)
45
- export * from './postinstall/index.js';
46
- // Prompt abstractions (used by init)
47
- export { InkPromptService } from './prompts/InkPromptService.js';
48
- export { ProjectContextDetector, } from './prompts/ProjectContextDetector.js';
49
- // Reporting
50
- export { DiagnosticReporter } from './reporting/DiagnosticReporter.js';
51
- export { InstallProgressReporter } from './reporting/InstallProgressReporter.js';
52
- export { JsonReporter } from './reporting/JsonReporter.js';
53
- //# sourceMappingURL=index.js.map
1
+ import { InstallProgressReporter } from "./reporting/InstallProgressReporter.js";
2
+ import { InstallCommand } from "./commands/InstallCommand.js";
3
+ import { AddCommand } from "./commands/AddCommand.js";
4
+ import { DiagnosticReporter } from "./reporting/DiagnosticReporter.js";
5
+ import { ConfigCommand } from "./commands/ConfigCommand.js";
6
+ import { InitCommand } from "./commands/InitCommand.js";
7
+ import { ListCommand } from "./commands/ListCommand.js";
8
+ import { FileRegistryGrantLock } from "./control-plane/RegistryGrantLock.js";
9
+ import { AuthMetadataStore } from "./control-plane/AuthMetadataStore.js";
10
+ import { ControlPlaneError, OAuthScopeInsufficientError, OAuthScopeUnsupportedError, UAPKG_AUTHORIZATION_ISSUER, UAPKG_CLI_CLIENT_ID, UAPKG_CLI_SCOPES, UAPKG_CONTROL_PLANE_API, UAPKG_GITHUB_OIDC_AUDIENCE, isOAuthScopeToken, isUAPKGCliScope, knownUAPKGCliScopes, parseOAuthScopeTokens, parseUAPKGCliScopeString, registryAudience } from "./control-plane/ControlPlaneTypes.js";
11
+ import { ControlPlaneClient } from "./control-plane/ControlPlaneClient.js";
12
+ import { CredentialStore } from "./control-plane/CredentialStore.js";
13
+ import { DPoPKeyStore } from "./control-plane/DPoPKeyStore.js";
14
+ import { AccountManager, LoginError, controlPlaneDiagnosticForError, describeControlPlaneError, loginDiagnosticForError } from "./control-plane/AccountManager.js";
15
+ import { LoginCommand } from "./commands/LoginCommand.js";
16
+ import { LogoutCommand } from "./commands/LogoutCommand.js";
17
+ import { OutdatedCommand } from "./commands/OutdatedCommand.js";
18
+ import { InkPromptService } from "./prompts/InkPromptService.js";
19
+ import { PackCommand } from "./commands/PackCommand.js";
20
+ import { ProjectGetNameCommand } from "./commands/ProjectGetNameCommand.js";
21
+ import { PublishCommand } from "./commands/PublishCommand.js";
22
+ import { RegistryCommand } from "./commands/RegistryCommand.js";
23
+ import { RemoveCommand } from "./commands/RemoveCommand.js";
24
+ import { RequestsCommand } from "./commands/RequestsCommand.js";
25
+ import { UpdateCommand } from "./commands/UpdateCommand.js";
26
+ import { WhoamiCommand } from "./commands/WhoamiCommand.js";
27
+ import { WhyCommand } from "./commands/WhyCommand.js";
28
+ import { ProjectContextDetector } from "./prompts/ProjectContextDetector.js";
29
+ import { RegistryTrustResolver, canonicalizeRegistryGitOrigin, fingerprintRegistryGitOrigin } from "./control-plane/RegistryTrustResolver.js";
30
+ import { EntryResolver } from "./postinstall/loader/EntryResolver.js";
31
+ import { EsbuildTranspiler } from "./postinstall/loader/EsbuildTranspiler.js";
32
+ import { PostinstallDefinitionSchema, ProjectSetupSchema, ZoneSchema } from "./postinstall/api/PostinstallDsl.js";
33
+ import { ExportValidator } from "./postinstall/loader/ExportValidator.js";
34
+ import { ModuleImporter } from "./postinstall/loader/ModuleImporter.js";
35
+ import { PostinstallLoader } from "./postinstall/loader/PostinstallLoader.js";
36
+ import { PostinstallPolicyGate } from "./postinstall/policy/PostinstallPolicyGate.js";
37
+ import { MarkerBlockService } from "./postinstall/markers/MarkerBlockService.js";
38
+ import { MarkerIntegrityValidator } from "./postinstall/markers/MarkerIntegrityValidator.js";
39
+ import { MarkerBlockEditor } from "./postinstall/markers/MarkerBlockEditor.js";
40
+ import { CSharpInjectionEngine } from "./postinstall/unreal/CSharpInjectionEngine.js";
41
+ import { PrettyParseError } from "./postinstall/unreal/PrettyParseError.js";
42
+ import { CSharpStructureAnalyzer } from "./postinstall/unreal/CSharpStructureAnalyzer.js";
43
+ import { CSharpWrapperFactory } from "./postinstall/unreal/CSharpWrapperFactory.js";
44
+ import { getPluginHash, getWrapperClassName } from "./postinstall/unreal/PluginHash.js";
45
+ import { BuildCsInjector } from "./postinstall/unreal/BuildCsInjector.js";
46
+ import { ProjectFileLocator } from "./postinstall/unreal/ProjectFileLocator.js";
47
+ import { TargetCsInjector } from "./postinstall/unreal/TargetCsInjector.js";
48
+ import { UnrealSourceCatalogBuilder } from "./postinstall/unreal/UnrealSourceCatalog.js";
49
+ import { UProjectInjector } from "./postinstall/unreal/UProjectInjector.js";
50
+ import { UProjectMetadataReader } from "./postinstall/unreal/UProjectMetadataReader.js";
51
+ import { PostinstallOrchestrator } from "./postinstall/runner/PostinstallOrchestrator.js";
52
+ import { JsonReporter } from "./reporting/JsonReporter.js";
53
+ import { CompositionRoot } from "./app/CompositionRoot.js";
54
+ import { UAPKGApplication } from "./app/UAPKGApplication.js";
55
+ import { UAPKGCommandLineFactory, UAPKG_WHOAMI_FIELDS, createUAPKGCommandLineFactory } from "./cli/UAPKGCommandLine.js";
56
+ import { parseUAPKGCommandLine } from "./cli/parseCommandLine.js";
57
+ import { runUAPKGCLI } from "./cli/runUAPKGCLI.js";
58
+ import { definePostinstall } from "./postinstall/api/definePostinstall.js";
59
+
60
+ export { AccountManager, AddCommand, AuthMetadataStore, BuildCsInjector, CSharpInjectionEngine, CSharpStructureAnalyzer, CSharpWrapperFactory, CompositionRoot, ConfigCommand, ControlPlaneClient, ControlPlaneError, CredentialStore, DPoPKeyStore, DiagnosticReporter, EntryResolver, EsbuildTranspiler, ExportValidator, FileRegistryGrantLock, InitCommand, InkPromptService, InstallCommand, InstallProgressReporter, JsonReporter, ListCommand, LoginCommand, LoginError, LogoutCommand, MarkerBlockEditor, MarkerBlockService, MarkerIntegrityValidator, ModuleImporter, OAuthScopeInsufficientError, OAuthScopeUnsupportedError, OutdatedCommand, PackCommand, PostinstallDefinitionSchema, PostinstallLoader, PostinstallOrchestrator, PostinstallPolicyGate, PrettyParseError, ProjectContextDetector, ProjectFileLocator, ProjectGetNameCommand, ProjectSetupSchema, PublishCommand, RegistryCommand, RegistryTrustResolver, RemoveCommand, RequestsCommand, TargetCsInjector, UAPKGApplication, UAPKGCommandLineFactory, UAPKG_AUTHORIZATION_ISSUER, UAPKG_CLI_CLIENT_ID, UAPKG_CLI_SCOPES, UAPKG_CONTROL_PLANE_API, UAPKG_GITHUB_OIDC_AUDIENCE, UAPKG_WHOAMI_FIELDS, UProjectInjector, UProjectMetadataReader, UnrealSourceCatalogBuilder, UpdateCommand, WhoamiCommand, WhyCommand, ZoneSchema, canonicalizeRegistryGitOrigin, controlPlaneDiagnosticForError, createUAPKGCommandLineFactory, definePostinstall, describeControlPlaneError, fingerprintRegistryGitOrigin, getPluginHash, getWrapperClassName, isOAuthScopeToken, isUAPKGCliScope, knownUAPKGCliScopes, loginDiagnosticForError, parseOAuthScopeTokens, parseUAPKGCliScopeString, parseUAPKGCommandLine, registryAudience, runUAPKGCLI };
@@ -1,4 +1,5 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
+ //#region src/postinstall/api/PostinstallDsl.d.ts
2
3
  /**
3
4
  * Zone-level content injected into a single Unreal build file (Build.cs or Target.cs).
4
5
  *
@@ -7,15 +8,15 @@ import { z } from 'zod';
7
8
  * in a hashed helper class and inserts a single `Apply(this)` call into the
8
9
  * constructor. The content must compile as a member list.
9
10
  */
10
- export declare const ZoneSchema: z.ZodObject<{
11
- includes: z.ZodOptional<z.ZodString>;
12
- classBody: z.ZodOptional<z.ZodString>;
11
+ declare const ZoneSchema: z.ZodObject<{
12
+ includes: z.ZodOptional<z.ZodString>;
13
+ classBody: z.ZodOptional<z.ZodString>;
13
14
  }, z.core.$strict>;
14
15
  /**
15
16
  * Project-level setup: plugins to enable in the host project's `.uproject`.
16
17
  */
17
- export declare const ProjectSetupSchema: z.ZodObject<{
18
- plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ declare const ProjectSetupSchema: z.ZodObject<{
19
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
20
  }, z.core.$strict>;
20
21
  /**
21
22
  * The authoritative shape of `export default definePostinstall({...})`.
@@ -25,20 +26,22 @@ export declare const ProjectSetupSchema: z.ZodObject<{
25
26
  * - `setupTargets`: applied to every *.Target.cs in the host project.
26
27
  * - `setupProject`: edits the host project's `.uproject`.
27
28
  */
28
- export declare const PostinstallDefinitionSchema: z.ZodObject<{
29
- setupModules: z.ZodOptional<z.ZodObject<{
30
- includes: z.ZodOptional<z.ZodString>;
31
- classBody: z.ZodOptional<z.ZodString>;
32
- }, z.core.$strict>>;
33
- setupTargets: z.ZodOptional<z.ZodObject<{
34
- includes: z.ZodOptional<z.ZodString>;
35
- classBody: z.ZodOptional<z.ZodString>;
36
- }, z.core.$strict>>;
37
- setupProject: z.ZodOptional<z.ZodObject<{
38
- plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
- }, z.core.$strict>>;
29
+ declare const PostinstallDefinitionSchema: z.ZodObject<{
30
+ setupModules: z.ZodOptional<z.ZodObject<{
31
+ includes: z.ZodOptional<z.ZodString>;
32
+ classBody: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strict>>;
34
+ setupTargets: z.ZodOptional<z.ZodObject<{
35
+ includes: z.ZodOptional<z.ZodString>;
36
+ classBody: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strict>>;
38
+ setupProject: z.ZodOptional<z.ZodObject<{
39
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
+ }, z.core.$strict>>;
40
41
  }, z.core.$strict>;
41
- export type ZoneDefinition = z.infer<typeof ZoneSchema>;
42
- export type ProjectSetupDefinition = z.infer<typeof ProjectSetupSchema>;
43
- export type PostinstallDefinition = z.infer<typeof PostinstallDefinitionSchema>;
42
+ type ZoneDefinition = z.infer<typeof ZoneSchema>;
43
+ type ProjectSetupDefinition = z.infer<typeof ProjectSetupSchema>;
44
+ type PostinstallDefinition = z.infer<typeof PostinstallDefinitionSchema>;
45
+ //#endregion
46
+ export { PostinstallDefinition, PostinstallDefinitionSchema, ProjectSetupDefinition, ProjectSetupSchema, ZoneDefinition, ZoneSchema };
44
47
  //# sourceMappingURL=PostinstallDsl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostinstallDsl.d.ts","sourceRoot":"","sources":["../../../src/postinstall/api/PostinstallDsl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;;kBAKZ,CAAC;AAEZ;;GAEG;AACH,eAAO,MAAM,kBAAkB;;kBAIpB,CAAC;AAEZ;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;kBAM7B,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACxD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"PostinstallDsl.d.ts","names":[],"sources":["../../../src/postinstall/api/PostinstallDsl.ts"],"mappings":";;;;;;;;;;cAUa,YAAU,EAAA;;;GAKZ,EAAA,KAAA;;;;cAKE,oBAAkB,EAAA;;GAIpB,EAAA,KAAA;;;;;;;;;cAUE,6BAA2B,EAAA;;;;;;;;;;;;GAM7B,EAAA,KAAA;KAEC,iBAAiB,EAAE,aAAa;KAChC,yBAAyB,EAAE,aAAa;KACxC,wBAAwB,EAAE,aAAa"}
@@ -1,39 +1,36 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
+
3
+ //#region src/postinstall/api/PostinstallDsl.ts
2
4
  /**
3
- * Zone-level content injected into a single Unreal build file (Build.cs or Target.cs).
4
- *
5
- * - `includes`: raw C# `using ...;` lines appended to the file's using block.
6
- * - `classBody`: raw C# members placed inside the target class; uapkg wraps them
7
- * in a hashed helper class and inserts a single `Apply(this)` call into the
8
- * constructor. The content must compile as a member list.
9
- */
10
- export const ZoneSchema = z
11
- .object({
12
- includes: z.string().min(1).optional(),
13
- classBody: z.string().min(1).optional(),
14
- })
15
- .strict();
5
+ * Zone-level content injected into a single Unreal build file (Build.cs or Target.cs).
6
+ *
7
+ * - `includes`: raw C# `using ...;` lines appended to the file's using block.
8
+ * - `classBody`: raw C# members placed inside the target class; uapkg wraps them
9
+ * in a hashed helper class and inserts a single `Apply(this)` call into the
10
+ * constructor. The content must compile as a member list.
11
+ */
12
+ const ZoneSchema = z.object({
13
+ includes: z.string().min(1).optional(),
14
+ classBody: z.string().min(1).optional()
15
+ }).strict();
16
16
  /**
17
- * Project-level setup: plugins to enable in the host project's `.uproject`.
18
- */
19
- export const ProjectSetupSchema = z
20
- .object({
21
- plugins: z.array(z.string().min(1)).optional(),
22
- })
23
- .strict();
17
+ * Project-level setup: plugins to enable in the host project's `.uproject`.
18
+ */
19
+ const ProjectSetupSchema = z.object({ plugins: z.array(z.string().min(1)).optional() }).strict();
24
20
  /**
25
- * The authoritative shape of `export default definePostinstall({...})`.
26
- *
27
- * Scopes:
28
- * - `setupModules`: applied to each *project postinstall module* Build.cs file.
29
- * - `setupTargets`: applied to every *.Target.cs in the host project.
30
- * - `setupProject`: edits the host project's `.uproject`.
31
- */
32
- export const PostinstallDefinitionSchema = z
33
- .object({
34
- setupModules: ZoneSchema.optional(),
35
- setupTargets: ZoneSchema.optional(),
36
- setupProject: ProjectSetupSchema.optional(),
37
- })
38
- .strict();
21
+ * The authoritative shape of `export default definePostinstall({...})`.
22
+ *
23
+ * Scopes:
24
+ * - `setupModules`: applied to each *project postinstall module* Build.cs file.
25
+ * - `setupTargets`: applied to every *.Target.cs in the host project.
26
+ * - `setupProject`: edits the host project's `.uproject`.
27
+ */
28
+ const PostinstallDefinitionSchema = z.object({
29
+ setupModules: ZoneSchema.optional(),
30
+ setupTargets: ZoneSchema.optional(),
31
+ setupProject: ProjectSetupSchema.optional()
32
+ }).strict();
33
+
34
+ //#endregion
35
+ export { PostinstallDefinitionSchema, ProjectSetupSchema, ZoneSchema };
39
36
  //# sourceMappingURL=PostinstallDsl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostinstallDsl.js","sourceRoot":"","sources":["../../../src/postinstall/api/PostinstallDsl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC;KACzC,MAAM,CAAC;IACN,YAAY,EAAE,UAAU,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,UAAU,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"PostinstallDsl.js","names":[],"sources":["../../../src/postinstall/api/PostinstallDsl.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Zone-level content injected into a single Unreal build file (Build.cs or Target.cs).\n *\n * - `includes`: raw C# `using ...;` lines appended to the file's using block.\n * - `classBody`: raw C# members placed inside the target class; uapkg wraps them\n * in a hashed helper class and inserts a single `Apply(this)` call into the\n * constructor. The content must compile as a member list.\n */\nexport const ZoneSchema = z\n .object({\n includes: z.string().min(1).optional(),\n classBody: z.string().min(1).optional(),\n })\n .strict();\n\n/**\n * Project-level setup: plugins to enable in the host project's `.uproject`.\n */\nexport const ProjectSetupSchema = z\n .object({\n plugins: z.array(z.string().min(1)).optional(),\n })\n .strict();\n\n/**\n * The authoritative shape of `export default definePostinstall({...})`.\n *\n * Scopes:\n * - `setupModules`: applied to each *project postinstall module* Build.cs file.\n * - `setupTargets`: applied to every *.Target.cs in the host project.\n * - `setupProject`: edits the host project's `.uproject`.\n */\nexport const PostinstallDefinitionSchema = z\n .object({\n setupModules: ZoneSchema.optional(),\n setupTargets: ZoneSchema.optional(),\n setupProject: ProjectSetupSchema.optional(),\n })\n .strict();\n\nexport type ZoneDefinition = z.infer<typeof ZoneSchema>;\nexport type ProjectSetupDefinition = z.infer<typeof ProjectSetupSchema>;\nexport type PostinstallDefinition = z.infer<typeof PostinstallDefinitionSchema>;\n"],"mappings":";;;;;;;;;;;AAUA,MAAa,aAAa,EACvB,OAAO;CACN,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CACrC,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CACD,OAAO;;;;AAKV,MAAa,qBAAqB,EAC/B,OAAO,EACN,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,EAC/C,CAAC,CAAC,CACD,OAAO;;;;;;;;;AAUV,MAAa,8BAA8B,EACxC,OAAO;CACN,cAAc,WAAW,SAAS;CAClC,cAAc,WAAW,SAAS;CAClC,cAAc,mBAAmB,SAAS;AAC5C,CAAC,CAAC,CACD,OAAO"}
@@ -1,4 +1,5 @@
1
- import type { PostinstallDefinition } from './PostinstallDsl.js';
1
+ import { PostinstallDefinition } from "./PostinstallDsl.js";
2
+ //#region src/postinstall/api/definePostinstall.d.ts
2
3
  /**
3
4
  * Identity helper used in user-authored `.uapkg/postinstall.ts` files:
4
5
  *
@@ -14,5 +15,7 @@ import type { PostinstallDefinition } from './PostinstallDsl.js';
14
15
  * The loader validates the shape regardless of whether the author used this
15
16
  * helper, so it is purely ergonomic.
16
17
  */
17
- export declare function definePostinstall(definition: PostinstallDefinition): PostinstallDefinition;
18
+ declare function definePostinstall(definition: PostinstallDefinition): PostinstallDefinition;
19
+ //#endregion
20
+ export { definePostinstall };
18
21
  //# sourceMappingURL=definePostinstall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"definePostinstall.d.ts","sourceRoot":"","sources":["../../../src/postinstall/api/definePostinstall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,qBAAqB,GAAG,qBAAqB,CAE1F"}
1
+ {"version":3,"file":"definePostinstall.d.ts","names":[],"sources":["../../../src/postinstall/api/definePostinstall.ts"],"mappings":";;;;;;;;;;;;;;;;;iBAiBgB,kBAAkB,YAAY,wBAAwB"}
@@ -1,19 +1,23 @@
1
+ //#region src/postinstall/api/definePostinstall.ts
1
2
  /**
2
- * Identity helper used in user-authored `.uapkg/postinstall.ts` files:
3
- *
4
- * ```ts
5
- * import { definePostinstall } from 'uapkg/postinstall';
6
- * export default definePostinstall({
7
- * setupModules: { classBody: '...' },
8
- * });
9
- * ```
10
- *
11
- * At runtime this is the identity function; at edit time it gives authors
12
- * full TypeScript autocomplete/validation against {@link PostinstallDefinition}.
13
- * The loader validates the shape regardless of whether the author used this
14
- * helper, so it is purely ergonomic.
15
- */
16
- export function definePostinstall(definition) {
17
- return definition;
3
+ * Identity helper used in user-authored `.uapkg/postinstall.ts` files:
4
+ *
5
+ * ```ts
6
+ * import { definePostinstall } from 'uapkg/postinstall';
7
+ * export default definePostinstall({
8
+ * setupModules: { classBody: '...' },
9
+ * });
10
+ * ```
11
+ *
12
+ * At runtime this is the identity function; at edit time it gives authors
13
+ * full TypeScript autocomplete/validation against {@link PostinstallDefinition}.
14
+ * The loader validates the shape regardless of whether the author used this
15
+ * helper, so it is purely ergonomic.
16
+ */
17
+ function definePostinstall(definition) {
18
+ return definition;
18
19
  }
20
+
21
+ //#endregion
22
+ export { definePostinstall };
19
23
  //# sourceMappingURL=definePostinstall.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definePostinstall.js","sourceRoot":"","sources":["../../../src/postinstall/api/definePostinstall.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAiC;IACjE,OAAO,UAAU,CAAC;AACpB,CAAC"}
1
+ {"version":3,"file":"definePostinstall.js","names":[],"sources":["../../../src/postinstall/api/definePostinstall.ts"],"sourcesContent":["import type { PostinstallDefinition } from './PostinstallDsl.js';\n\n/**\n * Identity helper used in user-authored `.uapkg/postinstall.ts` files:\n *\n * ```ts\n * import { definePostinstall } from 'uapkg/postinstall';\n * export default definePostinstall({\n * setupModules: { classBody: '...' },\n * });\n * ```\n *\n * At runtime this is the identity function; at edit time it gives authors\n * full TypeScript autocomplete/validation against {@link PostinstallDefinition}.\n * The loader validates the shape regardless of whether the author used this\n * helper, so it is purely ergonomic.\n */\nexport function definePostinstall(definition: PostinstallDefinition): PostinstallDefinition {\n return definition;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkB,YAA0D;CAC1F,OAAO;AACT"}
@@ -1,26 +1,25 @@
1
- export { definePostinstall } from './api/definePostinstall.js';
2
- export type { PostinstallDefinition, ProjectSetupDefinition, ZoneDefinition } from './api/PostinstallDsl.js';
3
- export { PostinstallDefinitionSchema, ProjectSetupSchema, ZoneSchema, } from './api/PostinstallDsl.js';
4
- export { EntryResolver, type PostinstallEntryKind, type ResolvedEntry } from './loader/EntryResolver.js';
5
- export { EsbuildTranspiler } from './loader/EsbuildTranspiler.js';
6
- export { ExportValidator } from './loader/ExportValidator.js';
7
- export { ModuleImporter, type ModuleSource } from './loader/ModuleImporter.js';
8
- export { type LoadedPostinstall, PostinstallLoader } from './loader/PostinstallLoader.js';
9
- export { MarkerBlockEditor } from './markers/MarkerBlockEditor.js';
10
- export { MarkerBlockService } from './markers/MarkerBlockService.js';
11
- export { type MarkerIntegrityFail, type MarkerIntegrityOk, type MarkerIntegrityResult, MarkerIntegrityValidator, } from './markers/MarkerIntegrityValidator.js';
12
- export { type PolicyConfigReader, type PolicyDecision, PostinstallPolicyGate, } from './policy/PostinstallPolicyGate.js';
13
- export { type PostinstallCandidate, PostinstallOrchestrator, type PostinstallOrchestratorInput, type PostinstallReport, } from './runner/PostinstallOrchestrator.js';
14
- export { BuildCsInjector } from './unreal/BuildCsInjector.js';
15
- export { CSharpInjectionEngine } from './unreal/CSharpInjectionEngine.js';
16
- export { CSharpStructureAnalyzer } from './unreal/CSharpStructureAnalyzer.js';
17
- export type { CSharpFileKind, ParsedClass, ParsedConstructor, ParsedCSharpFile, } from './unreal/CSharpStructures.js';
18
- export { CSharpWrapperFactory, type WrapperContextType } from './unreal/CSharpWrapperFactory.js';
19
- export { getPluginHash, getWrapperClassName } from './unreal/PluginHash.js';
20
- export { PrettyParseError } from './unreal/PrettyParseError.js';
21
- export { ProjectFileLocator } from './unreal/ProjectFileLocator.js';
22
- export { TargetCsInjector } from './unreal/TargetCsInjector.js';
23
- export { type SourceCatalog, UnrealSourceCatalogBuilder } from './unreal/UnrealSourceCatalog.js';
24
- export { UProjectInjector } from './unreal/UProjectInjector.js';
25
- export { UProjectMetadataReader } from './unreal/UProjectMetadataReader.js';
26
- //# sourceMappingURL=index.d.ts.map
1
+ import { PostinstallDefinition, PostinstallDefinitionSchema, ProjectSetupDefinition, ProjectSetupSchema, ZoneDefinition, ZoneSchema } from "./api/PostinstallDsl.js";
2
+ import { EntryResolver, PostinstallEntryKind, ResolvedEntry } from "./loader/EntryResolver.js";
3
+ import { EsbuildTranspiler } from "./loader/EsbuildTranspiler.js";
4
+ import { ExportValidator } from "./loader/ExportValidator.js";
5
+ import { ModuleImporter, ModuleSource } from "./loader/ModuleImporter.js";
6
+ import { LoadedPostinstall, PostinstallLoader } from "./loader/PostinstallLoader.js";
7
+ import { PolicyConfigReader, PolicyDecision, PostinstallPolicyGate } from "./policy/PostinstallPolicyGate.js";
8
+ import { MarkerBlockService } from "./markers/MarkerBlockService.js";
9
+ import { MarkerIntegrityFail, MarkerIntegrityOk, MarkerIntegrityResult, MarkerIntegrityValidator } from "./markers/MarkerIntegrityValidator.js";
10
+ import { MarkerBlockEditor } from "./markers/MarkerBlockEditor.js";
11
+ import { CSharpFileKind, ParsedCSharpFile, ParsedClass, ParsedConstructor } from "./unreal/CSharpStructures.js";
12
+ import { CSharpInjectionEngine } from "./unreal/CSharpInjectionEngine.js";
13
+ import { CSharpStructureAnalyzer } from "./unreal/CSharpStructureAnalyzer.js";
14
+ import { CSharpWrapperFactory, WrapperContextType } from "./unreal/CSharpWrapperFactory.js";
15
+ import { BuildCsInjector } from "./unreal/BuildCsInjector.js";
16
+ import { ProjectFileLocator } from "./unreal/ProjectFileLocator.js";
17
+ import { TargetCsInjector } from "./unreal/TargetCsInjector.js";
18
+ import { SourceCatalog, UnrealSourceCatalogBuilder } from "./unreal/UnrealSourceCatalog.js";
19
+ import { UProjectInjector } from "./unreal/UProjectInjector.js";
20
+ import { UProjectMetadataReader } from "./unreal/UProjectMetadataReader.js";
21
+ import { PostinstallCandidate, PostinstallOrchestrator, PostinstallOrchestratorInput, PostinstallReport } from "./runner/PostinstallOrchestrator.js";
22
+ import { definePostinstall } from "./api/definePostinstall.js";
23
+ import { getPluginHash, getWrapperClassName } from "./unreal/PluginHash.js";
24
+ import { PrettyParseError } from "./unreal/PrettyParseError.js";
25
+ export { BuildCsInjector, type CSharpFileKind, CSharpInjectionEngine, CSharpStructureAnalyzer, CSharpWrapperFactory, EntryResolver, EsbuildTranspiler, ExportValidator, type LoadedPostinstall, MarkerBlockEditor, MarkerBlockService, type MarkerIntegrityFail, type MarkerIntegrityOk, type MarkerIntegrityResult, MarkerIntegrityValidator, ModuleImporter, type ModuleSource, type ParsedCSharpFile, type ParsedClass, type ParsedConstructor, type PolicyConfigReader, type PolicyDecision, type PostinstallCandidate, type PostinstallDefinition, PostinstallDefinitionSchema, type PostinstallEntryKind, PostinstallLoader, PostinstallOrchestrator, type PostinstallOrchestratorInput, PostinstallPolicyGate, type PostinstallReport, PrettyParseError, ProjectFileLocator, type ProjectSetupDefinition, ProjectSetupSchema, type ResolvedEntry, type SourceCatalog, TargetCsInjector, UProjectInjector, UProjectMetadataReader, UnrealSourceCatalogBuilder, type WrapperContextType, type ZoneDefinition, ZoneSchema, definePostinstall, getPluginHash, getWrapperClassName };
@@ -1,37 +1,25 @@
1
- // ---------------------------------------------------------------------------
2
- // New postinstall subsystem — public surface.
3
- //
4
- // The legacy flat files in this directory (PostinstallRunner, BuildCsInjector,
5
- // etc.) remain in place until Phase 10 prunes them, so `packages/uapkg/src/
6
- // index.ts` keeps compiling. New consumers (Phase 8 CLI) should import from
7
- // this barrel only.
8
- // ---------------------------------------------------------------------------
9
- export { definePostinstall } from './api/definePostinstall.js';
10
- export { PostinstallDefinitionSchema, ProjectSetupSchema, ZoneSchema, } from './api/PostinstallDsl.js';
11
- // Loader
12
- export { EntryResolver } from './loader/EntryResolver.js';
13
- export { EsbuildTranspiler } from './loader/EsbuildTranspiler.js';
14
- export { ExportValidator } from './loader/ExportValidator.js';
15
- export { ModuleImporter } from './loader/ModuleImporter.js';
16
- export { PostinstallLoader } from './loader/PostinstallLoader.js';
17
- // Markers
18
- export { MarkerBlockEditor } from './markers/MarkerBlockEditor.js';
19
- export { MarkerBlockService } from './markers/MarkerBlockService.js';
20
- export { MarkerIntegrityValidator, } from './markers/MarkerIntegrityValidator.js';
21
- // Policy
22
- export { PostinstallPolicyGate, } from './policy/PostinstallPolicyGate.js';
23
- // Runner
24
- export { PostinstallOrchestrator, } from './runner/PostinstallOrchestrator.js';
25
- // Unreal
26
- export { BuildCsInjector } from './unreal/BuildCsInjector.js';
27
- export { CSharpInjectionEngine } from './unreal/CSharpInjectionEngine.js';
28
- export { CSharpStructureAnalyzer } from './unreal/CSharpStructureAnalyzer.js';
29
- export { CSharpWrapperFactory } from './unreal/CSharpWrapperFactory.js';
30
- export { getPluginHash, getWrapperClassName } from './unreal/PluginHash.js';
31
- export { PrettyParseError } from './unreal/PrettyParseError.js';
32
- export { ProjectFileLocator } from './unreal/ProjectFileLocator.js';
33
- export { TargetCsInjector } from './unreal/TargetCsInjector.js';
34
- export { UnrealSourceCatalogBuilder } from './unreal/UnrealSourceCatalog.js';
35
- export { UProjectInjector } from './unreal/UProjectInjector.js';
36
- export { UProjectMetadataReader } from './unreal/UProjectMetadataReader.js';
37
- //# sourceMappingURL=index.js.map
1
+ import { EntryResolver } from "./loader/EntryResolver.js";
2
+ import { EsbuildTranspiler } from "./loader/EsbuildTranspiler.js";
3
+ import { PostinstallDefinitionSchema, ProjectSetupSchema, ZoneSchema } from "./api/PostinstallDsl.js";
4
+ import { ExportValidator } from "./loader/ExportValidator.js";
5
+ import { ModuleImporter } from "./loader/ModuleImporter.js";
6
+ import { PostinstallLoader } from "./loader/PostinstallLoader.js";
7
+ import { PostinstallPolicyGate } from "./policy/PostinstallPolicyGate.js";
8
+ import { MarkerBlockService } from "./markers/MarkerBlockService.js";
9
+ import { MarkerIntegrityValidator } from "./markers/MarkerIntegrityValidator.js";
10
+ import { MarkerBlockEditor } from "./markers/MarkerBlockEditor.js";
11
+ import { CSharpInjectionEngine } from "./unreal/CSharpInjectionEngine.js";
12
+ import { PrettyParseError } from "./unreal/PrettyParseError.js";
13
+ import { CSharpStructureAnalyzer } from "./unreal/CSharpStructureAnalyzer.js";
14
+ import { CSharpWrapperFactory } from "./unreal/CSharpWrapperFactory.js";
15
+ import { getPluginHash, getWrapperClassName } from "./unreal/PluginHash.js";
16
+ import { BuildCsInjector } from "./unreal/BuildCsInjector.js";
17
+ import { ProjectFileLocator } from "./unreal/ProjectFileLocator.js";
18
+ import { TargetCsInjector } from "./unreal/TargetCsInjector.js";
19
+ import { UnrealSourceCatalogBuilder } from "./unreal/UnrealSourceCatalog.js";
20
+ import { UProjectInjector } from "./unreal/UProjectInjector.js";
21
+ import { UProjectMetadataReader } from "./unreal/UProjectMetadataReader.js";
22
+ import { PostinstallOrchestrator } from "./runner/PostinstallOrchestrator.js";
23
+ import { definePostinstall } from "./api/definePostinstall.js";
24
+
25
+ export { BuildCsInjector, CSharpInjectionEngine, CSharpStructureAnalyzer, CSharpWrapperFactory, EntryResolver, EsbuildTranspiler, ExportValidator, MarkerBlockEditor, MarkerBlockService, MarkerIntegrityValidator, ModuleImporter, PostinstallDefinitionSchema, PostinstallLoader, PostinstallOrchestrator, PostinstallPolicyGate, PrettyParseError, ProjectFileLocator, ProjectSetupSchema, TargetCsInjector, UProjectInjector, UProjectMetadataReader, UnrealSourceCatalogBuilder, ZoneSchema, definePostinstall, getPluginHash, getWrapperClassName };
@@ -1,10 +1,11 @@
1
- import { type Result } from '@uapkg/diagnostics';
1
+ import { Result } from "@uapkg/diagnostics";
2
+ //#region src/postinstall/loader/EntryResolver.d.ts
2
3
  /** Candidate extensions in resolution order (spec-mandated). */
3
- declare const CANDIDATE_EXTENSIONS: readonly ["ts", "js", "mjs"];
4
- export type PostinstallEntryKind = (typeof CANDIDATE_EXTENSIONS)[number];
5
- export interface ResolvedEntry {
6
- readonly path: string;
7
- readonly kind: PostinstallEntryKind;
4
+ declare const CANDIDATE_EXTENSIONS: readonly ['ts', 'js', 'mjs'];
5
+ type PostinstallEntryKind = (typeof CANDIDATE_EXTENSIONS)[number];
6
+ interface ResolvedEntry {
7
+ readonly path: string;
8
+ readonly kind: PostinstallEntryKind;
8
9
  }
9
10
  /**
10
11
  * Locates `.uapkg/postinstall.<ext>` inside a plugin root, enforcing the
@@ -13,8 +14,9 @@ export interface ResolvedEntry {
13
14
  * clean up ambiguity. `ok(null)` means "no postinstall defined" — a valid,
14
15
  * silent state.
15
16
  */
16
- export declare class EntryResolver {
17
- resolve(packageName: string, pluginRoot: string): Result<ResolvedEntry | null>;
17
+ declare class EntryResolver {
18
+ resolve(packageName: string, pluginRoot: string): Result<ResolvedEntry | null>;
18
19
  }
19
- export {};
20
+ //#endregion
21
+ export { EntryResolver, PostinstallEntryKind, ResolvedEntry };
20
22
  //# sourceMappingURL=EntryResolver.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntryResolver.d.ts","sourceRoot":"","sources":["../../../src/postinstall/loader/EntryResolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuD,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAEtG,gEAAgE;AAChE,QAAA,MAAM,oBAAoB,8BAA+B,CAAC;AAC1D,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;CACrC;AAED;;;;;;GAMG;AACH,qBAAa,aAAa;IACjB,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;CAuBtF"}
1
+ {"version":3,"file":"EntryResolver.d.ts","names":[],"sources":["../../../src/postinstall/loader/EntryResolver.ts"],"mappings":";;;cAKM;KACM,+BAA+B;UAE1B;WACN;WACA,MAAM;;;;;;;;;cAUJ;EACJ,QAAQ,qBAAqB,qBAAqB,OAAO"}
@@ -1,35 +1,39 @@
1
- import fs from 'node:fs';
2
- import * as path from 'node:path';
3
- import { createPostinstallDuplicateEntryDiagnostic, fail, ok } from '@uapkg/diagnostics';
1
+ import { createPostinstallDuplicateEntryDiagnostic, fail, ok } from "@uapkg/diagnostics";
2
+ import * as path$1 from "node:path";
3
+ import fs from "node:fs";
4
+
5
+ //#region src/postinstall/loader/EntryResolver.ts
4
6
  /** Candidate extensions in resolution order (spec-mandated). */
5
- const CANDIDATE_EXTENSIONS = ['ts', 'js', 'mjs'];
7
+ const CANDIDATE_EXTENSIONS = [
8
+ "ts",
9
+ "js",
10
+ "mjs"
11
+ ];
6
12
  /**
7
- * Locates `.uapkg/postinstall.<ext>` inside a plugin root, enforcing the
8
- * order `ts → js → mjs`. If the plugin has two or more candidate files an
9
- * error diagnostic `POSTINSTALL_DUPLICATE_ENTRY` is returned so the user can
10
- * clean up ambiguity. `ok(null)` means "no postinstall defined" — a valid,
11
- * silent state.
12
- */
13
- export class EntryResolver {
14
- resolve(packageName, pluginRoot) {
15
- const dir = path.join(pluginRoot, '.uapkg');
16
- if (!fs.existsSync(dir))
17
- return ok(null);
18
- const found = [];
19
- for (const kind of CANDIDATE_EXTENSIONS) {
20
- const candidate = path.join(dir, `postinstall.${kind}`);
21
- if (fs.existsSync(candidate) && fs.statSync(candidate).isFile()) {
22
- found.push({ path: candidate, kind });
23
- }
24
- }
25
- if (found.length === 0)
26
- return ok(null);
27
- if (found.length > 1) {
28
- return fail([
29
- createPostinstallDuplicateEntryDiagnostic(packageName, found.map((entry) => entry.path)),
30
- ]);
31
- }
32
- return ok(found[0]);
33
- }
34
- }
13
+ * Locates `.uapkg/postinstall.<ext>` inside a plugin root, enforcing the
14
+ * order `ts → js → mjs`. If the plugin has two or more candidate files an
15
+ * error diagnostic `POSTINSTALL_DUPLICATE_ENTRY` is returned so the user can
16
+ * clean up ambiguity. `ok(null)` means "no postinstall defined" — a valid,
17
+ * silent state.
18
+ */
19
+ var EntryResolver = class {
20
+ resolve(packageName, pluginRoot) {
21
+ const dir = path$1.join(pluginRoot, ".uapkg");
22
+ if (!fs.existsSync(dir)) return ok(null);
23
+ const found = [];
24
+ for (const kind of CANDIDATE_EXTENSIONS) {
25
+ const candidate = path$1.join(dir, `postinstall.${kind}`);
26
+ if (fs.existsSync(candidate) && fs.statSync(candidate).isFile()) found.push({
27
+ path: candidate,
28
+ kind
29
+ });
30
+ }
31
+ if (found.length === 0) return ok(null);
32
+ if (found.length > 1) return fail([createPostinstallDuplicateEntryDiagnostic(packageName, found.map((entry) => entry.path))]);
33
+ return ok(found[0]);
34
+ }
35
+ };
36
+
37
+ //#endregion
38
+ export { EntryResolver };
35
39
  //# sourceMappingURL=EntryResolver.js.map