@uapkg/cli 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/CompositionRoot.d.ts +36 -33
- package/dist/app/CompositionRoot.d.ts.map +1 -1
- package/dist/app/CompositionRoot.js +91 -109
- package/dist/app/CompositionRoot.js.map +1 -1
- package/dist/app/UAPKGApplication.d.ts +6 -3
- package/dist/app/UAPKGApplication.d.ts.map +1 -1
- package/dist/app/UAPKGApplication.js +155 -169
- package/dist/app/UAPKGApplication.js.map +1 -1
- package/dist/build/BuildMetadata.d.ts +9 -6
- package/dist/build/BuildMetadata.d.ts.map +1 -1
- package/dist/build/BuildMetadata.js +2 -2
- package/dist/cli/UAPKGCommandLine.d.ts +259 -257
- package/dist/cli/UAPKGCommandLine.d.ts.map +1 -1
- package/dist/cli/UAPKGCommandLine.js +248 -239
- package/dist/cli/UAPKGCommandLine.js.map +1 -1
- package/dist/cli/parseCommandLine.d.ts +5 -1
- package/dist/cli/parseCommandLine.d.ts.map +1 -1
- package/dist/cli/parseCommandLine.js +8 -3
- package/dist/cli/parseCommandLine.js.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts +9 -6
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.js +23 -31
- package/dist/cli/parsing/UAPKGCommandLineParser.js.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts +12 -9
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.js +53 -50
- package/dist/cli/parsing/UAPKGParserRegistry.js.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts +9 -6
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js +1 -2
- package/dist/cli/parsing/modules/AddCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/AddCommandModule.js +49 -36
- package/dist/cli/parsing/modules/AddCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.js +87 -83
- package/dist/cli/parsing/modules/ConfigCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.js +25 -22
- package/dist/cli/parsing/modules/InitCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.js +36 -28
- package/dist/cli/parsing/modules/InstallCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.js +78 -50
- package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.js +26 -15
- package/dist/cli/parsing/modules/ListCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.js +34 -33
- package/dist/cli/parsing/modules/LoginCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.js +30 -28
- package/dist/cli/parsing/modules/LogoutCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.js +21 -16
- package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.js +30 -28
- package/dist/cli/parsing/modules/PackCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +14 -11
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.js +63 -47
- package/dist/cli/parsing/modules/PublishCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.js +117 -120
- package/dist/cli/parsing/modules/RegistryCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.js +25 -14
- package/dist/cli/parsing/modules/RemoveCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.js +56 -60
- package/dist/cli/parsing/modules/RequestsCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.js +38 -25
- package/dist/cli/parsing/modules/UpdateCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.js +30 -28
- package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.js +25 -14
- package/dist/cli/parsing/modules/WhyCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.d.ts +8 -5
- package/dist/cli/parsing/modules/sharedOptions.d.ts.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.js +18 -23
- package/dist/cli/parsing/modules/sharedOptions.js.map +1 -1
- package/dist/cli/runUAPKGCLI.d.ts +4 -1
- package/dist/cli/runUAPKGCLI.d.ts.map +1 -1
- package/dist/cli/runUAPKGCLI.js +10 -5
- package/dist/cli/runUAPKGCLI.js.map +1 -1
- package/dist/cli-bootstrap.d.ts +1 -2
- package/dist/cli-bootstrap.js +15 -12
- package/dist/cli-bootstrap.js.map +1 -1
- package/dist/commands/AddCommand.d.ts +19 -16
- package/dist/commands/AddCommand.d.ts.map +1 -1
- package/dist/commands/AddCommand.js +49 -53
- package/dist/commands/AddCommand.js.map +1 -1
- package/dist/commands/Command.d.ts +5 -2
- package/dist/commands/Command.d.ts.map +1 -1
- package/dist/commands/Command.js +1 -2
- package/dist/commands/ConfigCommand.d.ts +28 -25
- package/dist/commands/ConfigCommand.d.ts.map +1 -1
- package/dist/commands/ConfigCommand.js +165 -186
- package/dist/commands/ConfigCommand.js.map +1 -1
- package/dist/commands/InitCommand.d.ts +19 -16
- package/dist/commands/InitCommand.d.ts.map +1 -1
- package/dist/commands/InitCommand.js +65 -60
- package/dist/commands/InitCommand.js.map +1 -1
- package/dist/commands/InstallCommand.d.ts +16 -13
- package/dist/commands/InstallCommand.d.ts.map +1 -1
- package/dist/commands/InstallCommand.js +118 -110
- package/dist/commands/InstallCommand.js.map +1 -1
- package/dist/commands/ListCommand.d.ts +13 -10
- package/dist/commands/ListCommand.d.ts.map +1 -1
- package/dist/commands/ListCommand.js +76 -81
- package/dist/commands/ListCommand.js.map +1 -1
- package/dist/commands/LoginCommand.d.ts +17 -14
- package/dist/commands/LoginCommand.d.ts.map +1 -1
- package/dist/commands/LoginCommand.js +66 -72
- package/dist/commands/LoginCommand.js.map +1 -1
- package/dist/commands/LogoutCommand.d.ts +15 -12
- package/dist/commands/LogoutCommand.d.ts.map +1 -1
- package/dist/commands/LogoutCommand.js +36 -37
- package/dist/commands/LogoutCommand.js.map +1 -1
- package/dist/commands/OutdatedCommand.d.ts +12 -9
- package/dist/commands/OutdatedCommand.d.ts.map +1 -1
- package/dist/commands/OutdatedCommand.js +41 -40
- package/dist/commands/OutdatedCommand.js.map +1 -1
- package/dist/commands/PackCommand.d.ts +13 -10
- package/dist/commands/PackCommand.d.ts.map +1 -1
- package/dist/commands/PackCommand.js +26 -21
- package/dist/commands/PackCommand.js.map +1 -1
- package/dist/commands/PackageLifecycleCommand.d.ts +23 -19
- package/dist/commands/PackageLifecycleCommand.d.ts.map +1 -1
- package/dist/commands/PackageLifecycleCommand.js +144 -138
- package/dist/commands/PackageLifecycleCommand.js.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.d.ts +11 -8
- package/dist/commands/PostinstallCandidateBuilder.d.ts.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.js +42 -42
- package/dist/commands/PostinstallCandidateBuilder.js.map +1 -1
- package/dist/commands/ProjectGetNameCommand.d.ts +10 -7
- package/dist/commands/ProjectGetNameCommand.d.ts.map +1 -1
- package/dist/commands/ProjectGetNameCommand.js +25 -25
- package/dist/commands/ProjectGetNameCommand.js.map +1 -1
- package/dist/commands/PublishCommand.d.ts +29 -23
- package/dist/commands/PublishCommand.d.ts.map +1 -1
- package/dist/commands/PublishCommand.js +243 -254
- package/dist/commands/PublishCommand.js.map +1 -1
- package/dist/commands/RegistryCommand.d.ts +38 -35
- package/dist/commands/RegistryCommand.d.ts.map +1 -1
- package/dist/commands/RegistryCommand.js +195 -223
- package/dist/commands/RegistryCommand.js.map +1 -1
- package/dist/commands/RemoveCommand.d.ts +14 -11
- package/dist/commands/RemoveCommand.d.ts.map +1 -1
- package/dist/commands/RemoveCommand.js +47 -54
- package/dist/commands/RemoveCommand.js.map +1 -1
- package/dist/commands/RequestsCommand.d.ts +21 -18
- package/dist/commands/RequestsCommand.d.ts.map +1 -1
- package/dist/commands/RequestsCommand.js +82 -95
- package/dist/commands/RequestsCommand.js.map +1 -1
- package/dist/commands/UpdateCommand.d.ts +29 -26
- package/dist/commands/UpdateCommand.d.ts.map +1 -1
- package/dist/commands/UpdateCommand.js +111 -111
- package/dist/commands/UpdateCommand.js.map +1 -1
- package/dist/commands/WhoamiCommand.d.ts +30 -27
- package/dist/commands/WhoamiCommand.d.ts.map +1 -1
- package/dist/commands/WhoamiCommand.js +63 -72
- package/dist/commands/WhoamiCommand.js.map +1 -1
- package/dist/commands/WhyCommand.d.ts +13 -10
- package/dist/commands/WhyCommand.d.ts.map +1 -1
- package/dist/commands/WhyCommand.js +45 -44
- package/dist/commands/WhyCommand.js.map +1 -1
- package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
- package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
- package/dist/commands/add/DependencyAddResolver.js +36 -36
- package/dist/commands/add/DependencyAddResolver.js.map +1 -1
- package/dist/control-plane/AccountManager.d.ts +96 -94
- package/dist/control-plane/AccountManager.d.ts.map +1 -1
- package/dist/control-plane/AccountManager.js +775 -967
- package/dist/control-plane/AccountManager.js.map +1 -1
- package/dist/control-plane/ArtifactObserver.d.ts +19 -16
- package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
- package/dist/control-plane/ArtifactObserver.js +73 -59
- package/dist/control-plane/ArtifactObserver.js.map +1 -1
- package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
- package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
- package/dist/control-plane/AuthMetadataStore.js +111 -113
- package/dist/control-plane/AuthMetadataStore.js.map +1 -1
- package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
- package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
- package/dist/control-plane/AuthStoragePaths.js +19 -14
- package/dist/control-plane/AuthStoragePaths.js.map +1 -1
- package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
- package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
- package/dist/control-plane/AuthenticationSelector.js +69 -63
- package/dist/control-plane/AuthenticationSelector.js.map +1 -1
- package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
- package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneClient.js +265 -254
- package/dist/control-plane/ControlPlaneClient.js.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
- package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
- package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
- package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.js +88 -81
- package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
- package/dist/control-plane/CredentialStore.d.ts +20 -18
- package/dist/control-plane/CredentialStore.d.ts.map +1 -1
- package/dist/control-plane/CredentialStore.js +66 -83
- package/dist/control-plane/CredentialStore.js.map +1 -1
- package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
- package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
- package/dist/control-plane/DPoPKeyStore.js +57 -53
- package/dist/control-plane/DPoPKeyStore.js.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
- package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.js +97 -68
- package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
- package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
- package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
- package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
- package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
- package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
- package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
- package/dist/control-plane/RegistryGrantLock.js +149 -185
- package/dist/control-plane/RegistryGrantLock.js.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
- package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.js +97 -132
- package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
- package/dist/index.d.ts +62 -39
- package/dist/index.js +60 -53
- package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
- package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
- package/dist/postinstall/api/PostinstallDsl.js +32 -35
- package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
- package/dist/postinstall/api/definePostinstall.d.ts +5 -2
- package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
- package/dist/postinstall/api/definePostinstall.js +20 -16
- package/dist/postinstall/api/definePostinstall.js.map +1 -1
- package/dist/postinstall/index.d.ts +25 -26
- package/dist/postinstall/index.js +25 -37
- package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
- package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
- package/dist/postinstall/loader/EntryResolver.js +36 -32
- package/dist/postinstall/loader/EntryResolver.js.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
- package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
- package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
- package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
- package/dist/postinstall/loader/ExportValidator.js +36 -32
- package/dist/postinstall/loader/ExportValidator.js.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
- package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.js +50 -58
- package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
- package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.js +62 -58
- package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
- package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
- package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.js +44 -44
- package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
- package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
- package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
- package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
- package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
- package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
- package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.js +1 -2
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
- package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
- package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
- package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
- package/dist/postinstall/unreal/PluginHash.js +13 -8
- package/dist/postinstall/unreal/PluginHash.js.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
- package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.js +37 -37
- package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
- package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
- package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
- package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.js +56 -52
- package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
- package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
- package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
- package/dist/prompts/InkPromptService.d.ts +10 -7
- package/dist/prompts/InkPromptService.d.ts.map +1 -1
- package/dist/prompts/InkPromptService.js +100 -71
- package/dist/prompts/InkPromptService.js.map +1 -1
- package/dist/prompts/ProjectContextDetector.d.ts +10 -7
- package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
- package/dist/prompts/ProjectContextDetector.js +32 -26
- package/dist/prompts/ProjectContextDetector.js.map +1 -1
- package/dist/prompts/PromptService.d.ts +11 -8
- package/dist/prompts/PromptService.d.ts.map +1 -1
- package/dist/prompts/PromptService.js +1 -8
- package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
- package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
- package/dist/reporting/DiagnosticDeduplicator.js +36 -35
- package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
- package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/DiagnosticRenderer.js +1 -2
- package/dist/reporting/DiagnosticReporter.d.ts +12 -9
- package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
- package/dist/reporting/DiagnosticReporter.js +40 -39
- package/dist/reporting/DiagnosticReporter.js.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
- package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.js +50 -42
- package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/InstallProgressReporter.d.ts +23 -20
- package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
- package/dist/reporting/InstallProgressReporter.js +48 -47
- package/dist/reporting/InstallProgressReporter.js.map +1 -1
- package/dist/reporting/JsonReporter.d.ts +16 -13
- package/dist/reporting/JsonReporter.d.ts.map +1 -1
- package/dist/reporting/JsonReporter.js +34 -20
- package/dist/reporting/JsonReporter.js.map +1 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
- package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/TextDiagnosticRenderer.js +36 -28
- package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/TextSink.d.ts +14 -11
- package/dist/reporting/TextSink.d.ts.map +1 -1
- package/dist/reporting/TextSink.js +24 -20
- package/dist/reporting/TextSink.js.map +1 -1
- package/package.json +31 -32
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
- package/dist/cli-bootstrap.d.ts.map +0 -1
- package/dist/commands/Command.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/postinstall/index.d.ts.map +0 -1
- package/dist/postinstall/index.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
- package/dist/prompts/PromptService.js.map +0 -1
- package/dist/reporting/DiagnosticRenderer.js.map +0 -1
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { sortDiagnostics } from "./TextSink.js";
|
|
2
|
+
import { DiagnosticDeduplicator } from "./DiagnosticDeduplicator.js";
|
|
3
|
+
import { InkDiagnosticRenderer } from "./InkDiagnosticRenderer.js";
|
|
4
|
+
|
|
5
|
+
//#region src/reporting/DiagnosticReporter.ts
|
|
4
6
|
/**
|
|
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
|
-
}
|
|
7
|
+
* Human-readable diagnostic reporter.
|
|
8
|
+
*
|
|
9
|
+
* Routing policy: `error` → stderr, `warning` / `info` → stdout. Output
|
|
10
|
+
* rendering is delegated to an injected {@link DiagnosticRenderer} so this
|
|
11
|
+
* class is UI-agnostic.
|
|
12
|
+
*
|
|
13
|
+
* Defaults to the Ink renderer (styled, colored output); tests typically
|
|
14
|
+
* inject {@link TextDiagnosticRenderer}.
|
|
15
|
+
*
|
|
16
|
+
* One instance is safe to reuse across commands in a single CLI run.
|
|
17
|
+
*/
|
|
18
|
+
var DiagnosticReporter = class {
|
|
19
|
+
renderer;
|
|
20
|
+
deduplicator;
|
|
21
|
+
constructor(renderer = new InkDiagnosticRenderer(), deduplicator = new DiagnosticDeduplicator()) {
|
|
22
|
+
this.renderer = renderer;
|
|
23
|
+
this.deduplicator = deduplicator;
|
|
24
|
+
}
|
|
25
|
+
reportAll(diagnostics) {
|
|
26
|
+
if (diagnostics.length === 0) return;
|
|
27
|
+
const deduped = this.deduplicator.filter(diagnostics);
|
|
28
|
+
if (deduped.length === 0) return;
|
|
29
|
+
const sorted = sortDiagnostics(deduped);
|
|
30
|
+
const errors = sorted.filter((d) => d.level === "error");
|
|
31
|
+
const others = sorted.filter((d) => d.level !== "error");
|
|
32
|
+
if (errors.length > 0) this.renderer.render(errors, "stderr");
|
|
33
|
+
if (others.length > 0) this.renderer.render(others, "stdout");
|
|
34
|
+
}
|
|
35
|
+
reportOne(diagnostic) {
|
|
36
|
+
this.reportAll([diagnostic]);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { DiagnosticReporter };
|
|
41
42
|
//# sourceMappingURL=DiagnosticReporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiagnosticReporter.js","
|
|
1
|
+
{"version":3,"file":"DiagnosticReporter.js","names":[],"sources":["../../src/reporting/DiagnosticReporter.ts"],"sourcesContent":["import type { Diagnostic } from '@uapkg/diagnostics';\nimport { DiagnosticDeduplicator } from './DiagnosticDeduplicator.js';\nimport type { DiagnosticRenderer } from './DiagnosticRenderer.js';\nimport { InkDiagnosticRenderer } from './InkDiagnosticRenderer.js';\nimport { sortDiagnostics } from './TextSink.js';\n\n/**\n * Human-readable diagnostic reporter.\n *\n * Routing policy: `error` → stderr, `warning` / `info` → stdout. Output\n * rendering is delegated to an injected {@link DiagnosticRenderer} so this\n * class is UI-agnostic.\n *\n * Defaults to the Ink renderer (styled, colored output); tests typically\n * inject {@link TextDiagnosticRenderer}.\n *\n * One instance is safe to reuse across commands in a single CLI run.\n */\nexport class DiagnosticReporter {\n public constructor(\n private readonly renderer: DiagnosticRenderer = new InkDiagnosticRenderer(),\n private readonly deduplicator: DiagnosticDeduplicator = new DiagnosticDeduplicator(),\n ) {}\n\n public reportAll(diagnostics: readonly Diagnostic[]): void {\n if (diagnostics.length === 0) return;\n const deduped = this.deduplicator.filter(diagnostics);\n if (deduped.length === 0) return;\n const sorted = sortDiagnostics(deduped);\n const errors = sorted.filter((d) => d.level === 'error');\n const others = sorted.filter((d) => d.level !== 'error');\n if (errors.length > 0) this.renderer.render(errors, 'stderr');\n if (others.length > 0) this.renderer.render(others, 'stdout');\n }\n\n public reportOne(diagnostic: Diagnostic): void {\n this.reportAll([diagnostic]);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,IAAa,qBAAb,MAAgC;CAEX;CACA;CAFnB,AAAO,YACL,AAAiB,WAA+B,IAAI,sBAAsB,GAC1E,AAAiB,eAAuC,IAAI,uBAAuB,GACnF;EAFiB;EACA;CAChB;CAEH,AAAO,UAAU,aAA0C;EACzD,IAAI,YAAY,WAAW,GAAG;EAC9B,MAAM,UAAU,KAAK,aAAa,OAAO,WAAW;EACpD,IAAI,QAAQ,WAAW,GAAG;EAC1B,MAAM,SAAS,gBAAgB,OAAO;EACtC,MAAM,SAAS,OAAO,QAAQ,MAAM,EAAE,UAAU,OAAO;EACvD,MAAM,SAAS,OAAO,QAAQ,MAAM,EAAE,UAAU,OAAO;EACvD,IAAI,OAAO,SAAS,GAAG,KAAK,SAAS,OAAO,QAAQ,QAAQ;EAC5D,IAAI,OAAO,SAAS,GAAG,KAAK,SAAS,OAAO,QAAQ,QAAQ;CAC9D;CAEA,AAAO,UAAU,YAA8B;EAC7C,KAAK,UAAU,CAAC,UAAU,CAAC;CAC7B;AACF"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { DiagnosticRenderer } from "./DiagnosticRenderer.js";
|
|
2
|
+
import { TextSink } from "./TextSink.js";
|
|
3
|
+
import { Diagnostic } from "@uapkg/diagnostics";
|
|
4
|
+
import { DiagnosticInkRegistry } from "@uapkg/diagnostics-format/ink";
|
|
5
|
+
//#region src/reporting/InkDiagnosticRenderer.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* Ink-backed diagnostic renderer.
|
|
7
8
|
*
|
|
@@ -12,10 +13,12 @@ import type { TextSink } from './TextSink.js';
|
|
|
12
13
|
* On any Ink failure (missing terminfo, exotic stream, etc.) the renderer
|
|
13
14
|
* delegates to a fallback text sink so diagnostics are never lost.
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
declare class InkDiagnosticRenderer implements DiagnosticRenderer {
|
|
17
|
+
private readonly registry;
|
|
18
|
+
private readonly fallback?;
|
|
19
|
+
constructor(registry?: DiagnosticInkRegistry, fallback?: TextSink | undefined);
|
|
20
|
+
render(diagnostics: readonly Diagnostic[], stream: 'stdout' | 'stderr'): void;
|
|
20
21
|
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { InkDiagnosticRenderer };
|
|
21
24
|
//# sourceMappingURL=InkDiagnosticRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkDiagnosticRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"InkDiagnosticRenderer.d.ts","names":[],"sources":["../../src/reporting/InkDiagnosticRenderer.ts"],"mappings":";;;;;;;;;;;;;;;cAuBa,iCAAiC;mBAEzB;mBACA;EAFnB,YACmB,WAAU,uBACV,WAAW;EAGvB,OAAO,sBAAsB,cAAc"}
|
|
@@ -1,44 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { formatPublishRequestFailed } from "@uapkg/diagnostics-format";
|
|
2
|
+
import { DiagnosticsListView, createInkRegistry, defaultInkComponents } from "@uapkg/diagnostics-format/ink";
|
|
3
|
+
import { render } from "ink";
|
|
4
|
+
import { createElement } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/reporting/InkDiagnosticRenderer.ts
|
|
4
7
|
/**
|
|
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
|
-
}
|
|
8
|
+
* Ink-backed diagnostic renderer.
|
|
9
|
+
*
|
|
10
|
+
* Renders each batch as a static Ink tree to the target process stream. No
|
|
11
|
+
* mount loop, no animations — one-shot render → unmount, so the process can
|
|
12
|
+
* exit immediately after the CLI command finishes.
|
|
13
|
+
*
|
|
14
|
+
* On any Ink failure (missing terminfo, exotic stream, etc.) the renderer
|
|
15
|
+
* delegates to a fallback text sink so diagnostics are never lost.
|
|
16
|
+
*/
|
|
17
|
+
var InkDiagnosticRenderer = class {
|
|
18
|
+
registry;
|
|
19
|
+
fallback;
|
|
20
|
+
constructor(registry = createInkRegistry(defaultInkComponents), fallback) {
|
|
21
|
+
this.registry = registry;
|
|
22
|
+
this.fallback = fallback;
|
|
23
|
+
}
|
|
24
|
+
render(diagnostics, stream) {
|
|
25
|
+
if (diagnostics.length === 0) return;
|
|
26
|
+
const target = stream === "stderr" ? process.stderr : process.stdout;
|
|
27
|
+
try {
|
|
28
|
+
const element = createElement(DiagnosticsListView, {
|
|
29
|
+
diagnostics,
|
|
30
|
+
registry: this.registry
|
|
31
|
+
});
|
|
32
|
+
render(element, {
|
|
33
|
+
stdout: target,
|
|
34
|
+
patchConsole: false
|
|
35
|
+
}).unmount();
|
|
36
|
+
} catch {
|
|
37
|
+
if (!this.fallback) return;
|
|
38
|
+
for (const diagnostic of diagnostics) {
|
|
39
|
+
if (diagnostic.code === "PUBLISH_REQUEST_FAILED") {
|
|
40
|
+
for (const line of formatPublishRequestFailed(diagnostic).split("\n")) this.fallback.writeLine(line);
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
this.fallback.writeLine(`[${diagnostic.level}] ${diagnostic.code}: ${diagnostic.message}`);
|
|
44
|
+
if (diagnostic.hint) this.fallback.writeLine(` → ${diagnostic.hint}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { InkDiagnosticRenderer };
|
|
44
52
|
//# sourceMappingURL=InkDiagnosticRenderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkDiagnosticRenderer.js","
|
|
1
|
+
{"version":3,"file":"InkDiagnosticRenderer.js","names":[],"sources":["../../src/reporting/InkDiagnosticRenderer.ts"],"sourcesContent":["import type { Diagnostic } from '@uapkg/diagnostics';\nimport { formatPublishRequestFailed } from '@uapkg/diagnostics-format';\nimport {\n createInkRegistry,\n type DiagnosticInkRegistry,\n DiagnosticsListView,\n defaultInkComponents,\n} from '@uapkg/diagnostics-format/ink';\nimport { render } from 'ink';\nimport { createElement } from 'react';\nimport type { DiagnosticRenderer } from './DiagnosticRenderer.js';\nimport type { TextSink } from './TextSink.js';\n\n/**\n * Ink-backed diagnostic renderer.\n *\n * Renders each batch as a static Ink tree to the target process stream. No\n * mount loop, no animations — one-shot render → unmount, so the process can\n * exit immediately after the CLI command finishes.\n *\n * On any Ink failure (missing terminfo, exotic stream, etc.) the renderer\n * delegates to a fallback text sink so diagnostics are never lost.\n */\nexport class InkDiagnosticRenderer implements DiagnosticRenderer {\n public constructor(\n private readonly registry: DiagnosticInkRegistry = createInkRegistry(defaultInkComponents),\n private readonly fallback?: TextSink,\n ) {}\n\n public render(diagnostics: readonly Diagnostic[], stream: 'stdout' | 'stderr'): void {\n if (diagnostics.length === 0) return;\n const target = stream === 'stderr' ? process.stderr : process.stdout;\n try {\n const element = createElement(DiagnosticsListView, {\n diagnostics,\n registry: this.registry,\n });\n const instance = render(element, { stdout: target, patchConsole: false });\n instance.unmount();\n } catch {\n if (!this.fallback) return;\n for (const diagnostic of diagnostics) {\n if (diagnostic.code === 'PUBLISH_REQUEST_FAILED') {\n for (const line of formatPublishRequestFailed(diagnostic).split('\\n')) this.fallback.writeLine(line);\n continue;\n }\n this.fallback.writeLine(`[${diagnostic.level}] ${diagnostic.code}: ${diagnostic.message}`);\n if (diagnostic.hint) this.fallback.writeLine(` → ${diagnostic.hint}`);\n }\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAuBA,IAAa,wBAAb,MAAiE;CAE5C;CACA;CAFnB,AAAO,YACL,AAAiB,WAAkC,kBAAkB,oBAAoB,GACzF,AAAiB,UACjB;EAFiB;EACA;CAChB;CAEH,AAAO,OAAO,aAAoC,QAAmC;EACnF,IAAI,YAAY,WAAW,GAAG;EAC9B,MAAM,SAAS,WAAW,WAAW,QAAQ,SAAS,QAAQ;EAC9D,IAAI;GACF,MAAM,UAAU,cAAc,qBAAqB;IACjD;IACA,UAAU,KAAK;GACjB,CAAC;GAED,AADiB,OAAO,SAAS;IAAE,QAAQ;IAAQ,cAAc;GAAM,CAChE,CAAC,CAAC,QAAQ;EACnB,QAAQ;GACN,IAAI,CAAC,KAAK,UAAU;GACpB,KAAK,MAAM,cAAc,aAAa;IACpC,IAAI,WAAW,SAAS,0BAA0B;KAChD,KAAK,MAAM,QAAQ,2BAA2B,UAAU,CAAC,CAAC,MAAM,IAAI,GAAG,KAAK,SAAS,UAAU,IAAI;KACnG;IACF;IACA,KAAK,SAAS,UAAU,IAAI,WAAW,MAAM,IAAI,WAAW,KAAK,IAAI,WAAW,SAAS;IACzF,IAAI,WAAW,MAAM,KAAK,SAAS,UAAU,OAAO,WAAW,MAAM;GACvE;EACF;CACF;AACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { TextSink } from "./TextSink.js";
|
|
2
|
+
import { DownloadStatusSnapshot } from "@uapkg/installer";
|
|
3
|
+
//#region src/reporting/InstallProgressReporter.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Text-mode progress reporter for `uapkg install / add / update`.
|
|
5
6
|
*
|
|
@@ -12,23 +13,25 @@ import { type TextSink } from './TextSink.js';
|
|
|
12
13
|
* At completion, emits a final summary line:
|
|
13
14
|
* `N added, M updated, X removed, Y unchanged (B bytes)`
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
16
|
+
declare class InstallProgressReporter {
|
|
17
|
+
private readonly sink;
|
|
18
|
+
private lastBytesDone;
|
|
19
|
+
private lastState;
|
|
20
|
+
constructor(sink?: TextSink);
|
|
21
|
+
consume(stream: AsyncIterable<DownloadStatusSnapshot>): Promise<void>;
|
|
22
|
+
private renderTick;
|
|
23
|
+
/**
|
|
24
|
+
* Emit the post-install one-liner. The caller passes the installer's plan
|
|
25
|
+
* summary directly; this class does not retain it.
|
|
26
|
+
*/
|
|
27
|
+
renderSummary(summary: {
|
|
28
|
+
added: number;
|
|
29
|
+
updated: number;
|
|
30
|
+
removed: number;
|
|
31
|
+
unchanged: number;
|
|
32
|
+
totalBytes: number;
|
|
33
|
+
}): void;
|
|
33
34
|
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { InstallProgressReporter };
|
|
34
37
|
//# sourceMappingURL=InstallProgressReporter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstallProgressReporter.d.ts","
|
|
1
|
+
{"version":3,"file":"InstallProgressReporter.d.ts","names":[],"sources":["../../src/reporting/InstallProgressReporter.ts"],"mappings":";;;;;;;;;;;;;;;cAgBa;mBAIyB;UAH5B;UACA;EAER,YAAoC,OAAM;EAE7B,QAAQ,QAAQ,cAAc,0BAA0B;UAM7D;;;;;EAwBD,cAAc;IACnB;IACA;IACA;IACA;IACA"}
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ProcessTextSink } from "./TextSink.js";
|
|
2
|
+
import { prettyBytes } from "@uapkg/common";
|
|
3
|
+
|
|
4
|
+
//#region src/reporting/InstallProgressReporter.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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
6
|
+
* Text-mode progress reporter for `uapkg install / add / update`.
|
|
7
|
+
*
|
|
8
|
+
* Subscribes to the installer's `AsyncIterable<DownloadStatusSnapshot>` and
|
|
9
|
+
* writes a one-line summary whenever the *aggregate totals* change. This keeps
|
|
10
|
+
* output readable even when stdout is piped or captured (no ANSI cursor
|
|
11
|
+
* tricks). Per-slot rows are intentionally omitted in the MVP — the full Ink
|
|
12
|
+
* `InstallProgress` grid is a planned follow-up.
|
|
13
|
+
*
|
|
14
|
+
* At completion, emits a final summary line:
|
|
15
|
+
* `N added, M updated, X removed, Y unchanged (B bytes)`
|
|
16
|
+
*/
|
|
17
|
+
var InstallProgressReporter = class {
|
|
18
|
+
sink;
|
|
19
|
+
lastBytesDone = -1;
|
|
20
|
+
lastState = "";
|
|
21
|
+
constructor(sink = new ProcessTextSink(process.stdout)) {
|
|
22
|
+
this.sink = sink;
|
|
23
|
+
}
|
|
24
|
+
async consume(stream) {
|
|
25
|
+
for await (const snapshot of stream) this.renderTick(snapshot);
|
|
26
|
+
}
|
|
27
|
+
renderTick(snapshot) {
|
|
28
|
+
const { totals, slots } = snapshot;
|
|
29
|
+
const active = slots.filter((s) => s.state === "downloading" || s.state === "verifying" || s.state === "extracting" || s.state === "removing").length;
|
|
30
|
+
const stateKey = `${active}|${totals.bytesDone}|${totals.bytesTotal}`;
|
|
31
|
+
if (stateKey === this.lastState) return;
|
|
32
|
+
this.lastState = stateKey;
|
|
33
|
+
if (totals.bytesTotal > 0 && totals.bytesDone !== this.lastBytesDone) {
|
|
34
|
+
this.lastBytesDone = totals.bytesDone;
|
|
35
|
+
const pct = Math.min(100, Math.floor(totals.bytesDone / totals.bytesTotal * 100));
|
|
36
|
+
this.sink.writeLine(` installing: ${pct}% (${prettyBytes(totals.bytesDone)} / ${prettyBytes(totals.bytesTotal)}) — ${active} active`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Emit the post-install one-liner. The caller passes the installer's plan
|
|
41
|
+
* summary directly; this class does not retain it.
|
|
42
|
+
*/
|
|
43
|
+
renderSummary(summary) {
|
|
44
|
+
this.sink.writeLine(`${summary.added} added, ${summary.updated} updated, ${summary.removed} removed, ${summary.unchanged} unchanged (${prettyBytes(summary.totalBytes)})`);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { InstallProgressReporter };
|
|
49
50
|
//# sourceMappingURL=InstallProgressReporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstallProgressReporter.js","
|
|
1
|
+
{"version":3,"file":"InstallProgressReporter.js","names":[],"sources":["../../src/reporting/InstallProgressReporter.ts"],"sourcesContent":["import { prettyBytes } from '@uapkg/common';\nimport type { DownloadStatusSnapshot } from '@uapkg/installer';\nimport { ProcessTextSink, type TextSink } from './TextSink.js';\n\n/**\n * Text-mode progress reporter for `uapkg install / add / update`.\n *\n * Subscribes to the installer's `AsyncIterable<DownloadStatusSnapshot>` and\n * writes a one-line summary whenever the *aggregate totals* change. This keeps\n * output readable even when stdout is piped or captured (no ANSI cursor\n * tricks). Per-slot rows are intentionally omitted in the MVP — the full Ink\n * `InstallProgress` grid is a planned follow-up.\n *\n * At completion, emits a final summary line:\n * `N added, M updated, X removed, Y unchanged (B bytes)`\n */\nexport class InstallProgressReporter {\n private lastBytesDone = -1;\n private lastState = '';\n\n public constructor(private readonly sink: TextSink = new ProcessTextSink(process.stdout)) {}\n\n public async consume(stream: AsyncIterable<DownloadStatusSnapshot>): Promise<void> {\n for await (const snapshot of stream) {\n this.renderTick(snapshot);\n }\n }\n\n private renderTick(snapshot: DownloadStatusSnapshot): void {\n const { totals, slots } = snapshot;\n const active = slots.filter(\n (s) => s.state === 'downloading' || s.state === 'verifying' || s.state === 'extracting' || s.state === 'removing',\n ).length;\n\n const stateKey = `${active}|${totals.bytesDone}|${totals.bytesTotal}`;\n if (stateKey === this.lastState) return;\n this.lastState = stateKey;\n\n // Only emit a byte-progress line when bytesTotal is known and has advanced.\n if (totals.bytesTotal > 0 && totals.bytesDone !== this.lastBytesDone) {\n this.lastBytesDone = totals.bytesDone;\n const pct = Math.min(100, Math.floor((totals.bytesDone / totals.bytesTotal) * 100));\n this.sink.writeLine(\n ` installing: ${pct}% (${prettyBytes(totals.bytesDone)} / ${prettyBytes(totals.bytesTotal)}) — ${active} active`,\n );\n }\n }\n\n /**\n * Emit the post-install one-liner. The caller passes the installer's plan\n * summary directly; this class does not retain it.\n */\n public renderSummary(summary: {\n added: number;\n updated: number;\n removed: number;\n unchanged: number;\n totalBytes: number;\n }): void {\n this.sink.writeLine(\n `${summary.added} added, ${summary.updated} updated, ${summary.removed} removed, ${summary.unchanged} unchanged (${prettyBytes(summary.totalBytes)})`,\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAgBA,IAAa,0BAAb,MAAqC;CAIC;CAHpC,AAAQ,gBAAgB;CACxB,AAAQ,YAAY;CAEpB,AAAO,YAAY,AAAiB,OAAiB,IAAI,gBAAgB,QAAQ,MAAM,GAAG;EAAtD;CAAuD;CAE3F,MAAa,QAAQ,QAA8D;EACjF,WAAW,MAAM,YAAY,QAC3B,KAAK,WAAW,QAAQ;CAE5B;CAEA,AAAQ,WAAW,UAAwC;EACzD,MAAM,EAAE,QAAQ,UAAU;EAC1B,MAAM,SAAS,MAAM,QAClB,MAAM,EAAE,UAAU,iBAAiB,EAAE,UAAU,eAAe,EAAE,UAAU,gBAAgB,EAAE,UAAU,UACzG,CAAC,CAAC;EAEF,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,UAAU,GAAG,OAAO;EACzD,IAAI,aAAa,KAAK,WAAW;EACjC,KAAK,YAAY;EAGjB,IAAI,OAAO,aAAa,KAAK,OAAO,cAAc,KAAK,eAAe;GACpE,KAAK,gBAAgB,OAAO;GAC5B,MAAM,MAAM,KAAK,IAAI,KAAK,KAAK,MAAO,OAAO,YAAY,OAAO,aAAc,GAAG,CAAC;GAClF,KAAK,KAAK,UACR,iBAAiB,IAAI,KAAK,YAAY,OAAO,SAAS,EAAE,KAAK,YAAY,OAAO,UAAU,EAAE,MAAM,OAAO,QAC3G;EACF;CACF;;;;;CAMA,AAAO,cAAc,SAMZ;EACP,KAAK,KAAK,UACR,GAAG,QAAQ,MAAM,UAAU,QAAQ,QAAQ,YAAY,QAAQ,QAAQ,YAAY,QAAQ,UAAU,cAAc,YAAY,QAAQ,UAAU,EAAE,EACrJ;CACF;AACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { TextSink } from "./TextSink.js";
|
|
2
|
+
import { Diagnostic } from "@uapkg/diagnostics";
|
|
3
|
+
//#region src/reporting/JsonReporter.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* Stable JSON envelope used when any command is invoked with `--json`.
|
|
5
6
|
*
|
|
@@ -7,22 +8,24 @@ import { type TextSink } from './TextSink.js';
|
|
|
7
8
|
* outcomes. `diagnostics` always appears (empty array when none), so
|
|
8
9
|
* consumers never need to handle undefined.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
interface JsonEnvelope<TData = unknown> {
|
|
12
|
+
readonly status: 'ok' | 'error';
|
|
13
|
+
readonly command: string;
|
|
14
|
+
readonly data?: TData;
|
|
15
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* Writes a single JSON document to stdout per invocation. Never writes
|
|
18
19
|
* progress or partial output — callers accumulate everything into a payload
|
|
19
20
|
* and call `emit()` once at the end of a command.
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
declare class JsonReporter {
|
|
23
|
+
private readonly sink;
|
|
24
|
+
constructor(sink?: TextSink);
|
|
25
|
+
emitSuccess<TData>(command: string, data: TData, diagnostics?: readonly Diagnostic[]): void;
|
|
26
|
+
emitError(command: string, diagnostics: readonly Diagnostic[]): void;
|
|
27
|
+
emit<TData>(envelope: JsonEnvelope<TData>): void;
|
|
27
28
|
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { JsonEnvelope, JsonReporter };
|
|
28
31
|
//# sourceMappingURL=JsonReporter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonReporter.d.ts","
|
|
1
|
+
{"version":3,"file":"JsonReporter.d.ts","names":[],"sources":["../../src/reporting/JsonReporter.ts"],"mappings":";;;;;;;;;;UAUiB,aAAa;WACnB;WACA;WACA,OAAO;WACP,sBAAsB;;;;;;;cAQpB;mBACyB;EAApC,YAAoC,OAAM;EAEnC,YAAY,OAAO,iBAAiB,MAAM,OAAO,uBAAsB;EAIvE,UAAU,iBAAiB,sBAAsB;EAIjD,KAAK,OAAO,UAAU,aAAa"}
|
|
@@ -1,22 +1,36 @@
|
|
|
1
|
-
import { ProcessTextSink } from
|
|
1
|
+
import { ProcessTextSink } from "./TextSink.js";
|
|
2
|
+
|
|
3
|
+
//#region src/reporting/JsonReporter.ts
|
|
2
4
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
* Writes a single JSON document to stdout per invocation. Never writes
|
|
6
|
+
* progress or partial output — callers accumulate everything into a payload
|
|
7
|
+
* and call `emit()` once at the end of a command.
|
|
8
|
+
*/
|
|
9
|
+
var JsonReporter = class {
|
|
10
|
+
sink;
|
|
11
|
+
constructor(sink = new ProcessTextSink(process.stdout)) {
|
|
12
|
+
this.sink = sink;
|
|
13
|
+
}
|
|
14
|
+
emitSuccess(command, data, diagnostics = []) {
|
|
15
|
+
this.emit({
|
|
16
|
+
status: "ok",
|
|
17
|
+
command,
|
|
18
|
+
data,
|
|
19
|
+
diagnostics
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
emitError(command, diagnostics) {
|
|
23
|
+
this.emit({
|
|
24
|
+
status: "error",
|
|
25
|
+
command,
|
|
26
|
+
diagnostics
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
emit(envelope) {
|
|
30
|
+
this.sink.writeLine(JSON.stringify(envelope, null, 2));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { JsonReporter };
|
|
22
36
|
//# sourceMappingURL=JsonReporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonReporter.js","
|
|
1
|
+
{"version":3,"file":"JsonReporter.js","names":[],"sources":["../../src/reporting/JsonReporter.ts"],"sourcesContent":["import type { Diagnostic } from '@uapkg/diagnostics';\nimport { ProcessTextSink, type TextSink } from './TextSink.js';\n\n/**\n * Stable JSON envelope used when any command is invoked with `--json`.\n *\n * `status` is `ok` / `error` so scripts can branch on exit-independent\n * outcomes. `diagnostics` always appears (empty array when none), so\n * consumers never need to handle undefined.\n */\nexport interface JsonEnvelope<TData = unknown> {\n readonly status: 'ok' | 'error';\n readonly command: string;\n readonly data?: TData;\n readonly diagnostics: readonly Diagnostic[];\n}\n\n/**\n * Writes a single JSON document to stdout per invocation. Never writes\n * progress or partial output — callers accumulate everything into a payload\n * and call `emit()` once at the end of a command.\n */\nexport class JsonReporter {\n public constructor(private readonly sink: TextSink = new ProcessTextSink(process.stdout)) {}\n\n public emitSuccess<TData>(command: string, data: TData, diagnostics: readonly Diagnostic[] = []): void {\n this.emit({ status: 'ok', command, data, diagnostics });\n }\n\n public emitError(command: string, diagnostics: readonly Diagnostic[]): void {\n this.emit({ status: 'error', command, diagnostics });\n }\n\n public emit<TData>(envelope: JsonEnvelope<TData>): void {\n this.sink.writeLine(JSON.stringify(envelope, null, 2));\n }\n}\n"],"mappings":";;;;;;;;AAsBA,IAAa,eAAb,MAA0B;CACY;CAApC,AAAO,YAAY,AAAiB,OAAiB,IAAI,gBAAgB,QAAQ,MAAM,GAAG;EAAtD;CAAuD;CAE3F,AAAO,YAAmB,SAAiB,MAAa,cAAqC,CAAC,GAAS;EACrG,KAAK,KAAK;GAAE,QAAQ;GAAM;GAAS;GAAM;EAAY,CAAC;CACxD;CAEA,AAAO,UAAU,SAAiB,aAA0C;EAC1E,KAAK,KAAK;GAAE,QAAQ;GAAS;GAAS;EAAY,CAAC;CACrD;CAEA,AAAO,KAAY,UAAqC;EACtD,KAAK,KAAK,UAAU,KAAK,UAAU,UAAU,MAAM,CAAC,CAAC;CACvD;AACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { RegistryRequestDetail, RegistryRequestStatus } from "../control-plane/ControlPlaneTypes.js";
|
|
2
|
+
import { UAPKGLifecycleCommandName, UAPKGOutputFormat } from "../cli/UAPKGCommandLine.js";
|
|
3
|
+
//#region src/reporting/RegistryRequestTerminalFormatter.d.ts
|
|
4
|
+
type RegistryRequestPresentation = {
|
|
5
|
+
readonly kind: 'publish';
|
|
6
|
+
} | {
|
|
7
|
+
readonly kind: 'lifecycle';
|
|
8
|
+
readonly operation: UAPKGLifecycleCommandName;
|
|
9
|
+
readonly packageName: string;
|
|
10
|
+
readonly packageVersion: string;
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: 'status';
|
|
13
|
+
};
|
|
14
|
+
interface RegistryRequestTerminalFormatOptions {
|
|
15
|
+
readonly detail: RegistryRequestDetail;
|
|
16
|
+
readonly registryAlias: string;
|
|
17
|
+
readonly outputFormat: UAPKGOutputFormat;
|
|
18
|
+
readonly presentation: RegistryRequestPresentation;
|
|
19
|
+
readonly registryRefreshWarning?: string;
|
|
20
|
+
}
|
|
21
|
+
interface RegistryRequestTerminalOutput {
|
|
22
|
+
readonly stdout: string;
|
|
23
|
+
readonly stderr?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Formats the caller-visible terminal story consistently for publish,
|
|
27
|
+
* lifecycle, and standalone request-status commands. The additive check and
|
|
28
|
+
* failure fields have already been bounded by
|
|
29
|
+
* `ControlPlaneClient.getRegistryRequestDetail` before reaching this boundary.
|
|
30
|
+
*/
|
|
31
|
+
declare function formatRegistryRequestTerminal(options: RegistryRequestTerminalFormatOptions): RegistryRequestTerminalOutput;
|
|
32
|
+
declare function isRegistryRequestTerminalStatus(status: RegistryRequestStatus): boolean;
|
|
33
|
+
declare function isRegistryRequestSuccessStatus(status: RegistryRequestStatus): boolean;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { RegistryRequestPresentation, RegistryRequestTerminalFormatOptions, RegistryRequestTerminalOutput, formatRegistryRequestTerminal, isRegistryRequestSuccessStatus, isRegistryRequestTerminalStatus };
|
|
36
|
+
//# sourceMappingURL=RegistryRequestTerminalFormatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegistryRequestTerminalFormatter.d.ts","names":[],"sources":["../../src/reporting/RegistryRequestTerminalFormatter.ts"],"mappings":";;;KAeY;WACG;;WAEA;WACA,WAAW;WACX;WACA;;WAEA;;UAEE;WACN,QAAQ;WACR;WACA,cAAc;WACd,cAAc;WACd;;UAGM;WACN;WACA;;;;;;;;iBASK,8BACd,SAAS,uCACR;iBAIa,gCAAgC,QAAQ;iBAIxC,+BAA+B,QAAQ"}
|