@uapkg/cli 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/CompositionRoot.d.ts +36 -33
- package/dist/app/CompositionRoot.d.ts.map +1 -1
- package/dist/app/CompositionRoot.js +91 -109
- package/dist/app/CompositionRoot.js.map +1 -1
- package/dist/app/UAPKGApplication.d.ts +6 -3
- package/dist/app/UAPKGApplication.d.ts.map +1 -1
- package/dist/app/UAPKGApplication.js +155 -169
- package/dist/app/UAPKGApplication.js.map +1 -1
- package/dist/build/BuildMetadata.d.ts +9 -6
- package/dist/build/BuildMetadata.d.ts.map +1 -1
- package/dist/build/BuildMetadata.js +2 -2
- package/dist/cli/UAPKGCommandLine.d.ts +259 -257
- package/dist/cli/UAPKGCommandLine.d.ts.map +1 -1
- package/dist/cli/UAPKGCommandLine.js +248 -239
- package/dist/cli/UAPKGCommandLine.js.map +1 -1
- package/dist/cli/parseCommandLine.d.ts +5 -1
- package/dist/cli/parseCommandLine.d.ts.map +1 -1
- package/dist/cli/parseCommandLine.js +8 -3
- package/dist/cli/parseCommandLine.js.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts +9 -6
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.js +23 -31
- package/dist/cli/parsing/UAPKGCommandLineParser.js.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts +12 -9
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.js +53 -50
- package/dist/cli/parsing/UAPKGParserRegistry.js.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts +9 -6
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js +1 -2
- package/dist/cli/parsing/modules/AddCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/AddCommandModule.js +49 -36
- package/dist/cli/parsing/modules/AddCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.js +87 -83
- package/dist/cli/parsing/modules/ConfigCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.js +25 -22
- package/dist/cli/parsing/modules/InitCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.js +36 -28
- package/dist/cli/parsing/modules/InstallCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.js +78 -50
- package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.js +26 -15
- package/dist/cli/parsing/modules/ListCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.js +34 -33
- package/dist/cli/parsing/modules/LoginCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.js +30 -28
- package/dist/cli/parsing/modules/LogoutCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.js +21 -16
- package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.js +30 -28
- package/dist/cli/parsing/modules/PackCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +14 -11
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.js +63 -47
- package/dist/cli/parsing/modules/PublishCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.js +117 -120
- package/dist/cli/parsing/modules/RegistryCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.js +25 -14
- package/dist/cli/parsing/modules/RemoveCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.js +56 -60
- package/dist/cli/parsing/modules/RequestsCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.js +38 -25
- package/dist/cli/parsing/modules/UpdateCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.js +30 -28
- package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.js +25 -14
- package/dist/cli/parsing/modules/WhyCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.d.ts +8 -5
- package/dist/cli/parsing/modules/sharedOptions.d.ts.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.js +18 -23
- package/dist/cli/parsing/modules/sharedOptions.js.map +1 -1
- package/dist/cli/runUAPKGCLI.d.ts +4 -1
- package/dist/cli/runUAPKGCLI.d.ts.map +1 -1
- package/dist/cli/runUAPKGCLI.js +10 -5
- package/dist/cli/runUAPKGCLI.js.map +1 -1
- package/dist/cli-bootstrap.d.ts +1 -2
- package/dist/cli-bootstrap.js +15 -12
- package/dist/cli-bootstrap.js.map +1 -1
- package/dist/commands/AddCommand.d.ts +19 -16
- package/dist/commands/AddCommand.d.ts.map +1 -1
- package/dist/commands/AddCommand.js +49 -53
- package/dist/commands/AddCommand.js.map +1 -1
- package/dist/commands/Command.d.ts +5 -2
- package/dist/commands/Command.d.ts.map +1 -1
- package/dist/commands/Command.js +1 -2
- package/dist/commands/ConfigCommand.d.ts +28 -25
- package/dist/commands/ConfigCommand.d.ts.map +1 -1
- package/dist/commands/ConfigCommand.js +165 -186
- package/dist/commands/ConfigCommand.js.map +1 -1
- package/dist/commands/InitCommand.d.ts +19 -16
- package/dist/commands/InitCommand.d.ts.map +1 -1
- package/dist/commands/InitCommand.js +65 -60
- package/dist/commands/InitCommand.js.map +1 -1
- package/dist/commands/InstallCommand.d.ts +16 -13
- package/dist/commands/InstallCommand.d.ts.map +1 -1
- package/dist/commands/InstallCommand.js +118 -110
- package/dist/commands/InstallCommand.js.map +1 -1
- package/dist/commands/ListCommand.d.ts +13 -10
- package/dist/commands/ListCommand.d.ts.map +1 -1
- package/dist/commands/ListCommand.js +76 -81
- package/dist/commands/ListCommand.js.map +1 -1
- package/dist/commands/LoginCommand.d.ts +17 -14
- package/dist/commands/LoginCommand.d.ts.map +1 -1
- package/dist/commands/LoginCommand.js +66 -72
- package/dist/commands/LoginCommand.js.map +1 -1
- package/dist/commands/LogoutCommand.d.ts +15 -12
- package/dist/commands/LogoutCommand.d.ts.map +1 -1
- package/dist/commands/LogoutCommand.js +36 -37
- package/dist/commands/LogoutCommand.js.map +1 -1
- package/dist/commands/OutdatedCommand.d.ts +12 -9
- package/dist/commands/OutdatedCommand.d.ts.map +1 -1
- package/dist/commands/OutdatedCommand.js +41 -40
- package/dist/commands/OutdatedCommand.js.map +1 -1
- package/dist/commands/PackCommand.d.ts +13 -10
- package/dist/commands/PackCommand.d.ts.map +1 -1
- package/dist/commands/PackCommand.js +26 -21
- package/dist/commands/PackCommand.js.map +1 -1
- package/dist/commands/PackageLifecycleCommand.d.ts +23 -19
- package/dist/commands/PackageLifecycleCommand.d.ts.map +1 -1
- package/dist/commands/PackageLifecycleCommand.js +144 -138
- package/dist/commands/PackageLifecycleCommand.js.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.d.ts +11 -8
- package/dist/commands/PostinstallCandidateBuilder.d.ts.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.js +42 -42
- package/dist/commands/PostinstallCandidateBuilder.js.map +1 -1
- package/dist/commands/ProjectGetNameCommand.d.ts +10 -7
- package/dist/commands/ProjectGetNameCommand.d.ts.map +1 -1
- package/dist/commands/ProjectGetNameCommand.js +25 -25
- package/dist/commands/ProjectGetNameCommand.js.map +1 -1
- package/dist/commands/PublishCommand.d.ts +29 -23
- package/dist/commands/PublishCommand.d.ts.map +1 -1
- package/dist/commands/PublishCommand.js +243 -254
- package/dist/commands/PublishCommand.js.map +1 -1
- package/dist/commands/RegistryCommand.d.ts +38 -35
- package/dist/commands/RegistryCommand.d.ts.map +1 -1
- package/dist/commands/RegistryCommand.js +195 -223
- package/dist/commands/RegistryCommand.js.map +1 -1
- package/dist/commands/RemoveCommand.d.ts +14 -11
- package/dist/commands/RemoveCommand.d.ts.map +1 -1
- package/dist/commands/RemoveCommand.js +47 -54
- package/dist/commands/RemoveCommand.js.map +1 -1
- package/dist/commands/RequestsCommand.d.ts +21 -18
- package/dist/commands/RequestsCommand.d.ts.map +1 -1
- package/dist/commands/RequestsCommand.js +82 -95
- package/dist/commands/RequestsCommand.js.map +1 -1
- package/dist/commands/UpdateCommand.d.ts +29 -26
- package/dist/commands/UpdateCommand.d.ts.map +1 -1
- package/dist/commands/UpdateCommand.js +111 -111
- package/dist/commands/UpdateCommand.js.map +1 -1
- package/dist/commands/WhoamiCommand.d.ts +30 -27
- package/dist/commands/WhoamiCommand.d.ts.map +1 -1
- package/dist/commands/WhoamiCommand.js +63 -72
- package/dist/commands/WhoamiCommand.js.map +1 -1
- package/dist/commands/WhyCommand.d.ts +13 -10
- package/dist/commands/WhyCommand.d.ts.map +1 -1
- package/dist/commands/WhyCommand.js +45 -44
- package/dist/commands/WhyCommand.js.map +1 -1
- package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
- package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
- package/dist/commands/add/DependencyAddResolver.js +36 -36
- package/dist/commands/add/DependencyAddResolver.js.map +1 -1
- package/dist/control-plane/AccountManager.d.ts +96 -94
- package/dist/control-plane/AccountManager.d.ts.map +1 -1
- package/dist/control-plane/AccountManager.js +775 -967
- package/dist/control-plane/AccountManager.js.map +1 -1
- package/dist/control-plane/ArtifactObserver.d.ts +19 -16
- package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
- package/dist/control-plane/ArtifactObserver.js +73 -59
- package/dist/control-plane/ArtifactObserver.js.map +1 -1
- package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
- package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
- package/dist/control-plane/AuthMetadataStore.js +111 -113
- package/dist/control-plane/AuthMetadataStore.js.map +1 -1
- package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
- package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
- package/dist/control-plane/AuthStoragePaths.js +19 -14
- package/dist/control-plane/AuthStoragePaths.js.map +1 -1
- package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
- package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
- package/dist/control-plane/AuthenticationSelector.js +69 -63
- package/dist/control-plane/AuthenticationSelector.js.map +1 -1
- package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
- package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneClient.js +265 -254
- package/dist/control-plane/ControlPlaneClient.js.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
- package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
- package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
- package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.js +88 -81
- package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
- package/dist/control-plane/CredentialStore.d.ts +20 -18
- package/dist/control-plane/CredentialStore.d.ts.map +1 -1
- package/dist/control-plane/CredentialStore.js +66 -83
- package/dist/control-plane/CredentialStore.js.map +1 -1
- package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
- package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
- package/dist/control-plane/DPoPKeyStore.js +57 -53
- package/dist/control-plane/DPoPKeyStore.js.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
- package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.js +97 -68
- package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
- package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
- package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
- package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
- package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
- package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
- package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
- package/dist/control-plane/RegistryGrantLock.js +149 -185
- package/dist/control-plane/RegistryGrantLock.js.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
- package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.js +97 -132
- package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
- package/dist/index.d.ts +62 -39
- package/dist/index.js +60 -53
- package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
- package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
- package/dist/postinstall/api/PostinstallDsl.js +32 -35
- package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
- package/dist/postinstall/api/definePostinstall.d.ts +5 -2
- package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
- package/dist/postinstall/api/definePostinstall.js +20 -16
- package/dist/postinstall/api/definePostinstall.js.map +1 -1
- package/dist/postinstall/index.d.ts +25 -26
- package/dist/postinstall/index.js +25 -37
- package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
- package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
- package/dist/postinstall/loader/EntryResolver.js +36 -32
- package/dist/postinstall/loader/EntryResolver.js.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
- package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
- package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
- package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
- package/dist/postinstall/loader/ExportValidator.js +36 -32
- package/dist/postinstall/loader/ExportValidator.js.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
- package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.js +50 -58
- package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
- package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.js +62 -58
- package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
- package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
- package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.js +44 -44
- package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
- package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
- package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
- package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
- package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
- package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
- package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.js +1 -2
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
- package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
- package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
- package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
- package/dist/postinstall/unreal/PluginHash.js +13 -8
- package/dist/postinstall/unreal/PluginHash.js.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
- package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.js +37 -37
- package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
- package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
- package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
- package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.js +56 -52
- package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
- package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
- package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
- package/dist/prompts/InkPromptService.d.ts +10 -7
- package/dist/prompts/InkPromptService.d.ts.map +1 -1
- package/dist/prompts/InkPromptService.js +100 -71
- package/dist/prompts/InkPromptService.js.map +1 -1
- package/dist/prompts/ProjectContextDetector.d.ts +10 -7
- package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
- package/dist/prompts/ProjectContextDetector.js +32 -26
- package/dist/prompts/ProjectContextDetector.js.map +1 -1
- package/dist/prompts/PromptService.d.ts +11 -8
- package/dist/prompts/PromptService.d.ts.map +1 -1
- package/dist/prompts/PromptService.js +1 -8
- package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
- package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
- package/dist/reporting/DiagnosticDeduplicator.js +36 -35
- package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
- package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/DiagnosticRenderer.js +1 -2
- package/dist/reporting/DiagnosticReporter.d.ts +12 -9
- package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
- package/dist/reporting/DiagnosticReporter.js +40 -39
- package/dist/reporting/DiagnosticReporter.js.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
- package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.js +50 -42
- package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/InstallProgressReporter.d.ts +23 -20
- package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
- package/dist/reporting/InstallProgressReporter.js +48 -47
- package/dist/reporting/InstallProgressReporter.js.map +1 -1
- package/dist/reporting/JsonReporter.d.ts +16 -13
- package/dist/reporting/JsonReporter.d.ts.map +1 -1
- package/dist/reporting/JsonReporter.js +34 -20
- package/dist/reporting/JsonReporter.js.map +1 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
- package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/TextDiagnosticRenderer.js +36 -28
- package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/TextSink.d.ts +14 -11
- package/dist/reporting/TextSink.d.ts.map +1 -1
- package/dist/reporting/TextSink.js +24 -20
- package/dist/reporting/TextSink.js.map +1 -1
- package/package.json +31 -32
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
- package/dist/cli-bootstrap.d.ts.map +0 -1
- package/dist/commands/Command.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/postinstall/index.d.ts.map +0 -1
- package/dist/postinstall/index.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
- package/dist/prompts/PromptService.js.map +0 -1
- package/dist/reporting/DiagnosticRenderer.js.map +0 -1
|
@@ -1,60 +1,56 @@
|
|
|
1
|
-
import * as CSharpAst from
|
|
1
|
+
import * as CSharpAst from "@amplication/csharp-ast";
|
|
2
|
+
|
|
3
|
+
//#region src/postinstall/unreal/CSharpWrapperFactory.ts
|
|
2
4
|
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.replace(/^private static class/m, 'static class')
|
|
55
|
-
.replace(new RegExp(`public static void Apply\\(object\\s+${contextName}\\)`), `public static void Apply(${contextType} ${contextName})`)
|
|
56
|
-
.replace(/\)\s*{\n/g, ')\n {\n')
|
|
57
|
-
.replace(/;\}/g, ';\n }');
|
|
58
|
-
}
|
|
59
|
-
}
|
|
5
|
+
* Produces the hashed helper class that wraps user-supplied `classBody` content.
|
|
6
|
+
*
|
|
7
|
+
* The helper has the shape:
|
|
8
|
+
*
|
|
9
|
+
* ```csharp
|
|
10
|
+
* static class UAPKG_<hash>
|
|
11
|
+
* {
|
|
12
|
+
* public static void Apply(ModuleRules|TargetRules rules|target)
|
|
13
|
+
* {
|
|
14
|
+
* <user body>
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* We use `@amplication/csharp-ast` to generate a syntactically valid class and
|
|
20
|
+
* then patch the output:
|
|
21
|
+
* * strip an invalid `using ;` line the library emits for empty namespaces;
|
|
22
|
+
* * retype the `object` parameter back to the requested ModuleRules/TargetRules.
|
|
23
|
+
*/
|
|
24
|
+
var CSharpWrapperFactory = class {
|
|
25
|
+
createWrapper(className, contextType, contextName, body) {
|
|
26
|
+
const wrapperClass = new CSharpAst.Class({
|
|
27
|
+
name: className,
|
|
28
|
+
namespace: "",
|
|
29
|
+
access: "private",
|
|
30
|
+
static_: true,
|
|
31
|
+
isNestedClass: true
|
|
32
|
+
});
|
|
33
|
+
const applyMethod = new CSharpAst.Method({
|
|
34
|
+
name: "Apply",
|
|
35
|
+
access: "public",
|
|
36
|
+
isAsync: false,
|
|
37
|
+
type: CSharpAst.MethodType.STATIC,
|
|
38
|
+
parameters: [new CSharpAst.Parameter({
|
|
39
|
+
name: contextName,
|
|
40
|
+
type: CSharpAst.Type.object()
|
|
41
|
+
})],
|
|
42
|
+
body: new CSharpAst.CodeBlock({ code: body.trim() })
|
|
43
|
+
});
|
|
44
|
+
wrapperClass.addMethod(applyMethod);
|
|
45
|
+
const writer = new CSharpAst.Writer({});
|
|
46
|
+
writer.writeNode(wrapperClass);
|
|
47
|
+
return this.normalize(writer.toString(), contextType, contextName);
|
|
48
|
+
}
|
|
49
|
+
normalize(source, contextType, contextName) {
|
|
50
|
+
return source.trim().replace(/[ \t]+\n/g, "\n").replace(/^private static class/m, "static class").replace(new RegExp(`public static void Apply\\(object\\s+${contextName}\\)`), `public static void Apply(${contextType} ${contextName})`).replace(/\)\s*{\n/g, ")\n {\n").replace(/;\}/g, ";\n }");
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export { CSharpWrapperFactory };
|
|
60
56
|
//# sourceMappingURL=CSharpWrapperFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSharpWrapperFactory.js","
|
|
1
|
+
{"version":3,"file":"CSharpWrapperFactory.js","names":[],"sources":["../../../src/postinstall/unreal/CSharpWrapperFactory.ts"],"sourcesContent":["import * as CSharpAst from '@amplication/csharp-ast';\n\nexport type WrapperContextType = 'ModuleRules' | 'TargetRules';\n\n/**\n * Produces the hashed helper class that wraps user-supplied `classBody` content.\n *\n * The helper has the shape:\n *\n * ```csharp\n * static class UAPKG_<hash>\n * {\n * public static void Apply(ModuleRules|TargetRules rules|target)\n * {\n * <user body>\n * }\n * }\n * ```\n *\n * We use `@amplication/csharp-ast` to generate a syntactically valid class and\n * then patch the output:\n * * strip an invalid `using ;` line the library emits for empty namespaces;\n * * retype the `object` parameter back to the requested ModuleRules/TargetRules.\n */\nexport class CSharpWrapperFactory {\n public createWrapper(className: string, contextType: WrapperContextType, contextName: string, body: string): string {\n const wrapperClass = new CSharpAst.Class({\n name: className,\n namespace: '',\n access: 'private',\n static_: true,\n isNestedClass: true,\n });\n const applyMethod = new CSharpAst.Method({\n name: 'Apply',\n access: 'public',\n isAsync: false,\n type: CSharpAst.MethodType.STATIC,\n parameters: [\n new CSharpAst.Parameter({\n name: contextName,\n // csharp-ast adds invalid `using ;` when ClassReference namespace is empty.\n // We emit with `object` and patch to ModuleRules/TargetRules below.\n type: CSharpAst.Type.object(),\n }),\n ],\n body: new CSharpAst.CodeBlock({ code: body.trim() }),\n });\n wrapperClass.addMethod(applyMethod);\n\n const writer = new CSharpAst.Writer({});\n writer.writeNode(wrapperClass);\n return this.normalize(writer.toString(), contextType, contextName);\n }\n\n private normalize(source: string, contextType: WrapperContextType, contextName: string): string {\n const withoutTrailing = source.trim().replace(/[ \\t]+\\n/g, '\\n');\n return withoutTrailing\n .replace(/^private static class/m, 'static class')\n .replace(\n new RegExp(`public static void Apply\\\\(object\\\\s+${contextName}\\\\)`),\n `public static void Apply(${contextType} ${contextName})`,\n )\n .replace(/\\)\\s*{\\n/g, ')\\n {\\n')\n .replace(/;\\}/g, ';\\n }');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,IAAa,uBAAb,MAAkC;CAChC,AAAO,cAAc,WAAmB,aAAiC,aAAqB,MAAsB;EAClH,MAAM,eAAe,IAAI,UAAU,MAAM;GACvC,MAAM;GACN,WAAW;GACX,QAAQ;GACR,SAAS;GACT,eAAe;EACjB,CAAC;EACD,MAAM,cAAc,IAAI,UAAU,OAAO;GACvC,MAAM;GACN,QAAQ;GACR,SAAS;GACT,MAAM,UAAU,WAAW;GAC3B,YAAY,CACV,IAAI,UAAU,UAAU;IACtB,MAAM;IAGN,MAAM,UAAU,KAAK,OAAO;GAC9B,CAAC,CACH;GACA,MAAM,IAAI,UAAU,UAAU,EAAE,MAAM,KAAK,KAAK,EAAE,CAAC;EACrD,CAAC;EACD,aAAa,UAAU,WAAW;EAElC,MAAM,SAAS,IAAI,UAAU,OAAO,CAAC,CAAC;EACtC,OAAO,UAAU,YAAY;EAC7B,OAAO,KAAK,UAAU,OAAO,SAAS,GAAG,aAAa,WAAW;CACnE;CAEA,AAAQ,UAAU,QAAgB,aAAiC,aAA6B;EAE9F,OADwB,OAAO,KAAK,CAAC,CAAC,QAAQ,aAAa,IACtC,CAAC,CACnB,QAAQ,0BAA0B,cAAc,CAAC,CACjD,QACC,IAAI,OAAO,wCAAwC,YAAY,IAAI,GACnE,4BAA4B,YAAY,GAAG,YAAY,EACzD,CAAC,CACA,QAAQ,aAAa,YAAY,CAAC,CAClC,QAAQ,QAAQ,UAAU;CAC/B;AACF"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
//#region src/postinstall/unreal/PluginHash.d.ts
|
|
1
2
|
/** Deterministic 8-char SHA-1 hash of a plugin name; used for uniquely-named helper classes. */
|
|
2
|
-
|
|
3
|
+
declare function getPluginHash(pluginName: string): string;
|
|
3
4
|
/**
|
|
4
5
|
* Name of the nested helper class uapkg injects into a Build.cs / Target.cs.
|
|
5
6
|
* Hashed so two plugins can never collide inside the same module or target.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
declare function getWrapperClassName(pluginName: string): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { getPluginHash, getWrapperClassName };
|
|
8
11
|
//# sourceMappingURL=PluginHash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginHash.d.ts","
|
|
1
|
+
{"version":3,"file":"PluginHash.d.ts","names":[],"sources":["../../../src/postinstall/unreal/PluginHash.ts"],"mappings":";;iBAGgB,cAAc;;;;;iBAQd,oBAAoB"}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import { createHash } from
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
|
|
3
|
+
//#region src/postinstall/unreal/PluginHash.ts
|
|
2
4
|
/** Deterministic 8-char SHA-1 hash of a plugin name; used for uniquely-named helper classes. */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
function getPluginHash(pluginName) {
|
|
6
|
+
return createHash("sha1").update(pluginName).digest("hex").slice(0, 8).toLowerCase();
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
* Name of the nested helper class uapkg injects into a Build.cs / Target.cs.
|
|
10
|
+
* Hashed so two plugins can never collide inside the same module or target.
|
|
11
|
+
*/
|
|
12
|
+
function getWrapperClassName(pluginName) {
|
|
13
|
+
return `UAPKG_${getPluginHash(pluginName)}`;
|
|
12
14
|
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { getPluginHash, getWrapperClassName };
|
|
13
18
|
//# sourceMappingURL=PluginHash.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginHash.js","
|
|
1
|
+
{"version":3,"file":"PluginHash.js","names":[],"sources":["../../../src/postinstall/unreal/PluginHash.ts"],"sourcesContent":["import { createHash } from 'node:crypto';\n\n/** Deterministic 8-char SHA-1 hash of a plugin name; used for uniquely-named helper classes. */\nexport function getPluginHash(pluginName: string): string {\n return createHash('sha1').update(pluginName).digest('hex').slice(0, 8).toLowerCase();\n}\n\n/**\n * Name of the nested helper class uapkg injects into a Build.cs / Target.cs.\n * Hashed so two plugins can never collide inside the same module or target.\n */\nexport function getWrapperClassName(pluginName: string): string {\n return `UAPKG_${getPluginHash(pluginName)}`;\n}\n"],"mappings":";;;;AAGA,SAAgB,cAAc,YAA4B;CACxD,OAAO,WAAW,MAAM,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,YAAY;AACrF;;;;;AAMA,SAAgB,oBAAoB,YAA4B;CAC9D,OAAO,SAAS,cAAc,UAAU;AAC1C"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/postinstall/unreal/PrettyParseError.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Structured parse failure for C# build files. Emitted as the `reason` payload
|
|
3
4
|
* of `POSTINSTALL_LOAD_FAILED`-adjacent diagnostics by injector callers.
|
|
@@ -6,10 +7,12 @@
|
|
|
6
7
|
* it composes cleanly with `try/catch`, but the new postinstall subsystem never
|
|
7
8
|
* lets it escape — injectors catch and convert to diagnostics.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
declare class PrettyParseError extends Error {
|
|
11
|
+
readonly filePath: string;
|
|
12
|
+
readonly line: number;
|
|
13
|
+
readonly column: number;
|
|
14
|
+
constructor(filePath: string, message: string, source: string, index: number);
|
|
14
15
|
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { PrettyParseError };
|
|
15
18
|
//# sourceMappingURL=PrettyParseError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrettyParseError.d.ts","
|
|
1
|
+
{"version":3,"file":"PrettyParseError.d.ts","names":[],"sources":["../../../src/postinstall/unreal/PrettyParseError.ts"],"mappings":";;;;;;;;;cAQa,yBAAyB;WACpB;WACA;WACA;EAEhB,YAAmB,kBAAkB,iBAAiB,gBAAgB"}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
+
//#region src/postinstall/unreal/PrettyParseError.ts
|
|
1
2
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
3
|
+
* Structured parse failure for C# build files. Emitted as the `reason` payload
|
|
4
|
+
* of `POSTINSTALL_LOAD_FAILED`-adjacent diagnostics by injector callers.
|
|
5
|
+
*
|
|
6
|
+
* Unlike the legacy version this class is still a standard `Error` subclass so
|
|
7
|
+
* it composes cleanly with `try/catch`, but the new postinstall subsystem never
|
|
8
|
+
* lets it escape — injectors catch and convert to diagnostics.
|
|
9
|
+
*/
|
|
10
|
+
var PrettyParseError = class extends Error {
|
|
11
|
+
filePath;
|
|
12
|
+
line;
|
|
13
|
+
column;
|
|
14
|
+
constructor(filePath, message, source, index) {
|
|
15
|
+
const { line, column } = toLineAndColumn(source, index);
|
|
16
|
+
const snippet = formatSnippet(source, line, column);
|
|
17
|
+
super(`${filePath}:${line}:${column} ${message}\n${snippet}`);
|
|
18
|
+
this.name = "PrettyParseError";
|
|
19
|
+
this.filePath = filePath;
|
|
20
|
+
this.line = line;
|
|
21
|
+
this.column = column;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
23
24
|
function toLineAndColumn(source, index) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
return { line, column };
|
|
25
|
+
let line = 1;
|
|
26
|
+
let column = 1;
|
|
27
|
+
const limit = Math.min(index, source.length);
|
|
28
|
+
for (let i = 0; i < limit; i += 1) if (source[i] === "\n") {
|
|
29
|
+
line += 1;
|
|
30
|
+
column = 1;
|
|
31
|
+
} else column += 1;
|
|
32
|
+
return {
|
|
33
|
+
line,
|
|
34
|
+
column
|
|
35
|
+
};
|
|
37
36
|
}
|
|
38
37
|
function formatSnippet(source, line, column) {
|
|
39
|
-
|
|
40
|
-
const lineText = lines[line - 1] ?? '';
|
|
41
|
-
return `${lineText}\n${' '.repeat(Math.max(0, column - 1))}^`;
|
|
38
|
+
return `${source.split(/\r?\n/)[line - 1] ?? ""}\n${" ".repeat(Math.max(0, column - 1))}^`;
|
|
42
39
|
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { PrettyParseError };
|
|
43
43
|
//# sourceMappingURL=PrettyParseError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrettyParseError.js","
|
|
1
|
+
{"version":3,"file":"PrettyParseError.js","names":[],"sources":["../../../src/postinstall/unreal/PrettyParseError.ts"],"sourcesContent":["/**\n * Structured parse failure for C# build files. Emitted as the `reason` payload\n * of `POSTINSTALL_LOAD_FAILED`-adjacent diagnostics by injector callers.\n *\n * Unlike the legacy version this class is still a standard `Error` subclass so\n * it composes cleanly with `try/catch`, but the new postinstall subsystem never\n * lets it escape — injectors catch and convert to diagnostics.\n */\nexport class PrettyParseError extends Error {\n public readonly filePath: string;\n public readonly line: number;\n public readonly column: number;\n\n public constructor(filePath: string, message: string, source: string, index: number) {\n const { line, column } = toLineAndColumn(source, index);\n const snippet = formatSnippet(source, line, column);\n super(`${filePath}:${line}:${column} ${message}\\n${snippet}`);\n this.name = 'PrettyParseError';\n this.filePath = filePath;\n this.line = line;\n this.column = column;\n }\n}\n\nfunction toLineAndColumn(source: string, index: number): { line: number; column: number } {\n let line = 1;\n let column = 1;\n const limit = Math.min(index, source.length);\n for (let i = 0; i < limit; i += 1) {\n if (source[i] === '\\n') {\n line += 1;\n column = 1;\n } else {\n column += 1;\n }\n }\n return { line, column };\n}\n\nfunction formatSnippet(source: string, line: number, column: number): string {\n const lines = source.split(/\\r?\\n/);\n const lineText = lines[line - 1] ?? '';\n return `${lineText}\\n${' '.repeat(Math.max(0, column - 1))}^`;\n}\n"],"mappings":";;;;;;;;;AAQA,IAAa,mBAAb,cAAsC,MAAM;CAC1C,AAAgB;CAChB,AAAgB;CAChB,AAAgB;CAEhB,AAAO,YAAY,UAAkB,SAAiB,QAAgB,OAAe;EACnF,MAAM,EAAE,MAAM,WAAW,gBAAgB,QAAQ,KAAK;EACtD,MAAM,UAAU,cAAc,QAAQ,MAAM,MAAM;EAClD,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,IAAI,SAAS;EAC5D,KAAK,OAAO;EACZ,KAAK,WAAW;EAChB,KAAK,OAAO;EACZ,KAAK,SAAS;CAChB;AACF;AAEA,SAAS,gBAAgB,QAAgB,OAAiD;CACxF,IAAI,OAAO;CACX,IAAI,SAAS;CACb,MAAM,QAAQ,KAAK,IAAI,OAAO,OAAO,MAAM;CAC3C,KAAK,IAAI,IAAI,GAAG,IAAI,OAAO,KAAK,GAC9B,IAAI,OAAO,OAAO,MAAM;EACtB,QAAQ;EACR,SAAS;CACX,OACE,UAAU;CAGd,OAAO;EAAE;EAAM;CAAO;AACxB;AAEA,SAAS,cAAc,QAAgB,MAAc,QAAwB;CAG3E,OAAO,GAFO,OAAO,MAAM,OACN,CAAC,CAAC,OAAO,MAAM,GACjB,IAAI,IAAI,OAAO,KAAK,IAAI,GAAG,SAAS,CAAC,CAAC,EAAE;AAC7D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/postinstall/unreal/ProjectFileLocator.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Pure-IO locator for Unreal build-tree anchors:
|
|
3
4
|
* * `*.Build.cs` files under `<projectRoot>/Source`
|
|
@@ -7,14 +8,16 @@
|
|
|
7
8
|
* This module does no parsing; {@link UnrealSourceCatalog} pairs the returned
|
|
8
9
|
* paths with a {@link CSharpStructureAnalyzer} to validate them.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
declare class ProjectFileLocator {
|
|
12
|
+
findBuildFiles(projectRoot: string): string[];
|
|
13
|
+
findTargetFiles(projectRoot: string): string[];
|
|
14
|
+
/**
|
|
15
|
+
* Returns the single `.uproject` file at `projectRoot`, or throws if 0 or 2+
|
|
16
|
+
* exist. Callers in the new subsystem catch and convert to diagnostics.
|
|
17
|
+
*/
|
|
18
|
+
findProjectFile(projectRoot: string): string;
|
|
19
|
+
private findBySuffix;
|
|
19
20
|
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ProjectFileLocator };
|
|
20
23
|
//# sourceMappingURL=ProjectFileLocator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectFileLocator.d.ts","
|
|
1
|
+
{"version":3,"file":"ProjectFileLocator.d.ts","names":[],"sources":["../../../src/postinstall/unreal/ProjectFileLocator.ts"],"mappings":";;;;;;;;;;cAYa;EACJ,eAAe;EAIf,gBAAgB;;;;;EAQhB,gBAAgB;UAWf"}
|
|
@@ -1,53 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as path$1 from "node:path";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
|
|
4
|
+
//#region src/postinstall/unreal/ProjectFileLocator.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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
return files.sort((a, b) => a.localeCompare(b));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
6
|
+
* Pure-IO locator for Unreal build-tree anchors:
|
|
7
|
+
* * `*.Build.cs` files under `<projectRoot>/Source`
|
|
8
|
+
* * `*.Target.cs` files under `<projectRoot>/Source`
|
|
9
|
+
* * The single `*.uproject` at the project root.
|
|
10
|
+
*
|
|
11
|
+
* This module does no parsing; {@link UnrealSourceCatalog} pairs the returned
|
|
12
|
+
* paths with a {@link CSharpStructureAnalyzer} to validate them.
|
|
13
|
+
*/
|
|
14
|
+
var ProjectFileLocator = class {
|
|
15
|
+
findBuildFiles(projectRoot) {
|
|
16
|
+
return this.findBySuffix(path$1.join(projectRoot, "Source"), ".Build.cs");
|
|
17
|
+
}
|
|
18
|
+
findTargetFiles(projectRoot) {
|
|
19
|
+
return this.findBySuffix(path$1.join(projectRoot, "Source"), ".Target.cs");
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns the single `.uproject` file at `projectRoot`, or throws if 0 or 2+
|
|
23
|
+
* exist. Callers in the new subsystem catch and convert to diagnostics.
|
|
24
|
+
*/
|
|
25
|
+
findProjectFile(projectRoot) {
|
|
26
|
+
const entries = fs.readdirSync(projectRoot, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.toLowerCase().endsWith(".uproject")).map((entry) => path$1.join(projectRoot, entry.name));
|
|
27
|
+
if (entries.length !== 1) throw new Error(`Expected exactly one .uproject in ${projectRoot}, found ${entries.length}`);
|
|
28
|
+
return entries[0];
|
|
29
|
+
}
|
|
30
|
+
findBySuffix(root, suffix) {
|
|
31
|
+
if (!fs.existsSync(root)) return [];
|
|
32
|
+
const files = [];
|
|
33
|
+
const stack = [root];
|
|
34
|
+
while (stack.length > 0) {
|
|
35
|
+
const current = stack.pop();
|
|
36
|
+
for (const entry of fs.readdirSync(current, { withFileTypes: true })) {
|
|
37
|
+
const fullPath = path$1.join(current, entry.name);
|
|
38
|
+
if (entry.isDirectory()) {
|
|
39
|
+
stack.push(fullPath);
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (entry.isFile() && fullPath.endsWith(suffix)) files.push(fullPath);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return files.sort((a, b) => a.localeCompare(b));
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
//#endregion
|
|
50
|
+
export { ProjectFileLocator };
|
|
53
51
|
//# sourceMappingURL=ProjectFileLocator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectFileLocator.js","
|
|
1
|
+
{"version":3,"file":"ProjectFileLocator.js","names":["path"],"sources":["../../../src/postinstall/unreal/ProjectFileLocator.ts"],"sourcesContent":["import fs from 'node:fs';\nimport * as path from 'node:path';\n\n/**\n * Pure-IO locator for Unreal build-tree anchors:\n * * `*.Build.cs` files under `<projectRoot>/Source`\n * * `*.Target.cs` files under `<projectRoot>/Source`\n * * The single `*.uproject` at the project root.\n *\n * This module does no parsing; {@link UnrealSourceCatalog} pairs the returned\n * paths with a {@link CSharpStructureAnalyzer} to validate them.\n */\nexport class ProjectFileLocator {\n public findBuildFiles(projectRoot: string): string[] {\n return this.findBySuffix(path.join(projectRoot, 'Source'), '.Build.cs');\n }\n\n public findTargetFiles(projectRoot: string): string[] {\n return this.findBySuffix(path.join(projectRoot, 'Source'), '.Target.cs');\n }\n\n /**\n * Returns the single `.uproject` file at `projectRoot`, or throws if 0 or 2+\n * exist. Callers in the new subsystem catch and convert to diagnostics.\n */\n public findProjectFile(projectRoot: string): string {\n const entries = fs\n .readdirSync(projectRoot, { withFileTypes: true })\n .filter((entry) => entry.isFile() && entry.name.toLowerCase().endsWith('.uproject'))\n .map((entry) => path.join(projectRoot, entry.name));\n if (entries.length !== 1) {\n throw new Error(`Expected exactly one .uproject in ${projectRoot}, found ${entries.length}`);\n }\n return entries[0];\n }\n\n private findBySuffix(root: string, suffix: string): string[] {\n if (!fs.existsSync(root)) return [];\n\n const files: string[] = [];\n const stack = [root];\n while (stack.length > 0) {\n const current = stack.pop() as string;\n for (const entry of fs.readdirSync(current, { withFileTypes: true })) {\n const fullPath = path.join(current, entry.name);\n if (entry.isDirectory()) {\n stack.push(fullPath);\n continue;\n }\n if (entry.isFile() && fullPath.endsWith(suffix)) files.push(fullPath);\n }\n }\n return files.sort((a, b) => a.localeCompare(b));\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,IAAa,qBAAb,MAAgC;CAC9B,AAAO,eAAe,aAA+B;EACnD,OAAO,KAAK,aAAaA,OAAK,KAAK,aAAa,QAAQ,GAAG,WAAW;CACxE;CAEA,AAAO,gBAAgB,aAA+B;EACpD,OAAO,KAAK,aAAaA,OAAK,KAAK,aAAa,QAAQ,GAAG,YAAY;CACzE;;;;;CAMA,AAAO,gBAAgB,aAA6B;EAClD,MAAM,UAAU,GACb,YAAY,aAAa,EAAE,eAAe,KAAK,CAAC,CAAC,CACjD,QAAQ,UAAU,MAAM,OAAO,KAAK,MAAM,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,CACnF,KAAK,UAAUA,OAAK,KAAK,aAAa,MAAM,IAAI,CAAC;EACpD,IAAI,QAAQ,WAAW,GACrB,MAAM,IAAI,MAAM,qCAAqC,YAAY,UAAU,QAAQ,QAAQ;EAE7F,OAAO,QAAQ;CACjB;CAEA,AAAQ,aAAa,MAAc,QAA0B;EAC3D,IAAI,CAAC,GAAG,WAAW,IAAI,GAAG,OAAO,CAAC;EAElC,MAAM,QAAkB,CAAC;EACzB,MAAM,QAAQ,CAAC,IAAI;EACnB,OAAO,MAAM,SAAS,GAAG;GACvB,MAAM,UAAU,MAAM,IAAI;GAC1B,KAAK,MAAM,SAAS,GAAG,YAAY,SAAS,EAAE,eAAe,KAAK,CAAC,GAAG;IACpE,MAAM,WAAWA,OAAK,KAAK,SAAS,MAAM,IAAI;IAC9C,IAAI,MAAM,YAAY,GAAG;KACvB,MAAM,KAAK,QAAQ;KACnB;IACF;IACA,IAAI,MAAM,OAAO,KAAK,SAAS,SAAS,MAAM,GAAG,MAAM,KAAK,QAAQ;GACtE;EACF;EACA,OAAO,MAAM,MAAM,GAAG,MAAM,EAAE,cAAc,CAAC,CAAC;CAChD;AACF"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { ZoneDefinition } from "../api/PostinstallDsl.js";
|
|
2
|
+
import { MarkerBlockEditor } from "../markers/MarkerBlockEditor.js";
|
|
3
|
+
import { CSharpInjectionEngine } from "./CSharpInjectionEngine.js";
|
|
4
|
+
import { CSharpStructureAnalyzer } from "./CSharpStructureAnalyzer.js";
|
|
5
|
+
import { CSharpWrapperFactory } from "./CSharpWrapperFactory.js";
|
|
6
|
+
import { Result } from "@uapkg/diagnostics";
|
|
7
|
+
//#region src/postinstall/unreal/TargetCsInjector.d.ts
|
|
7
8
|
/**
|
|
8
9
|
* Injects a plugin's `setupTargets` content into a single `*.Target.cs` file.
|
|
9
10
|
*
|
|
@@ -12,12 +13,14 @@ import { CSharpWrapperFactory } from './CSharpWrapperFactory.js';
|
|
|
12
13
|
* Pre-existing owned marker blocks are integrity-checked before mutation and
|
|
13
14
|
* surfaced as `POSTINSTALL_MARKER_CORRUPT` on failure.
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
declare class TargetCsInjector {
|
|
17
|
+
private readonly analyzer;
|
|
18
|
+
private readonly wrapperFactory;
|
|
19
|
+
private readonly injector;
|
|
20
|
+
private readonly markerEditor;
|
|
21
|
+
constructor(analyzer?: CSharpStructureAnalyzer, wrapperFactory?: CSharpWrapperFactory, injector?: CSharpInjectionEngine, markerEditor?: MarkerBlockEditor);
|
|
22
|
+
apply(filePath: string, pluginName: string, zones: ZoneDefinition): Result<void>;
|
|
22
23
|
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { TargetCsInjector };
|
|
23
26
|
//# sourceMappingURL=TargetCsInjector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TargetCsInjector.d.ts","
|
|
1
|
+
{"version":3,"file":"TargetCsInjector.d.ts","names":[],"sources":["../../../src/postinstall/unreal/TargetCsInjector.ts"],"mappings":";;;;;;;;;;;;;;;cAmBa;mBAEQ;mBACA;mBACA;mBACA;EAJnB,YACmB,WAAU,yBACV,iBAAgB,sBAChB,WAAU,uBACV,eAAc;EAG1B,MAAM,kBAAkB,oBAAoB,OAAO,iBAAiB"}
|