@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,26 +1,39 @@
|
|
|
1
|
-
import { createUAPKGCommandLineFactory } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
import { createUAPKGCommandLineFactory } from "../../UAPKGCommandLine.js";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/parsing/modules/UpdateCommandModule.ts
|
|
4
|
+
var UpdateCommandModule = class {
|
|
5
|
+
factory = createUAPKGCommandLineFactory();
|
|
6
|
+
register(parser, sink) {
|
|
7
|
+
return parser.command("update [specs..]", "Update dependency graph and lockfile from remote refs", (builder) => builder.positional("specs", {
|
|
8
|
+
type: "string",
|
|
9
|
+
array: true,
|
|
10
|
+
describe: "Optional list of package names to update"
|
|
11
|
+
}).option("force", {
|
|
12
|
+
type: "boolean",
|
|
13
|
+
default: false,
|
|
14
|
+
describe: "Override safety policies for local drift/branch divergence"
|
|
15
|
+
}).option("dry-run", {
|
|
16
|
+
type: "boolean",
|
|
17
|
+
default: false,
|
|
18
|
+
describe: "Compute the plan but perform no IO"
|
|
19
|
+
}).option("json", {
|
|
20
|
+
type: "boolean",
|
|
21
|
+
default: false,
|
|
22
|
+
describe: "Emit JSON on stdout"
|
|
23
|
+
}), (argv) => {
|
|
24
|
+
const specsArg = argv.specs;
|
|
25
|
+
const specs = Array.isArray(specsArg) ? specsArg.filter((v) => typeof v === "string") : [];
|
|
26
|
+
sink.set(this.factory.createUpdate({
|
|
27
|
+
cwd: process.cwd(),
|
|
28
|
+
specs,
|
|
29
|
+
force: argv.force,
|
|
30
|
+
dryRun: argv["dry-run"],
|
|
31
|
+
outputFormat: argv.json ? "json" : "text"
|
|
32
|
+
}));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { UpdateCommandModule };
|
|
26
39
|
//# sourceMappingURL=UpdateCommandModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateCommandModule.js","
|
|
1
|
+
{"version":3,"file":"UpdateCommandModule.js","names":[],"sources":["../../../../src/cli/parsing/modules/UpdateCommandModule.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport { createUAPKGCommandLineFactory } from '../../UAPKGCommandLine.js';\nimport type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';\n\nexport class UpdateCommandModule implements UAPKGCommandModule {\n private readonly factory = createUAPKGCommandLineFactory();\n\n register(parser: Argv, sink: CommandLineSink) {\n return parser.command(\n 'update [specs..]',\n 'Update dependency graph and lockfile from remote refs',\n (builder) =>\n builder\n .positional('specs', { type: 'string', array: true, describe: 'Optional list of package names to update' })\n .option('force', {\n type: 'boolean',\n default: false,\n describe: 'Override safety policies for local drift/branch divergence',\n })\n .option('dry-run', { type: 'boolean', default: false, describe: 'Compute the plan but perform no IO' })\n .option('json', { type: 'boolean', default: false, describe: 'Emit JSON on stdout' }),\n (argv) => {\n const specsArg = argv.specs;\n const specs = Array.isArray(specsArg) ? (specsArg.filter((v) => typeof v === 'string') as string[]) : [];\n sink.set(\n this.factory.createUpdate({\n cwd: process.cwd(),\n specs,\n force: argv.force,\n dryRun: argv['dry-run'],\n outputFormat: argv.json ? 'json' : 'text',\n }),\n );\n },\n );\n }\n}\n"],"mappings":";;;AAIA,IAAa,sBAAb,MAA+D;CAC7D,AAAiB,UAAU,8BAA8B;CAEzD,SAAS,QAAc,MAAuB;EAC5C,OAAO,OAAO,QACZ,oBACA,0DACC,YACC,QACG,WAAW,SAAS;GAAE,MAAM;GAAU,OAAO;GAAM,UAAU;EAA2C,CAAC,CAAC,CAC1G,OAAO,SAAS;GACf,MAAM;GACN,SAAS;GACT,UAAU;EACZ,CAAC,CAAC,CACD,OAAO,WAAW;GAAE,MAAM;GAAW,SAAS;GAAO,UAAU;EAAqC,CAAC,CAAC,CACtG,OAAO,QAAQ;GAAE,MAAM;GAAW,SAAS;GAAO,UAAU;EAAsB,CAAC,IACvF,SAAS;GACR,MAAM,WAAW,KAAK;GACtB,MAAM,QAAQ,MAAM,QAAQ,QAAQ,IAAK,SAAS,QAAQ,MAAM,OAAO,MAAM,QAAQ,IAAiB,CAAC;GACvG,KAAK,IACH,KAAK,QAAQ,aAAa;IACxB,KAAK,QAAQ,IAAI;IACjB;IACA,OAAO,KAAK;IACZ,QAAQ,KAAK;IACb,cAAc,KAAK,OAAO,SAAS;GACrC,CAAC,CACH;EACF,CACF;CACF;AACF"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CommandLineSink, UAPKGCommandModule } from "../contracts/UAPKGCommandModule.js";
|
|
2
|
+
import { Argv } from "yargs";
|
|
3
|
+
//#region src/cli/parsing/modules/WhoamiCommandModule.d.ts
|
|
4
|
+
declare class WhoamiCommandModule implements UAPKGCommandModule {
|
|
5
|
+
private readonly factory;
|
|
6
|
+
register(parser: Argv, sink: CommandLineSink): Argv;
|
|
6
7
|
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { WhoamiCommandModule };
|
|
7
10
|
//# sourceMappingURL=WhoamiCommandModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhoamiCommandModule.d.ts","
|
|
1
|
+
{"version":3,"file":"WhoamiCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/WhoamiCommandModule.ts"],"mappings":";;;cAIa,+BAA+B;mBACzB;EAEjB,SAAS,QAAQ,MAAM,MAAM,kBAAkB"}
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { UAPKG_WHOAMI_FIELDS, createUAPKGCommandLineFactory } from "../../UAPKGCommandLine.js";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/parsing/modules/WhoamiCommandModule.ts
|
|
4
|
+
var WhoamiCommandModule = class {
|
|
5
|
+
factory = createUAPKGCommandLineFactory();
|
|
6
|
+
register(parser, sink) {
|
|
7
|
+
return parser.command("whoami [field]", "Show the account associated with this registry login", (builder) => builder.positional("field", {
|
|
8
|
+
type: "string",
|
|
9
|
+
choices: UAPKG_WHOAMI_FIELDS,
|
|
10
|
+
describe: "Identity or registry field to print"
|
|
11
|
+
}).option("registry", {
|
|
12
|
+
type: "string",
|
|
13
|
+
describe: "Configured registry alias (defaults to the selected registry)"
|
|
14
|
+
}).option("json", {
|
|
15
|
+
type: "boolean",
|
|
16
|
+
default: false,
|
|
17
|
+
describe: "Emit JSON on stdout"
|
|
18
|
+
}), (argv) => {
|
|
19
|
+
sink.set(this.factory.createWhoami({
|
|
20
|
+
cwd: process.cwd(),
|
|
21
|
+
field: typeof argv.field === "string" ? argv.field : void 0,
|
|
22
|
+
registry: typeof argv.registry === "string" ? argv.registry : void 0,
|
|
23
|
+
outputFormat: argv.json ? "json" : "text"
|
|
24
|
+
}));
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { WhoamiCommandModule };
|
|
29
31
|
//# sourceMappingURL=WhoamiCommandModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhoamiCommandModule.js","
|
|
1
|
+
{"version":3,"file":"WhoamiCommandModule.js","names":[],"sources":["../../../../src/cli/parsing/modules/WhoamiCommandModule.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport { createUAPKGCommandLineFactory, UAPKG_WHOAMI_FIELDS, type UAPKGWhoamiField } from '../../UAPKGCommandLine.js';\nimport type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';\n\nexport class WhoamiCommandModule implements UAPKGCommandModule {\n private readonly factory = createUAPKGCommandLineFactory();\n\n register(parser: Argv, sink: CommandLineSink): Argv {\n return parser.command(\n 'whoami [field]',\n 'Show the account associated with this registry login',\n (builder) =>\n builder\n .positional('field', {\n type: 'string',\n choices: UAPKG_WHOAMI_FIELDS,\n describe: 'Identity or registry field to print',\n })\n .option('registry', {\n type: 'string',\n describe: 'Configured registry alias (defaults to the selected registry)',\n })\n .option('json', {\n type: 'boolean',\n default: false,\n describe: 'Emit JSON on stdout',\n }),\n (argv) => {\n sink.set(\n this.factory.createWhoami({\n cwd: process.cwd(),\n field: typeof argv.field === 'string' ? (argv.field as UAPKGWhoamiField) : undefined,\n registry: typeof argv.registry === 'string' ? argv.registry : undefined,\n outputFormat: argv.json ? 'json' : 'text',\n }),\n );\n },\n );\n }\n}\n"],"mappings":";;;AAIA,IAAa,sBAAb,MAA+D;CAC7D,AAAiB,UAAU,8BAA8B;CAEzD,SAAS,QAAc,MAA6B;EAClD,OAAO,OAAO,QACZ,kBACA,yDACC,YACC,QACG,WAAW,SAAS;GACnB,MAAM;GACN,SAAS;GACT,UAAU;EACZ,CAAC,CAAC,CACD,OAAO,YAAY;GAClB,MAAM;GACN,UAAU;EACZ,CAAC,CAAC,CACD,OAAO,QAAQ;GACd,MAAM;GACN,SAAS;GACT,UAAU;EACZ,CAAC,IACJ,SAAS;GACR,KAAK,IACH,KAAK,QAAQ,aAAa;IACxB,KAAK,QAAQ,IAAI;IACjB,OAAO,OAAO,KAAK,UAAU,WAAY,KAAK,QAA6B;IAC3E,UAAU,OAAO,KAAK,aAAa,WAAW,KAAK,WAAW;IAC9D,cAAc,KAAK,OAAO,SAAS;GACrC,CAAC,CACH;EACF,CACF;CACF;AACF"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CommandLineSink, UAPKGCommandModule } from "../contracts/UAPKGCommandModule.js";
|
|
2
|
+
import { Argv } from "yargs";
|
|
3
|
+
//#region src/cli/parsing/modules/WhyCommandModule.d.ts
|
|
4
|
+
declare class WhyCommandModule implements UAPKGCommandModule {
|
|
5
|
+
private readonly factory;
|
|
6
|
+
register(parser: Argv, sink: CommandLineSink): Argv;
|
|
6
7
|
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { WhyCommandModule };
|
|
7
10
|
//# sourceMappingURL=WhyCommandModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhyCommandModule.d.ts","
|
|
1
|
+
{"version":3,"file":"WhyCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/WhyCommandModule.ts"],"mappings":";;;cAIa,4BAA4B;mBACtB;EAEjB,SAAS,QAAQ,MAAM,MAAM,kBAAkB"}
|
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
import { createUAPKGCommandLineFactory } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { createUAPKGCommandLineFactory } from "../../UAPKGCommandLine.js";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/parsing/modules/WhyCommandModule.ts
|
|
4
|
+
var WhyCommandModule = class {
|
|
5
|
+
factory = createUAPKGCommandLineFactory();
|
|
6
|
+
register(parser, sink) {
|
|
7
|
+
return parser.command("why <package>", "Print every dependency path from a graph root to <package>", (builder) => builder.positional("package", {
|
|
8
|
+
type: "string",
|
|
9
|
+
demandOption: true,
|
|
10
|
+
describe: "Target package name"
|
|
11
|
+
}).option("json", {
|
|
12
|
+
type: "boolean",
|
|
13
|
+
default: false,
|
|
14
|
+
describe: "Emit JSON on stdout"
|
|
15
|
+
}), (argv) => {
|
|
16
|
+
sink.set(this.factory.createWhy(String(argv.package), {
|
|
17
|
+
cwd: process.cwd(),
|
|
18
|
+
outputFormat: argv.json ? "json" : "text"
|
|
19
|
+
}));
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { WhyCommandModule };
|
|
15
26
|
//# sourceMappingURL=WhyCommandModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WhyCommandModule.js","
|
|
1
|
+
{"version":3,"file":"WhyCommandModule.js","names":[],"sources":["../../../../src/cli/parsing/modules/WhyCommandModule.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport { createUAPKGCommandLineFactory } from '../../UAPKGCommandLine.js';\nimport type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';\n\nexport class WhyCommandModule implements UAPKGCommandModule {\n private readonly factory = createUAPKGCommandLineFactory();\n\n register(parser: Argv, sink: CommandLineSink): Argv {\n return parser.command(\n 'why <package>',\n 'Print every dependency path from a graph root to <package>',\n (builder) =>\n builder\n .positional('package', { type: 'string', demandOption: true, describe: 'Target package name' })\n .option('json', { type: 'boolean', default: false, describe: 'Emit JSON on stdout' }),\n (argv) => {\n sink.set(\n this.factory.createWhy(String(argv.package), {\n cwd: process.cwd(),\n outputFormat: argv.json ? 'json' : 'text',\n }),\n );\n },\n );\n }\n}\n"],"mappings":";;;AAIA,IAAa,mBAAb,MAA4D;CAC1D,AAAiB,UAAU,8BAA8B;CAEzD,SAAS,QAAc,MAA6B;EAClD,OAAO,OAAO,QACZ,iBACA,+DACC,YACC,QACG,WAAW,WAAW;GAAE,MAAM;GAAU,cAAc;GAAM,UAAU;EAAsB,CAAC,CAAC,CAC9F,OAAO,QAAQ;GAAE,MAAM;GAAW,SAAS;GAAO,UAAU;EAAsB,CAAC,IACvF,SAAS;GACR,KAAK,IACH,KAAK,QAAQ,UAAU,OAAO,KAAK,OAAO,GAAG;IAC3C,KAAK,QAAQ,IAAI;IACjB,cAAc,KAAK,OAAO,SAAS;GACrC,CAAC,CACH;EACF,CACF;CACF;AACF"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Argv } from "yargs";
|
|
2
|
+
//#region src/cli/parsing/modules/sharedOptions.d.ts
|
|
3
|
+
declare function withScopeOptions<T extends Argv>(parser: T): Argv<{
|
|
4
|
+
global: boolean;
|
|
4
5
|
} & {
|
|
5
|
-
|
|
6
|
+
local: boolean;
|
|
6
7
|
}>;
|
|
7
|
-
|
|
8
|
+
declare function resolveScope(global: boolean, local: boolean): "global" | "local" | undefined;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { resolveScope, withScopeOptions };
|
|
8
11
|
//# sourceMappingURL=sharedOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedOptions.d.ts","
|
|
1
|
+
{"version":3,"file":"sharedOptions.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/sharedOptions.ts"],"mappings":";;iBAEgB,iBAAiB,UAAU,MAAM,QAAQ,IAAC;;;;;iBAc1C,aAAa,iBAAiB"}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
1
|
+
//#region src/cli/parsing/modules/sharedOptions.ts
|
|
2
|
+
function withScopeOptions(parser) {
|
|
3
|
+
return parser.option("global", {
|
|
4
|
+
type: "boolean",
|
|
5
|
+
default: false,
|
|
6
|
+
describe: "Use global configuration scope"
|
|
7
|
+
}).option("local", {
|
|
8
|
+
type: "boolean",
|
|
9
|
+
default: false,
|
|
10
|
+
describe: "Use local configuration scope"
|
|
11
|
+
});
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (global) {
|
|
19
|
-
return 'global';
|
|
20
|
-
}
|
|
21
|
-
if (local) {
|
|
22
|
-
return 'local';
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
13
|
+
function resolveScope(global, local) {
|
|
14
|
+
if (global && local) throw new Error("[uapkg] --global and --local cannot be used together");
|
|
15
|
+
if (global) return "global";
|
|
16
|
+
if (local) return "local";
|
|
25
17
|
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { resolveScope, withScopeOptions };
|
|
26
21
|
//# sourceMappingURL=sharedOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedOptions.js","
|
|
1
|
+
{"version":3,"file":"sharedOptions.js","names":[],"sources":["../../../../src/cli/parsing/modules/sharedOptions.ts"],"sourcesContent":["import type { Argv } from 'yargs';\n\nexport function withScopeOptions<T extends Argv>(parser: T) {\n return parser\n .option('global', {\n type: 'boolean',\n default: false,\n describe: 'Use global configuration scope',\n })\n .option('local', {\n type: 'boolean',\n default: false,\n describe: 'Use local configuration scope',\n });\n}\n\nexport function resolveScope(global: boolean, local: boolean) {\n if (global && local) {\n throw new Error('[uapkg] --global and --local cannot be used together');\n }\n\n if (global) {\n return 'global' as const;\n }\n\n if (local) {\n return 'local' as const;\n }\n\n return undefined;\n}\n"],"mappings":";AAEA,SAAgB,iBAAiC,QAAW;CAC1D,OAAO,OACJ,OAAO,UAAU;EAChB,MAAM;EACN,SAAS;EACT,UAAU;CACZ,CAAC,CAAC,CACD,OAAO,SAAS;EACf,MAAM;EACN,SAAS;EACT,UAAU;CACZ,CAAC;AACL;AAEA,SAAgB,aAAa,QAAiB,OAAgB;CAC5D,IAAI,UAAU,OACZ,MAAM,IAAI,MAAM,sDAAsD;CAGxE,IAAI,QACF,OAAO;CAGT,IAAI,OACF,OAAO;AAIX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runUAPKGCLI.d.ts","
|
|
1
|
+
{"version":3,"file":"runUAPKGCLI.d.ts","names":[],"sources":["../../src/cli/runUAPKGCLI.ts"],"mappings":";iBAGsB,YAAY,qBAAsB"}
|
package/dist/cli/runUAPKGCLI.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { UAPKGApplication } from
|
|
2
|
-
import { parseUAPKGCommandLine } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { UAPKGApplication } from "../app/UAPKGApplication.js";
|
|
2
|
+
import { parseUAPKGCommandLine } from "./parseCommandLine.js";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/runUAPKGCLI.ts
|
|
5
|
+
async function runUAPKGCLI(rawArgv = process.argv) {
|
|
6
|
+
const commandLine = await parseUAPKGCommandLine(rawArgv);
|
|
7
|
+
return await new UAPKGApplication().run(commandLine);
|
|
6
8
|
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { runUAPKGCLI };
|
|
7
12
|
//# sourceMappingURL=runUAPKGCLI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runUAPKGCLI.js","
|
|
1
|
+
{"version":3,"file":"runUAPKGCLI.js","names":[],"sources":["../../src/cli/runUAPKGCLI.ts"],"sourcesContent":["import { UAPKGApplication } from '../app/UAPKGApplication.js';\nimport { parseUAPKGCommandLine } from './parseCommandLine.js';\n\nexport async function runUAPKGCLI(rawArgv = process.argv) {\n const commandLine = await parseUAPKGCommandLine(rawArgv);\n return await new UAPKGApplication().run(commandLine);\n}\n"],"mappings":";;;;AAGA,eAAsB,YAAY,UAAU,QAAQ,MAAM;CACxD,MAAM,cAAc,MAAM,sBAAsB,OAAO;CACvD,OAAO,MAAM,IAAI,iBAAiB,CAAC,CAAC,IAAI,WAAW;AACrD"}
|
package/dist/cli-bootstrap.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {}
|
|
2
|
-
//# sourceMappingURL=cli-bootstrap.d.ts.map
|
|
1
|
+
export {}
|
package/dist/cli-bootstrap.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { runUAPKGCLI } from "./cli/runUAPKGCLI.js";
|
|
2
|
+
import Config from "@uapkg/config";
|
|
3
|
+
import Log, { configureLogger } from "@uapkg/log";
|
|
4
|
+
|
|
5
|
+
//#region src/cli-bootstrap.ts
|
|
4
6
|
Config.reload({ cwd: process.cwd() });
|
|
5
7
|
configureLogger({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
isVerboseEnabled: () => Config.get("term.verbose") === true,
|
|
9
|
+
isQuietEnabled: () => Config.get("term.quiet") === true
|
|
8
10
|
});
|
|
9
|
-
runUAPKGCLI(process.argv)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Log.error(error instanceof Error ? error.message : String(error));
|
|
15
|
-
process.exitCode = 1;
|
|
11
|
+
runUAPKGCLI(process.argv).then((exitCode) => {
|
|
12
|
+
process.exitCode = exitCode;
|
|
13
|
+
}).catch((error) => {
|
|
14
|
+
Log.error(error instanceof Error ? error.message : String(error));
|
|
15
|
+
process.exitCode = 1;
|
|
16
16
|
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { };
|
|
17
20
|
//# sourceMappingURL=cli-bootstrap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-bootstrap.js","
|
|
1
|
+
{"version":3,"file":"cli-bootstrap.js","names":[],"sources":["../src/cli-bootstrap.ts"],"sourcesContent":["import Config from '@uapkg/config';\nimport Log, { configureLogger } from '@uapkg/log';\nimport { runUAPKGCLI } from './cli/runUAPKGCLI.js';\n\nConfig.reload({ cwd: process.cwd() });\nconfigureLogger({\n isVerboseEnabled: () => Config.get('term.verbose') === true,\n isQuietEnabled: () => Config.get('term.quiet') === true,\n});\n\nrunUAPKGCLI(process.argv)\n .then((exitCode) => {\n process.exitCode = exitCode;\n })\n .catch((error) => {\n Log.error(error instanceof Error ? error.message : String(error));\n process.exitCode = 1;\n });\n"],"mappings":";;;;;AAIA,OAAO,OAAO,EAAE,KAAK,QAAQ,IAAI,EAAE,CAAC;AACpC,gBAAgB;CACd,wBAAwB,OAAO,IAAI,cAAc,MAAM;CACvD,sBAAsB,OAAO,IAAI,YAAY,MAAM;AACrD,CAAC;AAED,YAAY,QAAQ,IAAI,CAAC,CACtB,MAAM,aAAa;CAClB,QAAQ,WAAW;AACrB,CAAC,CAAC,CACD,OAAO,UAAU;CAChB,IAAI,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;CAChE,QAAQ,WAAW;AACrB,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { CompositionRoot } from "../app/CompositionRoot.js";
|
|
2
|
+
import { Command } from "./Command.js";
|
|
3
|
+
//#region src/commands/AddCommand.d.ts
|
|
4
|
+
interface AddCommandOptions {
|
|
5
|
+
readonly spec: string;
|
|
6
|
+
readonly pin: boolean;
|
|
7
|
+
readonly dev: boolean;
|
|
8
|
+
readonly registry?: string;
|
|
9
|
+
readonly force: boolean;
|
|
10
|
+
readonly dryRun: boolean;
|
|
11
|
+
readonly outputFormat: 'text' | 'json';
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* `uapkg add <@Org/Name@range>` — parse the spec, mutate the manifest,
|
|
@@ -16,11 +17,13 @@ export interface AddCommandOptions {
|
|
|
16
17
|
* This command is deliberately thin — it is a manifest-mutation shim around
|
|
17
18
|
* `install`. All resolution/installation invariants live one level down.
|
|
18
19
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
declare class AddCommand implements Command {
|
|
21
|
+
private readonly root;
|
|
22
|
+
private readonly options;
|
|
23
|
+
constructor(root: CompositionRoot, options: AddCommandOptions);
|
|
24
|
+
execute(): Promise<number>;
|
|
25
|
+
private fail;
|
|
25
26
|
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { AddCommand, AddCommandOptions };
|
|
26
29
|
//# sourceMappingURL=AddCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCommand.d.ts","
|
|
1
|
+
{"version":3,"file":"AddCommand.d.ts","names":[],"sources":["../../src/commands/AddCommand.ts"],"mappings":";;;UAQiB;WACN;WACA;WACA;WACA;WACA;WACA;WACA;;;;;;;;;cAUE,sBAAsB;mBAEd;mBACA;EAFnB,YACmB,MAAM,iBACN,SAAS;EAGf,WAAW;UA6BhB"}
|
|
@@ -1,55 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { DependencyAddResolver } from "./add/DependencyAddResolver.js";
|
|
2
|
+
import { InstallCommand } from "./InstallCommand.js";
|
|
3
|
+
import { parsePackageSpec } from "@uapkg/common";
|
|
4
|
+
|
|
5
|
+
//#region src/commands/AddCommand.ts
|
|
5
6
|
/**
|
|
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
|
-
return 1;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
// Silence an unused-import warning in strict TS setups; retained for type clarity.
|
|
54
|
-
void InstallProgressReporter;
|
|
7
|
+
* `uapkg add <@Org/Name@range>` — parse the spec, mutate the manifest,
|
|
8
|
+
* delegate to `InstallCommand` for the resolve/install/postinstall pipeline.
|
|
9
|
+
*
|
|
10
|
+
* This command is deliberately thin — it is a manifest-mutation shim around
|
|
11
|
+
* `install`. All resolution/installation invariants live one level down.
|
|
12
|
+
*/
|
|
13
|
+
var AddCommand = class {
|
|
14
|
+
root;
|
|
15
|
+
options;
|
|
16
|
+
constructor(root, options) {
|
|
17
|
+
this.root = root;
|
|
18
|
+
this.options = options;
|
|
19
|
+
}
|
|
20
|
+
async execute() {
|
|
21
|
+
const specResult = parsePackageSpec(this.options.spec);
|
|
22
|
+
if (!specResult.ok) return this.fail(specResult.diagnostics);
|
|
23
|
+
const spec = specResult.value;
|
|
24
|
+
const resolved = await new DependencyAddResolver(this.root).resolve(spec, this.options.registry);
|
|
25
|
+
if (!resolved.ok) return this.fail(resolved.diagnostics);
|
|
26
|
+
const addResult = await this.root.packageManifest.addDependency(spec.name, resolved.value.dependency, {
|
|
27
|
+
bucket: this.options.dev ? "devDependencies" : "dependencies",
|
|
28
|
+
pin: this.options.pin
|
|
29
|
+
});
|
|
30
|
+
if (!addResult.ok) return this.fail(addResult.diagnostics);
|
|
31
|
+
return new InstallCommand(this.root, {
|
|
32
|
+
force: this.options.force,
|
|
33
|
+
frozen: false,
|
|
34
|
+
dryRun: this.options.dryRun,
|
|
35
|
+
outputFormat: this.options.outputFormat
|
|
36
|
+
}).execute();
|
|
37
|
+
}
|
|
38
|
+
fail(diagnostics) {
|
|
39
|
+
if (this.options.outputFormat === "json") this.root.json.emit({
|
|
40
|
+
status: "error",
|
|
41
|
+
command: "add",
|
|
42
|
+
diagnostics
|
|
43
|
+
});
|
|
44
|
+
else this.root.diagnostics.reportAll(diagnostics);
|
|
45
|
+
return 1;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { AddCommand };
|
|
55
51
|
//# sourceMappingURL=AddCommand.js.map
|