@uapkg/cli 1.4.0 → 1.5.0
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/README.md +3 -0
- package/dist/build/BuildMetadata.js +2 -2
- package/dist/cli-bootstrap.js +19846 -13
- package/dist/cli.js +1 -1
- package/dist/index.js +19980 -60
- package/dist/licenses/semver-LICENSE +15 -0
- package/dist/profile.js +25 -0
- package/dist/runtime-lock.json +2142 -0
- package/dist/{app → types/uapkg/app}/CompositionRoot.d.ts +4 -5
- package/dist/{app → types/uapkg/app}/UAPKGApplication.d.ts +0 -1
- package/dist/{build → types/uapkg/build}/BuildMetadata.d.ts +1 -2
- package/dist/types/uapkg/cli/DebugEnvironment.d.ts +15 -0
- package/dist/types/uapkg/cli/DebugInfo.d.ts +15 -0
- package/dist/{cli → types/uapkg/cli}/UAPKGCommandLine.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parseCommandLine.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/UAPKGCommandLineParser.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/UAPKGParserRegistry.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/contracts/UAPKGCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/AddCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/ConfigCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/InitCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/InstallCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/LifecycleCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/ListCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/LoginCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/LogoutCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/OutdatedCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/PackCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/ProjectGetNameCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/PublishCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/RegistryCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/RemoveCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/RequestsCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/UpdateCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/WhoamiCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/WhyCommandModule.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/parsing/modules/sharedOptions.d.ts +0 -1
- package/dist/{cli → types/uapkg/cli}/runUAPKGCLI.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/AddCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/Command.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/ConfigCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/InitCommand.d.ts +1 -2
- package/dist/{commands → types/uapkg/commands}/InstallCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/ListCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/LoginCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/LogoutCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/OutdatedCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/PackCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/PackageLifecycleCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/PostinstallCandidateBuilder.d.ts +2 -3
- package/dist/{commands → types/uapkg/commands}/ProjectGetNameCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/PublishCommand.d.ts +1 -2
- package/dist/{commands → types/uapkg/commands}/RegistryCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/RemoveCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/RequestsCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/UpdateCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/WhoamiCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/WhyCommand.d.ts +0 -1
- package/dist/{commands → types/uapkg/commands}/add/DependencyAddResolver.d.ts +3 -4
- package/dist/{control-plane → types/uapkg/control-plane}/AccountManager.d.ts +1 -2
- package/dist/{control-plane → types/uapkg/control-plane}/ArtifactObserver.d.ts +0 -1
- package/dist/{control-plane → types/uapkg/control-plane}/AuthMetadataStore.d.ts +0 -1
- package/dist/{control-plane → types/uapkg/control-plane}/AuthStoragePaths.d.ts +0 -1
- package/dist/{control-plane → types/uapkg/control-plane}/AuthenticationSelector.d.ts +0 -1
- package/dist/{control-plane → types/uapkg/control-plane}/ControlPlaneClient.d.ts +1 -2
- package/dist/{control-plane → types/uapkg/control-plane}/ControlPlaneEndpoints.d.ts +1 -2
- package/dist/{control-plane → types/uapkg/control-plane}/ControlPlaneTypes.d.ts +4 -2
- package/dist/{control-plane → types/uapkg/control-plane}/CredentialStore.d.ts +0 -1
- package/dist/{control-plane → types/uapkg/control-plane}/DPoPKeyStore.d.ts +0 -1
- package/dist/{control-plane → types/uapkg/control-plane}/GitHubActionsOidcCredentialProvider.d.ts +4 -3
- package/dist/{control-plane → types/uapkg/control-plane}/PublishIdempotencyStore.d.ts +0 -1
- package/dist/{control-plane → types/uapkg/control-plane}/PublishRequestErrorMapper.d.ts +1 -2
- package/dist/{control-plane → types/uapkg/control-plane}/RegistryGrantLock.d.ts +0 -1
- package/dist/{control-plane → types/uapkg/control-plane}/RegistryTrustResolver.d.ts +0 -1
- package/dist/types/uapkg/control-plane/RequestWatch.d.ts +15 -0
- package/dist/types/uapkg/control-plane/RetryAfter.d.ts +6 -0
- package/dist/{postinstall → types/uapkg/postinstall}/api/PostinstallDsl.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/api/definePostinstall.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/loader/EntryResolver.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/loader/EsbuildTranspiler.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/loader/ExportValidator.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/loader/ModuleImporter.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/loader/PostinstallLoader.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/markers/MarkerBlockEditor.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/markers/MarkerBlockService.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/markers/MarkerIntegrityValidator.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/policy/PostinstallPolicyGate.d.ts +2 -3
- package/dist/{postinstall → types/uapkg/postinstall}/runner/PostinstallOrchestrator.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/BuildCsInjector.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/CSharpInjectionEngine.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/CSharpStructureAnalyzer.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/CSharpStructures.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/CSharpWrapperFactory.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/PluginHash.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/PrettyParseError.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/ProjectFileLocator.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/TargetCsInjector.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/UProjectInjector.d.ts +1 -2
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/UProjectMetadataReader.d.ts +0 -1
- package/dist/{postinstall → types/uapkg/postinstall}/unreal/UnrealSourceCatalog.d.ts +0 -1
- package/dist/{prompts → types/uapkg/prompts}/InkPromptService.d.ts +0 -1
- package/dist/{prompts → types/uapkg/prompts}/ProjectContextDetector.d.ts +1 -2
- package/dist/{prompts → types/uapkg/prompts}/PromptService.d.ts +0 -1
- package/dist/{reporting → types/uapkg/reporting}/DiagnosticDeduplicator.d.ts +1 -2
- package/dist/{reporting → types/uapkg/reporting}/DiagnosticRenderer.d.ts +1 -2
- package/dist/{reporting → types/uapkg/reporting}/DiagnosticReporter.d.ts +1 -2
- package/dist/{reporting → types/uapkg/reporting}/InkDiagnosticRenderer.d.ts +2 -3
- package/dist/{reporting → types/uapkg/reporting}/InstallProgressReporter.d.ts +1 -2
- package/dist/{reporting → types/uapkg/reporting}/JsonReporter.d.ts +1 -2
- package/dist/{reporting → types/uapkg/reporting}/RegistryRequestTerminalFormatter.d.ts +0 -1
- package/dist/{reporting → types/uapkg/reporting}/TextDiagnosticRenderer.d.ts +1 -2
- package/dist/{reporting → types/uapkg/reporting}/TextSink.d.ts +1 -2
- package/dist/types/uapkg-common/format/prettyBytes.d.ts +19 -0
- package/dist/types/uapkg-common/hash/registryIdentifier.d.ts +28 -0
- package/dist/types/uapkg-common/hash/sha256.d.ts +12 -0
- package/dist/types/uapkg-common/index.d.ts +10 -0
- package/dist/types/uapkg-common/json/safeJsonParse.d.ts +9 -0
- package/dist/types/uapkg-common/json/stableStringify.d.ts +9 -0
- package/dist/types/uapkg-common/normalize/normalizeUrl.d.ts +11 -0
- package/dist/types/uapkg-common/paths/forwardSlash.d.ts +12 -0
- package/dist/types/uapkg-common/runtime/UapkgRuntimeProfile.d.ts +19 -0
- package/dist/types/uapkg-common/spec/parsePackageSpec.d.ts +21 -0
- package/dist/types/uapkg-common-schema/brand/Brand.d.ts +15 -0
- package/dist/types/uapkg-common-schema/index.d.ts +17 -0
- package/dist/types/uapkg-common-schema/primitives/AssetHash.d.ts +11 -0
- package/dist/types/uapkg-common-schema/primitives/ConcurrencyCount.d.ts +11 -0
- package/dist/types/uapkg-common-schema/primitives/DurationSeconds.d.ts +11 -0
- package/dist/types/uapkg-common-schema/primitives/GitTree.d.ts +10 -0
- package/dist/types/uapkg-common-schema/primitives/InstallPath.d.ts +18 -0
- package/dist/types/uapkg-common-schema/primitives/OrgName.d.ts +12 -0
- package/dist/types/uapkg-common-schema/primitives/PackageName.d.ts +14 -0
- package/dist/types/uapkg-common-schema/primitives/PackageSpec.d.ts +21 -0
- package/dist/types/uapkg-common-schema/primitives/PackageVersion.d.ts +10 -0
- package/dist/types/uapkg-common-schema/primitives/PostInstallPolicy.d.ts +21 -0
- package/dist/types/uapkg-common-schema/primitives/RegistryIdentifier.d.ts +15 -0
- package/dist/types/uapkg-common-schema/primitives/RegistryName.d.ts +18 -0
- package/dist/types/uapkg-common-schema/primitives/RegistryURL.d.ts +10 -0
- package/dist/types/uapkg-common-schema/primitives/UnixTimestamp.d.ts +10 -0
- package/dist/types/uapkg-common-schema/primitives/VersionRange.d.ts +10 -0
- package/dist/types/uapkg-config/contracts/ConfigTypes.d.ts +58 -0
- package/dist/types/uapkg-config/core/ConfigInstance.d.ts +43 -0
- package/dist/types/uapkg-config/core/ConfigLayerBuilder.d.ts +13 -0
- package/dist/types/uapkg-config/core/ConfigResolver.d.ts +19 -0
- package/dist/types/uapkg-config/core/ConfigSemanticValidator.d.ts +13 -0
- package/dist/types/uapkg-config/core/ConfigWriter.d.ts +25 -0
- package/dist/types/uapkg-config/core/PostInstallPolicyResolver.d.ts +22 -0
- package/dist/types/uapkg-config/factory/createConfig.d.ts +6 -0
- package/dist/types/uapkg-config/files/ConfigFileRepository.d.ts +11 -0
- package/dist/types/uapkg-config/files/ConfigPathResolver.d.ts +14 -0
- package/dist/types/uapkg-config/index.d.ts +127 -0
- package/dist/types/uapkg-config/merge/ConfigMerger.d.ts +10 -0
- package/dist/types/uapkg-config/merge/ConfigSchemaMergeEngine.d.ts +26 -0
- package/dist/types/uapkg-config/schema/configSchema.d.ts +114 -0
- package/dist/types/uapkg-config/schema/pathSchema.d.ts +12 -0
- package/dist/types/uapkg-config/schema/runtime/ConfigCliValueParser.d.ts +18 -0
- package/dist/types/uapkg-config/schema/runtime/ConfigSchemaIntrospection.d.ts +13 -0
- package/dist/types/uapkg-config/schema/runtime/ConfigSchemaRuntime.d.ts +26 -0
- package/dist/types/uapkg-config/schema/runtime/ConfigSchemaRuntimeProvider.d.ts +7 -0
- package/dist/types/uapkg-diagnostics/base/Diagnostic.d.ts +32 -0
- package/dist/types/uapkg-diagnostics/base/DiagnosticBag.d.ts +44 -0
- package/dist/types/uapkg-diagnostics/base/DiagnosticFingerprint.d.ts +12 -0
- package/dist/types/uapkg-diagnostics/base/DiagnosticLevel.d.ts +11 -0
- package/dist/types/uapkg-diagnostics/base/Result.d.ts +26 -0
- package/dist/types/uapkg-diagnostics/config/ConfigDiagnostics.d.ts +49 -0
- package/dist/types/uapkg-diagnostics/controlPlane/ControlPlaneDiagnostics.d.ts +25 -0
- package/dist/types/uapkg-diagnostics/general/GeneralDiagnostics.d.ts +23 -0
- package/dist/types/uapkg-diagnostics/index.d.ts +20 -0
- package/dist/types/uapkg-diagnostics/installer/InstallerDiagnostics.d.ts +55 -0
- package/dist/types/uapkg-diagnostics/manifest/ManifestDiagnostics.d.ts +70 -0
- package/dist/types/uapkg-diagnostics/pack/PackDiagnostics.d.ts +49 -0
- package/dist/types/uapkg-diagnostics/postinstall/PostinstallDiagnostics.d.ts +47 -0
- package/dist/types/uapkg-diagnostics/publishing/PublishingDiagnostics.d.ts +77 -0
- package/dist/types/uapkg-diagnostics/registry/RegistryDiagnostics.d.ts +71 -0
- package/dist/types/uapkg-diagnostics/registryTools/RegistryToolsDiagnostics.d.ts +130 -0
- package/dist/types/uapkg-diagnostics/resolver/ResolverDiagnostics.d.ts +38 -0
- package/dist/types/uapkg-diagnostics/safety/SafetyDiagnostics.d.ts +33 -0
- package/dist/types/uapkg-diagnostics/spec/SpecDiagnostics.d.ts +23 -0
- package/dist/types/uapkg-diagnostics/types.d.ts +37 -0
- package/dist/types/uapkg-diagnostics-format/contracts/FormatterTypes.d.ts +23 -0
- package/dist/types/uapkg-diagnostics-format/defaults/defaultFormatters.d.ts +8 -0
- package/dist/types/uapkg-diagnostics-format/formatters/PlainTextFormatter.d.ts +11 -0
- package/dist/types/uapkg-diagnostics-format/formatters/config/configFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/installer/installerFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/manifest/manifestFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/pack/packFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/postinstall/postinstallFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/publishing/publishingFormatters.d.ts +13 -0
- package/dist/types/uapkg-diagnostics-format/formatters/registry/registryFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/registryTools/registryToolsFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/resolver/resolverFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/safety/safetyFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/formatters/spec/specFormatters.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/index.d.ts +15 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/configInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/installerInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/manifestInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/packInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/postinstallInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/publishingInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/registryInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/resolverInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/safetyInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/components/specInkComponents.d.ts +5 -0
- package/dist/types/uapkg-diagnostics-format/ink/contracts/InkTypes.d.ts +35 -0
- package/dist/types/uapkg-diagnostics-format/ink/defaults/defaultInkComponents.d.ts +15 -0
- package/dist/types/uapkg-diagnostics-format/ink/index.d.ts +17 -0
- package/dist/types/uapkg-diagnostics-format/ink/primitives/HintLine.d.ts +12 -0
- package/dist/types/uapkg-diagnostics-format/ink/primitives/PlainTextBody.d.ts +11 -0
- package/dist/types/uapkg-diagnostics-format/ink/primitives/SeverityBadge.d.ts +13 -0
- package/dist/types/uapkg-diagnostics-format/ink/registry/DiagnosticInkRegistry.d.ts +24 -0
- package/dist/types/uapkg-diagnostics-format/ink/views/DiagnosticView.d.ts +21 -0
- package/dist/types/uapkg-diagnostics-format/ink/views/DiagnosticsListView.d.ts +16 -0
- package/dist/types/uapkg-diagnostics-format/registry/FormatterRegistry.d.ts +26 -0
- package/dist/types/uapkg-diagnostics-format/utils/indent.d.ts +7 -0
- package/dist/types/uapkg-installer/contracts/InstallerTypes.d.ts +91 -0
- package/dist/types/uapkg-installer/contracts/SafetyPolicyTypes.d.ts +43 -0
- package/dist/types/uapkg-installer/contracts/StatusStreamTypes.d.ts +42 -0
- package/dist/types/uapkg-installer/core/ClaimsVerifier.d.ts +22 -0
- package/dist/types/uapkg-installer/core/DiskStateInspector.d.ts +29 -0
- package/dist/types/uapkg-installer/core/InstallPlanner.d.ts +35 -0
- package/dist/types/uapkg-installer/core/Installer.d.ts +61 -0
- package/dist/types/uapkg-installer/core/IntegrityVerifier.d.ts +16 -0
- package/dist/types/uapkg-installer/core/PackageDownloader.d.ts +40 -0
- package/dist/types/uapkg-installer/core/PackageExtractor.d.ts +20 -0
- package/dist/types/uapkg-installer/core/PackageRemover.d.ts +14 -0
- package/dist/types/uapkg-installer/index.d.ts +16 -0
- package/dist/types/uapkg-installer/safety/NoMarkerPolicy.d.ts +17 -0
- package/dist/types/uapkg-installer/safety/SafetyPolicyRegistry.d.ts +32 -0
- package/dist/types/uapkg-installer/status/SlotTable.d.ts +36 -0
- package/dist/types/uapkg-installer/status/StatusStream.d.ts +25 -0
- package/dist/types/uapkg-log/contracts/LoggerTypes.d.ts +22 -0
- package/dist/types/uapkg-log/core/LogLevelPolicy.d.ts +15 -0
- package/dist/types/uapkg-log/core/LoggerFactory.d.ts +11 -0
- package/dist/types/uapkg-log/core/LoggerInstance.d.ts +17 -0
- package/dist/types/uapkg-log/core/WinstonLoggerAdapter.d.ts +8 -0
- package/dist/types/uapkg-log/index.d.ts +8 -0
- package/dist/types/uapkg-pack/contracts/PackTypes.d.ts +29 -0
- package/dist/types/uapkg-pack/core/FileCrawler.d.ts +12 -0
- package/dist/types/uapkg-pack/core/IgnoreEvaluator.d.ts +7 -0
- package/dist/types/uapkg-pack/core/IgnoreRuleLoader.d.ts +14 -0
- package/dist/types/uapkg-pack/core/IntegrityWriter.d.ts +6 -0
- package/dist/types/uapkg-pack/core/LFSPointerDetector.d.ts +6 -0
- package/dist/types/uapkg-pack/core/PackArtifactExcluder.d.ts +11 -0
- package/dist/types/uapkg-pack/core/PackManifestReader.d.ts +8 -0
- package/dist/types/uapkg-pack/core/PackService.d.ts +32 -0
- package/dist/types/uapkg-pack/core/PluginDescriptorGuard.d.ts +11 -0
- package/dist/types/uapkg-pack/core/PluginRootResolver.d.ts +14 -0
- package/dist/types/uapkg-pack/core/TarArchiveWriter.d.ts +11 -0
- package/dist/types/uapkg-pack/index.d.ts +7 -0
- package/dist/types/uapkg-package-claims/archive/PackagedManifestReader.d.ts +28 -0
- package/dist/types/uapkg-package-claims/claims/ClaimsComparison.d.ts +44 -0
- package/dist/types/uapkg-package-claims/claims/PackageClaims.d.ts +9 -0
- package/dist/types/uapkg-package-claims/index.d.ts +7 -0
- package/dist/types/uapkg-package-claims/json/CanonicalJson.d.ts +17 -0
- package/dist/types/uapkg-package-claims/schema/PackageClaimsSchema.d.ts +27 -0
- package/dist/types/uapkg-package-claims/schema/index.d.ts +2 -0
- package/dist/types/uapkg-package-manifest/contracts/ManifestTypes.d.ts +37 -0
- package/dist/types/uapkg-package-manifest/core/DependencyMutator.d.ts +48 -0
- package/dist/types/uapkg-package-manifest/core/DevDependencyPolicy.d.ts +30 -0
- package/dist/types/uapkg-package-manifest/core/InstallPathResolver.d.ts +35 -0
- package/dist/types/uapkg-package-manifest/core/LockfileDiffer.d.ts +40 -0
- package/dist/types/uapkg-package-manifest/core/LockfileSyncIssue.d.ts +11 -0
- package/dist/types/uapkg-package-manifest/core/LockfileSyncValidator.d.ts +26 -0
- package/dist/types/uapkg-package-manifest/core/OutdatedChecker.d.ts +36 -0
- package/dist/types/uapkg-package-manifest/core/PackageManifest.d.ts +63 -0
- package/dist/types/uapkg-package-manifest/core/WhyGraph.d.ts +31 -0
- package/dist/types/uapkg-package-manifest/index.d.ts +18 -0
- package/dist/types/uapkg-package-manifest/io/LockfileReader.d.ts +12 -0
- package/dist/types/uapkg-package-manifest/io/LockfileSyncIssueWriter.d.ts +12 -0
- package/dist/types/uapkg-package-manifest/io/LockfileWriter.d.ts +11 -0
- package/dist/types/uapkg-package-manifest/io/ManifestReader.d.ts +12 -0
- package/dist/types/uapkg-package-manifest/io/ManifestWriter.d.ts +13 -0
- package/dist/types/uapkg-package-manifest/resolver/LockfileSync.d.ts +13 -0
- package/dist/types/uapkg-package-manifest/resolver/Resolver.d.ts +16 -0
- package/dist/types/uapkg-package-manifest-schema/index.d.ts +10 -0
- package/dist/types/uapkg-package-manifest-schema/lockfile/LockDependencySchema.d.ts +15 -0
- package/dist/types/uapkg-package-manifest-schema/lockfile/LockfileSchema.d.ts +22 -0
- package/dist/types/uapkg-package-manifest-schema/manifest/BaseManifestSchema.d.ts +56 -0
- package/dist/types/uapkg-package-manifest-schema/manifest/DependencySchema.d.ts +57 -0
- package/dist/types/uapkg-package-manifest-schema/manifest/ManifestKind.d.ts +17 -0
- package/dist/types/uapkg-package-manifest-schema/manifest/ManifestSchema.d.ts +106 -0
- package/dist/types/uapkg-package-manifest-schema/manifest/PluginManifestSchema.d.ts +52 -0
- package/dist/types/uapkg-package-manifest-schema/manifest/ProjectManifestSchema.d.ts +80 -0
- package/dist/types/uapkg-package-manifest-schema/manifest/PublishSchema.d.ts +15 -0
- package/dist/types/uapkg-registry-core/contracts/RegistryCoreTypes.d.ts +54 -0
- package/dist/types/uapkg-registry-core/core/RegistryCore.d.ts +26 -0
- package/dist/types/uapkg-registry-core/index.d.ts +14 -0
- package/dist/types/uapkg-registry-core/paths/RegistryPaths.d.ts +15 -0
- package/dist/types/uapkg-registry-core/registry/GitRunner.d.ts +31 -0
- package/dist/types/uapkg-registry-core/registry/Registry.d.ts +46 -0
- package/dist/types/uapkg-registry-core/registry/RegistryCacheValidator.d.ts +21 -0
- package/dist/types/uapkg-registry-core/registry/RegistryLock.d.ts +27 -0
- package/dist/types/uapkg-registry-core/registry/RegistryMetadataReader.d.ts +18 -0
- package/dist/types/uapkg-registry-core/registry/RegistryPackageReader.d.ts +24 -0
- package/dist/types/uapkg-registry-core/registry/RegistrySyncPolicy.d.ts +14 -0
- package/dist/types/uapkg-registry-core/registry/RegistryUpdater.d.ts +23 -0
- package/dist/types/uapkg-registry-core/registry/RegistryUrlSanitizer.d.ts +10 -0
- package/dist/types/uapkg-registry-core/resolution/PackageResolver.d.ts +21 -0
- package/dist/types/uapkg-registry-core/resolution/SemverSelectionPolicy.d.ts +36 -0
- package/dist/types/uapkg-registry-schema/index.d.ts +9 -0
- package/dist/types/uapkg-registry-schema/paths/RegistryPackagePath.d.ts +15 -0
- package/dist/types/uapkg-registry-schema/schemas/IntegritySchema.d.ts +12 -0
- package/dist/types/uapkg-registry-schema/schemas/PackageRegistryManifestSchema.d.ts +108 -0
- package/dist/types/uapkg-registry-schema/schemas/PackageSourceSchema.d.ts +12 -0
- package/dist/types/uapkg-registry-schema/schemas/RegistryAssetSchema.d.ts +15 -0
- package/dist/types/uapkg-registry-schema/schemas/RegistryDependencySchema.d.ts +36 -0
- package/dist/types/uapkg-registry-schema/schemas/RegistryMetaSchema.d.ts +29 -0
- package/dist/types/uapkg-registry-schema/schemas/RegistryVersionSchema.d.ts +71 -0
- package/dist/types/uapkg-registry-tools/aggregator/RegistryToolsAggregator.d.ts +45 -0
- package/dist/types/uapkg-registry-tools/contracts/RegistryToolsTypes.d.ts +116 -0
- package/dist/types/uapkg-registry-tools/index.d.ts +18 -0
- package/dist/types/uapkg-registry-tools/io/IntegrityCalculator.d.ts +20 -0
- package/dist/types/uapkg-registry-tools/io/ManifestStore.d.ts +41 -0
- package/dist/types/uapkg-registry-tools/listing/PackageLister.d.ts +22 -0
- package/dist/types/uapkg-registry-tools/mutation/AddPackageVersionPlanner.d.ts +25 -0
- package/dist/types/uapkg-registry-tools/mutation/RemovePackagePlanner.d.ts +22 -0
- package/dist/types/uapkg-registry-tools/mutation/RemovePackageVersionPlanner.d.ts +21 -0
- package/dist/types/uapkg-registry-tools/mutation/VersionSorter.d.ts +10 -0
- package/dist/types/uapkg-registry-tools/paths/RegistryRepoPaths.d.ts +23 -0
- package/dist/types/uapkg-registry-tools/tools/RegistryTools.d.ts +64 -0
- package/dist/types/uapkg-registry-tools/validation/DependencyReachabilityValidator.d.ts +24 -0
- package/dist/types/uapkg-registry-tools/validation/ExternalRegistryPolicyValidator.d.ts +22 -0
- package/dist/types/uapkg-registry-tools/validation/ManifestValidator.d.ts +16 -0
- package/dist/types/uapkg-registry-tools/validation/OfficialRegistryPolicyValidator.d.ts +34 -0
- package/dist/types/uapkg-registry-tools/validation/RegistryValidator.d.ts +31 -0
- package/dist/types/uapkg-registry-tools/validation/ReleaseFileNameValidator.d.ts +21 -0
- package/package.json +21 -48
- package/dist/app/CompositionRoot.d.ts.map +0 -1
- package/dist/app/CompositionRoot.js +0 -93
- package/dist/app/CompositionRoot.js.map +0 -1
- package/dist/app/UAPKGApplication.d.ts.map +0 -1
- package/dist/app/UAPKGApplication.js +0 -157
- package/dist/app/UAPKGApplication.js.map +0 -1
- package/dist/build/BuildMetadata.d.ts.map +0 -1
- package/dist/cli/UAPKGCommandLine.d.ts.map +0 -1
- package/dist/cli/UAPKGCommandLine.js +0 -250
- package/dist/cli/UAPKGCommandLine.js.map +0 -1
- package/dist/cli/parseCommandLine.d.ts.map +0 -1
- package/dist/cli/parseCommandLine.js +0 -11
- package/dist/cli/parseCommandLine.js.map +0 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +0 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.js +0 -24
- package/dist/cli/parsing/UAPKGCommandLineParser.js.map +0 -1
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +0 -1
- package/dist/cli/parsing/UAPKGParserRegistry.js +0 -54
- package/dist/cli/parsing/UAPKGParserRegistry.js.map +0 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js +0 -1
- package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/AddCommandModule.js +0 -50
- package/dist/cli/parsing/modules/AddCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.js +0 -88
- package/dist/cli/parsing/modules/ConfigCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/InitCommandModule.js +0 -26
- package/dist/cli/parsing/modules/InitCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/InstallCommandModule.js +0 -37
- package/dist/cli/parsing/modules/InstallCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.js +0 -84
- package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/ListCommandModule.js +0 -27
- package/dist/cli/parsing/modules/ListCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/LoginCommandModule.js +0 -35
- package/dist/cli/parsing/modules/LoginCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.js +0 -31
- package/dist/cli/parsing/modules/LogoutCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.js +0 -22
- package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/PackCommandModule.js +0 -31
- package/dist/cli/parsing/modules/PackCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +0 -15
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/PublishCommandModule.js +0 -66
- package/dist/cli/parsing/modules/PublishCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.js +0 -118
- package/dist/cli/parsing/modules/RegistryCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.js +0 -26
- package/dist/cli/parsing/modules/RemoveCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.js +0 -59
- package/dist/cli/parsing/modules/RequestsCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.js +0 -39
- package/dist/cli/parsing/modules/UpdateCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.js +0 -31
- package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +0 -1
- package/dist/cli/parsing/modules/WhyCommandModule.js +0 -26
- package/dist/cli/parsing/modules/WhyCommandModule.js.map +0 -1
- package/dist/cli/parsing/modules/sharedOptions.d.ts.map +0 -1
- package/dist/cli/parsing/modules/sharedOptions.js +0 -21
- package/dist/cli/parsing/modules/sharedOptions.js.map +0 -1
- package/dist/cli/runUAPKGCLI.d.ts.map +0 -1
- package/dist/cli/runUAPKGCLI.js +0 -12
- package/dist/cli/runUAPKGCLI.js.map +0 -1
- package/dist/cli-bootstrap.js.map +0 -1
- package/dist/commands/AddCommand.d.ts.map +0 -1
- package/dist/commands/AddCommand.js +0 -51
- package/dist/commands/AddCommand.js.map +0 -1
- package/dist/commands/Command.d.ts.map +0 -1
- package/dist/commands/Command.js +0 -1
- package/dist/commands/ConfigCommand.d.ts.map +0 -1
- package/dist/commands/ConfigCommand.js +0 -166
- package/dist/commands/ConfigCommand.js.map +0 -1
- package/dist/commands/InitCommand.d.ts.map +0 -1
- package/dist/commands/InitCommand.js +0 -66
- package/dist/commands/InitCommand.js.map +0 -1
- package/dist/commands/InstallCommand.d.ts.map +0 -1
- package/dist/commands/InstallCommand.js +0 -120
- package/dist/commands/InstallCommand.js.map +0 -1
- package/dist/commands/ListCommand.d.ts.map +0 -1
- package/dist/commands/ListCommand.js +0 -78
- package/dist/commands/ListCommand.js.map +0 -1
- package/dist/commands/LoginCommand.d.ts.map +0 -1
- package/dist/commands/LoginCommand.js +0 -67
- package/dist/commands/LoginCommand.js.map +0 -1
- package/dist/commands/LogoutCommand.d.ts.map +0 -1
- package/dist/commands/LogoutCommand.js +0 -37
- package/dist/commands/LogoutCommand.js.map +0 -1
- package/dist/commands/OutdatedCommand.d.ts.map +0 -1
- package/dist/commands/OutdatedCommand.js +0 -43
- package/dist/commands/OutdatedCommand.js.map +0 -1
- package/dist/commands/PackCommand.d.ts.map +0 -1
- package/dist/commands/PackCommand.js +0 -27
- package/dist/commands/PackCommand.js.map +0 -1
- package/dist/commands/PackageLifecycleCommand.d.ts.map +0 -1
- package/dist/commands/PackageLifecycleCommand.js +0 -149
- package/dist/commands/PackageLifecycleCommand.js.map +0 -1
- package/dist/commands/PostinstallCandidateBuilder.d.ts.map +0 -1
- package/dist/commands/PostinstallCandidateBuilder.js +0 -44
- package/dist/commands/PostinstallCandidateBuilder.js.map +0 -1
- package/dist/commands/ProjectGetNameCommand.d.ts.map +0 -1
- package/dist/commands/ProjectGetNameCommand.js +0 -26
- package/dist/commands/ProjectGetNameCommand.js.map +0 -1
- package/dist/commands/PublishCommand.d.ts.map +0 -1
- package/dist/commands/PublishCommand.js +0 -259
- package/dist/commands/PublishCommand.js.map +0 -1
- package/dist/commands/RegistryCommand.d.ts.map +0 -1
- package/dist/commands/RegistryCommand.js +0 -197
- package/dist/commands/RegistryCommand.js.map +0 -1
- package/dist/commands/RemoveCommand.d.ts.map +0 -1
- package/dist/commands/RemoveCommand.js +0 -48
- package/dist/commands/RemoveCommand.js.map +0 -1
- package/dist/commands/RequestsCommand.d.ts.map +0 -1
- package/dist/commands/RequestsCommand.js +0 -85
- package/dist/commands/RequestsCommand.js.map +0 -1
- package/dist/commands/UpdateCommand.d.ts.map +0 -1
- package/dist/commands/UpdateCommand.js +0 -113
- package/dist/commands/UpdateCommand.js.map +0 -1
- package/dist/commands/WhoamiCommand.d.ts.map +0 -1
- package/dist/commands/WhoamiCommand.js +0 -66
- package/dist/commands/WhoamiCommand.js.map +0 -1
- package/dist/commands/WhyCommand.d.ts.map +0 -1
- package/dist/commands/WhyCommand.js +0 -47
- package/dist/commands/WhyCommand.js.map +0 -1
- package/dist/commands/add/DependencyAddResolver.d.ts.map +0 -1
- package/dist/commands/add/DependencyAddResolver.js +0 -38
- package/dist/commands/add/DependencyAddResolver.js.map +0 -1
- package/dist/control-plane/AccountManager.d.ts.map +0 -1
- package/dist/control-plane/AccountManager.js +0 -822
- package/dist/control-plane/AccountManager.js.map +0 -1
- package/dist/control-plane/ArtifactObserver.d.ts.map +0 -1
- package/dist/control-plane/ArtifactObserver.js +0 -77
- package/dist/control-plane/ArtifactObserver.js.map +0 -1
- package/dist/control-plane/AuthMetadataStore.d.ts.map +0 -1
- package/dist/control-plane/AuthMetadataStore.js +0 -114
- package/dist/control-plane/AuthMetadataStore.js.map +0 -1
- package/dist/control-plane/AuthStoragePaths.d.ts.map +0 -1
- package/dist/control-plane/AuthStoragePaths.js +0 -22
- package/dist/control-plane/AuthStoragePaths.js.map +0 -1
- package/dist/control-plane/AuthenticationSelector.d.ts.map +0 -1
- package/dist/control-plane/AuthenticationSelector.js +0 -70
- package/dist/control-plane/AuthenticationSelector.js.map +0 -1
- package/dist/control-plane/ControlPlaneClient.d.ts.map +0 -1
- package/dist/control-plane/ControlPlaneClient.js +0 -291
- package/dist/control-plane/ControlPlaneClient.js.map +0 -1
- package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +0 -1
- package/dist/control-plane/ControlPlaneEndpoints.js +0 -24
- package/dist/control-plane/ControlPlaneEndpoints.js.map +0 -1
- package/dist/control-plane/ControlPlaneTypes.d.ts.map +0 -1
- package/dist/control-plane/ControlPlaneTypes.js +0 -100
- package/dist/control-plane/ControlPlaneTypes.js.map +0 -1
- package/dist/control-plane/CredentialStore.d.ts.map +0 -1
- package/dist/control-plane/CredentialStore.js +0 -70
- package/dist/control-plane/CredentialStore.js.map +0 -1
- package/dist/control-plane/DPoPKeyStore.d.ts.map +0 -1
- package/dist/control-plane/DPoPKeyStore.js +0 -58
- package/dist/control-plane/DPoPKeyStore.js.map +0 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +0 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +0 -201
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +0 -1
- package/dist/control-plane/PublishIdempotencyStore.d.ts.map +0 -1
- package/dist/control-plane/PublishIdempotencyStore.js +0 -100
- package/dist/control-plane/PublishIdempotencyStore.js.map +0 -1
- package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +0 -1
- package/dist/control-plane/PublishRequestErrorMapper.js +0 -597
- package/dist/control-plane/PublishRequestErrorMapper.js.map +0 -1
- package/dist/control-plane/RegistryGrantLock.d.ts.map +0 -1
- package/dist/control-plane/RegistryGrantLock.js +0 -163
- package/dist/control-plane/RegistryGrantLock.js.map +0 -1
- package/dist/control-plane/RegistryTrustResolver.d.ts.map +0 -1
- package/dist/control-plane/RegistryTrustResolver.js +0 -105
- package/dist/control-plane/RegistryTrustResolver.js.map +0 -1
- package/dist/postinstall/api/PostinstallDsl.d.ts.map +0 -1
- package/dist/postinstall/api/PostinstallDsl.js +0 -36
- package/dist/postinstall/api/PostinstallDsl.js.map +0 -1
- package/dist/postinstall/api/definePostinstall.d.ts.map +0 -1
- package/dist/postinstall/api/definePostinstall.js +0 -23
- package/dist/postinstall/api/definePostinstall.js.map +0 -1
- package/dist/postinstall/index.js +0 -25
- package/dist/postinstall/loader/EntryResolver.d.ts.map +0 -1
- package/dist/postinstall/loader/EntryResolver.js +0 -39
- package/dist/postinstall/loader/EntryResolver.js.map +0 -1
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +0 -1
- package/dist/postinstall/loader/EsbuildTranspiler.js +0 -54
- package/dist/postinstall/loader/EsbuildTranspiler.js.map +0 -1
- package/dist/postinstall/loader/ExportValidator.d.ts.map +0 -1
- package/dist/postinstall/loader/ExportValidator.js +0 -38
- package/dist/postinstall/loader/ExportValidator.js.map +0 -1
- package/dist/postinstall/loader/ModuleImporter.d.ts.map +0 -1
- package/dist/postinstall/loader/ModuleImporter.js +0 -52
- package/dist/postinstall/loader/ModuleImporter.js.map +0 -1
- package/dist/postinstall/loader/PostinstallLoader.d.ts.map +0 -1
- package/dist/postinstall/loader/PostinstallLoader.js +0 -64
- package/dist/postinstall/loader/PostinstallLoader.js.map +0 -1
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +0 -1
- package/dist/postinstall/markers/MarkerBlockEditor.js +0 -50
- package/dist/postinstall/markers/MarkerBlockEditor.js.map +0 -1
- package/dist/postinstall/markers/MarkerBlockService.d.ts.map +0 -1
- package/dist/postinstall/markers/MarkerBlockService.js +0 -46
- package/dist/postinstall/markers/MarkerBlockService.js.map +0 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +0 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.js +0 -48
- package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +0 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +0 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.js +0 -68
- package/dist/postinstall/policy/PostinstallPolicyGate.js.map +0 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +0 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.js +0 -174
- package/dist/postinstall/runner/PostinstallOrchestrator.js.map +0 -1
- package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +0 -1
- package/dist/postinstall/unreal/BuildCsInjector.js +0 -60
- package/dist/postinstall/unreal/BuildCsInjector.js.map +0 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +0 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.js +0 -58
- package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +0 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +0 -126
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.d.ts.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.js +0 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +0 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.js +0 -56
- package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +0 -1
- package/dist/postinstall/unreal/PluginHash.d.ts.map +0 -1
- package/dist/postinstall/unreal/PluginHash.js +0 -18
- package/dist/postinstall/unreal/PluginHash.js.map +0 -1
- package/dist/postinstall/unreal/PrettyParseError.d.ts.map +0 -1
- package/dist/postinstall/unreal/PrettyParseError.js +0 -43
- package/dist/postinstall/unreal/PrettyParseError.js.map +0 -1
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +0 -1
- package/dist/postinstall/unreal/ProjectFileLocator.js +0 -51
- package/dist/postinstall/unreal/ProjectFileLocator.js.map +0 -1
- package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +0 -1
- package/dist/postinstall/unreal/TargetCsInjector.js +0 -60
- package/dist/postinstall/unreal/TargetCsInjector.js.map +0 -1
- package/dist/postinstall/unreal/UProjectInjector.d.ts.map +0 -1
- package/dist/postinstall/unreal/UProjectInjector.js +0 -58
- package/dist/postinstall/unreal/UProjectInjector.js.map +0 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +0 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.js +0 -24
- package/dist/postinstall/unreal/UProjectMetadataReader.js.map +0 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +0 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.js +0 -52
- package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +0 -1
- package/dist/prompts/InkPromptService.d.ts.map +0 -1
- package/dist/prompts/InkPromptService.js +0 -105
- package/dist/prompts/InkPromptService.js.map +0 -1
- package/dist/prompts/ProjectContextDetector.d.ts.map +0 -1
- package/dist/prompts/ProjectContextDetector.js +0 -33
- package/dist/prompts/ProjectContextDetector.js.map +0 -1
- package/dist/prompts/PromptService.d.ts.map +0 -1
- package/dist/prompts/PromptService.js +0 -1
- package/dist/reporting/DiagnosticDeduplicator.d.ts.map +0 -1
- package/dist/reporting/DiagnosticDeduplicator.js +0 -38
- package/dist/reporting/DiagnosticDeduplicator.js.map +0 -1
- package/dist/reporting/DiagnosticRenderer.d.ts.map +0 -1
- package/dist/reporting/DiagnosticRenderer.js +0 -1
- package/dist/reporting/DiagnosticReporter.d.ts.map +0 -1
- package/dist/reporting/DiagnosticReporter.js +0 -42
- package/dist/reporting/DiagnosticReporter.js.map +0 -1
- package/dist/reporting/InkDiagnosticRenderer.d.ts.map +0 -1
- package/dist/reporting/InkDiagnosticRenderer.js +0 -52
- package/dist/reporting/InkDiagnosticRenderer.js.map +0 -1
- package/dist/reporting/InstallProgressReporter.d.ts.map +0 -1
- package/dist/reporting/InstallProgressReporter.js +0 -50
- package/dist/reporting/InstallProgressReporter.js.map +0 -1
- package/dist/reporting/JsonReporter.d.ts.map +0 -1
- package/dist/reporting/JsonReporter.js +0 -36
- package/dist/reporting/JsonReporter.js.map +0 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +0 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.js +0 -90
- package/dist/reporting/RegistryRequestTerminalFormatter.js.map +0 -1
- package/dist/reporting/TextDiagnosticRenderer.d.ts.map +0 -1
- package/dist/reporting/TextDiagnosticRenderer.js +0 -38
- package/dist/reporting/TextDiagnosticRenderer.js.map +0 -1
- package/dist/reporting/TextSink.d.ts.map +0 -1
- package/dist/reporting/TextSink.js +0 -29
- package/dist/reporting/TextSink.js.map +0 -1
- /package/dist/{cli-bootstrap.d.ts → types/uapkg/cli-bootstrap.d.ts} +0 -0
- /package/dist/{index.d.ts → types/uapkg/index.d.ts} +0 -0
- /package/dist/{postinstall → types/uapkg/postinstall}/index.d.ts +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Brand } from "../brand/Brand.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/primitives/PackageName.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Branded type for a uapkg package name.
|
|
6
|
+
* Unscoped (`my-package`) or scoped (`@owner/my-package`); each segment is
|
|
7
|
+
* lowercase alphanumeric with hyphens.
|
|
8
|
+
*/
|
|
9
|
+
type PackageName = Brand<string, 'PackageName'>;
|
|
10
|
+
declare const PackageNameSchema: z.core.$ZodBranded<z.ZodString, "PackageName", "out">;
|
|
11
|
+
/** True when the package name uses the `@owner/package` scoped form. */
|
|
12
|
+
declare function isScopedPackageName(name: string): boolean;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { PackageName, PackageNameSchema, isScopedPackageName };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/primitives/PackageSpec.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Parsed CLI package specifier.
|
|
5
|
+
*
|
|
6
|
+
* Grammar: `(@<org>/)?<name>(@<range>)?`
|
|
7
|
+
*
|
|
8
|
+
* Examples:
|
|
9
|
+
* - `awesome-pkg` → { name: "awesome-pkg" }
|
|
10
|
+
* - `awesome-pkg@^1.0.0` → { name, range }
|
|
11
|
+
* - `@myorg/awesome-pkg` → { org, name }
|
|
12
|
+
* - `@myorg/awesome-pkg@^1.0.0` → { org, name, range }
|
|
13
|
+
*/
|
|
14
|
+
declare const PackageSpecSchema: z.ZodObject<{
|
|
15
|
+
org: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "OrgName", "out">>;
|
|
16
|
+
name: z.core.$ZodBranded<z.ZodString, "PackageName", "out">;
|
|
17
|
+
range: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "VersionRange", "out">>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
type PackageSpec = z.infer<typeof PackageSpecSchema>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { PackageSpec, PackageSpecSchema };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Brand } from "../brand/Brand.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/primitives/PackageVersion.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Branded type for a valid semver v2 version string (no `v` or `=` prefix).
|
|
6
|
+
*/
|
|
7
|
+
type PackageVersion = Brand<string, 'PackageVersion'>;
|
|
8
|
+
declare const PackageVersionSchema: z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { PackageVersion, PackageVersionSchema };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Brand } from "../brand/Brand.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/primitives/PostInstallPolicy.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* PostInstallPolicy controls whether plugin-authored postinstall hooks are
|
|
6
|
+
* allowed to mutate the host Unreal project on install/update.
|
|
7
|
+
*
|
|
8
|
+
* - `allow`: postinstall hooks execute after extraction.
|
|
9
|
+
* - `deny`: postinstall hooks are skipped; an info diagnostic is emitted.
|
|
10
|
+
*
|
|
11
|
+
* The `prompt` variant is intentionally unsupported — uapkg commands must
|
|
12
|
+
* remain non-interactive so they can run unattended in CI.
|
|
13
|
+
*/
|
|
14
|
+
type PostInstallPolicy = Brand<'allow' | 'deny', 'PostInstallPolicy'>;
|
|
15
|
+
declare const PostInstallPolicySchema: z.core.$ZodBranded<z.ZodEnum<{
|
|
16
|
+
allow: "allow";
|
|
17
|
+
deny: "deny";
|
|
18
|
+
}>, "PostInstallPolicy", "out">;
|
|
19
|
+
declare const POSTINSTALL_POLICY_DEFAULT: PostInstallPolicy;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { POSTINSTALL_POLICY_DEFAULT, PostInstallPolicy, PostInstallPolicySchema };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Brand } from "../brand/Brand.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/primitives/RegistryIdentifier.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Branded type for the full registry identifier (64-char hex SHA-256).
|
|
6
|
+
*/
|
|
7
|
+
type RegistryIdentifier = Brand<string, 'RegistryIdentifier'>;
|
|
8
|
+
declare const RegistryIdentifierSchema: z.core.$ZodBranded<z.ZodString, "RegistryIdentifier", "out">;
|
|
9
|
+
/**
|
|
10
|
+
* Branded type for the short registry identifier (first 16 hex chars).
|
|
11
|
+
*/
|
|
12
|
+
type RegistryIdentifierShort = Brand<string, 'RegistryIdentifierShort'>;
|
|
13
|
+
declare const RegistryIdentifierShortSchema: z.core.$ZodBranded<z.ZodString, "RegistryIdentifierShort", "out">;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { RegistryIdentifier, RegistryIdentifierSchema, RegistryIdentifierShort, RegistryIdentifierShortSchema };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Brand } from "../brand/Brand.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/primitives/RegistryName.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Branded type for a logical registry name (the key under `registries` in config).
|
|
6
|
+
*/
|
|
7
|
+
type RegistryName = Brand<string, 'RegistryName'>;
|
|
8
|
+
declare const RegistryNameSchema: z.core.$ZodBranded<z.ZodString, "RegistryName", "out">;
|
|
9
|
+
/**
|
|
10
|
+
* The machine-local alias that resolves to the user's configured default
|
|
11
|
+
* registry. In manifests and registry records the default is represented by
|
|
12
|
+
* an ABSENT `registry` field; this alias exists only at local resolution
|
|
13
|
+
* boundaries (config, CLI input) and an explicit `"default"` normalizes to
|
|
14
|
+
* absence.
|
|
15
|
+
*/
|
|
16
|
+
declare const DEFAULT_REGISTRY_ALIAS: RegistryName;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DEFAULT_REGISTRY_ALIAS, RegistryName, RegistryNameSchema };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Brand } from "../brand/Brand.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/primitives/RegistryURL.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Branded type for a registry git URL.
|
|
6
|
+
*/
|
|
7
|
+
type RegistryURL = Brand<string, 'RegistryURL'>;
|
|
8
|
+
declare const RegistryURLSchema: z.core.$ZodBranded<z.ZodString, "RegistryURL", "out">;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { RegistryURL, RegistryURLSchema };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Brand } from "../brand/Brand.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/primitives/UnixTimestamp.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Branded type for a Unix timestamp (seconds since epoch, UTC).
|
|
6
|
+
*/
|
|
7
|
+
type UnixTimestamp = Brand<number, 'UnixTimestamp'>;
|
|
8
|
+
declare const UnixTimestampSchema: z.core.$ZodBranded<z.ZodNumber, "UnixTimestamp", "out">;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { UnixTimestamp, UnixTimestampSchema };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Brand } from "../brand/Brand.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/primitives/VersionRange.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Branded type for a valid semver range expression (e.g. `^1.2.0`, `>=0.5.0 <1.0.0`).
|
|
6
|
+
*/
|
|
7
|
+
type VersionRange = Brand<string, 'VersionRange'>;
|
|
8
|
+
declare const VersionRangeSchema: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { VersionRange, VersionRangeSchema };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { PartialConfig, PostInstallPolicyValue, RegistryConfig, RegistryRef, ResolvedConfig } from "../schema/configSchema.js";
|
|
2
|
+
import { Diagnostic } from "../../uapkg-diagnostics/index.js";
|
|
3
|
+
//#region src/contracts/ConfigTypes.d.ts
|
|
4
|
+
type ConfigLayerSource = 'default' | 'global' | 'intermediary' | 'local';
|
|
5
|
+
type ConfigValue = unknown;
|
|
6
|
+
interface ConfigLayer {
|
|
7
|
+
source: ConfigLayerSource;
|
|
8
|
+
file?: string;
|
|
9
|
+
values: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
interface ConfigValueWithOrigin {
|
|
12
|
+
value: ConfigValue;
|
|
13
|
+
source: ConfigLayerSource;
|
|
14
|
+
file?: string;
|
|
15
|
+
}
|
|
16
|
+
interface ConfigTraceEntry {
|
|
17
|
+
source: ConfigLayerSource;
|
|
18
|
+
value: ConfigValue;
|
|
19
|
+
file?: string;
|
|
20
|
+
}
|
|
21
|
+
type ConfigScope = 'global' | 'local';
|
|
22
|
+
interface ConfigReloadOptions {
|
|
23
|
+
cwd?: string;
|
|
24
|
+
}
|
|
25
|
+
interface ConfigCreateOptions {
|
|
26
|
+
cwd?: string;
|
|
27
|
+
}
|
|
28
|
+
interface ConfigGetOptions {
|
|
29
|
+
scope?: ConfigScope;
|
|
30
|
+
}
|
|
31
|
+
interface ConfigListOptions {
|
|
32
|
+
scope?: ConfigScope;
|
|
33
|
+
}
|
|
34
|
+
interface ConfigWriteOptions {
|
|
35
|
+
scope?: ConfigScope;
|
|
36
|
+
}
|
|
37
|
+
interface ConfigPaths {
|
|
38
|
+
cwd: string;
|
|
39
|
+
manifestRoot: string;
|
|
40
|
+
globalFile: string;
|
|
41
|
+
localFile: string;
|
|
42
|
+
intermediaryFiles: string[];
|
|
43
|
+
}
|
|
44
|
+
interface ConfigReadResult {
|
|
45
|
+
values: Record<string, unknown>;
|
|
46
|
+
exists: boolean;
|
|
47
|
+
diagnostics: readonly Diagnostic[];
|
|
48
|
+
}
|
|
49
|
+
interface ConfigLayerBuildResult {
|
|
50
|
+
layers: ConfigLayer[];
|
|
51
|
+
diagnostics: readonly Diagnostic[];
|
|
52
|
+
}
|
|
53
|
+
interface ConfigResolvedResult {
|
|
54
|
+
value: Record<string, unknown>;
|
|
55
|
+
diagnostics: readonly Diagnostic[];
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { ConfigCreateOptions, ConfigGetOptions, ConfigLayer, ConfigLayerBuildResult, ConfigLayerSource, ConfigListOptions, ConfigPaths, ConfigReadResult, ConfigReloadOptions, ConfigResolvedResult, ConfigScope, ConfigTraceEntry, ConfigValue, ConfigValueWithOrigin, ConfigWriteOptions, type PartialConfig, type PostInstallPolicyValue, type RegistryConfig, type RegistryRef, type ResolvedConfig };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ResolvedConfig } from "../schema/configSchema.js";
|
|
2
|
+
import { ConfigCreateOptions, ConfigGetOptions, ConfigListOptions, ConfigReloadOptions, ConfigTraceEntry, ConfigValueWithOrigin, ConfigWriteOptions } from "../contracts/ConfigTypes.js";
|
|
3
|
+
import { ConfigLayerBuilder } from "./ConfigLayerBuilder.js";
|
|
4
|
+
import { ConfigResolver } from "./ConfigResolver.js";
|
|
5
|
+
import { ConfigWriter } from "./ConfigWriter.js";
|
|
6
|
+
import { Diagnostic, Result } from "../../uapkg-diagnostics/index.js";
|
|
7
|
+
//#region src/core/ConfigInstance.d.ts
|
|
8
|
+
declare class ConfigInstance {
|
|
9
|
+
private readonly layerBuilder;
|
|
10
|
+
private readonly resolver;
|
|
11
|
+
private readonly writer;
|
|
12
|
+
private cwd;
|
|
13
|
+
private layers;
|
|
14
|
+
private resolved;
|
|
15
|
+
private diagnostics;
|
|
16
|
+
constructor(options?: ConfigCreateOptions, layerBuilder?: ConfigLayerBuilder, resolver?: ConfigResolver, writer?: ConfigWriter);
|
|
17
|
+
get(pathToProperty?: string, options?: ConfigGetOptions): unknown;
|
|
18
|
+
getAll(options?: ConfigListOptions): ResolvedConfig | Record<string, unknown> | null;
|
|
19
|
+
getDefaultRegistry(): {
|
|
20
|
+
url: string;
|
|
21
|
+
ref: {
|
|
22
|
+
type: string;
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
} | null;
|
|
26
|
+
getWithOrigin(pathToProperty: string): ConfigValueWithOrigin | null;
|
|
27
|
+
trace(pathToProperty: string): ConfigTraceEntry[];
|
|
28
|
+
set(pathToProperty: string, value: unknown, options?: ConfigWriteOptions): Result<{
|
|
29
|
+
file: string;
|
|
30
|
+
values: Record<string, unknown>;
|
|
31
|
+
}>;
|
|
32
|
+
delete(pathToProperty: string, options?: ConfigWriteOptions): Result<{
|
|
33
|
+
file: string;
|
|
34
|
+
values: Record<string, unknown>;
|
|
35
|
+
}>;
|
|
36
|
+
getEditTarget(options?: ConfigWriteOptions): string;
|
|
37
|
+
toDisplayPath(filePath: string): string;
|
|
38
|
+
getDiagnostics(): readonly Diagnostic[];
|
|
39
|
+
reload(options?: ConfigReloadOptions): this;
|
|
40
|
+
private getValueFromObject;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ConfigInstance };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ConfigLayerBuildResult } from "../contracts/ConfigTypes.js";
|
|
2
|
+
import { ConfigFileRepository } from "../files/ConfigFileRepository.js";
|
|
3
|
+
import { ConfigPathResolver } from "../files/ConfigPathResolver.js";
|
|
4
|
+
//#region src/core/ConfigLayerBuilder.d.ts
|
|
5
|
+
declare class ConfigLayerBuilder {
|
|
6
|
+
private readonly pathResolver;
|
|
7
|
+
private readonly repository;
|
|
8
|
+
constructor(pathResolver?: ConfigPathResolver, repository?: ConfigFileRepository);
|
|
9
|
+
build(cwd: string): ConfigLayerBuildResult;
|
|
10
|
+
private readValues;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ConfigLayerBuilder };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ConfigLayer, ConfigResolvedResult, ConfigTraceEntry, ConfigValueWithOrigin } from "../contracts/ConfigTypes.js";
|
|
2
|
+
import { ConfigMerger } from "../merge/ConfigMerger.js";
|
|
3
|
+
import { ConfigSemanticValidator } from "./ConfigSemanticValidator.js";
|
|
4
|
+
import { Diagnostic } from "../../uapkg-diagnostics/index.js";
|
|
5
|
+
//#region src/core/ConfigResolver.d.ts
|
|
6
|
+
declare class ConfigResolver {
|
|
7
|
+
private readonly merger;
|
|
8
|
+
private readonly semanticValidator;
|
|
9
|
+
constructor(merger?: ConfigMerger, semanticValidator?: ConfigSemanticValidator);
|
|
10
|
+
resolveAll(layers: ConfigLayer[]): ConfigResolvedResult;
|
|
11
|
+
resolvePath(layers: ConfigLayer[], pathToProperty: string): {
|
|
12
|
+
value: unknown;
|
|
13
|
+
diagnostics: readonly Diagnostic[];
|
|
14
|
+
};
|
|
15
|
+
getWithOrigin(layers: ConfigLayer[], pathToProperty: string): ConfigValueWithOrigin;
|
|
16
|
+
trace(layers: ConfigLayer[], pathToProperty: string): ConfigTraceEntry[];
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ConfigResolver };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Diagnostic } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
//#region src/core/ConfigSemanticValidator.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Runs post-merge semantic checks and narrow-rule validation.
|
|
5
|
+
*/
|
|
6
|
+
declare class ConfigSemanticValidator {
|
|
7
|
+
validate(merged: Record<string, unknown>): readonly Diagnostic[];
|
|
8
|
+
private validateCrossFieldRules;
|
|
9
|
+
private validateNarrowSchemaRules;
|
|
10
|
+
private isRecord;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ConfigSemanticValidator };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ConfigGetOptions, ConfigListOptions, ConfigScope, ConfigWriteOptions } from "../contracts/ConfigTypes.js";
|
|
2
|
+
import { ConfigFileRepository } from "../files/ConfigFileRepository.js";
|
|
3
|
+
import { ConfigPathResolver } from "../files/ConfigPathResolver.js";
|
|
4
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
5
|
+
//#region src/core/ConfigWriter.d.ts
|
|
6
|
+
declare class ConfigWriter {
|
|
7
|
+
private readonly pathResolver;
|
|
8
|
+
private readonly repository;
|
|
9
|
+
constructor(pathResolver?: ConfigPathResolver, repository?: ConfigFileRepository);
|
|
10
|
+
getRaw(cwd: string, options?: ConfigGetOptions): Result<Record<string, unknown> | null>;
|
|
11
|
+
listRaw(cwd: string, options?: ConfigListOptions): Result<Record<string, unknown> | null>;
|
|
12
|
+
prepareSet(cwd: string, pathToProperty: string, value: unknown, options?: ConfigWriteOptions): Result<{
|
|
13
|
+
file: string;
|
|
14
|
+
values: Record<string, unknown>;
|
|
15
|
+
}>;
|
|
16
|
+
prepareDelete(cwd: string, pathToProperty: string, options?: ConfigWriteOptions): Result<{
|
|
17
|
+
file: string;
|
|
18
|
+
values: Record<string, unknown>;
|
|
19
|
+
}>;
|
|
20
|
+
getEditTarget(cwd: string, scope?: ConfigScope): string;
|
|
21
|
+
private resolveWriteTarget;
|
|
22
|
+
toDisplayPath(cwd: string, filePath: string): string;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { ConfigWriter };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PostInstallPolicyValue, ResolvedConfig } from "../schema/configSchema.js";
|
|
2
|
+
import "../contracts/ConfigTypes.js";
|
|
3
|
+
//#region src/core/PostInstallPolicyResolver.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Resolves the effective `PostInstallPolicy` for a given install action.
|
|
6
|
+
*
|
|
7
|
+
* Resolution order (nearest wins):
|
|
8
|
+
* 1. `registries.<registryName>.postInstallPolicy` (if defined)
|
|
9
|
+
* 2. `install.postInstallPolicy` (global default, which itself defaults to `deny`)
|
|
10
|
+
*
|
|
11
|
+
* Whichever level provided the value is reported via `resolvedFrom` so that
|
|
12
|
+
* consumers (e.g. `POSTINSTALL_POLICY_DENIED` diagnostics) can point the user
|
|
13
|
+
* at the correct config key.
|
|
14
|
+
*/
|
|
15
|
+
declare class PostInstallPolicyResolver {
|
|
16
|
+
resolve(config: ResolvedConfig, registryName: string): {
|
|
17
|
+
policy: PostInstallPolicyValue;
|
|
18
|
+
resolvedFrom: 'registry' | 'install';
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { PostInstallPolicyResolver };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConfigCreateOptions } from "../contracts/ConfigTypes.js";
|
|
2
|
+
import { ConfigInstance } from "../core/ConfigInstance.js";
|
|
3
|
+
//#region src/factory/createConfig.d.ts
|
|
4
|
+
declare function createConfig(options?: ConfigCreateOptions): ConfigInstance;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { createConfig };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConfigReadResult } from "../contracts/ConfigTypes.js";
|
|
2
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
3
|
+
//#region src/files/ConfigFileRepository.d.ts
|
|
4
|
+
declare class ConfigFileRepository {
|
|
5
|
+
read(filePath: string): Result<ConfigReadResult>;
|
|
6
|
+
write(filePath: string, values: Record<string, unknown>): Result<void>;
|
|
7
|
+
private isRecord;
|
|
8
|
+
private describeType;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ConfigFileRepository };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ConfigPaths } from "../contracts/ConfigTypes.js";
|
|
2
|
+
//#region src/files/ConfigPathResolver.d.ts
|
|
3
|
+
declare class ConfigPathResolver {
|
|
4
|
+
private readonly profileRoot;
|
|
5
|
+
constructor(profileRoot?: string);
|
|
6
|
+
resolve(cwd: string): ConfigPaths;
|
|
7
|
+
private findManifestRoot;
|
|
8
|
+
private findIntermediaryFiles;
|
|
9
|
+
findNearestLocalConfig(cwd: string): string | null;
|
|
10
|
+
resolveLocalWriteTarget(cwd: string): string;
|
|
11
|
+
isInProject(cwd: string): boolean;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ConfigPathResolver };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { PostInstallPolicyValue, RegistryConfig, RegistryRef, ResolvedConfig } from "./schema/configSchema.js";
|
|
2
|
+
import { ConfigCreateOptions, ConfigTraceEntry, ConfigValueWithOrigin } from "./contracts/ConfigTypes.js";
|
|
3
|
+
import { ConfigInstance } from "./core/ConfigInstance.js";
|
|
4
|
+
import { PostInstallPolicyResolver } from "./core/PostInstallPolicyResolver.js";
|
|
5
|
+
import { createConfig } from "./factory/createConfig.js";
|
|
6
|
+
import { getConfigSchemaAtPath, isLeafConfigPath, isValidConfigPath, validateConfigPath } from "./schema/pathSchema.js";
|
|
7
|
+
import { parseConfigCliValue } from "./schema/runtime/ConfigSchemaRuntimeProvider.js";
|
|
8
|
+
//#region src/index.d.ts
|
|
9
|
+
declare const Config: {
|
|
10
|
+
get(pathToProperty?: string, options?: {
|
|
11
|
+
scope?: 'global' | 'local';
|
|
12
|
+
}): unknown;
|
|
13
|
+
getAll(options?: {
|
|
14
|
+
scope?: 'global' | 'local';
|
|
15
|
+
}): Record<string, unknown> | {
|
|
16
|
+
registry: string;
|
|
17
|
+
registries: Record<string, {
|
|
18
|
+
url: string;
|
|
19
|
+
ref: {
|
|
20
|
+
type: "branch" | "rev" | "tag";
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
ttlSeconds?: number | undefined;
|
|
24
|
+
postInstallPolicy?: "allow" | "deny" | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
launcher: {
|
|
27
|
+
cliSource: "github-releases" | "npm";
|
|
28
|
+
defaultCliVersion?: (string & import("zod").$brand<"PackageVersion">) | undefined;
|
|
29
|
+
};
|
|
30
|
+
git: string;
|
|
31
|
+
editor: string;
|
|
32
|
+
exec: {
|
|
33
|
+
shell: string;
|
|
34
|
+
};
|
|
35
|
+
cache: {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
};
|
|
38
|
+
registryCache: {
|
|
39
|
+
ttlSeconds: number;
|
|
40
|
+
};
|
|
41
|
+
network: {
|
|
42
|
+
retries: number;
|
|
43
|
+
timeout: number;
|
|
44
|
+
maxConcurrentDownloads: number;
|
|
45
|
+
};
|
|
46
|
+
install: {
|
|
47
|
+
postInstallPolicy: "allow" | "deny";
|
|
48
|
+
};
|
|
49
|
+
term: {
|
|
50
|
+
quiet: boolean;
|
|
51
|
+
verbose: boolean;
|
|
52
|
+
};
|
|
53
|
+
} | null;
|
|
54
|
+
getDefaultRegistry(): {
|
|
55
|
+
url: string;
|
|
56
|
+
ref: {
|
|
57
|
+
type: string;
|
|
58
|
+
value: string;
|
|
59
|
+
};
|
|
60
|
+
} | null;
|
|
61
|
+
getWithOrigin(pathToProperty: string): ConfigValueWithOrigin | null;
|
|
62
|
+
trace(pathToProperty: string): ConfigTraceEntry[];
|
|
63
|
+
getDiagnostics(): readonly import("../uapkg-diagnostics/index.js").Diagnostic[];
|
|
64
|
+
reload(options?: {
|
|
65
|
+
cwd?: string;
|
|
66
|
+
}): {
|
|
67
|
+
get(pathToProperty?: string, options?: {
|
|
68
|
+
scope?: 'global' | 'local';
|
|
69
|
+
}): unknown;
|
|
70
|
+
getAll(options?: {
|
|
71
|
+
scope?: 'global' | 'local';
|
|
72
|
+
}): Record<string, unknown> | {
|
|
73
|
+
registry: string;
|
|
74
|
+
registries: Record<string, {
|
|
75
|
+
url: string;
|
|
76
|
+
ref: {
|
|
77
|
+
type: "branch" | "rev" | "tag";
|
|
78
|
+
value: string;
|
|
79
|
+
};
|
|
80
|
+
ttlSeconds?: number | undefined;
|
|
81
|
+
postInstallPolicy?: "allow" | "deny" | undefined;
|
|
82
|
+
}>;
|
|
83
|
+
launcher: {
|
|
84
|
+
cliSource: "github-releases" | "npm";
|
|
85
|
+
defaultCliVersion?: (string & import("zod").$brand<"PackageVersion">) | undefined;
|
|
86
|
+
};
|
|
87
|
+
git: string;
|
|
88
|
+
editor: string;
|
|
89
|
+
exec: {
|
|
90
|
+
shell: string;
|
|
91
|
+
};
|
|
92
|
+
cache: {
|
|
93
|
+
enabled: boolean;
|
|
94
|
+
};
|
|
95
|
+
registryCache: {
|
|
96
|
+
ttlSeconds: number;
|
|
97
|
+
};
|
|
98
|
+
network: {
|
|
99
|
+
retries: number;
|
|
100
|
+
timeout: number;
|
|
101
|
+
maxConcurrentDownloads: number;
|
|
102
|
+
};
|
|
103
|
+
install: {
|
|
104
|
+
postInstallPolicy: "allow" | "deny";
|
|
105
|
+
};
|
|
106
|
+
term: {
|
|
107
|
+
quiet: boolean;
|
|
108
|
+
verbose: boolean;
|
|
109
|
+
};
|
|
110
|
+
} | null;
|
|
111
|
+
getDefaultRegistry(): {
|
|
112
|
+
url: string;
|
|
113
|
+
ref: {
|
|
114
|
+
type: string;
|
|
115
|
+
value: string;
|
|
116
|
+
};
|
|
117
|
+
} | null;
|
|
118
|
+
getWithOrigin(pathToProperty: string): ConfigValueWithOrigin | null;
|
|
119
|
+
trace(pathToProperty: string): ConfigTraceEntry[];
|
|
120
|
+
getDiagnostics(): readonly import("../uapkg-diagnostics/index.js").Diagnostic[];
|
|
121
|
+
reload(options?: {
|
|
122
|
+
cwd?: string;
|
|
123
|
+
}): /*elided*/ any;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
//#endregion
|
|
127
|
+
export { type ConfigCreateOptions, ConfigInstance, type ConfigTraceEntry, type ConfigValueWithOrigin, PostInstallPolicyResolver, type PostInstallPolicyValue, type RegistryConfig, type RegistryRef, type ResolvedConfig, createConfig, Config as default, getConfigSchemaAtPath, isLeafConfigPath, isValidConfigPath, parseConfigCliValue, validateConfigPath };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConfigLayer, ConfigResolvedResult } from "../contracts/ConfigTypes.js";
|
|
2
|
+
import { ConfigSchemaMergeEngine } from "./ConfigSchemaMergeEngine.js";
|
|
3
|
+
//#region src/merge/ConfigMerger.d.ts
|
|
4
|
+
declare class ConfigMerger {
|
|
5
|
+
private readonly engine;
|
|
6
|
+
constructor(engine?: ConfigSchemaMergeEngine);
|
|
7
|
+
mergeLayers(layers: readonly ConfigLayer[]): ConfigResolvedResult;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ConfigMerger };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ConfigLayer, ConfigResolvedResult } from "../contracts/ConfigTypes.js";
|
|
2
|
+
import { ZodType } from "zod";
|
|
3
|
+
//#region src/merge/ConfigSchemaMergeEngine.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Generic schema-driven config merge engine.
|
|
6
|
+
*
|
|
7
|
+
* - Object/record container mismatches are ignored with diagnostics.
|
|
8
|
+
* - Primitive broad-type mismatches are ignored with diagnostics.
|
|
9
|
+
* - Narrow rule violations (enum/min/etc) are preserved and diagnosed later by
|
|
10
|
+
* semantic validation.
|
|
11
|
+
*/
|
|
12
|
+
declare class ConfigSchemaMergeEngine {
|
|
13
|
+
private readonly rootSchema;
|
|
14
|
+
constructor(rootSchema: ZodType);
|
|
15
|
+
mergeLayers(layers: readonly ConfigLayer[]): ConfigResolvedResult;
|
|
16
|
+
private mergeNode;
|
|
17
|
+
private mergeObjectNode;
|
|
18
|
+
private mergeRecordNode;
|
|
19
|
+
private mergeScalarNode;
|
|
20
|
+
private isBroadTypeCompatible;
|
|
21
|
+
private addTypeMismatch;
|
|
22
|
+
private pathOf;
|
|
23
|
+
private asRecord;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ConfigSchemaMergeEngine };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/schema/configSchema.d.ts
|
|
3
|
+
declare const configSchema: z.ZodObject<{
|
|
4
|
+
registry: z.ZodString;
|
|
5
|
+
registries: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6
|
+
url: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "RegistryURL", "out">, z.ZodTransform<string, string & z.$brand<"RegistryURL">>>;
|
|
7
|
+
ref: z.ZodDefault<z.ZodObject<{
|
|
8
|
+
type: z.ZodEnum<{
|
|
9
|
+
branch: "branch";
|
|
10
|
+
rev: "rev";
|
|
11
|
+
tag: "tag";
|
|
12
|
+
}>;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
}, z.core.$strict>>;
|
|
15
|
+
ttlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
postInstallPolicy: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
allow: "allow";
|
|
18
|
+
deny: "deny";
|
|
19
|
+
}>>;
|
|
20
|
+
}, z.core.$strict>>;
|
|
21
|
+
launcher: z.ZodObject<{
|
|
22
|
+
cliSource: z.ZodEnum<{
|
|
23
|
+
"github-releases": "github-releases";
|
|
24
|
+
npm: "npm";
|
|
25
|
+
}>;
|
|
26
|
+
defaultCliVersion: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
git: z.ZodString;
|
|
29
|
+
editor: z.ZodString;
|
|
30
|
+
exec: z.ZodObject<{
|
|
31
|
+
shell: z.ZodString;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
cache: z.ZodObject<{
|
|
34
|
+
enabled: z.ZodBoolean;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
registryCache: z.ZodObject<{
|
|
37
|
+
ttlSeconds: z.ZodNumber;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
network: z.ZodObject<{
|
|
40
|
+
retries: z.ZodNumber;
|
|
41
|
+
timeout: z.ZodNumber;
|
|
42
|
+
maxConcurrentDownloads: z.ZodNumber;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
install: z.ZodObject<{
|
|
45
|
+
postInstallPolicy: z.ZodEnum<{
|
|
46
|
+
allow: "allow";
|
|
47
|
+
deny: "deny";
|
|
48
|
+
}>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
term: z.ZodObject<{
|
|
51
|
+
quiet: z.ZodBoolean;
|
|
52
|
+
verbose: z.ZodBoolean;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
declare const partialConfigSchema: z.ZodObject<{
|
|
56
|
+
registry: z.ZodOptional<z.ZodString>;
|
|
57
|
+
registries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
58
|
+
url: z.ZodOptional<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "RegistryURL", "out">, z.ZodTransform<string, string & z.$brand<"RegistryURL">>>>;
|
|
59
|
+
ref: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
branch: "branch";
|
|
62
|
+
rev: "rev";
|
|
63
|
+
tag: "tag";
|
|
64
|
+
}>>;
|
|
65
|
+
value: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
ttlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
postInstallPolicy: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
allow: "allow";
|
|
70
|
+
deny: "deny";
|
|
71
|
+
}>>;
|
|
72
|
+
}, z.core.$strict>>>;
|
|
73
|
+
launcher: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
cliSource: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
"github-releases": "github-releases";
|
|
76
|
+
npm: "npm";
|
|
77
|
+
}>>;
|
|
78
|
+
defaultCliVersion: z.ZodOptional<z.ZodOptional<z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">>>;
|
|
79
|
+
}, z.core.$strict>>;
|
|
80
|
+
git: z.ZodOptional<z.ZodString>;
|
|
81
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
82
|
+
exec: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
shell: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strict>>;
|
|
85
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
}, z.core.$strict>>;
|
|
88
|
+
registryCache: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
ttlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
retries: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
maxConcurrentDownloads: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
install: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
postInstallPolicy: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
allow: "allow";
|
|
99
|
+
deny: "deny";
|
|
100
|
+
}>>;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
term: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
}, z.core.$strict>>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
type ResolvedConfig = z.infer<typeof configSchema>;
|
|
108
|
+
type PartialConfig = z.infer<typeof partialConfigSchema>;
|
|
109
|
+
type RegistryConfig = ResolvedConfig['registries'][string];
|
|
110
|
+
type RegistryRef = RegistryConfig['ref'];
|
|
111
|
+
type PostInstallPolicyValue = ResolvedConfig['install']['postInstallPolicy'];
|
|
112
|
+
declare function getDefaultConfig(): ResolvedConfig;
|
|
113
|
+
//#endregion
|
|
114
|
+
export { PartialConfig, PostInstallPolicyValue, RegistryConfig, RegistryRef, ResolvedConfig, configSchema, getDefaultConfig, partialConfigSchema };
|