@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,61 +1,66 @@
|
|
|
1
|
-
import { PackageNameSchema, PackageVersionSchema } from
|
|
2
|
-
import { ManifestReader, ManifestWriter } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
1
|
+
import { PackageNameSchema, PackageVersionSchema } from "@uapkg/common-schema";
|
|
2
|
+
import { ManifestReader, ManifestWriter } from "@uapkg/package-manifest";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/InitCommand.ts
|
|
5
|
+
const DEFAULT_INITIAL_VERSION = "0.1.0";
|
|
6
|
+
var InitCommand = class {
|
|
7
|
+
root;
|
|
8
|
+
options;
|
|
9
|
+
detector;
|
|
10
|
+
prompts;
|
|
11
|
+
constructor(root, options, detector, prompts) {
|
|
12
|
+
this.root = root;
|
|
13
|
+
this.options = options;
|
|
14
|
+
this.detector = detector;
|
|
15
|
+
this.prompts = prompts;
|
|
16
|
+
}
|
|
17
|
+
async execute() {
|
|
18
|
+
if ((await new ManifestReader().read(this.root.cwd)).ok) {
|
|
19
|
+
process.stderr.write("[uapkg] uapkg.json already exists in current directory\n");
|
|
20
|
+
return 1;
|
|
21
|
+
}
|
|
22
|
+
const detected = this.detector.detect(this.root.cwd);
|
|
23
|
+
const kind = this.options.explicitKind ?? await this.prompts.select("Select manifest kind", [{
|
|
24
|
+
label: "Project",
|
|
25
|
+
value: "project"
|
|
26
|
+
}, {
|
|
27
|
+
label: "Plugin",
|
|
28
|
+
value: "plugin"
|
|
29
|
+
}], detected.suggestedKind);
|
|
30
|
+
const rawName = this.options.explicitName ?? await this.prompts.text("Package name", detected.suggestedName);
|
|
31
|
+
const nameResult = PackageNameSchema.safeParse(rawName.trim());
|
|
32
|
+
if (!nameResult.success) {
|
|
33
|
+
process.stderr.write(`[uapkg] Invalid package name "${rawName}": must be lowercase alphanumeric with hyphens\n`);
|
|
34
|
+
return 1;
|
|
35
|
+
}
|
|
36
|
+
const versionResult = PackageVersionSchema.safeParse(DEFAULT_INITIAL_VERSION);
|
|
37
|
+
if (!versionResult.success) {
|
|
38
|
+
process.stderr.write(`[uapkg] Internal error: default version "${DEFAULT_INITIAL_VERSION}" rejected by schema\n`);
|
|
39
|
+
return 1;
|
|
40
|
+
}
|
|
41
|
+
const manifest = this.buildManifest(kind, nameResult.data, versionResult.data);
|
|
42
|
+
const writeResult = await new ManifestWriter().write(this.root.cwd, manifest);
|
|
43
|
+
if (!writeResult.ok) {
|
|
44
|
+
this.root.diagnostics.reportAll(writeResult.diagnostics);
|
|
45
|
+
return 1;
|
|
46
|
+
}
|
|
47
|
+
process.stdout.write(`[uapkg] Created uapkg.json (${kind}) for ${String(nameResult.data)}\n`);
|
|
48
|
+
return 0;
|
|
49
|
+
}
|
|
50
|
+
buildManifest(kind, name, version) {
|
|
51
|
+
if (kind === "plugin") return {
|
|
52
|
+
name,
|
|
53
|
+
version,
|
|
54
|
+
kind: "plugin"
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
name,
|
|
58
|
+
version,
|
|
59
|
+
kind: "project"
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { InitCommand };
|
|
61
66
|
//# sourceMappingURL=InitCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitCommand.js","
|
|
1
|
+
{"version":3,"file":"InitCommand.js","names":[],"sources":["../../src/commands/InitCommand.ts"],"sourcesContent":["import type { PackageName, PackageVersion } from '@uapkg/common-schema';\nimport { PackageNameSchema, PackageVersionSchema } from '@uapkg/common-schema';\nimport { ManifestReader, ManifestWriter } from '@uapkg/package-manifest';\nimport type { Manifest, ManifestKind } from '@uapkg/package-manifest-schema';\nimport type { CompositionRoot } from '../app/CompositionRoot.js';\nimport type { ProjectContextDetector } from '../prompts/ProjectContextDetector.js';\nimport type { PromptService } from '../prompts/PromptService.js';\nimport type { Command } from './Command.js';\n\nexport interface InitCommandOptions {\n readonly explicitKind?: ManifestKind;\n readonly explicitName?: string;\n}\n\n// ---------------------------------------------------------------------------\n// InitCommand — creates a minimal `uapkg.json` (new schema) for the current\n// working directory, interactively selecting `kind` + `name` when missing.\n//\n// - Writes via `@uapkg/package-manifest` ManifestWriter.\n// - Pre-check uses ManifestReader (fails fast if manifest already present).\n// ---------------------------------------------------------------------------\n\nconst DEFAULT_INITIAL_VERSION = '0.1.0';\n\nexport class InitCommand implements Command {\n public constructor(\n private readonly root: CompositionRoot,\n private readonly options: InitCommandOptions,\n private readonly detector: ProjectContextDetector,\n private readonly prompts: PromptService,\n ) {}\n\n public async execute(): Promise<number> {\n const existing = await new ManifestReader().read(this.root.cwd);\n if (existing.ok) {\n process.stderr.write('[uapkg] uapkg.json already exists in current directory\\n');\n return 1;\n }\n\n const detected = this.detector.detect(this.root.cwd);\n const kind =\n this.options.explicitKind ??\n ((await this.prompts.select(\n 'Select manifest kind',\n [\n { label: 'Project', value: 'project' },\n { label: 'Plugin', value: 'plugin' },\n ],\n detected.suggestedKind,\n )) as ManifestKind);\n\n const rawName = this.options.explicitName ?? (await this.prompts.text('Package name', detected.suggestedName));\n\n const nameResult = PackageNameSchema.safeParse(rawName.trim());\n if (!nameResult.success) {\n process.stderr.write(`[uapkg] Invalid package name \"${rawName}\": must be lowercase alphanumeric with hyphens\\n`);\n return 1;\n }\n const versionResult = PackageVersionSchema.safeParse(DEFAULT_INITIAL_VERSION);\n if (!versionResult.success) {\n process.stderr.write(`[uapkg] Internal error: default version \"${DEFAULT_INITIAL_VERSION}\" rejected by schema\\n`);\n return 1;\n }\n\n const manifest: Manifest = this.buildManifest(kind, nameResult.data, versionResult.data);\n const writeResult = await new ManifestWriter().write(this.root.cwd, manifest);\n if (!writeResult.ok) {\n this.root.diagnostics.reportAll(writeResult.diagnostics);\n return 1;\n }\n\n process.stdout.write(`[uapkg] Created uapkg.json (${kind}) for ${String(nameResult.data)}\\n`);\n return 0;\n }\n\n private buildManifest(kind: ManifestKind, name: PackageName, version: PackageVersion): Manifest {\n if (kind === 'plugin') {\n return { name, version, kind: 'plugin' };\n }\n return { name, version, kind: 'project' };\n }\n}\n"],"mappings":";;;;AAsBA,MAAM,0BAA0B;AAEhC,IAAa,cAAb,MAA4C;CAEvB;CACA;CACA;CACA;CAJnB,AAAO,YACL,AAAiB,MACjB,AAAiB,SACjB,AAAiB,UACjB,AAAiB,SACjB;EAJiB;EACA;EACA;EACA;CAChB;CAEH,MAAa,UAA2B;EAEtC,KAAI,MADmB,IAAI,eAAe,CAAC,CAAC,KAAK,KAAK,KAAK,GAAG,EAClD,CAAC,IAAI;GACf,QAAQ,OAAO,MAAM,0DAA0D;GAC/E,OAAO;EACT;EAEA,MAAM,WAAW,KAAK,SAAS,OAAO,KAAK,KAAK,GAAG;EACnD,MAAM,OACJ,KAAK,QAAQ,gBACX,MAAM,KAAK,QAAQ,OACnB,wBACA,CACE;GAAE,OAAO;GAAW,OAAO;EAAU,GACrC;GAAE,OAAO;GAAU,OAAO;EAAS,CACrC,GACA,SAAS,aACX;EAEF,MAAM,UAAU,KAAK,QAAQ,gBAAiB,MAAM,KAAK,QAAQ,KAAK,gBAAgB,SAAS,aAAa;EAE5G,MAAM,aAAa,kBAAkB,UAAU,QAAQ,KAAK,CAAC;EAC7D,IAAI,CAAC,WAAW,SAAS;GACvB,QAAQ,OAAO,MAAM,iCAAiC,QAAQ,iDAAiD;GAC/G,OAAO;EACT;EACA,MAAM,gBAAgB,qBAAqB,UAAU,uBAAuB;EAC5E,IAAI,CAAC,cAAc,SAAS;GAC1B,QAAQ,OAAO,MAAM,4CAA4C,wBAAwB,uBAAuB;GAChH,OAAO;EACT;EAEA,MAAM,WAAqB,KAAK,cAAc,MAAM,WAAW,MAAM,cAAc,IAAI;EACvF,MAAM,cAAc,MAAM,IAAI,eAAe,CAAC,CAAC,MAAM,KAAK,KAAK,KAAK,QAAQ;EAC5E,IAAI,CAAC,YAAY,IAAI;GACnB,KAAK,KAAK,YAAY,UAAU,YAAY,WAAW;GACvD,OAAO;EACT;EAEA,QAAQ,OAAO,MAAM,+BAA+B,KAAK,QAAQ,OAAO,WAAW,IAAI,EAAE,GAAG;EAC5F,OAAO;CACT;CAEA,AAAQ,cAAc,MAAoB,MAAmB,SAAmC;EAC9F,IAAI,SAAS,UACX,OAAO;GAAE;GAAM;GAAS,MAAM;EAAS;EAEzC,OAAO;GAAE;GAAM;GAAS,MAAM;EAAU;CAC1C;AACF"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { CompositionRoot } from "../app/CompositionRoot.js";
|
|
2
|
+
import { Command } from "./Command.js";
|
|
3
|
+
//#region src/commands/InstallCommand.d.ts
|
|
4
|
+
interface InstallCommandOptions {
|
|
5
|
+
readonly force: boolean;
|
|
6
|
+
readonly frozen: boolean;
|
|
7
|
+
readonly dryRun: boolean;
|
|
8
|
+
readonly outputFormat: 'text' | 'json';
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* `uapkg install` — resolve → plan → download/extract/remove → postinstall.
|
|
@@ -20,11 +21,13 @@ export interface InstallCommandOptions {
|
|
|
20
21
|
*
|
|
21
22
|
* `--force` and `--frozen` are mutually exclusive; the parser layer enforces this.
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
declare class InstallCommand implements Command {
|
|
25
|
+
private readonly root;
|
|
26
|
+
private readonly options;
|
|
27
|
+
constructor(root: CompositionRoot, options: InstallCommandOptions);
|
|
28
|
+
execute(): Promise<number>;
|
|
29
|
+
private fail;
|
|
29
30
|
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { InstallCommand, InstallCommandOptions };
|
|
30
33
|
//# sourceMappingURL=InstallCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstallCommand.d.ts","
|
|
1
|
+
{"version":3,"file":"InstallCommand.d.ts","names":[],"sources":["../../src/commands/InstallCommand.ts"],"mappings":";;;UAOiB;WACN;WACA;WACA;WACA;;;;;;;;;;;;;;;;cAiBE,0BAA0B;mBAElB;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW;UAsFhB"}
|
|
@@ -1,112 +1,120 @@
|
|
|
1
|
-
import { InstallProgressReporter } from
|
|
2
|
-
import { PostinstallCandidateBuilder } from
|
|
1
|
+
import { InstallProgressReporter } from "../reporting/InstallProgressReporter.js";
|
|
2
|
+
import { PostinstallCandidateBuilder } from "./PostinstallCandidateBuilder.js";
|
|
3
|
+
|
|
4
|
+
//#region src/commands/InstallCommand.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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
6
|
+
* `uapkg install` — resolve → plan → download/extract/remove → postinstall.
|
|
7
|
+
*
|
|
8
|
+
* Pipeline (never throws; errors become diagnostics):
|
|
9
|
+
*
|
|
10
|
+
* 1. Read manifest + previous lockfile (best-effort).
|
|
11
|
+
* 2. `PackageManifest.install({ frozen })` → writes a fresh lockfile.
|
|
12
|
+
* 3. `Installer.execute(...)` → executes the install plan.
|
|
13
|
+
* 4. Consume installer's status stream in parallel via `InstallProgressReporter`.
|
|
14
|
+
* 5. On success (non-dryRun), `PostinstallOrchestrator.run()` for added/updated plugins.
|
|
15
|
+
* 6. Report summary + diagnostics.
|
|
16
|
+
*
|
|
17
|
+
* `--force` and `--frozen` are mutually exclusive; the parser layer enforces this.
|
|
18
|
+
*/
|
|
19
|
+
var InstallCommand = class {
|
|
20
|
+
root;
|
|
21
|
+
options;
|
|
22
|
+
constructor(root, options) {
|
|
23
|
+
this.root = root;
|
|
24
|
+
this.options = options;
|
|
25
|
+
}
|
|
26
|
+
async execute() {
|
|
27
|
+
const pm = this.root.packageManifest;
|
|
28
|
+
const commandDiagnostics = [];
|
|
29
|
+
const manifestResult = await pm.readManifest();
|
|
30
|
+
if (!manifestResult.ok) return this.fail(manifestResult.diagnostics);
|
|
31
|
+
const manifest = manifestResult.value;
|
|
32
|
+
let previousLockfile = null;
|
|
33
|
+
if (!this.options.frozen) {
|
|
34
|
+
const previousLockfileResult = await pm.readLockfileOptional();
|
|
35
|
+
if (!previousLockfileResult.ok) return this.fail(previousLockfileResult.diagnostics);
|
|
36
|
+
previousLockfile = previousLockfileResult.value;
|
|
37
|
+
}
|
|
38
|
+
const installResult = await pm.install({ frozen: this.options.frozen });
|
|
39
|
+
if (!installResult.ok) return this.fail([...commandDiagnostics, ...installResult.diagnostics]);
|
|
40
|
+
commandDiagnostics.push(...installResult.diagnostics);
|
|
41
|
+
const lockfile = installResult.value;
|
|
42
|
+
if (this.options.frozen) previousLockfile = lockfile;
|
|
43
|
+
const progress = new InstallProgressReporter();
|
|
44
|
+
const consumer = progress.consume(this.root.installer.getStatusStream());
|
|
45
|
+
const rootDependencies = [
|
|
46
|
+
...Object.keys(manifest.dependencies ?? {}),
|
|
47
|
+
...Object.keys(manifest.devDependencies ?? {}),
|
|
48
|
+
...Object.keys(manifest.peerDependencies ?? {})
|
|
49
|
+
];
|
|
50
|
+
const executeResult = await this.root.installer.execute(lockfile, previousLockfile, {
|
|
51
|
+
manifestRoot: this.root.cwd,
|
|
52
|
+
force: this.options.force,
|
|
53
|
+
dryRun: this.options.dryRun,
|
|
54
|
+
rootDependencies
|
|
55
|
+
});
|
|
56
|
+
await consumer;
|
|
57
|
+
if (!executeResult.ok) return this.fail([...commandDiagnostics, ...executeResult.diagnostics]);
|
|
58
|
+
const report = executeResult.value;
|
|
59
|
+
const plan = report.plan;
|
|
60
|
+
const hasBranchFailures = report.failed.length > 0 || report.skipped.length > 0;
|
|
61
|
+
const builder = new PostinstallCandidateBuilder();
|
|
62
|
+
const candidates = builder.build(this.root, plan, lockfile, new Set(report.installed));
|
|
63
|
+
const manifestType = builder.resolveManifestType(manifest);
|
|
64
|
+
let postDiagnostics = [];
|
|
65
|
+
if (!this.options.dryRun && candidates.length > 0) {
|
|
66
|
+
const moduleNameOverride = manifest.kind === "project" ? manifest.postinstall?.modules : void 0;
|
|
67
|
+
const postResult = await this.root.postinstall.run({
|
|
68
|
+
projectRoot: this.root.cwd,
|
|
69
|
+
manifestType,
|
|
70
|
+
candidates,
|
|
71
|
+
moduleNameOverride
|
|
72
|
+
});
|
|
73
|
+
postDiagnostics = postResult.diagnostics;
|
|
74
|
+
if (!postResult.ok) return this.fail([
|
|
75
|
+
...commandDiagnostics,
|
|
76
|
+
...executeResult.diagnostics,
|
|
77
|
+
...postResult.diagnostics
|
|
78
|
+
]);
|
|
79
|
+
}
|
|
80
|
+
if (this.options.outputFormat === "json") {
|
|
81
|
+
this.root.json.emit({
|
|
82
|
+
status: hasBranchFailures ? "error" : "ok",
|
|
83
|
+
command: "install",
|
|
84
|
+
data: {
|
|
85
|
+
plan: plan.summary,
|
|
86
|
+
installed: report.installed,
|
|
87
|
+
failed: report.failed,
|
|
88
|
+
skipped: report.skipped,
|
|
89
|
+
incompleteClosure: report.incompleteClosure
|
|
90
|
+
},
|
|
91
|
+
diagnostics: [
|
|
92
|
+
...commandDiagnostics,
|
|
93
|
+
...executeResult.diagnostics,
|
|
94
|
+
...postDiagnostics
|
|
95
|
+
]
|
|
96
|
+
});
|
|
97
|
+
return hasBranchFailures ? 1 : 0;
|
|
98
|
+
}
|
|
99
|
+
this.root.diagnostics.reportAll([
|
|
100
|
+
...commandDiagnostics,
|
|
101
|
+
...executeResult.diagnostics,
|
|
102
|
+
...postDiagnostics
|
|
103
|
+
]);
|
|
104
|
+
progress.renderSummary(plan.summary);
|
|
105
|
+
return hasBranchFailures ? 1 : 0;
|
|
106
|
+
}
|
|
107
|
+
fail(diagnostics) {
|
|
108
|
+
if (this.options.outputFormat === "json") this.root.json.emit({
|
|
109
|
+
status: "error",
|
|
110
|
+
command: "install",
|
|
111
|
+
diagnostics
|
|
112
|
+
});
|
|
113
|
+
else this.root.diagnostics.reportAll(diagnostics);
|
|
114
|
+
return 1;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
//#endregion
|
|
119
|
+
export { InstallCommand };
|
|
112
120
|
//# sourceMappingURL=InstallCommand.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstallCommand.js","
|
|
1
|
+
{"version":3,"file":"InstallCommand.js","names":[],"sources":["../../src/commands/InstallCommand.ts"],"sourcesContent":["import type { Diagnostic } from '@uapkg/diagnostics';\nimport type { Lockfile } from '@uapkg/package-manifest-schema';\nimport type { CompositionRoot } from '../app/CompositionRoot.js';\nimport { InstallProgressReporter } from '../reporting/InstallProgressReporter.js';\nimport type { Command } from './Command.js';\nimport { PostinstallCandidateBuilder } from './PostinstallCandidateBuilder.js';\n\nexport interface InstallCommandOptions {\n readonly force: boolean;\n readonly frozen: boolean;\n readonly dryRun: boolean;\n readonly outputFormat: 'text' | 'json';\n}\n\n/**\n * `uapkg install` — resolve → plan → download/extract/remove → postinstall.\n *\n * Pipeline (never throws; errors become diagnostics):\n *\n * 1. Read manifest + previous lockfile (best-effort).\n * 2. `PackageManifest.install({ frozen })` → writes a fresh lockfile.\n * 3. `Installer.execute(...)` → executes the install plan.\n * 4. Consume installer's status stream in parallel via `InstallProgressReporter`.\n * 5. On success (non-dryRun), `PostinstallOrchestrator.run()` for added/updated plugins.\n * 6. Report summary + diagnostics.\n *\n * `--force` and `--frozen` are mutually exclusive; the parser layer enforces this.\n */\nexport class InstallCommand implements Command {\n public constructor(\n private readonly root: CompositionRoot,\n private readonly options: InstallCommandOptions,\n ) {}\n\n public async execute(): Promise<number> {\n const pm = this.root.packageManifest;\n const commandDiagnostics: Diagnostic[] = [];\n\n const manifestResult = await pm.readManifest();\n if (!manifestResult.ok) return this.fail(manifestResult.diagnostics);\n const manifest = manifestResult.value;\n\n let previousLockfile: Lockfile | null = null;\n if (!this.options.frozen) {\n const previousLockfileResult = await pm.readLockfileOptional();\n if (!previousLockfileResult.ok) return this.fail(previousLockfileResult.diagnostics);\n previousLockfile = previousLockfileResult.value;\n }\n\n const installResult = await pm.install({ frozen: this.options.frozen });\n if (!installResult.ok) return this.fail([...commandDiagnostics, ...installResult.diagnostics]);\n commandDiagnostics.push(...installResult.diagnostics);\n const lockfile = installResult.value;\n if (this.options.frozen) {\n previousLockfile = lockfile;\n }\n\n const progress = new InstallProgressReporter();\n const consumer = progress.consume(this.root.installer.getStatusStream());\n\n // Trusted roots for verification-gated traversal: the manifest's declared buckets.\n const rootDependencies = [\n ...Object.keys(manifest.dependencies ?? {}),\n ...Object.keys(manifest.devDependencies ?? {}),\n ...Object.keys(manifest.peerDependencies ?? {}),\n ];\n\n const executeResult = await this.root.installer.execute(lockfile, previousLockfile, {\n manifestRoot: this.root.cwd,\n force: this.options.force,\n dryRun: this.options.dryRun,\n rootDependencies,\n });\n await consumer;\n\n if (!executeResult.ok) return this.fail([...commandDiagnostics, ...executeResult.diagnostics]);\n const report = executeResult.value;\n const plan = report.plan;\n const hasBranchFailures = report.failed.length > 0 || report.skipped.length > 0;\n\n const builder = new PostinstallCandidateBuilder();\n const candidates = builder.build(this.root, plan, lockfile, new Set(report.installed));\n const manifestType = builder.resolveManifestType(manifest);\n\n let postDiagnostics: readonly Diagnostic[] = [];\n if (!this.options.dryRun && candidates.length > 0) {\n const moduleNameOverride = manifest.kind === 'project' ? manifest.postinstall?.modules : undefined;\n const postResult = await this.root.postinstall.run({\n projectRoot: this.root.cwd,\n manifestType,\n candidates,\n moduleNameOverride,\n });\n postDiagnostics = postResult.diagnostics;\n if (!postResult.ok) {\n return this.fail([...commandDiagnostics, ...executeResult.diagnostics, ...postResult.diagnostics]);\n }\n }\n\n if (this.options.outputFormat === 'json') {\n this.root.json.emit({\n status: hasBranchFailures ? 'error' : 'ok',\n command: 'install',\n data: {\n plan: plan.summary,\n installed: report.installed,\n failed: report.failed,\n skipped: report.skipped,\n incompleteClosure: report.incompleteClosure,\n },\n diagnostics: [...commandDiagnostics, ...executeResult.diagnostics, ...postDiagnostics],\n });\n return hasBranchFailures ? 1 : 0;\n }\n\n this.root.diagnostics.reportAll([...commandDiagnostics, ...executeResult.diagnostics, ...postDiagnostics]);\n progress.renderSummary(plan.summary);\n return hasBranchFailures ? 1 : 0;\n }\n\n private fail(diagnostics: readonly Diagnostic[]): number {\n if (this.options.outputFormat === 'json') {\n this.root.json.emit({ status: 'error', command: 'install', diagnostics });\n } else {\n this.root.diagnostics.reportAll(diagnostics);\n }\n return 1;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA4BA,IAAa,iBAAb,MAA+C;CAE1B;CACA;CAFnB,AAAO,YACL,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;CAChB;CAEH,MAAa,UAA2B;EACtC,MAAM,KAAK,KAAK,KAAK;EACrB,MAAM,qBAAmC,CAAC;EAE1C,MAAM,iBAAiB,MAAM,GAAG,aAAa;EAC7C,IAAI,CAAC,eAAe,IAAI,OAAO,KAAK,KAAK,eAAe,WAAW;EACnE,MAAM,WAAW,eAAe;EAEhC,IAAI,mBAAoC;EACxC,IAAI,CAAC,KAAK,QAAQ,QAAQ;GACxB,MAAM,yBAAyB,MAAM,GAAG,qBAAqB;GAC7D,IAAI,CAAC,uBAAuB,IAAI,OAAO,KAAK,KAAK,uBAAuB,WAAW;GACnF,mBAAmB,uBAAuB;EAC5C;EAEA,MAAM,gBAAgB,MAAM,GAAG,QAAQ,EAAE,QAAQ,KAAK,QAAQ,OAAO,CAAC;EACtE,IAAI,CAAC,cAAc,IAAI,OAAO,KAAK,KAAK,CAAC,GAAG,oBAAoB,GAAG,cAAc,WAAW,CAAC;EAC7F,mBAAmB,KAAK,GAAG,cAAc,WAAW;EACpD,MAAM,WAAW,cAAc;EAC/B,IAAI,KAAK,QAAQ,QACf,mBAAmB;EAGrB,MAAM,WAAW,IAAI,wBAAwB;EAC7C,MAAM,WAAW,SAAS,QAAQ,KAAK,KAAK,UAAU,gBAAgB,CAAC;EAGvE,MAAM,mBAAmB;GACvB,GAAG,OAAO,KAAK,SAAS,gBAAgB,CAAC,CAAC;GAC1C,GAAG,OAAO,KAAK,SAAS,mBAAmB,CAAC,CAAC;GAC7C,GAAG,OAAO,KAAK,SAAS,oBAAoB,CAAC,CAAC;EAChD;EAEA,MAAM,gBAAgB,MAAM,KAAK,KAAK,UAAU,QAAQ,UAAU,kBAAkB;GAClF,cAAc,KAAK,KAAK;GACxB,OAAO,KAAK,QAAQ;GACpB,QAAQ,KAAK,QAAQ;GACrB;EACF,CAAC;EACD,MAAM;EAEN,IAAI,CAAC,cAAc,IAAI,OAAO,KAAK,KAAK,CAAC,GAAG,oBAAoB,GAAG,cAAc,WAAW,CAAC;EAC7F,MAAM,SAAS,cAAc;EAC7B,MAAM,OAAO,OAAO;EACpB,MAAM,oBAAoB,OAAO,OAAO,SAAS,KAAK,OAAO,QAAQ,SAAS;EAE9E,MAAM,UAAU,IAAI,4BAA4B;EAChD,MAAM,aAAa,QAAQ,MAAM,KAAK,MAAM,MAAM,UAAU,IAAI,IAAI,OAAO,SAAS,CAAC;EACrF,MAAM,eAAe,QAAQ,oBAAoB,QAAQ;EAEzD,IAAI,kBAAyC,CAAC;EAC9C,IAAI,CAAC,KAAK,QAAQ,UAAU,WAAW,SAAS,GAAG;GACjD,MAAM,qBAAqB,SAAS,SAAS,YAAY,SAAS,aAAa,UAAU;GACzF,MAAM,aAAa,MAAM,KAAK,KAAK,YAAY,IAAI;IACjD,aAAa,KAAK,KAAK;IACvB;IACA;IACA;GACF,CAAC;GACD,kBAAkB,WAAW;GAC7B,IAAI,CAAC,WAAW,IACd,OAAO,KAAK,KAAK;IAAC,GAAG;IAAoB,GAAG,cAAc;IAAa,GAAG,WAAW;GAAW,CAAC;EAErG;EAEA,IAAI,KAAK,QAAQ,iBAAiB,QAAQ;GACxC,KAAK,KAAK,KAAK,KAAK;IAClB,QAAQ,oBAAoB,UAAU;IACtC,SAAS;IACT,MAAM;KACJ,MAAM,KAAK;KACX,WAAW,OAAO;KAClB,QAAQ,OAAO;KACf,SAAS,OAAO;KAChB,mBAAmB,OAAO;IAC5B;IACA,aAAa;KAAC,GAAG;KAAoB,GAAG,cAAc;KAAa,GAAG;IAAe;GACvF,CAAC;GACD,OAAO,oBAAoB,IAAI;EACjC;EAEA,KAAK,KAAK,YAAY,UAAU;GAAC,GAAG;GAAoB,GAAG,cAAc;GAAa,GAAG;EAAe,CAAC;EACzG,SAAS,cAAc,KAAK,OAAO;EACnC,OAAO,oBAAoB,IAAI;CACjC;CAEA,AAAQ,KAAK,aAA4C;EACvD,IAAI,KAAK,QAAQ,iBAAiB,QAChC,KAAK,KAAK,KAAK,KAAK;GAAE,QAAQ;GAAS,SAAS;GAAW;EAAY,CAAC;OAExE,KAAK,KAAK,YAAY,UAAU,WAAW;EAE7C,OAAO;CACT;AACF"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CompositionRoot } from "../app/CompositionRoot.js";
|
|
2
|
+
import { Command } from "./Command.js";
|
|
3
|
+
//#region src/commands/ListCommand.d.ts
|
|
4
|
+
interface ListCommandOptions {
|
|
5
|
+
readonly depth: number;
|
|
6
|
+
readonly outputFormat: 'text' | 'json';
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
9
|
* `uapkg list [--depth N]` — renders the resolved dependency tree.
|
|
@@ -11,10 +12,12 @@ export interface ListCommandOptions {
|
|
|
11
12
|
* prints only root declarations; `Infinity` prints everything (duplicates
|
|
12
13
|
* guarded so cycles can't loop forever).
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
declare class ListCommand implements Command {
|
|
16
|
+
private readonly root;
|
|
17
|
+
private readonly options;
|
|
18
|
+
constructor(root: CompositionRoot, options: ListCommandOptions);
|
|
19
|
+
execute(): Promise<number>;
|
|
19
20
|
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ListCommand, ListCommandOptions };
|
|
20
23
|
//# sourceMappingURL=ListCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListCommand.d.ts","
|
|
1
|
+
{"version":3,"file":"ListCommand.d.ts","names":[],"sources":["../../src/commands/ListCommand.ts"],"mappings":";;;UAGiB;WACN;WACA;;;;;;;;;cAUE,uBAAuB;mBAEf;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW"}
|