@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,76 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
|
-
}
|
|
1
|
+
import { Box, Text, render, useApp, useInput } from "ink";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import isCI from "is-ci";
|
|
4
|
+
import SelectInput from "ink-select-input";
|
|
5
|
+
import TextInput from "ink-text-input";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/prompts/InkPromptService.tsx
|
|
9
|
+
var InkPromptService = class {
|
|
10
|
+
isInteractive;
|
|
11
|
+
constructor(isInteractive = Boolean(process.stdin.isTTY && process.stdout.isTTY) && !isCI) {
|
|
12
|
+
this.isInteractive = isInteractive;
|
|
13
|
+
}
|
|
14
|
+
async select(message, options, fallbackValue) {
|
|
15
|
+
if (!this.isInteractive) return fallbackValue;
|
|
16
|
+
return await new Promise((resolve) => {
|
|
17
|
+
const app = render(/* @__PURE__ */ jsx(SelectPrompt, {
|
|
18
|
+
message,
|
|
19
|
+
options,
|
|
20
|
+
onSubmit: (value) => resolve(value)
|
|
21
|
+
}));
|
|
22
|
+
Promise.resolve().then(() => app.waitUntilExit());
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
async text(message, initialValue) {
|
|
26
|
+
if (!this.isInteractive) return initialValue;
|
|
27
|
+
return await new Promise((resolve) => {
|
|
28
|
+
const app = render(/* @__PURE__ */ jsx(TextPrompt, {
|
|
29
|
+
message,
|
|
30
|
+
initialValue,
|
|
31
|
+
onSubmit: (value) => resolve(value)
|
|
32
|
+
}));
|
|
33
|
+
Promise.resolve().then(() => app.waitUntilExit());
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
async secret(message) {
|
|
37
|
+
if (!this.isInteractive) throw new Error(`${message} requires an interactive terminal.`);
|
|
38
|
+
return await new Promise((resolve) => {
|
|
39
|
+
const app = render(/* @__PURE__ */ jsx(SecretPrompt, {
|
|
40
|
+
message,
|
|
41
|
+
onSubmit: (value) => resolve(value)
|
|
42
|
+
}));
|
|
43
|
+
Promise.resolve().then(() => app.waitUntilExit());
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
47
|
function SecretPrompt({ message, onSubmit }) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
const [value, setValue] = useState("");
|
|
49
|
+
const { exit } = useApp();
|
|
50
|
+
useInput((_, key) => {
|
|
51
|
+
if (key.return) {
|
|
52
|
+
onSubmit(value.trim());
|
|
53
|
+
exit();
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
57
|
+
flexDirection: "column",
|
|
58
|
+
children: [/* @__PURE__ */ jsx(Text, { children: message }), /* @__PURE__ */ jsx(TextInput, {
|
|
59
|
+
value,
|
|
60
|
+
onChange: setValue,
|
|
61
|
+
mask: "*"
|
|
62
|
+
})]
|
|
63
|
+
});
|
|
57
64
|
}
|
|
58
|
-
function SelectPrompt({ message, options, onSubmit
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
function SelectPrompt({ message, options, onSubmit }) {
|
|
66
|
+
const { exit } = useApp();
|
|
67
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
68
|
+
flexDirection: "column",
|
|
69
|
+
children: [/* @__PURE__ */ jsx(Text, { children: message }), /* @__PURE__ */ jsx(SelectInput, {
|
|
70
|
+
items: options,
|
|
71
|
+
onSelect: (item) => {
|
|
72
|
+
onSubmit(item.value);
|
|
73
|
+
exit();
|
|
74
|
+
}
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
64
77
|
}
|
|
65
|
-
function TextPrompt({ message, initialValue, onSubmit
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
function TextPrompt({ message, initialValue, onSubmit }) {
|
|
79
|
+
const [value, setValue] = useState(initialValue);
|
|
80
|
+
const { exit } = useApp();
|
|
81
|
+
useInput((_, key) => {
|
|
82
|
+
if (key.return) {
|
|
83
|
+
onSubmit(value.trim() || initialValue);
|
|
84
|
+
exit();
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
88
|
+
flexDirection: "column",
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ jsx(Text, { children: message }),
|
|
91
|
+
/* @__PURE__ */ jsx(TextInput, {
|
|
92
|
+
value,
|
|
93
|
+
onChange: setValue
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ jsx(Text, {
|
|
96
|
+
color: "gray",
|
|
97
|
+
children: "Press Enter to confirm."
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
});
|
|
75
101
|
}
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
export { InkPromptService };
|
|
76
105
|
//# sourceMappingURL=InkPromptService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InkPromptService.js","
|
|
1
|
+
{"version":3,"file":"InkPromptService.js","names":[],"sources":["../../src/prompts/InkPromptService.tsx"],"sourcesContent":["import { Box, render, Text, useApp, useInput } from 'ink';\nimport SelectInput from 'ink-select-input';\nimport TextInput from 'ink-text-input';\nimport isCI from 'is-ci';\nimport { useState } from 'react';\nimport type { PromptService, SelectOption } from './PromptService.js';\n\n// ---------------------------------------------------------------------------\n// InkPromptService — renders interactive prompts via Ink/React.\n//\n// Auto-detects non-interactive environments (no TTY or CI) and returns the\n// supplied fallback without ever rendering.\n// ---------------------------------------------------------------------------\n\nexport class InkPromptService implements PromptService {\n public constructor(private readonly isInteractive = Boolean(process.stdin.isTTY && process.stdout.isTTY) && !isCI) {}\n\n public async select(message: string, options: SelectOption[], fallbackValue: string): Promise<string> {\n if (!this.isInteractive) {\n return fallbackValue;\n }\n return await new Promise<string>((resolve) => {\n const app = render(<SelectPrompt message={message} options={options} onSubmit={(value) => resolve(value)} />);\n void Promise.resolve().then(() => app.waitUntilExit());\n });\n }\n\n public async text(message: string, initialValue: string): Promise<string> {\n if (!this.isInteractive) {\n return initialValue;\n }\n return await new Promise<string>((resolve) => {\n const app = render(\n <TextPrompt message={message} initialValue={initialValue} onSubmit={(value) => resolve(value)} />,\n );\n void Promise.resolve().then(() => app.waitUntilExit());\n });\n }\n\n public async secret(message: string): Promise<string> {\n if (!this.isInteractive) {\n throw new Error(`${message} requires an interactive terminal.`);\n }\n return await new Promise<string>((resolve) => {\n const app = render(<SecretPrompt message={message} onSubmit={(value) => resolve(value)} />);\n void Promise.resolve().then(() => app.waitUntilExit());\n });\n }\n}\n\nfunction SecretPrompt({ message, onSubmit }: { message: string; onSubmit: (value: string) => void }) {\n const [value, setValue] = useState('');\n const { exit } = useApp();\n\n useInput((_, key) => {\n if (key.return) {\n onSubmit(value.trim());\n exit();\n }\n });\n\n return (\n <Box flexDirection=\"column\">\n <Text>{message}</Text>\n <TextInput value={value} onChange={setValue} mask=\"*\" />\n </Box>\n );\n}\n\nfunction SelectPrompt({\n message,\n options,\n onSubmit,\n}: {\n message: string;\n options: SelectOption[];\n onSubmit: (value: string) => void;\n}) {\n const { exit } = useApp();\n return (\n <Box flexDirection=\"column\">\n <Text>{message}</Text>\n <SelectInput\n items={options}\n onSelect={(item) => {\n onSubmit(item.value);\n exit();\n }}\n />\n </Box>\n );\n}\n\nfunction TextPrompt({\n message,\n initialValue,\n onSubmit,\n}: {\n message: string;\n initialValue: string;\n onSubmit: (value: string) => void;\n}) {\n const [value, setValue] = useState(initialValue);\n const { exit } = useApp();\n\n useInput((_, key) => {\n if (key.return) {\n onSubmit(value.trim() || initialValue);\n exit();\n }\n });\n\n return (\n <Box flexDirection=\"column\">\n <Text>{message}</Text>\n <TextInput value={value} onChange={setValue} />\n <Text color=\"gray\">Press Enter to confirm.</Text>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;AAcA,IAAa,mBAAb,MAAuD;CACjB;CAApC,AAAO,YAAY,AAAiB,gBAAgB,QAAQ,QAAQ,MAAM,SAAS,QAAQ,OAAO,KAAK,KAAK,CAAC,MAAM;EAA/E;CAAgF;CAEpH,MAAa,OAAO,SAAiB,SAAyB,eAAwC;EACpG,IAAI,CAAC,KAAK,eACR,OAAO;EAET,OAAO,MAAM,IAAI,SAAiB,YAAY;GAC5C,MAAM,MAAM,OAAO,oBAAC,cAAD;IAAuB;IAAkB;IAAS,WAAW,UAAU,QAAQ,KAAK;GAAI,EAAC;GAC5G,AAAK,QAAQ,QAAQ,CAAC,CAAC,WAAW,IAAI,cAAc,CAAC;EACvD,CAAC;CACH;CAEA,MAAa,KAAK,SAAiB,cAAuC;EACxE,IAAI,CAAC,KAAK,eACR,OAAO;EAET,OAAO,MAAM,IAAI,SAAiB,YAAY;GAC5C,MAAM,MAAM,OACV,oBAAC,YAAD;IAAqB;IAAuB;IAAc,WAAW,UAAU,QAAQ,KAAK;GAAI,EAClG;GACA,AAAK,QAAQ,QAAQ,CAAC,CAAC,WAAW,IAAI,cAAc,CAAC;EACvD,CAAC;CACH;CAEA,MAAa,OAAO,SAAkC;EACpD,IAAI,CAAC,KAAK,eACR,MAAM,IAAI,MAAM,GAAG,QAAQ,mCAAmC;EAEhE,OAAO,MAAM,IAAI,SAAiB,YAAY;GAC5C,MAAM,MAAM,OAAO,oBAAC,cAAD;IAAuB;IAAS,WAAW,UAAU,QAAQ,KAAK;GAAI,EAAC;GAC1F,AAAK,QAAQ,QAAQ,CAAC,CAAC,WAAW,IAAI,cAAc,CAAC;EACvD,CAAC;CACH;AACF;AAEA,SAAS,aAAa,EAAE,SAAS,YAAoE;CACnG,MAAM,CAAC,OAAO,YAAY,SAAS,EAAE;CACrC,MAAM,EAAE,SAAS,OAAO;CAExB,UAAU,GAAG,QAAQ;EACnB,IAAI,IAAI,QAAQ;GACd,SAAS,MAAM,KAAK,CAAC;GACrB,KAAK;EACP;CACF,CAAC;CAED,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB,CACE,oBAAC,MAAD,YAAO,QAAc,IACrB,oBAAC,WAAD;GAAkB;GAAO,UAAU;GAAU,MAAK;EAAK,EACpD;;AAET;AAEA,SAAS,aAAa,EACpB,SACA,SACA,YAKC;CACD,MAAM,EAAE,SAAS,OAAO;CACxB,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB,CACE,oBAAC,MAAD,YAAO,QAAc,IACrB,oBAAC,aAAD;GACE,OAAO;GACP,WAAW,SAAS;IAClB,SAAS,KAAK,KAAK;IACnB,KAAK;GACP;EACD,EACE;;AAET;AAEA,SAAS,WAAW,EAClB,SACA,cACA,YAKC;CACD,MAAM,CAAC,OAAO,YAAY,SAAS,YAAY;CAC/C,MAAM,EAAE,SAAS,OAAO;CAExB,UAAU,GAAG,QAAQ;EACnB,IAAI,IAAI,QAAQ;GACd,SAAS,MAAM,KAAK,KAAK,YAAY;GACrC,KAAK;EACP;CACF,CAAC;CAED,OACE,qBAAC,KAAD;EAAK,eAAc;YAAnB;GACE,oBAAC,MAAD,YAAO,QAAc;GACrB,oBAAC,WAAD;IAAkB;IAAO,UAAU;GAAW;GAC9C,oBAAC,MAAD;IAAM,OAAM;cAAO;GAA6B;EAC7C;;AAET"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ManifestKind } from "@uapkg/package-manifest-schema";
|
|
2
|
+
//#region src/prompts/ProjectContextDetector.d.ts
|
|
3
|
+
interface ProjectContextDetection {
|
|
4
|
+
suggestedKind: ManifestKind;
|
|
5
|
+
suggestedName: string;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
declare class ProjectContextDetector {
|
|
8
|
+
detect(cwd: string): ProjectContextDetection;
|
|
9
|
+
private findFirstFileWithExtension;
|
|
9
10
|
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ProjectContextDetection, ProjectContextDetector };
|
|
10
13
|
//# sourceMappingURL=ProjectContextDetector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectContextDetector.d.ts","
|
|
1
|
+
{"version":3,"file":"ProjectContextDetector.d.ts","names":[],"sources":["../../src/prompts/ProjectContextDetector.ts"],"mappings":";;UAYiB;EACf,eAAe;EACf;;cAGW;EACJ,OAAO,cAAc;UAcpB"}
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import * as path$1 from "node:path";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
|
|
4
|
+
//#region src/prompts/ProjectContextDetector.ts
|
|
5
|
+
var ProjectContextDetector = class {
|
|
6
|
+
detect(cwd) {
|
|
7
|
+
const uplugin = this.findFirstFileWithExtension(cwd, ".uplugin");
|
|
8
|
+
if (uplugin) return {
|
|
9
|
+
suggestedKind: "plugin",
|
|
10
|
+
suggestedName: path$1.parse(uplugin).name
|
|
11
|
+
};
|
|
12
|
+
const uproject = this.findFirstFileWithExtension(cwd, ".uproject");
|
|
13
|
+
if (uproject) return {
|
|
14
|
+
suggestedKind: "project",
|
|
15
|
+
suggestedName: path$1.parse(uproject).name
|
|
16
|
+
};
|
|
17
|
+
return {
|
|
18
|
+
suggestedKind: "project",
|
|
19
|
+
suggestedName: path$1.basename(cwd)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
findFirstFileWithExtension(directory, extension) {
|
|
23
|
+
try {
|
|
24
|
+
return fs.readdirSync(directory).find((entry) => entry.toLowerCase().endsWith(extension))?.toString();
|
|
25
|
+
} catch {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { ProjectContextDetector };
|
|
27
33
|
//# sourceMappingURL=ProjectContextDetector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectContextDetector.js","
|
|
1
|
+
{"version":3,"file":"ProjectContextDetector.js","names":["path"],"sources":["../../src/prompts/ProjectContextDetector.ts"],"sourcesContent":["import fs from 'node:fs';\nimport * as path from 'node:path';\nimport type { ManifestKind } from '@uapkg/package-manifest-schema';\n\n// ---------------------------------------------------------------------------\n// ProjectContextDetector — sniffs the working directory for `.uproject` or\n// `.uplugin` files to suggest a sensible manifest kind + name during `init`.\n//\n// Pure I/O utility — no mutation, no throws. Failure to read the directory\n// falls back to a project-shaped suggestion using the directory basename.\n// ---------------------------------------------------------------------------\n\nexport interface ProjectContextDetection {\n suggestedKind: ManifestKind;\n suggestedName: string;\n}\n\nexport class ProjectContextDetector {\n public detect(cwd: string): ProjectContextDetection {\n const uplugin = this.findFirstFileWithExtension(cwd, '.uplugin');\n if (uplugin) {\n return { suggestedKind: 'plugin', suggestedName: path.parse(uplugin).name };\n }\n\n const uproject = this.findFirstFileWithExtension(cwd, '.uproject');\n if (uproject) {\n return { suggestedKind: 'project', suggestedName: path.parse(uproject).name };\n }\n\n return { suggestedKind: 'project', suggestedName: path.basename(cwd) };\n }\n\n private findFirstFileWithExtension(directory: string, extension: '.uplugin' | '.uproject'): string | undefined {\n try {\n return fs\n .readdirSync(directory)\n .find((entry) => entry.toLowerCase().endsWith(extension))\n ?.toString();\n } catch {\n return undefined;\n }\n }\n}\n"],"mappings":";;;;AAiBA,IAAa,yBAAb,MAAoC;CAClC,AAAO,OAAO,KAAsC;EAClD,MAAM,UAAU,KAAK,2BAA2B,KAAK,UAAU;EAC/D,IAAI,SACF,OAAO;GAAE,eAAe;GAAU,eAAeA,OAAK,MAAM,OAAO,CAAC,CAAC;EAAK;EAG5E,MAAM,WAAW,KAAK,2BAA2B,KAAK,WAAW;EACjE,IAAI,UACF,OAAO;GAAE,eAAe;GAAW,eAAeA,OAAK,MAAM,QAAQ,CAAC,CAAC;EAAK;EAG9E,OAAO;GAAE,eAAe;GAAW,eAAeA,OAAK,SAAS,GAAG;EAAE;CACvE;CAEA,AAAQ,2BAA2B,WAAmB,WAAyD;EAC7G,IAAI;GACF,OAAO,GACJ,YAAY,SAAS,CAAC,CACtB,MAAM,UAAU,MAAM,YAAY,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,EACvD,SAAS;EACf,QAAQ;GACN;EACF;CACF;AACF"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/prompts/PromptService.d.ts
|
|
2
|
+
interface SelectOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
interface PromptService {
|
|
7
|
+
select(message: string, options: SelectOption[], fallbackValue: string): Promise<string>;
|
|
8
|
+
text(message: string, initialValue: string): Promise<string>;
|
|
9
|
+
/** Read a value without echoing it. Never supplies a non-interactive fallback. */
|
|
10
|
+
secret(message: string): Promise<string>;
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { PromptService, SelectOption };
|
|
11
14
|
//# sourceMappingURL=PromptService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromptService.d.ts","
|
|
1
|
+
{"version":3,"file":"PromptService.d.ts","names":[],"sources":["../../src/prompts/PromptService.ts"],"mappings":";UAOiB;EACf;EACA;;UAGe;EACf,OAAO,iBAAiB,SAAS,gBAAgB,wBAAwB;EACzE,KAAK,iBAAiB,uBAAuB;;EAE7C,OAAO,kBAAkB"}
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// PromptService — abstraction used by interactive commands (e.g. `init`).
|
|
3
|
-
//
|
|
4
|
-
// Split from the Ink implementation so that test environments can substitute
|
|
5
|
-
// a non-interactive stub without pulling React/Ink into the test harness.
|
|
6
|
-
// ---------------------------------------------------------------------------
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=PromptService.js.map
|
|
1
|
+
export { };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Diagnostic } from "@uapkg/diagnostics";
|
|
2
|
+
//#region src/reporting/DiagnosticDeduplicator.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Suppresses diagnostics marked as `emitPolicy: "once"` across the current
|
|
4
5
|
* CLI process lifetime.
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
declare class DiagnosticDeduplicator {
|
|
8
|
+
private static readonly seen;
|
|
9
|
+
filter(diagnostics: readonly Diagnostic[]): Diagnostic[];
|
|
10
|
+
private fingerprintOf;
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DiagnosticDeduplicator };
|
|
11
14
|
//# sourceMappingURL=DiagnosticDeduplicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiagnosticDeduplicator.d.ts","
|
|
1
|
+
{"version":3,"file":"DiagnosticDeduplicator.d.ts","names":[],"sources":["../../src/reporting/DiagnosticDeduplicator.ts"],"mappings":";;;;;;cAMa;0BACa;EAEjB,OAAO,sBAAsB,eAAe;UAmB3C"}
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { createDiagnosticFingerprint } from
|
|
1
|
+
import { createDiagnosticFingerprint } from "@uapkg/diagnostics";
|
|
2
|
+
|
|
3
|
+
//#region src/reporting/DiagnosticDeduplicator.ts
|
|
2
4
|
/**
|
|
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
|
-
}
|
|
5
|
+
* Suppresses diagnostics marked as `emitPolicy: "once"` across the current
|
|
6
|
+
* CLI process lifetime.
|
|
7
|
+
*/
|
|
8
|
+
var DiagnosticDeduplicator = class DiagnosticDeduplicator {
|
|
9
|
+
static seen = /* @__PURE__ */ new Set();
|
|
10
|
+
filter(diagnostics) {
|
|
11
|
+
const out = [];
|
|
12
|
+
for (const diagnostic of diagnostics) {
|
|
13
|
+
if (diagnostic.emitPolicy !== "once") {
|
|
14
|
+
out.push(diagnostic);
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
const fingerprint = this.fingerprintOf(diagnostic);
|
|
18
|
+
if (DiagnosticDeduplicator.seen.has(fingerprint)) continue;
|
|
19
|
+
DiagnosticDeduplicator.seen.add(fingerprint);
|
|
20
|
+
out.push(diagnostic);
|
|
21
|
+
}
|
|
22
|
+
return out;
|
|
23
|
+
}
|
|
24
|
+
fingerprintOf(diagnostic) {
|
|
25
|
+
if (diagnostic.emitFingerprint && diagnostic.emitFingerprint.trim().length > 0) return diagnostic.emitFingerprint;
|
|
26
|
+
return createDiagnosticFingerprint({
|
|
27
|
+
level: diagnostic.level,
|
|
28
|
+
code: diagnostic.code,
|
|
29
|
+
message: diagnostic.message,
|
|
30
|
+
hint: diagnostic.hint,
|
|
31
|
+
data: diagnostic.data
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { DiagnosticDeduplicator };
|
|
37
38
|
//# sourceMappingURL=DiagnosticDeduplicator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiagnosticDeduplicator.js","
|
|
1
|
+
{"version":3,"file":"DiagnosticDeduplicator.js","names":[],"sources":["../../src/reporting/DiagnosticDeduplicator.ts"],"sourcesContent":["import { createDiagnosticFingerprint, type Diagnostic } from '@uapkg/diagnostics';\n\n/**\n * Suppresses diagnostics marked as `emitPolicy: \"once\"` across the current\n * CLI process lifetime.\n */\nexport class DiagnosticDeduplicator {\n private static readonly seen = new Set<string>();\n\n public filter(diagnostics: readonly Diagnostic[]): Diagnostic[] {\n const out: Diagnostic[] = [];\n for (const diagnostic of diagnostics) {\n if (diagnostic.emitPolicy !== 'once') {\n out.push(diagnostic);\n continue;\n }\n\n const fingerprint = this.fingerprintOf(diagnostic);\n if (DiagnosticDeduplicator.seen.has(fingerprint)) {\n continue;\n }\n\n DiagnosticDeduplicator.seen.add(fingerprint);\n out.push(diagnostic);\n }\n return out;\n }\n\n private fingerprintOf(diagnostic: Diagnostic): string {\n if (diagnostic.emitFingerprint && diagnostic.emitFingerprint.trim().length > 0) {\n return diagnostic.emitFingerprint;\n }\n\n return createDiagnosticFingerprint({\n level: diagnostic.level,\n code: diagnostic.code,\n message: diagnostic.message,\n hint: diagnostic.hint,\n data: diagnostic.data,\n });\n }\n}\n"],"mappings":";;;;;;;AAMA,IAAa,yBAAb,MAAa,uBAAuB;CAClC,OAAwB,uBAAO,IAAI,IAAY;CAE/C,AAAO,OAAO,aAAkD;EAC9D,MAAM,MAAoB,CAAC;EAC3B,KAAK,MAAM,cAAc,aAAa;GACpC,IAAI,WAAW,eAAe,QAAQ;IACpC,IAAI,KAAK,UAAU;IACnB;GACF;GAEA,MAAM,cAAc,KAAK,cAAc,UAAU;GACjD,IAAI,uBAAuB,KAAK,IAAI,WAAW,GAC7C;GAGF,uBAAuB,KAAK,IAAI,WAAW;GAC3C,IAAI,KAAK,UAAU;EACrB;EACA,OAAO;CACT;CAEA,AAAQ,cAAc,YAAgC;EACpD,IAAI,WAAW,mBAAmB,WAAW,gBAAgB,KAAK,CAAC,CAAC,SAAS,GAC3E,OAAO,WAAW;EAGpB,OAAO,4BAA4B;GACjC,OAAO,WAAW;GAClB,MAAM,WAAW;GACjB,SAAS,WAAW;GACpB,MAAM,WAAW;GACjB,MAAM,WAAW;EACnB,CAAC;CACH;AACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Diagnostic } from "@uapkg/diagnostics";
|
|
2
|
+
//#region src/reporting/DiagnosticRenderer.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Strategy for turning a batch of diagnostics at a single severity stream
|
|
4
5
|
* into user-facing output. Implementations decide how (Ink, plain text) and
|
|
@@ -7,12 +8,14 @@ import type { Diagnostic } from '@uapkg/diagnostics';
|
|
|
7
8
|
* Kept as a tiny interface so `DiagnosticReporter` stays ignorant of Ink
|
|
8
9
|
* and so tests can inject a capturing fake without bringing up React.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
interface DiagnosticRenderer {
|
|
12
|
+
/**
|
|
13
|
+
* Render a list of diagnostics targeted at the given logical stream.
|
|
14
|
+
* Implementations must never throw — swallow any internal rendering
|
|
15
|
+
* failure and fall back to a safe text path.
|
|
16
|
+
*/
|
|
17
|
+
render(diagnostics: readonly Diagnostic[], stream: 'stdout' | 'stderr'): void;
|
|
17
18
|
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { DiagnosticRenderer };
|
|
18
21
|
//# sourceMappingURL=DiagnosticRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiagnosticRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"DiagnosticRenderer.d.ts","names":[],"sources":["../../src/reporting/DiagnosticRenderer.ts"],"mappings":";;;;;;;;;;UAUiB;;;;;;EAMf,OAAO,sBAAsB,cAAc"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=DiagnosticRenderer.js.map
|
|
1
|
+
export { };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { DiagnosticDeduplicator } from "./DiagnosticDeduplicator.js";
|
|
2
|
+
import { DiagnosticRenderer } from "./DiagnosticRenderer.js";
|
|
3
|
+
import { Diagnostic } from "@uapkg/diagnostics";
|
|
4
|
+
//#region src/reporting/DiagnosticReporter.d.ts
|
|
4
5
|
/**
|
|
5
6
|
* Human-readable diagnostic reporter.
|
|
6
7
|
*
|
|
@@ -13,11 +14,13 @@ import type { DiagnosticRenderer } from './DiagnosticRenderer.js';
|
|
|
13
14
|
*
|
|
14
15
|
* One instance is safe to reuse across commands in a single CLI run.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
declare class DiagnosticReporter {
|
|
18
|
+
private readonly renderer;
|
|
19
|
+
private readonly deduplicator;
|
|
20
|
+
constructor(renderer?: DiagnosticRenderer, deduplicator?: DiagnosticDeduplicator);
|
|
21
|
+
reportAll(diagnostics: readonly Diagnostic[]): void;
|
|
22
|
+
reportOne(diagnostic: Diagnostic): void;
|
|
22
23
|
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { DiagnosticReporter };
|
|
23
26
|
//# sourceMappingURL=DiagnosticReporter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiagnosticReporter.d.ts","
|
|
1
|
+
{"version":3,"file":"DiagnosticReporter.d.ts","names":[],"sources":["../../src/reporting/DiagnosticReporter.ts"],"mappings":";;;;;;;;;;;;;;;;cAkBa;mBAEQ;mBACA;EAFnB,YACmB,WAAU,oBACV,eAAc;EAG1B,UAAU,sBAAsB;EAWhC,UAAU,YAAY"}
|