@uapkg/cli 1.3.2 → 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 -36
- 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,36 @@
|
|
|
1
|
+
import { PackageVersion, VersionRange } from "../../uapkg-common-schema/index.js";
|
|
2
|
+
//#region src/resolution/SemverSelectionPolicy.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* npm-style version selection policy.
|
|
5
|
+
*
|
|
6
|
+
* Rules (matching npm's resolver behavior via `semver`):
|
|
7
|
+
*
|
|
8
|
+
* 1. A range that does not explicitly include a prerelease tag
|
|
9
|
+
* (e.g. `^1.0.0`) will never auto-select a prerelease version.
|
|
10
|
+
* 2. A range with an explicit prerelease tag (e.g. `^1.0.0-0`,
|
|
11
|
+
* `>=1.0.0-beta.1`) opts-in to prereleases via `includePrerelease`.
|
|
12
|
+
* 3. If the current installed version is a prerelease and a stable
|
|
13
|
+
* version satisfies the range, the stable version wins — users
|
|
14
|
+
* should escape the prerelease channel as soon as possible.
|
|
15
|
+
* 4. All other ties are broken by `semver.rcompare` (highest wins).
|
|
16
|
+
*
|
|
17
|
+
* This class is pure: no IO, no shared state.
|
|
18
|
+
*/
|
|
19
|
+
declare class SemverSelectionPolicy {
|
|
20
|
+
/**
|
|
21
|
+
* Select the best matching version.
|
|
22
|
+
*
|
|
23
|
+
* @param candidates All versions available in the registry manifest.
|
|
24
|
+
* @param range The semver range from the dependency declaration.
|
|
25
|
+
* @param current The version already installed/locked, if any. Used to
|
|
26
|
+
* bias escape-from-prerelease (rule #3).
|
|
27
|
+
* @returns The best matching version, or `null` if nothing satisfies.
|
|
28
|
+
*/
|
|
29
|
+
selectBest(candidates: readonly PackageVersion[], range: VersionRange, current?: PackageVersion): PackageVersion | null;
|
|
30
|
+
/** Does the range string itself mention a prerelease tag? */
|
|
31
|
+
private rangeExplicitlyOptsInToPrerelease;
|
|
32
|
+
/** Is the given version string a prerelease? */
|
|
33
|
+
private isPrerelease;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { SemverSelectionPolicy };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getRegistryPackagePath, getRegistryPackagePathSegments } from "./paths/RegistryPackagePath.js";
|
|
2
|
+
import { Integrity, IntegritySchema } from "./schemas/IntegritySchema.js";
|
|
3
|
+
import { RegistryDependency, RegistryDependencyDeclaration, RegistryDependencyDeclarationSchema, RegistryDependencyLongSchema, RegistryDependencySchema, RegistryDependencyShortSchema, normalizeRegistryDependencyDeclaration, normalizeRegistryDependencyRecord, toRegistryDependencyDeclaration, toRegistryDependencyRecordDeclaration } from "./schemas/RegistryDependencySchema.js";
|
|
4
|
+
import { RegistryMeta, RegistryMetaSchema, RegistryType, RegistryTypeSchema } from "./schemas/RegistryMetaSchema.js";
|
|
5
|
+
import { PackageRegistryManifest, PackageRegistryManifestSchema, createPackageRegistryManifestSchema } from "./schemas/PackageRegistryManifestSchema.js";
|
|
6
|
+
import { PackageSource, PackageSourceSchema } from "./schemas/PackageSourceSchema.js";
|
|
7
|
+
import { RegistryAsset, RegistryAssetSchema } from "./schemas/RegistryAssetSchema.js";
|
|
8
|
+
import { RegistryVersion, RegistryVersionSchema, ReleaseFiles, ReleaseFilesSchema, VersionMeta, VersionMetaSchema } from "./schemas/RegistryVersionSchema.js";
|
|
9
|
+
export { type Integrity, IntegritySchema, type PackageRegistryManifest, PackageRegistryManifestSchema, type PackageSource, PackageSourceSchema, type RegistryAsset, RegistryAssetSchema, type RegistryDependency, type RegistryDependencyDeclaration, RegistryDependencyDeclarationSchema, RegistryDependencyLongSchema, RegistryDependencySchema, RegistryDependencyShortSchema, type RegistryMeta, RegistryMetaSchema, type RegistryType, RegistryTypeSchema, type RegistryVersion, RegistryVersionSchema, type ReleaseFiles, ReleaseFilesSchema, type VersionMeta, VersionMetaSchema, createPackageRegistryManifestSchema, getRegistryPackagePath, getRegistryPackagePathSegments, normalizeRegistryDependencyDeclaration, normalizeRegistryDependencyRecord, toRegistryDependencyDeclaration, toRegistryDependencyRecordDeclaration };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/paths/RegistryPackagePath.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Canonical repository-relative path of a package's registry manifest.
|
|
4
|
+
*
|
|
5
|
+
* - unscoped: `packages/{first-letter}/{package-name}.json`
|
|
6
|
+
* - scoped: `packages/@{scope}/{package-name}.json`
|
|
7
|
+
*
|
|
8
|
+
* Segments are returned for path-separator-agnostic joining; use
|
|
9
|
+
* {@link getRegistryPackagePath} for the canonical `/`-joined form.
|
|
10
|
+
*/
|
|
11
|
+
declare function getRegistryPackagePathSegments(packageName: string): readonly string[];
|
|
12
|
+
/** Canonical `/`-separated repository-relative registry manifest path. */
|
|
13
|
+
declare function getRegistryPackagePath(packageName: string): string;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getRegistryPackagePath, getRegistryPackagePathSegments };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/schemas/IntegritySchema.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Integrity block for a release asset.
|
|
5
|
+
*/
|
|
6
|
+
declare const IntegritySchema: z.ZodObject<{
|
|
7
|
+
hash: z.core.$ZodBranded<z.ZodString, "AssetHash", "out">;
|
|
8
|
+
size: z.ZodNumber;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
type Integrity = z.infer<typeof IntegritySchema>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Integrity, IntegritySchema };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { RegistryDependency } from "./RegistryDependencySchema.js";
|
|
2
|
+
import { RegistryType } from "./RegistryMetaSchema.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
//#region src/schemas/PackageRegistryManifestSchema.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The top-level package registry manifest — one per package in the registry repo.
|
|
7
|
+
*
|
|
8
|
+
* File layout: `packages/{first-letter}/{package-name}.json` for unscoped
|
|
9
|
+
* names and `packages/@{scope}/{package-name}.json` for scoped names.
|
|
10
|
+
* Unknown optional members are tolerated rather than rejected so newer
|
|
11
|
+
* records do not break older clients.
|
|
12
|
+
*/
|
|
13
|
+
declare const PackageRegistryManifestSchema: z.ZodObject<{
|
|
14
|
+
name: z.core.$ZodBranded<z.ZodString, "PackageName", "out">;
|
|
15
|
+
packageSource: z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"git">;
|
|
17
|
+
url: z.ZodURL;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
versions: z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">, z.ZodObject<{
|
|
20
|
+
gitTree: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "GitTree", "out">>;
|
|
21
|
+
private: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
publishedAt: z.core.$ZodBranded<z.ZodNumber, "UnixTimestamp", "out">;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
releaseFiles: z.ZodObject<{
|
|
26
|
+
package: z.ZodObject<{
|
|
27
|
+
url: z.ZodURL;
|
|
28
|
+
integrity: z.ZodObject<{
|
|
29
|
+
hash: z.core.$ZodBranded<z.ZodString, "AssetHash", "out">;
|
|
30
|
+
size: z.ZodNumber;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
35
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
36
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
37
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
38
|
+
version: string & z.$brand<"VersionRange">;
|
|
39
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
40
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
41
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, 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
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
45
|
+
version: string & z.$brand<"VersionRange">;
|
|
46
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
47
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
48
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, 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
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
52
|
+
version: string & z.$brand<"VersionRange">;
|
|
53
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
54
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
/**
|
|
58
|
+
* Add the trusted registry-type policy to the structural package schema.
|
|
59
|
+
* Public registry versions must identify their source Git tree; private
|
|
60
|
+
* registry versions may omit it.
|
|
61
|
+
*/
|
|
62
|
+
declare function createPackageRegistryManifestSchema(registryType: RegistryType): z.ZodObject<{
|
|
63
|
+
name: z.core.$ZodBranded<z.ZodString, "PackageName", "out">;
|
|
64
|
+
packageSource: z.ZodObject<{
|
|
65
|
+
type: z.ZodLiteral<"git">;
|
|
66
|
+
url: z.ZodURL;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
versions: z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageVersion", "out">, z.ZodObject<{
|
|
69
|
+
gitTree: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "GitTree", "out">>;
|
|
70
|
+
private: z.ZodDefault<z.ZodBoolean>;
|
|
71
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
publishedAt: z.core.$ZodBranded<z.ZodNumber, "UnixTimestamp", "out">;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
releaseFiles: z.ZodObject<{
|
|
75
|
+
package: z.ZodObject<{
|
|
76
|
+
url: z.ZodURL;
|
|
77
|
+
integrity: z.ZodObject<{
|
|
78
|
+
hash: z.core.$ZodBranded<z.ZodString, "AssetHash", "out">;
|
|
79
|
+
size: z.ZodNumber;
|
|
80
|
+
}, z.core.$strict>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, 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
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
87
|
+
version: string & z.$brand<"VersionRange">;
|
|
88
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
89
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
90
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
91
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
92
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
93
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
94
|
+
version: string & z.$brand<"VersionRange">;
|
|
95
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
96
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
97
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
98
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
99
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
100
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
101
|
+
version: string & z.$brand<"VersionRange">;
|
|
102
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
103
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
type PackageRegistryManifest = z.infer<typeof PackageRegistryManifestSchema>;
|
|
107
|
+
//#endregion
|
|
108
|
+
export { PackageRegistryManifest, PackageRegistryManifestSchema, createPackageRegistryManifestSchema };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/schemas/PackageSourceSchema.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Describes where the package source lives.
|
|
5
|
+
*/
|
|
6
|
+
declare const PackageSourceSchema: z.ZodObject<{
|
|
7
|
+
type: z.ZodLiteral<"git">;
|
|
8
|
+
url: z.ZodURL;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
type PackageSource = z.infer<typeof PackageSourceSchema>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { PackageSource, PackageSourceSchema };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/schemas/RegistryAssetSchema.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* A downloadable release asset with integrity metadata.
|
|
5
|
+
*/
|
|
6
|
+
declare const RegistryAssetSchema: z.ZodObject<{
|
|
7
|
+
url: z.ZodURL;
|
|
8
|
+
integrity: z.ZodObject<{
|
|
9
|
+
hash: z.core.$ZodBranded<z.ZodString, "AssetHash", "out">;
|
|
10
|
+
size: z.ZodNumber;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
type RegistryAsset = z.infer<typeof RegistryAssetSchema>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { RegistryAsset, RegistryAssetSchema };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { RegistryNameSchema, VersionRangeSchema } from "../../uapkg-common-schema/index.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/schemas/RegistryDependencySchema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* A dependency entry stored inside a registry version.
|
|
6
|
+
*
|
|
7
|
+
* Both `version` (range) and `registry` (logical name) are required
|
|
8
|
+
* so that multi-registry resolution can work.
|
|
9
|
+
*/
|
|
10
|
+
declare const RegistryDependencyLongSchema: z.ZodObject<{
|
|
11
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
12
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
declare const RegistryDependencyShortSchema: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
15
|
+
declare const RegistryDependencyDeclarationSchema: z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
16
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
17
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
18
|
+
}, z.core.$strict>]>;
|
|
19
|
+
interface RegistryDependency {
|
|
20
|
+
readonly version: z.infer<typeof VersionRangeSchema>;
|
|
21
|
+
readonly registry?: z.infer<typeof RegistryNameSchema>;
|
|
22
|
+
}
|
|
23
|
+
type RegistryDependencyDeclaration = z.infer<typeof RegistryDependencyDeclarationSchema>;
|
|
24
|
+
declare const RegistryDependencySchema: z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
25
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
26
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
27
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
28
|
+
version: string & z.$brand<"VersionRange">;
|
|
29
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
30
|
+
} | (string & z.$brand<"VersionRange">)>>;
|
|
31
|
+
declare function normalizeRegistryDependencyDeclaration(input: RegistryDependencyDeclaration | RegistryDependency): RegistryDependency;
|
|
32
|
+
declare function toRegistryDependencyDeclaration(input: RegistryDependency): RegistryDependencyDeclaration;
|
|
33
|
+
declare function normalizeRegistryDependencyRecord(input?: Record<string, RegistryDependencyDeclaration | RegistryDependency>): Record<string, RegistryDependency> | undefined;
|
|
34
|
+
declare function toRegistryDependencyRecordDeclaration(input?: Record<string, RegistryDependency>): Record<string, RegistryDependencyDeclaration> | undefined;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { RegistryDependency, RegistryDependencyDeclaration, RegistryDependencyDeclarationSchema, RegistryDependencyLongSchema, RegistryDependencySchema, RegistryDependencyShortSchema, normalizeRegistryDependencyDeclaration, normalizeRegistryDependencyRecord, toRegistryDependencyDeclaration, toRegistryDependencyRecordDeclaration };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/schemas/RegistryMetaSchema.d.ts
|
|
3
|
+
/** Immutable control-plane classification of a UAPKG registry. */
|
|
4
|
+
declare const RegistryTypeSchema: z.ZodEnum<{
|
|
5
|
+
private: "private";
|
|
6
|
+
public: "public";
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Canonical `.uapkg/registry.meta.json` contract.
|
|
10
|
+
*
|
|
11
|
+
* The v1 core retains registry selection, display name, and package-policy
|
|
12
|
+
* context. Unknown members remain tolerated and preserved, including richer
|
|
13
|
+
* existing v1 files, while an unknown `schemaVersion` still fails closed.
|
|
14
|
+
*/
|
|
15
|
+
declare const RegistryMetaSchema: z.ZodObject<{
|
|
16
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
17
|
+
registry: z.ZodObject<{
|
|
18
|
+
id: z.ZodUUID;
|
|
19
|
+
name: z.core.$ZodBranded<z.ZodString, "RegistryName", "out">;
|
|
20
|
+
registryType: z.ZodEnum<{
|
|
21
|
+
private: "private";
|
|
22
|
+
public: "public";
|
|
23
|
+
}>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
type RegistryMeta = z.infer<typeof RegistryMetaSchema>;
|
|
27
|
+
type RegistryType = z.infer<typeof RegistryTypeSchema>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { RegistryMeta, RegistryMetaSchema, RegistryType, RegistryTypeSchema };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { RegistryDependency } from "./RegistryDependencySchema.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/schemas/RegistryVersionSchema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Release files attached to a version.
|
|
6
|
+
*/
|
|
7
|
+
declare const ReleaseFilesSchema: z.ZodObject<{
|
|
8
|
+
package: z.ZodObject<{
|
|
9
|
+
url: z.ZodURL;
|
|
10
|
+
integrity: z.ZodObject<{
|
|
11
|
+
hash: z.core.$ZodBranded<z.ZodString, "AssetHash", "out">;
|
|
12
|
+
size: z.ZodNumber;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
/**
|
|
17
|
+
* Metadata about a published version.
|
|
18
|
+
*/
|
|
19
|
+
declare const VersionMetaSchema: z.ZodObject<{
|
|
20
|
+
publishedAt: z.core.$ZodBranded<z.ZodNumber, "UnixTimestamp", "out">;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
/**
|
|
23
|
+
* A single version entry within a package registry manifest.
|
|
24
|
+
*
|
|
25
|
+
* Unknown optional members are tolerated (and ignored) rather than rejected:
|
|
26
|
+
* install-time verification compares the mandatory core plus the optional
|
|
27
|
+
* keys understood on both sides, so a newer record must not break an older
|
|
28
|
+
* client. The mandatory core itself stays strictly validated.
|
|
29
|
+
*/
|
|
30
|
+
declare const RegistryVersionSchema: z.ZodObject<{
|
|
31
|
+
gitTree: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "GitTree", "out">>;
|
|
32
|
+
private: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
publishedAt: z.core.$ZodBranded<z.ZodNumber, "UnixTimestamp", "out">;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
releaseFiles: z.ZodObject<{
|
|
37
|
+
package: z.ZodObject<{
|
|
38
|
+
url: z.ZodURL;
|
|
39
|
+
integrity: z.ZodObject<{
|
|
40
|
+
hash: z.core.$ZodBranded<z.ZodString, "AssetHash", "out">;
|
|
41
|
+
size: z.ZodNumber;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
dependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
46
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
47
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
48
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
49
|
+
version: string & z.$brand<"VersionRange">;
|
|
50
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
51
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
52
|
+
devDependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
53
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
54
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
55
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
56
|
+
version: string & z.$brand<"VersionRange">;
|
|
57
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
58
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
59
|
+
peerDependencies: z.ZodOptional<z.ZodRecord<z.core.$ZodBranded<z.ZodString, "PackageName", "out">, z.ZodPipe<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "VersionRange", "out">, z.ZodObject<{
|
|
60
|
+
version: z.core.$ZodBranded<z.ZodString, "VersionRange", "out">;
|
|
61
|
+
registry: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RegistryName", "out">>;
|
|
62
|
+
}, z.core.$strict>]>, z.ZodTransform<RegistryDependency, {
|
|
63
|
+
version: string & z.$brand<"VersionRange">;
|
|
64
|
+
registry?: (string & z.$brand<"RegistryName">) | undefined;
|
|
65
|
+
} | (string & z.$brand<"VersionRange">)>>>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
type RegistryVersion = z.infer<typeof RegistryVersionSchema>;
|
|
68
|
+
type ReleaseFiles = z.infer<typeof ReleaseFilesSchema>;
|
|
69
|
+
type VersionMeta = z.infer<typeof VersionMetaSchema>;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { RegistryVersion, RegistryVersionSchema, ReleaseFiles, ReleaseFilesSchema, VersionMeta, VersionMetaSchema };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Diagnostic, DiagnosticLevel } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
//#region src/aggregator/RegistryToolsAggregator.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Process-wide aggregator for all diagnostics emitted by `@uapkg/registry-tools`.
|
|
5
|
+
*
|
|
6
|
+
* Goals:
|
|
7
|
+
* - Single source of truth for CI consumers that want one consolidated list of
|
|
8
|
+
* warnings and errors across an entire run.
|
|
9
|
+
* - Plan-then-apply flows do not double-report: diagnostics with
|
|
10
|
+
* `emitPolicy: 'once'` are deduplicated by their stable `emitFingerprint`.
|
|
11
|
+
*
|
|
12
|
+
* This is a true singleton — instantiating multiple `RegistryTools` objects in
|
|
13
|
+
* the same process all push into the same aggregator.
|
|
14
|
+
*/
|
|
15
|
+
declare class RegistryToolsAggregator {
|
|
16
|
+
private static instance;
|
|
17
|
+
private readonly items;
|
|
18
|
+
private readonly seenFingerprints;
|
|
19
|
+
/** Get (or lazily create) the process-wide singleton aggregator. */
|
|
20
|
+
static getInstance(): RegistryToolsAggregator;
|
|
21
|
+
/** Replace the singleton — primarily intended for tests. */
|
|
22
|
+
static resetForTests(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Add a diagnostic to the aggregator.
|
|
25
|
+
*
|
|
26
|
+
* If the diagnostic uses `emitPolicy: 'once'` and a matching fingerprint has
|
|
27
|
+
* already been recorded, the call is a no-op and the method returns `false`.
|
|
28
|
+
*/
|
|
29
|
+
add(diagnostic: Diagnostic): boolean;
|
|
30
|
+
/** Add many diagnostics. */
|
|
31
|
+
addMany(diagnostics: readonly Diagnostic[]): void;
|
|
32
|
+
/** All diagnostics collected so far, in insertion order. */
|
|
33
|
+
all(): readonly Diagnostic[];
|
|
34
|
+
/** Diagnostics filtered by level. */
|
|
35
|
+
byLevel(level: DiagnosticLevel): readonly Diagnostic[];
|
|
36
|
+
errors(): readonly Diagnostic[];
|
|
37
|
+
warnings(): readonly Diagnostic[];
|
|
38
|
+
hasErrors(): boolean;
|
|
39
|
+
/** Wipe collected diagnostics. */
|
|
40
|
+
clear(): void;
|
|
41
|
+
}
|
|
42
|
+
/** Convenience accessor for the process-wide singleton. */
|
|
43
|
+
declare function getRegistryToolsAggregator(): RegistryToolsAggregator;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { RegistryToolsAggregator, getRegistryToolsAggregator };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Diagnostic } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { Integrity, PackageRegistryManifest, PackageSource, RegistryVersion } from "../../uapkg-registry-schema/index.js";
|
|
3
|
+
import { PackageName, PackageVersion } from "../../uapkg-common-schema/index.js";
|
|
4
|
+
//#region src/contracts/RegistryToolsTypes.d.ts
|
|
5
|
+
type ExternalRegistryPolicyMode = 'deny' | 'allow-listed' | 'allow-any';
|
|
6
|
+
type RemovalsPolicyMode = 'deny' | 'allow-version-remove' | 'allow-package-remove';
|
|
7
|
+
type UnknownKeysPolicyMode = 'ignore' | 'warn' | 'error';
|
|
8
|
+
interface RegistryToolsPolicy {
|
|
9
|
+
readonly externalRegistries?: ExternalRegistryPolicyMode;
|
|
10
|
+
readonly allowedExternalRegistryNames?: readonly string[];
|
|
11
|
+
readonly removals?: RemovalsPolicyMode;
|
|
12
|
+
readonly unknownKeys?: UnknownKeysPolicyMode;
|
|
13
|
+
readonly requireExistingDependencies?: boolean;
|
|
14
|
+
readonly requireReachableDependencyRanges?: boolean;
|
|
15
|
+
readonly requireSortedVersions?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** Fully resolved policy with defaults applied. */
|
|
18
|
+
type ResolvedRegistryToolsPolicy = Required<RegistryToolsPolicy>;
|
|
19
|
+
interface RegistryToolsOptions {
|
|
20
|
+
/** Root directory of the registry repo (NOT a package directory). */
|
|
21
|
+
readonly cwd: string;
|
|
22
|
+
readonly policy?: RegistryToolsPolicy;
|
|
23
|
+
}
|
|
24
|
+
interface PackageSummary {
|
|
25
|
+
readonly name: PackageName;
|
|
26
|
+
readonly manifestPath: string;
|
|
27
|
+
readonly versionCount: number;
|
|
28
|
+
}
|
|
29
|
+
interface WriteManifestResult {
|
|
30
|
+
readonly manifestPath: string;
|
|
31
|
+
readonly bytesWritten: number;
|
|
32
|
+
}
|
|
33
|
+
interface WriteResult {
|
|
34
|
+
readonly path: string;
|
|
35
|
+
readonly bytesWritten: number;
|
|
36
|
+
}
|
|
37
|
+
interface RegistryVersionValidationReport {
|
|
38
|
+
readonly packageName: PackageName;
|
|
39
|
+
readonly version: PackageVersion;
|
|
40
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
41
|
+
}
|
|
42
|
+
interface PackageValidationReport {
|
|
43
|
+
readonly packageName: PackageName;
|
|
44
|
+
readonly manifestPath: string;
|
|
45
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
46
|
+
}
|
|
47
|
+
interface RegistryValidationReport {
|
|
48
|
+
readonly packageReports: readonly PackageValidationReport[];
|
|
49
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
50
|
+
}
|
|
51
|
+
interface RegistryLintReport {
|
|
52
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
53
|
+
}
|
|
54
|
+
interface ChangedManifestValidation {
|
|
55
|
+
readonly perFile: readonly {
|
|
56
|
+
readonly path: string;
|
|
57
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
58
|
+
}[];
|
|
59
|
+
}
|
|
60
|
+
interface DependencyValidationReport {
|
|
61
|
+
readonly packageName: PackageName;
|
|
62
|
+
readonly version: PackageVersion;
|
|
63
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
64
|
+
}
|
|
65
|
+
interface ExternalRegistryPolicyReport {
|
|
66
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
67
|
+
}
|
|
68
|
+
interface ReleaseFileNameReport {
|
|
69
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
70
|
+
}
|
|
71
|
+
interface OfficialPackagePolicyReport {
|
|
72
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
73
|
+
}
|
|
74
|
+
interface AddPackageVersionRequest {
|
|
75
|
+
readonly packageName: PackageName;
|
|
76
|
+
readonly version: PackageVersion;
|
|
77
|
+
readonly packageSource: PackageSource;
|
|
78
|
+
readonly registryVersion: RegistryVersion;
|
|
79
|
+
readonly createPackageManifestIfMissing?: boolean;
|
|
80
|
+
readonly overwriteExistingVersion?: boolean;
|
|
81
|
+
}
|
|
82
|
+
interface RemovePackageVersionRequest {
|
|
83
|
+
readonly packageName: PackageName;
|
|
84
|
+
readonly version: PackageVersion;
|
|
85
|
+
}
|
|
86
|
+
interface RemovePackageRequest {
|
|
87
|
+
readonly packageName: PackageName;
|
|
88
|
+
}
|
|
89
|
+
type RegistryMutationOperation = {
|
|
90
|
+
readonly kind: 'create-manifest';
|
|
91
|
+
readonly path: string;
|
|
92
|
+
} | {
|
|
93
|
+
readonly kind: 'update-manifest';
|
|
94
|
+
readonly path: string;
|
|
95
|
+
} | {
|
|
96
|
+
readonly kind: 'delete-manifest';
|
|
97
|
+
readonly path: string;
|
|
98
|
+
};
|
|
99
|
+
interface RegistryMutationPlan {
|
|
100
|
+
readonly operations: readonly RegistryMutationOperation[];
|
|
101
|
+
readonly nextManifest?: PackageRegistryManifest;
|
|
102
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
103
|
+
}
|
|
104
|
+
interface RegistryMutationSummary {
|
|
105
|
+
readonly operations: readonly RegistryMutationOperation[];
|
|
106
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
107
|
+
}
|
|
108
|
+
type IntegrityAlgorithm = 'sha256' | 'sha512';
|
|
109
|
+
interface IntegrityVerificationResult {
|
|
110
|
+
readonly ok: boolean;
|
|
111
|
+
readonly actual: Integrity;
|
|
112
|
+
readonly expected: Integrity;
|
|
113
|
+
}
|
|
114
|
+
declare const REGISTRY_TOOLS_PACKAGES_DIR = "packages";
|
|
115
|
+
//#endregion
|
|
116
|
+
export { AddPackageVersionRequest, ChangedManifestValidation, DependencyValidationReport, ExternalRegistryPolicyMode, ExternalRegistryPolicyReport, IntegrityAlgorithm, IntegrityVerificationResult, OfficialPackagePolicyReport, PackageSummary, PackageValidationReport, REGISTRY_TOOLS_PACKAGES_DIR, RegistryLintReport, RegistryMutationOperation, RegistryMutationPlan, RegistryMutationSummary, RegistryToolsOptions, RegistryToolsPolicy, RegistryValidationReport, RegistryVersionValidationReport, ReleaseFileNameReport, RemovalsPolicyMode, RemovePackageRequest, RemovePackageVersionRequest, ResolvedRegistryToolsPolicy, UnknownKeysPolicyMode, WriteManifestResult, WriteResult };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RegistryToolsAggregator, getRegistryToolsAggregator } from "./aggregator/RegistryToolsAggregator.js";
|
|
2
|
+
import { AddPackageVersionRequest, ChangedManifestValidation, DependencyValidationReport, ExternalRegistryPolicyMode, ExternalRegistryPolicyReport, IntegrityAlgorithm, IntegrityVerificationResult, OfficialPackagePolicyReport, PackageSummary, PackageValidationReport, RegistryLintReport, RegistryMutationOperation, RegistryMutationPlan, RegistryMutationSummary, RegistryToolsOptions, RegistryToolsPolicy, RegistryValidationReport, RegistryVersionValidationReport, ReleaseFileNameReport, RemovalsPolicyMode, RemovePackageRequest, RemovePackageVersionRequest, ResolvedRegistryToolsPolicy, UnknownKeysPolicyMode, WriteManifestResult, WriteResult } from "./contracts/RegistryToolsTypes.js";
|
|
3
|
+
import { IntegrityCalculator } from "./io/IntegrityCalculator.js";
|
|
4
|
+
import { RegistryRepoPaths } from "./paths/RegistryRepoPaths.js";
|
|
5
|
+
import { ManifestStore } from "./io/ManifestStore.js";
|
|
6
|
+
import { PackageLister } from "./listing/PackageLister.js";
|
|
7
|
+
import { DependencyReachabilityValidator } from "./validation/DependencyReachabilityValidator.js";
|
|
8
|
+
import { ExternalRegistryPolicyValidator } from "./validation/ExternalRegistryPolicyValidator.js";
|
|
9
|
+
import { AddPackageVersionPlanner } from "./mutation/AddPackageVersionPlanner.js";
|
|
10
|
+
import { RemovePackagePlanner } from "./mutation/RemovePackagePlanner.js";
|
|
11
|
+
import { RemovePackageVersionPlanner } from "./mutation/RemovePackageVersionPlanner.js";
|
|
12
|
+
import { sortVersionsNewestFirst } from "./mutation/VersionSorter.js";
|
|
13
|
+
import { OfficialRegistryPolicyRequest, OfficialRegistryPolicyValidator } from "./validation/OfficialRegistryPolicyValidator.js";
|
|
14
|
+
import { RegistryTools } from "./tools/RegistryTools.js";
|
|
15
|
+
import { ManifestValidator } from "./validation/ManifestValidator.js";
|
|
16
|
+
import { RegistryValidator } from "./validation/RegistryValidator.js";
|
|
17
|
+
import { ReleaseFileNameValidator } from "./validation/ReleaseFileNameValidator.js";
|
|
18
|
+
export { AddPackageVersionPlanner, type AddPackageVersionRequest, type ChangedManifestValidation, DependencyReachabilityValidator, type DependencyValidationReport, type ExternalRegistryPolicyMode, type ExternalRegistryPolicyReport, ExternalRegistryPolicyValidator, type IntegrityAlgorithm, IntegrityCalculator, type IntegrityVerificationResult, ManifestStore, ManifestValidator, type OfficialPackagePolicyReport, type OfficialRegistryPolicyRequest, OfficialRegistryPolicyValidator, PackageLister, type PackageSummary, type PackageValidationReport, type RegistryLintReport, type RegistryMutationOperation, type RegistryMutationPlan, type RegistryMutationSummary, RegistryRepoPaths, RegistryTools, RegistryToolsAggregator, type RegistryToolsOptions, type RegistryToolsPolicy, type RegistryValidationReport, RegistryValidator, type RegistryVersionValidationReport, type ReleaseFileNameReport, ReleaseFileNameValidator, type RemovalsPolicyMode, RemovePackagePlanner, type RemovePackageRequest, RemovePackageVersionPlanner, type RemovePackageVersionRequest, type ResolvedRegistryToolsPolicy, type UnknownKeysPolicyMode, type WriteManifestResult, type WriteResult, getRegistryToolsAggregator, sortVersionsNewestFirst };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RegistryToolsAggregator } from "../aggregator/RegistryToolsAggregator.js";
|
|
2
|
+
import { IntegrityAlgorithm, IntegrityVerificationResult } from "../contracts/RegistryToolsTypes.js";
|
|
3
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
4
|
+
import { Integrity } from "../../uapkg-registry-schema/index.js";
|
|
5
|
+
//#region src/io/IntegrityCalculator.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Computes and verifies file integrity locally — never reaches the network.
|
|
8
|
+
*/
|
|
9
|
+
declare class IntegrityCalculator {
|
|
10
|
+
private readonly aggregator;
|
|
11
|
+
constructor(aggregator: RegistryToolsAggregator);
|
|
12
|
+
/** Stream-hash a local file and return a validated `Integrity` record. */
|
|
13
|
+
compute(filePath: string, algorithm?: IntegrityAlgorithm): Promise<Result<Integrity>>;
|
|
14
|
+
/** Recompute a file's integrity and compare it to an expected value. */
|
|
15
|
+
verify(filePath: string, expected: Integrity): Promise<Result<IntegrityVerificationResult>>;
|
|
16
|
+
/** Hash a file by streaming. */
|
|
17
|
+
private streamHash;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { IntegrityCalculator };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RegistryToolsAggregator } from "../aggregator/RegistryToolsAggregator.js";
|
|
2
|
+
import { WriteManifestResult } from "../contracts/RegistryToolsTypes.js";
|
|
3
|
+
import { RegistryRepoPaths } from "../paths/RegistryRepoPaths.js";
|
|
4
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
5
|
+
import { PackageRegistryManifest } from "../../uapkg-registry-schema/index.js";
|
|
6
|
+
import { PackageName } from "../../uapkg-common-schema/index.js";
|
|
7
|
+
//#region src/io/ManifestStore.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Reads, validates, and writes registry-package manifests on disk.
|
|
10
|
+
*
|
|
11
|
+
* Responsibilities:
|
|
12
|
+
* - Resolve manifest paths for a given package name.
|
|
13
|
+
* - Decode JSON safely.
|
|
14
|
+
* - Validate against `PackageRegistryManifestSchema`.
|
|
15
|
+
* - Write deterministic, sorted, pretty-printed JSON.
|
|
16
|
+
*/
|
|
17
|
+
declare class ManifestStore {
|
|
18
|
+
private readonly paths;
|
|
19
|
+
private readonly aggregator;
|
|
20
|
+
constructor(paths: RegistryRepoPaths, aggregator: RegistryToolsAggregator);
|
|
21
|
+
/** Resolve the manifest path for a package. Pure path computation. */
|
|
22
|
+
resolveManifestPath(packageName: PackageName): string;
|
|
23
|
+
/** True if the manifest file exists on disk. */
|
|
24
|
+
exists(packageName: PackageName): boolean;
|
|
25
|
+
/** Read and validate a package manifest. Emits a missing-package diagnostic when absent. */
|
|
26
|
+
read(packageName: PackageName): Promise<Result<PackageRegistryManifest>>;
|
|
27
|
+
/** Read and validate a manifest file at an arbitrary path. */
|
|
28
|
+
readFromPath(filePath: string): Promise<Result<PackageRegistryManifest>>;
|
|
29
|
+
/**
|
|
30
|
+
* Write a package manifest deterministically.
|
|
31
|
+
*
|
|
32
|
+
* Versions are pre-sorted newest-first by SemVer. The on-disk JSON uses
|
|
33
|
+
* stable key ordering and a trailing newline so version control shows
|
|
34
|
+
* minimal diffs.
|
|
35
|
+
*/
|
|
36
|
+
write(manifest: PackageRegistryManifest): Promise<Result<WriteManifestResult>>;
|
|
37
|
+
/** Sort versions newest-first by SemVer; preserves all other fields. */
|
|
38
|
+
normalize(manifest: PackageRegistryManifest): PackageRegistryManifest;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ManifestStore };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RegistryToolsAggregator } from "../aggregator/RegistryToolsAggregator.js";
|
|
2
|
+
import { PackageSummary } from "../contracts/RegistryToolsTypes.js";
|
|
3
|
+
import { RegistryRepoPaths } from "../paths/RegistryRepoPaths.js";
|
|
4
|
+
import { ManifestStore } from "../io/ManifestStore.js";
|
|
5
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
6
|
+
import { PackageName } from "../../uapkg-common-schema/index.js";
|
|
7
|
+
//#region src/listing/PackageLister.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Lists packages in the registry repo by walking `packages/{first-letter}/*.json`.
|
|
10
|
+
*/
|
|
11
|
+
declare class PackageLister {
|
|
12
|
+
private readonly paths;
|
|
13
|
+
private readonly store;
|
|
14
|
+
private readonly aggregator;
|
|
15
|
+
constructor(paths: RegistryRepoPaths, store: ManifestStore, aggregator: RegistryToolsAggregator);
|
|
16
|
+
/** All package names in the registry repo, sorted alphabetically. */
|
|
17
|
+
listPackageNames(): Promise<Result<PackageName[]>>;
|
|
18
|
+
/** Summaries (manifest path + version count) for every package. */
|
|
19
|
+
listSummaries(): Promise<Result<PackageSummary[]>>;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { PackageLister };
|