@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,26 +1,39 @@
1
- import { createUAPKGCommandLineFactory } from '../../UAPKGCommandLine.js';
2
- export class UpdateCommandModule {
3
- factory = createUAPKGCommandLineFactory();
4
- register(parser, sink) {
5
- return parser.command('update [specs..]', 'Update dependency graph and lockfile from remote refs', (builder) => builder
6
- .positional('specs', { type: 'string', array: true, describe: 'Optional list of package names to update' })
7
- .option('force', {
8
- type: 'boolean',
9
- default: false,
10
- describe: 'Override safety policies for local drift/branch divergence',
11
- })
12
- .option('dry-run', { type: 'boolean', default: false, describe: 'Compute the plan but perform no IO' })
13
- .option('json', { type: 'boolean', default: false, describe: 'Emit JSON on stdout' }), (argv) => {
14
- const specsArg = argv.specs;
15
- const specs = Array.isArray(specsArg) ? specsArg.filter((v) => typeof v === 'string') : [];
16
- sink.set(this.factory.createUpdate({
17
- cwd: process.cwd(),
18
- specs,
19
- force: argv.force,
20
- dryRun: argv['dry-run'],
21
- outputFormat: argv.json ? 'json' : 'text',
22
- }));
23
- });
24
- }
25
- }
1
+ import { createUAPKGCommandLineFactory } from "../../UAPKGCommandLine.js";
2
+
3
+ //#region src/cli/parsing/modules/UpdateCommandModule.ts
4
+ var UpdateCommandModule = class {
5
+ factory = createUAPKGCommandLineFactory();
6
+ register(parser, sink) {
7
+ return parser.command("update [specs..]", "Update dependency graph and lockfile from remote refs", (builder) => builder.positional("specs", {
8
+ type: "string",
9
+ array: true,
10
+ describe: "Optional list of package names to update"
11
+ }).option("force", {
12
+ type: "boolean",
13
+ default: false,
14
+ describe: "Override safety policies for local drift/branch divergence"
15
+ }).option("dry-run", {
16
+ type: "boolean",
17
+ default: false,
18
+ describe: "Compute the plan but perform no IO"
19
+ }).option("json", {
20
+ type: "boolean",
21
+ default: false,
22
+ describe: "Emit JSON on stdout"
23
+ }), (argv) => {
24
+ const specsArg = argv.specs;
25
+ const specs = Array.isArray(specsArg) ? specsArg.filter((v) => typeof v === "string") : [];
26
+ sink.set(this.factory.createUpdate({
27
+ cwd: process.cwd(),
28
+ specs,
29
+ force: argv.force,
30
+ dryRun: argv["dry-run"],
31
+ outputFormat: argv.json ? "json" : "text"
32
+ }));
33
+ });
34
+ }
35
+ };
36
+
37
+ //#endregion
38
+ export { UpdateCommandModule };
26
39
  //# sourceMappingURL=UpdateCommandModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateCommandModule.js","sourceRoot":"","sources":["../../../../src/cli/parsing/modules/UpdateCommandModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAG1E,MAAM,OAAO,mBAAmB;IACb,OAAO,GAAG,6BAA6B,EAAE,CAAC;IAE3D,QAAQ,CAAC,MAAY,EAAE,IAAqB;QAC1C,OAAO,MAAM,CAAC,OAAO,CACnB,kBAAkB,EAClB,uDAAuD,EACvD,CAAC,OAAO,EAAE,EAAE,CACV,OAAO;aACJ,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,0CAA0C,EAAE,CAAC;aAC1G,MAAM,CAAC,OAAO,EAAE;YACf,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,4DAA4D;SACvE,CAAC;aACD,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,oCAAoC,EAAE,CAAC;aACtG,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAE,CAAC,EACzF,CAAC,IAAI,EAAE,EAAE;YACP,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC;YAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAc,CAAC,CAAC,CAAC,EAAE,CAAC;YACzG,IAAI,CAAC,GAAG,CACN,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;gBACxB,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;gBAClB,KAAK;gBACL,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC;gBACvB,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;aAC1C,CAAC,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"UpdateCommandModule.js","names":[],"sources":["../../../../src/cli/parsing/modules/UpdateCommandModule.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport { createUAPKGCommandLineFactory } from '../../UAPKGCommandLine.js';\nimport type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';\n\nexport class UpdateCommandModule implements UAPKGCommandModule {\n private readonly factory = createUAPKGCommandLineFactory();\n\n register(parser: Argv, sink: CommandLineSink) {\n return parser.command(\n 'update [specs..]',\n 'Update dependency graph and lockfile from remote refs',\n (builder) =>\n builder\n .positional('specs', { type: 'string', array: true, describe: 'Optional list of package names to update' })\n .option('force', {\n type: 'boolean',\n default: false,\n describe: 'Override safety policies for local drift/branch divergence',\n })\n .option('dry-run', { type: 'boolean', default: false, describe: 'Compute the plan but perform no IO' })\n .option('json', { type: 'boolean', default: false, describe: 'Emit JSON on stdout' }),\n (argv) => {\n const specsArg = argv.specs;\n const specs = Array.isArray(specsArg) ? (specsArg.filter((v) => typeof v === 'string') as string[]) : [];\n sink.set(\n this.factory.createUpdate({\n cwd: process.cwd(),\n specs,\n force: argv.force,\n dryRun: argv['dry-run'],\n outputFormat: argv.json ? 'json' : 'text',\n }),\n );\n },\n );\n }\n}\n"],"mappings":";;;AAIA,IAAa,sBAAb,MAA+D;CAC7D,AAAiB,UAAU,8BAA8B;CAEzD,SAAS,QAAc,MAAuB;EAC5C,OAAO,OAAO,QACZ,oBACA,0DACC,YACC,QACG,WAAW,SAAS;GAAE,MAAM;GAAU,OAAO;GAAM,UAAU;EAA2C,CAAC,CAAC,CAC1G,OAAO,SAAS;GACf,MAAM;GACN,SAAS;GACT,UAAU;EACZ,CAAC,CAAC,CACD,OAAO,WAAW;GAAE,MAAM;GAAW,SAAS;GAAO,UAAU;EAAqC,CAAC,CAAC,CACtG,OAAO,QAAQ;GAAE,MAAM;GAAW,SAAS;GAAO,UAAU;EAAsB,CAAC,IACvF,SAAS;GACR,MAAM,WAAW,KAAK;GACtB,MAAM,QAAQ,MAAM,QAAQ,QAAQ,IAAK,SAAS,QAAQ,MAAM,OAAO,MAAM,QAAQ,IAAiB,CAAC;GACvG,KAAK,IACH,KAAK,QAAQ,aAAa;IACxB,KAAK,QAAQ,IAAI;IACjB;IACA,OAAO,KAAK;IACZ,QAAQ,KAAK;IACb,cAAc,KAAK,OAAO,SAAS;GACrC,CAAC,CACH;EACF,CACF;CACF;AACF"}
@@ -1,7 +1,10 @@
1
- import type { Argv } from 'yargs';
2
- import type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';
3
- export declare class WhoamiCommandModule implements UAPKGCommandModule {
4
- private readonly factory;
5
- register(parser: Argv, sink: CommandLineSink): Argv;
1
+ import { CommandLineSink, UAPKGCommandModule } from "../contracts/UAPKGCommandModule.js";
2
+ import { Argv } from "yargs";
3
+ //#region src/cli/parsing/modules/WhoamiCommandModule.d.ts
4
+ declare class WhoamiCommandModule implements UAPKGCommandModule {
5
+ private readonly factory;
6
+ register(parser: Argv, sink: CommandLineSink): Argv;
6
7
  }
8
+ //#endregion
9
+ export { WhoamiCommandModule };
7
10
  //# sourceMappingURL=WhoamiCommandModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WhoamiCommandModule.d.ts","sourceRoot":"","sources":["../../../../src/cli/parsing/modules/WhoamiCommandModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE9F,qBAAa,mBAAoB,YAAW,kBAAkB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;IAE3D,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI;CAgCpD"}
1
+ {"version":3,"file":"WhoamiCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/WhoamiCommandModule.ts"],"mappings":";;;cAIa,+BAA+B;mBACzB;EAEjB,SAAS,QAAQ,MAAM,MAAM,kBAAkB"}
@@ -1,29 +1,31 @@
1
- import { createUAPKGCommandLineFactory, UAPKG_WHOAMI_FIELDS } from '../../UAPKGCommandLine.js';
2
- export class WhoamiCommandModule {
3
- factory = createUAPKGCommandLineFactory();
4
- register(parser, sink) {
5
- return parser.command('whoami [field]', 'Show the account associated with this registry login', (builder) => builder
6
- .positional('field', {
7
- type: 'string',
8
- choices: UAPKG_WHOAMI_FIELDS,
9
- describe: 'Identity or registry field to print',
10
- })
11
- .option('registry', {
12
- type: 'string',
13
- describe: 'Configured registry alias (defaults to the selected registry)',
14
- })
15
- .option('json', {
16
- type: 'boolean',
17
- default: false,
18
- describe: 'Emit JSON on stdout',
19
- }), (argv) => {
20
- sink.set(this.factory.createWhoami({
21
- cwd: process.cwd(),
22
- field: typeof argv.field === 'string' ? argv.field : undefined,
23
- registry: typeof argv.registry === 'string' ? argv.registry : undefined,
24
- outputFormat: argv.json ? 'json' : 'text',
25
- }));
26
- });
27
- }
28
- }
1
+ import { UAPKG_WHOAMI_FIELDS, createUAPKGCommandLineFactory } from "../../UAPKGCommandLine.js";
2
+
3
+ //#region src/cli/parsing/modules/WhoamiCommandModule.ts
4
+ var WhoamiCommandModule = class {
5
+ factory = createUAPKGCommandLineFactory();
6
+ register(parser, sink) {
7
+ return parser.command("whoami [field]", "Show the account associated with this registry login", (builder) => builder.positional("field", {
8
+ type: "string",
9
+ choices: UAPKG_WHOAMI_FIELDS,
10
+ describe: "Identity or registry field to print"
11
+ }).option("registry", {
12
+ type: "string",
13
+ describe: "Configured registry alias (defaults to the selected registry)"
14
+ }).option("json", {
15
+ type: "boolean",
16
+ default: false,
17
+ describe: "Emit JSON on stdout"
18
+ }), (argv) => {
19
+ sink.set(this.factory.createWhoami({
20
+ cwd: process.cwd(),
21
+ field: typeof argv.field === "string" ? argv.field : void 0,
22
+ registry: typeof argv.registry === "string" ? argv.registry : void 0,
23
+ outputFormat: argv.json ? "json" : "text"
24
+ }));
25
+ });
26
+ }
27
+ };
28
+
29
+ //#endregion
30
+ export { WhoamiCommandModule };
29
31
  //# sourceMappingURL=WhoamiCommandModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WhoamiCommandModule.js","sourceRoot":"","sources":["../../../../src/cli/parsing/modules/WhoamiCommandModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAyB,MAAM,2BAA2B,CAAC;AAGtH,MAAM,OAAO,mBAAmB;IACb,OAAO,GAAG,6BAA6B,EAAE,CAAC;IAE3D,QAAQ,CAAC,MAAY,EAAE,IAAqB;QAC1C,OAAO,MAAM,CAAC,OAAO,CACnB,gBAAgB,EAChB,sDAAsD,EACtD,CAAC,OAAO,EAAE,EAAE,CACV,OAAO;aACJ,UAAU,CAAC,OAAO,EAAE;YACnB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,mBAAmB;YAC5B,QAAQ,EAAE,qCAAqC;SAChD,CAAC;aACD,MAAM,CAAC,UAAU,EAAE;YAClB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,+DAA+D;SAC1E,CAAC;aACD,MAAM,CAAC,MAAM,EAAE;YACd,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,qBAAqB;SAChC,CAAC,EACN,CAAC,IAAI,EAAE,EAAE;YACP,IAAI,CAAC,GAAG,CACN,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;gBACxB,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;gBAClB,KAAK,EAAE,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAE,IAAI,CAAC,KAA0B,CAAC,CAAC,CAAC,SAAS;gBACpF,QAAQ,EAAE,OAAO,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;gBACvE,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;aAC1C,CAAC,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"WhoamiCommandModule.js","names":[],"sources":["../../../../src/cli/parsing/modules/WhoamiCommandModule.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport { createUAPKGCommandLineFactory, UAPKG_WHOAMI_FIELDS, type UAPKGWhoamiField } from '../../UAPKGCommandLine.js';\nimport type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';\n\nexport class WhoamiCommandModule implements UAPKGCommandModule {\n private readonly factory = createUAPKGCommandLineFactory();\n\n register(parser: Argv, sink: CommandLineSink): Argv {\n return parser.command(\n 'whoami [field]',\n 'Show the account associated with this registry login',\n (builder) =>\n builder\n .positional('field', {\n type: 'string',\n choices: UAPKG_WHOAMI_FIELDS,\n describe: 'Identity or registry field to print',\n })\n .option('registry', {\n type: 'string',\n describe: 'Configured registry alias (defaults to the selected registry)',\n })\n .option('json', {\n type: 'boolean',\n default: false,\n describe: 'Emit JSON on stdout',\n }),\n (argv) => {\n sink.set(\n this.factory.createWhoami({\n cwd: process.cwd(),\n field: typeof argv.field === 'string' ? (argv.field as UAPKGWhoamiField) : undefined,\n registry: typeof argv.registry === 'string' ? argv.registry : undefined,\n outputFormat: argv.json ? 'json' : 'text',\n }),\n );\n },\n );\n }\n}\n"],"mappings":";;;AAIA,IAAa,sBAAb,MAA+D;CAC7D,AAAiB,UAAU,8BAA8B;CAEzD,SAAS,QAAc,MAA6B;EAClD,OAAO,OAAO,QACZ,kBACA,yDACC,YACC,QACG,WAAW,SAAS;GACnB,MAAM;GACN,SAAS;GACT,UAAU;EACZ,CAAC,CAAC,CACD,OAAO,YAAY;GAClB,MAAM;GACN,UAAU;EACZ,CAAC,CAAC,CACD,OAAO,QAAQ;GACd,MAAM;GACN,SAAS;GACT,UAAU;EACZ,CAAC,IACJ,SAAS;GACR,KAAK,IACH,KAAK,QAAQ,aAAa;IACxB,KAAK,QAAQ,IAAI;IACjB,OAAO,OAAO,KAAK,UAAU,WAAY,KAAK,QAA6B;IAC3E,UAAU,OAAO,KAAK,aAAa,WAAW,KAAK,WAAW;IAC9D,cAAc,KAAK,OAAO,SAAS;GACrC,CAAC,CACH;EACF,CACF;CACF;AACF"}
@@ -1,7 +1,10 @@
1
- import type { Argv } from 'yargs';
2
- import type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';
3
- export declare class WhyCommandModule implements UAPKGCommandModule {
4
- private readonly factory;
5
- register(parser: Argv, sink: CommandLineSink): Argv;
1
+ import { CommandLineSink, UAPKGCommandModule } from "../contracts/UAPKGCommandModule.js";
2
+ import { Argv } from "yargs";
3
+ //#region src/cli/parsing/modules/WhyCommandModule.d.ts
4
+ declare class WhyCommandModule implements UAPKGCommandModule {
5
+ private readonly factory;
6
+ register(parser: Argv, sink: CommandLineSink): Argv;
6
7
  }
8
+ //#endregion
9
+ export { WhyCommandModule };
7
10
  //# sourceMappingURL=WhyCommandModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WhyCommandModule.d.ts","sourceRoot":"","sources":["../../../../src/cli/parsing/modules/WhyCommandModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAE9F,qBAAa,gBAAiB,YAAW,kBAAkB;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;IAE3D,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI;CAkBpD"}
1
+ {"version":3,"file":"WhyCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/WhyCommandModule.ts"],"mappings":";;;cAIa,4BAA4B;mBACtB;EAEjB,SAAS,QAAQ,MAAM,MAAM,kBAAkB"}
@@ -1,15 +1,26 @@
1
- import { createUAPKGCommandLineFactory } from '../../UAPKGCommandLine.js';
2
- export class WhyCommandModule {
3
- factory = createUAPKGCommandLineFactory();
4
- register(parser, sink) {
5
- return parser.command('why <package>', 'Print every dependency path from a graph root to <package>', (builder) => builder
6
- .positional('package', { type: 'string', demandOption: true, describe: 'Target package name' })
7
- .option('json', { type: 'boolean', default: false, describe: 'Emit JSON on stdout' }), (argv) => {
8
- sink.set(this.factory.createWhy(String(argv.package), {
9
- cwd: process.cwd(),
10
- outputFormat: argv.json ? 'json' : 'text',
11
- }));
12
- });
13
- }
14
- }
1
+ import { createUAPKGCommandLineFactory } from "../../UAPKGCommandLine.js";
2
+
3
+ //#region src/cli/parsing/modules/WhyCommandModule.ts
4
+ var WhyCommandModule = class {
5
+ factory = createUAPKGCommandLineFactory();
6
+ register(parser, sink) {
7
+ return parser.command("why <package>", "Print every dependency path from a graph root to <package>", (builder) => builder.positional("package", {
8
+ type: "string",
9
+ demandOption: true,
10
+ describe: "Target package name"
11
+ }).option("json", {
12
+ type: "boolean",
13
+ default: false,
14
+ describe: "Emit JSON on stdout"
15
+ }), (argv) => {
16
+ sink.set(this.factory.createWhy(String(argv.package), {
17
+ cwd: process.cwd(),
18
+ outputFormat: argv.json ? "json" : "text"
19
+ }));
20
+ });
21
+ }
22
+ };
23
+
24
+ //#endregion
25
+ export { WhyCommandModule };
15
26
  //# sourceMappingURL=WhyCommandModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"WhyCommandModule.js","sourceRoot":"","sources":["../../../../src/cli/parsing/modules/WhyCommandModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAG1E,MAAM,OAAO,gBAAgB;IACV,OAAO,GAAG,6BAA6B,EAAE,CAAC;IAE3D,QAAQ,CAAC,MAAY,EAAE,IAAqB;QAC1C,OAAO,MAAM,CAAC,OAAO,CACnB,eAAe,EACf,4DAA4D,EAC5D,CAAC,OAAO,EAAE,EAAE,CACV,OAAO;aACJ,UAAU,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,qBAAqB,EAAE,CAAC;aAC9F,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAE,CAAC,EACzF,CAAC,IAAI,EAAE,EAAE;YACP,IAAI,CAAC,GAAG,CACN,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;gBAC3C,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;gBAClB,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;aAC1C,CAAC,CACH,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"WhyCommandModule.js","names":[],"sources":["../../../../src/cli/parsing/modules/WhyCommandModule.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport { createUAPKGCommandLineFactory } from '../../UAPKGCommandLine.js';\nimport type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';\n\nexport class WhyCommandModule implements UAPKGCommandModule {\n private readonly factory = createUAPKGCommandLineFactory();\n\n register(parser: Argv, sink: CommandLineSink): Argv {\n return parser.command(\n 'why <package>',\n 'Print every dependency path from a graph root to <package>',\n (builder) =>\n builder\n .positional('package', { type: 'string', demandOption: true, describe: 'Target package name' })\n .option('json', { type: 'boolean', default: false, describe: 'Emit JSON on stdout' }),\n (argv) => {\n sink.set(\n this.factory.createWhy(String(argv.package), {\n cwd: process.cwd(),\n outputFormat: argv.json ? 'json' : 'text',\n }),\n );\n },\n );\n }\n}\n"],"mappings":";;;AAIA,IAAa,mBAAb,MAA4D;CAC1D,AAAiB,UAAU,8BAA8B;CAEzD,SAAS,QAAc,MAA6B;EAClD,OAAO,OAAO,QACZ,iBACA,+DACC,YACC,QACG,WAAW,WAAW;GAAE,MAAM;GAAU,cAAc;GAAM,UAAU;EAAsB,CAAC,CAAC,CAC9F,OAAO,QAAQ;GAAE,MAAM;GAAW,SAAS;GAAO,UAAU;EAAsB,CAAC,IACvF,SAAS;GACR,KAAK,IACH,KAAK,QAAQ,UAAU,OAAO,KAAK,OAAO,GAAG;IAC3C,KAAK,QAAQ,IAAI;IACjB,cAAc,KAAK,OAAO,SAAS;GACrC,CAAC,CACH;EACF,CACF;CACF;AACF"}
@@ -1,8 +1,11 @@
1
- import type { Argv } from 'yargs';
2
- export declare function withScopeOptions<T extends Argv>(parser: T): Argv<{
3
- global: boolean;
1
+ import { Argv } from "yargs";
2
+ //#region src/cli/parsing/modules/sharedOptions.d.ts
3
+ declare function withScopeOptions<T extends Argv>(parser: T): Argv<{
4
+ global: boolean;
4
5
  } & {
5
- local: boolean;
6
+ local: boolean;
6
7
  }>;
7
- export declare function resolveScope(global: boolean, local: boolean): "global" | "local" | undefined;
8
+ declare function resolveScope(global: boolean, local: boolean): "global" | "local" | undefined;
9
+ //#endregion
10
+ export { resolveScope, withScopeOptions };
8
11
  //# sourceMappingURL=sharedOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sharedOptions.d.ts","sourceRoot":"","sources":["../../../../src/cli/parsing/modules/sharedOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAElC,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;;;;GAYzD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,kCAc3D"}
1
+ {"version":3,"file":"sharedOptions.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/sharedOptions.ts"],"mappings":";;iBAEgB,iBAAiB,UAAU,MAAM,QAAQ,IAAC;;;;;iBAc1C,aAAa,iBAAiB"}
@@ -1,26 +1,21 @@
1
- export function withScopeOptions(parser) {
2
- return parser
3
- .option('global', {
4
- type: 'boolean',
5
- default: false,
6
- describe: 'Use global configuration scope',
7
- })
8
- .option('local', {
9
- type: 'boolean',
10
- default: false,
11
- describe: 'Use local configuration scope',
12
- });
1
+ //#region src/cli/parsing/modules/sharedOptions.ts
2
+ function withScopeOptions(parser) {
3
+ return parser.option("global", {
4
+ type: "boolean",
5
+ default: false,
6
+ describe: "Use global configuration scope"
7
+ }).option("local", {
8
+ type: "boolean",
9
+ default: false,
10
+ describe: "Use local configuration scope"
11
+ });
13
12
  }
14
- export function resolveScope(global, local) {
15
- if (global && local) {
16
- throw new Error('[uapkg] --global and --local cannot be used together');
17
- }
18
- if (global) {
19
- return 'global';
20
- }
21
- if (local) {
22
- return 'local';
23
- }
24
- return undefined;
13
+ function resolveScope(global, local) {
14
+ if (global && local) throw new Error("[uapkg] --global and --local cannot be used together");
15
+ if (global) return "global";
16
+ if (local) return "local";
25
17
  }
18
+
19
+ //#endregion
20
+ export { resolveScope, withScopeOptions };
26
21
  //# sourceMappingURL=sharedOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sharedOptions.js","sourceRoot":"","sources":["../../../../src/cli/parsing/modules/sharedOptions.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB,CAAiB,MAAS;IACxD,OAAO,MAAM;SACV,MAAM,CAAC,QAAQ,EAAE;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,gCAAgC;KAC3C,CAAC;SACD,MAAM,CAAC,OAAO,EAAE;QACf,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,+BAA+B;KAC1C,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,MAAe,EAAE,KAAc;IAC1D,IAAI,MAAM,IAAI,KAAK,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,QAAiB,CAAC;IAC3B,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,OAAgB,CAAC;IAC1B,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"sharedOptions.js","names":[],"sources":["../../../../src/cli/parsing/modules/sharedOptions.ts"],"sourcesContent":["import type { Argv } from 'yargs';\n\nexport function withScopeOptions<T extends Argv>(parser: T) {\n return parser\n .option('global', {\n type: 'boolean',\n default: false,\n describe: 'Use global configuration scope',\n })\n .option('local', {\n type: 'boolean',\n default: false,\n describe: 'Use local configuration scope',\n });\n}\n\nexport function resolveScope(global: boolean, local: boolean) {\n if (global && local) {\n throw new Error('[uapkg] --global and --local cannot be used together');\n }\n\n if (global) {\n return 'global' as const;\n }\n\n if (local) {\n return 'local' as const;\n }\n\n return undefined;\n}\n"],"mappings":";AAEA,SAAgB,iBAAiC,QAAW;CAC1D,OAAO,OACJ,OAAO,UAAU;EAChB,MAAM;EACN,SAAS;EACT,UAAU;CACZ,CAAC,CAAC,CACD,OAAO,SAAS;EACf,MAAM;EACN,SAAS;EACT,UAAU;CACZ,CAAC;AACL;AAEA,SAAgB,aAAa,QAAiB,OAAgB;CAC5D,IAAI,UAAU,OACZ,MAAM,IAAI,MAAM,sDAAsD;CAGxE,IAAI,QACF,OAAO;CAGT,IAAI,OACF,OAAO;AAIX"}
@@ -1,2 +1,5 @@
1
- export declare function runUAPKGCLI(rawArgv?: string[]): Promise<number>;
1
+ //#region src/cli/runUAPKGCLI.d.ts
2
+ declare function runUAPKGCLI(rawArgv?: string[]): Promise<number>;
3
+ //#endregion
4
+ export { runUAPKGCLI };
2
5
  //# sourceMappingURL=runUAPKGCLI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runUAPKGCLI.d.ts","sourceRoot":"","sources":["../../src/cli/runUAPKGCLI.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,OAAO,WAAe,mBAGvD"}
1
+ {"version":3,"file":"runUAPKGCLI.d.ts","names":[],"sources":["../../src/cli/runUAPKGCLI.ts"],"mappings":";iBAGsB,YAAY,qBAAsB"}
@@ -1,7 +1,12 @@
1
- import { UAPKGApplication } from '../app/UAPKGApplication.js';
2
- import { parseUAPKGCommandLine } from './parseCommandLine.js';
3
- export async function runUAPKGCLI(rawArgv = process.argv) {
4
- const commandLine = await parseUAPKGCommandLine(rawArgv);
5
- return await new UAPKGApplication().run(commandLine);
1
+ import { UAPKGApplication } from "../app/UAPKGApplication.js";
2
+ import { parseUAPKGCommandLine } from "./parseCommandLine.js";
3
+
4
+ //#region src/cli/runUAPKGCLI.ts
5
+ async function runUAPKGCLI(rawArgv = process.argv) {
6
+ const commandLine = await parseUAPKGCommandLine(rawArgv);
7
+ return await new UAPKGApplication().run(commandLine);
6
8
  }
9
+
10
+ //#endregion
11
+ export { runUAPKGCLI };
7
12
  //# sourceMappingURL=runUAPKGCLI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runUAPKGCLI.js","sourceRoot":"","sources":["../../src/cli/runUAPKGCLI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI;IACtD,MAAM,WAAW,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACzD,OAAO,MAAM,IAAI,gBAAgB,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACvD,CAAC"}
1
+ {"version":3,"file":"runUAPKGCLI.js","names":[],"sources":["../../src/cli/runUAPKGCLI.ts"],"sourcesContent":["import { UAPKGApplication } from '../app/UAPKGApplication.js';\nimport { parseUAPKGCommandLine } from './parseCommandLine.js';\n\nexport async function runUAPKGCLI(rawArgv = process.argv) {\n const commandLine = await parseUAPKGCommandLine(rawArgv);\n return await new UAPKGApplication().run(commandLine);\n}\n"],"mappings":";;;;AAGA,eAAsB,YAAY,UAAU,QAAQ,MAAM;CACxD,MAAM,cAAc,MAAM,sBAAsB,OAAO;CACvD,OAAO,MAAM,IAAI,iBAAiB,CAAC,CAAC,IAAI,WAAW;AACrD"}
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=cli-bootstrap.d.ts.map
1
+ export {}
@@ -1,17 +1,20 @@
1
- import Config from '@uapkg/config';
2
- import Log, { configureLogger } from '@uapkg/log';
3
- import { runUAPKGCLI } from './cli/runUAPKGCLI.js';
1
+ import { runUAPKGCLI } from "./cli/runUAPKGCLI.js";
2
+ import Config from "@uapkg/config";
3
+ import Log, { configureLogger } from "@uapkg/log";
4
+
5
+ //#region src/cli-bootstrap.ts
4
6
  Config.reload({ cwd: process.cwd() });
5
7
  configureLogger({
6
- isVerboseEnabled: () => Config.get('term.verbose') === true,
7
- isQuietEnabled: () => Config.get('term.quiet') === true,
8
+ isVerboseEnabled: () => Config.get("term.verbose") === true,
9
+ isQuietEnabled: () => Config.get("term.quiet") === true
8
10
  });
9
- runUAPKGCLI(process.argv)
10
- .then((exitCode) => {
11
- process.exitCode = exitCode;
12
- })
13
- .catch((error) => {
14
- Log.error(error instanceof Error ? error.message : String(error));
15
- process.exitCode = 1;
11
+ runUAPKGCLI(process.argv).then((exitCode) => {
12
+ process.exitCode = exitCode;
13
+ }).catch((error) => {
14
+ Log.error(error instanceof Error ? error.message : String(error));
15
+ process.exitCode = 1;
16
16
  });
17
+
18
+ //#endregion
19
+ export { };
17
20
  //# sourceMappingURL=cli-bootstrap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli-bootstrap.js","sourceRoot":"","sources":["../src/cli-bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,eAAe,CAAC;AACnC,OAAO,GAAG,EAAE,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AACtC,eAAe,CAAC;IACd,gBAAgB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI;IAC3D,cAAc,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,IAAI;CACxD,CAAC,CAAC;AAEH,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC;KACtB,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;IACjB,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACf,GAAG,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAClE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"cli-bootstrap.js","names":[],"sources":["../src/cli-bootstrap.ts"],"sourcesContent":["import Config from '@uapkg/config';\nimport Log, { configureLogger } from '@uapkg/log';\nimport { runUAPKGCLI } from './cli/runUAPKGCLI.js';\n\nConfig.reload({ cwd: process.cwd() });\nconfigureLogger({\n isVerboseEnabled: () => Config.get('term.verbose') === true,\n isQuietEnabled: () => Config.get('term.quiet') === true,\n});\n\nrunUAPKGCLI(process.argv)\n .then((exitCode) => {\n process.exitCode = exitCode;\n })\n .catch((error) => {\n Log.error(error instanceof Error ? error.message : String(error));\n process.exitCode = 1;\n });\n"],"mappings":";;;;;AAIA,OAAO,OAAO,EAAE,KAAK,QAAQ,IAAI,EAAE,CAAC;AACpC,gBAAgB;CACd,wBAAwB,OAAO,IAAI,cAAc,MAAM;CACvD,sBAAsB,OAAO,IAAI,YAAY,MAAM;AACrD,CAAC;AAED,YAAY,QAAQ,IAAI,CAAC,CACtB,MAAM,aAAa;CAClB,QAAQ,WAAW;AACrB,CAAC,CAAC,CACD,OAAO,UAAU;CAChB,IAAI,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;CAChE,QAAQ,WAAW;AACrB,CAAC"}
@@ -1,13 +1,14 @@
1
- import type { CompositionRoot } from '../app/CompositionRoot.js';
2
- import type { Command } from './Command.js';
3
- export interface AddCommandOptions {
4
- readonly spec: string;
5
- readonly pin: boolean;
6
- readonly dev: boolean;
7
- readonly registry?: string;
8
- readonly force: boolean;
9
- readonly dryRun: boolean;
10
- readonly outputFormat: 'text' | 'json';
1
+ import { CompositionRoot } from "../app/CompositionRoot.js";
2
+ import { Command } from "./Command.js";
3
+ //#region src/commands/AddCommand.d.ts
4
+ interface AddCommandOptions {
5
+ readonly spec: string;
6
+ readonly pin: boolean;
7
+ readonly dev: boolean;
8
+ readonly registry?: string;
9
+ readonly force: boolean;
10
+ readonly dryRun: boolean;
11
+ readonly outputFormat: 'text' | 'json';
11
12
  }
12
13
  /**
13
14
  * `uapkg add <@Org/Name@range>` — parse the spec, mutate the manifest,
@@ -16,11 +17,13 @@ export interface AddCommandOptions {
16
17
  * This command is deliberately thin — it is a manifest-mutation shim around
17
18
  * `install`. All resolution/installation invariants live one level down.
18
19
  */
19
- export declare class AddCommand implements Command {
20
- private readonly root;
21
- private readonly options;
22
- constructor(root: CompositionRoot, options: AddCommandOptions);
23
- execute(): Promise<number>;
24
- private fail;
20
+ declare class AddCommand implements Command {
21
+ private readonly root;
22
+ private readonly options;
23
+ constructor(root: CompositionRoot, options: AddCommandOptions);
24
+ execute(): Promise<number>;
25
+ private fail;
25
26
  }
27
+ //#endregion
28
+ export { AddCommand, AddCommandOptions };
26
29
  //# sourceMappingURL=AddCommand.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddCommand.d.ts","sourceRoot":"","sources":["../../src/commands/AddCommand.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CACxC;AAED;;;;;;GAMG;AACH,qBAAa,UAAW,YAAW,OAAO;IAEtC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,iBAAiB;IAGhC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IA6BvC,OAAO,CAAC,IAAI;CAQb"}
1
+ {"version":3,"file":"AddCommand.d.ts","names":[],"sources":["../../src/commands/AddCommand.ts"],"mappings":";;;UAQiB;WACN;WACA;WACA;WACA;WACA;WACA;WACA;;;;;;;;;cAUE,sBAAsB;mBAEd;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW;UA6BhB"}
@@ -1,55 +1,51 @@
1
- import { parsePackageSpec } from '@uapkg/common';
2
- import { InstallProgressReporter } from '../reporting/InstallProgressReporter.js';
3
- import { DependencyAddResolver } from './add/DependencyAddResolver.js';
4
- import { InstallCommand } from './InstallCommand.js';
1
+ import { DependencyAddResolver } from "./add/DependencyAddResolver.js";
2
+ import { InstallCommand } from "./InstallCommand.js";
3
+ import { parsePackageSpec } from "@uapkg/common";
4
+
5
+ //#region src/commands/AddCommand.ts
5
6
  /**
6
- * `uapkg add <@Org/Name@range>` — parse the spec, mutate the manifest,
7
- * delegate to `InstallCommand` for the resolve/install/postinstall pipeline.
8
- *
9
- * This command is deliberately thin — it is a manifest-mutation shim around
10
- * `install`. All resolution/installation invariants live one level down.
11
- */
12
- export class AddCommand {
13
- root;
14
- options;
15
- constructor(root, options) {
16
- this.root = root;
17
- this.options = options;
18
- }
19
- async execute() {
20
- const specResult = parsePackageSpec(this.options.spec);
21
- if (!specResult.ok)
22
- return this.fail(specResult.diagnostics);
23
- const spec = specResult.value;
24
- const addResolver = new DependencyAddResolver(this.root);
25
- const resolved = await addResolver.resolve(spec, this.options.registry);
26
- if (!resolved.ok)
27
- return this.fail(resolved.diagnostics);
28
- const addResult = await this.root.packageManifest.addDependency(spec.name, resolved.value.dependency, {
29
- bucket: this.options.dev ? 'devDependencies' : 'dependencies',
30
- pin: this.options.pin,
31
- });
32
- if (!addResult.ok)
33
- return this.fail(addResult.diagnostics);
34
- // Delegate to Install for the resolve/execute/postinstall pipeline.
35
- const install = new InstallCommand(this.root, {
36
- force: this.options.force,
37
- frozen: false,
38
- dryRun: this.options.dryRun,
39
- outputFormat: this.options.outputFormat,
40
- });
41
- return install.execute();
42
- }
43
- fail(diagnostics) {
44
- if (this.options.outputFormat === 'json') {
45
- this.root.json.emit({ status: 'error', command: 'add', diagnostics });
46
- }
47
- else {
48
- this.root.diagnostics.reportAll(diagnostics);
49
- }
50
- return 1;
51
- }
52
- }
53
- // Silence an unused-import warning in strict TS setups; retained for type clarity.
54
- void InstallProgressReporter;
7
+ * `uapkg add <@Org/Name@range>` — parse the spec, mutate the manifest,
8
+ * delegate to `InstallCommand` for the resolve/install/postinstall pipeline.
9
+ *
10
+ * This command is deliberately thin — it is a manifest-mutation shim around
11
+ * `install`. All resolution/installation invariants live one level down.
12
+ */
13
+ var AddCommand = class {
14
+ root;
15
+ options;
16
+ constructor(root, options) {
17
+ this.root = root;
18
+ this.options = options;
19
+ }
20
+ async execute() {
21
+ const specResult = parsePackageSpec(this.options.spec);
22
+ if (!specResult.ok) return this.fail(specResult.diagnostics);
23
+ const spec = specResult.value;
24
+ const resolved = await new DependencyAddResolver(this.root).resolve(spec, this.options.registry);
25
+ if (!resolved.ok) return this.fail(resolved.diagnostics);
26
+ const addResult = await this.root.packageManifest.addDependency(spec.name, resolved.value.dependency, {
27
+ bucket: this.options.dev ? "devDependencies" : "dependencies",
28
+ pin: this.options.pin
29
+ });
30
+ if (!addResult.ok) return this.fail(addResult.diagnostics);
31
+ return new InstallCommand(this.root, {
32
+ force: this.options.force,
33
+ frozen: false,
34
+ dryRun: this.options.dryRun,
35
+ outputFormat: this.options.outputFormat
36
+ }).execute();
37
+ }
38
+ fail(diagnostics) {
39
+ if (this.options.outputFormat === "json") this.root.json.emit({
40
+ status: "error",
41
+ command: "add",
42
+ diagnostics
43
+ });
44
+ else this.root.diagnostics.reportAll(diagnostics);
45
+ return 1;
46
+ }
47
+ };
48
+
49
+ //#endregion
50
+ export { AddCommand };
55
51
  //# sourceMappingURL=AddCommand.js.map