@uapkg/cli 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/CompositionRoot.d.ts +36 -33
- package/dist/app/CompositionRoot.d.ts.map +1 -1
- package/dist/app/CompositionRoot.js +91 -109
- package/dist/app/CompositionRoot.js.map +1 -1
- package/dist/app/UAPKGApplication.d.ts +6 -3
- package/dist/app/UAPKGApplication.d.ts.map +1 -1
- package/dist/app/UAPKGApplication.js +155 -169
- package/dist/app/UAPKGApplication.js.map +1 -1
- package/dist/build/BuildMetadata.d.ts +9 -6
- package/dist/build/BuildMetadata.d.ts.map +1 -1
- package/dist/build/BuildMetadata.js +2 -2
- package/dist/cli/UAPKGCommandLine.d.ts +259 -257
- package/dist/cli/UAPKGCommandLine.d.ts.map +1 -1
- package/dist/cli/UAPKGCommandLine.js +248 -239
- package/dist/cli/UAPKGCommandLine.js.map +1 -1
- package/dist/cli/parseCommandLine.d.ts +5 -1
- package/dist/cli/parseCommandLine.d.ts.map +1 -1
- package/dist/cli/parseCommandLine.js +8 -3
- package/dist/cli/parseCommandLine.js.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts +9 -6
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.js +23 -31
- package/dist/cli/parsing/UAPKGCommandLineParser.js.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts +12 -9
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.js +53 -50
- package/dist/cli/parsing/UAPKGParserRegistry.js.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts +9 -6
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js +1 -2
- package/dist/cli/parsing/modules/AddCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/AddCommandModule.js +49 -36
- package/dist/cli/parsing/modules/AddCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.js +87 -83
- package/dist/cli/parsing/modules/ConfigCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.js +25 -22
- package/dist/cli/parsing/modules/InitCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.js +36 -28
- package/dist/cli/parsing/modules/InstallCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.js +78 -50
- package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.js +26 -15
- package/dist/cli/parsing/modules/ListCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.js +34 -33
- package/dist/cli/parsing/modules/LoginCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.js +30 -28
- package/dist/cli/parsing/modules/LogoutCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.js +21 -16
- package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.js +30 -28
- package/dist/cli/parsing/modules/PackCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +14 -11
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.js +63 -47
- package/dist/cli/parsing/modules/PublishCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.js +117 -120
- package/dist/cli/parsing/modules/RegistryCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.js +25 -14
- package/dist/cli/parsing/modules/RemoveCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.js +56 -60
- package/dist/cli/parsing/modules/RequestsCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.js +38 -25
- package/dist/cli/parsing/modules/UpdateCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.js +30 -28
- package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.js +25 -14
- package/dist/cli/parsing/modules/WhyCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.d.ts +8 -5
- package/dist/cli/parsing/modules/sharedOptions.d.ts.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.js +18 -23
- package/dist/cli/parsing/modules/sharedOptions.js.map +1 -1
- package/dist/cli/runUAPKGCLI.d.ts +4 -1
- package/dist/cli/runUAPKGCLI.d.ts.map +1 -1
- package/dist/cli/runUAPKGCLI.js +10 -5
- package/dist/cli/runUAPKGCLI.js.map +1 -1
- package/dist/cli-bootstrap.d.ts +1 -2
- package/dist/cli-bootstrap.js +15 -12
- package/dist/cli-bootstrap.js.map +1 -1
- package/dist/commands/AddCommand.d.ts +19 -16
- package/dist/commands/AddCommand.d.ts.map +1 -1
- package/dist/commands/AddCommand.js +49 -53
- package/dist/commands/AddCommand.js.map +1 -1
- package/dist/commands/Command.d.ts +5 -2
- package/dist/commands/Command.d.ts.map +1 -1
- package/dist/commands/Command.js +1 -2
- package/dist/commands/ConfigCommand.d.ts +28 -25
- package/dist/commands/ConfigCommand.d.ts.map +1 -1
- package/dist/commands/ConfigCommand.js +165 -186
- package/dist/commands/ConfigCommand.js.map +1 -1
- package/dist/commands/InitCommand.d.ts +19 -16
- package/dist/commands/InitCommand.d.ts.map +1 -1
- package/dist/commands/InitCommand.js +65 -60
- package/dist/commands/InitCommand.js.map +1 -1
- package/dist/commands/InstallCommand.d.ts +16 -13
- package/dist/commands/InstallCommand.d.ts.map +1 -1
- package/dist/commands/InstallCommand.js +118 -110
- package/dist/commands/InstallCommand.js.map +1 -1
- package/dist/commands/ListCommand.d.ts +13 -10
- package/dist/commands/ListCommand.d.ts.map +1 -1
- package/dist/commands/ListCommand.js +76 -81
- package/dist/commands/ListCommand.js.map +1 -1
- package/dist/commands/LoginCommand.d.ts +17 -14
- package/dist/commands/LoginCommand.d.ts.map +1 -1
- package/dist/commands/LoginCommand.js +66 -72
- package/dist/commands/LoginCommand.js.map +1 -1
- package/dist/commands/LogoutCommand.d.ts +15 -12
- package/dist/commands/LogoutCommand.d.ts.map +1 -1
- package/dist/commands/LogoutCommand.js +36 -37
- package/dist/commands/LogoutCommand.js.map +1 -1
- package/dist/commands/OutdatedCommand.d.ts +12 -9
- package/dist/commands/OutdatedCommand.d.ts.map +1 -1
- package/dist/commands/OutdatedCommand.js +41 -40
- package/dist/commands/OutdatedCommand.js.map +1 -1
- package/dist/commands/PackCommand.d.ts +13 -10
- package/dist/commands/PackCommand.d.ts.map +1 -1
- package/dist/commands/PackCommand.js +26 -21
- package/dist/commands/PackCommand.js.map +1 -1
- package/dist/commands/PackageLifecycleCommand.d.ts +23 -19
- package/dist/commands/PackageLifecycleCommand.d.ts.map +1 -1
- package/dist/commands/PackageLifecycleCommand.js +144 -138
- package/dist/commands/PackageLifecycleCommand.js.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.d.ts +11 -8
- package/dist/commands/PostinstallCandidateBuilder.d.ts.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.js +42 -42
- package/dist/commands/PostinstallCandidateBuilder.js.map +1 -1
- package/dist/commands/ProjectGetNameCommand.d.ts +10 -7
- package/dist/commands/ProjectGetNameCommand.d.ts.map +1 -1
- package/dist/commands/ProjectGetNameCommand.js +25 -25
- package/dist/commands/ProjectGetNameCommand.js.map +1 -1
- package/dist/commands/PublishCommand.d.ts +29 -23
- package/dist/commands/PublishCommand.d.ts.map +1 -1
- package/dist/commands/PublishCommand.js +243 -254
- package/dist/commands/PublishCommand.js.map +1 -1
- package/dist/commands/RegistryCommand.d.ts +38 -35
- package/dist/commands/RegistryCommand.d.ts.map +1 -1
- package/dist/commands/RegistryCommand.js +195 -223
- package/dist/commands/RegistryCommand.js.map +1 -1
- package/dist/commands/RemoveCommand.d.ts +14 -11
- package/dist/commands/RemoveCommand.d.ts.map +1 -1
- package/dist/commands/RemoveCommand.js +47 -54
- package/dist/commands/RemoveCommand.js.map +1 -1
- package/dist/commands/RequestsCommand.d.ts +21 -18
- package/dist/commands/RequestsCommand.d.ts.map +1 -1
- package/dist/commands/RequestsCommand.js +82 -95
- package/dist/commands/RequestsCommand.js.map +1 -1
- package/dist/commands/UpdateCommand.d.ts +29 -26
- package/dist/commands/UpdateCommand.d.ts.map +1 -1
- package/dist/commands/UpdateCommand.js +111 -111
- package/dist/commands/UpdateCommand.js.map +1 -1
- package/dist/commands/WhoamiCommand.d.ts +30 -27
- package/dist/commands/WhoamiCommand.d.ts.map +1 -1
- package/dist/commands/WhoamiCommand.js +63 -72
- package/dist/commands/WhoamiCommand.js.map +1 -1
- package/dist/commands/WhyCommand.d.ts +13 -10
- package/dist/commands/WhyCommand.d.ts.map +1 -1
- package/dist/commands/WhyCommand.js +45 -44
- package/dist/commands/WhyCommand.js.map +1 -1
- package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
- package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
- package/dist/commands/add/DependencyAddResolver.js +36 -36
- package/dist/commands/add/DependencyAddResolver.js.map +1 -1
- package/dist/control-plane/AccountManager.d.ts +96 -94
- package/dist/control-plane/AccountManager.d.ts.map +1 -1
- package/dist/control-plane/AccountManager.js +775 -967
- package/dist/control-plane/AccountManager.js.map +1 -1
- package/dist/control-plane/ArtifactObserver.d.ts +19 -16
- package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
- package/dist/control-plane/ArtifactObserver.js +73 -59
- package/dist/control-plane/ArtifactObserver.js.map +1 -1
- package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
- package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
- package/dist/control-plane/AuthMetadataStore.js +111 -113
- package/dist/control-plane/AuthMetadataStore.js.map +1 -1
- package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
- package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
- package/dist/control-plane/AuthStoragePaths.js +19 -14
- package/dist/control-plane/AuthStoragePaths.js.map +1 -1
- package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
- package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
- package/dist/control-plane/AuthenticationSelector.js +69 -63
- package/dist/control-plane/AuthenticationSelector.js.map +1 -1
- package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
- package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneClient.js +265 -254
- package/dist/control-plane/ControlPlaneClient.js.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
- package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
- package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
- package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.js +88 -81
- package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
- package/dist/control-plane/CredentialStore.d.ts +20 -18
- package/dist/control-plane/CredentialStore.d.ts.map +1 -1
- package/dist/control-plane/CredentialStore.js +66 -83
- package/dist/control-plane/CredentialStore.js.map +1 -1
- package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
- package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
- package/dist/control-plane/DPoPKeyStore.js +57 -53
- package/dist/control-plane/DPoPKeyStore.js.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
- package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.js +97 -68
- package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
- package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
- package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
- package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
- package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
- package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
- package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
- package/dist/control-plane/RegistryGrantLock.js +149 -185
- package/dist/control-plane/RegistryGrantLock.js.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
- package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.js +97 -132
- package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
- package/dist/index.d.ts +62 -39
- package/dist/index.js +60 -53
- package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
- package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
- package/dist/postinstall/api/PostinstallDsl.js +32 -35
- package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
- package/dist/postinstall/api/definePostinstall.d.ts +5 -2
- package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
- package/dist/postinstall/api/definePostinstall.js +20 -16
- package/dist/postinstall/api/definePostinstall.js.map +1 -1
- package/dist/postinstall/index.d.ts +25 -26
- package/dist/postinstall/index.js +25 -37
- package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
- package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
- package/dist/postinstall/loader/EntryResolver.js +36 -32
- package/dist/postinstall/loader/EntryResolver.js.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
- package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
- package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
- package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
- package/dist/postinstall/loader/ExportValidator.js +36 -32
- package/dist/postinstall/loader/ExportValidator.js.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
- package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.js +50 -58
- package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
- package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.js +62 -58
- package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
- package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
- package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.js +44 -44
- package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
- package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
- package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
- package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
- package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
- package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
- package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.js +1 -2
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
- package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
- package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
- package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
- package/dist/postinstall/unreal/PluginHash.js +13 -8
- package/dist/postinstall/unreal/PluginHash.js.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
- package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.js +37 -37
- package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
- package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
- package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
- package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.js +56 -52
- package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
- package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
- package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
- package/dist/prompts/InkPromptService.d.ts +10 -7
- package/dist/prompts/InkPromptService.d.ts.map +1 -1
- package/dist/prompts/InkPromptService.js +100 -71
- package/dist/prompts/InkPromptService.js.map +1 -1
- package/dist/prompts/ProjectContextDetector.d.ts +10 -7
- package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
- package/dist/prompts/ProjectContextDetector.js +32 -26
- package/dist/prompts/ProjectContextDetector.js.map +1 -1
- package/dist/prompts/PromptService.d.ts +11 -8
- package/dist/prompts/PromptService.d.ts.map +1 -1
- package/dist/prompts/PromptService.js +1 -8
- package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
- package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
- package/dist/reporting/DiagnosticDeduplicator.js +36 -35
- package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
- package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/DiagnosticRenderer.js +1 -2
- package/dist/reporting/DiagnosticReporter.d.ts +12 -9
- package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
- package/dist/reporting/DiagnosticReporter.js +40 -39
- package/dist/reporting/DiagnosticReporter.js.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
- package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.js +50 -42
- package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/InstallProgressReporter.d.ts +23 -20
- package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
- package/dist/reporting/InstallProgressReporter.js +48 -47
- package/dist/reporting/InstallProgressReporter.js.map +1 -1
- package/dist/reporting/JsonReporter.d.ts +16 -13
- package/dist/reporting/JsonReporter.d.ts.map +1 -1
- package/dist/reporting/JsonReporter.js +34 -20
- package/dist/reporting/JsonReporter.js.map +1 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
- package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/TextDiagnosticRenderer.js +36 -28
- package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/TextSink.d.ts +14 -11
- package/dist/reporting/TextSink.d.ts.map +1 -1
- package/dist/reporting/TextSink.js +24 -20
- package/dist/reporting/TextSink.js.map +1 -1
- package/package.json +31 -32
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
- package/dist/cli-bootstrap.d.ts.map +0 -1
- package/dist/commands/Command.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/postinstall/index.d.ts.map +0 -1
- package/dist/postinstall/index.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
- package/dist/prompts/PromptService.js.map +0 -1
- package/dist/reporting/DiagnosticRenderer.js.map +0 -1
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.wrap(Math.min(120, yargs().terminalWidth()));
|
|
25
|
-
await parser.parse();
|
|
26
|
-
if (!parsed) {
|
|
27
|
-
throw new Error('[uapkg] Failed to resolve command line input');
|
|
28
|
-
}
|
|
29
|
-
return parsed;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
import { UAPKG_BUILD_METADATA } from "../../build/BuildMetadata.js";
|
|
2
|
+
import { UAPKGParserRegistry } from "./UAPKGParserRegistry.js";
|
|
3
|
+
import yargs from "yargs";
|
|
4
|
+
import { hideBin } from "yargs/helpers";
|
|
5
|
+
|
|
6
|
+
//#region src/cli/parsing/UAPKGCommandLineParser.ts
|
|
7
|
+
var UAPKGCommandLineParser = class {
|
|
8
|
+
registry;
|
|
9
|
+
constructor(registry = new UAPKGParserRegistry()) {
|
|
10
|
+
this.registry = registry;
|
|
11
|
+
}
|
|
12
|
+
async parse(rawArgv = process.argv) {
|
|
13
|
+
let parsed;
|
|
14
|
+
await this.registry.registerAll(yargs(hideBin(rawArgv)).scriptName("uapkg").usage("$0 <command> [args]").version(UAPKG_BUILD_METADATA.displayVersion).demandCommand(1).strict().help(), { set(commandLine) {
|
|
15
|
+
parsed = commandLine;
|
|
16
|
+
} }).wrap(Math.min(120, yargs().terminalWidth())).parse();
|
|
17
|
+
if (!parsed) throw new Error("[uapkg] Failed to resolve command line input");
|
|
18
|
+
return parsed;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { UAPKGCommandLineParser };
|
|
32
24
|
//# sourceMappingURL=UAPKGCommandLineParser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandLineParser.js","
|
|
1
|
+
{"version":3,"file":"UAPKGCommandLineParser.js","names":[],"sources":["../../../src/cli/parsing/UAPKGCommandLineParser.ts"],"sourcesContent":["import yargs from 'yargs';\nimport { hideBin } from 'yargs/helpers';\nimport { UAPKG_BUILD_METADATA } from '../../build/BuildMetadata.js';\nimport type { UAPKGCommandLine } from '../UAPKGCommandLine.js';\nimport { UAPKGParserRegistry } from './UAPKGParserRegistry.js';\n\nexport class UAPKGCommandLineParser {\n constructor(private readonly registry = new UAPKGParserRegistry()) {}\n\n async parse(rawArgv = process.argv): Promise<UAPKGCommandLine> {\n let parsed: UAPKGCommandLine | undefined;\n\n const parser = this.registry\n .registerAll(\n yargs(hideBin(rawArgv))\n .scriptName('uapkg')\n .usage('$0 <command> [args]')\n .version(UAPKG_BUILD_METADATA.displayVersion)\n .demandCommand(1)\n .strict()\n .help(),\n {\n set(commandLine) {\n parsed = commandLine;\n },\n },\n )\n .wrap(Math.min(120, yargs().terminalWidth()));\n\n await parser.parse();\n\n if (!parsed) {\n throw new Error('[uapkg] Failed to resolve command line input');\n }\n\n return parsed;\n }\n}\n"],"mappings":";;;;;;AAMA,IAAa,yBAAb,MAAoC;CACL;CAA7B,YAAY,AAAiB,WAAW,IAAI,oBAAoB,GAAG;EAAtC;CAAuC;CAEpE,MAAM,MAAM,UAAU,QAAQ,MAAiC;EAC7D,IAAI;EAmBJ,MAjBe,KAAK,SACjB,YACC,MAAM,QAAQ,OAAO,CAAC,CAAC,CACpB,WAAW,OAAO,CAAC,CACnB,MAAM,qBAAqB,CAAC,CAC5B,QAAQ,qBAAqB,cAAc,CAAC,CAC5C,cAAc,CAAC,CAAC,CAChB,OAAO,CAAC,CACR,KAAK,GACR,EACE,IAAI,aAAa;GACf,SAAS;EACX,EACF,CACF,CAAC,CACA,KAAK,KAAK,IAAI,KAAK,MAAM,CAAC,CAAC,cAAc,CAAC,CAElC,CAAC,CAAC,MAAM;EAEnB,IAAI,CAAC,QACH,MAAM,IAAI,MAAM,8CAA8C;EAGhE,OAAO;CACT;AACF"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { UAPKGCommandLine } from "../UAPKGCommandLine.js";
|
|
2
|
+
import { UAPKGCommandModule } from "./contracts/UAPKGCommandModule.js";
|
|
3
|
+
import { Argv } from "yargs";
|
|
4
|
+
//#region src/cli/parsing/UAPKGParserRegistry.d.ts
|
|
5
|
+
declare class UAPKGParserRegistry {
|
|
6
|
+
private readonly modules;
|
|
7
|
+
constructor(modules?: UAPKGCommandModule[]);
|
|
8
|
+
registerAll(parser: Argv, sink: {
|
|
9
|
+
set: (commandLine: UAPKGCommandLine) => void;
|
|
10
|
+
}): Argv<{}>;
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { UAPKGParserRegistry };
|
|
11
14
|
//# sourceMappingURL=UAPKGParserRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGParserRegistry.d.ts","
|
|
1
|
+
{"version":3,"file":"UAPKGParserRegistry.d.ts","names":[],"sources":["../../../src/cli/parsing/UAPKGParserRegistry.ts"],"mappings":";;;;cAsBa;mBAEQ;EADnB,YACmB,UAAS;EAsB5B,YAAY,QAAQ,MAAM;IAAQ,MAAM,aAAa;MAA2B"}
|
|
@@ -1,51 +1,54 @@
|
|
|
1
|
-
import { AddCommandModule } from
|
|
2
|
-
import { ConfigCommandModule } from
|
|
3
|
-
import { InitCommandModule } from
|
|
4
|
-
import { InstallCommandModule } from
|
|
5
|
-
import { LifecycleCommandModule } from
|
|
6
|
-
import { ListCommandModule } from
|
|
7
|
-
import { LoginCommandModule } from
|
|
8
|
-
import { LogoutCommandModule } from
|
|
9
|
-
import { OutdatedCommandModule } from
|
|
10
|
-
import { PackCommandModule } from
|
|
11
|
-
import { ProjectGetNameCommandModule } from
|
|
12
|
-
import { PublishCommandModule } from
|
|
13
|
-
import { RegistryCommandModule } from
|
|
14
|
-
import { RemoveCommandModule } from
|
|
15
|
-
import { RequestsCommandModule } from
|
|
16
|
-
import { UpdateCommandModule } from
|
|
17
|
-
import { WhoamiCommandModule } from
|
|
18
|
-
import { WhyCommandModule } from
|
|
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
|
-
}
|
|
1
|
+
import { AddCommandModule } from "./modules/AddCommandModule.js";
|
|
2
|
+
import { ConfigCommandModule } from "./modules/ConfigCommandModule.js";
|
|
3
|
+
import { InitCommandModule } from "./modules/InitCommandModule.js";
|
|
4
|
+
import { InstallCommandModule } from "./modules/InstallCommandModule.js";
|
|
5
|
+
import { LifecycleCommandModule } from "./modules/LifecycleCommandModule.js";
|
|
6
|
+
import { ListCommandModule } from "./modules/ListCommandModule.js";
|
|
7
|
+
import { LoginCommandModule } from "./modules/LoginCommandModule.js";
|
|
8
|
+
import { LogoutCommandModule } from "./modules/LogoutCommandModule.js";
|
|
9
|
+
import { OutdatedCommandModule } from "./modules/OutdatedCommandModule.js";
|
|
10
|
+
import { PackCommandModule } from "./modules/PackCommandModule.js";
|
|
11
|
+
import { ProjectGetNameCommandModule } from "./modules/ProjectGetNameCommandModule.js";
|
|
12
|
+
import { PublishCommandModule } from "./modules/PublishCommandModule.js";
|
|
13
|
+
import { RegistryCommandModule } from "./modules/RegistryCommandModule.js";
|
|
14
|
+
import { RemoveCommandModule } from "./modules/RemoveCommandModule.js";
|
|
15
|
+
import { RequestsCommandModule } from "./modules/RequestsCommandModule.js";
|
|
16
|
+
import { UpdateCommandModule } from "./modules/UpdateCommandModule.js";
|
|
17
|
+
import { WhoamiCommandModule } from "./modules/WhoamiCommandModule.js";
|
|
18
|
+
import { WhyCommandModule } from "./modules/WhyCommandModule.js";
|
|
19
|
+
|
|
20
|
+
//#region src/cli/parsing/UAPKGParserRegistry.ts
|
|
21
|
+
var UAPKGParserRegistry = class {
|
|
22
|
+
modules;
|
|
23
|
+
constructor(modules = [
|
|
24
|
+
new InitCommandModule(),
|
|
25
|
+
new AddCommandModule(),
|
|
26
|
+
new InstallCommandModule(),
|
|
27
|
+
new UpdateCommandModule(),
|
|
28
|
+
new RemoveCommandModule(),
|
|
29
|
+
new OutdatedCommandModule(),
|
|
30
|
+
new WhyCommandModule(),
|
|
31
|
+
new ListCommandModule(),
|
|
32
|
+
new PackCommandModule(),
|
|
33
|
+
new ProjectGetNameCommandModule(),
|
|
34
|
+
new ConfigCommandModule(),
|
|
35
|
+
new RegistryCommandModule(),
|
|
36
|
+
new LoginCommandModule(),
|
|
37
|
+
new LogoutCommandModule(),
|
|
38
|
+
new WhoamiCommandModule(),
|
|
39
|
+
new PublishCommandModule(),
|
|
40
|
+
new LifecycleCommandModule(),
|
|
41
|
+
new RequestsCommandModule()
|
|
42
|
+
]) {
|
|
43
|
+
this.modules = modules;
|
|
44
|
+
}
|
|
45
|
+
registerAll(parser, sink) {
|
|
46
|
+
let next = parser;
|
|
47
|
+
for (const module of this.modules) next = module.register(next, sink);
|
|
48
|
+
return next;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
export { UAPKGParserRegistry };
|
|
51
54
|
//# sourceMappingURL=UAPKGParserRegistry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGParserRegistry.js","
|
|
1
|
+
{"version":3,"file":"UAPKGParserRegistry.js","names":[],"sources":["../../../src/cli/parsing/UAPKGParserRegistry.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport type { UAPKGCommandLine } from '../UAPKGCommandLine.js';\nimport type { UAPKGCommandModule } from './contracts/UAPKGCommandModule.js';\nimport { AddCommandModule } from './modules/AddCommandModule.js';\nimport { ConfigCommandModule } from './modules/ConfigCommandModule.js';\nimport { InitCommandModule } from './modules/InitCommandModule.js';\nimport { InstallCommandModule } from './modules/InstallCommandModule.js';\nimport { LifecycleCommandModule } from './modules/LifecycleCommandModule.js';\nimport { ListCommandModule } from './modules/ListCommandModule.js';\nimport { LoginCommandModule } from './modules/LoginCommandModule.js';\nimport { LogoutCommandModule } from './modules/LogoutCommandModule.js';\nimport { OutdatedCommandModule } from './modules/OutdatedCommandModule.js';\nimport { PackCommandModule } from './modules/PackCommandModule.js';\nimport { ProjectGetNameCommandModule } from './modules/ProjectGetNameCommandModule.js';\nimport { PublishCommandModule } from './modules/PublishCommandModule.js';\nimport { RegistryCommandModule } from './modules/RegistryCommandModule.js';\nimport { RemoveCommandModule } from './modules/RemoveCommandModule.js';\nimport { RequestsCommandModule } from './modules/RequestsCommandModule.js';\nimport { UpdateCommandModule } from './modules/UpdateCommandModule.js';\nimport { WhoamiCommandModule } from './modules/WhoamiCommandModule.js';\nimport { WhyCommandModule } from './modules/WhyCommandModule.js';\n\nexport class UAPKGParserRegistry {\n constructor(\n private readonly modules: UAPKGCommandModule[] = [\n new InitCommandModule(),\n new AddCommandModule(),\n new InstallCommandModule(),\n new UpdateCommandModule(),\n new RemoveCommandModule(),\n new OutdatedCommandModule(),\n new WhyCommandModule(),\n new ListCommandModule(),\n new PackCommandModule(),\n new ProjectGetNameCommandModule(),\n new ConfigCommandModule(),\n new RegistryCommandModule(),\n new LoginCommandModule(),\n new LogoutCommandModule(),\n new WhoamiCommandModule(),\n new PublishCommandModule(),\n new LifecycleCommandModule(),\n new RequestsCommandModule(),\n ],\n ) {}\n\n registerAll(parser: Argv, sink: { set: (commandLine: UAPKGCommandLine) => void }) {\n let next = parser;\n for (const module of this.modules) {\n next = module.register(next, sink);\n }\n\n return next;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA,IAAa,sBAAb,MAAiC;CAEZ;CADnB,YACE,AAAiB,UAAgC;EAC/C,IAAI,kBAAkB;EACtB,IAAI,iBAAiB;EACrB,IAAI,qBAAqB;EACzB,IAAI,oBAAoB;EACxB,IAAI,oBAAoB;EACxB,IAAI,sBAAsB;EAC1B,IAAI,iBAAiB;EACrB,IAAI,kBAAkB;EACtB,IAAI,kBAAkB;EACtB,IAAI,4BAA4B;EAChC,IAAI,oBAAoB;EACxB,IAAI,sBAAsB;EAC1B,IAAI,mBAAmB;EACvB,IAAI,oBAAoB;EACxB,IAAI,oBAAoB;EACxB,IAAI,qBAAqB;EACzB,IAAI,uBAAuB;EAC3B,IAAI,sBAAsB;CAC5B,GACA;EApBiB;CAoBhB;CAEH,YAAY,QAAc,MAAwD;EAChF,IAAI,OAAO;EACX,KAAK,MAAM,UAAU,KAAK,SACxB,OAAO,OAAO,SAAS,MAAM,IAAI;EAGnC,OAAO;CACT;AACF"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { UAPKGCommandLine } from "../../UAPKGCommandLine.js";
|
|
2
|
+
import { Argv } from "yargs";
|
|
3
|
+
//#region src/cli/parsing/contracts/UAPKGCommandModule.d.ts
|
|
4
|
+
interface CommandLineSink {
|
|
5
|
+
set(commandLine: UAPKGCommandLine): void;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
interface UAPKGCommandModule {
|
|
8
|
+
register(parser: Argv, sink: CommandLineSink): Argv;
|
|
8
9
|
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { CommandLineSink, UAPKGCommandModule };
|
|
9
12
|
//# sourceMappingURL=UAPKGCommandModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandModule.d.ts","
|
|
1
|
+
{"version":3,"file":"UAPKGCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/contracts/UAPKGCommandModule.ts"],"mappings":";;;UAGiB;EACf,IAAI,aAAa;;UAGF;EACf,SAAS,QAAQ,MAAM,MAAM,kBAAkB"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=UAPKGCommandModule.js.map
|
|
1
|
+
export { };
|
|
@@ -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/AddCommandModule.d.ts
|
|
4
|
+
declare class AddCommandModule implements UAPKGCommandModule {
|
|
5
|
+
private readonly factory;
|
|
6
|
+
register(parser: Argv, sink: CommandLineSink): Argv<{}>;
|
|
6
7
|
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { AddCommandModule };
|
|
7
10
|
//# sourceMappingURL=AddCommandModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCommandModule.d.ts","
|
|
1
|
+
{"version":3,"file":"AddCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/AddCommandModule.ts"],"mappings":";;;cAIa,4BAA4B;mBACtB;EAEjB,SAAS,QAAQ,MAAM,MAAM,kBAAe"}
|
|
@@ -1,37 +1,50 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import { createUAPKGCommandLineFactory } from "../../UAPKGCommandLine.js";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/parsing/modules/AddCommandModule.ts
|
|
4
|
+
var AddCommandModule = class {
|
|
5
|
+
factory = createUAPKGCommandLineFactory();
|
|
6
|
+
register(parser, sink) {
|
|
7
|
+
return parser.command("add <source>", "Add dependency source to current uapkg.json", (builder) => builder.positional("source", {
|
|
8
|
+
type: "string",
|
|
9
|
+
describe: "Dependency source specifier",
|
|
10
|
+
demandOption: true
|
|
11
|
+
}).option("force", {
|
|
12
|
+
type: "boolean",
|
|
13
|
+
default: false,
|
|
14
|
+
describe: "Override safety policy for local drift/branch divergence"
|
|
15
|
+
}).option("pin", {
|
|
16
|
+
type: "boolean",
|
|
17
|
+
default: false,
|
|
18
|
+
describe: "Add/replace project override for this dependency"
|
|
19
|
+
}).option("dev", {
|
|
20
|
+
type: "boolean",
|
|
21
|
+
default: false,
|
|
22
|
+
describe: "Add to devDependencies"
|
|
23
|
+
}).option("registry", {
|
|
24
|
+
type: "string",
|
|
25
|
+
describe: "Registry name (defaults to config `registry`)"
|
|
26
|
+
}).option("dry-run", {
|
|
27
|
+
type: "boolean",
|
|
28
|
+
default: false,
|
|
29
|
+
describe: "Compute the plan but perform no IO"
|
|
30
|
+
}).option("json", {
|
|
31
|
+
type: "boolean",
|
|
32
|
+
default: false,
|
|
33
|
+
describe: "Emit JSON on stdout"
|
|
34
|
+
}), (argv) => {
|
|
35
|
+
sink.set(this.factory.createAdd(String(argv.source), {
|
|
36
|
+
cwd: process.cwd(),
|
|
37
|
+
force: argv.force,
|
|
38
|
+
pin: argv.pin,
|
|
39
|
+
dev: argv.dev,
|
|
40
|
+
registry: typeof argv.registry === "string" ? argv.registry : void 0,
|
|
41
|
+
dryRun: argv["dry-run"],
|
|
42
|
+
outputFormat: argv.json ? "json" : "text"
|
|
43
|
+
}));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { AddCommandModule };
|
|
37
50
|
//# sourceMappingURL=AddCommandModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddCommandModule.js","
|
|
1
|
+
{"version":3,"file":"AddCommandModule.js","names":[],"sources":["../../../../src/cli/parsing/modules/AddCommandModule.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport { createUAPKGCommandLineFactory } from '../../UAPKGCommandLine.js';\nimport type { CommandLineSink, UAPKGCommandModule } from '../contracts/UAPKGCommandModule.js';\n\nexport class AddCommandModule implements UAPKGCommandModule {\n private readonly factory = createUAPKGCommandLineFactory();\n\n register(parser: Argv, sink: CommandLineSink) {\n return parser.command(\n 'add <source>',\n 'Add dependency source to current uapkg.json',\n (builder) =>\n builder\n .positional('source', {\n type: 'string',\n describe: 'Dependency source specifier',\n demandOption: true,\n })\n .option('force', {\n type: 'boolean',\n default: false,\n describe: 'Override safety policy for local drift/branch divergence',\n })\n .option('pin', {\n type: 'boolean',\n default: false,\n describe: 'Add/replace project override for this dependency',\n })\n .option('dev', { type: 'boolean', default: false, describe: 'Add to devDependencies' })\n .option('registry', { type: 'string', describe: 'Registry name (defaults to config `registry`)' })\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 sink.set(\n this.factory.createAdd(String(argv.source), {\n cwd: process.cwd(),\n force: argv.force,\n pin: argv.pin,\n dev: argv.dev,\n registry: typeof argv.registry === 'string' ? argv.registry : undefined,\n dryRun: argv['dry-run'],\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,MAAuB;EAC5C,OAAO,OAAO,QACZ,gBACA,gDACC,YACC,QACG,WAAW,UAAU;GACpB,MAAM;GACN,UAAU;GACV,cAAc;EAChB,CAAC,CAAC,CACD,OAAO,SAAS;GACf,MAAM;GACN,SAAS;GACT,UAAU;EACZ,CAAC,CAAC,CACD,OAAO,OAAO;GACb,MAAM;GACN,SAAS;GACT,UAAU;EACZ,CAAC,CAAC,CACD,OAAO,OAAO;GAAE,MAAM;GAAW,SAAS;GAAO,UAAU;EAAyB,CAAC,CAAC,CACtF,OAAO,YAAY;GAAE,MAAM;GAAU,UAAU;EAAgD,CAAC,CAAC,CACjG,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,KAAK,IACH,KAAK,QAAQ,UAAU,OAAO,KAAK,MAAM,GAAG;IAC1C,KAAK,QAAQ,IAAI;IACjB,OAAO,KAAK;IACZ,KAAK,KAAK;IACV,KAAK,KAAK;IACV,UAAU,OAAO,KAAK,aAAa,WAAW,KAAK,WAAW;IAC9D,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/ConfigCommandModule.d.ts
|
|
4
|
+
declare class ConfigCommandModule implements UAPKGCommandModule {
|
|
5
|
+
private readonly factory;
|
|
6
|
+
register(parser: Argv, sink: CommandLineSink): Argv<{}>;
|
|
6
7
|
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { ConfigCommandModule };
|
|
7
10
|
//# sourceMappingURL=ConfigCommandModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigCommandModule.d.ts","
|
|
1
|
+
{"version":3,"file":"ConfigCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/ConfigCommandModule.ts"],"mappings":";;;cAKa,+BAA+B;mBACzB;EAEjB,SAAS,QAAQ,MAAM,MAAM,kBAAe"}
|
|
@@ -1,84 +1,88 @@
|
|
|
1
|
-
import { createUAPKGCommandLineFactory } from
|
|
2
|
-
import { resolveScope, withScopeOptions } 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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
1
|
+
import { createUAPKGCommandLineFactory } from "../../UAPKGCommandLine.js";
|
|
2
|
+
import { resolveScope, withScopeOptions } from "./sharedOptions.js";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/parsing/modules/ConfigCommandModule.ts
|
|
5
|
+
var ConfigCommandModule = class {
|
|
6
|
+
factory = createUAPKGCommandLineFactory();
|
|
7
|
+
register(parser, sink) {
|
|
8
|
+
return parser.command("config <action> [path] [value]", "Read and edit configuration values", (builder) => withScopeOptions(builder).positional("action", {
|
|
9
|
+
type: "string",
|
|
10
|
+
choices: [
|
|
11
|
+
"get",
|
|
12
|
+
"list",
|
|
13
|
+
"set",
|
|
14
|
+
"delete",
|
|
15
|
+
"edit"
|
|
16
|
+
],
|
|
17
|
+
describe: "Config action",
|
|
18
|
+
demandOption: true
|
|
19
|
+
}).positional("path", {
|
|
20
|
+
type: "string",
|
|
21
|
+
describe: "Path to property"
|
|
22
|
+
}).positional("value", {
|
|
23
|
+
type: "string",
|
|
24
|
+
describe: "Scalar value for set action"
|
|
25
|
+
}).option("json", {
|
|
26
|
+
type: "boolean",
|
|
27
|
+
default: false,
|
|
28
|
+
describe: "Output JSON"
|
|
29
|
+
}).option("show-origin", {
|
|
30
|
+
type: "boolean",
|
|
31
|
+
default: false,
|
|
32
|
+
describe: "Show value origin"
|
|
33
|
+
}).option("trace", {
|
|
34
|
+
type: "boolean",
|
|
35
|
+
default: false,
|
|
36
|
+
describe: "Trace value across all layers"
|
|
37
|
+
}), (argv) => {
|
|
38
|
+
const scope = resolveScope(argv.global, argv.local);
|
|
39
|
+
const output = argv.json ? "json" : "text";
|
|
40
|
+
const action = String(argv.action);
|
|
41
|
+
const cwd = process.cwd();
|
|
42
|
+
switch (action) {
|
|
43
|
+
case "get":
|
|
44
|
+
sink.set(this.factory.createConfigGet(typeof argv.path === "string" ? argv.path : "", {
|
|
45
|
+
cwd,
|
|
46
|
+
scope,
|
|
47
|
+
output,
|
|
48
|
+
showOrigin: argv["show-origin"],
|
|
49
|
+
trace: argv.trace
|
|
50
|
+
}));
|
|
51
|
+
return;
|
|
52
|
+
case "list":
|
|
53
|
+
sink.set(this.factory.createConfigList({
|
|
54
|
+
cwd,
|
|
55
|
+
scope,
|
|
56
|
+
output
|
|
57
|
+
}));
|
|
58
|
+
return;
|
|
59
|
+
case "set":
|
|
60
|
+
sink.set(this.factory.createConfigSet(typeof argv.path === "string" ? argv.path : "", typeof argv.value === "string" ? argv.value : "", {
|
|
61
|
+
cwd,
|
|
62
|
+
scope,
|
|
63
|
+
output
|
|
64
|
+
}));
|
|
65
|
+
return;
|
|
66
|
+
case "delete":
|
|
67
|
+
sink.set(this.factory.createConfigDelete(typeof argv.path === "string" ? argv.path : "", {
|
|
68
|
+
cwd,
|
|
69
|
+
scope,
|
|
70
|
+
output
|
|
71
|
+
}));
|
|
72
|
+
return;
|
|
73
|
+
case "edit":
|
|
74
|
+
sink.set(this.factory.createConfigEdit({
|
|
75
|
+
cwd,
|
|
76
|
+
scope,
|
|
77
|
+
output
|
|
78
|
+
}));
|
|
79
|
+
return;
|
|
80
|
+
default: throw new Error(`[uapkg] Unsupported config action: ${action}`);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
//#endregion
|
|
87
|
+
export { ConfigCommandModule };
|
|
84
88
|
//# sourceMappingURL=ConfigCommandModule.js.map
|