@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,35 @@
|
|
|
1
|
+
import { Diagnostic, DiagnosticCode } from "../../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { ComponentType } from "react";
|
|
3
|
+
//#region src/ink/contracts/InkTypes.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Props every family-body component receives. Each component renders only
|
|
6
|
+
* the **body** of a diagnostic — icon, code header, and hint are rendered
|
|
7
|
+
* by {@link DiagnosticView}. Bodies are pure (data-in → element-out) and
|
|
8
|
+
* must never touch config, fs, or stdout.
|
|
9
|
+
*/
|
|
10
|
+
interface DiagnosticBodyProps {
|
|
11
|
+
readonly diagnostic: Diagnostic;
|
|
12
|
+
}
|
|
13
|
+
/** A React/Ink component that renders a diagnostic body. */
|
|
14
|
+
type DiagnosticBodyComponent = ComponentType<DiagnosticBodyProps> & {
|
|
15
|
+
/** The body renders the hint itself to control its position among resources. */
|
|
16
|
+
rendersHint?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Map of diagnostic code → body component. Any code **not** present in the
|
|
20
|
+
* map falls back to {@link PlainTextBody}, which renders the same prose
|
|
21
|
+
* `formatPlainText` would emit — just wrapped in `<Text>`.
|
|
22
|
+
*/
|
|
23
|
+
type DiagnosticInkComponentMap = Partial<Record<DiagnosticCode, DiagnosticBodyComponent>>;
|
|
24
|
+
/**
|
|
25
|
+
* Contract for a lookup service that maps diagnostic codes to Ink bodies.
|
|
26
|
+
*
|
|
27
|
+
* The registry is the Ink analog of `FormatterRegistry` — same spirit
|
|
28
|
+
* (code → renderer), different codomain (React element vs. string).
|
|
29
|
+
*/
|
|
30
|
+
interface IDiagnosticInkRegistry {
|
|
31
|
+
register(code: DiagnosticCode, component: DiagnosticBodyComponent): void;
|
|
32
|
+
resolve(code: DiagnosticCode): DiagnosticBodyComponent | undefined;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { DiagnosticBodyComponent, DiagnosticBodyProps, DiagnosticInkComponentMap, IDiagnosticInkRegistry };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DiagnosticInkComponentMap } from "../contracts/InkTypes.js";
|
|
2
|
+
//#region src/ink/defaults/defaultInkComponents.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Aggregated default Ink component map — one entry per well-known diagnostic
|
|
5
|
+
* code. Unknown codes fall back to {@link PlainTextBody} inside
|
|
6
|
+
* {@link DiagnosticView}, so the registry is always safe to call.
|
|
7
|
+
*
|
|
8
|
+
* Consumers that want custom behavior can either:
|
|
9
|
+
*
|
|
10
|
+
* 1. Pass a spread: `{ ...defaultInkComponents, MY_CODE: MyBody }`, or
|
|
11
|
+
* 2. Instantiate a {@link DiagnosticInkRegistry} and `.register()` after.
|
|
12
|
+
*/
|
|
13
|
+
declare const defaultInkComponents: DiagnosticInkComponentMap;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { defaultInkComponents };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DiagnosticBodyComponent, DiagnosticBodyProps, DiagnosticInkComponentMap, IDiagnosticInkRegistry } from "./contracts/InkTypes.js";
|
|
2
|
+
import { installerInkComponents } from "./components/installerInkComponents.js";
|
|
3
|
+
import { manifestInkComponents } from "./components/manifestInkComponents.js";
|
|
4
|
+
import { postinstallInkComponents } from "./components/postinstallInkComponents.js";
|
|
5
|
+
import { publishingInkComponents } from "./components/publishingInkComponents.js";
|
|
6
|
+
import { registryInkComponents } from "./components/registryInkComponents.js";
|
|
7
|
+
import { resolverInkComponents } from "./components/resolverInkComponents.js";
|
|
8
|
+
import { safetyInkComponents } from "./components/safetyInkComponents.js";
|
|
9
|
+
import { specInkComponents } from "./components/specInkComponents.js";
|
|
10
|
+
import { defaultInkComponents } from "./defaults/defaultInkComponents.js";
|
|
11
|
+
import { HintLine } from "./primitives/HintLine.js";
|
|
12
|
+
import { PlainTextBody } from "./primitives/PlainTextBody.js";
|
|
13
|
+
import { SeverityBadge } from "./primitives/SeverityBadge.js";
|
|
14
|
+
import { DiagnosticInkRegistry, createInkRegistry } from "./registry/DiagnosticInkRegistry.js";
|
|
15
|
+
import { DiagnosticsListView, DiagnosticsListViewProps } from "./views/DiagnosticsListView.js";
|
|
16
|
+
import { DiagnosticView, DiagnosticViewProps } from "./views/DiagnosticView.js";
|
|
17
|
+
export { type DiagnosticBodyComponent, type DiagnosticBodyProps, type DiagnosticInkComponentMap, DiagnosticInkRegistry, DiagnosticView, type DiagnosticViewProps, DiagnosticsListView, type DiagnosticsListViewProps, HintLine, type IDiagnosticInkRegistry, PlainTextBody, SeverityBadge, createInkRegistry, defaultInkComponents, installerInkComponents, manifestInkComponents, postinstallInkComponents, publishingInkComponents, registryInkComponents, resolverInkComponents, safetyInkComponents, specInkComponents };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
//#region src/ink/primitives/HintLine.d.ts
|
|
3
|
+
interface HintLineProps {
|
|
4
|
+
readonly hint: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Bottom-of-diagnostic actionable hint. Always indented and tinted so it
|
|
8
|
+
* stands apart from the body. Renders nothing when the hint is empty.
|
|
9
|
+
*/
|
|
10
|
+
declare function HintLine({ hint }: HintLineProps): ReactElement | null;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { HintLine, HintLineProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DiagnosticBodyProps } from "../contracts/InkTypes.js";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
//#region src/ink/primitives/PlainTextBody.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Fallback body used when no family-specific component is registered for a
|
|
6
|
+
* diagnostic code. Writes the diagnostic message verbatim so the Ink render
|
|
7
|
+
* stays in structural parity with the plain-text formatter.
|
|
8
|
+
*/
|
|
9
|
+
declare function PlainTextBody({ diagnostic }: DiagnosticBodyProps): ReactElement;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { PlainTextBody };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Diagnostic } from "../../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
//#region src/ink/primitives/SeverityBadge.d.ts
|
|
4
|
+
interface SeverityBadgeProps {
|
|
5
|
+
readonly level: Diagnostic['level'];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A single colored severity icon. Pure presentation — no diagnostic-specific
|
|
9
|
+
* logic lives here. Used as a prefix by {@link DiagnosticView}.
|
|
10
|
+
*/
|
|
11
|
+
declare function SeverityBadge({ level }: SeverityBadgeProps): ReactElement;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { SeverityBadge, SeverityBadgeProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DiagnosticBodyComponent, DiagnosticInkComponentMap, IDiagnosticInkRegistry } from "../contracts/InkTypes.js";
|
|
2
|
+
import { DiagnosticCode } from "../../../uapkg-diagnostics/index.js";
|
|
3
|
+
//#region src/ink/registry/DiagnosticInkRegistry.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Lookup service for Ink diagnostic-body components.
|
|
6
|
+
*
|
|
7
|
+
* - One-shot register: seed with a map at construction.
|
|
8
|
+
* - Extensible: callers can `register(code, component)` for bespoke overrides.
|
|
9
|
+
*
|
|
10
|
+
* The registry only *resolves* components — the composing {@link DiagnosticView}
|
|
11
|
+
* is responsible for fallback behavior when `resolve()` returns undefined.
|
|
12
|
+
*/
|
|
13
|
+
declare class DiagnosticInkRegistry implements IDiagnosticInkRegistry {
|
|
14
|
+
private readonly components;
|
|
15
|
+
constructor(seed?: DiagnosticInkComponentMap);
|
|
16
|
+
register(code: DiagnosticCode, component: DiagnosticBodyComponent): void;
|
|
17
|
+
resolve(code: DiagnosticCode): DiagnosticBodyComponent | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Factory helper so consumers don't have to `new` the class directly.
|
|
21
|
+
*/
|
|
22
|
+
declare function createInkRegistry(seed?: DiagnosticInkComponentMap): DiagnosticInkRegistry;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DiagnosticInkRegistry, createInkRegistry };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IDiagnosticInkRegistry } from "../contracts/InkTypes.js";
|
|
2
|
+
import { Diagnostic } from "../../../uapkg-diagnostics/index.js";
|
|
3
|
+
import { ReactElement } from "react";
|
|
4
|
+
//#region src/ink/views/DiagnosticView.d.ts
|
|
5
|
+
interface DiagnosticViewProps {
|
|
6
|
+
readonly diagnostic: Diagnostic;
|
|
7
|
+
readonly registry: IDiagnosticInkRegistry;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Renders one diagnostic in three layers:
|
|
11
|
+
*
|
|
12
|
+
* 1. Header — severity badge + code + message.
|
|
13
|
+
* 2. Body — family-specific component (resolved from {@link IDiagnosticInkRegistry})
|
|
14
|
+
* or {@link PlainTextBody} as a safe fallback.
|
|
15
|
+
* 3. Hint — the `hint` field when present.
|
|
16
|
+
*
|
|
17
|
+
* This component is pure — it neither reads config nor talks to I/O.
|
|
18
|
+
*/
|
|
19
|
+
declare function DiagnosticView({ diagnostic, registry }: DiagnosticViewProps): ReactElement;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { DiagnosticView, DiagnosticViewProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDiagnosticInkRegistry } from "../contracts/InkTypes.js";
|
|
2
|
+
import { Diagnostic } from "../../../uapkg-diagnostics/index.js";
|
|
3
|
+
import { ReactElement } from "react";
|
|
4
|
+
//#region src/ink/views/DiagnosticsListView.d.ts
|
|
5
|
+
interface DiagnosticsListViewProps {
|
|
6
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
7
|
+
readonly registry: IDiagnosticInkRegistry;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Renders a list of diagnostics (already pre-sorted by the caller — usually
|
|
11
|
+
* severity-descending). Produces nothing for an empty input so the host
|
|
12
|
+
* Ink tree stays quiet.
|
|
13
|
+
*/
|
|
14
|
+
declare function DiagnosticsListView({ diagnostics, registry }: DiagnosticsListViewProps): ReactElement | null;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DiagnosticsListView, DiagnosticsListViewProps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DiagnosticFormatterFn, FormatterMap, IFormatterRegistry } from "../contracts/FormatterTypes.js";
|
|
2
|
+
import { Diagnostic, DiagnosticCode } from "../../uapkg-diagnostics/index.js";
|
|
3
|
+
//#region src/registry/FormatterRegistry.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Registry that maps diagnostic codes to formatter functions.
|
|
6
|
+
* Falls back to a plain-text default when no specific formatter is registered.
|
|
7
|
+
*/
|
|
8
|
+
declare class FormatterRegistry implements IFormatterRegistry {
|
|
9
|
+
private readonly formatters;
|
|
10
|
+
private readonly fallback;
|
|
11
|
+
constructor(fallback?: DiagnosticFormatterFn);
|
|
12
|
+
/** Register a formatter for a single diagnostic code. */
|
|
13
|
+
register(code: DiagnosticCode, formatter: DiagnosticFormatterFn): void;
|
|
14
|
+
/** Bulk-register multiple formatters from a partial map. */
|
|
15
|
+
registerAll(map: FormatterMap): void;
|
|
16
|
+
/** Format a single diagnostic using the registered (or fallback) formatter. */
|
|
17
|
+
format(diagnostic: Diagnostic): string;
|
|
18
|
+
/** Format an array of diagnostics, joining with newlines. */
|
|
19
|
+
formatAll(diagnostics: readonly Diagnostic[]): string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Create a new `FormatterRegistry` optionally pre-loaded with formatters.
|
|
23
|
+
*/
|
|
24
|
+
declare function createFormatterRegistry(initial?: FormatterMap, fallback?: DiagnosticFormatterFn): FormatterRegistry;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { FormatterRegistry, createFormatterRegistry };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/utils/indent.d.ts
|
|
2
|
+
/** Indent every line of `text` by `spaces` spaces. */
|
|
3
|
+
declare function indent(text: string, spaces?: number): string;
|
|
4
|
+
/** Format an array of items as a bulleted list. */
|
|
5
|
+
declare function bulletList(items: readonly string[], bullet?: string): string;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { bulletList, indent };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { RegistryVersion } from "../../uapkg-registry-schema/index.js";
|
|
2
|
+
import { AssetHash, InstallPath, PackageName, PackageVersion, RegistryName } from "../../uapkg-common-schema/index.js";
|
|
3
|
+
//#region src/contracts/InstallerTypes.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The kind of change the installer will perform for a single package.
|
|
6
|
+
*/
|
|
7
|
+
type InstallActionType = 'add' | 'update' | 'remove' | 'unchanged';
|
|
8
|
+
/**
|
|
9
|
+
* A single planned action — fully self-describing so the executor does not
|
|
10
|
+
* need to re-query the lockfile or registry at execution time.
|
|
11
|
+
*/
|
|
12
|
+
interface InstallAction {
|
|
13
|
+
readonly type: InstallActionType;
|
|
14
|
+
readonly packageName: PackageName;
|
|
15
|
+
readonly path: InstallPath;
|
|
16
|
+
/** Target version (for add / update / unchanged). */
|
|
17
|
+
readonly targetVersion?: PackageVersion;
|
|
18
|
+
/** Previously installed version (for update / remove). */
|
|
19
|
+
readonly currentVersion?: PackageVersion;
|
|
20
|
+
readonly registry?: RegistryName;
|
|
21
|
+
readonly integrity?: AssetHash;
|
|
22
|
+
/** Byte size of the .tgz asset, if known from the registry manifest. */
|
|
23
|
+
readonly sizeBytes?: number;
|
|
24
|
+
/** Asset download URL for add / update. */
|
|
25
|
+
readonly downloadUrl?: string;
|
|
26
|
+
/** Registry version record used for claims verification (add / update). */
|
|
27
|
+
readonly registryEntry?: RegistryVersion;
|
|
28
|
+
/** Immutable registry type from the projected registry metadata, when known. */
|
|
29
|
+
readonly registryType?: 'public' | 'private';
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Summary counts for the whole plan.
|
|
33
|
+
*/
|
|
34
|
+
interface InstallSummary {
|
|
35
|
+
readonly added: number;
|
|
36
|
+
readonly updated: number;
|
|
37
|
+
readonly removed: number;
|
|
38
|
+
readonly unchanged: number;
|
|
39
|
+
readonly totalBytes: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The full plan returned by `InstallPlanner.plan()`. Safe to serialize
|
|
43
|
+
* (e.g. for `--dry-run --json`).
|
|
44
|
+
*/
|
|
45
|
+
interface InstallPlan {
|
|
46
|
+
readonly actions: readonly InstallAction[];
|
|
47
|
+
readonly summary: InstallSummary;
|
|
48
|
+
}
|
|
49
|
+
/** Terminal status of one package after a partial, verification-gated install. */
|
|
50
|
+
type PackageInstallStatus = 'installed' | 'failed' | 'skipped_no_verified_parent' | 'removed' | 'unchanged';
|
|
51
|
+
interface PackageInstallOutcome {
|
|
52
|
+
readonly packageName: PackageName;
|
|
53
|
+
readonly status: PackageInstallStatus;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Result of executing an install plan. Installation is partial by design:
|
|
57
|
+
* one failed branch never rolls back or blocks unrelated verified branches.
|
|
58
|
+
*/
|
|
59
|
+
interface InstallReport {
|
|
60
|
+
readonly plan: InstallPlan;
|
|
61
|
+
readonly outcomes: readonly PackageInstallOutcome[];
|
|
62
|
+
/** Packages newly installed (verified add/update actions). */
|
|
63
|
+
readonly installed: readonly PackageName[];
|
|
64
|
+
/** Packages whose download/verification/extraction failed. */
|
|
65
|
+
readonly failed: readonly PackageName[];
|
|
66
|
+
/** Packages left uninstalled because no verified parent required them. */
|
|
67
|
+
readonly skipped: readonly PackageName[];
|
|
68
|
+
/** Installed/retained packages whose dependency closure is incomplete. */
|
|
69
|
+
readonly incompleteClosure: readonly PackageName[];
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Options accepted by {@link Installer}. Concurrency is NOT accepted here —
|
|
73
|
+
* the installer reads `network.maxConcurrentDownloads` from config.
|
|
74
|
+
*/
|
|
75
|
+
interface InstallerOptions {
|
|
76
|
+
/** Absolute path to the directory containing `uapkg.json`. */
|
|
77
|
+
readonly manifestRoot: string;
|
|
78
|
+
/** If true, safety policies emit `SAFETY_OVERRIDDEN_BY_FORCE` instead of failing. */
|
|
79
|
+
readonly force?: boolean;
|
|
80
|
+
/** If true, the plan is produced but no IO is performed. */
|
|
81
|
+
readonly dryRun?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Direct dependency names declared by the trusted root manifest. These seed
|
|
84
|
+
* the verification-gated traversal: a package is eligible only when a root
|
|
85
|
+
* or an already verified parent requires it. When omitted, every lockfile
|
|
86
|
+
* entry is treated as a trusted root request.
|
|
87
|
+
*/
|
|
88
|
+
readonly rootDependencies?: readonly string[];
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
export { InstallAction, InstallActionType, InstallPlan, InstallReport, InstallSummary, InstallerOptions, PackageInstallOutcome, PackageInstallStatus };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { InstallAction } from "./InstallerTypes.js";
|
|
2
|
+
import { Diagnostic } from "../../uapkg-diagnostics/index.js";
|
|
3
|
+
//#region src/contracts/SafetyPolicyTypes.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Stable identifier for a built-in safety policy.
|
|
6
|
+
*
|
|
7
|
+
* This is NOT a closed enum — consumers MAY register their own policies via
|
|
8
|
+
* {@link SafetyPolicyRegistry.register}. Built-in identifiers are reserved.
|
|
9
|
+
*/
|
|
10
|
+
type BuiltInSafetyPolicyId = 'no-marker' | 'plugin-manifest-path';
|
|
11
|
+
/**
|
|
12
|
+
* Outcome of evaluating a single safety policy against one action.
|
|
13
|
+
*/
|
|
14
|
+
type SafetyEvaluation = {
|
|
15
|
+
readonly kind: 'allow';
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: 'block';
|
|
18
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'warn';
|
|
21
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Context passed to every policy on each evaluation. Policies do not share
|
|
25
|
+
* state and must not mutate the context.
|
|
26
|
+
*/
|
|
27
|
+
interface SafetyContext {
|
|
28
|
+
readonly manifestRoot: string;
|
|
29
|
+
readonly action: InstallAction;
|
|
30
|
+
readonly force: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Contract every safety policy implements.
|
|
34
|
+
*
|
|
35
|
+
* A policy is a stateless, injectable function-object with an identifier so
|
|
36
|
+
* failures can be cited in diagnostics and `--force` messages.
|
|
37
|
+
*/
|
|
38
|
+
interface SafetyPolicy {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
evaluate(context: SafetyContext): Promise<SafetyEvaluation>;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { BuiltInSafetyPolicyId, SafetyContext, SafetyEvaluation, SafetyPolicy };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PackageName, PackageVersion } from "../../uapkg-common-schema/index.js";
|
|
2
|
+
//#region src/contracts/StatusStreamTypes.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Lifecycle state of a single installer work-slot.
|
|
5
|
+
*
|
|
6
|
+
* One status row per slot; slot ids are stable across frames so Ink can
|
|
7
|
+
* render a fixed-height region without re-flowing.
|
|
8
|
+
*/
|
|
9
|
+
type SlotState = 'idle' | 'downloading' | 'verifying' | 'extracting' | 'removing' | 'done' | 'failed';
|
|
10
|
+
/**
|
|
11
|
+
* Per-slot status snapshot.
|
|
12
|
+
*/
|
|
13
|
+
interface SlotSnapshot {
|
|
14
|
+
readonly slotId: number;
|
|
15
|
+
readonly state: SlotState;
|
|
16
|
+
readonly packageName?: PackageName;
|
|
17
|
+
readonly version?: PackageVersion;
|
|
18
|
+
readonly bytesDone: number;
|
|
19
|
+
readonly bytesTotal?: number;
|
|
20
|
+
readonly attempt: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Aggregate totals across all actions in the plan.
|
|
24
|
+
*/
|
|
25
|
+
interface InstallTotals {
|
|
26
|
+
readonly added: number;
|
|
27
|
+
readonly updated: number;
|
|
28
|
+
readonly removed: number;
|
|
29
|
+
readonly unchanged: number;
|
|
30
|
+
readonly bytesDone: number;
|
|
31
|
+
readonly bytesTotal: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Immutable snapshot yielded by `Installer.getStatusStream()`. The CLI view
|
|
35
|
+
* re-renders whenever a new snapshot arrives.
|
|
36
|
+
*/
|
|
37
|
+
interface DownloadStatusSnapshot {
|
|
38
|
+
readonly slots: readonly SlotSnapshot[];
|
|
39
|
+
readonly totals: InstallTotals;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { DownloadStatusSnapshot, InstallTotals, SlotSnapshot, SlotState };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { RegistryVersion } from "../../uapkg-registry-schema/index.js";
|
|
3
|
+
import { PackageName, PackageVersion } from "../../uapkg-common-schema/index.js";
|
|
4
|
+
//#region src/core/ClaimsVerifier.d.ts
|
|
5
|
+
interface ClaimsVerificationInput {
|
|
6
|
+
readonly packageName: PackageName;
|
|
7
|
+
readonly version: PackageVersion;
|
|
8
|
+
readonly archivePath: string;
|
|
9
|
+
readonly registryEntry: RegistryVersion;
|
|
10
|
+
readonly registryType?: 'public' | 'private';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Install-time packaged-manifest verification: the registry record's claims
|
|
14
|
+
* must agree with the packaged `uapkg.json` over the mandatory core plus the
|
|
15
|
+
* shared understood keys, and a `public` registry rejects `private: true`.
|
|
16
|
+
* Byte size and SHA-256 are verified separately before this step.
|
|
17
|
+
*/
|
|
18
|
+
declare class ClaimsVerifier {
|
|
19
|
+
verify(input: ClaimsVerificationInput): Promise<Result<void>>;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ClaimsVerificationInput, ClaimsVerifier };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { Lockfile } from "../../uapkg-package-manifest-schema/index.js";
|
|
3
|
+
import { InstallPath, PackageName, PackageVersion } from "../../uapkg-common-schema/index.js";
|
|
4
|
+
//#region src/core/DiskStateInspector.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* What we found at a given install path on disk.
|
|
7
|
+
*/
|
|
8
|
+
interface DiskStateEntry {
|
|
9
|
+
readonly path: InstallPath;
|
|
10
|
+
readonly exists: boolean;
|
|
11
|
+
readonly hasManifest: boolean;
|
|
12
|
+
readonly installedName?: PackageName;
|
|
13
|
+
readonly installedVersion?: PackageVersion;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Determines the current on-disk state of every package referenced in a
|
|
17
|
+
* lockfile. Scoped to lockfile entries only — files outside the lockfile's
|
|
18
|
+
* install paths are never touched or enumerated.
|
|
19
|
+
*
|
|
20
|
+
* This is the entry point that makes the installer non-destructive: we only
|
|
21
|
+
* know about paths we already own.
|
|
22
|
+
*/
|
|
23
|
+
declare class DiskStateInspector {
|
|
24
|
+
inspect(manifestRoot: string, lockfile: Lockfile): Promise<Result<Map<PackageName, DiskStateEntry>>>;
|
|
25
|
+
private resolveRelPath;
|
|
26
|
+
private inspectOne;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { DiskStateEntry, DiskStateInspector };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { InstallPlan } from "../contracts/InstallerTypes.js";
|
|
2
|
+
import { DiskStateEntry } from "./DiskStateInspector.js";
|
|
3
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
4
|
+
import { Lockfile } from "../../uapkg-package-manifest-schema/index.js";
|
|
5
|
+
import { RegistryCore } from "../../uapkg-registry-core/index.js";
|
|
6
|
+
import { PackageName } from "../../uapkg-common-schema/index.js";
|
|
7
|
+
//#region src/core/InstallPlanner.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Diffs (previousLockfile, currentLockfile, diskState) → InstallPlan.
|
|
10
|
+
*
|
|
11
|
+
* Rules:
|
|
12
|
+
* - Package in current lockfile, not on disk → `add`
|
|
13
|
+
* - Package in current lockfile, on disk, same ver → `unchanged`
|
|
14
|
+
* - Package in current lockfile, on disk, different → `update`
|
|
15
|
+
* - Package in previous lockfile only → `remove`
|
|
16
|
+
*
|
|
17
|
+
* Fetches asset URLs + integrity + size + the registry version record (for
|
|
18
|
+
* install-time claims verification) from `RegistryCore` for add/update
|
|
19
|
+
* actions. Pure with respect to disk (planner only reads registry metadata).
|
|
20
|
+
*/
|
|
21
|
+
declare class InstallPlanner {
|
|
22
|
+
private readonly registryCore;
|
|
23
|
+
constructor(registryCore: RegistryCore);
|
|
24
|
+
plan(currentLockfile: Lockfile, previousLockfile: Lockfile | null, diskState: ReadonlyMap<PackageName, DiskStateEntry>): Promise<Result<InstallPlan>>;
|
|
25
|
+
private summarize;
|
|
26
|
+
private fetchAssetMeta;
|
|
27
|
+
/**
|
|
28
|
+
* Read the immutable registry type from the projected registry metadata.
|
|
29
|
+
* Missing, invalid, or unsupported metadata fails closed because package
|
|
30
|
+
* validation cannot safely choose public or private policy without it.
|
|
31
|
+
*/
|
|
32
|
+
private readRegistryType;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { InstallPlanner };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { InstallReport, InstallerOptions } from "../contracts/InstallerTypes.js";
|
|
2
|
+
import { DownloadStatusSnapshot } from "../contracts/StatusStreamTypes.js";
|
|
3
|
+
import { SafetyPolicyRegistry } from "../safety/SafetyPolicyRegistry.js";
|
|
4
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
5
|
+
import { Lockfile } from "../../uapkg-package-manifest-schema/index.js";
|
|
6
|
+
import { RegistryCore } from "../../uapkg-registry-core/index.js";
|
|
7
|
+
import { ConfigInstance } from "../../uapkg-config/index.js";
|
|
8
|
+
//#region src/core/Installer.d.ts
|
|
9
|
+
interface InstallerConstructorOptions {
|
|
10
|
+
readonly registryCore: RegistryCore;
|
|
11
|
+
readonly config: InstanceType<typeof ConfigInstance>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Physical installation orchestrator. Owns the collaborators but is not a
|
|
15
|
+
* god-class — each step delegates to a single-responsibility module.
|
|
16
|
+
*
|
|
17
|
+
* Public surface:
|
|
18
|
+
* - execute(lockfile, previous?) → Result<InstallReport>
|
|
19
|
+
* - getStatusStream() → AsyncIterable<DownloadStatusSnapshot>
|
|
20
|
+
*
|
|
21
|
+
* Installation is verification-gated and partial: a package activates only
|
|
22
|
+
* after exact byte-size, SHA-256, and packaged-manifest claims verification,
|
|
23
|
+
* its outgoing dependency edges are trusted only after it verifies, and a
|
|
24
|
+
* failed branch is reported without blocking unrelated verified branches.
|
|
25
|
+
*
|
|
26
|
+
* Concurrency is read from `network.maxConcurrentDownloads` in config;
|
|
27
|
+
* retries/timeout from `network.retries` / `network.timeout`.
|
|
28
|
+
*
|
|
29
|
+
* Emits no console output. Progress flows through the status stream.
|
|
30
|
+
*/
|
|
31
|
+
declare class Installer {
|
|
32
|
+
private readonly deps;
|
|
33
|
+
private readonly inspector;
|
|
34
|
+
private readonly planner;
|
|
35
|
+
private readonly downloader;
|
|
36
|
+
private readonly verifier;
|
|
37
|
+
private readonly claimsVerifier;
|
|
38
|
+
private readonly extractor;
|
|
39
|
+
private readonly remover;
|
|
40
|
+
private readonly safety;
|
|
41
|
+
private slots;
|
|
42
|
+
private stream;
|
|
43
|
+
constructor(deps: InstallerConstructorOptions);
|
|
44
|
+
/** Expose the registry so consumers can register additional policies. */
|
|
45
|
+
get safetyRegistry(): SafetyPolicyRegistry;
|
|
46
|
+
getStatusStream(): AsyncIterable<DownloadStatusSnapshot>;
|
|
47
|
+
execute(lockfile: Lockfile, previousLockfile: Lockfile | null, options: InstallerOptions): Promise<Result<InstallReport>>;
|
|
48
|
+
private isEligible;
|
|
49
|
+
private emptyReport;
|
|
50
|
+
private buildReport;
|
|
51
|
+
private skippedDiagnostic;
|
|
52
|
+
private executeRemove;
|
|
53
|
+
private executeDownloadAction;
|
|
54
|
+
private unexpectedFailure;
|
|
55
|
+
private readMaxConcurrent;
|
|
56
|
+
private createExecutionRuntime;
|
|
57
|
+
private readNumber;
|
|
58
|
+
private safeUnlink;
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { Installer, InstallerConstructorOptions };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { AssetHash } from "../../uapkg-common-schema/index.js";
|
|
3
|
+
//#region src/core/IntegrityVerifier.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Verifies a downloaded file matches the expected `AssetHash`.
|
|
6
|
+
*
|
|
7
|
+
* The hash format is `"<algorithm>:<hex>"` (e.g. `"sha256:abc123…"`), matching
|
|
8
|
+
* what the registry stores in `RegistryAsset.integrity.hash`.
|
|
9
|
+
*/
|
|
10
|
+
declare class IntegrityVerifier {
|
|
11
|
+
verify(packageName: string, filePath: string, expected: AssetHash): Promise<Result<void>>;
|
|
12
|
+
private parseHash;
|
|
13
|
+
private hashFile;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { IntegrityVerifier };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
//#region src/core/PackageDownloader.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Progress callback fired on every received chunk.
|
|
5
|
+
*/
|
|
6
|
+
type DownloadProgress = (bytesDone: number, bytesTotal: number | undefined, attempt: number) => void;
|
|
7
|
+
interface DownloadOptions {
|
|
8
|
+
readonly retries: number;
|
|
9
|
+
readonly timeoutMs: number;
|
|
10
|
+
}
|
|
11
|
+
interface DownloadResult {
|
|
12
|
+
readonly tempPath: string;
|
|
13
|
+
readonly bytesTotal?: number;
|
|
14
|
+
/** Exact number of bytes written to the temp file. */
|
|
15
|
+
readonly bytesDownloaded: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Streams a .tgz from an HTTP(S) URL to a temp file with retry/timeout support.
|
|
19
|
+
*
|
|
20
|
+
* Retry behavior: any failed attempt is retried up to `retries` times, matching
|
|
21
|
+
* the installer's established network retry contract.
|
|
22
|
+
*
|
|
23
|
+
* Does not throw — all errors converted to typed diagnostics.
|
|
24
|
+
*/
|
|
25
|
+
declare class PackageDownloader {
|
|
26
|
+
download(packageName: string, url: string, options: DownloadOptions, onProgress?: DownloadProgress): Promise<Result<DownloadResult>>;
|
|
27
|
+
private attempt;
|
|
28
|
+
private fetchFollowingRedirects;
|
|
29
|
+
private parseInitialUrl;
|
|
30
|
+
private assertAllowedUrl;
|
|
31
|
+
private headersFor;
|
|
32
|
+
private isLegacyGitHubAssetApiUrl;
|
|
33
|
+
private cancelResponseBody;
|
|
34
|
+
private errorMessage;
|
|
35
|
+
private diagnosticUrl;
|
|
36
|
+
private makeTempPath;
|
|
37
|
+
private safeUnlink;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { DownloadOptions, DownloadProgress, DownloadResult, PackageDownloader };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { InstallPath } from "../../uapkg-common-schema/index.js";
|
|
3
|
+
//#region src/core/PackageExtractor.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Extracts a downloaded .tgz into its target install path atomically.
|
|
6
|
+
*
|
|
7
|
+
* Strategy:
|
|
8
|
+
* 1. Extract to a sibling temp directory.
|
|
9
|
+
* 2. Remove the existing target (if any — safety policies already gated).
|
|
10
|
+
* 3. Atomic `rename` tempDir → targetDir.
|
|
11
|
+
*
|
|
12
|
+
* The archive is expected to use the `<name>-<version>/` top-level directory
|
|
13
|
+
* that `@uapkg/pack` emits; we strip one path component during extraction.
|
|
14
|
+
*/
|
|
15
|
+
declare class PackageExtractor {
|
|
16
|
+
extract(packageName: string, tgzPath: string, manifestRoot: string, installPath: InstallPath): Promise<Result<void>>;
|
|
17
|
+
private cleanup;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { PackageExtractor };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Result } from "../../uapkg-diagnostics/index.js";
|
|
2
|
+
import { InstallPath } from "../../uapkg-common-schema/index.js";
|
|
3
|
+
//#region src/core/PackageRemover.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Removes a package directory from disk.
|
|
6
|
+
*
|
|
7
|
+
* Scope is always `<manifestRoot>/<installPath>`; we never touch anything
|
|
8
|
+
* outside this tree. Safe against partially-extracted state.
|
|
9
|
+
*/
|
|
10
|
+
declare class PackageRemover {
|
|
11
|
+
remove(packageName: string, manifestRoot: string, installPath: InstallPath): Promise<Result<void>>;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { PackageRemover };
|