@uapkg/cli 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/CompositionRoot.d.ts +36 -33
- package/dist/app/CompositionRoot.d.ts.map +1 -1
- package/dist/app/CompositionRoot.js +91 -109
- package/dist/app/CompositionRoot.js.map +1 -1
- package/dist/app/UAPKGApplication.d.ts +6 -3
- package/dist/app/UAPKGApplication.d.ts.map +1 -1
- package/dist/app/UAPKGApplication.js +155 -169
- package/dist/app/UAPKGApplication.js.map +1 -1
- package/dist/build/BuildMetadata.d.ts +9 -6
- package/dist/build/BuildMetadata.d.ts.map +1 -1
- package/dist/build/BuildMetadata.js +2 -2
- package/dist/cli/UAPKGCommandLine.d.ts +259 -257
- package/dist/cli/UAPKGCommandLine.d.ts.map +1 -1
- package/dist/cli/UAPKGCommandLine.js +248 -239
- package/dist/cli/UAPKGCommandLine.js.map +1 -1
- package/dist/cli/parseCommandLine.d.ts +5 -1
- package/dist/cli/parseCommandLine.d.ts.map +1 -1
- package/dist/cli/parseCommandLine.js +8 -3
- package/dist/cli/parseCommandLine.js.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts +9 -6
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.js +23 -31
- package/dist/cli/parsing/UAPKGCommandLineParser.js.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts +12 -9
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.js +53 -50
- package/dist/cli/parsing/UAPKGParserRegistry.js.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts +9 -6
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js +1 -2
- package/dist/cli/parsing/modules/AddCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/AddCommandModule.js +49 -36
- package/dist/cli/parsing/modules/AddCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.js +87 -83
- package/dist/cli/parsing/modules/ConfigCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.js +25 -22
- package/dist/cli/parsing/modules/InitCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.js +36 -28
- package/dist/cli/parsing/modules/InstallCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.js +78 -50
- package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.js +26 -15
- package/dist/cli/parsing/modules/ListCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.js +34 -33
- package/dist/cli/parsing/modules/LoginCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.js +30 -28
- package/dist/cli/parsing/modules/LogoutCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.js +21 -16
- package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.js +30 -28
- package/dist/cli/parsing/modules/PackCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +14 -11
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.js +63 -47
- package/dist/cli/parsing/modules/PublishCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.js +117 -120
- package/dist/cli/parsing/modules/RegistryCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.js +25 -14
- package/dist/cli/parsing/modules/RemoveCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.js +56 -60
- package/dist/cli/parsing/modules/RequestsCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.js +38 -25
- package/dist/cli/parsing/modules/UpdateCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.js +30 -28
- package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.js +25 -14
- package/dist/cli/parsing/modules/WhyCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.d.ts +8 -5
- package/dist/cli/parsing/modules/sharedOptions.d.ts.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.js +18 -23
- package/dist/cli/parsing/modules/sharedOptions.js.map +1 -1
- package/dist/cli/runUAPKGCLI.d.ts +4 -1
- package/dist/cli/runUAPKGCLI.d.ts.map +1 -1
- package/dist/cli/runUAPKGCLI.js +10 -5
- package/dist/cli/runUAPKGCLI.js.map +1 -1
- package/dist/cli-bootstrap.d.ts +1 -2
- package/dist/cli-bootstrap.js +15 -12
- package/dist/cli-bootstrap.js.map +1 -1
- package/dist/commands/AddCommand.d.ts +19 -16
- package/dist/commands/AddCommand.d.ts.map +1 -1
- package/dist/commands/AddCommand.js +49 -53
- package/dist/commands/AddCommand.js.map +1 -1
- package/dist/commands/Command.d.ts +5 -2
- package/dist/commands/Command.d.ts.map +1 -1
- package/dist/commands/Command.js +1 -2
- package/dist/commands/ConfigCommand.d.ts +28 -25
- package/dist/commands/ConfigCommand.d.ts.map +1 -1
- package/dist/commands/ConfigCommand.js +165 -186
- package/dist/commands/ConfigCommand.js.map +1 -1
- package/dist/commands/InitCommand.d.ts +19 -16
- package/dist/commands/InitCommand.d.ts.map +1 -1
- package/dist/commands/InitCommand.js +65 -60
- package/dist/commands/InitCommand.js.map +1 -1
- package/dist/commands/InstallCommand.d.ts +16 -13
- package/dist/commands/InstallCommand.d.ts.map +1 -1
- package/dist/commands/InstallCommand.js +118 -110
- package/dist/commands/InstallCommand.js.map +1 -1
- package/dist/commands/ListCommand.d.ts +13 -10
- package/dist/commands/ListCommand.d.ts.map +1 -1
- package/dist/commands/ListCommand.js +76 -81
- package/dist/commands/ListCommand.js.map +1 -1
- package/dist/commands/LoginCommand.d.ts +17 -14
- package/dist/commands/LoginCommand.d.ts.map +1 -1
- package/dist/commands/LoginCommand.js +66 -72
- package/dist/commands/LoginCommand.js.map +1 -1
- package/dist/commands/LogoutCommand.d.ts +15 -12
- package/dist/commands/LogoutCommand.d.ts.map +1 -1
- package/dist/commands/LogoutCommand.js +36 -37
- package/dist/commands/LogoutCommand.js.map +1 -1
- package/dist/commands/OutdatedCommand.d.ts +12 -9
- package/dist/commands/OutdatedCommand.d.ts.map +1 -1
- package/dist/commands/OutdatedCommand.js +41 -40
- package/dist/commands/OutdatedCommand.js.map +1 -1
- package/dist/commands/PackCommand.d.ts +13 -10
- package/dist/commands/PackCommand.d.ts.map +1 -1
- package/dist/commands/PackCommand.js +26 -21
- package/dist/commands/PackCommand.js.map +1 -1
- package/dist/commands/PackageLifecycleCommand.d.ts +23 -19
- package/dist/commands/PackageLifecycleCommand.d.ts.map +1 -1
- package/dist/commands/PackageLifecycleCommand.js +144 -138
- package/dist/commands/PackageLifecycleCommand.js.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.d.ts +11 -8
- package/dist/commands/PostinstallCandidateBuilder.d.ts.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.js +42 -42
- package/dist/commands/PostinstallCandidateBuilder.js.map +1 -1
- package/dist/commands/ProjectGetNameCommand.d.ts +10 -7
- package/dist/commands/ProjectGetNameCommand.d.ts.map +1 -1
- package/dist/commands/ProjectGetNameCommand.js +25 -25
- package/dist/commands/ProjectGetNameCommand.js.map +1 -1
- package/dist/commands/PublishCommand.d.ts +29 -23
- package/dist/commands/PublishCommand.d.ts.map +1 -1
- package/dist/commands/PublishCommand.js +243 -254
- package/dist/commands/PublishCommand.js.map +1 -1
- package/dist/commands/RegistryCommand.d.ts +38 -35
- package/dist/commands/RegistryCommand.d.ts.map +1 -1
- package/dist/commands/RegistryCommand.js +195 -223
- package/dist/commands/RegistryCommand.js.map +1 -1
- package/dist/commands/RemoveCommand.d.ts +14 -11
- package/dist/commands/RemoveCommand.d.ts.map +1 -1
- package/dist/commands/RemoveCommand.js +47 -54
- package/dist/commands/RemoveCommand.js.map +1 -1
- package/dist/commands/RequestsCommand.d.ts +21 -18
- package/dist/commands/RequestsCommand.d.ts.map +1 -1
- package/dist/commands/RequestsCommand.js +82 -95
- package/dist/commands/RequestsCommand.js.map +1 -1
- package/dist/commands/UpdateCommand.d.ts +29 -26
- package/dist/commands/UpdateCommand.d.ts.map +1 -1
- package/dist/commands/UpdateCommand.js +111 -111
- package/dist/commands/UpdateCommand.js.map +1 -1
- package/dist/commands/WhoamiCommand.d.ts +30 -27
- package/dist/commands/WhoamiCommand.d.ts.map +1 -1
- package/dist/commands/WhoamiCommand.js +63 -72
- package/dist/commands/WhoamiCommand.js.map +1 -1
- package/dist/commands/WhyCommand.d.ts +13 -10
- package/dist/commands/WhyCommand.d.ts.map +1 -1
- package/dist/commands/WhyCommand.js +45 -44
- package/dist/commands/WhyCommand.js.map +1 -1
- package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
- package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
- package/dist/commands/add/DependencyAddResolver.js +36 -36
- package/dist/commands/add/DependencyAddResolver.js.map +1 -1
- package/dist/control-plane/AccountManager.d.ts +96 -94
- package/dist/control-plane/AccountManager.d.ts.map +1 -1
- package/dist/control-plane/AccountManager.js +775 -967
- package/dist/control-plane/AccountManager.js.map +1 -1
- package/dist/control-plane/ArtifactObserver.d.ts +19 -16
- package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
- package/dist/control-plane/ArtifactObserver.js +73 -59
- package/dist/control-plane/ArtifactObserver.js.map +1 -1
- package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
- package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
- package/dist/control-plane/AuthMetadataStore.js +111 -113
- package/dist/control-plane/AuthMetadataStore.js.map +1 -1
- package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
- package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
- package/dist/control-plane/AuthStoragePaths.js +19 -14
- package/dist/control-plane/AuthStoragePaths.js.map +1 -1
- package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
- package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
- package/dist/control-plane/AuthenticationSelector.js +69 -63
- package/dist/control-plane/AuthenticationSelector.js.map +1 -1
- package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
- package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneClient.js +265 -254
- package/dist/control-plane/ControlPlaneClient.js.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
- package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
- package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
- package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.js +88 -81
- package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
- package/dist/control-plane/CredentialStore.d.ts +20 -18
- package/dist/control-plane/CredentialStore.d.ts.map +1 -1
- package/dist/control-plane/CredentialStore.js +66 -83
- package/dist/control-plane/CredentialStore.js.map +1 -1
- package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
- package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
- package/dist/control-plane/DPoPKeyStore.js +57 -53
- package/dist/control-plane/DPoPKeyStore.js.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
- package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.js +97 -68
- package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
- package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
- package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
- package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
- package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
- package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
- package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
- package/dist/control-plane/RegistryGrantLock.js +149 -185
- package/dist/control-plane/RegistryGrantLock.js.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
- package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.js +97 -132
- package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
- package/dist/index.d.ts +62 -39
- package/dist/index.js +60 -53
- package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
- package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
- package/dist/postinstall/api/PostinstallDsl.js +32 -35
- package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
- package/dist/postinstall/api/definePostinstall.d.ts +5 -2
- package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
- package/dist/postinstall/api/definePostinstall.js +20 -16
- package/dist/postinstall/api/definePostinstall.js.map +1 -1
- package/dist/postinstall/index.d.ts +25 -26
- package/dist/postinstall/index.js +25 -37
- package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
- package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
- package/dist/postinstall/loader/EntryResolver.js +36 -32
- package/dist/postinstall/loader/EntryResolver.js.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
- package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
- package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
- package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
- package/dist/postinstall/loader/ExportValidator.js +36 -32
- package/dist/postinstall/loader/ExportValidator.js.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
- package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.js +50 -58
- package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
- package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.js +62 -58
- package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
- package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
- package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.js +44 -44
- package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
- package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
- package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
- package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
- package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
- package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
- package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.js +1 -2
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
- package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
- package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
- package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
- package/dist/postinstall/unreal/PluginHash.js +13 -8
- package/dist/postinstall/unreal/PluginHash.js.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
- package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.js +37 -37
- package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
- package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
- package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
- package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.js +56 -52
- package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
- package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
- package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
- package/dist/prompts/InkPromptService.d.ts +10 -7
- package/dist/prompts/InkPromptService.d.ts.map +1 -1
- package/dist/prompts/InkPromptService.js +100 -71
- package/dist/prompts/InkPromptService.js.map +1 -1
- package/dist/prompts/ProjectContextDetector.d.ts +10 -7
- package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
- package/dist/prompts/ProjectContextDetector.js +32 -26
- package/dist/prompts/ProjectContextDetector.js.map +1 -1
- package/dist/prompts/PromptService.d.ts +11 -8
- package/dist/prompts/PromptService.d.ts.map +1 -1
- package/dist/prompts/PromptService.js +1 -8
- package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
- package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
- package/dist/reporting/DiagnosticDeduplicator.js +36 -35
- package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
- package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/DiagnosticRenderer.js +1 -2
- package/dist/reporting/DiagnosticReporter.d.ts +12 -9
- package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
- package/dist/reporting/DiagnosticReporter.js +40 -39
- package/dist/reporting/DiagnosticReporter.js.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
- package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.js +50 -42
- package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/InstallProgressReporter.d.ts +23 -20
- package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
- package/dist/reporting/InstallProgressReporter.js +48 -47
- package/dist/reporting/InstallProgressReporter.js.map +1 -1
- package/dist/reporting/JsonReporter.d.ts +16 -13
- package/dist/reporting/JsonReporter.d.ts.map +1 -1
- package/dist/reporting/JsonReporter.js +34 -20
- package/dist/reporting/JsonReporter.js.map +1 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
- package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/TextDiagnosticRenderer.js +36 -28
- package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/TextSink.d.ts +14 -11
- package/dist/reporting/TextSink.d.ts.map +1 -1
- package/dist/reporting/TextSink.js +24 -20
- package/dist/reporting/TextSink.js.map +1 -1
- package/package.json +31 -32
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
- package/dist/cli-bootstrap.d.ts.map +0 -1
- package/dist/commands/Command.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/postinstall/index.d.ts.map +0 -1
- package/dist/postinstall/index.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
- package/dist/prompts/PromptService.js.map +0 -1
- package/dist/reporting/DiagnosticRenderer.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,53 +1,60 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
import { InstallProgressReporter } from "./reporting/InstallProgressReporter.js";
|
|
2
|
+
import { InstallCommand } from "./commands/InstallCommand.js";
|
|
3
|
+
import { AddCommand } from "./commands/AddCommand.js";
|
|
4
|
+
import { DiagnosticReporter } from "./reporting/DiagnosticReporter.js";
|
|
5
|
+
import { ConfigCommand } from "./commands/ConfigCommand.js";
|
|
6
|
+
import { InitCommand } from "./commands/InitCommand.js";
|
|
7
|
+
import { ListCommand } from "./commands/ListCommand.js";
|
|
8
|
+
import { FileRegistryGrantLock } from "./control-plane/RegistryGrantLock.js";
|
|
9
|
+
import { AuthMetadataStore } from "./control-plane/AuthMetadataStore.js";
|
|
10
|
+
import { ControlPlaneError, OAuthScopeInsufficientError, OAuthScopeUnsupportedError, UAPKG_AUTHORIZATION_ISSUER, UAPKG_CLI_CLIENT_ID, UAPKG_CLI_SCOPES, UAPKG_CONTROL_PLANE_API, UAPKG_GITHUB_OIDC_AUDIENCE, isOAuthScopeToken, isUAPKGCliScope, knownUAPKGCliScopes, parseOAuthScopeTokens, parseUAPKGCliScopeString, registryAudience } from "./control-plane/ControlPlaneTypes.js";
|
|
11
|
+
import { ControlPlaneClient } from "./control-plane/ControlPlaneClient.js";
|
|
12
|
+
import { CredentialStore } from "./control-plane/CredentialStore.js";
|
|
13
|
+
import { DPoPKeyStore } from "./control-plane/DPoPKeyStore.js";
|
|
14
|
+
import { AccountManager, LoginError, controlPlaneDiagnosticForError, describeControlPlaneError, loginDiagnosticForError } from "./control-plane/AccountManager.js";
|
|
15
|
+
import { LoginCommand } from "./commands/LoginCommand.js";
|
|
16
|
+
import { LogoutCommand } from "./commands/LogoutCommand.js";
|
|
17
|
+
import { OutdatedCommand } from "./commands/OutdatedCommand.js";
|
|
18
|
+
import { InkPromptService } from "./prompts/InkPromptService.js";
|
|
19
|
+
import { PackCommand } from "./commands/PackCommand.js";
|
|
20
|
+
import { ProjectGetNameCommand } from "./commands/ProjectGetNameCommand.js";
|
|
21
|
+
import { PublishCommand } from "./commands/PublishCommand.js";
|
|
22
|
+
import { RegistryCommand } from "./commands/RegistryCommand.js";
|
|
23
|
+
import { RemoveCommand } from "./commands/RemoveCommand.js";
|
|
24
|
+
import { RequestsCommand } from "./commands/RequestsCommand.js";
|
|
25
|
+
import { UpdateCommand } from "./commands/UpdateCommand.js";
|
|
26
|
+
import { WhoamiCommand } from "./commands/WhoamiCommand.js";
|
|
27
|
+
import { WhyCommand } from "./commands/WhyCommand.js";
|
|
28
|
+
import { ProjectContextDetector } from "./prompts/ProjectContextDetector.js";
|
|
29
|
+
import { RegistryTrustResolver, canonicalizeRegistryGitOrigin, fingerprintRegistryGitOrigin } from "./control-plane/RegistryTrustResolver.js";
|
|
30
|
+
import { EntryResolver } from "./postinstall/loader/EntryResolver.js";
|
|
31
|
+
import { EsbuildTranspiler } from "./postinstall/loader/EsbuildTranspiler.js";
|
|
32
|
+
import { PostinstallDefinitionSchema, ProjectSetupSchema, ZoneSchema } from "./postinstall/api/PostinstallDsl.js";
|
|
33
|
+
import { ExportValidator } from "./postinstall/loader/ExportValidator.js";
|
|
34
|
+
import { ModuleImporter } from "./postinstall/loader/ModuleImporter.js";
|
|
35
|
+
import { PostinstallLoader } from "./postinstall/loader/PostinstallLoader.js";
|
|
36
|
+
import { PostinstallPolicyGate } from "./postinstall/policy/PostinstallPolicyGate.js";
|
|
37
|
+
import { MarkerBlockService } from "./postinstall/markers/MarkerBlockService.js";
|
|
38
|
+
import { MarkerIntegrityValidator } from "./postinstall/markers/MarkerIntegrityValidator.js";
|
|
39
|
+
import { MarkerBlockEditor } from "./postinstall/markers/MarkerBlockEditor.js";
|
|
40
|
+
import { CSharpInjectionEngine } from "./postinstall/unreal/CSharpInjectionEngine.js";
|
|
41
|
+
import { PrettyParseError } from "./postinstall/unreal/PrettyParseError.js";
|
|
42
|
+
import { CSharpStructureAnalyzer } from "./postinstall/unreal/CSharpStructureAnalyzer.js";
|
|
43
|
+
import { CSharpWrapperFactory } from "./postinstall/unreal/CSharpWrapperFactory.js";
|
|
44
|
+
import { getPluginHash, getWrapperClassName } from "./postinstall/unreal/PluginHash.js";
|
|
45
|
+
import { BuildCsInjector } from "./postinstall/unreal/BuildCsInjector.js";
|
|
46
|
+
import { ProjectFileLocator } from "./postinstall/unreal/ProjectFileLocator.js";
|
|
47
|
+
import { TargetCsInjector } from "./postinstall/unreal/TargetCsInjector.js";
|
|
48
|
+
import { UnrealSourceCatalogBuilder } from "./postinstall/unreal/UnrealSourceCatalog.js";
|
|
49
|
+
import { UProjectInjector } from "./postinstall/unreal/UProjectInjector.js";
|
|
50
|
+
import { UProjectMetadataReader } from "./postinstall/unreal/UProjectMetadataReader.js";
|
|
51
|
+
import { PostinstallOrchestrator } from "./postinstall/runner/PostinstallOrchestrator.js";
|
|
52
|
+
import { JsonReporter } from "./reporting/JsonReporter.js";
|
|
53
|
+
import { CompositionRoot } from "./app/CompositionRoot.js";
|
|
54
|
+
import { UAPKGApplication } from "./app/UAPKGApplication.js";
|
|
55
|
+
import { UAPKGCommandLineFactory, UAPKG_WHOAMI_FIELDS, createUAPKGCommandLineFactory } from "./cli/UAPKGCommandLine.js";
|
|
56
|
+
import { parseUAPKGCommandLine } from "./cli/parseCommandLine.js";
|
|
57
|
+
import { runUAPKGCLI } from "./cli/runUAPKGCLI.js";
|
|
58
|
+
import { definePostinstall } from "./postinstall/api/definePostinstall.js";
|
|
59
|
+
|
|
60
|
+
export { AccountManager, AddCommand, AuthMetadataStore, BuildCsInjector, CSharpInjectionEngine, CSharpStructureAnalyzer, CSharpWrapperFactory, CompositionRoot, ConfigCommand, ControlPlaneClient, ControlPlaneError, CredentialStore, DPoPKeyStore, DiagnosticReporter, EntryResolver, EsbuildTranspiler, ExportValidator, FileRegistryGrantLock, InitCommand, InkPromptService, InstallCommand, InstallProgressReporter, JsonReporter, ListCommand, LoginCommand, LoginError, LogoutCommand, MarkerBlockEditor, MarkerBlockService, MarkerIntegrityValidator, ModuleImporter, OAuthScopeInsufficientError, OAuthScopeUnsupportedError, OutdatedCommand, PackCommand, PostinstallDefinitionSchema, PostinstallLoader, PostinstallOrchestrator, PostinstallPolicyGate, PrettyParseError, ProjectContextDetector, ProjectFileLocator, ProjectGetNameCommand, ProjectSetupSchema, PublishCommand, RegistryCommand, RegistryTrustResolver, RemoveCommand, RequestsCommand, TargetCsInjector, UAPKGApplication, UAPKGCommandLineFactory, UAPKG_AUTHORIZATION_ISSUER, UAPKG_CLI_CLIENT_ID, UAPKG_CLI_SCOPES, UAPKG_CONTROL_PLANE_API, UAPKG_GITHUB_OIDC_AUDIENCE, UAPKG_WHOAMI_FIELDS, UProjectInjector, UProjectMetadataReader, UnrealSourceCatalogBuilder, UpdateCommand, WhoamiCommand, WhyCommand, ZoneSchema, canonicalizeRegistryGitOrigin, controlPlaneDiagnosticForError, createUAPKGCommandLineFactory, definePostinstall, describeControlPlaneError, fingerprintRegistryGitOrigin, getPluginHash, getWrapperClassName, isOAuthScopeToken, isUAPKGCliScope, knownUAPKGCliScopes, loginDiagnosticForError, parseOAuthScopeTokens, parseUAPKGCliScopeString, parseUAPKGCommandLine, registryAudience, runUAPKGCLI };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/postinstall/api/PostinstallDsl.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Zone-level content injected into a single Unreal build file (Build.cs or Target.cs).
|
|
4
5
|
*
|
|
@@ -7,15 +8,15 @@ import { z } from 'zod';
|
|
|
7
8
|
* in a hashed helper class and inserts a single `Apply(this)` call into the
|
|
8
9
|
* constructor. The content must compile as a member list.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
declare const ZoneSchema: z.ZodObject<{
|
|
12
|
+
includes: z.ZodOptional<z.ZodString>;
|
|
13
|
+
classBody: z.ZodOptional<z.ZodString>;
|
|
13
14
|
}, z.core.$strict>;
|
|
14
15
|
/**
|
|
15
16
|
* Project-level setup: plugins to enable in the host project's `.uproject`.
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
declare const ProjectSetupSchema: z.ZodObject<{
|
|
19
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
20
|
}, z.core.$strict>;
|
|
20
21
|
/**
|
|
21
22
|
* The authoritative shape of `export default definePostinstall({...})`.
|
|
@@ -25,20 +26,22 @@ export declare const ProjectSetupSchema: z.ZodObject<{
|
|
|
25
26
|
* - `setupTargets`: applied to every *.Target.cs in the host project.
|
|
26
27
|
* - `setupProject`: edits the host project's `.uproject`.
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
declare const PostinstallDefinitionSchema: z.ZodObject<{
|
|
30
|
+
setupModules: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
includes: z.ZodOptional<z.ZodString>;
|
|
32
|
+
classBody: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
setupTargets: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
includes: z.ZodOptional<z.ZodString>;
|
|
36
|
+
classBody: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strict>>;
|
|
38
|
+
setupProject: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
}, z.core.$strict>>;
|
|
40
41
|
}, z.core.$strict>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
type ZoneDefinition = z.infer<typeof ZoneSchema>;
|
|
43
|
+
type ProjectSetupDefinition = z.infer<typeof ProjectSetupSchema>;
|
|
44
|
+
type PostinstallDefinition = z.infer<typeof PostinstallDefinitionSchema>;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { PostinstallDefinition, PostinstallDefinitionSchema, ProjectSetupDefinition, ProjectSetupSchema, ZoneDefinition, ZoneSchema };
|
|
44
47
|
//# sourceMappingURL=PostinstallDsl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostinstallDsl.d.ts","
|
|
1
|
+
{"version":3,"file":"PostinstallDsl.d.ts","names":[],"sources":["../../../src/postinstall/api/PostinstallDsl.ts"],"mappings":";;;;;;;;;;cAUa,YAAU,EAAA;;;GAKZ,EAAA,KAAA;;;;cAKE,oBAAkB,EAAA;;GAIpB,EAAA,KAAA;;;;;;;;;cAUE,6BAA2B,EAAA;;;;;;;;;;;;GAM7B,EAAA,KAAA;KAEC,iBAAiB,EAAE,aAAa;KAChC,yBAAyB,EAAE,aAAa;KACxC,wBAAwB,EAAE,aAAa"}
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/postinstall/api/PostinstallDsl.ts
|
|
2
4
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})
|
|
15
|
-
.strict();
|
|
5
|
+
* Zone-level content injected into a single Unreal build file (Build.cs or Target.cs).
|
|
6
|
+
*
|
|
7
|
+
* - `includes`: raw C# `using ...;` lines appended to the file's using block.
|
|
8
|
+
* - `classBody`: raw C# members placed inside the target class; uapkg wraps them
|
|
9
|
+
* in a hashed helper class and inserts a single `Apply(this)` call into the
|
|
10
|
+
* constructor. The content must compile as a member list.
|
|
11
|
+
*/
|
|
12
|
+
const ZoneSchema = z.object({
|
|
13
|
+
includes: z.string().min(1).optional(),
|
|
14
|
+
classBody: z.string().min(1).optional()
|
|
15
|
+
}).strict();
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
.object({
|
|
21
|
-
plugins: z.array(z.string().min(1)).optional(),
|
|
22
|
-
})
|
|
23
|
-
.strict();
|
|
17
|
+
* Project-level setup: plugins to enable in the host project's `.uproject`.
|
|
18
|
+
*/
|
|
19
|
+
const ProjectSetupSchema = z.object({ plugins: z.array(z.string().min(1)).optional() }).strict();
|
|
24
20
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
21
|
+
* The authoritative shape of `export default definePostinstall({...})`.
|
|
22
|
+
*
|
|
23
|
+
* Scopes:
|
|
24
|
+
* - `setupModules`: applied to each *project postinstall module* Build.cs file.
|
|
25
|
+
* - `setupTargets`: applied to every *.Target.cs in the host project.
|
|
26
|
+
* - `setupProject`: edits the host project's `.uproject`.
|
|
27
|
+
*/
|
|
28
|
+
const PostinstallDefinitionSchema = z.object({
|
|
29
|
+
setupModules: ZoneSchema.optional(),
|
|
30
|
+
setupTargets: ZoneSchema.optional(),
|
|
31
|
+
setupProject: ProjectSetupSchema.optional()
|
|
32
|
+
}).strict();
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { PostinstallDefinitionSchema, ProjectSetupSchema, ZoneSchema };
|
|
39
36
|
//# sourceMappingURL=PostinstallDsl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostinstallDsl.js","
|
|
1
|
+
{"version":3,"file":"PostinstallDsl.js","names":[],"sources":["../../../src/postinstall/api/PostinstallDsl.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Zone-level content injected into a single Unreal build file (Build.cs or Target.cs).\n *\n * - `includes`: raw C# `using ...;` lines appended to the file's using block.\n * - `classBody`: raw C# members placed inside the target class; uapkg wraps them\n * in a hashed helper class and inserts a single `Apply(this)` call into the\n * constructor. The content must compile as a member list.\n */\nexport const ZoneSchema = z\n .object({\n includes: z.string().min(1).optional(),\n classBody: z.string().min(1).optional(),\n })\n .strict();\n\n/**\n * Project-level setup: plugins to enable in the host project's `.uproject`.\n */\nexport const ProjectSetupSchema = z\n .object({\n plugins: z.array(z.string().min(1)).optional(),\n })\n .strict();\n\n/**\n * The authoritative shape of `export default definePostinstall({...})`.\n *\n * Scopes:\n * - `setupModules`: applied to each *project postinstall module* Build.cs file.\n * - `setupTargets`: applied to every *.Target.cs in the host project.\n * - `setupProject`: edits the host project's `.uproject`.\n */\nexport const PostinstallDefinitionSchema = z\n .object({\n setupModules: ZoneSchema.optional(),\n setupTargets: ZoneSchema.optional(),\n setupProject: ProjectSetupSchema.optional(),\n })\n .strict();\n\nexport type ZoneDefinition = z.infer<typeof ZoneSchema>;\nexport type ProjectSetupDefinition = z.infer<typeof ProjectSetupSchema>;\nexport type PostinstallDefinition = z.infer<typeof PostinstallDefinitionSchema>;\n"],"mappings":";;;;;;;;;;;AAUA,MAAa,aAAa,EACvB,OAAO;CACN,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CACrC,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CACD,OAAO;;;;AAKV,MAAa,qBAAqB,EAC/B,OAAO,EACN,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,EAC/C,CAAC,CAAC,CACD,OAAO;;;;;;;;;AAUV,MAAa,8BAA8B,EACxC,OAAO;CACN,cAAc,WAAW,SAAS;CAClC,cAAc,WAAW,SAAS;CAClC,cAAc,mBAAmB,SAAS;AAC5C,CAAC,CAAC,CACD,OAAO"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PostinstallDefinition } from "./PostinstallDsl.js";
|
|
2
|
+
//#region src/postinstall/api/definePostinstall.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Identity helper used in user-authored `.uapkg/postinstall.ts` files:
|
|
4
5
|
*
|
|
@@ -14,5 +15,7 @@ import type { PostinstallDefinition } from './PostinstallDsl.js';
|
|
|
14
15
|
* The loader validates the shape regardless of whether the author used this
|
|
15
16
|
* helper, so it is purely ergonomic.
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
+
declare function definePostinstall(definition: PostinstallDefinition): PostinstallDefinition;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { definePostinstall };
|
|
18
21
|
//# sourceMappingURL=definePostinstall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definePostinstall.d.ts","
|
|
1
|
+
{"version":3,"file":"definePostinstall.d.ts","names":[],"sources":["../../../src/postinstall/api/definePostinstall.ts"],"mappings":";;;;;;;;;;;;;;;;;iBAiBgB,kBAAkB,YAAY,wBAAwB"}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
//#region src/postinstall/api/definePostinstall.ts
|
|
1
2
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
* Identity helper used in user-authored `.uapkg/postinstall.ts` files:
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { definePostinstall } from 'uapkg/postinstall';
|
|
7
|
+
* export default definePostinstall({
|
|
8
|
+
* setupModules: { classBody: '...' },
|
|
9
|
+
* });
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* At runtime this is the identity function; at edit time it gives authors
|
|
13
|
+
* full TypeScript autocomplete/validation against {@link PostinstallDefinition}.
|
|
14
|
+
* The loader validates the shape regardless of whether the author used this
|
|
15
|
+
* helper, so it is purely ergonomic.
|
|
16
|
+
*/
|
|
17
|
+
function definePostinstall(definition) {
|
|
18
|
+
return definition;
|
|
18
19
|
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { definePostinstall };
|
|
19
23
|
//# sourceMappingURL=definePostinstall.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definePostinstall.js","
|
|
1
|
+
{"version":3,"file":"definePostinstall.js","names":[],"sources":["../../../src/postinstall/api/definePostinstall.ts"],"sourcesContent":["import type { PostinstallDefinition } from './PostinstallDsl.js';\n\n/**\n * Identity helper used in user-authored `.uapkg/postinstall.ts` files:\n *\n * ```ts\n * import { definePostinstall } from 'uapkg/postinstall';\n * export default definePostinstall({\n * setupModules: { classBody: '...' },\n * });\n * ```\n *\n * At runtime this is the identity function; at edit time it gives authors\n * full TypeScript autocomplete/validation against {@link PostinstallDefinition}.\n * The loader validates the shape regardless of whether the author used this\n * helper, so it is purely ergonomic.\n */\nexport function definePostinstall(definition: PostinstallDefinition): PostinstallDefinition {\n return definition;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,SAAgB,kBAAkB,YAA0D;CAC1F,OAAO;AACT"}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export { UProjectMetadataReader
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { PostinstallDefinition, PostinstallDefinitionSchema, ProjectSetupDefinition, ProjectSetupSchema, ZoneDefinition, ZoneSchema } from "./api/PostinstallDsl.js";
|
|
2
|
+
import { EntryResolver, PostinstallEntryKind, ResolvedEntry } from "./loader/EntryResolver.js";
|
|
3
|
+
import { EsbuildTranspiler } from "./loader/EsbuildTranspiler.js";
|
|
4
|
+
import { ExportValidator } from "./loader/ExportValidator.js";
|
|
5
|
+
import { ModuleImporter, ModuleSource } from "./loader/ModuleImporter.js";
|
|
6
|
+
import { LoadedPostinstall, PostinstallLoader } from "./loader/PostinstallLoader.js";
|
|
7
|
+
import { PolicyConfigReader, PolicyDecision, PostinstallPolicyGate } from "./policy/PostinstallPolicyGate.js";
|
|
8
|
+
import { MarkerBlockService } from "./markers/MarkerBlockService.js";
|
|
9
|
+
import { MarkerIntegrityFail, MarkerIntegrityOk, MarkerIntegrityResult, MarkerIntegrityValidator } from "./markers/MarkerIntegrityValidator.js";
|
|
10
|
+
import { MarkerBlockEditor } from "./markers/MarkerBlockEditor.js";
|
|
11
|
+
import { CSharpFileKind, ParsedCSharpFile, ParsedClass, ParsedConstructor } from "./unreal/CSharpStructures.js";
|
|
12
|
+
import { CSharpInjectionEngine } from "./unreal/CSharpInjectionEngine.js";
|
|
13
|
+
import { CSharpStructureAnalyzer } from "./unreal/CSharpStructureAnalyzer.js";
|
|
14
|
+
import { CSharpWrapperFactory, WrapperContextType } from "./unreal/CSharpWrapperFactory.js";
|
|
15
|
+
import { BuildCsInjector } from "./unreal/BuildCsInjector.js";
|
|
16
|
+
import { ProjectFileLocator } from "./unreal/ProjectFileLocator.js";
|
|
17
|
+
import { TargetCsInjector } from "./unreal/TargetCsInjector.js";
|
|
18
|
+
import { SourceCatalog, UnrealSourceCatalogBuilder } from "./unreal/UnrealSourceCatalog.js";
|
|
19
|
+
import { UProjectInjector } from "./unreal/UProjectInjector.js";
|
|
20
|
+
import { UProjectMetadataReader } from "./unreal/UProjectMetadataReader.js";
|
|
21
|
+
import { PostinstallCandidate, PostinstallOrchestrator, PostinstallOrchestratorInput, PostinstallReport } from "./runner/PostinstallOrchestrator.js";
|
|
22
|
+
import { definePostinstall } from "./api/definePostinstall.js";
|
|
23
|
+
import { getPluginHash, getWrapperClassName } from "./unreal/PluginHash.js";
|
|
24
|
+
import { PrettyParseError } from "./unreal/PrettyParseError.js";
|
|
25
|
+
export { BuildCsInjector, type CSharpFileKind, CSharpInjectionEngine, CSharpStructureAnalyzer, CSharpWrapperFactory, EntryResolver, EsbuildTranspiler, ExportValidator, type LoadedPostinstall, MarkerBlockEditor, MarkerBlockService, type MarkerIntegrityFail, type MarkerIntegrityOk, type MarkerIntegrityResult, MarkerIntegrityValidator, ModuleImporter, type ModuleSource, type ParsedCSharpFile, type ParsedClass, type ParsedConstructor, type PolicyConfigReader, type PolicyDecision, type PostinstallCandidate, type PostinstallDefinition, PostinstallDefinitionSchema, type PostinstallEntryKind, PostinstallLoader, PostinstallOrchestrator, type PostinstallOrchestratorInput, PostinstallPolicyGate, type PostinstallReport, PrettyParseError, ProjectFileLocator, type ProjectSetupDefinition, ProjectSetupSchema, type ResolvedEntry, type SourceCatalog, TargetCsInjector, UProjectInjector, UProjectMetadataReader, UnrealSourceCatalogBuilder, type WrapperContextType, type ZoneDefinition, ZoneSchema, definePostinstall, getPluginHash, getWrapperClassName };
|
|
@@ -1,37 +1,25 @@
|
|
|
1
|
-
|
|
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
|
-
export { BuildCsInjector } from './unreal/BuildCsInjector.js';
|
|
27
|
-
export { CSharpInjectionEngine } from './unreal/CSharpInjectionEngine.js';
|
|
28
|
-
export { CSharpStructureAnalyzer } from './unreal/CSharpStructureAnalyzer.js';
|
|
29
|
-
export { CSharpWrapperFactory } from './unreal/CSharpWrapperFactory.js';
|
|
30
|
-
export { getPluginHash, getWrapperClassName } from './unreal/PluginHash.js';
|
|
31
|
-
export { PrettyParseError } from './unreal/PrettyParseError.js';
|
|
32
|
-
export { ProjectFileLocator } from './unreal/ProjectFileLocator.js';
|
|
33
|
-
export { TargetCsInjector } from './unreal/TargetCsInjector.js';
|
|
34
|
-
export { UnrealSourceCatalogBuilder } from './unreal/UnrealSourceCatalog.js';
|
|
35
|
-
export { UProjectInjector } from './unreal/UProjectInjector.js';
|
|
36
|
-
export { UProjectMetadataReader } from './unreal/UProjectMetadataReader.js';
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { EntryResolver } from "./loader/EntryResolver.js";
|
|
2
|
+
import { EsbuildTranspiler } from "./loader/EsbuildTranspiler.js";
|
|
3
|
+
import { PostinstallDefinitionSchema, ProjectSetupSchema, ZoneSchema } from "./api/PostinstallDsl.js";
|
|
4
|
+
import { ExportValidator } from "./loader/ExportValidator.js";
|
|
5
|
+
import { ModuleImporter } from "./loader/ModuleImporter.js";
|
|
6
|
+
import { PostinstallLoader } from "./loader/PostinstallLoader.js";
|
|
7
|
+
import { PostinstallPolicyGate } from "./policy/PostinstallPolicyGate.js";
|
|
8
|
+
import { MarkerBlockService } from "./markers/MarkerBlockService.js";
|
|
9
|
+
import { MarkerIntegrityValidator } from "./markers/MarkerIntegrityValidator.js";
|
|
10
|
+
import { MarkerBlockEditor } from "./markers/MarkerBlockEditor.js";
|
|
11
|
+
import { CSharpInjectionEngine } from "./unreal/CSharpInjectionEngine.js";
|
|
12
|
+
import { PrettyParseError } from "./unreal/PrettyParseError.js";
|
|
13
|
+
import { CSharpStructureAnalyzer } from "./unreal/CSharpStructureAnalyzer.js";
|
|
14
|
+
import { CSharpWrapperFactory } from "./unreal/CSharpWrapperFactory.js";
|
|
15
|
+
import { getPluginHash, getWrapperClassName } from "./unreal/PluginHash.js";
|
|
16
|
+
import { BuildCsInjector } from "./unreal/BuildCsInjector.js";
|
|
17
|
+
import { ProjectFileLocator } from "./unreal/ProjectFileLocator.js";
|
|
18
|
+
import { TargetCsInjector } from "./unreal/TargetCsInjector.js";
|
|
19
|
+
import { UnrealSourceCatalogBuilder } from "./unreal/UnrealSourceCatalog.js";
|
|
20
|
+
import { UProjectInjector } from "./unreal/UProjectInjector.js";
|
|
21
|
+
import { UProjectMetadataReader } from "./unreal/UProjectMetadataReader.js";
|
|
22
|
+
import { PostinstallOrchestrator } from "./runner/PostinstallOrchestrator.js";
|
|
23
|
+
import { definePostinstall } from "./api/definePostinstall.js";
|
|
24
|
+
|
|
25
|
+
export { BuildCsInjector, CSharpInjectionEngine, CSharpStructureAnalyzer, CSharpWrapperFactory, EntryResolver, EsbuildTranspiler, ExportValidator, MarkerBlockEditor, MarkerBlockService, MarkerIntegrityValidator, ModuleImporter, PostinstallDefinitionSchema, PostinstallLoader, PostinstallOrchestrator, PostinstallPolicyGate, PrettyParseError, ProjectFileLocator, ProjectSetupSchema, TargetCsInjector, UProjectInjector, UProjectMetadataReader, UnrealSourceCatalogBuilder, ZoneSchema, definePostinstall, getPluginHash, getWrapperClassName };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Result } from "@uapkg/diagnostics";
|
|
2
|
+
//#region src/postinstall/loader/EntryResolver.d.ts
|
|
2
3
|
/** Candidate extensions in resolution order (spec-mandated). */
|
|
3
|
-
declare const CANDIDATE_EXTENSIONS: readonly [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
declare const CANDIDATE_EXTENSIONS: readonly ['ts', 'js', 'mjs'];
|
|
5
|
+
type PostinstallEntryKind = (typeof CANDIDATE_EXTENSIONS)[number];
|
|
6
|
+
interface ResolvedEntry {
|
|
7
|
+
readonly path: string;
|
|
8
|
+
readonly kind: PostinstallEntryKind;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Locates `.uapkg/postinstall.<ext>` inside a plugin root, enforcing the
|
|
@@ -13,8 +14,9 @@ export interface ResolvedEntry {
|
|
|
13
14
|
* clean up ambiguity. `ok(null)` means "no postinstall defined" — a valid,
|
|
14
15
|
* silent state.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
declare class EntryResolver {
|
|
18
|
+
resolve(packageName: string, pluginRoot: string): Result<ResolvedEntry | null>;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
//#endregion
|
|
21
|
+
export { EntryResolver, PostinstallEntryKind, ResolvedEntry };
|
|
20
22
|
//# sourceMappingURL=EntryResolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntryResolver.d.ts","
|
|
1
|
+
{"version":3,"file":"EntryResolver.d.ts","names":[],"sources":["../../../src/postinstall/loader/EntryResolver.ts"],"mappings":";;;cAKM;KACM,+BAA+B;UAE1B;WACN;WACA,MAAM;;;;;;;;;cAUJ;EACJ,QAAQ,qBAAqB,qBAAqB,OAAO"}
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as path from
|
|
3
|
-
import
|
|
1
|
+
import { createPostinstallDuplicateEntryDiagnostic, fail, ok } from "@uapkg/diagnostics";
|
|
2
|
+
import * as path$1 from "node:path";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
|
|
5
|
+
//#region src/postinstall/loader/EntryResolver.ts
|
|
4
6
|
/** Candidate extensions in resolution order (spec-mandated). */
|
|
5
|
-
const CANDIDATE_EXTENSIONS = [
|
|
7
|
+
const CANDIDATE_EXTENSIONS = [
|
|
8
|
+
"ts",
|
|
9
|
+
"js",
|
|
10
|
+
"mjs"
|
|
11
|
+
];
|
|
6
12
|
/**
|
|
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
|
-
}
|
|
13
|
+
* Locates `.uapkg/postinstall.<ext>` inside a plugin root, enforcing the
|
|
14
|
+
* order `ts → js → mjs`. If the plugin has two or more candidate files an
|
|
15
|
+
* error diagnostic `POSTINSTALL_DUPLICATE_ENTRY` is returned so the user can
|
|
16
|
+
* clean up ambiguity. `ok(null)` means "no postinstall defined" — a valid,
|
|
17
|
+
* silent state.
|
|
18
|
+
*/
|
|
19
|
+
var EntryResolver = class {
|
|
20
|
+
resolve(packageName, pluginRoot) {
|
|
21
|
+
const dir = path$1.join(pluginRoot, ".uapkg");
|
|
22
|
+
if (!fs.existsSync(dir)) return ok(null);
|
|
23
|
+
const found = [];
|
|
24
|
+
for (const kind of CANDIDATE_EXTENSIONS) {
|
|
25
|
+
const candidate = path$1.join(dir, `postinstall.${kind}`);
|
|
26
|
+
if (fs.existsSync(candidate) && fs.statSync(candidate).isFile()) found.push({
|
|
27
|
+
path: candidate,
|
|
28
|
+
kind
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
if (found.length === 0) return ok(null);
|
|
32
|
+
if (found.length > 1) return fail([createPostinstallDuplicateEntryDiagnostic(packageName, found.map((entry) => entry.path))]);
|
|
33
|
+
return ok(found[0]);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { EntryResolver };
|
|
35
39
|
//# sourceMappingURL=EntryResolver.js.map
|