@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkerIntegrityValidator.js","
|
|
1
|
+
{"version":3,"file":"MarkerIntegrityValidator.js","names":[],"sources":["../../../src/postinstall/markers/MarkerIntegrityValidator.ts"],"sourcesContent":["/**\n * Detects corruption in uapkg marker blocks for a single `(pluginName, zone)`\n * owning pair. Corruption rules (scoped to the owning pair — foreign plugins'\n * blocks are ignored on purpose):\n *\n * 1. `UAPKG-BEGIN X:Z` with no matching `UAPKG-END X:Z` after it\n * → `orphaned-begin`.\n * 2. `UAPKG-END X:Z` with no preceding `UAPKG-BEGIN X:Z`\n * → `orphaned-end`.\n * 3. Two `UAPKG-BEGIN X:Z` before any `UAPKG-END X:Z`\n * → `nested-begin`.\n *\n * The validator is a pure function — no I/O, no mutation, no exceptions. It\n * returns the first violation encountered so callers can surface exactly one\n * diagnostic per file.\n */\nexport interface MarkerIntegrityOk {\n readonly ok: true;\n}\n\nexport interface MarkerIntegrityFail {\n readonly ok: false;\n readonly reason: string;\n readonly line: number;\n}\n\nexport type MarkerIntegrityResult = MarkerIntegrityOk | MarkerIntegrityFail;\n\nexport class MarkerIntegrityValidator {\n public validate(source: string, pluginName: string, zone: string): MarkerIntegrityResult {\n const beginToken = `UAPKG-BEGIN ${pluginName}:${zone}`;\n const endToken = `UAPKG-END ${pluginName}:${zone}`;\n const lines = source.split(/\\r?\\n/);\n\n let depth = 0;\n let lastBeginLine = -1;\n\n for (let i = 0; i < lines.length; i += 1) {\n const line = lines[i];\n const hasBegin = line.includes(beginToken);\n const hasEnd = line.includes(endToken);\n\n if (hasBegin && hasEnd) {\n // Same-line BEGIN+END is not a shape we emit; treat as malformed.\n return {\n ok: false,\n reason: `BEGIN and END on same line at line ${i + 1}`,\n line: i + 1,\n };\n }\n\n if (hasBegin) {\n if (depth >= 1) {\n return {\n ok: false,\n reason: `nested BEGIN at line ${i + 1} (previous BEGIN at line ${lastBeginLine + 1} was not closed)`,\n line: i + 1,\n };\n }\n depth += 1;\n lastBeginLine = i;\n continue;\n }\n\n if (hasEnd) {\n if (depth === 0) {\n return {\n ok: false,\n reason: `orphaned END at line ${i + 1} (no preceding BEGIN)`,\n line: i + 1,\n };\n }\n depth -= 1;\n }\n }\n\n if (depth > 0) {\n return {\n ok: false,\n reason: `orphaned BEGIN at line ${lastBeginLine + 1} (missing END)`,\n line: lastBeginLine + 1,\n };\n }\n\n return { ok: true };\n }\n}\n"],"mappings":";AA4BA,IAAa,2BAAb,MAAsC;CACpC,AAAO,SAAS,QAAgB,YAAoB,MAAqC;EACvF,MAAM,aAAa,eAAe,WAAW,GAAG;EAChD,MAAM,WAAW,aAAa,WAAW,GAAG;EAC5C,MAAM,QAAQ,OAAO,MAAM,OAAO;EAElC,IAAI,QAAQ;EACZ,IAAI,gBAAgB;EAEpB,KAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK,GAAG;GACxC,MAAM,OAAO,MAAM;GACnB,MAAM,WAAW,KAAK,SAAS,UAAU;GACzC,MAAM,SAAS,KAAK,SAAS,QAAQ;GAErC,IAAI,YAAY,QAEd,OAAO;IACL,IAAI;IACJ,QAAQ,sCAAsC,IAAI;IAClD,MAAM,IAAI;GACZ;GAGF,IAAI,UAAU;IACZ,IAAI,SAAS,GACX,OAAO;KACL,IAAI;KACJ,QAAQ,wBAAwB,IAAI,EAAE,2BAA2B,gBAAgB,EAAE;KACnF,MAAM,IAAI;IACZ;IAEF,SAAS;IACT,gBAAgB;IAChB;GACF;GAEA,IAAI,QAAQ;IACV,IAAI,UAAU,GACZ,OAAO;KACL,IAAI;KACJ,QAAQ,wBAAwB,IAAI,EAAE;KACtC,MAAM,IAAI;IACZ;IAEF,SAAS;GACX;EACF;EAEA,IAAI,QAAQ,GACV,OAAO;GACL,IAAI;GACJ,QAAQ,0BAA0B,gBAAgB,EAAE;GACpD,MAAM,gBAAgB;EACxB;EAGF,OAAO,EAAE,IAAI,KAAK;CACpB;AACF"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ConfigInstance, PostInstallPolicyResolver, PostInstallPolicyValue, ResolvedConfig } from "@uapkg/config";
|
|
2
|
+
import { PostinstallPolicyDeniedDiagnostic } from "@uapkg/diagnostics";
|
|
3
|
+
//#region src/postinstall/policy/PostinstallPolicyGate.d.ts
|
|
3
4
|
/** Minimal config reader surface; defaults to the singleton `@uapkg/config`. */
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
interface PolicyConfigReader {
|
|
6
|
+
getAll(): ResolvedConfig | Record<string, unknown> | null;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
interface PolicyDecision {
|
|
9
|
+
/** Whether the policy allows running a plugin's postinstall. */
|
|
10
|
+
readonly allowed: boolean;
|
|
11
|
+
/** The effective policy value ("allow"/"deny"). */
|
|
12
|
+
readonly policy: PostInstallPolicyValue;
|
|
13
|
+
/** Where the value was read from. */
|
|
14
|
+
readonly resolvedFrom: 'registry' | 'install';
|
|
15
|
+
/**
|
|
16
|
+
* Populated only when `allowed === false`. Callers attach this to their
|
|
17
|
+
* diagnostic bag and continue with other plugins (skipping is non-fatal).
|
|
18
|
+
*/
|
|
19
|
+
readonly denialDiagnostic?: PostinstallPolicyDeniedDiagnostic;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Consults {@link PostInstallPolicyResolver} to decide whether a given plugin's
|
|
@@ -25,12 +26,13 @@ export interface PolicyDecision {
|
|
|
25
26
|
* This class is a thin glue layer so the orchestrator stays free of config
|
|
26
27
|
* vocabulary.
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
declare class PostinstallPolicyGate {
|
|
30
|
+
private readonly reader;
|
|
31
|
+
private readonly resolver;
|
|
32
|
+
constructor(reader?: PolicyConfigReader, resolver?: PostInstallPolicyResolver);
|
|
33
|
+
evaluate(packageName: string, registryName: string): PolicyDecision;
|
|
34
|
+
private readResolved;
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
+
//#endregion
|
|
37
|
+
export { type ConfigInstance, PolicyConfigReader, PolicyDecision, PostinstallPolicyGate };
|
|
36
38
|
//# sourceMappingURL=PostinstallPolicyGate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostinstallPolicyGate.d.ts","
|
|
1
|
+
{"version":3,"file":"PostinstallPolicyGate.d.ts","names":[],"sources":["../../../src/postinstall/policy/PostinstallPolicyGate.ts"],"mappings":";;;;UASiB;EACf,UAAU,iBAAiB;;UAGZ;;WAEN;;WAEA,QAAQ;;WAER;;;;;WAKA,mBAAmB;;;;;;;;;;cAWjB;mBAEQ;mBACA;EAFnB,YACmB,SAAQ,oBACR,WAAU;EAGtB,SAAS,qBAAqB,uBAAuB;UAcpD"}
|
|
@@ -1,57 +1,68 @@
|
|
|
1
|
-
import Config, { PostInstallPolicyResolver
|
|
2
|
-
import { createPostinstallPolicyDeniedDiagnostic } from
|
|
1
|
+
import Config, { PostInstallPolicyResolver } from "@uapkg/config";
|
|
2
|
+
import { createPostinstallPolicyDeniedDiagnostic } from "@uapkg/diagnostics";
|
|
3
|
+
|
|
4
|
+
//#region src/postinstall/policy/PostinstallPolicyGate.ts
|
|
3
5
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
6
|
+
* Consults {@link PostInstallPolicyResolver} to decide whether a given plugin's
|
|
7
|
+
* postinstall script should run. The resolver honors per-registry overrides
|
|
8
|
+
* and falls back to the global `install.postInstallPolicy` default (`deny`).
|
|
9
|
+
*
|
|
10
|
+
* This class is a thin glue layer so the orchestrator stays free of config
|
|
11
|
+
* vocabulary.
|
|
12
|
+
*/
|
|
13
|
+
var PostinstallPolicyGate = class {
|
|
14
|
+
reader;
|
|
15
|
+
resolver;
|
|
16
|
+
constructor(reader = Config, resolver = new PostInstallPolicyResolver()) {
|
|
17
|
+
this.reader = reader;
|
|
18
|
+
this.resolver = resolver;
|
|
19
|
+
}
|
|
20
|
+
evaluate(packageName, registryName) {
|
|
21
|
+
const resolved = this.readResolved();
|
|
22
|
+
const { policy, resolvedFrom } = this.resolver.resolve(resolved, registryName);
|
|
23
|
+
if (policy === "allow") return {
|
|
24
|
+
allowed: true,
|
|
25
|
+
policy,
|
|
26
|
+
resolvedFrom
|
|
27
|
+
};
|
|
28
|
+
return {
|
|
29
|
+
allowed: false,
|
|
30
|
+
policy,
|
|
31
|
+
resolvedFrom,
|
|
32
|
+
denialDiagnostic: createPostinstallPolicyDeniedDiagnostic(packageName, registryName, policy, resolvedFrom)
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
readResolved() {
|
|
36
|
+
const value = this.reader.getAll();
|
|
37
|
+
if (!value || typeof value !== "object" || !("install" in value)) return FALLBACK_RESOLVED_CONFIG;
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
40
41
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
* Construct-or-else fallback: never used with the real `@uapkg/config`
|
|
43
|
+
* singleton (which always produces a `ResolvedConfig`), but shields the gate
|
|
44
|
+
* from arbitrary callers that might pass a partial config.
|
|
45
|
+
*/
|
|
45
46
|
const FALLBACK_RESOLVED_CONFIG = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
registry: "",
|
|
48
|
+
registries: {},
|
|
49
|
+
git: "git",
|
|
50
|
+
editor: "",
|
|
51
|
+
exec: { shell: "" },
|
|
52
|
+
cache: { enabled: true },
|
|
53
|
+
registryCache: { ttlSeconds: 0 },
|
|
54
|
+
network: {
|
|
55
|
+
retries: 0,
|
|
56
|
+
timeout: 0,
|
|
57
|
+
maxConcurrentDownloads: 1
|
|
58
|
+
},
|
|
59
|
+
install: { postInstallPolicy: "deny" },
|
|
60
|
+
term: {
|
|
61
|
+
quiet: false,
|
|
62
|
+
verbose: false
|
|
63
|
+
}
|
|
56
64
|
};
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { PostinstallPolicyGate };
|
|
57
68
|
//# sourceMappingURL=PostinstallPolicyGate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostinstallPolicyGate.js","
|
|
1
|
+
{"version":3,"file":"PostinstallPolicyGate.js","names":[],"sources":["../../../src/postinstall/policy/PostinstallPolicyGate.ts"],"sourcesContent":["import Config, {\n type ConfigInstance,\n PostInstallPolicyResolver,\n type PostInstallPolicyValue,\n type ResolvedConfig,\n} from '@uapkg/config';\nimport { createPostinstallPolicyDeniedDiagnostic, type PostinstallPolicyDeniedDiagnostic } from '@uapkg/diagnostics';\n\n/** Minimal config reader surface; defaults to the singleton `@uapkg/config`. */\nexport interface PolicyConfigReader {\n getAll(): ResolvedConfig | Record<string, unknown> | null;\n}\n\nexport interface PolicyDecision {\n /** Whether the policy allows running a plugin's postinstall. */\n readonly allowed: boolean;\n /** The effective policy value (\"allow\"/\"deny\"). */\n readonly policy: PostInstallPolicyValue;\n /** Where the value was read from. */\n readonly resolvedFrom: 'registry' | 'install';\n /**\n * Populated only when `allowed === false`. Callers attach this to their\n * diagnostic bag and continue with other plugins (skipping is non-fatal).\n */\n readonly denialDiagnostic?: PostinstallPolicyDeniedDiagnostic;\n}\n\n/**\n * Consults {@link PostInstallPolicyResolver} to decide whether a given plugin's\n * postinstall script should run. The resolver honors per-registry overrides\n * and falls back to the global `install.postInstallPolicy` default (`deny`).\n *\n * This class is a thin glue layer so the orchestrator stays free of config\n * vocabulary.\n */\nexport class PostinstallPolicyGate {\n public constructor(\n private readonly reader: PolicyConfigReader = Config as unknown as PolicyConfigReader,\n private readonly resolver: PostInstallPolicyResolver = new PostInstallPolicyResolver(),\n ) {}\n\n public evaluate(packageName: string, registryName: string): PolicyDecision {\n const resolved = this.readResolved();\n const { policy, resolvedFrom } = this.resolver.resolve(resolved, registryName);\n if (policy === 'allow') {\n return { allowed: true, policy, resolvedFrom };\n }\n return {\n allowed: false,\n policy,\n resolvedFrom,\n denialDiagnostic: createPostinstallPolicyDeniedDiagnostic(packageName, registryName, policy, resolvedFrom),\n };\n }\n\n private readResolved(): ResolvedConfig {\n const value = this.reader.getAll();\n if (!value || typeof value !== 'object' || !('install' in value)) {\n // Defensive: if the caller passed an unresolved config, fall back to deny.\n return FALLBACK_RESOLVED_CONFIG;\n }\n return value as ResolvedConfig;\n }\n}\n\n/**\n * Construct-or-else fallback: never used with the real `@uapkg/config`\n * singleton (which always produces a `ResolvedConfig`), but shields the gate\n * from arbitrary callers that might pass a partial config.\n */\nconst FALLBACK_RESOLVED_CONFIG: ResolvedConfig = {\n registry: '',\n registries: {},\n git: 'git',\n editor: '',\n exec: { shell: '' },\n cache: { enabled: true },\n registryCache: { ttlSeconds: 0 },\n network: { retries: 0, timeout: 0, maxConcurrentDownloads: 1 },\n install: { postInstallPolicy: 'deny' },\n term: { quiet: false, verbose: false },\n};\n\nexport type { ConfigInstance };\n"],"mappings":";;;;;;;;;;;;AAmCA,IAAa,wBAAb,MAAmC;CAEd;CACA;CAFnB,AAAO,YACL,AAAiB,SAA6B,QAC9C,AAAiB,WAAsC,IAAI,0BAA0B,GACrF;EAFiB;EACA;CAChB;CAEH,AAAO,SAAS,aAAqB,cAAsC;EACzE,MAAM,WAAW,KAAK,aAAa;EACnC,MAAM,EAAE,QAAQ,iBAAiB,KAAK,SAAS,QAAQ,UAAU,YAAY;EAC7E,IAAI,WAAW,SACb,OAAO;GAAE,SAAS;GAAM;GAAQ;EAAa;EAE/C,OAAO;GACL,SAAS;GACT;GACA;GACA,kBAAkB,wCAAwC,aAAa,cAAc,QAAQ,YAAY;EAC3G;CACF;CAEA,AAAQ,eAA+B;EACrC,MAAM,QAAQ,KAAK,OAAO,OAAO;EACjC,IAAI,CAAC,SAAS,OAAO,UAAU,YAAY,EAAE,aAAa,QAExD,OAAO;EAET,OAAO;CACT;AACF;;;;;;AAOA,MAAM,2BAA2C;CAC/C,UAAU;CACV,YAAY,CAAC;CACb,KAAK;CACL,QAAQ;CACR,MAAM,EAAE,OAAO,GAAG;CAClB,OAAO,EAAE,SAAS,KAAK;CACvB,eAAe,EAAE,YAAY,EAAE;CAC/B,SAAS;EAAE,SAAS;EAAG,SAAS;EAAG,wBAAwB;CAAE;CAC7D,SAAS,EAAE,mBAAmB,OAAO;CACrC,MAAM;EAAE,OAAO;EAAO,SAAS;CAAM;AACvC"}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { PostinstallLoader } from "../loader/PostinstallLoader.js";
|
|
2
|
+
import { PostinstallPolicyGate } from "../policy/PostinstallPolicyGate.js";
|
|
3
|
+
import { BuildCsInjector } from "../unreal/BuildCsInjector.js";
|
|
4
|
+
import { ProjectFileLocator } from "../unreal/ProjectFileLocator.js";
|
|
5
|
+
import { TargetCsInjector } from "../unreal/TargetCsInjector.js";
|
|
6
|
+
import { UnrealSourceCatalogBuilder } from "../unreal/UnrealSourceCatalog.js";
|
|
7
|
+
import { UProjectInjector } from "../unreal/UProjectInjector.js";
|
|
8
|
+
import { UProjectMetadataReader } from "../unreal/UProjectMetadataReader.js";
|
|
9
|
+
import { Result } from "@uapkg/diagnostics";
|
|
10
|
+
//#region src/postinstall/runner/PostinstallOrchestrator.d.ts
|
|
10
11
|
/**
|
|
11
12
|
* Projection of an installer action that the orchestrator needs. The CLI
|
|
12
13
|
* (Phase 8) will map `InstallAction` → `PostinstallCandidate` by filtering
|
|
13
14
|
* `type === 'add' | 'update'` and joining with the lockfile for registry
|
|
14
15
|
* metadata.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
interface PostinstallCandidate {
|
|
18
|
+
readonly packageName: string;
|
|
19
|
+
readonly registry: string;
|
|
20
|
+
/** Absolute path to the installed plugin root. */
|
|
21
|
+
readonly pluginRoot: string;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
interface PostinstallReport {
|
|
24
|
+
readonly executed: readonly string[];
|
|
25
|
+
readonly skipped: readonly {
|
|
26
|
+
packageName: string;
|
|
27
|
+
reason: 'no-script' | 'policy-denied';
|
|
28
|
+
}[];
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
interface PostinstallOrchestratorInput {
|
|
31
|
+
readonly projectRoot: string;
|
|
32
|
+
readonly manifestType: 'project' | 'plugin';
|
|
33
|
+
readonly candidates: readonly PostinstallCandidate[];
|
|
34
|
+
/**
|
|
35
|
+
* Optional explicit module-name list (from `postinstall.modules` in the
|
|
36
|
+
* project manifest). When provided, overrides the names discovered from
|
|
37
|
+
* `.uproject`'s `Modules[]`. An empty array = override to "no modules".
|
|
38
|
+
*/
|
|
39
|
+
readonly moduleNameOverride?: readonly string[];
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
42
|
* Top-level postinstall flow:
|
|
@@ -52,20 +53,22 @@ export interface PostinstallOrchestratorInput {
|
|
|
52
53
|
* Always returns a {@link Result}; never throws. The caller inspects
|
|
53
54
|
* `diagnostics` to render errors/warnings/info lines.
|
|
54
55
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
declare class PostinstallOrchestrator {
|
|
57
|
+
private readonly loader;
|
|
58
|
+
private readonly policy;
|
|
59
|
+
private readonly catalogBuilder;
|
|
60
|
+
private readonly buildInjector;
|
|
61
|
+
private readonly targetInjector;
|
|
62
|
+
private readonly projectInjector;
|
|
63
|
+
private readonly projectFileLocator;
|
|
64
|
+
private readonly uprojectReader;
|
|
65
|
+
constructor(loader?: PostinstallLoader, policy?: PostinstallPolicyGate, catalogBuilder?: UnrealSourceCatalogBuilder, buildInjector?: BuildCsInjector, targetInjector?: TargetCsInjector, projectInjector?: UProjectInjector, projectFileLocator?: ProjectFileLocator, uprojectReader?: UProjectMetadataReader);
|
|
66
|
+
run(input: PostinstallOrchestratorInput): Promise<Result<PostinstallReport>>;
|
|
67
|
+
private buildPlan;
|
|
68
|
+
private buildCatalog;
|
|
69
|
+
private applyScript;
|
|
70
|
+
private absorb;
|
|
70
71
|
}
|
|
72
|
+
//#endregion
|
|
73
|
+
export { PostinstallCandidate, PostinstallOrchestrator, PostinstallOrchestratorInput, PostinstallReport };
|
|
71
74
|
//# sourceMappingURL=PostinstallOrchestrator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostinstallOrchestrator.d.ts","
|
|
1
|
+
{"version":3,"file":"PostinstallOrchestrator.d.ts","names":[],"sources":["../../../src/postinstall/runner/PostinstallOrchestrator.ts"],"mappings":";;;;;;;;;;;;;;;;UAkBiB;WACN;WACA;;WAEA;;UAGM;WACN;WACA;IAAoB;IAAqB;;;UAGnC;WACN;WACA;WACA,qBAAqB;;;;;;WAMrB;;;;;;;;;;;;;;;;;cAkBE;mBAEQ;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;EARnB,YACmB,SAAQ,mBACR,SAAQ,uBACR,iBAAgB,4BAChB,gBAAe,iBACf,iBAAgB,kBAChB,kBAAiB,kBACjB,qBAAoB,oBACpB,iBAAgB;EAGtB,IAAI,OAAO,+BAA+B,QAAQ,OAAO;UA+BxD;UAyBN;UAmCA;UAsDA"}
|