@uapkg/cli 1.2.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 -129
- 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 -244
- package/dist/commands/PublishCommand.js.map +1 -1
- package/dist/commands/RegistryCommand.d.ts +38 -35
- package/dist/commands/RegistryCommand.d.ts.map +1 -1
- package/dist/commands/RegistryCommand.js +195 -223
- package/dist/commands/RegistryCommand.js.map +1 -1
- package/dist/commands/RemoveCommand.d.ts +14 -11
- package/dist/commands/RemoveCommand.d.ts.map +1 -1
- package/dist/commands/RemoveCommand.js +47 -54
- package/dist/commands/RemoveCommand.js.map +1 -1
- package/dist/commands/RequestsCommand.d.ts +21 -18
- package/dist/commands/RequestsCommand.d.ts.map +1 -1
- package/dist/commands/RequestsCommand.js +82 -95
- package/dist/commands/RequestsCommand.js.map +1 -1
- package/dist/commands/UpdateCommand.d.ts +29 -26
- package/dist/commands/UpdateCommand.d.ts.map +1 -1
- package/dist/commands/UpdateCommand.js +111 -111
- package/dist/commands/UpdateCommand.js.map +1 -1
- package/dist/commands/WhoamiCommand.d.ts +30 -27
- package/dist/commands/WhoamiCommand.d.ts.map +1 -1
- package/dist/commands/WhoamiCommand.js +63 -72
- package/dist/commands/WhoamiCommand.js.map +1 -1
- package/dist/commands/WhyCommand.d.ts +13 -10
- package/dist/commands/WhyCommand.d.ts.map +1 -1
- package/dist/commands/WhyCommand.js +45 -44
- package/dist/commands/WhyCommand.js.map +1 -1
- package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
- package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
- package/dist/commands/add/DependencyAddResolver.js +36 -36
- package/dist/commands/add/DependencyAddResolver.js.map +1 -1
- package/dist/control-plane/AccountManager.d.ts +96 -94
- package/dist/control-plane/AccountManager.d.ts.map +1 -1
- package/dist/control-plane/AccountManager.js +775 -967
- package/dist/control-plane/AccountManager.js.map +1 -1
- package/dist/control-plane/ArtifactObserver.d.ts +19 -16
- package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
- package/dist/control-plane/ArtifactObserver.js +73 -59
- package/dist/control-plane/ArtifactObserver.js.map +1 -1
- package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
- package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
- package/dist/control-plane/AuthMetadataStore.js +111 -113
- package/dist/control-plane/AuthMetadataStore.js.map +1 -1
- package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
- package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
- package/dist/control-plane/AuthStoragePaths.js +19 -14
- package/dist/control-plane/AuthStoragePaths.js.map +1 -1
- package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
- package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
- package/dist/control-plane/AuthenticationSelector.js +69 -63
- package/dist/control-plane/AuthenticationSelector.js.map +1 -1
- package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
- package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneClient.js +265 -254
- package/dist/control-plane/ControlPlaneClient.js.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
- package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
- package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
- package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.js +88 -81
- package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
- package/dist/control-plane/CredentialStore.d.ts +20 -18
- package/dist/control-plane/CredentialStore.d.ts.map +1 -1
- package/dist/control-plane/CredentialStore.js +66 -83
- package/dist/control-plane/CredentialStore.js.map +1 -1
- package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
- package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
- package/dist/control-plane/DPoPKeyStore.js +57 -53
- package/dist/control-plane/DPoPKeyStore.js.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
- package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.js +97 -68
- package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
- package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
- package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
- package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
- package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
- package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
- package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
- package/dist/control-plane/RegistryGrantLock.js +149 -185
- package/dist/control-plane/RegistryGrantLock.js.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
- package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.js +97 -132
- package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
- package/dist/index.d.ts +62 -39
- package/dist/index.js +60 -53
- package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
- package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
- package/dist/postinstall/api/PostinstallDsl.js +32 -35
- package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
- package/dist/postinstall/api/definePostinstall.d.ts +5 -2
- package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
- package/dist/postinstall/api/definePostinstall.js +20 -16
- package/dist/postinstall/api/definePostinstall.js.map +1 -1
- package/dist/postinstall/index.d.ts +25 -26
- package/dist/postinstall/index.js +25 -37
- package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
- package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
- package/dist/postinstall/loader/EntryResolver.js +36 -32
- package/dist/postinstall/loader/EntryResolver.js.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
- package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
- package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
- package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
- package/dist/postinstall/loader/ExportValidator.js +36 -32
- package/dist/postinstall/loader/ExportValidator.js.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
- package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.js +50 -58
- package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
- package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.js +62 -58
- package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
- package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
- package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.js +44 -44
- package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
- package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
- package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
- package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
- package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
- package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
- package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.js +1 -2
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
- package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
- package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
- package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
- package/dist/postinstall/unreal/PluginHash.js +13 -8
- package/dist/postinstall/unreal/PluginHash.js.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
- package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.js +37 -37
- package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
- package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
- package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
- package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.js +56 -52
- package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
- package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
- package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
- package/dist/prompts/InkPromptService.d.ts +10 -7
- package/dist/prompts/InkPromptService.d.ts.map +1 -1
- package/dist/prompts/InkPromptService.js +100 -71
- package/dist/prompts/InkPromptService.js.map +1 -1
- package/dist/prompts/ProjectContextDetector.d.ts +10 -7
- package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
- package/dist/prompts/ProjectContextDetector.js +32 -26
- package/dist/prompts/ProjectContextDetector.js.map +1 -1
- package/dist/prompts/PromptService.d.ts +11 -8
- package/dist/prompts/PromptService.d.ts.map +1 -1
- package/dist/prompts/PromptService.js +1 -8
- package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
- package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
- package/dist/reporting/DiagnosticDeduplicator.js +36 -35
- package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
- package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/DiagnosticRenderer.js +1 -2
- package/dist/reporting/DiagnosticReporter.d.ts +12 -9
- package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
- package/dist/reporting/DiagnosticReporter.js +40 -39
- package/dist/reporting/DiagnosticReporter.js.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
- package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.js +50 -42
- package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/InstallProgressReporter.d.ts +23 -20
- package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
- package/dist/reporting/InstallProgressReporter.js +48 -47
- package/dist/reporting/InstallProgressReporter.js.map +1 -1
- package/dist/reporting/JsonReporter.d.ts +16 -13
- package/dist/reporting/JsonReporter.d.ts.map +1 -1
- package/dist/reporting/JsonReporter.js +34 -20
- package/dist/reporting/JsonReporter.js.map +1 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
- package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/TextDiagnosticRenderer.js +36 -28
- package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/TextSink.d.ts +14 -11
- package/dist/reporting/TextSink.d.ts.map +1 -1
- package/dist/reporting/TextSink.js +24 -20
- package/dist/reporting/TextSink.js.map +1 -1
- package/package.json +31 -32
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
- package/dist/cli-bootstrap.d.ts.map +0 -1
- package/dist/commands/Command.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/postinstall/index.d.ts.map +0 -1
- package/dist/postinstall/index.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
- package/dist/prompts/PromptService.js.map +0 -1
- package/dist/reporting/DiagnosticRenderer.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSharpInjectionEngine.d.ts","
|
|
1
|
+
{"version":3,"file":"CSharpInjectionEngine.d.ts","names":[],"sources":["../../../src/postinstall/unreal/CSharpInjectionEngine.ts"],"mappings":";;;;;;;;;;;;;cAaa;mBACyB;EAApC,YAAoC,cAAa;EAE1C,cAAc,gBAAgB,oBAAoB,yBAAyB;EAa3E,kBAAkB,QAAQ,kBAAkB,oBAAoB,wBAAwB;EAWxF,qBACL,QAAQ,kBACR,oBACA,wBACA;UAeM;UAOA"}
|
|
@@ -1,61 +1,58 @@
|
|
|
1
|
-
import { MarkerBlockService } from
|
|
1
|
+
import { MarkerBlockService } from "../markers/MarkerBlockService.js";
|
|
2
|
+
|
|
3
|
+
//#region src/postinstall/unreal/CSharpInjectionEngine.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
|
-
|
|
55
|
-
|
|
56
|
-
const constructorLine = source.slice(lineStart + 1, constructorOpenBraceIndex);
|
|
57
|
-
const constructorIndent = constructorLine.match(/^\s*/)?.[0] ?? '';
|
|
58
|
-
return `${constructorIndent} `;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
5
|
+
* Applies marker-delimited edits to a parsed C# file at three well-known anchors:
|
|
6
|
+
*
|
|
7
|
+
* 1. `applyIncludes` — `using ...;` block just after the last top-level `using`.
|
|
8
|
+
* 2. `applyClassWrapper` — nested helper class inside the rules class body.
|
|
9
|
+
* 3. `applyConstructorCall` — a single statement at the top of the constructor.
|
|
10
|
+
*
|
|
11
|
+
* Every edit is wrapped in an owned `UAPKG-BEGIN/END` marker block so re-running
|
|
12
|
+
* uapkg is idempotent. Existing owned blocks are stripped before re-insert.
|
|
13
|
+
*/
|
|
14
|
+
var CSharpInjectionEngine = class {
|
|
15
|
+
markerBlock;
|
|
16
|
+
constructor(markerBlock = new MarkerBlockService()) {
|
|
17
|
+
this.markerBlock = markerBlock;
|
|
18
|
+
}
|
|
19
|
+
applyIncludes(source, pluginName, includesContent, zone) {
|
|
20
|
+
const withoutOwnedBlock = this.markerBlock.stripOwnedBlock(source, pluginName, zone);
|
|
21
|
+
const includeBlock = this.markerBlock.createBlock(pluginName, zone, includesContent);
|
|
22
|
+
const usingMatches = [...withoutOwnedBlock.matchAll(/^[ \t]*using\s+[^;]+;\s*$/gm)];
|
|
23
|
+
if (usingMatches.length === 0) return `${includeBlock}\n${withoutOwnedBlock}`.trimStart();
|
|
24
|
+
const lastUsing = usingMatches[usingMatches.length - 1];
|
|
25
|
+
const lastUsingIndex = (lastUsing.index ?? 0) + lastUsing[0].length;
|
|
26
|
+
return `${withoutOwnedBlock.slice(0, lastUsingIndex)}\n${includeBlock}\n${withoutOwnedBlock.slice(lastUsingIndex).trimStart()}`;
|
|
27
|
+
}
|
|
28
|
+
applyClassWrapper(parsed, pluginName, wrapperContent, zone) {
|
|
29
|
+
const classStart = parsed.classInfo.classOpenBraceIndex + 1;
|
|
30
|
+
const classEnd = parsed.classInfo.classCloseBraceIndex;
|
|
31
|
+
const classBody = parsed.source.slice(classStart, classEnd);
|
|
32
|
+
const stripped = this.markerBlock.stripOwnedBlock(classBody, pluginName, zone).trimStart();
|
|
33
|
+
const indent = this.detectClassMemberIndent(parsed.source, parsed.classInfo.classOpenBraceIndex);
|
|
34
|
+
const nextBody = `\n${this.markerBlock.createBlock(pluginName, zone, wrapperContent, indent)}\n\n${stripped}`.replace(/\n{3,}/g, "\n\n");
|
|
35
|
+
return `${parsed.source.slice(0, classStart)}${nextBody}${parsed.source.slice(classEnd)}`;
|
|
36
|
+
}
|
|
37
|
+
applyConstructorCall(parsed, pluginName, callExpression, zone) {
|
|
38
|
+
const bodyStart = parsed.constructorInfo.bodyOpenBraceIndex + 1;
|
|
39
|
+
const bodyEnd = parsed.constructorInfo.bodyCloseBraceIndex;
|
|
40
|
+
const body = parsed.source.slice(bodyStart, bodyEnd);
|
|
41
|
+
const withoutOwnedBlock = this.markerBlock.stripOwnedBlock(body, pluginName, zone).trimStart();
|
|
42
|
+
const indent = this.detectConstructorIndent(parsed.source, parsed.constructorInfo.bodyOpenBraceIndex);
|
|
43
|
+
const nextBody = `\n${this.markerBlock.createBlock(pluginName, zone, `${callExpression};`, indent)}\n${withoutOwnedBlock.length > 0 ? `\n${withoutOwnedBlock}` : ""}`.replace(/\n{3,}/g, "\n\n");
|
|
44
|
+
return `${parsed.source.slice(0, bodyStart)}${nextBody}${parsed.source.slice(bodyEnd)}`;
|
|
45
|
+
}
|
|
46
|
+
detectClassMemberIndent(source, classOpenBraceIndex) {
|
|
47
|
+
const lineStart = source.lastIndexOf("\n", classOpenBraceIndex);
|
|
48
|
+
return `${source.slice(lineStart + 1, classOpenBraceIndex).match(/^\s*/)?.[0] ?? ""} `;
|
|
49
|
+
}
|
|
50
|
+
detectConstructorIndent(source, constructorOpenBraceIndex) {
|
|
51
|
+
const lineStart = source.lastIndexOf("\n", constructorOpenBraceIndex);
|
|
52
|
+
return `${source.slice(lineStart + 1, constructorOpenBraceIndex).match(/^\s*/)?.[0] ?? ""} `;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { CSharpInjectionEngine };
|
|
61
58
|
//# sourceMappingURL=CSharpInjectionEngine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSharpInjectionEngine.js","
|
|
1
|
+
{"version":3,"file":"CSharpInjectionEngine.js","names":[],"sources":["../../../src/postinstall/unreal/CSharpInjectionEngine.ts"],"sourcesContent":["import { MarkerBlockService } from '../markers/MarkerBlockService.js';\nimport type { ParsedCSharpFile } from './CSharpStructures.js';\n\n/**\n * Applies marker-delimited edits to a parsed C# file at three well-known anchors:\n *\n * 1. `applyIncludes` — `using ...;` block just after the last top-level `using`.\n * 2. `applyClassWrapper` — nested helper class inside the rules class body.\n * 3. `applyConstructorCall` — a single statement at the top of the constructor.\n *\n * Every edit is wrapped in an owned `UAPKG-BEGIN/END` marker block so re-running\n * uapkg is idempotent. Existing owned blocks are stripped before re-insert.\n */\nexport class CSharpInjectionEngine {\n public constructor(private readonly markerBlock: MarkerBlockService = new MarkerBlockService()) {}\n\n public applyIncludes(source: string, pluginName: string, includesContent: string, zone: string): string {\n const withoutOwnedBlock = this.markerBlock.stripOwnedBlock(source, pluginName, zone);\n const includeBlock = this.markerBlock.createBlock(pluginName, zone, includesContent);\n const usingMatches = [...withoutOwnedBlock.matchAll(/^[ \\t]*using\\s+[^;]+;\\s*$/gm)];\n if (usingMatches.length === 0) {\n return `${includeBlock}\\n${withoutOwnedBlock}`.trimStart();\n }\n\n const lastUsing = usingMatches[usingMatches.length - 1];\n const lastUsingIndex = (lastUsing.index ?? 0) + lastUsing[0].length;\n return `${withoutOwnedBlock.slice(0, lastUsingIndex)}\\n${includeBlock}\\n${withoutOwnedBlock.slice(lastUsingIndex).trimStart()}`;\n }\n\n public applyClassWrapper(parsed: ParsedCSharpFile, pluginName: string, wrapperContent: string, zone: string): string {\n const classStart = parsed.classInfo.classOpenBraceIndex + 1;\n const classEnd = parsed.classInfo.classCloseBraceIndex;\n const classBody = parsed.source.slice(classStart, classEnd);\n const stripped = this.markerBlock.stripOwnedBlock(classBody, pluginName, zone).trimStart();\n const indent = this.detectClassMemberIndent(parsed.source, parsed.classInfo.classOpenBraceIndex);\n const block = this.markerBlock.createBlock(pluginName, zone, wrapperContent, indent);\n const nextBody = `\\n${block}\\n\\n${stripped}`.replace(/\\n{3,}/g, '\\n\\n');\n return `${parsed.source.slice(0, classStart)}${nextBody}${parsed.source.slice(classEnd)}`;\n }\n\n public applyConstructorCall(\n parsed: ParsedCSharpFile,\n pluginName: string,\n callExpression: string,\n zone: string,\n ): string {\n const bodyStart = parsed.constructorInfo.bodyOpenBraceIndex + 1;\n const bodyEnd = parsed.constructorInfo.bodyCloseBraceIndex;\n const body = parsed.source.slice(bodyStart, bodyEnd);\n const withoutOwnedBlock = this.markerBlock.stripOwnedBlock(body, pluginName, zone).trimStart();\n const indent = this.detectConstructorIndent(parsed.source, parsed.constructorInfo.bodyOpenBraceIndex);\n const block = this.markerBlock.createBlock(pluginName, zone, `${callExpression};`, indent);\n const nextBody = `\\n${block}\\n${withoutOwnedBlock.length > 0 ? `\\n${withoutOwnedBlock}` : ''}`.replace(\n /\\n{3,}/g,\n '\\n\\n',\n );\n return `${parsed.source.slice(0, bodyStart)}${nextBody}${parsed.source.slice(bodyEnd)}`;\n }\n\n private detectClassMemberIndent(source: string, classOpenBraceIndex: number): string {\n const lineStart = source.lastIndexOf('\\n', classOpenBraceIndex);\n const classLine = source.slice(lineStart + 1, classOpenBraceIndex);\n const classIndent = classLine.match(/^\\s*/)?.[0] ?? '';\n return `${classIndent} `;\n }\n\n private detectConstructorIndent(source: string, constructorOpenBraceIndex: number): string {\n const lineStart = source.lastIndexOf('\\n', constructorOpenBraceIndex);\n const constructorLine = source.slice(lineStart + 1, constructorOpenBraceIndex);\n const constructorIndent = constructorLine.match(/^\\s*/)?.[0] ?? '';\n return `${constructorIndent} `;\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAa,wBAAb,MAAmC;CACG;CAApC,AAAO,YAAY,AAAiB,cAAkC,IAAI,mBAAmB,GAAG;EAA5D;CAA6D;CAEjG,AAAO,cAAc,QAAgB,YAAoB,iBAAyB,MAAsB;EACtG,MAAM,oBAAoB,KAAK,YAAY,gBAAgB,QAAQ,YAAY,IAAI;EACnF,MAAM,eAAe,KAAK,YAAY,YAAY,YAAY,MAAM,eAAe;EACnF,MAAM,eAAe,CAAC,GAAG,kBAAkB,SAAS,6BAA6B,CAAC;EAClF,IAAI,aAAa,WAAW,GAC1B,OAAO,GAAG,aAAa,IAAI,oBAAoB,UAAU;EAG3D,MAAM,YAAY,aAAa,aAAa,SAAS;EACrD,MAAM,kBAAkB,UAAU,SAAS,KAAK,UAAU,EAAE,CAAC;EAC7D,OAAO,GAAG,kBAAkB,MAAM,GAAG,cAAc,EAAE,IAAI,aAAa,IAAI,kBAAkB,MAAM,cAAc,CAAC,CAAC,UAAU;CAC9H;CAEA,AAAO,kBAAkB,QAA0B,YAAoB,gBAAwB,MAAsB;EACnH,MAAM,aAAa,OAAO,UAAU,sBAAsB;EAC1D,MAAM,WAAW,OAAO,UAAU;EAClC,MAAM,YAAY,OAAO,OAAO,MAAM,YAAY,QAAQ;EAC1D,MAAM,WAAW,KAAK,YAAY,gBAAgB,WAAW,YAAY,IAAI,CAAC,CAAC,UAAU;EACzF,MAAM,SAAS,KAAK,wBAAwB,OAAO,QAAQ,OAAO,UAAU,mBAAmB;EAE/F,MAAM,WAAW,KADH,KAAK,YAAY,YAAY,YAAY,MAAM,gBAAgB,MACnD,EAAE,MAAM,WAAW,QAAQ,WAAW,MAAM;EACtE,OAAO,GAAG,OAAO,OAAO,MAAM,GAAG,UAAU,IAAI,WAAW,OAAO,OAAO,MAAM,QAAQ;CACxF;CAEA,AAAO,qBACL,QACA,YACA,gBACA,MACQ;EACR,MAAM,YAAY,OAAO,gBAAgB,qBAAqB;EAC9D,MAAM,UAAU,OAAO,gBAAgB;EACvC,MAAM,OAAO,OAAO,OAAO,MAAM,WAAW,OAAO;EACnD,MAAM,oBAAoB,KAAK,YAAY,gBAAgB,MAAM,YAAY,IAAI,CAAC,CAAC,UAAU;EAC7F,MAAM,SAAS,KAAK,wBAAwB,OAAO,QAAQ,OAAO,gBAAgB,kBAAkB;EAEpG,MAAM,WAAW,KADH,KAAK,YAAY,YAAY,YAAY,MAAM,GAAG,eAAe,IAAI,MACzD,EAAE,IAAI,kBAAkB,SAAS,IAAI,KAAK,sBAAsB,KAAK,QAC7F,WACA,MACF;EACA,OAAO,GAAG,OAAO,OAAO,MAAM,GAAG,SAAS,IAAI,WAAW,OAAO,OAAO,MAAM,OAAO;CACtF;CAEA,AAAQ,wBAAwB,QAAgB,qBAAqC;EACnF,MAAM,YAAY,OAAO,YAAY,MAAM,mBAAmB;EAG9D,OAAO,GAFW,OAAO,MAAM,YAAY,GAAG,mBAClB,CAAC,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,GAC9B;CACxB;CAEA,AAAQ,wBAAwB,QAAgB,2BAA2C;EACzF,MAAM,YAAY,OAAO,YAAY,MAAM,yBAAyB;EAGpE,OAAO,GAFiB,OAAO,MAAM,YAAY,GAAG,yBACZ,CAAC,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,GACpC;CAC9B;AACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ParsedCSharpFile } from "./CSharpStructures.js";
|
|
2
|
+
//#region src/postinstall/unreal/CSharpStructureAnalyzer.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* Lightweight C# structural parser tailored to Unreal build files.
|
|
4
5
|
*
|
|
@@ -11,12 +12,14 @@ import type { ParsedCSharpFile } from './CSharpStructures.js';
|
|
|
11
12
|
* Lighter-than-AST parsing keeps this file < 200 LOC and avoids pulling a
|
|
12
13
|
* heavyweight runtime into `uapkg install`.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
declare class CSharpStructureAnalyzer {
|
|
16
|
+
parseModule(filePath: string, source: string): ParsedCSharpFile;
|
|
17
|
+
parseTarget(filePath: string, source: string): ParsedCSharpFile;
|
|
18
|
+
private parseFile;
|
|
19
|
+
private findClassesByBase;
|
|
20
|
+
private findConstructor;
|
|
21
|
+
private findMatchingBrace;
|
|
21
22
|
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { CSharpStructureAnalyzer };
|
|
22
25
|
//# sourceMappingURL=CSharpStructureAnalyzer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSharpStructureAnalyzer.d.ts","
|
|
1
|
+
{"version":3,"file":"CSharpStructureAnalyzer.d.ts","names":[],"sources":["../../../src/postinstall/unreal/CSharpStructureAnalyzer.ts"],"mappings":";;;;;;;;;;;;;;cAiBa;EACJ,YAAY,kBAAkB,iBAAiB;EAI/C,YAAY,kBAAkB,iBAAiB;UAQ9C;UAqBA;UAoBA;UAgCA"}
|
|
@@ -1,130 +1,126 @@
|
|
|
1
|
-
import { PrettyParseError } from
|
|
1
|
+
import { PrettyParseError } from "./PrettyParseError.js";
|
|
2
|
+
|
|
3
|
+
//#region src/postinstall/unreal/CSharpStructureAnalyzer.ts
|
|
2
4
|
const CLASS_REGEX = /\bclass\s+([A-Za-z_][A-Za-z0-9_]*)\s*:\s*([^{\r\n]+)/g;
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return i;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
throw new Error('Unbalanced braces in C# file');
|
|
128
|
-
}
|
|
129
|
-
}
|
|
6
|
+
* Lightweight C# structural parser tailored to Unreal build files.
|
|
7
|
+
*
|
|
8
|
+
* We do NOT invoke the Roslyn / csharp-ast graph for analysis because the
|
|
9
|
+
* pipeline only needs three anchors:
|
|
10
|
+
* 1. The single class inheriting `ModuleRules` / `TargetRules`.
|
|
11
|
+
* 2. Its constructor matching `(ModuleRules|TargetRules)(Type Target) : base(Target)`.
|
|
12
|
+
* 3. The body braces of (1) and (2) so injectors can splice content.
|
|
13
|
+
*
|
|
14
|
+
* Lighter-than-AST parsing keeps this file < 200 LOC and avoids pulling a
|
|
15
|
+
* heavyweight runtime into `uapkg install`.
|
|
16
|
+
*/
|
|
17
|
+
var CSharpStructureAnalyzer = class {
|
|
18
|
+
parseModule(filePath, source) {
|
|
19
|
+
return this.parseFile("module", filePath, source, "ModuleRules", "ReadOnlyTargetRules");
|
|
20
|
+
}
|
|
21
|
+
parseTarget(filePath, source) {
|
|
22
|
+
const parsed = this.parseFile("target", filePath, source, "TargetRules", "TargetInfo");
|
|
23
|
+
if (!/\bType\s*=\s*TargetType\.[A-Za-z_][A-Za-z0-9_]*\s*;/.test(source)) throw new PrettyParseError(filePath, "TargetRules file missing `Type = TargetType.X;` assignment", source, 0);
|
|
24
|
+
return parsed;
|
|
25
|
+
}
|
|
26
|
+
parseFile(kind, filePath, source, expectedBaseClass, expectedConstructorArgType) {
|
|
27
|
+
const matchingClasses = this.findClassesByBase(source, expectedBaseClass);
|
|
28
|
+
if (matchingClasses.length !== 1) throw new PrettyParseError(filePath, `Expected exactly one class extending ${expectedBaseClass}, found ${matchingClasses.length}`, source, matchingClasses[0]?.classKeywordIndex ?? 0);
|
|
29
|
+
const classInfo = matchingClasses[0];
|
|
30
|
+
return {
|
|
31
|
+
kind,
|
|
32
|
+
classInfo,
|
|
33
|
+
constructorInfo: this.findConstructor(filePath, source, classInfo, expectedConstructorArgType),
|
|
34
|
+
source
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
findClassesByBase(source, expectedBaseClass) {
|
|
38
|
+
const classes = [];
|
|
39
|
+
for (const match of source.matchAll(CLASS_REGEX)) {
|
|
40
|
+
const className = match[1];
|
|
41
|
+
if (!(match[2] ?? "").split(",").map((item) => item.trim()).some((item) => item === expectedBaseClass) || !className) continue;
|
|
42
|
+
const classKeywordIndex = match.index ?? 0;
|
|
43
|
+
const classOpenBraceIndex = source.indexOf("{", classKeywordIndex);
|
|
44
|
+
if (classOpenBraceIndex < 0) continue;
|
|
45
|
+
const classCloseBraceIndex = this.findMatchingBrace(source, classOpenBraceIndex);
|
|
46
|
+
classes.push({
|
|
47
|
+
className,
|
|
48
|
+
classKeywordIndex,
|
|
49
|
+
classOpenBraceIndex,
|
|
50
|
+
classCloseBraceIndex
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return classes;
|
|
54
|
+
}
|
|
55
|
+
findConstructor(filePath, source, classInfo, expectedConstructorArgType) {
|
|
56
|
+
const classBody = source.slice(classInfo.classOpenBraceIndex + 1, classInfo.classCloseBraceIndex);
|
|
57
|
+
const signatureRegex = new RegExp(`\\bpublic\\s+${classInfo.className}\\s*\\(\\s*${expectedConstructorArgType}\\s+Target\\s*\\)\\s*:\\s*base\\s*\\(\\s*Target\\s*\\)`, "g");
|
|
58
|
+
const matches = [...classBody.matchAll(signatureRegex)];
|
|
59
|
+
if (matches.length !== 1) throw new PrettyParseError(filePath, `Expected exactly one constructor signature for ${classInfo.className}(${expectedConstructorArgType} Target) : base(Target), found ${matches.length}`, source, classInfo.classKeywordIndex);
|
|
60
|
+
const signatureRelativeIndex = matches[0].index ?? 0;
|
|
61
|
+
const signatureIndex = classInfo.classOpenBraceIndex + 1 + signatureRelativeIndex;
|
|
62
|
+
const bodyOpenBraceIndex = source.indexOf("{", signatureIndex);
|
|
63
|
+
if (bodyOpenBraceIndex < 0) throw new PrettyParseError(filePath, "Constructor body opening brace not found", source, signatureIndex);
|
|
64
|
+
return {
|
|
65
|
+
signatureIndex,
|
|
66
|
+
bodyOpenBraceIndex,
|
|
67
|
+
bodyCloseBraceIndex: this.findMatchingBrace(source, bodyOpenBraceIndex)
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
findMatchingBrace(source, openIndex) {
|
|
71
|
+
let depth = 0;
|
|
72
|
+
let inSingleLineComment = false;
|
|
73
|
+
let inMultiLineComment = false;
|
|
74
|
+
let inSingleQuote = false;
|
|
75
|
+
let inDoubleQuote = false;
|
|
76
|
+
for (let i = openIndex; i < source.length; i += 1) {
|
|
77
|
+
const current = source[i];
|
|
78
|
+
const next = source[i + 1];
|
|
79
|
+
const prev = source[i - 1];
|
|
80
|
+
if (inSingleLineComment) {
|
|
81
|
+
if (current === "\n") inSingleLineComment = false;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (inMultiLineComment) {
|
|
85
|
+
if (prev === "*" && current === "/") inMultiLineComment = false;
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (inSingleQuote) {
|
|
89
|
+
if (current === "'" && prev !== "\\") inSingleQuote = false;
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
if (inDoubleQuote) {
|
|
93
|
+
if (current === "\"" && prev !== "\\") inDoubleQuote = false;
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
if (current === "/" && next === "/") {
|
|
97
|
+
inSingleLineComment = true;
|
|
98
|
+
i += 1;
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if (current === "/" && next === "*") {
|
|
102
|
+
inMultiLineComment = true;
|
|
103
|
+
i += 1;
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
if (current === "'") {
|
|
107
|
+
inSingleQuote = true;
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
if (current === "\"") {
|
|
111
|
+
inDoubleQuote = true;
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
if (current === "{") depth += 1;
|
|
115
|
+
else if (current === "}") {
|
|
116
|
+
depth -= 1;
|
|
117
|
+
if (depth === 0) return i;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
throw new Error("Unbalanced braces in C# file");
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
//#endregion
|
|
125
|
+
export { CSharpStructureAnalyzer };
|
|
130
126
|
//# sourceMappingURL=CSharpStructureAnalyzer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSharpStructureAnalyzer.js","
|
|
1
|
+
{"version":3,"file":"CSharpStructureAnalyzer.js","names":[],"sources":["../../../src/postinstall/unreal/CSharpStructureAnalyzer.ts"],"sourcesContent":["import type { CSharpFileKind, ParsedClass, ParsedConstructor, ParsedCSharpFile } from './CSharpStructures.js';\nimport { PrettyParseError } from './PrettyParseError.js';\n\nconst CLASS_REGEX = /\\bclass\\s+([A-Za-z_][A-Za-z0-9_]*)\\s*:\\s*([^{\\r\\n]+)/g;\n\n/**\n * Lightweight C# structural parser tailored to Unreal build files.\n *\n * We do NOT invoke the Roslyn / csharp-ast graph for analysis because the\n * pipeline only needs three anchors:\n * 1. The single class inheriting `ModuleRules` / `TargetRules`.\n * 2. Its constructor matching `(ModuleRules|TargetRules)(Type Target) : base(Target)`.\n * 3. The body braces of (1) and (2) so injectors can splice content.\n *\n * Lighter-than-AST parsing keeps this file < 200 LOC and avoids pulling a\n * heavyweight runtime into `uapkg install`.\n */\nexport class CSharpStructureAnalyzer {\n public parseModule(filePath: string, source: string): ParsedCSharpFile {\n return this.parseFile('module', filePath, source, 'ModuleRules', 'ReadOnlyTargetRules');\n }\n\n public parseTarget(filePath: string, source: string): ParsedCSharpFile {\n const parsed = this.parseFile('target', filePath, source, 'TargetRules', 'TargetInfo');\n if (!/\\bType\\s*=\\s*TargetType\\.[A-Za-z_][A-Za-z0-9_]*\\s*;/.test(source)) {\n throw new PrettyParseError(filePath, 'TargetRules file missing `Type = TargetType.X;` assignment', source, 0);\n }\n return parsed;\n }\n\n private parseFile(\n kind: CSharpFileKind,\n filePath: string,\n source: string,\n expectedBaseClass: string,\n expectedConstructorArgType: string,\n ): ParsedCSharpFile {\n const matchingClasses = this.findClassesByBase(source, expectedBaseClass);\n if (matchingClasses.length !== 1) {\n throw new PrettyParseError(\n filePath,\n `Expected exactly one class extending ${expectedBaseClass}, found ${matchingClasses.length}`,\n source,\n matchingClasses[0]?.classKeywordIndex ?? 0,\n );\n }\n const classInfo = matchingClasses[0];\n const constructorInfo = this.findConstructor(filePath, source, classInfo, expectedConstructorArgType);\n return { kind, classInfo, constructorInfo, source };\n }\n\n private findClassesByBase(source: string, expectedBaseClass: string): ParsedClass[] {\n const classes: ParsedClass[] = [];\n for (const match of source.matchAll(CLASS_REGEX)) {\n const className = match[1];\n const inheritance = match[2] ?? '';\n const inheritsExpected = inheritance\n .split(',')\n .map((item) => item.trim())\n .some((item) => item === expectedBaseClass);\n if (!inheritsExpected || !className) continue;\n\n const classKeywordIndex = match.index ?? 0;\n const classOpenBraceIndex = source.indexOf('{', classKeywordIndex);\n if (classOpenBraceIndex < 0) continue;\n const classCloseBraceIndex = this.findMatchingBrace(source, classOpenBraceIndex);\n classes.push({ className, classKeywordIndex, classOpenBraceIndex, classCloseBraceIndex });\n }\n return classes;\n }\n\n private findConstructor(\n filePath: string,\n source: string,\n classInfo: ParsedClass,\n expectedConstructorArgType: string,\n ): ParsedConstructor {\n const classBody = source.slice(classInfo.classOpenBraceIndex + 1, classInfo.classCloseBraceIndex);\n const signatureRegex = new RegExp(\n `\\\\bpublic\\\\s+${classInfo.className}\\\\s*\\\\(\\\\s*${expectedConstructorArgType}\\\\s+Target\\\\s*\\\\)\\\\s*:\\\\s*base\\\\s*\\\\(\\\\s*Target\\\\s*\\\\)`,\n 'g',\n );\n\n const matches = [...classBody.matchAll(signatureRegex)];\n if (matches.length !== 1) {\n throw new PrettyParseError(\n filePath,\n `Expected exactly one constructor signature for ${classInfo.className}(${expectedConstructorArgType} Target) : base(Target), found ${matches.length}`,\n source,\n classInfo.classKeywordIndex,\n );\n }\n\n const signatureRelativeIndex = matches[0].index ?? 0;\n const signatureIndex = classInfo.classOpenBraceIndex + 1 + signatureRelativeIndex;\n const bodyOpenBraceIndex = source.indexOf('{', signatureIndex);\n if (bodyOpenBraceIndex < 0) {\n throw new PrettyParseError(filePath, 'Constructor body opening brace not found', source, signatureIndex);\n }\n const bodyCloseBraceIndex = this.findMatchingBrace(source, bodyOpenBraceIndex);\n return { signatureIndex, bodyOpenBraceIndex, bodyCloseBraceIndex };\n }\n\n private findMatchingBrace(source: string, openIndex: number): number {\n let depth = 0;\n let inSingleLineComment = false;\n let inMultiLineComment = false;\n let inSingleQuote = false;\n let inDoubleQuote = false;\n for (let i = openIndex; i < source.length; i += 1) {\n const current = source[i];\n const next = source[i + 1];\n const prev = source[i - 1];\n\n if (inSingleLineComment) {\n if (current === '\\n') inSingleLineComment = false;\n continue;\n }\n if (inMultiLineComment) {\n if (prev === '*' && current === '/') inMultiLineComment = false;\n continue;\n }\n if (inSingleQuote) {\n if (current === \"'\" && prev !== '\\\\') inSingleQuote = false;\n continue;\n }\n if (inDoubleQuote) {\n if (current === '\"' && prev !== '\\\\') inDoubleQuote = false;\n continue;\n }\n if (current === '/' && next === '/') {\n inSingleLineComment = true;\n i += 1;\n continue;\n }\n if (current === '/' && next === '*') {\n inMultiLineComment = true;\n i += 1;\n continue;\n }\n if (current === \"'\") {\n inSingleQuote = true;\n continue;\n }\n if (current === '\"') {\n inDoubleQuote = true;\n continue;\n }\n if (current === '{') depth += 1;\n else if (current === '}') {\n depth -= 1;\n if (depth === 0) return i;\n }\n }\n throw new Error('Unbalanced braces in C# file');\n }\n}\n"],"mappings":"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"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/postinstall/unreal/CSharpStructures.d.ts
|
|
2
|
+
type CSharpFileKind = 'module' | 'target';
|
|
3
|
+
interface ParsedClass {
|
|
4
|
+
readonly className: string;
|
|
5
|
+
readonly classKeywordIndex: number;
|
|
6
|
+
readonly classOpenBraceIndex: number;
|
|
7
|
+
readonly classCloseBraceIndex: number;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
interface ParsedConstructor {
|
|
10
|
+
readonly signatureIndex: number;
|
|
11
|
+
readonly bodyOpenBraceIndex: number;
|
|
12
|
+
readonly bodyCloseBraceIndex: number;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
interface ParsedCSharpFile {
|
|
15
|
+
readonly kind: CSharpFileKind;
|
|
16
|
+
readonly classInfo: ParsedClass;
|
|
17
|
+
readonly constructorInfo: ParsedConstructor;
|
|
18
|
+
readonly source: string;
|
|
18
19
|
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { CSharpFileKind, ParsedCSharpFile, ParsedClass, ParsedConstructor };
|
|
19
22
|
//# sourceMappingURL=CSharpStructures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSharpStructures.d.ts","
|
|
1
|
+
{"version":3,"file":"CSharpStructures.d.ts","names":[],"sources":["../../../src/postinstall/unreal/CSharpStructures.ts"],"mappings":";KAAY;UAEK;WACN;WACA;WACA;WACA;;UAGM;WACN;WACA;WACA;;UAGM;WACN,MAAM;WACN,WAAW;WACX,iBAAiB;WACjB"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=CSharpStructures.js.map
|
|
1
|
+
export { };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/postinstall/unreal/CSharpWrapperFactory.d.ts
|
|
2
|
+
type WrapperContextType = 'ModuleRules' | 'TargetRules';
|
|
2
3
|
/**
|
|
3
4
|
* Produces the hashed helper class that wraps user-supplied `classBody` content.
|
|
4
5
|
*
|
|
@@ -19,8 +20,10 @@ export type WrapperContextType = 'ModuleRules' | 'TargetRules';
|
|
|
19
20
|
* * strip an invalid `using ;` line the library emits for empty namespaces;
|
|
20
21
|
* * retype the `object` parameter back to the requested ModuleRules/TargetRules.
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
declare class CSharpWrapperFactory {
|
|
24
|
+
createWrapper(className: string, contextType: WrapperContextType, contextName: string, body: string): string;
|
|
25
|
+
private normalize;
|
|
25
26
|
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { CSharpWrapperFactory, WrapperContextType };
|
|
26
29
|
//# sourceMappingURL=CSharpWrapperFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSharpWrapperFactory.d.ts","
|
|
1
|
+
{"version":3,"file":"CSharpWrapperFactory.d.ts","names":[],"sources":["../../../src/postinstall/unreal/CSharpWrapperFactory.ts"],"mappings":";KAEY;;;;;;;;;;;;;;;;;;;;;cAsBC;EACJ,cAAc,mBAAmB,aAAa,oBAAoB,qBAAqB;UA8BtF"}
|