@uapkg/cli 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 -129
- 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 -244
- 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,46 +1,47 @@
|
|
|
1
|
+
//#region src/commands/WhyCommand.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
|
-
}
|
|
3
|
+
* `uapkg why <name>` — prints every dependency path from a graph root to the
|
|
4
|
+
* target package. Implemented as a pure consumer of
|
|
5
|
+
* {@link PackageManifest.explainWhy}.
|
|
6
|
+
*
|
|
7
|
+
* Exit code 0 when the target is present, 3 when not found, 1 on any
|
|
8
|
+
* resolver error.
|
|
9
|
+
*/
|
|
10
|
+
var WhyCommand = class {
|
|
11
|
+
root;
|
|
12
|
+
options;
|
|
13
|
+
constructor(root, options) {
|
|
14
|
+
this.root = root;
|
|
15
|
+
this.options = options;
|
|
16
|
+
}
|
|
17
|
+
async execute() {
|
|
18
|
+
const target = this.options.target;
|
|
19
|
+
const result = await this.root.packageManifest.explainWhy(target);
|
|
20
|
+
if (this.options.outputFormat === "json") {
|
|
21
|
+
this.root.json.emit({
|
|
22
|
+
status: result.ok ? "ok" : "error",
|
|
23
|
+
command: "why",
|
|
24
|
+
data: result.ok ? result.value : void 0,
|
|
25
|
+
diagnostics: result.diagnostics
|
|
26
|
+
});
|
|
27
|
+
return result.ok ? result.value.paths.length === 0 && !result.value.foundAsRoot ? 3 : 0 : 1;
|
|
28
|
+
}
|
|
29
|
+
this.root.diagnostics.reportAll(result.diagnostics);
|
|
30
|
+
if (!result.ok) return 1;
|
|
31
|
+
const { paths, foundAsRoot } = result.value;
|
|
32
|
+
if (paths.length === 0 && !foundAsRoot) {
|
|
33
|
+
process.stdout.write(`No installation of "${target}" in the resolved graph.\n`);
|
|
34
|
+
return 3;
|
|
35
|
+
}
|
|
36
|
+
if (foundAsRoot) process.stdout.write(`${target} (declared at root)\n`);
|
|
37
|
+
for (const p of paths) {
|
|
38
|
+
const rendered = p.path.map((e) => `${e.name}@${e.version}`).join(" → ");
|
|
39
|
+
process.stdout.write(` ${rendered}\n`);
|
|
40
|
+
}
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { WhyCommand };
|
|
46
47
|
//# sourceMappingURL=WhyCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhyCommand.js","
|
|
1
|
+
{"version":3,"file":"WhyCommand.js","names":[],"sources":["../../src/commands/WhyCommand.ts"],"sourcesContent":["import type { PackageName } from '@uapkg/common-schema';\nimport type { CompositionRoot } from '../app/CompositionRoot.js';\nimport type { Command } from './Command.js';\n\nexport interface WhyCommandOptions {\n readonly target: string;\n readonly outputFormat: 'text' | 'json';\n}\n\n/**\n * `uapkg why <name>` — prints every dependency path from a graph root to the\n * target package. Implemented as a pure consumer of\n * {@link PackageManifest.explainWhy}.\n *\n * Exit code 0 when the target is present, 3 when not found, 1 on any\n * resolver error.\n */\nexport class WhyCommand implements Command {\n public constructor(\n private readonly root: CompositionRoot,\n private readonly options: WhyCommandOptions,\n ) {}\n\n public async execute(): Promise<number> {\n const target = this.options.target as PackageName;\n const result = await this.root.packageManifest.explainWhy(target);\n\n if (this.options.outputFormat === 'json') {\n this.root.json.emit({\n status: result.ok ? 'ok' : 'error',\n command: 'why',\n data: result.ok ? result.value : undefined,\n diagnostics: result.diagnostics,\n });\n return result.ok ? (result.value.paths.length === 0 && !result.value.foundAsRoot ? 3 : 0) : 1;\n }\n\n this.root.diagnostics.reportAll(result.diagnostics);\n if (!result.ok) return 1;\n\n const { paths, foundAsRoot } = result.value;\n if (paths.length === 0 && !foundAsRoot) {\n process.stdout.write(`No installation of \"${target}\" in the resolved graph.\\n`);\n return 3;\n }\n if (foundAsRoot) {\n process.stdout.write(`${target} (declared at root)\\n`);\n }\n for (const p of paths) {\n const rendered = p.path.map((e) => `${e.name}@${e.version}`).join(' → ');\n process.stdout.write(` ${rendered}\\n`);\n }\n return 0;\n }\n}\n"],"mappings":";;;;;;;;;AAiBA,IAAa,aAAb,MAA2C;CAEtB;CACA;CAFnB,AAAO,YACL,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;CAChB;CAEH,MAAa,UAA2B;EACtC,MAAM,SAAS,KAAK,QAAQ;EAC5B,MAAM,SAAS,MAAM,KAAK,KAAK,gBAAgB,WAAW,MAAM;EAEhE,IAAI,KAAK,QAAQ,iBAAiB,QAAQ;GACxC,KAAK,KAAK,KAAK,KAAK;IAClB,QAAQ,OAAO,KAAK,OAAO;IAC3B,SAAS;IACT,MAAM,OAAO,KAAK,OAAO,QAAQ;IACjC,aAAa,OAAO;GACtB,CAAC;GACD,OAAO,OAAO,KAAM,OAAO,MAAM,MAAM,WAAW,KAAK,CAAC,OAAO,MAAM,cAAc,IAAI,IAAK;EAC9F;EAEA,KAAK,KAAK,YAAY,UAAU,OAAO,WAAW;EAClD,IAAI,CAAC,OAAO,IAAI,OAAO;EAEvB,MAAM,EAAE,OAAO,gBAAgB,OAAO;EACtC,IAAI,MAAM,WAAW,KAAK,CAAC,aAAa;GACtC,QAAQ,OAAO,MAAM,uBAAuB,OAAO,2BAA2B;GAC9E,OAAO;EACT;EACA,IAAI,aACF,QAAQ,OAAO,MAAM,GAAG,OAAO,sBAAsB;EAEvD,KAAK,MAAM,KAAK,OAAO;GACrB,MAAM,WAAW,EAAE,KAAK,KAAK,MAAM,GAAG,EAAE,KAAK,GAAG,EAAE,SAAS,CAAC,CAAC,KAAK,KAAK;GACvE,QAAQ,OAAO,MAAM,KAAK,SAAS,GAAG;EACxC;EACA,OAAO;CACT;AACF"}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { CompositionRoot } from "../../app/CompositionRoot.js";
|
|
2
|
+
import { PackageSpec } from "@uapkg/common-schema";
|
|
3
|
+
import { Result } from "@uapkg/diagnostics";
|
|
4
|
+
import { Dependency } from "@uapkg/package-manifest-schema";
|
|
5
|
+
//#region src/commands/add/DependencyAddResolver.d.ts
|
|
6
|
+
interface ResolvedAddDependency {
|
|
7
|
+
readonly dependency: Dependency;
|
|
8
|
+
readonly resolvedVersion: string;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Resolves an `add` request against the selected registry before mutating the
|
|
11
12
|
* manifest, ensuring package and version existence.
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
declare class DependencyAddResolver {
|
|
15
|
+
private readonly root;
|
|
16
|
+
constructor(root: CompositionRoot);
|
|
17
|
+
resolve(spec: PackageSpec, registryNameInput?: string): Promise<Result<ResolvedAddDependency>>;
|
|
17
18
|
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { DependencyAddResolver, ResolvedAddDependency };
|
|
18
21
|
//# sourceMappingURL=DependencyAddResolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DependencyAddResolver.d.ts","
|
|
1
|
+
{"version":3,"file":"DependencyAddResolver.d.ts","names":[],"sources":["../../../src/commands/add/DependencyAddResolver.ts"],"mappings":";;;;;UAMiB;WACN,YAAY;WACZ;;;;;;cAOE;mBACyB;EAApC,YAAoC,MAAM;EAE7B,QAAQ,MAAM,aAAa,6BAA6B,QAAQ,OAAO"}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { DEFAULT_REGISTRY_ALIAS, RegistryNameSchema, VersionRangeSchema } from
|
|
2
|
-
import { createRegistryNotFoundDiagnostic, fail, ok } from
|
|
1
|
+
import { DEFAULT_REGISTRY_ALIAS, RegistryNameSchema, VersionRangeSchema } from "@uapkg/common-schema";
|
|
2
|
+
import { createRegistryNotFoundDiagnostic, fail, ok } from "@uapkg/diagnostics";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/add/DependencyAddResolver.ts
|
|
3
5
|
/**
|
|
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
|
-
}
|
|
6
|
+
* Resolves an `add` request against the selected registry before mutating the
|
|
7
|
+
* manifest, ensuring package and version existence.
|
|
8
|
+
*/
|
|
9
|
+
var DependencyAddResolver = class {
|
|
10
|
+
root;
|
|
11
|
+
constructor(root) {
|
|
12
|
+
this.root = root;
|
|
13
|
+
}
|
|
14
|
+
async resolve(spec, registryNameInput) {
|
|
15
|
+
const registryCandidate = registryNameInput ?? this.root.config.get("registry") ?? "default";
|
|
16
|
+
const registryNameResult = RegistryNameSchema.safeParse(registryCandidate);
|
|
17
|
+
if (!registryNameResult.success) return fail([createRegistryNotFoundDiagnostic(registryCandidate)]);
|
|
18
|
+
const registryName = registryNameResult.data;
|
|
19
|
+
const registryResult = this.root.registryCore.getOrCreateRegistry(registryName);
|
|
20
|
+
if (!registryResult.ok) return registryResult;
|
|
21
|
+
const requestedRange = spec.range ?? "*";
|
|
22
|
+
const resolution = await registryResult.value.resolvePackage(spec.name, requestedRange, registryName);
|
|
23
|
+
if (!resolution.ok) return resolution;
|
|
24
|
+
const dependencyRange = spec.range ?? VersionRangeSchema.parse(`^${resolution.value.version}`);
|
|
25
|
+
const recordedRegistry = registryNameInput !== void 0 && registryName !== DEFAULT_REGISTRY_ALIAS ? registryName : void 0;
|
|
26
|
+
return ok({
|
|
27
|
+
dependency: {
|
|
28
|
+
version: dependencyRange,
|
|
29
|
+
...recordedRegistry !== void 0 ? { registry: recordedRegistry } : {}
|
|
30
|
+
},
|
|
31
|
+
resolvedVersion: resolution.value.version
|
|
32
|
+
}, resolution.diagnostics);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { DependencyAddResolver };
|
|
38
38
|
//# sourceMappingURL=DependencyAddResolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DependencyAddResolver.js","
|
|
1
|
+
{"version":3,"file":"DependencyAddResolver.js","names":[],"sources":["../../../src/commands/add/DependencyAddResolver.ts"],"sourcesContent":["import type { PackageSpec, VersionRange } from '@uapkg/common-schema';\nimport { DEFAULT_REGISTRY_ALIAS, RegistryNameSchema, VersionRangeSchema } from '@uapkg/common-schema';\nimport { createRegistryNotFoundDiagnostic, fail, ok, type Result } from '@uapkg/diagnostics';\nimport type { Dependency } from '@uapkg/package-manifest-schema';\nimport type { CompositionRoot } from '../../app/CompositionRoot.js';\n\nexport interface ResolvedAddDependency {\n readonly dependency: Dependency;\n readonly resolvedVersion: string;\n}\n\n/**\n * Resolves an `add` request against the selected registry before mutating the\n * manifest, ensuring package and version existence.\n */\nexport class DependencyAddResolver {\n public constructor(private readonly root: CompositionRoot) {}\n\n public async resolve(spec: PackageSpec, registryNameInput?: string): Promise<Result<ResolvedAddDependency>> {\n const registryCandidate = registryNameInput ?? (this.root.config.get('registry') as string | null) ?? 'default';\n const registryNameResult = RegistryNameSchema.safeParse(registryCandidate);\n if (!registryNameResult.success) {\n return fail([createRegistryNotFoundDiagnostic(registryCandidate)]);\n }\n const registryName = registryNameResult.data;\n\n const registryResult = this.root.registryCore.getOrCreateRegistry(registryName);\n if (!registryResult.ok) return registryResult as Result<never>;\n\n const requestedRange = spec.range ?? ('*' as unknown as VersionRange);\n const resolution = await registryResult.value.resolvePackage(\n spec.name as unknown as string,\n requestedRange,\n registryName,\n );\n if (!resolution.ok) return resolution as Result<never>;\n\n const dependencyRange = spec.range ?? VersionRangeSchema.parse(`^${resolution.value.version}`);\n\n // Only an explicit non-default --registry is recorded; the default alias stays absent in the manifest.\n const recordedRegistry =\n registryNameInput !== undefined && registryName !== DEFAULT_REGISTRY_ALIAS ? registryName : undefined;\n\n return ok(\n {\n dependency: {\n version: dependencyRange,\n ...(recordedRegistry !== undefined ? { registry: recordedRegistry } : {}),\n },\n resolvedVersion: resolution.value.version,\n },\n resolution.diagnostics,\n );\n }\n}\n"],"mappings":";;;;;;;;AAeA,IAAa,wBAAb,MAAmC;CACG;CAApC,AAAO,YAAY,AAAiB,MAAuB;EAAvB;CAAwB;CAE5D,MAAa,QAAQ,MAAmB,mBAAoE;EAC1G,MAAM,oBAAoB,qBAAsB,KAAK,KAAK,OAAO,IAAI,UAAU,KAAuB;EACtG,MAAM,qBAAqB,mBAAmB,UAAU,iBAAiB;EACzE,IAAI,CAAC,mBAAmB,SACtB,OAAO,KAAK,CAAC,iCAAiC,iBAAiB,CAAC,CAAC;EAEnE,MAAM,eAAe,mBAAmB;EAExC,MAAM,iBAAiB,KAAK,KAAK,aAAa,oBAAoB,YAAY;EAC9E,IAAI,CAAC,eAAe,IAAI,OAAO;EAE/B,MAAM,iBAAiB,KAAK,SAAU;EACtC,MAAM,aAAa,MAAM,eAAe,MAAM,eAC5C,KAAK,MACL,gBACA,YACF;EACA,IAAI,CAAC,WAAW,IAAI,OAAO;EAE3B,MAAM,kBAAkB,KAAK,SAAS,mBAAmB,MAAM,IAAI,WAAW,MAAM,SAAS;EAG7F,MAAM,mBACJ,sBAAsB,UAAa,iBAAiB,yBAAyB,eAAe;EAE9F,OAAO,GACL;GACE,YAAY;IACV,SAAS;IACT,GAAI,qBAAqB,SAAY,EAAE,UAAU,iBAAiB,IAAI,CAAC;GACzE;GACA,iBAAiB,WAAW,MAAM;EACpC,GACA,WAAW,WACb;CACF;AACF"}
|
|
@@ -1,110 +1,112 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { CredentialStore } from
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { RegistryGrantMetadata, RegistryTrust, UAPKGCliScope } from "./ControlPlaneTypes.js";
|
|
2
|
+
import { RegistryGrantLock } from "./RegistryGrantLock.js";
|
|
3
|
+
import { AuthMetadataStore } from "./AuthMetadataStore.js";
|
|
4
|
+
import { ControlPlaneCredential } from "./ControlPlaneClient.js";
|
|
5
|
+
import { CredentialStore } from "./CredentialStore.js";
|
|
6
|
+
import { ControlPlaneCommandFailedDiagnostic, ControlPlaneDiagnostic, LoginDiagnosticCode } from "@uapkg/diagnostics";
|
|
7
|
+
//#region src/control-plane/AccountManager.d.ts
|
|
8
|
+
interface LoginOptions {
|
|
9
|
+
readonly deviceName?: string;
|
|
10
|
+
readonly reauthorize?: boolean;
|
|
11
|
+
readonly onProgress?: (event: LoginProgressEvent) => void;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
type LoginProgressEvent = {
|
|
14
|
+
readonly type: 'preparing';
|
|
15
|
+
readonly registryAlias: string;
|
|
15
16
|
} | {
|
|
16
|
-
|
|
17
|
+
readonly type: 'opening-browser';
|
|
17
18
|
} | {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
readonly type: 'browser-open-failed';
|
|
20
|
+
readonly authorizationUrl: string;
|
|
20
21
|
} | {
|
|
21
|
-
|
|
22
|
+
readonly type: 'waiting-for-decision';
|
|
22
23
|
} | {
|
|
23
|
-
|
|
24
|
+
readonly type: 'approval-received';
|
|
24
25
|
} | {
|
|
25
|
-
|
|
26
|
+
readonly type: 'saving-local-credentials';
|
|
26
27
|
} | {
|
|
27
|
-
|
|
28
|
+
readonly type: 'confirming-with-service';
|
|
28
29
|
};
|
|
29
30
|
type LoginCompletionOutcome = 'success' | 'denied' | 'failed';
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
declare class LoginError extends Error {
|
|
32
|
+
readonly code: LoginDiagnosticCode;
|
|
33
|
+
readonly oauthError?: string | undefined;
|
|
34
|
+
constructor(code: LoginDiagnosticCode, message: string, oauthError?: string | undefined);
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
interface LoginResult {
|
|
37
|
+
readonly grant: RegistryGrantMetadata;
|
|
38
|
+
readonly warnings: readonly string[];
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
interface AccessCredential {
|
|
41
|
+
readonly credential: ControlPlaneCredential;
|
|
42
|
+
readonly grant: RegistryGrantMetadata;
|
|
42
43
|
}
|
|
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
|
-
|
|
44
|
+
type BrowserOpener = (url: string) => Promise<void>;
|
|
45
|
+
declare class AccountManager {
|
|
46
|
+
private readonly metadata;
|
|
47
|
+
private readonly credentials;
|
|
48
|
+
private readonly openBrowser;
|
|
49
|
+
private readonly isInteractiveLogin;
|
|
50
|
+
private readonly interactiveLoginTimeoutMs;
|
|
51
|
+
private readonly interactiveLoginFinalizationTimeoutMs;
|
|
52
|
+
private readonly keyStore;
|
|
53
|
+
private readonly accessTokenCache;
|
|
54
|
+
private readonly grantOperationTails;
|
|
55
|
+
private readonly grantLock;
|
|
56
|
+
constructor(metadata?: AuthMetadataStore, credentials?: CredentialStore, openBrowser?: BrowserOpener, isInteractiveLogin?: () => boolean, grantLock?: RegistryGrantLock, interactiveLoginTimeoutMs?: number, interactiveLoginFinalizationTimeoutMs?: number);
|
|
57
|
+
hasGrant(trust: RegistryTrust): Promise<boolean>;
|
|
58
|
+
invalidateAccessCredentials(trust: RegistryTrust): void;
|
|
59
|
+
login(trust: RegistryTrust, options?: LoginOptions): Promise<LoginResult>;
|
|
60
|
+
getAccessCredential(trust: RegistryTrust, scopes: readonly UAPKGCliScope[]): Promise<AccessCredential>;
|
|
61
|
+
logout(trust: RegistryTrust, localOnly?: boolean): Promise<'not-logged-in' | 'removed'>;
|
|
62
|
+
private requireUsableGrant;
|
|
63
|
+
private revokeSavedGrant;
|
|
64
|
+
private activatePreparedGrant;
|
|
65
|
+
private reconcilePreparedGrant;
|
|
66
|
+
private persistPreparedGrant;
|
|
67
|
+
private rollbackPreparedGrant;
|
|
68
|
+
private cleanupPreviousLocalCredentials;
|
|
69
|
+
private revokeToken;
|
|
70
|
+
private discover;
|
|
71
|
+
private validateAuthorizationServer;
|
|
72
|
+
private assertIssuerSupportsScopes;
|
|
73
|
+
private client;
|
|
74
|
+
private assertPinnedTrust;
|
|
75
|
+
private assertInteractiveLogin;
|
|
76
|
+
private withDPoPNonceRetry;
|
|
77
|
+
private accessTokenCacheKey;
|
|
78
|
+
private serializeGrantOperation;
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
interface LoopbackAuthorizationReceipt {
|
|
81
|
+
readonly url: URL;
|
|
82
|
+
complete(outcome: LoginCompletionOutcome): Promise<void>;
|
|
82
83
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
84
|
+
declare class LoopbackAuthorizationReceiver {
|
|
85
|
+
private readonly server;
|
|
86
|
+
private readonly callbackPath;
|
|
87
|
+
private readonly expectedHost;
|
|
88
|
+
private readonly completionUrl;
|
|
89
|
+
readonly redirectUri: string;
|
|
90
|
+
private callbackPromise?;
|
|
91
|
+
private callbackResolve?;
|
|
92
|
+
private callbackReject?;
|
|
93
|
+
private receivedReceipt?;
|
|
94
|
+
private timeout?;
|
|
95
|
+
private state;
|
|
96
|
+
private terminalError?;
|
|
97
|
+
private pendingResponse?;
|
|
98
|
+
private completion?;
|
|
99
|
+
private constructor();
|
|
100
|
+
static listen(issuer: URL): Promise<LoopbackAuthorizationReceiver>;
|
|
101
|
+
waitForCallback(timeoutMs: number, registryAlias?: string): Promise<LoopbackAuthorizationReceipt>;
|
|
102
|
+
close(): void;
|
|
103
|
+
private receive;
|
|
104
|
+
private complete;
|
|
105
|
+
private terminate;
|
|
105
106
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
declare function loginDiagnosticForError(error: unknown): ControlPlaneDiagnostic;
|
|
108
|
+
declare function controlPlaneDiagnosticForError(error: unknown, operation: string): ControlPlaneCommandFailedDiagnostic;
|
|
109
|
+
declare function describeControlPlaneError(error: unknown): string;
|
|
110
|
+
//#endregion
|
|
111
|
+
export { AccessCredential, AccountManager, BrowserOpener, LoginError, LoginOptions, LoginProgressEvent, LoginResult, LoopbackAuthorizationReceipt, LoopbackAuthorizationReceiver, controlPlaneDiagnosticForError, describeControlPlaneError, loginDiagnosticForError };
|
|
110
112
|
//# sourceMappingURL=AccountManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountManager.d.ts","
|
|
1
|
+
{"version":3,"file":"AccountManager.d.ts","names":[],"sources":["../../src/control-plane/AccountManager.ts"],"mappings":";;;;;;;UAwCiB;WACN;WACA;WACA,cAAc,OAAO;;KAGpB;WACG;WAA4B;;WAC5B;;WACA;WAAsC;;WACtC;;WACA;;WACA;;WACA;;KAEV;cAOQ,mBAAmB;WAEZ,MAAM;WAEN;EAHlB,YACkB,MAAM,qBACtB,iBACgB;;UAOH;WACN,OAAO;WACP;;UAGM;WACN,YAAY;WACZ,OAAO;;KAGN,iBAAiB,gBAAgB;cAEhC;mBAUQ;mBACA;mBACA;mBAIA;mBAEA;mBACA;mBAlBF;mBACA;mBAIA;mBACA;EAEjB,YACmB,WAAQ,mBACR,cAAW,iBACX,cAAa,eAIb,oCACjB,YAAY,mBACK,oCACA;EAON,SAAS,OAAO,gBAAgB;EAItC,4BAA4B,OAAO;EAQ7B,MAAM,OAAO,eAAe,UAAS,eAAoB,QAAQ;EAiRjE,oBAAoB,OAAO,eAAe,iBAAiB,kBAAkB,QAAQ;EA0HrF,OAAO,OAAO,eAAe,sBAAoB;UA0BhD;UAuBA;UAeA;UAmCA;UAgDA;UAwCA;UAiBA;UA0BA;UAyBA;UAuBN;UAeA;UAYA;UAOA;UAUA;UAcM;UAYN;UAIM;;UAiCC;WACN,KAAK;EACd,SAAS,SAAS,yBAAyB;;cAKhC;mBAYQ;mBACA;mBACA;mBACA;WACD;UAfV;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UAED;SAQa,OAAO,QAAQ,MAAM,QAAQ;EA+BpC,gBAAgB,mBAAmB,yBAAyB,QAAQ;EAwB1E;UAIC;UAqCA;UAwCA;;iBAkMM,wBAAwB,iBAAiB;iBAUzC,+BAA+B,gBAAgB,oBAAoB;iBAmBnE,0BAA0B"}
|