@uapkg/cli 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,83 +1,78 @@
|
|
|
1
|
+
//#region src/commands/ListCommand.ts
|
|
1
2
|
/**
|
|
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
|
-
|
|
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
|
-
}
|
|
80
|
-
return 0;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
3
|
+
* `uapkg list [--depth N]` — renders the resolved dependency tree.
|
|
4
|
+
*
|
|
5
|
+
* Pulls the lockfile via {@link PackageManifest.readLockfile}. A depth of 0
|
|
6
|
+
* prints only root declarations; `Infinity` prints everything (duplicates
|
|
7
|
+
* guarded so cycles can't loop forever).
|
|
8
|
+
*/
|
|
9
|
+
var ListCommand = class {
|
|
10
|
+
root;
|
|
11
|
+
options;
|
|
12
|
+
constructor(root, options) {
|
|
13
|
+
this.root = root;
|
|
14
|
+
this.options = options;
|
|
15
|
+
}
|
|
16
|
+
async execute() {
|
|
17
|
+
const manifestResult = await this.root.packageManifest.readManifest();
|
|
18
|
+
const lockfileResult = await this.root.packageManifest.getLockfileForReadOnly();
|
|
19
|
+
if (!manifestResult.ok) {
|
|
20
|
+
if (this.options.outputFormat === "json") this.root.json.emit({
|
|
21
|
+
status: "error",
|
|
22
|
+
command: "list",
|
|
23
|
+
diagnostics: [...manifestResult.diagnostics ?? []]
|
|
24
|
+
});
|
|
25
|
+
else this.root.diagnostics.reportAll(manifestResult.diagnostics);
|
|
26
|
+
return 1;
|
|
27
|
+
}
|
|
28
|
+
if (!lockfileResult.ok) {
|
|
29
|
+
if (this.options.outputFormat === "json") this.root.json.emit({
|
|
30
|
+
status: "error",
|
|
31
|
+
command: "list",
|
|
32
|
+
diagnostics: [...lockfileResult.diagnostics ?? []]
|
|
33
|
+
});
|
|
34
|
+
else this.root.diagnostics.reportAll(lockfileResult.diagnostics);
|
|
35
|
+
return 1;
|
|
36
|
+
}
|
|
37
|
+
if (this.options.outputFormat === "text") this.root.diagnostics.reportAll(lockfileResult.diagnostics);
|
|
38
|
+
const lockfile = lockfileResult.value;
|
|
39
|
+
const manifest = manifestResult.value;
|
|
40
|
+
const declared = Object.keys({
|
|
41
|
+
...manifest.dependencies,
|
|
42
|
+
...manifest.devDependencies
|
|
43
|
+
});
|
|
44
|
+
if (this.options.outputFormat === "json") {
|
|
45
|
+
this.root.json.emit({
|
|
46
|
+
status: "ok",
|
|
47
|
+
command: "list",
|
|
48
|
+
data: {
|
|
49
|
+
declared,
|
|
50
|
+
packages: lockfile.packages
|
|
51
|
+
},
|
|
52
|
+
diagnostics: lockfileResult.diagnostics
|
|
53
|
+
});
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
56
|
+
process.stdout.write(`${this.root.cwd}\n`);
|
|
57
|
+
for (const name of declared) {
|
|
58
|
+
const locked = lockfile.packages[name];
|
|
59
|
+
if (!locked) {
|
|
60
|
+
process.stdout.write(` ${name} (not in lockfile)\n`);
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
process.stdout.write(` ${name}@${locked.version} [${locked.registry}]\n`);
|
|
64
|
+
}
|
|
65
|
+
if (this.options.depth > 0) {
|
|
66
|
+
const remaining = Object.entries(lockfile.packages).filter(([name]) => !declared.includes(name));
|
|
67
|
+
if (remaining.length > 0) {
|
|
68
|
+
process.stdout.write(" --- transitive ---\n");
|
|
69
|
+
for (const [name, locked] of remaining) process.stdout.write(` ${name}@${locked.version} [${locked.registry}]\n`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return 0;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { ListCommand };
|
|
83
78
|
//# sourceMappingURL=ListCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListCommand.js","
|
|
1
|
+
{"version":3,"file":"ListCommand.js","names":[],"sources":["../../src/commands/ListCommand.ts"],"sourcesContent":["import type { CompositionRoot } from '../app/CompositionRoot.js';\nimport type { Command } from './Command.js';\n\nexport interface ListCommandOptions {\n readonly depth: number;\n readonly outputFormat: 'text' | 'json';\n}\n\n/**\n * `uapkg list [--depth N]` — renders the resolved dependency tree.\n *\n * Pulls the lockfile via {@link PackageManifest.readLockfile}. A depth of 0\n * prints only root declarations; `Infinity` prints everything (duplicates\n * guarded so cycles can't loop forever).\n */\nexport class ListCommand implements Command {\n public constructor(\n private readonly root: CompositionRoot,\n private readonly options: ListCommandOptions,\n ) {}\n\n public async execute(): Promise<number> {\n const manifestResult = await this.root.packageManifest.readManifest();\n const lockfileResult = await this.root.packageManifest.getLockfileForReadOnly();\n\n if (!manifestResult.ok) {\n if (this.options.outputFormat === 'json') {\n this.root.json.emit({\n status: 'error',\n command: 'list',\n diagnostics: [...(manifestResult.diagnostics ?? [])],\n });\n } else {\n this.root.diagnostics.reportAll(manifestResult.diagnostics);\n }\n return 1;\n }\n\n if (!lockfileResult.ok) {\n if (this.options.outputFormat === 'json') {\n this.root.json.emit({\n status: 'error',\n command: 'list',\n diagnostics: [...(lockfileResult.diagnostics ?? [])],\n });\n } else {\n this.root.diagnostics.reportAll(lockfileResult.diagnostics);\n }\n return 1;\n }\n\n if (this.options.outputFormat === 'text') {\n this.root.diagnostics.reportAll(lockfileResult.diagnostics);\n }\n\n const lockfile = lockfileResult.value;\n const manifest = manifestResult.value;\n const declared = Object.keys({\n ...manifest.dependencies,\n ...manifest.devDependencies,\n });\n\n if (this.options.outputFormat === 'json') {\n this.root.json.emit({\n status: 'ok',\n command: 'list',\n data: { declared, packages: lockfile.packages },\n diagnostics: lockfileResult.diagnostics,\n });\n return 0;\n }\n\n process.stdout.write(`${this.root.cwd}\\n`);\n for (const name of declared) {\n const locked = (lockfile.packages as Record<string, { version: string; registry: string }>)[name];\n if (!locked) {\n process.stdout.write(` ${name} (not in lockfile)\\n`);\n continue;\n }\n process.stdout.write(` ${name}@${locked.version} [${locked.registry}]\\n`);\n }\n if (this.options.depth > 0) {\n const remaining = Object.entries(\n lockfile.packages as Record<string, { version: string; registry: string }>,\n ).filter(([name]) => !declared.includes(name));\n if (remaining.length > 0) {\n process.stdout.write(' --- transitive ---\\n');\n for (const [name, locked] of remaining) {\n process.stdout.write(` ${name}@${locked.version} [${locked.registry}]\\n`);\n }\n }\n }\n return 0;\n }\n}\n"],"mappings":";;;;;;;;AAeA,IAAa,cAAb,MAA4C;CAEvB;CACA;CAFnB,AAAO,YACL,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;CAChB;CAEH,MAAa,UAA2B;EACtC,MAAM,iBAAiB,MAAM,KAAK,KAAK,gBAAgB,aAAa;EACpE,MAAM,iBAAiB,MAAM,KAAK,KAAK,gBAAgB,uBAAuB;EAE9E,IAAI,CAAC,eAAe,IAAI;GACtB,IAAI,KAAK,QAAQ,iBAAiB,QAChC,KAAK,KAAK,KAAK,KAAK;IAClB,QAAQ;IACR,SAAS;IACT,aAAa,CAAC,GAAI,eAAe,eAAe,CAAC,CAAE;GACrD,CAAC;QAED,KAAK,KAAK,YAAY,UAAU,eAAe,WAAW;GAE5D,OAAO;EACT;EAEA,IAAI,CAAC,eAAe,IAAI;GACtB,IAAI,KAAK,QAAQ,iBAAiB,QAChC,KAAK,KAAK,KAAK,KAAK;IAClB,QAAQ;IACR,SAAS;IACT,aAAa,CAAC,GAAI,eAAe,eAAe,CAAC,CAAE;GACrD,CAAC;QAED,KAAK,KAAK,YAAY,UAAU,eAAe,WAAW;GAE5D,OAAO;EACT;EAEA,IAAI,KAAK,QAAQ,iBAAiB,QAChC,KAAK,KAAK,YAAY,UAAU,eAAe,WAAW;EAG5D,MAAM,WAAW,eAAe;EAChC,MAAM,WAAW,eAAe;EAChC,MAAM,WAAW,OAAO,KAAK;GAC3B,GAAG,SAAS;GACZ,GAAG,SAAS;EACd,CAAC;EAED,IAAI,KAAK,QAAQ,iBAAiB,QAAQ;GACxC,KAAK,KAAK,KAAK,KAAK;IAClB,QAAQ;IACR,SAAS;IACT,MAAM;KAAE;KAAU,UAAU,SAAS;IAAS;IAC9C,aAAa,eAAe;GAC9B,CAAC;GACD,OAAO;EACT;EAEA,QAAQ,OAAO,MAAM,GAAG,KAAK,KAAK,IAAI,GAAG;EACzC,KAAK,MAAM,QAAQ,UAAU;GAC3B,MAAM,SAAU,SAAS,SAAmE;GAC5F,IAAI,CAAC,QAAQ;IACX,QAAQ,OAAO,MAAM,KAAK,KAAK,qBAAqB;IACpD;GACF;GACA,QAAQ,OAAO,MAAM,KAAK,KAAK,GAAG,OAAO,QAAQ,KAAK,OAAO,SAAS,IAAI;EAC5E;EACA,IAAI,KAAK,QAAQ,QAAQ,GAAG;GAC1B,MAAM,YAAY,OAAO,QACvB,SAAS,QACX,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,SAAS,IAAI,CAAC;GAC7C,IAAI,UAAU,SAAS,GAAG;IACxB,QAAQ,OAAO,MAAM,wBAAwB;IAC7C,KAAK,MAAM,CAAC,MAAM,WAAW,WAC3B,QAAQ,OAAO,MAAM,KAAK,KAAK,GAAG,OAAO,QAAQ,KAAK,OAAO,SAAS,IAAI;GAE9E;EACF;EACA,OAAO;CACT;AACF"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { CompositionRoot } from "../app/CompositionRoot.js";
|
|
2
|
+
import { UAPKGOutputFormat } from "../cli/UAPKGCommandLine.js";
|
|
3
|
+
import { Command } from "./Command.js";
|
|
4
|
+
//#region src/commands/LoginCommand.d.ts
|
|
5
|
+
interface LoginCommandOptions {
|
|
6
|
+
readonly registry?: string;
|
|
7
|
+
readonly deviceName?: string;
|
|
8
|
+
readonly reauthorize: boolean;
|
|
9
|
+
readonly outputFormat: UAPKGOutputFormat;
|
|
9
10
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
declare class LoginCommand implements Command {
|
|
12
|
+
private readonly root;
|
|
13
|
+
private readonly options;
|
|
14
|
+
constructor(root: CompositionRoot, options: LoginCommandOptions);
|
|
15
|
+
execute(): Promise<number>;
|
|
16
|
+
private reportProgress;
|
|
16
17
|
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { LoginCommand, LoginCommandOptions };
|
|
17
20
|
//# sourceMappingURL=LoginCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginCommand.d.ts","
|
|
1
|
+
{"version":3,"file":"LoginCommand.d.ts","names":[],"sources":["../../src/commands/LoginCommand.ts"],"mappings":";;;;UAKiB;WACN;WACA;WACA;WACA,cAAc;;cAGZ,wBAAwB;mBAEhB;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW;UAoChB"}
|
|
@@ -1,73 +1,67 @@
|
|
|
1
|
-
import { loginDiagnosticForError } 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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
break;
|
|
68
|
-
default:
|
|
69
|
-
event;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
import { loginDiagnosticForError } from "../control-plane/AccountManager.js";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/LoginCommand.ts
|
|
4
|
+
var LoginCommand = class {
|
|
5
|
+
root;
|
|
6
|
+
options;
|
|
7
|
+
constructor(root, options) {
|
|
8
|
+
this.root = root;
|
|
9
|
+
this.options = options;
|
|
10
|
+
}
|
|
11
|
+
async execute() {
|
|
12
|
+
try {
|
|
13
|
+
const trust = await this.root.registryTrustResolver.resolve(this.options.registry);
|
|
14
|
+
const result = await this.root.accountManager.login(trust, {
|
|
15
|
+
deviceName: this.options.deviceName,
|
|
16
|
+
reauthorize: this.options.reauthorize,
|
|
17
|
+
onProgress: (event) => this.reportProgress(event)
|
|
18
|
+
});
|
|
19
|
+
if (this.options.outputFormat === "json") this.root.json.emitSuccess("login", {
|
|
20
|
+
registry: {
|
|
21
|
+
alias: trust.alias,
|
|
22
|
+
id: trust.registryId,
|
|
23
|
+
name: trust.registryName
|
|
24
|
+
},
|
|
25
|
+
account: result.grant.account,
|
|
26
|
+
deviceName: result.grant.deviceName,
|
|
27
|
+
expiresAt: result.grant.expiresAt,
|
|
28
|
+
warnings: result.warnings
|
|
29
|
+
});
|
|
30
|
+
else process.stdout.write(`Logged in to "${trust.alias}" as ${result.grant.account.username} on ${result.grant.deviceName}.\n`);
|
|
31
|
+
for (const warning of result.warnings) process.stderr.write(`Warning: ${warning}\n`);
|
|
32
|
+
return 0;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
const diagnostic = loginDiagnosticForError(error);
|
|
35
|
+
if (this.options.outputFormat === "json") this.root.json.emitError("login", [diagnostic]);
|
|
36
|
+
else process.stderr.write(`${diagnostic.message}\n`);
|
|
37
|
+
return 1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
reportProgress(event) {
|
|
41
|
+
switch (event.type) {
|
|
42
|
+
case "preparing":
|
|
43
|
+
process.stderr.write(`Preparing browser authorization for "${event.registryAlias}"…\n`);
|
|
44
|
+
break;
|
|
45
|
+
case "opening-browser":
|
|
46
|
+
process.stderr.write("Opening the UAPKG account page…\n");
|
|
47
|
+
break;
|
|
48
|
+
case "browser-open-failed":
|
|
49
|
+
process.stderr.write(`Unable to open the browser automatically. Open this one-time URL to continue:\n${event.authorizationUrl}\n`);
|
|
50
|
+
break;
|
|
51
|
+
case "waiting-for-decision":
|
|
52
|
+
process.stderr.write("Waiting for you to approve or deny access in the browser…\n");
|
|
53
|
+
break;
|
|
54
|
+
case "approval-received":
|
|
55
|
+
process.stderr.write("Approval received. Verifying the account…\n");
|
|
56
|
+
break;
|
|
57
|
+
case "saving-local-credentials":
|
|
58
|
+
process.stderr.write("Saving credentials in this device's protected credential store…\n");
|
|
59
|
+
break;
|
|
60
|
+
case "confirming-with-service": process.stderr.write("Local credentials saved. Confirming the login with UAPKG…\n");
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
//#endregion
|
|
66
|
+
export { LoginCommand };
|
|
73
67
|
//# sourceMappingURL=LoginCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginCommand.js","
|
|
1
|
+
{"version":3,"file":"LoginCommand.js","names":[],"sources":["../../src/commands/LoginCommand.ts"],"sourcesContent":["import type { CompositionRoot } from '../app/CompositionRoot.js';\nimport type { UAPKGOutputFormat } from '../cli/UAPKGCommandLine.js';\nimport { type LoginProgressEvent, loginDiagnosticForError } from '../control-plane/AccountManager.js';\nimport type { Command } from './Command.js';\n\nexport interface LoginCommandOptions {\n readonly registry?: string;\n readonly deviceName?: string;\n readonly reauthorize: boolean;\n readonly outputFormat: UAPKGOutputFormat;\n}\n\nexport class LoginCommand implements Command {\n public constructor(\n private readonly root: CompositionRoot,\n private readonly options: LoginCommandOptions,\n ) {}\n\n public async execute(): Promise<number> {\n try {\n const trust = await this.root.registryTrustResolver.resolve(this.options.registry);\n const result = await this.root.accountManager.login(trust, {\n deviceName: this.options.deviceName,\n reauthorize: this.options.reauthorize,\n onProgress: (event) => this.reportProgress(event),\n });\n if (this.options.outputFormat === 'json') {\n this.root.json.emitSuccess('login', {\n registry: { alias: trust.alias, id: trust.registryId, name: trust.registryName },\n account: result.grant.account,\n deviceName: result.grant.deviceName,\n expiresAt: result.grant.expiresAt,\n warnings: result.warnings,\n });\n } else {\n process.stdout.write(\n `Logged in to \"${trust.alias}\" as ${result.grant.account.username} on ${result.grant.deviceName}.\\n`,\n );\n }\n for (const warning of result.warnings) {\n process.stderr.write(`Warning: ${warning}\\n`);\n }\n return 0;\n } catch (error) {\n const diagnostic = loginDiagnosticForError(error);\n if (this.options.outputFormat === 'json') {\n this.root.json.emitError('login', [diagnostic]);\n } else {\n process.stderr.write(`${diagnostic.message}\\n`);\n }\n return 1;\n }\n }\n\n private reportProgress(event: LoginProgressEvent): void {\n switch (event.type) {\n case 'preparing':\n process.stderr.write(`Preparing browser authorization for \"${event.registryAlias}\"…\\n`);\n break;\n case 'opening-browser':\n process.stderr.write('Opening the UAPKG account page…\\n');\n break;\n case 'browser-open-failed':\n process.stderr.write(\n `Unable to open the browser automatically. Open this one-time URL to continue:\\n${event.authorizationUrl}\\n`,\n );\n break;\n case 'waiting-for-decision':\n process.stderr.write('Waiting for you to approve or deny access in the browser…\\n');\n break;\n case 'approval-received':\n process.stderr.write('Approval received. Verifying the account…\\n');\n break;\n case 'saving-local-credentials':\n process.stderr.write(\"Saving credentials in this device's protected credential store…\\n\");\n break;\n case 'confirming-with-service':\n process.stderr.write('Local credentials saved. Confirming the login with UAPKG…\\n');\n break;\n default:\n event satisfies never;\n }\n }\n}\n"],"mappings":";;;AAYA,IAAa,eAAb,MAA6C;CAExB;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,MAAM,SAAS,MAAM,KAAK,KAAK,eAAe,MAAM,OAAO;IACzD,YAAY,KAAK,QAAQ;IACzB,aAAa,KAAK,QAAQ;IAC1B,aAAa,UAAU,KAAK,eAAe,KAAK;GAClD,CAAC;GACD,IAAI,KAAK,QAAQ,iBAAiB,QAChC,KAAK,KAAK,KAAK,YAAY,SAAS;IAClC,UAAU;KAAE,OAAO,MAAM;KAAO,IAAI,MAAM;KAAY,MAAM,MAAM;IAAa;IAC/E,SAAS,OAAO,MAAM;IACtB,YAAY,OAAO,MAAM;IACzB,WAAW,OAAO,MAAM;IACxB,UAAU,OAAO;GACnB,CAAC;QAED,QAAQ,OAAO,MACb,iBAAiB,MAAM,MAAM,OAAO,OAAO,MAAM,QAAQ,SAAS,MAAM,OAAO,MAAM,WAAW,IAClG;GAEF,KAAK,MAAM,WAAW,OAAO,UAC3B,QAAQ,OAAO,MAAM,YAAY,QAAQ,GAAG;GAE9C,OAAO;EACT,SAAS,OAAO;GACd,MAAM,aAAa,wBAAwB,KAAK;GAChD,IAAI,KAAK,QAAQ,iBAAiB,QAChC,KAAK,KAAK,KAAK,UAAU,SAAS,CAAC,UAAU,CAAC;QAE9C,QAAQ,OAAO,MAAM,GAAG,WAAW,QAAQ,GAAG;GAEhD,OAAO;EACT;CACF;CAEA,AAAQ,eAAe,OAAiC;EACtD,QAAQ,MAAM,MAAd;GACE,KAAK;IACH,QAAQ,OAAO,MAAM,wCAAwC,MAAM,cAAc,KAAK;IACtF;GACF,KAAK;IACH,QAAQ,OAAO,MAAM,mCAAmC;IACxD;GACF,KAAK;IACH,QAAQ,OAAO,MACb,kFAAkF,MAAM,iBAAiB,GAC3G;IACA;GACF,KAAK;IACH,QAAQ,OAAO,MAAM,6DAA6D;IAClF;GACF,KAAK;IACH,QAAQ,OAAO,MAAM,6CAA6C;IAClE;GACF,KAAK;IACH,QAAQ,OAAO,MAAM,mEAAmE;IACxF;GACF,KAAK,2BACH,QAAQ,OAAO,MAAM,6DAA6D;EAItF;CACF;AACF"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { CompositionRoot } from "../app/CompositionRoot.js";
|
|
2
|
+
import { UAPKGOutputFormat } from "../cli/UAPKGCommandLine.js";
|
|
3
|
+
import { Command } from "./Command.js";
|
|
4
|
+
//#region src/commands/LogoutCommand.d.ts
|
|
5
|
+
interface LogoutCommandOptions {
|
|
6
|
+
readonly registry?: string;
|
|
7
|
+
readonly localOnly: boolean;
|
|
8
|
+
readonly outputFormat: UAPKGOutputFormat;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
declare class LogoutCommand implements Command {
|
|
11
|
+
private readonly root;
|
|
12
|
+
private readonly options;
|
|
13
|
+
constructor(root: CompositionRoot, options: LogoutCommandOptions);
|
|
14
|
+
execute(): Promise<number>;
|
|
14
15
|
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { LogoutCommand, LogoutCommandOptions };
|
|
15
18
|
//# sourceMappingURL=LogoutCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoutCommand.d.ts","
|
|
1
|
+
{"version":3,"file":"LogoutCommand.d.ts","names":[],"sources":["../../src/commands/LogoutCommand.ts"],"mappings":";;;;UAKiB;WACN;WACA;WACA,cAAc;;cAGZ,yBAAyB;mBAEjB;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW"}
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import { describeControlPlaneError } 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
|
-
}
|
|
1
|
+
import { describeControlPlaneError } from "../control-plane/AccountManager.js";
|
|
2
|
+
|
|
3
|
+
//#region src/commands/LogoutCommand.ts
|
|
4
|
+
var LogoutCommand = class {
|
|
5
|
+
root;
|
|
6
|
+
options;
|
|
7
|
+
constructor(root, options) {
|
|
8
|
+
this.root = root;
|
|
9
|
+
this.options = options;
|
|
10
|
+
}
|
|
11
|
+
async execute() {
|
|
12
|
+
try {
|
|
13
|
+
const trust = await this.root.registryTrustResolver.resolve(this.options.registry);
|
|
14
|
+
const result = await this.root.accountManager.logout(trust, this.options.localOnly);
|
|
15
|
+
if (this.options.outputFormat === "json") process.stdout.write(`${JSON.stringify({
|
|
16
|
+
ok: true,
|
|
17
|
+
registry: {
|
|
18
|
+
alias: trust.alias,
|
|
19
|
+
id: trust.registryId
|
|
20
|
+
},
|
|
21
|
+
removed: result === "removed",
|
|
22
|
+
serverRevoked: result === "removed" && !this.options.localOnly
|
|
23
|
+
})}\n`);
|
|
24
|
+
else if (result === "not-logged-in") process.stdout.write(`No saved login exists for "${trust.alias}".\n`);
|
|
25
|
+
else if (this.options.localOnly) process.stdout.write(`Removed the local login for "${trust.alias}". The remote grant may remain active; revoke it from the account website.\n`);
|
|
26
|
+
else process.stdout.write(`Revoked and removed the saved login for "${trust.alias}".\n`);
|
|
27
|
+
return 0;
|
|
28
|
+
} catch (error) {
|
|
29
|
+
process.stderr.write(`${describeControlPlaneError(error)}\n`);
|
|
30
|
+
return 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { LogoutCommand };
|
|
38
37
|
//# sourceMappingURL=LogoutCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoutCommand.js","
|
|
1
|
+
{"version":3,"file":"LogoutCommand.js","names":[],"sources":["../../src/commands/LogoutCommand.ts"],"sourcesContent":["import type { CompositionRoot } from '../app/CompositionRoot.js';\nimport type { UAPKGOutputFormat } from '../cli/UAPKGCommandLine.js';\nimport { describeControlPlaneError } from '../control-plane/AccountManager.js';\nimport type { Command } from './Command.js';\n\nexport interface LogoutCommandOptions {\n readonly registry?: string;\n readonly localOnly: boolean;\n readonly outputFormat: UAPKGOutputFormat;\n}\n\nexport class LogoutCommand implements Command {\n public constructor(\n private readonly root: CompositionRoot,\n private readonly options: LogoutCommandOptions,\n ) {}\n\n public async execute(): Promise<number> {\n try {\n const trust = await this.root.registryTrustResolver.resolve(this.options.registry);\n const result = await this.root.accountManager.logout(trust, this.options.localOnly);\n if (this.options.outputFormat === 'json') {\n process.stdout.write(\n `${JSON.stringify({\n ok: true,\n registry: { alias: trust.alias, id: trust.registryId },\n removed: result === 'removed',\n serverRevoked: result === 'removed' && !this.options.localOnly,\n })}\\n`,\n );\n } else if (result === 'not-logged-in') {\n process.stdout.write(`No saved login exists for \"${trust.alias}\".\\n`);\n } else if (this.options.localOnly) {\n process.stdout.write(\n `Removed the local login for \"${trust.alias}\". The remote grant may remain active; revoke it from the account website.\\n`,\n );\n } else {\n process.stdout.write(`Revoked and removed the saved login for \"${trust.alias}\".\\n`);\n }\n return 0;\n } catch (error) {\n process.stderr.write(`${describeControlPlaneError(error)}\\n`);\n return 1;\n }\n }\n}\n"],"mappings":";;;AAWA,IAAa,gBAAb,MAA8C;CAEzB;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,MAAM,SAAS,MAAM,KAAK,KAAK,eAAe,OAAO,OAAO,KAAK,QAAQ,SAAS;GAClF,IAAI,KAAK,QAAQ,iBAAiB,QAChC,QAAQ,OAAO,MACb,GAAG,KAAK,UAAU;IAChB,IAAI;IACJ,UAAU;KAAE,OAAO,MAAM;KAAO,IAAI,MAAM;IAAW;IACrD,SAAS,WAAW;IACpB,eAAe,WAAW,aAAa,CAAC,KAAK,QAAQ;GACvD,CAAC,EAAE,GACL;QACK,IAAI,WAAW,iBACpB,QAAQ,OAAO,MAAM,8BAA8B,MAAM,MAAM,KAAK;QAC/D,IAAI,KAAK,QAAQ,WACtB,QAAQ,OAAO,MACb,gCAAgC,MAAM,MAAM,6EAC9C;QAEA,QAAQ,OAAO,MAAM,4CAA4C,MAAM,MAAM,KAAK;GAEpF,OAAO;EACT,SAAS,OAAO;GACd,QAAQ,OAAO,MAAM,GAAG,0BAA0B,KAAK,EAAE,GAAG;GAC5D,OAAO;EACT;CACF;AACF"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { CompositionRoot } from "../app/CompositionRoot.js";
|
|
2
|
+
import { Command } from "./Command.js";
|
|
3
|
+
//#region src/commands/OutdatedCommand.d.ts
|
|
4
|
+
interface OutdatedCommandOptions {
|
|
5
|
+
readonly outputFormat: 'text' | 'json';
|
|
5
6
|
}
|
|
6
7
|
/**
|
|
7
8
|
* `uapkg outdated` — emits one row per declared dependency with
|
|
@@ -11,10 +12,12 @@ export interface OutdatedCommandOptions {
|
|
|
11
12
|
* Exit code 0 when all rows are `up-to-date`; otherwise 2 so CI gates can
|
|
12
13
|
* branch on it. JSON mode emits the full array on stdout in a single write.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
declare class OutdatedCommand implements Command {
|
|
16
|
+
private readonly root;
|
|
17
|
+
private readonly options;
|
|
18
|
+
constructor(root: CompositionRoot, options: OutdatedCommandOptions);
|
|
19
|
+
execute(): Promise<number>;
|
|
19
20
|
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { OutdatedCommand, OutdatedCommandOptions };
|
|
20
23
|
//# sourceMappingURL=OutdatedCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutdatedCommand.d.ts","
|
|
1
|
+
{"version":3,"file":"OutdatedCommand.d.ts","names":[],"sources":["../../src/commands/OutdatedCommand.ts"],"mappings":";;;UAGiB;WACN;;;;;;;;;;cAWE,2BAA2B;mBAEnB;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW"}
|