@uapkg/cli 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/CompositionRoot.d.ts +36 -33
- package/dist/app/CompositionRoot.d.ts.map +1 -1
- package/dist/app/CompositionRoot.js +91 -109
- package/dist/app/CompositionRoot.js.map +1 -1
- package/dist/app/UAPKGApplication.d.ts +6 -3
- package/dist/app/UAPKGApplication.d.ts.map +1 -1
- package/dist/app/UAPKGApplication.js +155 -169
- package/dist/app/UAPKGApplication.js.map +1 -1
- package/dist/build/BuildMetadata.d.ts +9 -6
- package/dist/build/BuildMetadata.d.ts.map +1 -1
- package/dist/build/BuildMetadata.js +2 -2
- package/dist/cli/UAPKGCommandLine.d.ts +259 -257
- package/dist/cli/UAPKGCommandLine.d.ts.map +1 -1
- package/dist/cli/UAPKGCommandLine.js +248 -239
- package/dist/cli/UAPKGCommandLine.js.map +1 -1
- package/dist/cli/parseCommandLine.d.ts +5 -1
- package/dist/cli/parseCommandLine.d.ts.map +1 -1
- package/dist/cli/parseCommandLine.js +8 -3
- package/dist/cli/parseCommandLine.js.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts +9 -6
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.js +23 -31
- package/dist/cli/parsing/UAPKGCommandLineParser.js.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts +12 -9
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.js +53 -50
- package/dist/cli/parsing/UAPKGParserRegistry.js.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts +9 -6
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js +1 -2
- package/dist/cli/parsing/modules/AddCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/AddCommandModule.js +49 -36
- package/dist/cli/parsing/modules/AddCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.js +87 -83
- package/dist/cli/parsing/modules/ConfigCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.js +25 -22
- package/dist/cli/parsing/modules/InitCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.js +36 -28
- package/dist/cli/parsing/modules/InstallCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.js +78 -50
- package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.js +26 -15
- package/dist/cli/parsing/modules/ListCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.js +34 -33
- package/dist/cli/parsing/modules/LoginCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.js +30 -28
- package/dist/cli/parsing/modules/LogoutCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.js +21 -16
- package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.js +30 -28
- package/dist/cli/parsing/modules/PackCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +14 -11
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.js +63 -47
- package/dist/cli/parsing/modules/PublishCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.js +117 -120
- package/dist/cli/parsing/modules/RegistryCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.js +25 -14
- package/dist/cli/parsing/modules/RemoveCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.js +56 -60
- package/dist/cli/parsing/modules/RequestsCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.js +38 -25
- package/dist/cli/parsing/modules/UpdateCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.js +30 -28
- package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.js +25 -14
- package/dist/cli/parsing/modules/WhyCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.d.ts +8 -5
- package/dist/cli/parsing/modules/sharedOptions.d.ts.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.js +18 -23
- package/dist/cli/parsing/modules/sharedOptions.js.map +1 -1
- package/dist/cli/runUAPKGCLI.d.ts +4 -1
- package/dist/cli/runUAPKGCLI.d.ts.map +1 -1
- package/dist/cli/runUAPKGCLI.js +10 -5
- package/dist/cli/runUAPKGCLI.js.map +1 -1
- package/dist/cli-bootstrap.d.ts +1 -2
- package/dist/cli-bootstrap.js +15 -12
- package/dist/cli-bootstrap.js.map +1 -1
- package/dist/commands/AddCommand.d.ts +19 -16
- package/dist/commands/AddCommand.d.ts.map +1 -1
- package/dist/commands/AddCommand.js +49 -53
- package/dist/commands/AddCommand.js.map +1 -1
- package/dist/commands/Command.d.ts +5 -2
- package/dist/commands/Command.d.ts.map +1 -1
- package/dist/commands/Command.js +1 -2
- package/dist/commands/ConfigCommand.d.ts +28 -25
- package/dist/commands/ConfigCommand.d.ts.map +1 -1
- package/dist/commands/ConfigCommand.js +165 -186
- package/dist/commands/ConfigCommand.js.map +1 -1
- package/dist/commands/InitCommand.d.ts +19 -16
- package/dist/commands/InitCommand.d.ts.map +1 -1
- package/dist/commands/InitCommand.js +65 -60
- package/dist/commands/InitCommand.js.map +1 -1
- package/dist/commands/InstallCommand.d.ts +16 -13
- package/dist/commands/InstallCommand.d.ts.map +1 -1
- package/dist/commands/InstallCommand.js +118 -110
- package/dist/commands/InstallCommand.js.map +1 -1
- package/dist/commands/ListCommand.d.ts +13 -10
- package/dist/commands/ListCommand.d.ts.map +1 -1
- package/dist/commands/ListCommand.js +76 -81
- package/dist/commands/ListCommand.js.map +1 -1
- package/dist/commands/LoginCommand.d.ts +17 -14
- package/dist/commands/LoginCommand.d.ts.map +1 -1
- package/dist/commands/LoginCommand.js +66 -72
- package/dist/commands/LoginCommand.js.map +1 -1
- package/dist/commands/LogoutCommand.d.ts +15 -12
- package/dist/commands/LogoutCommand.d.ts.map +1 -1
- package/dist/commands/LogoutCommand.js +36 -37
- package/dist/commands/LogoutCommand.js.map +1 -1
- package/dist/commands/OutdatedCommand.d.ts +12 -9
- package/dist/commands/OutdatedCommand.d.ts.map +1 -1
- package/dist/commands/OutdatedCommand.js +41 -40
- package/dist/commands/OutdatedCommand.js.map +1 -1
- package/dist/commands/PackCommand.d.ts +13 -10
- package/dist/commands/PackCommand.d.ts.map +1 -1
- package/dist/commands/PackCommand.js +26 -21
- package/dist/commands/PackCommand.js.map +1 -1
- package/dist/commands/PackageLifecycleCommand.d.ts +23 -19
- package/dist/commands/PackageLifecycleCommand.d.ts.map +1 -1
- package/dist/commands/PackageLifecycleCommand.js +144 -138
- package/dist/commands/PackageLifecycleCommand.js.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.d.ts +11 -8
- package/dist/commands/PostinstallCandidateBuilder.d.ts.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.js +42 -42
- package/dist/commands/PostinstallCandidateBuilder.js.map +1 -1
- package/dist/commands/ProjectGetNameCommand.d.ts +10 -7
- package/dist/commands/ProjectGetNameCommand.d.ts.map +1 -1
- package/dist/commands/ProjectGetNameCommand.js +25 -25
- package/dist/commands/ProjectGetNameCommand.js.map +1 -1
- package/dist/commands/PublishCommand.d.ts +29 -23
- package/dist/commands/PublishCommand.d.ts.map +1 -1
- package/dist/commands/PublishCommand.js +243 -254
- package/dist/commands/PublishCommand.js.map +1 -1
- package/dist/commands/RegistryCommand.d.ts +38 -35
- package/dist/commands/RegistryCommand.d.ts.map +1 -1
- package/dist/commands/RegistryCommand.js +195 -223
- package/dist/commands/RegistryCommand.js.map +1 -1
- package/dist/commands/RemoveCommand.d.ts +14 -11
- package/dist/commands/RemoveCommand.d.ts.map +1 -1
- package/dist/commands/RemoveCommand.js +47 -54
- package/dist/commands/RemoveCommand.js.map +1 -1
- package/dist/commands/RequestsCommand.d.ts +21 -18
- package/dist/commands/RequestsCommand.d.ts.map +1 -1
- package/dist/commands/RequestsCommand.js +82 -95
- package/dist/commands/RequestsCommand.js.map +1 -1
- package/dist/commands/UpdateCommand.d.ts +29 -26
- package/dist/commands/UpdateCommand.d.ts.map +1 -1
- package/dist/commands/UpdateCommand.js +111 -111
- package/dist/commands/UpdateCommand.js.map +1 -1
- package/dist/commands/WhoamiCommand.d.ts +30 -27
- package/dist/commands/WhoamiCommand.d.ts.map +1 -1
- package/dist/commands/WhoamiCommand.js +63 -72
- package/dist/commands/WhoamiCommand.js.map +1 -1
- package/dist/commands/WhyCommand.d.ts +13 -10
- package/dist/commands/WhyCommand.d.ts.map +1 -1
- package/dist/commands/WhyCommand.js +45 -44
- package/dist/commands/WhyCommand.js.map +1 -1
- package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
- package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
- package/dist/commands/add/DependencyAddResolver.js +36 -36
- package/dist/commands/add/DependencyAddResolver.js.map +1 -1
- package/dist/control-plane/AccountManager.d.ts +96 -94
- package/dist/control-plane/AccountManager.d.ts.map +1 -1
- package/dist/control-plane/AccountManager.js +775 -967
- package/dist/control-plane/AccountManager.js.map +1 -1
- package/dist/control-plane/ArtifactObserver.d.ts +19 -16
- package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
- package/dist/control-plane/ArtifactObserver.js +73 -59
- package/dist/control-plane/ArtifactObserver.js.map +1 -1
- package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
- package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
- package/dist/control-plane/AuthMetadataStore.js +111 -113
- package/dist/control-plane/AuthMetadataStore.js.map +1 -1
- package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
- package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
- package/dist/control-plane/AuthStoragePaths.js +19 -14
- package/dist/control-plane/AuthStoragePaths.js.map +1 -1
- package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
- package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
- package/dist/control-plane/AuthenticationSelector.js +69 -63
- package/dist/control-plane/AuthenticationSelector.js.map +1 -1
- package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
- package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneClient.js +265 -254
- package/dist/control-plane/ControlPlaneClient.js.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
- package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
- package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
- package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.js +88 -81
- package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
- package/dist/control-plane/CredentialStore.d.ts +20 -18
- package/dist/control-plane/CredentialStore.d.ts.map +1 -1
- package/dist/control-plane/CredentialStore.js +66 -83
- package/dist/control-plane/CredentialStore.js.map +1 -1
- package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
- package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
- package/dist/control-plane/DPoPKeyStore.js +57 -53
- package/dist/control-plane/DPoPKeyStore.js.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
- package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.js +97 -68
- package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
- package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
- package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
- package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
- package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
- package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
- package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
- package/dist/control-plane/RegistryGrantLock.js +149 -185
- package/dist/control-plane/RegistryGrantLock.js.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
- package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.js +97 -132
- package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
- package/dist/index.d.ts +62 -39
- package/dist/index.js +60 -53
- package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
- package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
- package/dist/postinstall/api/PostinstallDsl.js +32 -35
- package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
- package/dist/postinstall/api/definePostinstall.d.ts +5 -2
- package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
- package/dist/postinstall/api/definePostinstall.js +20 -16
- package/dist/postinstall/api/definePostinstall.js.map +1 -1
- package/dist/postinstall/index.d.ts +25 -26
- package/dist/postinstall/index.js +25 -37
- package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
- package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
- package/dist/postinstall/loader/EntryResolver.js +36 -32
- package/dist/postinstall/loader/EntryResolver.js.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
- package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
- package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
- package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
- package/dist/postinstall/loader/ExportValidator.js +36 -32
- package/dist/postinstall/loader/ExportValidator.js.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
- package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.js +50 -58
- package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
- package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.js +62 -58
- package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
- package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
- package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.js +44 -44
- package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
- package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
- package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
- package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
- package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
- package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
- package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.js +1 -2
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
- package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
- package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
- package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
- package/dist/postinstall/unreal/PluginHash.js +13 -8
- package/dist/postinstall/unreal/PluginHash.js.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
- package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.js +37 -37
- package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
- package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
- package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
- package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.js +56 -52
- package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
- package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
- package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
- package/dist/prompts/InkPromptService.d.ts +10 -7
- package/dist/prompts/InkPromptService.d.ts.map +1 -1
- package/dist/prompts/InkPromptService.js +100 -71
- package/dist/prompts/InkPromptService.js.map +1 -1
- package/dist/prompts/ProjectContextDetector.d.ts +10 -7
- package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
- package/dist/prompts/ProjectContextDetector.js +32 -26
- package/dist/prompts/ProjectContextDetector.js.map +1 -1
- package/dist/prompts/PromptService.d.ts +11 -8
- package/dist/prompts/PromptService.d.ts.map +1 -1
- package/dist/prompts/PromptService.js +1 -8
- package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
- package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
- package/dist/reporting/DiagnosticDeduplicator.js +36 -35
- package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
- package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/DiagnosticRenderer.js +1 -2
- package/dist/reporting/DiagnosticReporter.d.ts +12 -9
- package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
- package/dist/reporting/DiagnosticReporter.js +40 -39
- package/dist/reporting/DiagnosticReporter.js.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
- package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.js +50 -42
- package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/InstallProgressReporter.d.ts +23 -20
- package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
- package/dist/reporting/InstallProgressReporter.js +48 -47
- package/dist/reporting/InstallProgressReporter.js.map +1 -1
- package/dist/reporting/JsonReporter.d.ts +16 -13
- package/dist/reporting/JsonReporter.d.ts.map +1 -1
- package/dist/reporting/JsonReporter.js +34 -20
- package/dist/reporting/JsonReporter.js.map +1 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
- package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/TextDiagnosticRenderer.js +36 -28
- package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/TextSink.d.ts +14 -11
- package/dist/reporting/TextSink.d.ts.map +1 -1
- package/dist/reporting/TextSink.js +24 -20
- package/dist/reporting/TextSink.js.map +1 -1
- package/package.json +31 -32
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
- package/dist/cli-bootstrap.d.ts.map +0 -1
- package/dist/commands/Command.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/postinstall/index.d.ts.map +0 -1
- package/dist/postinstall/index.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
- package/dist/prompts/PromptService.js.map +0 -1
- package/dist/reporting/DiagnosticRenderer.js.map +0 -1
|
@@ -1,55 +1,48 @@
|
|
|
1
|
-
import { InstallCommand } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
frozen: false,
|
|
49
|
-
dryRun: this.options.dryRun === true,
|
|
50
|
-
outputFormat: this.options.outputFormat,
|
|
51
|
-
});
|
|
52
|
-
return install.execute();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
import { InstallCommand } from "./InstallCommand.js";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/RemoveCommand.ts
|
|
4
|
+
var RemoveCommand = class {
|
|
5
|
+
root;
|
|
6
|
+
options;
|
|
7
|
+
constructor(root, options) {
|
|
8
|
+
this.root = root;
|
|
9
|
+
this.options = options;
|
|
10
|
+
}
|
|
11
|
+
async execute() {
|
|
12
|
+
const result = await this.root.packageManifest.removeDependency(this.options.packageName);
|
|
13
|
+
if (!result.ok) {
|
|
14
|
+
if (this.options.outputFormat === "json") this.root.json.emit({
|
|
15
|
+
status: "error",
|
|
16
|
+
command: "remove",
|
|
17
|
+
diagnostics: result.diagnostics
|
|
18
|
+
});
|
|
19
|
+
else this.root.diagnostics.reportAll(result.diagnostics);
|
|
20
|
+
return 1;
|
|
21
|
+
}
|
|
22
|
+
const missing = result.diagnostics.some((diagnostic) => diagnostic.code === "DEPENDENCY_NOT_FOUND");
|
|
23
|
+
if (result.diagnostics.length > 0 && this.options.outputFormat === "text") this.root.diagnostics.reportAll(result.diagnostics);
|
|
24
|
+
if (missing) {
|
|
25
|
+
if (this.options.outputFormat === "json") this.root.json.emit({
|
|
26
|
+
status: "ok",
|
|
27
|
+
command: "remove",
|
|
28
|
+
data: {
|
|
29
|
+
removed: false,
|
|
30
|
+
packageName: this.options.packageName
|
|
31
|
+
},
|
|
32
|
+
diagnostics: result.diagnostics
|
|
33
|
+
});
|
|
34
|
+
return 0;
|
|
35
|
+
}
|
|
36
|
+
if (this.options.outputFormat === "text") process.stdout.write(`Removed "${this.options.packageName}" from uapkg.json\n`);
|
|
37
|
+
return new InstallCommand(this.root, {
|
|
38
|
+
force: false,
|
|
39
|
+
frozen: false,
|
|
40
|
+
dryRun: this.options.dryRun === true,
|
|
41
|
+
outputFormat: this.options.outputFormat
|
|
42
|
+
}).execute();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { RemoveCommand };
|
|
55
48
|
//# sourceMappingURL=RemoveCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoveCommand.js","
|
|
1
|
+
{"version":3,"file":"RemoveCommand.js","names":[],"sources":["../../src/commands/RemoveCommand.ts"],"sourcesContent":["import type { CompositionRoot } from '../app/CompositionRoot.js';\nimport type { Command } from './Command.js';\nimport { InstallCommand } from './InstallCommand.js';\n\nexport interface RemoveCommandOptions {\n readonly packageName: string;\n readonly outputFormat: 'text' | 'json';\n readonly dryRun?: boolean;\n}\n\n// ---------------------------------------------------------------------------\n// RemoveCommand — removes a dependency from every bucket in the manifest and\n// then immediately re-runs `InstallCommand` so on-disk state is reconciled.\n//\n// The installer's plan diff is what actually deletes the installed plugin —\n// RemoveCommand's job is (1) mutate the manifest, (2) trigger the install.\n// ---------------------------------------------------------------------------\nexport class RemoveCommand implements Command {\n public constructor(\n private readonly root: CompositionRoot,\n private readonly options: RemoveCommandOptions,\n ) {}\n\n public async execute(): Promise<number> {\n const result = await this.root.packageManifest.removeDependency(this.options.packageName);\n\n if (!result.ok) {\n if (this.options.outputFormat === 'json') {\n this.root.json.emit({ status: 'error', command: 'remove', diagnostics: result.diagnostics });\n } else {\n this.root.diagnostics.reportAll(result.diagnostics);\n }\n return 1;\n }\n\n const missing = result.diagnostics.some((diagnostic) => diagnostic.code === 'DEPENDENCY_NOT_FOUND');\n\n if (result.diagnostics.length > 0 && this.options.outputFormat === 'text') {\n this.root.diagnostics.reportAll(result.diagnostics);\n }\n\n if (missing) {\n if (this.options.outputFormat === 'json') {\n this.root.json.emit({\n status: 'ok',\n command: 'remove',\n data: { removed: false, packageName: this.options.packageName },\n diagnostics: result.diagnostics,\n });\n }\n return 0;\n }\n\n if (this.options.outputFormat === 'text') {\n process.stdout.write(`Removed \"${this.options.packageName}\" from uapkg.json\\n`);\n }\n\n // Reconcile on-disk state by delegating to the installer pipeline.\n const install = new InstallCommand(this.root, {\n force: false,\n frozen: false,\n dryRun: this.options.dryRun === true,\n outputFormat: this.options.outputFormat,\n });\n return install.execute();\n }\n}\n"],"mappings":";;;AAiBA,IAAa,gBAAb,MAA8C;CAEzB;CACA;CAFnB,AAAO,YACL,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;CAChB;CAEH,MAAa,UAA2B;EACtC,MAAM,SAAS,MAAM,KAAK,KAAK,gBAAgB,iBAAiB,KAAK,QAAQ,WAAW;EAExF,IAAI,CAAC,OAAO,IAAI;GACd,IAAI,KAAK,QAAQ,iBAAiB,QAChC,KAAK,KAAK,KAAK,KAAK;IAAE,QAAQ;IAAS,SAAS;IAAU,aAAa,OAAO;GAAY,CAAC;QAE3F,KAAK,KAAK,YAAY,UAAU,OAAO,WAAW;GAEpD,OAAO;EACT;EAEA,MAAM,UAAU,OAAO,YAAY,MAAM,eAAe,WAAW,SAAS,sBAAsB;EAElG,IAAI,OAAO,YAAY,SAAS,KAAK,KAAK,QAAQ,iBAAiB,QACjE,KAAK,KAAK,YAAY,UAAU,OAAO,WAAW;EAGpD,IAAI,SAAS;GACX,IAAI,KAAK,QAAQ,iBAAiB,QAChC,KAAK,KAAK,KAAK,KAAK;IAClB,QAAQ;IACR,SAAS;IACT,MAAM;KAAE,SAAS;KAAO,aAAa,KAAK,QAAQ;IAAY;IAC9D,aAAa,OAAO;GACtB,CAAC;GAEH,OAAO;EACT;EAEA,IAAI,KAAK,QAAQ,iBAAiB,QAChC,QAAQ,OAAO,MAAM,YAAY,KAAK,QAAQ,YAAY,oBAAoB;EAUhF,OAAO,IANa,eAAe,KAAK,MAAM;GAC5C,OAAO;GACP,QAAQ;GACR,QAAQ,KAAK,QAAQ,WAAW;GAChC,cAAc,KAAK,QAAQ;EAC7B,CACa,CAAC,CAAC,QAAQ;CACzB;AACF"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { RegistryRequestStatus } from "../control-plane/ControlPlaneTypes.js";
|
|
2
|
+
import { CompositionRoot } from "../app/CompositionRoot.js";
|
|
3
|
+
import { UAPKGOutputFormat } from "../cli/UAPKGCommandLine.js";
|
|
4
|
+
import { Command } from "./Command.js";
|
|
5
|
+
//#region src/commands/RequestsCommand.d.ts
|
|
6
|
+
interface RequestsCommandOptions {
|
|
7
|
+
readonly action: 'list' | 'status';
|
|
8
|
+
readonly requestId?: string;
|
|
9
|
+
readonly registry?: string;
|
|
10
|
+
readonly status?: RegistryRequestStatus;
|
|
11
|
+
readonly watch: boolean;
|
|
12
|
+
readonly outputFormat: UAPKGOutputFormat;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
declare class RequestsCommand implements Command {
|
|
15
|
+
private readonly root;
|
|
16
|
+
private readonly options;
|
|
17
|
+
constructor(root: CompositionRoot, options: RequestsCommandOptions);
|
|
18
|
+
execute(): Promise<number>;
|
|
19
|
+
private printList;
|
|
20
|
+
private printRequest;
|
|
20
21
|
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { RequestsCommand, RequestsCommandOptions };
|
|
21
24
|
//# sourceMappingURL=RequestsCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestsCommand.d.ts","
|
|
1
|
+
{"version":3,"file":"RequestsCommand.d.ts","names":[],"sources":["../../src/commands/RequestsCommand.ts"],"mappings":";;;;;UAgBiB;WACN;WACA;WACA;WACA,SAAS;WACT;WACA,cAAc;;cAGZ,2BAA2B;mBAEnB;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW;UAmDhB;UAsBA"}
|
|
@@ -1,98 +1,85 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ControlPlaneClient } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const ok = isSuccessStatus(value.status) || !TERMINAL_STATUSES.has(value.status);
|
|
80
|
-
process.stdout.write(`${JSON.stringify({ ok, registry: registryAlias, request })}\n`);
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
process.stdout.write(`Request: ${value.id}\n`);
|
|
84
|
-
process.stdout.write(`Status: ${value.status}\n`);
|
|
85
|
-
if (value.currentStep)
|
|
86
|
-
process.stdout.write(`Step: ${value.currentStep}\n`);
|
|
87
|
-
if (value.payload?.packageName) {
|
|
88
|
-
process.stdout.write(`Package: ${value.payload.packageName}${value.payload.packageVersion ? `@${value.payload.packageVersion}` : ''}\n`);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function isSuccessStatus(status) {
|
|
93
|
-
return status === 'ready' || status === 'ready_superseded';
|
|
94
|
-
}
|
|
1
|
+
import { ControlPlaneError } from "../control-plane/ControlPlaneTypes.js";
|
|
2
|
+
import { ControlPlaneClient } from "../control-plane/ControlPlaneClient.js";
|
|
3
|
+
import { describeControlPlaneError } from "../control-plane/AccountManager.js";
|
|
4
|
+
import { formatRegistryRequestTerminal, isRegistryRequestSuccessStatus, isRegistryRequestTerminalStatus } from "../reporting/RegistryRequestTerminalFormatter.js";
|
|
5
|
+
|
|
6
|
+
//#region src/commands/RequestsCommand.ts
|
|
7
|
+
var RequestsCommand = class {
|
|
8
|
+
root;
|
|
9
|
+
options;
|
|
10
|
+
constructor(root, options) {
|
|
11
|
+
this.root = root;
|
|
12
|
+
this.options = options;
|
|
13
|
+
}
|
|
14
|
+
async execute() {
|
|
15
|
+
try {
|
|
16
|
+
const trust = await this.root.registryTrustResolver.resolve(this.options.registry);
|
|
17
|
+
let authentication = await this.root.accountManager.getAccessCredential(trust, ["publishing.request.read.self"]);
|
|
18
|
+
const client = new ControlPlaneClient(trust.apiBaseUrl);
|
|
19
|
+
if (this.options.action === "list") {
|
|
20
|
+
const requests = await client.listRegistryRequests(authentication.credential, trust.registryId, this.options.status);
|
|
21
|
+
this.printList(requests, trust.alias);
|
|
22
|
+
return 0;
|
|
23
|
+
}
|
|
24
|
+
if (!this.options.requestId) throw new Error("`uapkg requests status` requires a request ID.");
|
|
25
|
+
let detail = await client.getRegistryRequestDetail(authentication.credential, this.options.requestId);
|
|
26
|
+
if (this.options.watch) {
|
|
27
|
+
let lastStatus = "";
|
|
28
|
+
while (!isRegistryRequestTerminalStatus(detail.request.status)) {
|
|
29
|
+
if (this.options.outputFormat === "text" && detail.request.status !== lastStatus) {
|
|
30
|
+
process.stdout.write(`${detail.request.id}: ${detail.request.status}${detail.request.currentStep ? ` (${detail.request.currentStep})` : ""}\n`);
|
|
31
|
+
lastStatus = detail.request.status;
|
|
32
|
+
}
|
|
33
|
+
await delay(2e3);
|
|
34
|
+
try {
|
|
35
|
+
detail = await client.getRegistryRequestDetail(authentication.credential, this.options.requestId);
|
|
36
|
+
} catch (error) {
|
|
37
|
+
if (!(error instanceof ControlPlaneError) || error.status !== 401) throw error;
|
|
38
|
+
this.root.accountManager.invalidateAccessCredentials(trust);
|
|
39
|
+
authentication = await this.root.accountManager.getAccessCredential(trust, ["publishing.request.read.self"]);
|
|
40
|
+
detail = await client.getRegistryRequestDetail(authentication.credential, this.options.requestId);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
this.printRequest(detail, trust.alias);
|
|
45
|
+
return isRegistryRequestSuccessStatus(detail.request.status) || !isRegistryRequestTerminalStatus(detail.request.status) ? 0 : 1;
|
|
46
|
+
} catch (error) {
|
|
47
|
+
process.stderr.write(`${describeControlPlaneError(error)}\n`);
|
|
48
|
+
return 1;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
printList(requests, registryAlias) {
|
|
52
|
+
if (this.options.outputFormat === "json") {
|
|
53
|
+
process.stdout.write(`${JSON.stringify({
|
|
54
|
+
ok: true,
|
|
55
|
+
registry: registryAlias,
|
|
56
|
+
requests
|
|
57
|
+
})}\n`);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (requests.length === 0) {
|
|
61
|
+
process.stdout.write(`No publishing requests found for "${registryAlias}".\n`);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
for (const value of requests) {
|
|
65
|
+
const packageCoordinate = value.payload?.packageName ? ` ${value.payload.packageName}${value.payload.packageVersion ? `@${value.payload.packageVersion}` : ""}` : "";
|
|
66
|
+
process.stdout.write(`${value.id} ${value.status} ${value.kind}${packageCoordinate}\n`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
printRequest(detail, registryAlias) {
|
|
70
|
+
const output = formatRegistryRequestTerminal({
|
|
71
|
+
detail,
|
|
72
|
+
registryAlias,
|
|
73
|
+
outputFormat: this.options.outputFormat,
|
|
74
|
+
presentation: { kind: "status" }
|
|
75
|
+
});
|
|
76
|
+
process.stdout.write(output.stdout);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
95
79
|
function delay(milliseconds) {
|
|
96
|
-
|
|
80
|
+
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
97
81
|
}
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
export { RequestsCommand };
|
|
98
85
|
//# sourceMappingURL=RequestsCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestsCommand.js","
|
|
1
|
+
{"version":3,"file":"RequestsCommand.js","names":[],"sources":["../../src/commands/RequestsCommand.ts"],"sourcesContent":["import type { CompositionRoot } from '../app/CompositionRoot.js';\nimport type { UAPKGOutputFormat } from '../cli/UAPKGCommandLine.js';\nimport { describeControlPlaneError } from '../control-plane/AccountManager.js';\nimport { ControlPlaneClient } from '../control-plane/ControlPlaneClient.js';\nimport {\n ControlPlaneError,\n type RegistryRequestDetail,\n type RegistryRequestStatus,\n} from '../control-plane/ControlPlaneTypes.js';\nimport {\n formatRegistryRequestTerminal,\n isRegistryRequestSuccessStatus,\n isRegistryRequestTerminalStatus,\n} from '../reporting/RegistryRequestTerminalFormatter.js';\nimport type { Command } from './Command.js';\n\nexport interface RequestsCommandOptions {\n readonly action: 'list' | 'status';\n readonly requestId?: string;\n readonly registry?: string;\n readonly status?: RegistryRequestStatus;\n readonly watch: boolean;\n readonly outputFormat: UAPKGOutputFormat;\n}\n\nexport class RequestsCommand implements Command {\n public constructor(\n private readonly root: CompositionRoot,\n private readonly options: RequestsCommandOptions,\n ) {}\n\n public async execute(): Promise<number> {\n try {\n const trust = await this.root.registryTrustResolver.resolve(this.options.registry);\n let authentication = await this.root.accountManager.getAccessCredential(trust, ['publishing.request.read.self']);\n const client = new ControlPlaneClient(trust.apiBaseUrl);\n\n if (this.options.action === 'list') {\n const requests = await client.listRegistryRequests(\n authentication.credential,\n trust.registryId,\n this.options.status,\n );\n this.printList(requests, trust.alias);\n return 0;\n }\n\n if (!this.options.requestId) throw new Error('`uapkg requests status` requires a request ID.');\n let detail = await client.getRegistryRequestDetail(authentication.credential, this.options.requestId);\n if (this.options.watch) {\n let lastStatus = '';\n while (!isRegistryRequestTerminalStatus(detail.request.status)) {\n if (this.options.outputFormat === 'text' && detail.request.status !== lastStatus) {\n process.stdout.write(\n `${detail.request.id}: ${detail.request.status}${detail.request.currentStep ? ` (${detail.request.currentStep})` : ''}\\n`,\n );\n lastStatus = detail.request.status;\n }\n await delay(2_000);\n try {\n detail = await client.getRegistryRequestDetail(authentication.credential, this.options.requestId);\n } catch (error) {\n if (!(error instanceof ControlPlaneError) || error.status !== 401) throw error;\n this.root.accountManager.invalidateAccessCredentials(trust);\n authentication = await this.root.accountManager.getAccessCredential(trust, [\n 'publishing.request.read.self',\n ]);\n detail = await client.getRegistryRequestDetail(authentication.credential, this.options.requestId);\n }\n }\n }\n this.printRequest(detail, trust.alias);\n return isRegistryRequestSuccessStatus(detail.request.status) ||\n !isRegistryRequestTerminalStatus(detail.request.status)\n ? 0\n : 1;\n } catch (error) {\n process.stderr.write(`${describeControlPlaneError(error)}\\n`);\n return 1;\n }\n }\n\n private printList(requests: readonly unknown[], registryAlias: string): void {\n if (this.options.outputFormat === 'json') {\n process.stdout.write(`${JSON.stringify({ ok: true, registry: registryAlias, requests })}\\n`);\n return;\n }\n if (requests.length === 0) {\n process.stdout.write(`No publishing requests found for \"${registryAlias}\".\\n`);\n return;\n }\n for (const value of requests as Array<{\n id: string;\n status: string;\n kind: string;\n payload?: { packageName?: string; packageVersion?: string };\n }>) {\n const packageCoordinate = value.payload?.packageName\n ? ` ${value.payload.packageName}${value.payload.packageVersion ? `@${value.payload.packageVersion}` : ''}`\n : '';\n process.stdout.write(`${value.id} ${value.status} ${value.kind}${packageCoordinate}\\n`);\n }\n }\n\n private printRequest(detail: RegistryRequestDetail, registryAlias: string): void {\n const output = formatRegistryRequestTerminal({\n detail,\n registryAlias,\n outputFormat: this.options.outputFormat,\n presentation: { kind: 'status' },\n });\n process.stdout.write(output.stdout);\n }\n}\n\nfunction delay(milliseconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\n}\n"],"mappings":";;;;;;AAyBA,IAAa,kBAAb,MAAgD;CAE3B;CACA;CAFnB,AAAO,YACL,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;CAChB;CAEH,MAAa,UAA2B;EACtC,IAAI;GACF,MAAM,QAAQ,MAAM,KAAK,KAAK,sBAAsB,QAAQ,KAAK,QAAQ,QAAQ;GACjF,IAAI,iBAAiB,MAAM,KAAK,KAAK,eAAe,oBAAoB,OAAO,CAAC,8BAA8B,CAAC;GAC/G,MAAM,SAAS,IAAI,mBAAmB,MAAM,UAAU;GAEtD,IAAI,KAAK,QAAQ,WAAW,QAAQ;IAClC,MAAM,WAAW,MAAM,OAAO,qBAC5B,eAAe,YACf,MAAM,YACN,KAAK,QAAQ,MACf;IACA,KAAK,UAAU,UAAU,MAAM,KAAK;IACpC,OAAO;GACT;GAEA,IAAI,CAAC,KAAK,QAAQ,WAAW,MAAM,IAAI,MAAM,gDAAgD;GAC7F,IAAI,SAAS,MAAM,OAAO,yBAAyB,eAAe,YAAY,KAAK,QAAQ,SAAS;GACpG,IAAI,KAAK,QAAQ,OAAO;IACtB,IAAI,aAAa;IACjB,OAAO,CAAC,gCAAgC,OAAO,QAAQ,MAAM,GAAG;KAC9D,IAAI,KAAK,QAAQ,iBAAiB,UAAU,OAAO,QAAQ,WAAW,YAAY;MAChF,QAAQ,OAAO,MACb,GAAG,OAAO,QAAQ,GAAG,IAAI,OAAO,QAAQ,SAAS,OAAO,QAAQ,cAAc,KAAK,OAAO,QAAQ,YAAY,KAAK,GAAG,GACxH;MACA,aAAa,OAAO,QAAQ;KAC9B;KACA,MAAM,MAAM,GAAK;KACjB,IAAI;MACF,SAAS,MAAM,OAAO,yBAAyB,eAAe,YAAY,KAAK,QAAQ,SAAS;KAClG,SAAS,OAAO;MACd,IAAI,EAAE,iBAAiB,sBAAsB,MAAM,WAAW,KAAK,MAAM;MACzE,KAAK,KAAK,eAAe,4BAA4B,KAAK;MAC1D,iBAAiB,MAAM,KAAK,KAAK,eAAe,oBAAoB,OAAO,CACzE,8BACF,CAAC;MACD,SAAS,MAAM,OAAO,yBAAyB,eAAe,YAAY,KAAK,QAAQ,SAAS;KAClG;IACF;GACF;GACA,KAAK,aAAa,QAAQ,MAAM,KAAK;GACrC,OAAO,+BAA+B,OAAO,QAAQ,MAAM,KACzD,CAAC,gCAAgC,OAAO,QAAQ,MAAM,IACpD,IACA;EACN,SAAS,OAAO;GACd,QAAQ,OAAO,MAAM,GAAG,0BAA0B,KAAK,EAAE,GAAG;GAC5D,OAAO;EACT;CACF;CAEA,AAAQ,UAAU,UAA8B,eAA6B;EAC3E,IAAI,KAAK,QAAQ,iBAAiB,QAAQ;GACxC,QAAQ,OAAO,MAAM,GAAG,KAAK,UAAU;IAAE,IAAI;IAAM,UAAU;IAAe;GAAS,CAAC,EAAE,GAAG;GAC3F;EACF;EACA,IAAI,SAAS,WAAW,GAAG;GACzB,QAAQ,OAAO,MAAM,qCAAqC,cAAc,KAAK;GAC7E;EACF;EACA,KAAK,MAAM,SAAS,UAKhB;GACF,MAAM,oBAAoB,MAAM,SAAS,cACrC,IAAI,MAAM,QAAQ,cAAc,MAAM,QAAQ,iBAAiB,IAAI,MAAM,QAAQ,mBAAmB,OACpG;GACJ,QAAQ,OAAO,MAAM,GAAG,MAAM,GAAG,GAAG,MAAM,OAAO,GAAG,MAAM,OAAO,kBAAkB,GAAG;EACxF;CACF;CAEA,AAAQ,aAAa,QAA+B,eAA6B;EAC/E,MAAM,SAAS,8BAA8B;GAC3C;GACA;GACA,cAAc,KAAK,QAAQ;GAC3B,cAAc,EAAE,MAAM,SAAS;EACjC,CAAC;EACD,QAAQ,OAAO,MAAM,OAAO,MAAM;CACpC;AACF;AAEA,SAAS,MAAM,cAAqC;CAClD,OAAO,IAAI,SAAS,YAAY,WAAW,SAAS,YAAY,CAAC;AACnE"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { CompositionRoot } from "../app/CompositionRoot.js";
|
|
2
|
+
import { Command } from "./Command.js";
|
|
3
|
+
//#region src/commands/UpdateCommand.d.ts
|
|
4
|
+
interface UpdateCommandOptions {
|
|
5
|
+
readonly specs: readonly string[];
|
|
6
|
+
readonly force: boolean;
|
|
7
|
+
readonly dryRun: boolean;
|
|
8
|
+
readonly outputFormat: 'text' | 'json';
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* `uapkg update [specs...]` — re-resolve and re-install.
|
|
@@ -22,24 +23,26 @@ export interface UpdateCommandOptions {
|
|
|
22
23
|
* Never throws — errors become diagnostics. Specs that reference unknown
|
|
23
24
|
* packages produce `PACKAGE_NOT_FOUND` against the local manifest.
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
declare class UpdateCommand implements Command {
|
|
27
|
+
private readonly root;
|
|
28
|
+
private readonly options;
|
|
29
|
+
constructor(root: CompositionRoot, options: UpdateCommandOptions);
|
|
30
|
+
execute(): Promise<number>;
|
|
31
|
+
/**
|
|
32
|
+
* Parse a single `<name>[@range]` spec and, if a range is supplied, rewrite
|
|
33
|
+
* the manifest entry preserving its existing bucket + registry. Bare-name
|
|
34
|
+
* specs are a no-op at the manifest level — the subsequent install pass
|
|
35
|
+
* handles the re-resolve.
|
|
36
|
+
*/
|
|
37
|
+
private applySpec;
|
|
38
|
+
/**
|
|
39
|
+
* Find `name` in the manifest buckets, preserving the source-of-truth
|
|
40
|
+
* bucket + registry so `applySpec` doesn't move the dep between buckets.
|
|
41
|
+
*/
|
|
42
|
+
private locateDependency;
|
|
43
|
+
private delegateToInstall;
|
|
44
|
+
private fail;
|
|
44
45
|
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { UpdateCommand, UpdateCommandOptions };
|
|
45
48
|
//# sourceMappingURL=UpdateCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateCommand.d.ts","
|
|
1
|
+
{"version":3,"file":"UpdateCommand.d.ts","names":[],"sources":["../../src/commands/UpdateCommand.ts"],"mappings":";;;UAYiB;WACN;WACA;WACA;WACA;;;;;;;;;;;;;;;;;;cA0BE,yBAAyB;mBAEjB;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW;;;;;;;UAyBV;;;;;UA8CN;UAWA;UAUA"}
|