@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,106 @@
|
|
|
1
|
+
import { Dependency } from "./DependencySchema.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/manifest/ManifestSchema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Discriminated manifest schema — dispatches to `ProjectManifestSchema`
|
|
6
|
+
* or `PluginManifestSchema` based on the `kind` field.
|
|
7
|
+
*/
|
|
8
|
+
declare const ManifestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
name: z.core.$ZodBranded<z.ZodString, "PackageName", "out">;
|
|
10
|
+
version: z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">;
|
|
11
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
publish: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
14
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
15
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
16
|
+
asset: z.ZodOptional<z.ZodString>;
|
|
17
|
+
manifestPath: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
20
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
21
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
22
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
23
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
24
|
+
version: string & z.$brand<"VersionRange">;
|
|
25
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
26
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
27
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
28
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
29
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
30
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
31
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
32
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
33
|
+
version: string & z.$brand<"VersionRange">;
|
|
34
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
35
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
36
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
37
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
38
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
39
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
40
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
41
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
42
|
+
version: string & z.$brand<"VersionRange">;
|
|
43
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
44
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
45
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
46
|
+
kind: z.ZodLiteral<"project">;
|
|
47
|
+
uapkgVersion: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">>;
|
|
48
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
49
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
50
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
51
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
52
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
53
|
+
version: string & z.$brand<"VersionRange">;
|
|
54
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
55
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
56
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
57
|
+
postinstall: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
}, z.core.$strict>>;
|
|
60
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
harness: z.ZodOptional<z.ZodUnknown>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
64
|
+
name: z.core.$ZodBranded<z.ZodString, "PackageName", "out">;
|
|
65
|
+
version: z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">;
|
|
66
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
publish: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
69
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
70
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
71
|
+
asset: z.ZodOptional<z.ZodString>;
|
|
72
|
+
manifestPath: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
75
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
76
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
77
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
78
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
79
|
+
version: string & z.$brand<"VersionRange">;
|
|
80
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
81
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
82
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
83
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
84
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
85
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
86
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
87
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
88
|
+
version: string & z.$brand<"VersionRange">;
|
|
89
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
90
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
91
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
92
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
93
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
94
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
95
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
96
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
97
|
+
version: string & z.$brand<"VersionRange">;
|
|
98
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
99
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
100
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
101
|
+
kind: z.ZodLiteral<"plugin">;
|
|
102
|
+
uapkgVersion: z.ZodOptional<z.ZodNever>;
|
|
103
|
+
}, z.core.$loose>], "kind">;
|
|
104
|
+
type Manifest = z.infer<typeof ManifestSchema>;
|
|
105
|
+
//#endregion
|
|
106
|
+
export { Manifest, ManifestSchema };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Dependency } from "./DependencySchema.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/manifest/PluginManifestSchema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Plugin manifest — `uapkg.json` for a plugin package.
|
|
6
|
+
*
|
|
7
|
+
* Plugins MUST NOT have `overrides`.
|
|
8
|
+
*/
|
|
9
|
+
declare const PluginManifestSchema: z.ZodObject<{
|
|
10
|
+
name: z.core.$ZodBranded<z.ZodString, "PackageName", "out">;
|
|
11
|
+
version: z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">;
|
|
12
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
publish: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
15
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
16
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
17
|
+
asset: z.ZodOptional<z.ZodString>;
|
|
18
|
+
manifestPath: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
21
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
22
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
23
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
24
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
25
|
+
version: string & z.$brand<"VersionRange">;
|
|
26
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
27
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
28
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
29
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
30
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
31
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
32
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
33
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
34
|
+
version: string & z.$brand<"VersionRange">;
|
|
35
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
36
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
37
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
38
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
39
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
40
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
41
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
42
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
43
|
+
version: string & z.$brand<"VersionRange">;
|
|
44
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
45
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
46
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
47
|
+
kind: z.ZodLiteral<"plugin">;
|
|
48
|
+
uapkgVersion: z.ZodOptional<z.ZodNever>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
|
+
type PluginManifest = z.infer<typeof PluginManifestSchema>;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { PluginManifest, PluginManifestSchema };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Dependency } from "./DependencySchema.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/manifest/ProjectManifestSchema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Project-only postinstall overrides.
|
|
6
|
+
*
|
|
7
|
+
* - `modules` — explicit list of Unreal module names to pass to postinstall
|
|
8
|
+
* scripts. Overrides the names discovered from the project's
|
|
9
|
+
* `.uproject` `Modules[]`. Intended for harness / test projects
|
|
10
|
+
* that want to limit which modules receive UAPKG-BEGIN/END
|
|
11
|
+
* injection blocks.
|
|
12
|
+
*/
|
|
13
|
+
declare const ProjectPostinstallSchema: z.ZodObject<{
|
|
14
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
/**
|
|
17
|
+
* Project manifest — the root `uapkg.json` for a project.
|
|
18
|
+
*
|
|
19
|
+
* Projects MAY specify `overrides` to pin transitive dependency versions.
|
|
20
|
+
*/
|
|
21
|
+
declare const ProjectManifestSchema: z.ZodObject<{
|
|
22
|
+
name: z.core.$ZodBranded<z.ZodString, "PackageName", "out">;
|
|
23
|
+
version: z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">;
|
|
24
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
publish: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
27
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
28
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
29
|
+
asset: z.ZodOptional<z.ZodString>;
|
|
30
|
+
manifestPath: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
33
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
34
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
35
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
36
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
37
|
+
version: string & z.$brand<"VersionRange">;
|
|
38
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
39
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
40
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
41
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
42
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
43
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
44
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
45
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
46
|
+
version: string & z.$brand<"VersionRange">;
|
|
47
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
48
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
49
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
50
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
51
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
52
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
53
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
54
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
55
|
+
version: string & z.$brand<"VersionRange">;
|
|
56
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
57
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
58
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
59
|
+
kind: z.ZodLiteral<"project">;
|
|
60
|
+
uapkgVersion: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">>;
|
|
61
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
62
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
63
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
64
|
+
path: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "InstallPath", "out">>;
|
|
65
|
+
}, z.core.$strip>]>, z.ZodTransform<Dependency, {
|
|
66
|
+
version: string & z.$brand<"VersionRange">;
|
|
67
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
68
|
+
path?: (string & z.$brand<"InstallPath">) | undefined;
|
|
69
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
70
|
+
postinstall: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
72
|
+
}, z.core.$strict>>;
|
|
73
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
harness: z.ZodOptional<z.ZodUnknown>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
type ProjectManifest = z.infer<typeof ProjectManifestSchema>;
|
|
78
|
+
type ProjectPostinstall = z.infer<typeof ProjectPostinstallSchema>;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { ProjectManifest, ProjectManifestSchema, ProjectPostinstall, ProjectPostinstallSchema };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/manifest/PublishSchema.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Optional publish configuration within `uapkg.json`.
|
|
5
|
+
*/
|
|
6
|
+
declare const PublishSchema: z.ZodObject<{
|
|
7
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
8
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
9
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
10
|
+
asset: z.ZodOptional<z.ZodString>;
|
|
11
|
+
manifestPath: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type Publish = z.infer<typeof PublishSchema>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Publish, PublishSchema };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { RegistryIdentifier, UnixTimestamp } from "../../uapkg-common-schema/index.js";
|
|
2
|
+
//#region src/contracts/RegistryCoreTypes.d.ts
|
|
3
|
+
interface RegistryDescriptor {
|
|
4
|
+
readonly type: 'git';
|
|
5
|
+
readonly url: string;
|
|
6
|
+
readonly ref: {
|
|
7
|
+
readonly type: 'branch' | 'tag' | 'rev';
|
|
8
|
+
readonly value: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
type RegistryUpdateResult = 'Updated' | 'AlreadyFresh' | 'UpdatedRecently' | 'Failed';
|
|
12
|
+
interface RegistryUpdateOptions {
|
|
13
|
+
/** Skip the TTL freshness check and force a sync. */
|
|
14
|
+
readonly bypassFreshnessCheck?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface RegistryAccessOptions {
|
|
17
|
+
/** Allow system Git and its configured credential helper to prompt. */
|
|
18
|
+
readonly interactive?: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface RegistryMetadata {
|
|
21
|
+
readonly lastRegistrySyncAt: UnixTimestamp;
|
|
22
|
+
readonly registryIdentifier: RegistryIdentifier;
|
|
23
|
+
}
|
|
24
|
+
interface RegistryLockData {
|
|
25
|
+
readonly pid: number;
|
|
26
|
+
readonly startedAt: UnixTimestamp;
|
|
27
|
+
readonly heartbeat: UnixTimestamp;
|
|
28
|
+
}
|
|
29
|
+
interface SyncPolicyInput {
|
|
30
|
+
readonly lastSyncAt: UnixTimestamp | undefined;
|
|
31
|
+
readonly ttlSeconds: number;
|
|
32
|
+
readonly hasUpdatedWithinProcessLifetime: boolean;
|
|
33
|
+
readonly forced: boolean;
|
|
34
|
+
}
|
|
35
|
+
type SyncDecision = 'update' | 'skip';
|
|
36
|
+
type RegistryInstantiationResult = 'Created' | 'AlreadyInstantiated' | 'Failed';
|
|
37
|
+
interface RegistryCoreOptions {
|
|
38
|
+
/** Pass a `@uapkg/config` ConfigInstance to avoid re-reading config. */
|
|
39
|
+
readonly configInstance?: {
|
|
40
|
+
get(path?: string, options?: {
|
|
41
|
+
scope?: 'global' | 'local';
|
|
42
|
+
}): unknown;
|
|
43
|
+
getAll(): Record<string, unknown>;
|
|
44
|
+
getDefaultRegistry(): {
|
|
45
|
+
url: string;
|
|
46
|
+
ref: {
|
|
47
|
+
type: string;
|
|
48
|
+
value: string;
|
|
49
|
+
};
|
|
50
|
+
} | null;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { RegistryAccessOptions, RegistryCoreOptions, RegistryDescriptor, RegistryInstantiationResult, RegistryLockData, RegistryMetadata, RegistryUpdateOptions, RegistryUpdateResult, SyncDecision, SyncPolicyInput };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RegistryCoreOptions } from "../contracts/RegistryCoreTypes.js";
|
|
2
|
+
import { Registry } from "../registry/Registry.js";
|
|
3
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
4
|
+
//#region src/core/RegistryCore.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Top-level entry point for the registry subsystem.
|
|
7
|
+
*
|
|
8
|
+
* Manages a process-level cache of `Registry` instances and resolves
|
|
9
|
+
* configured registry names into runtime `Registry` objects.
|
|
10
|
+
*/
|
|
11
|
+
declare class RegistryCore {
|
|
12
|
+
private static readonly registryPool;
|
|
13
|
+
private readonly registries;
|
|
14
|
+
private readonly config;
|
|
15
|
+
constructor(options?: RegistryCoreOptions);
|
|
16
|
+
/**
|
|
17
|
+
* Get or create a `Registry` for the given logical name.
|
|
18
|
+
*
|
|
19
|
+
* The name must exist as a key under `registries` in the resolved config.
|
|
20
|
+
*/
|
|
21
|
+
getOrCreateRegistry(registryName: string): Result<Registry>;
|
|
22
|
+
/** Resolve a registry descriptor from config. */
|
|
23
|
+
private resolveDescriptor;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { RegistryCore };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RegistryAccessOptions, RegistryCoreOptions, RegistryDescriptor, RegistryInstantiationResult, RegistryLockData, RegistryMetadata, RegistryUpdateOptions, RegistryUpdateResult, SyncDecision, SyncPolicyInput } from "./contracts/RegistryCoreTypes.js";
|
|
2
|
+
import { ResolvedVersion, resolveVersion } from "./resolution/PackageResolver.js";
|
|
3
|
+
import { Registry } from "./registry/Registry.js";
|
|
4
|
+
import { RegistryCore } from "./core/RegistryCore.js";
|
|
5
|
+
import { getRegistryCachePath, getRegistryLockPath, getRegistryMetadataPath, getRegistryPackagesPath, getRegistryRepoPath, getRegistryRoot } from "./paths/RegistryPaths.js";
|
|
6
|
+
import { GitCommandRunner, GitInteractionMode, GitProcessSpawner, GitRunOptions, GitRunner } from "./registry/GitRunner.js";
|
|
7
|
+
import { RegistryLock } from "./registry/RegistryLock.js";
|
|
8
|
+
import { RegistryMetadataReader } from "./registry/RegistryMetadataReader.js";
|
|
9
|
+
import { RegistryPackageReader } from "./registry/RegistryPackageReader.js";
|
|
10
|
+
import { evaluateSyncPolicy } from "./registry/RegistrySyncPolicy.js";
|
|
11
|
+
import { RegistryUpdater } from "./registry/RegistryUpdater.js";
|
|
12
|
+
import { redactRegistryUrlSecrets, sanitizeRegistryUrlForDisplay } from "./registry/RegistryUrlSanitizer.js";
|
|
13
|
+
import { SemverSelectionPolicy } from "./resolution/SemverSelectionPolicy.js";
|
|
14
|
+
export { type GitCommandRunner, type GitInteractionMode, type GitProcessSpawner, type GitRunOptions, GitRunner, Registry, type RegistryAccessOptions, RegistryCore, type RegistryCoreOptions, type RegistryDescriptor, type RegistryInstantiationResult, RegistryLock, type RegistryLockData, type RegistryMetadata, RegistryMetadataReader, RegistryPackageReader, type RegistryUpdateOptions, type RegistryUpdateResult, RegistryUpdater, type ResolvedVersion, SemverSelectionPolicy, type SyncDecision, type SyncPolicyInput, evaluateSyncPolicy, getRegistryCachePath, getRegistryLockPath, getRegistryMetadataPath, getRegistryPackagesPath, getRegistryRepoPath, getRegistryRoot, redactRegistryUrlSecrets, resolveVersion, sanitizeRegistryUrlForDisplay };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/paths/RegistryPaths.d.ts
|
|
2
|
+
/** Root of all registry caches in the profile selected by the CLI launcher. */
|
|
3
|
+
declare function getRegistryRoot(): string;
|
|
4
|
+
/** Cache root for a specific registry: `{profile-root}/registry/{shortId}` */
|
|
5
|
+
declare function getRegistryCachePath(shortId: string): string;
|
|
6
|
+
/** Path to the cloned registry repo. */
|
|
7
|
+
declare function getRegistryRepoPath(shortId: string): string;
|
|
8
|
+
/** Path reserved for future persistent package archive caching. */
|
|
9
|
+
declare function getRegistryPackagesPath(shortId: string): string;
|
|
10
|
+
/** Path to `registry.json` metadata file. */
|
|
11
|
+
declare function getRegistryMetadataPath(shortId: string): string;
|
|
12
|
+
/** Path to the lock file used during updates. */
|
|
13
|
+
declare function getRegistryLockPath(shortId: string): string;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getRegistryCachePath, getRegistryLockPath, getRegistryMetadataPath, getRegistryPackagesPath, getRegistryRepoPath, getRegistryRoot };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { ChildProcess, SpawnOptions } from "node:child_process";
|
|
3
|
+
//#region src/registry/GitRunner.d.ts
|
|
4
|
+
type GitInteractionMode = 'non-interactive' | 'interactive';
|
|
5
|
+
interface GitRunOptions {
|
|
6
|
+
readonly cwd?: string;
|
|
7
|
+
readonly interaction?: GitInteractionMode;
|
|
8
|
+
readonly timeoutMs?: number;
|
|
9
|
+
}
|
|
10
|
+
interface GitCommandRunner {
|
|
11
|
+
run(args: readonly string[], options?: GitRunOptions): Promise<Result<void>>;
|
|
12
|
+
}
|
|
13
|
+
type GitProcessSpawner = (command: string, args: readonly string[], options: SpawnOptions) => ChildProcess;
|
|
14
|
+
/**
|
|
15
|
+
* Runs the configured system Git without ever handling Git credentials itself.
|
|
16
|
+
*
|
|
17
|
+
* Normal registry operations are deliberately non-interactive. An explicitly
|
|
18
|
+
* interactive access probe may hand stdin and stderr to Git so its configured
|
|
19
|
+
* credential helper or SSH agent can authenticate the user.
|
|
20
|
+
*/
|
|
21
|
+
declare class GitRunner implements GitCommandRunner {
|
|
22
|
+
private readonly gitBinary;
|
|
23
|
+
private readonly sensitiveValues;
|
|
24
|
+
private readonly spawnProcess;
|
|
25
|
+
constructor(gitBinary: string, sensitiveValues?: readonly string[], spawnProcess?: GitProcessSpawner);
|
|
26
|
+
run(args: readonly string[], options?: GitRunOptions): Promise<Result<void>>;
|
|
27
|
+
private failure;
|
|
28
|
+
private redact;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { GitCommandRunner, GitInteractionMode, GitProcessSpawner, GitRunOptions, GitRunner };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { RegistryAccessOptions, RegistryDescriptor, RegistryUpdateOptions, RegistryUpdateResult } from "../contracts/RegistryCoreTypes.js";
|
|
2
|
+
import { ResolvedVersion } from "../resolution/PackageResolver.js";
|
|
3
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
4
|
+
import { PackageRegistryManifest } from "../../uapkg-registry-schema/index.js";
|
|
5
|
+
import { RegistryIdentifier } from "../../uapkg-common-schema/index.js";
|
|
6
|
+
//#region src/registry/Registry.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Represents one configured local registry cache.
|
|
9
|
+
*
|
|
10
|
+
* Exposes registry-level operations: sync, read manifests, resolve versions.
|
|
11
|
+
*/
|
|
12
|
+
declare class Registry {
|
|
13
|
+
readonly id: RegistryIdentifier;
|
|
14
|
+
readonly descriptor: RegistryDescriptor;
|
|
15
|
+
readonly shortId: string;
|
|
16
|
+
private readonly aliases;
|
|
17
|
+
private hasUpdatedThisProcess;
|
|
18
|
+
private initPromise?;
|
|
19
|
+
private readonly metadataReader;
|
|
20
|
+
private readonly cacheValidator;
|
|
21
|
+
private readonly updater;
|
|
22
|
+
private readonly packageReader;
|
|
23
|
+
private ttlSeconds;
|
|
24
|
+
private constructor();
|
|
25
|
+
/** Factory — use this instead of `new`. */
|
|
26
|
+
static create(initialAlias: string, descriptor: RegistryDescriptor, id: RegistryIdentifier, shortId: string, gitBinary: string, ttlSeconds: number): Registry;
|
|
27
|
+
registerAlias(alias: string, ttlSeconds?: number): void;
|
|
28
|
+
/** Ensure the local cache is up-to-date. */
|
|
29
|
+
ensureUpToDate(options?: RegistryUpdateOptions & {
|
|
30
|
+
readonly logicalRegistryName?: string;
|
|
31
|
+
}): Promise<Result<RegistryUpdateResult>>;
|
|
32
|
+
/** Check whether system Git can read the configured remote without changing the cache. */
|
|
33
|
+
probeAccess(options?: RegistryAccessOptions): Promise<Result<void>>;
|
|
34
|
+
/** Read a package registry manifest from the local cache. */
|
|
35
|
+
getPackageManifest(packageName: string, logicalRegistryName?: string): Promise<Result<PackageRegistryManifest>>;
|
|
36
|
+
/** Resolve the best matching version for a package. */
|
|
37
|
+
resolvePackage(packageName: string, versionRange: string, registryName: string, current?: string): Promise<Result<ResolvedVersion>>;
|
|
38
|
+
private ensureReady;
|
|
39
|
+
private performUpdate;
|
|
40
|
+
private writeMetadata;
|
|
41
|
+
private toRegistryUnreachableDiagnostic;
|
|
42
|
+
private extractHttpStatus;
|
|
43
|
+
private resolveDiagnosticRegistryName;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { Registry };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RegistryMetadataReader } from "./RegistryMetadataReader.js";
|
|
2
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
3
|
+
import { RegistryIdentifier, UnixTimestamp } from "../../uapkg-common-schema/index.js";
|
|
4
|
+
//#region src/registry/RegistryCacheValidator.d.ts
|
|
5
|
+
interface RegistryCacheState {
|
|
6
|
+
readonly initialized: boolean;
|
|
7
|
+
readonly lastRegistrySyncAt?: UnixTimestamp;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Validates the relationship between a shortened cache directory, its cloned
|
|
11
|
+
* repository, and the full identity retained in registry.json.
|
|
12
|
+
*/
|
|
13
|
+
declare class RegistryCacheValidator {
|
|
14
|
+
private readonly shortId;
|
|
15
|
+
private readonly expectedIdentifier;
|
|
16
|
+
private readonly metadataReader;
|
|
17
|
+
constructor(shortId: string, expectedIdentifier: RegistryIdentifier, metadataReader: RegistryMetadataReader);
|
|
18
|
+
inspect(): Promise<Result<RegistryCacheState>>;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { RegistryCacheState, RegistryCacheValidator };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
//#region src/registry/RegistryLock.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* File-based lock for registry updates.
|
|
5
|
+
*
|
|
6
|
+
* - Acquire via exclusive create (`wx`).
|
|
7
|
+
* - Maintain heartbeat while owning.
|
|
8
|
+
* - Detect stale from heartbeat timeout.
|
|
9
|
+
* - Never delete another process's valid lock.
|
|
10
|
+
*/
|
|
11
|
+
declare class RegistryLock {
|
|
12
|
+
private readonly lockPath;
|
|
13
|
+
private heartbeatTimer;
|
|
14
|
+
constructor(lockPath: string);
|
|
15
|
+
/** Try to acquire the lock. Returns ok(true) if acquired. */
|
|
16
|
+
acquire(): Promise<Result<boolean>>;
|
|
17
|
+
/** Release the lock owned by this process. */
|
|
18
|
+
release(): Promise<Result<void>>;
|
|
19
|
+
private startHeartbeat;
|
|
20
|
+
private stopHeartbeat;
|
|
21
|
+
private updateHeartbeat;
|
|
22
|
+
private isStale;
|
|
23
|
+
private readLock;
|
|
24
|
+
private forceWrite;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { RegistryLock };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RegistryMetadata } from "../contracts/RegistryCoreTypes.js";
|
|
2
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
3
|
+
//#region src/registry/RegistryMetadataReader.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Read and write `registry.json` metadata for a local registry cache.
|
|
6
|
+
*/
|
|
7
|
+
declare class RegistryMetadataReader {
|
|
8
|
+
private readonly shortId;
|
|
9
|
+
constructor(shortId: string);
|
|
10
|
+
/** Read registry.json from cache. */
|
|
11
|
+
read(): Promise<Result<RegistryMetadata>>;
|
|
12
|
+
/** Write updated registry.json to cache. */
|
|
13
|
+
write(metadata: RegistryMetadata): Promise<Result<void>>;
|
|
14
|
+
/** Check whether registry.json exists in cache. */
|
|
15
|
+
exists(): boolean;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { RegistryMetadataReader };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { PackageRegistryManifest } from "../../uapkg-registry-schema/index.js";
|
|
3
|
+
//#region src/registry/RegistryPackageReader.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Reads package manifests from the local cloned registry repo.
|
|
6
|
+
*
|
|
7
|
+
* Layout: `packages/{first-letter}/{package-name}.json` (unscoped) or
|
|
8
|
+
* `packages/@{scope}/{package-name}.json` (scoped).
|
|
9
|
+
*/
|
|
10
|
+
declare class RegistryPackageReader {
|
|
11
|
+
private readonly shortId;
|
|
12
|
+
constructor(shortId: string);
|
|
13
|
+
/** Read and validate a package registry manifest. */
|
|
14
|
+
readPackageManifest(packageName: string): Promise<Result<PackageRegistryManifest>>;
|
|
15
|
+
private resolveManifestPath;
|
|
16
|
+
/**
|
|
17
|
+
* Read the trusted context for registry-type-dependent package validation.
|
|
18
|
+
* Missing, invalid, and unsupported metadata all fail closed: registry type
|
|
19
|
+
* is required to select the correct package-record policy.
|
|
20
|
+
*/
|
|
21
|
+
private readRegistryType;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { RegistryPackageReader };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SyncDecision, SyncPolicyInput } from "../contracts/RegistryCoreTypes.js";
|
|
2
|
+
//#region src/registry/RegistrySyncPolicy.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Determines whether a registry should be updated.
|
|
5
|
+
*
|
|
6
|
+
* Rules (evaluated in order):
|
|
7
|
+
* 1. If `forced`, always update.
|
|
8
|
+
* 2. If already updated within the current process lifetime, skip.
|
|
9
|
+
* 3. If last sync was within TTL window, skip.
|
|
10
|
+
* 4. Otherwise, update.
|
|
11
|
+
*/
|
|
12
|
+
declare function evaluateSyncPolicy(input: SyncPolicyInput): SyncDecision;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { evaluateSyncPolicy };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RegistryDescriptor } from "../contracts/RegistryCoreTypes.js";
|
|
2
|
+
import { GitCommandRunner } from "./GitRunner.js";
|
|
3
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
4
|
+
//#region src/registry/RegistryUpdater.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Handles git clone and git fetch/pull for a single registry.
|
|
7
|
+
*/
|
|
8
|
+
declare class RegistryUpdater {
|
|
9
|
+
private readonly shortId;
|
|
10
|
+
private readonly descriptor;
|
|
11
|
+
private readonly runner;
|
|
12
|
+
constructor(shortId: string, descriptor: RegistryDescriptor, gitBinary: string, runner?: GitCommandRunner);
|
|
13
|
+
/** Clone or fetch the registry repo as needed. */
|
|
14
|
+
update(): Promise<Result<void>>;
|
|
15
|
+
/** Probe remote access without cloning or mutating the local registry cache. */
|
|
16
|
+
probeAccess(interactive?: boolean): Promise<Result<void>>;
|
|
17
|
+
private cloneRepo;
|
|
18
|
+
private fetchRepo;
|
|
19
|
+
private resolveRefSpec;
|
|
20
|
+
private runGit;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { RegistryUpdater };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/registry/RegistryUrlSanitizer.d.ts
|
|
2
|
+
/** Return a registry coordinate that is safe to include in diagnostics. */
|
|
3
|
+
declare function sanitizeRegistryUrlForDisplay(registryUrl: string): string;
|
|
4
|
+
/**
|
|
5
|
+
* Remove a registry URL and any HTTP credential/query/fragment material from
|
|
6
|
+
* arbitrary Git output before it enters a diagnostic.
|
|
7
|
+
*/
|
|
8
|
+
declare function redactRegistryUrlSecrets(value: string, registryUrl: string): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { redactRegistryUrlSecrets, sanitizeRegistryUrlForDisplay };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { PackageRegistryManifest, RegistryVersion } from "../../uapkg-registry-schema/index.js";
|
|
3
|
+
//#region src/resolution/PackageResolver.d.ts
|
|
4
|
+
interface ResolvedVersion {
|
|
5
|
+
readonly version: string;
|
|
6
|
+
readonly entry: RegistryVersion;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Resolve the best version from a registry manifest that satisfies a range.
|
|
10
|
+
*
|
|
11
|
+
* Uses {@link SemverSelectionPolicy} so that:
|
|
12
|
+
* - Stable ranges never auto-jump into prereleases.
|
|
13
|
+
* - Users already on a prerelease escape to a satisfying stable version
|
|
14
|
+
* as soon as one is published.
|
|
15
|
+
*
|
|
16
|
+
* @param current Optional currently-installed version, used to bias
|
|
17
|
+
* escape-from-prerelease selection.
|
|
18
|
+
*/
|
|
19
|
+
declare function resolveVersion(manifest: PackageRegistryManifest, versionRange: string, registryName: string, current?: string): Result<ResolvedVersion>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ResolvedVersion, resolveVersion };
|