@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
|
@@ -1,597 +0,0 @@
|
|
|
1
|
-
import { ControlPlaneError } from "./ControlPlaneTypes.js";
|
|
2
|
-
import { createPublishRequestFailedDiagnostic } from "@uapkg/diagnostics";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/control-plane/PublishRequestErrorMapper.ts
|
|
6
|
-
const SERVER_CODE_PATTERN = /^[A-Z][A-Z0-9_]{0,127}$/u;
|
|
7
|
-
const boundedText = (maximumLength) => z.string().trim().min(1).max(maximumLength).refine((value) => !hasUnsafeDisplayCharacter(value));
|
|
8
|
-
const packageNameSchema = boundedText(214);
|
|
9
|
-
const packageVersionSchema = boundedText(256);
|
|
10
|
-
const ownerNameSchema = boundedText(100).regex(/^[A-Za-z0-9][A-Za-z0-9_-]*$/u);
|
|
11
|
-
const repositorySchema = boundedText(255).regex(/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/u);
|
|
12
|
-
const requestIdSchema = boundedText(128).regex(/^[A-Za-z0-9][A-Za-z0-9._:-]*$/u);
|
|
13
|
-
const accessModeSchema = z.enum([
|
|
14
|
-
"none",
|
|
15
|
-
"selected",
|
|
16
|
-
"all"
|
|
17
|
-
]);
|
|
18
|
-
const missingCapabilitiesSchema = z.array(z.enum(["package.publish", "publishing.request.create"])).max(10).transform((values) => [...new Set(values)]);
|
|
19
|
-
const missingOAuthScopesSchema = z.array(z.enum(["publishing.request.create", "publishing.request.read.self"])).max(2).transform((values) => [...new Set(values)]);
|
|
20
|
-
const ownerNamesSchema = z.array(ownerNameSchema).max(20).transform((values) => [...new Set(values)].sort());
|
|
21
|
-
const emptyDetailsSchema = z.object({});
|
|
22
|
-
const packageDetailsSchema = z.object({ packageName: packageNameSchema.optional() });
|
|
23
|
-
const ownerRequiredDetailsSchema = packageDetailsSchema;
|
|
24
|
-
const requestedOwnerDetailsSchema = packageDetailsSchema.extend({
|
|
25
|
-
requestedOwnerOrganizationName: ownerNameSchema.optional(),
|
|
26
|
-
ownerOrganizationName: ownerNameSchema.optional(),
|
|
27
|
-
allowedOwnerOrganizationNames: ownerNamesSchema.optional()
|
|
28
|
-
});
|
|
29
|
-
const gatOwnerMismatchDetailsSchema = packageDetailsSchema.extend({
|
|
30
|
-
requestedOwnerOrganizationName: ownerNameSchema.optional(),
|
|
31
|
-
tokenOwnerOrganizationNames: ownerNamesSchema.optional()
|
|
32
|
-
});
|
|
33
|
-
const scopeMismatchDetailsSchema = packageDetailsSchema.extend({
|
|
34
|
-
requestedScopeOwner: ownerNameSchema.optional(),
|
|
35
|
-
scopeOwner: ownerNameSchema.optional(),
|
|
36
|
-
allowedScopeOwners: ownerNamesSchema.optional(),
|
|
37
|
-
tokenOwnerOrganizationNames: ownerNamesSchema.optional()
|
|
38
|
-
});
|
|
39
|
-
const tokenAccessDetailsSchema = packageDetailsSchema.extend({
|
|
40
|
-
actualPackageAccessMode: accessModeSchema.optional(),
|
|
41
|
-
requiredPackageAccessMode: z.literal("all").optional(),
|
|
42
|
-
missingCapabilities: missingCapabilitiesSchema.optional(),
|
|
43
|
-
packageAccess: z.object({ mode: accessModeSchema }).optional(),
|
|
44
|
-
actualRegistryAccessMode: accessModeSchema.optional(),
|
|
45
|
-
requiredRegistryAccessModes: z.array(z.enum(["selected", "all"])).max(2).optional(),
|
|
46
|
-
requiredPackageAccessModes: z.array(z.enum(["selected", "all"])).max(2).optional(),
|
|
47
|
-
registryAccess: z.object({ mode: accessModeSchema }).optional()
|
|
48
|
-
});
|
|
49
|
-
const tokenPermissionDetailsSchema = z.object({ missingCapabilities: missingCapabilitiesSchema.optional() });
|
|
50
|
-
const oauthScopeDetailsSchema = z.object({ missingScopes: missingOAuthScopesSchema.optional() });
|
|
51
|
-
const oidcRepositoryDetailsSchema = packageDetailsSchema.extend({
|
|
52
|
-
submittedRepository: repositorySchema.optional(),
|
|
53
|
-
trustedRepository: repositorySchema.optional()
|
|
54
|
-
});
|
|
55
|
-
const versionDetailsSchema = z.object({
|
|
56
|
-
packageName: packageNameSchema.optional(),
|
|
57
|
-
packageVersion: packageVersionSchema.optional()
|
|
58
|
-
});
|
|
59
|
-
const activeRequestDetailsSchema = versionDetailsSchema.extend({ activeRequestId: requestIdSchema.optional() });
|
|
60
|
-
const haltedPackageDetailsSchema = packageDetailsSchema.extend({ blockingRequestId: requestIdSchema.optional() });
|
|
61
|
-
const retryDetailsSchema = z.object({ retryAfterSeconds: z.number().int().min(1).max(86400).optional() });
|
|
62
|
-
function defineSpec(schema, build) {
|
|
63
|
-
const empty = schema.parse({});
|
|
64
|
-
return { build(details, context) {
|
|
65
|
-
const parsed = schema.safeParse(details ?? {});
|
|
66
|
-
return build(parsed.success ? parsed.data : empty, context);
|
|
67
|
-
} };
|
|
68
|
-
}
|
|
69
|
-
function fixedSpec(message, hint, resources = []) {
|
|
70
|
-
return defineSpec(emptyDetailsSchema, () => ({
|
|
71
|
-
message,
|
|
72
|
-
hint,
|
|
73
|
-
resources
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
const UPDATE_CLIENT_AND_RETRY = "Update UAPKG CLI and try again. If the problem remains, report the server code to the registry operator.";
|
|
77
|
-
const RETRY_AND_REPORT = "Try publishing again. If the failure continues, report the server code to the registry operator.";
|
|
78
|
-
const LOGIN_AGAIN = "Sign in again for this registry, then retry the publication.";
|
|
79
|
-
const CHECK_TOKEN = "Create or use an active granular access token with the correct owner, permissions, and package access, then try again.";
|
|
80
|
-
const clientRequestSpec = (message) => fixedSpec(message, UPDATE_CLIENT_AND_RETRY);
|
|
81
|
-
const internalServiceSpec = (message) => fixedSpec(message, RETRY_AND_REPORT);
|
|
82
|
-
const loginSpec = (message) => fixedSpec(message, LOGIN_AGAIN, ["login"]);
|
|
83
|
-
const tokenSpec = (message) => fixedSpec(message, CHECK_TOKEN, ["access-tokens"]);
|
|
84
|
-
const unscopedOwnerSpec = defineSpec(ownerRequiredDetailsSchema, (_details, context) => {
|
|
85
|
-
const packageName = safeDisplayValue(context.packageName, 214);
|
|
86
|
-
return {
|
|
87
|
-
message: packageName ? `"${packageName}" needs an owner organization before it can be published for the first time.` : "This unscoped package needs an owner organization before it can be published for the first time.",
|
|
88
|
-
hint: "Pass `--owner <organization>`, set `publish.owner` in uapkg.json, or publish the package under an `@organization/name` scope.",
|
|
89
|
-
resources: ["owner-command"]
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
const gatOwnerMismatchSpec = defineSpec(gatOwnerMismatchDetailsSchema, (details, context) => {
|
|
93
|
-
const requestedOwner = details.requestedOwnerOrganizationName ?? safeOwner(context.requestedOwner);
|
|
94
|
-
const tokenOwners = details.tokenOwnerOrganizationNames ?? [];
|
|
95
|
-
const ownerDescription = tokenOwners.length > 0 ? quotedList(tokenOwners) : "a different organization";
|
|
96
|
-
const requestedDescription = requestedOwner ? `"${requestedOwner}"` : "the requested organization";
|
|
97
|
-
const scoped = scopedOwner(context.packageName);
|
|
98
|
-
return {
|
|
99
|
-
message: `The selected token was created for ${ownerDescription}, but this publication asks to use ${requestedDescription}.`,
|
|
100
|
-
hint: scoped ? `Use a token created for "${scoped}", or rebuild the package under the organization scope this token acts for.` : "Correct or remove the explicit owner, or use a token created for the organization that should own this package.",
|
|
101
|
-
facts: compactFacts([fact("requested-owner", requestedOwner), ...tokenOwners.map((owner) => fact("token-owner", owner))]),
|
|
102
|
-
resources: ["access-tokens"]
|
|
103
|
-
};
|
|
104
|
-
});
|
|
105
|
-
const scopeMismatchSpec = defineSpec(scopeMismatchDetailsSchema, (details, context) => {
|
|
106
|
-
const requestedOwner = details.requestedScopeOwner ?? details.scopeOwner ?? scopedOwner(context.packageName);
|
|
107
|
-
const allowedOwners = details.allowedScopeOwners ?? details.tokenOwnerOrganizationNames ?? [];
|
|
108
|
-
return {
|
|
109
|
-
message: `${requestedOwner ? `"@${requestedOwner}"` : "The package scope"} does not match ${allowedOwners.length > 0 ? quotedList(allowedOwners.map((owner) => `@${owner}`)) : "the organization this token acts for"}.`,
|
|
110
|
-
hint: "Use a token created for the package scope, or rebuild the package under the organization scope this token acts for.",
|
|
111
|
-
facts: compactFacts([fact("requested-owner", requestedOwner), ...allowedOwners.map((owner) => fact("allowed-owner", owner))]),
|
|
112
|
-
resources: ["access-tokens"]
|
|
113
|
-
};
|
|
114
|
-
});
|
|
115
|
-
const initialTokenAccessSpec = defineSpec(tokenAccessDetailsSchema, (details) => {
|
|
116
|
-
const actualMode = details.actualPackageAccessMode ?? details.packageAccess?.mode;
|
|
117
|
-
const requiredMode = details.requiredPackageAccessMode ?? "all";
|
|
118
|
-
const missing = details.missingCapabilities ?? (actualMode === void 0 ? ["package.publish"] : []);
|
|
119
|
-
return {
|
|
120
|
-
message: "This token cannot create a package during its first publication.",
|
|
121
|
-
hint: "Create or use a token with Package Access set to All and permission to publish packages.",
|
|
122
|
-
facts: compactFacts([
|
|
123
|
-
fact("actual-access-mode", accessModeLabel(actualMode, "package")),
|
|
124
|
-
fact("required-access-mode", accessModeLabel(requiredMode, "package")),
|
|
125
|
-
...missing.map((capability) => fact("missing-capability", capabilityLabel(capability)))
|
|
126
|
-
]),
|
|
127
|
-
resources: ["access-tokens"]
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
const tokenPermissionSpec = defineSpec(tokenPermissionDetailsSchema, (details) => ({
|
|
131
|
-
message: "This token does not allow package publication.",
|
|
132
|
-
hint: "Create or use a token with permission to publish packages, then try again.",
|
|
133
|
-
facts: (details.missingCapabilities ?? ["package.publish"]).map((capability) => ({
|
|
134
|
-
kind: "missing-capability",
|
|
135
|
-
value: capabilityLabel(capability)
|
|
136
|
-
})),
|
|
137
|
-
resources: ["access-tokens"]
|
|
138
|
-
}));
|
|
139
|
-
const oauthScopeSpec = defineSpec(oauthScopeDetailsSchema, (details) => ({
|
|
140
|
-
message: "This CLI login does not include permission to submit publishing requests.",
|
|
141
|
-
hint: "Reauthorize the login for this registry, then try publishing again.",
|
|
142
|
-
facts: (details.missingScopes ?? ["publishing.request.create"]).map((scope) => ({
|
|
143
|
-
kind: "missing-capability",
|
|
144
|
-
value: oauthScopeLabel(scope)
|
|
145
|
-
})),
|
|
146
|
-
resources: ["login"]
|
|
147
|
-
}));
|
|
148
|
-
const packageOwnerNotAuthorizedSpec = defineSpec(requestedOwnerDetailsSchema, (details, context) => {
|
|
149
|
-
const owner = details.requestedOwnerOrganizationName ?? details.ownerOrganizationName ?? safeOwner(context.requestedOwner);
|
|
150
|
-
const allowedOwners = details.allowedOwnerOrganizationNames ?? [];
|
|
151
|
-
const scoped = scopedOwner(context.packageName);
|
|
152
|
-
const retryOwner = allowedOwners.length === 1 && !scoped ? allowedOwners[0] : void 0;
|
|
153
|
-
return {
|
|
154
|
-
message: owner ? `Your account is not allowed to create this package for UAPKG organization "${owner}".` : "Your account is not allowed to create this package for the requested UAPKG organization.",
|
|
155
|
-
hint: scoped ? allowedOwners.length > 0 ? "This package’s `@owner` scope determines ownership. Rebuild it under one of the allowed UAPKG organization scopes shown above." : "This package’s `@owner` scope determines ownership. Rebuild it under a UAPKG organization scope where you can publish, or ask an organization administrator to grant access." : retryOwner ? `Retry with \`--owner ${retryOwner}\` to use the allowed UAPKG organization namespace.` : allowedOwners.length > 0 ? "Choose one of the allowed UAPKG organization namespaces with `--owner`, or ask a UAPKG organization administrator to grant access." : "Choose a UAPKG organization namespace where you can publish, or ask a UAPKG organization administrator to grant access.",
|
|
156
|
-
facts: compactFacts([fact("requested-owner", owner), ...allowedOwners.map((allowedOwner) => fact("allowed-owner", allowedOwner))])
|
|
157
|
-
};
|
|
158
|
-
});
|
|
159
|
-
const publishingAuthorityDeniedSpec = defineSpec(emptyDetailsSchema, (_details, context) => {
|
|
160
|
-
switch (context.credentialKind) {
|
|
161
|
-
case "oidc": return {
|
|
162
|
-
message: "This GitHub Actions workflow does not currently have publishing authority for the package.",
|
|
163
|
-
hint: "Check the package’s trusted-publisher repository, workflow, and optional GitHub Environment setting, then run the workflow again.",
|
|
164
|
-
resources: ["trusted-publishers"]
|
|
165
|
-
};
|
|
166
|
-
case "gat": return {
|
|
167
|
-
message: "This granular access token does not currently have publishing authority for the package.",
|
|
168
|
-
hint: "Create or use a token for the package owner with the required package access and publishing permission.",
|
|
169
|
-
resources: ["access-tokens"]
|
|
170
|
-
};
|
|
171
|
-
case "login": return {
|
|
172
|
-
message: "Your account does not currently have publishing authority for the package.",
|
|
173
|
-
hint: "Choose an owner organization where you can publish, or ask an organization administrator to grant access."
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
const tokenResourceAccessSpec = defineSpec(tokenAccessDetailsSchema, (details) => {
|
|
178
|
-
const actualPackageMode = details.actualPackageAccessMode ?? details.packageAccess?.mode;
|
|
179
|
-
const actualRegistryMode = details.actualRegistryAccessMode ?? details.registryAccess?.mode;
|
|
180
|
-
const requiredPackageModes = details.requiredPackageAccessModes;
|
|
181
|
-
const requiredRegistryModes = details.requiredRegistryAccessModes;
|
|
182
|
-
return {
|
|
183
|
-
message: "This token does not cover the package or registry selected for publication.",
|
|
184
|
-
hint: "Create or use a token whose package and registry access cover this publication.",
|
|
185
|
-
facts: compactFacts([
|
|
186
|
-
fact("actual-access-mode", accessModeLabel(actualPackageMode, "package")),
|
|
187
|
-
fact("actual-access-mode", accessModeLabel(actualRegistryMode, "registry")),
|
|
188
|
-
fact("required-access-mode", accessModesLabel(requiredPackageModes, "package")),
|
|
189
|
-
fact("required-access-mode", accessModesLabel(requiredRegistryModes, "registry"))
|
|
190
|
-
]),
|
|
191
|
-
resources: ["access-tokens"]
|
|
192
|
-
};
|
|
193
|
-
});
|
|
194
|
-
const oidcRepositorySpec = defineSpec(oidcRepositoryDetailsSchema, (details, context) => {
|
|
195
|
-
const submitted = details.submittedRepository ?? safeRepository(context.repository);
|
|
196
|
-
const trusted = details.trustedRepository;
|
|
197
|
-
if (!trusted) return {
|
|
198
|
-
message: "The registry could not determine the trusted repository for this workflow session.",
|
|
199
|
-
hint: "Start a new trusted-publishing workflow and try again. If the failure continues, review the trusted-publisher rule and report the server code.",
|
|
200
|
-
facts: compactFacts([fact("requested-repository", submitted)]),
|
|
201
|
-
resources: ["trusted-publishers"]
|
|
202
|
-
};
|
|
203
|
-
return {
|
|
204
|
-
message: submitted ? `This workflow submitted "${submitted}", but its trusted-publisher rule is bound to "${trusted}".` : "The registry could not compare the package source with this workflow’s trusted-publisher rule.",
|
|
205
|
-
hint: submitted ? "Publish from the repository named by the trusted-publisher rule, or update the rule for the intended package source." : "Start a new trusted-publishing workflow and try again. If the failure continues, report the server code.",
|
|
206
|
-
facts: compactFacts([fact("requested-repository", submitted), fact("trusted-repository", trusted)]),
|
|
207
|
-
resources: ["trusted-publishers"]
|
|
208
|
-
};
|
|
209
|
-
});
|
|
210
|
-
const versionConflictSpec = (kind) => defineSpec(versionDetailsSchema, (_details, context) => {
|
|
211
|
-
const coordinate = packageCoordinate(context);
|
|
212
|
-
return kind === "exists" ? {
|
|
213
|
-
message: `${coordinate} is already published in this registry.`,
|
|
214
|
-
hint: "Choose a new version in uapkg.json, rebuild the archive, and publish that version instead.",
|
|
215
|
-
resources: ["requests"]
|
|
216
|
-
} : {
|
|
217
|
-
message: `${coordinate} was previously unpublished and cannot be reused.`,
|
|
218
|
-
hint: "Choose a new version in uapkg.json, rebuild the archive, and publish that version instead.",
|
|
219
|
-
resources: ["requests"]
|
|
220
|
-
};
|
|
221
|
-
});
|
|
222
|
-
const activeRequestSpec = (ownershipConflict) => defineSpec(activeRequestDetailsSchema, (details, context) => {
|
|
223
|
-
const coordinate = packageCoordinate(context);
|
|
224
|
-
const readableRequestId = ownershipConflict ? void 0 : details.activeRequestId;
|
|
225
|
-
return {
|
|
226
|
-
message: ownershipConflict ? `Another organization already has an active first-publication request for ${safePackageLabel(context.packageName)}.` : `An active publishing request already covers ${coordinate}.`,
|
|
227
|
-
hint: ownershipConflict ? "Wait for that request to finish before trying to claim this package name, or review your own request when a request ID is shown." : "Wait for the active request to finish instead of submitting the same publication again.",
|
|
228
|
-
facts: compactFacts([fact("request-id", readableRequestId)]),
|
|
229
|
-
resources: ["requests"],
|
|
230
|
-
requestId: readableRequestId
|
|
231
|
-
};
|
|
232
|
-
});
|
|
233
|
-
const haltedPackageSpec = defineSpec(haltedPackageDetailsSchema, (details, context) => ({
|
|
234
|
-
message: `Publishing for ${safePackageLabel(context.packageName)} is paused because an earlier request could not be completed.`,
|
|
235
|
-
hint: "Review the earlier request and ask the registry operator to resolve its failure before publishing again.",
|
|
236
|
-
facts: compactFacts([fact("request-id", details.blockingRequestId)]),
|
|
237
|
-
resources: ["requests"],
|
|
238
|
-
requestId: details.blockingRequestId
|
|
239
|
-
}));
|
|
240
|
-
const rateLimitSpec = defineSpec(retryDetailsSchema, (details) => ({
|
|
241
|
-
message: "Too many publishing requests were submitted in a short time.",
|
|
242
|
-
hint: details.retryAfterSeconds ? `Wait ${formatDuration(details.retryAfterSeconds)}, then try publishing again.` : "Wait a moment, then try publishing again.",
|
|
243
|
-
facts: compactFacts([fact("retry-after", details.retryAfterSeconds ? formatDuration(details.retryAfterSeconds) : void 0)])
|
|
244
|
-
}));
|
|
245
|
-
/**
|
|
246
|
-
* Explicit inventory of errors that can be returned synchronously while the
|
|
247
|
-
* CLI submits POST /v1/registry-requests/publish. Unknown future codes use the
|
|
248
|
-
* non-leaking fallback in {@link publishRequestDiagnosticForError}.
|
|
249
|
-
*/
|
|
250
|
-
const PUBLISH_SUBMISSION_ERROR_CATALOG = {
|
|
251
|
-
AUTH_REQUIRED: loginSpec("Authentication is required to publish this package."),
|
|
252
|
-
CONTROL_PLANE_AUTHENTICATION_REQUIRED: loginSpec("The saved registry login was rejected."),
|
|
253
|
-
DPOP_AUTH_UNAVAILABLE: internalServiceSpec("The registry cannot validate CLI logins right now."),
|
|
254
|
-
DPOP_AUTH_REQUIRED: loginSpec("The publishing request did not include a valid CLI login."),
|
|
255
|
-
DPOP_PROOF_INVALID: loginSpec("The saved CLI login proof was rejected."),
|
|
256
|
-
DPOP_PROOF_REPLAYED: fixedSpec("The security proof for this CLI login was already used.", "Run the publish command again. If the failure continues, sign in to the selected registry again.", ["login"]),
|
|
257
|
-
DPOP_ACCESS_TOKEN_INVALID: loginSpec("The saved CLI login is invalid or no longer usable."),
|
|
258
|
-
DPOP_PROOF_STALE: fixedSpec("The security proof for this CLI login expired before the request arrived.", "Run the publish command again. If the failure continues, sign in to the selected registry again.", ["login"]),
|
|
259
|
-
DPOP_NONCE_REQUIRED: fixedSpec("The registry could not complete the security challenge for this CLI login.", "Run the publish command again. If the failure continues, sign in to the selected registry again.", ["login"]),
|
|
260
|
-
REGISTRY_GRANT_INVALID: loginSpec("The registry login was revoked, expired, or belongs to another registry."),
|
|
261
|
-
CLI_LOGIN_ACTIVATION_EXPIRED: loginSpec("This CLI login expired before the device finished confirming it."),
|
|
262
|
-
ACCOUNT_NOT_ACTIVE: loginSpec("The account for this registry login is not active."),
|
|
263
|
-
CLI_ACCESS_TOKEN_INVALID: loginSpec("The saved CLI login is invalid."),
|
|
264
|
-
CLI_ACCESS_TOKEN_EXPIRED: loginSpec("The saved CLI login has expired."),
|
|
265
|
-
OAUTH_SCOPE_INSUFFICIENT: oauthScopeSpec,
|
|
266
|
-
OAUTH_SCOPE_UNSUPPORTED: fixedSpec("This CLI version does not understand a capability required by the registry.", "Update UAPKG CLI, sign in again, and retry the publication.", ["login"]),
|
|
267
|
-
TOKEN_INVALID: tokenSpec("The selected granular access token is invalid."),
|
|
268
|
-
TOKEN_REVOKED: tokenSpec("The selected granular access token has been revoked."),
|
|
269
|
-
TOKEN_EXPIRED: tokenSpec("The selected granular access token has expired."),
|
|
270
|
-
UAPKG_TOKEN_APPROVAL_PENDING: fixedSpec("The selected token is still waiting for organization approval.", "Ask an organization administrator to approve the token, or select a different active token.", ["access-tokens"]),
|
|
271
|
-
UAPKG_TOKEN_APPROVAL_DENIED: fixedSpec("The organization denied the selected token request.", "Use an approved token, or request a new token from the organization.", ["access-tokens"]),
|
|
272
|
-
UAPKG_TOKEN_ORGANIZATION_POLICY_DENIED: fixedSpec("The organization’s token policy blocks this publication.", "Ask an organization administrator to review the token policy, or publish with an allowed credential.", ["access-tokens"]),
|
|
273
|
-
UAPKG_TOKEN_TEMPORARILY_BLOCKED_OWNER_MFA_REQUIRED: fixedSpec("This token is temporarily blocked because its owner must enable two-factor authentication.", "Enable two-factor authentication for the token owner, then try again.", ["access-tokens", "security"]),
|
|
274
|
-
UAPKG_TOKEN_LIFECYCLE_DISABLED: tokenSpec("The selected token is not currently usable."),
|
|
275
|
-
UAPKG_TOKEN_PERMISSION_DENIED: tokenPermissionSpec,
|
|
276
|
-
UAPKG_TOKEN_RESOURCE_ACCESS_DENIED: tokenResourceAccessSpec,
|
|
277
|
-
SECOND_FACTOR_REQUIRED: fixedSpec("A current two-factor authentication code is required for this publication.", "Run the publish command again and enter the current code when prompted.", ["security"]),
|
|
278
|
-
OTP_INVALID: fixedSpec("The two-factor authentication code was incorrect or expired.", "Run the publish command again and enter a new code when prompted.", ["security"]),
|
|
279
|
-
OTP_NOT_ENROLLED: fixedSpec("This account must enroll in two-factor authentication before publishing.", "Enable two-factor authentication in account settings, then try publishing again.", ["security"]),
|
|
280
|
-
OTP_RATE_LIMITED: rateLimitSpec,
|
|
281
|
-
OTP_ERROR: internalServiceSpec("The registry could not verify the two-factor authentication code."),
|
|
282
|
-
OTP_UNSUPPORTED_PRINCIPAL: fixedSpec("This credential cannot use an interactive two-factor authentication code.", "Select a CLI login or granular access token that supports attended publication."),
|
|
283
|
-
SECURED_ACCOUNT_REQUIRED: fixedSpec("Publishing requires an active account with two-factor authentication enabled.", "Activate the account and enable two-factor authentication, then try again.", ["security"]),
|
|
284
|
-
ACTOR_WRITE_FORBIDDEN: fixedSpec("This account is not allowed to submit registry changes.", "Use an account with publishing access, or ask an organization administrator for access."),
|
|
285
|
-
UAPKG_PRINCIPAL_NOT_ALLOWED: fixedSpec("This kind of credential cannot submit a publishing request.", "Use a CLI login, granular access token, or configured GitHub Actions trusted publisher."),
|
|
286
|
-
UNSCOPED_PACKAGE_OWNER_REQUIRED: unscopedOwnerSpec,
|
|
287
|
-
GAT_OWNER_ORGANIZATION_MISMATCH: gatOwnerMismatchSpec,
|
|
288
|
-
UAPKG_PACKAGE_SCOPE_OWNER_MISMATCH: scopeMismatchSpec,
|
|
289
|
-
UAPKG_REGISTRY_REQUIRES_SCOPED_PACKAGE: defineSpec(packageDetailsSchema, (_details, context) => ({
|
|
290
|
-
message: `This registry requires a scoped name for the first publication of ${safePackageLabel(context.packageName)}.`,
|
|
291
|
-
hint: "Rename the package to `@organization/name`, rebuild the archive, and publish it again."
|
|
292
|
-
})),
|
|
293
|
-
INITIAL_PUBLICATION_PACKAGE_ACCESS_ALL_REQUIRED: initialTokenAccessSpec,
|
|
294
|
-
PACKAGE_OWNER_NOT_AUTHORIZED: packageOwnerNotAuthorizedSpec,
|
|
295
|
-
INITIAL_PUBLICATION_CREDENTIAL_UNSUPPORTED: fixedSpec("This credential cannot create a package during its first publication.", "Publish the package once with an interactive CLI login or an attended granular access token.", ["login", "access-tokens"]),
|
|
296
|
-
CLI_REGISTRY_GRANT_NOT_AUTHORIZED: fixedSpec("The saved CLI login cannot publish to this registry.", "Reauthorize the login for the selected registry, then try again.", ["login"]),
|
|
297
|
-
REGISTRY_WRITE_DENIED_REBAC: publishingAuthorityDeniedSpec,
|
|
298
|
-
GAT_CREDENTIAL_CONTEXT_REQUIRED: internalServiceSpec("The registry could not validate the selected token."),
|
|
299
|
-
PACKAGE_OWNER_NOT_RESOLVED: internalServiceSpec("The registry could not determine this package’s owner."),
|
|
300
|
-
OIDC_SESSION_INVALID: fixedSpec("The GitHub Actions publishing session expired or is no longer trusted.", "Run the workflow again. If it still fails, verify that the package still has an active trusted-publisher rule for this repository and workflow.", ["trusted-publishers"]),
|
|
301
|
-
OIDC_PROVIDER_UNAVAILABLE: fixedSpec("The registry cannot validate GitHub trusted publishing right now.", "Run the workflow again later. If the failure continues, report the server code to the registry operator.", ["trusted-publishers"]),
|
|
302
|
-
OIDC_INITIAL_PUBLICATION_NOT_SUPPORTED: fixedSpec("GitHub Actions cannot create this package during its first publication.", "Publish the package once with an interactive CLI login, then configure its trusted-publisher rule and rerun the workflow.", ["login", "trusted-publishers"]),
|
|
303
|
-
OIDC_SOURCE_REPOSITORY_MISMATCH: oidcRepositorySpec,
|
|
304
|
-
TRUSTED_PUBLISHER_NOT_AUTHORIZED: fixedSpec("This GitHub Actions workflow is not authorized to publish the package.", "Check the package’s trusted-publisher repository, workflow, and optional GitHub Environment setting, then rerun the workflow.", ["trusted-publishers"]),
|
|
305
|
-
INVALID_PACKAGE_NAME: fixedSpec("The packaged manifest contains an invalid package name.", "Set `name` in uapkg.json to a name such as `my-package` or `@organization/my-package`, rebuild the archive, and publish it again."),
|
|
306
|
-
SCOPED_PACKAGES_DISABLED: fixedSpec("The selected registry does not accept organization-scoped package names.", "Select a registry that supports scoped packages, or intentionally rename and rebuild the package as an unscoped package with an explicit owner.", ["registries", "owner-command"]),
|
|
307
|
-
INVALID_VERSION: fixedSpec("The packaged manifest contains an invalid semantic version.", "Set `version` in uapkg.json to a semantic version such as `1.2.3`, rebuild the archive, and publish it again."),
|
|
308
|
-
INVALID_OWNER_ORGANIZATION_NAME: fixedSpec("The selected owner is not a valid organization name.", "Correct `--owner <organization>` or `publish.owner` in uapkg.json, then try publishing again.", ["owner-command"]),
|
|
309
|
-
SOURCE_REQUIRED: fixedSpec("The publishing request did not identify its GitHub Release source.", "Set `publish.repository` or pass `--repository owner/repository`, and make sure the release tag and asset exist before retrying."),
|
|
310
|
-
GITHUB_RELEASE_SOURCE_REQUIRED: fixedSpec("The publishing request did not identify its GitHub Release source.", "Set `publish.repository` or pass `--repository owner/repository`, and make sure the release tag and asset exist before retrying."),
|
|
311
|
-
SOURCE_TYPE_UNSUPPORTED: fixedSpec("The registry does not support this kind of package source.", "Publish from an uploaded GitHub Release asset. If this CLI produced another source type, update it and try again."),
|
|
312
|
-
GITHUB_REPOSITORY_INVALID: fixedSpec("The publishing request contains an invalid GitHub repository coordinate.", "Pass `--repository owner/repository` or correct `publish.repository` in uapkg.json, then try again."),
|
|
313
|
-
RELEASE_TAG_INVALID: fixedSpec("The publishing request contains an invalid GitHub Release tag.", "Pass a non-empty GitHub Release tag with `--tag <tag>`, or correct the package version used by the default tag."),
|
|
314
|
-
RELEASE_ASSET_NAME_INVALID: fixedSpec("The publishing request contains an invalid GitHub Release asset name.", "Pass the uploaded file name—not a path—with `--asset <file-name>`, then try again."),
|
|
315
|
-
OBSERVED_INTEGRITY_REQUIRED: fixedSpec("The publishing request is missing the archive’s integrity information.", "Re-read or rebuild the archive and try again. If the problem remains, update UAPKG CLI and report the server code."),
|
|
316
|
-
OBSERVED_DIGEST_INVALID: fixedSpec("The publishing request contains an invalid archive digest.", "Re-read or rebuild the archive and try again. If the problem remains, update UAPKG CLI and report the server code."),
|
|
317
|
-
OBSERVED_SIZE_INVALID: fixedSpec("The publishing request contains an invalid archive size.", "Re-read or rebuild the archive and try again. If the problem remains, update UAPKG CLI and report the server code."),
|
|
318
|
-
CLAIMS_REQUIRED: fixedSpec("The publishing request is missing package information from the packaged manifest.", "Rebuild the archive so it contains a valid uapkg.json, then publish the rebuilt file."),
|
|
319
|
-
CLAIMS_IDENTITY_MISMATCH: fixedSpec("The package name or version inside the archive does not match the publication being submitted.", "Rebuild the archive from the intended uapkg.json and publish the rebuilt file."),
|
|
320
|
-
CLAIMS_PRIVATE_INVALID: fixedSpec("The packaged manifest has an invalid private-package setting.", "Set `private` in uapkg.json to `true` or `false`, rebuild the archive, and publish it again."),
|
|
321
|
-
CLAIMS_BUCKET_INVALID: fixedSpec("The packaged manifest has an invalid dependency section.", "Make each dependency section in uapkg.json an object, rebuild the archive, and publish it again."),
|
|
322
|
-
CLAIMS_DEPENDENCIES_TOO_MANY: fixedSpec("A dependency section in the packaged manifest is too large.", "Reduce the dependency entries in uapkg.json, rebuild the archive, and publish it again."),
|
|
323
|
-
CLAIMS_DEPENDENCY_NAME_INVALID: fixedSpec("The packaged manifest contains an invalid dependency name.", "Correct the dependency name in uapkg.json, rebuild the archive, and publish it again."),
|
|
324
|
-
CLAIMS_DEPENDENCY_RANGE_INVALID: fixedSpec("The packaged manifest contains an invalid dependency version range.", "Set a non-empty bounded version range for the dependency, rebuild the archive, and publish it again."),
|
|
325
|
-
CLAIMS_DEPENDENCY_REGISTRY_INVALID: fixedSpec("The packaged manifest contains an invalid dependency registry.", "Correct the dependency registry alias in uapkg.json, rebuild the archive, and publish it again."),
|
|
326
|
-
CLAIMS_DEPENDENCY_FIELDS_INVALID: fixedSpec("A packaged dependency contains unsupported fields.", "Remove unsupported dependency fields from uapkg.json, rebuild the archive, and publish it again."),
|
|
327
|
-
OFFICIAL_REGISTRY_PRIVATE_PACKAGE_FORBIDDEN: fixedSpec("This package is marked private, but the selected registry accepts only public packages.", "Publish to a private registry, or intentionally remove the private setting, rebuild the archive, and try again.", ["registries"]),
|
|
328
|
-
SERVER_RESOLVED_METADATA_NOT_ALLOWED: clientRequestSpec("The publishing request contains server-owned metadata."),
|
|
329
|
-
UNRECOGNIZED_REQUEST_FIELDS: clientRequestSpec("The publishing request contains fields this registry does not recognize."),
|
|
330
|
-
INVALID_REGISTRY_ID: clientRequestSpec("The CLI resolved an invalid registry identity."),
|
|
331
|
-
PAYLOAD_TOO_LARGE: fixedSpec("The packaged publication information is too large for this registry.", "Reduce oversized manifest metadata or dependency entries, rebuild the archive, and try again."),
|
|
332
|
-
REQUEST_BODY_TOO_LARGE: fixedSpec("The publishing request is too large for this registry.", "Reduce oversized manifest metadata or dependency entries, rebuild the archive, and try again."),
|
|
333
|
-
UAPKG_OPERATION_INPUT_TOO_LARGE: fixedSpec("The publishing request is too large for this registry.", "Reduce oversized manifest metadata or dependency entries, rebuild the archive, and try again."),
|
|
334
|
-
INVALID_CONTENT_LENGTH: clientRequestSpec("The registry received an incomplete publishing request."),
|
|
335
|
-
INVALID_JSON: clientRequestSpec("The registry could not read the publishing request."),
|
|
336
|
-
INVALID_REQUEST_BODY: clientRequestSpec("The registry could not understand the publishing request."),
|
|
337
|
-
UAPKG_OPERATION_INPUT_INVALID: clientRequestSpec("The registry could not understand the publishing request."),
|
|
338
|
-
IDEMPOTENCY_KEY_REQUIRED: clientRequestSpec("The publishing request was missing its retry-safety key."),
|
|
339
|
-
REQUEST_KIND_NOT_PUBLIC: internalServiceSpec("The CLI reached the wrong registry operation."),
|
|
340
|
-
SOURCE_NOT_ALLOWED: internalServiceSpec("The CLI reached the wrong registry operation for an artifact publication."),
|
|
341
|
-
REASON_REQUIRED: internalServiceSpec("The CLI reached an operation that requires a reason."),
|
|
342
|
-
DEPRECATION_MESSAGE_REQUIRED: internalServiceSpec("The CLI reached an operation that requires a deprecation message."),
|
|
343
|
-
REGISTRY_NOT_FOUND: fixedSpec("The selected registry is no longer available to the publishing service.", "Refresh or reconfigure the registry, then try publishing again.", ["registries"]),
|
|
344
|
-
REGISTRY_LINK_MISSING: fixedSpec("The selected registry is not connected to an initialized repository.", "Finish the registry repository connection in account settings, then try publishing again.", ["registries"]),
|
|
345
|
-
REGISTRY_LINK_NOT_READY: fixedSpec("The selected registry repository connection is incomplete.", "Finish reconnecting the registry repository in account settings, then try publishing again.", ["registries"]),
|
|
346
|
-
PACKAGE_POLICY_NOT_CONFIGURED: internalServiceSpec("The registry is not ready to assign ownership for a new package."),
|
|
347
|
-
PACKAGE_NOT_FOUND: fixedSpec("The package does not exist in the selected registry.", "Check the package and registry, then try again.", ["registries"]),
|
|
348
|
-
PACKAGE_HALTED: haltedPackageSpec,
|
|
349
|
-
VERSION_ALREADY_EXISTS: versionConflictSpec("exists"),
|
|
350
|
-
VERSION_TOMBSTONED: versionConflictSpec("tombstoned"),
|
|
351
|
-
DUPLICATE_ACTIVE_REQUEST: activeRequestSpec(false),
|
|
352
|
-
PACKAGE_OWNERSHIP_PENDING_CONFLICT: activeRequestSpec(true),
|
|
353
|
-
IDEMPOTENCY_KEY_CONFLICT: fixedSpec("The retry-safety key for this publication is already attached to a different request.", "Run the publication again. If the conflict continues, report the server code to the registry operator.", ["requests"]),
|
|
354
|
-
RATE_LIMIT_EXCEEDED: rateLimitSpec,
|
|
355
|
-
REQUEST_ATTRIBUTION_INVALID: internalServiceSpec("The registry could not safely attribute this publishing request."),
|
|
356
|
-
AUTHORIZATION_RECEIPT_REQUIRED: internalServiceSpec("The registry could not preserve authorization for this request."),
|
|
357
|
-
REQUEST_CREATE_FAILED: internalServiceSpec("The registry could not save the publishing request."),
|
|
358
|
-
OPERATION_AUTHORIZATION_ACTION_MISMATCH: internalServiceSpec("The publishing endpoint is misconfigured."),
|
|
359
|
-
OPERATION_BODY_LIMIT_UNREGISTERED: internalServiceSpec("The publishing endpoint is missing its request-size policy."),
|
|
360
|
-
UAPKG_OPERATION_BINDING_MISMATCH: internalServiceSpec("The publishing endpoint is bound incorrectly."),
|
|
361
|
-
UAPKG_OPERATION_BINDER_MISMATCH: internalServiceSpec("The publishing endpoint uses the wrong authentication boundary."),
|
|
362
|
-
UAPKG_OPERATION_BODY_LIMIT_UNREGISTERED: internalServiceSpec("The publishing endpoint is missing its request-size policy."),
|
|
363
|
-
UAPKG_SERVICE_AUTHENTICATION_REQUIRED: internalServiceSpec("The publishing endpoint rejected an unsupported credential."),
|
|
364
|
-
REGISTRY_REQUEST_RESPONSE_INVALID: internalServiceSpec("The registry returned an invalid publishing response."),
|
|
365
|
-
CONTROL_PLANE_RESPONSE_NOT_JSON: internalServiceSpec("The registry returned an unreadable publishing response."),
|
|
366
|
-
DESTRUCTIVE_POLICY_NOT_CONFIGURED: internalServiceSpec("The registry’s version policy is not configured."),
|
|
367
|
-
PACKAGE_VERSION_TARGET_NOT_FOUND: fixedSpec("The selected package version does not exist in the registry.", "Check the package version and selected registry.", ["requests"]),
|
|
368
|
-
VERSION_ALREADY_UNPUBLISHED: fixedSpec("This package version is already unpublished.", "No further action is needed."),
|
|
369
|
-
VERSION_ALREADY_YANKED: fixedSpec("This package version is already yanked.", "No further action is needed."),
|
|
370
|
-
VERSION_NOT_YANKED: fixedSpec("This package version is not yanked.", "Check the current request state before trying again."),
|
|
371
|
-
VERSION_ALREADY_DEPRECATED: fixedSpec("This package version is already deprecated.", "No further action is needed."),
|
|
372
|
-
VERSION_NOT_DEPRECATED: fixedSpec("This package version is not deprecated.", "Check the current request state before trying again."),
|
|
373
|
-
UNPUBLISH_WINDOW_EXPIRED: fixedSpec("The allowed time window for unpublishing this version has closed.", "Contact the registry operator if the version presents a security or legal issue.")
|
|
374
|
-
};
|
|
375
|
-
function publishRequestDiagnosticForError(error, context) {
|
|
376
|
-
const serverCode = validatedServerCode(error);
|
|
377
|
-
const status = validatedStatus(error);
|
|
378
|
-
const spec = serverCode ? PUBLISH_SUBMISSION_ERROR_CATALOG[serverCode] : void 0;
|
|
379
|
-
const guidance = spec ? spec.build(error instanceof ControlPlaneError ? error.details : void 0, context) : fallback(error, status);
|
|
380
|
-
const facts = dedupeFacts([...baseFacts(context), ...guidance.facts ?? []]);
|
|
381
|
-
const resources = resourcesFor(guidance.resources ?? [], context, guidance.requestId);
|
|
382
|
-
return createPublishRequestFailedDiagnostic(guidance.message, {
|
|
383
|
-
...serverCode ? { serverCode } : {},
|
|
384
|
-
...status !== void 0 ? { status } : {},
|
|
385
|
-
facts,
|
|
386
|
-
resources
|
|
387
|
-
}, guidance.hint);
|
|
388
|
-
}
|
|
389
|
-
function fallback(error, status) {
|
|
390
|
-
if (isNetworkFailure(error)) return {
|
|
391
|
-
message: "UAPKG could not reach the publishing service.",
|
|
392
|
-
hint: "Check the network connection and registry availability, then try publishing again."
|
|
393
|
-
};
|
|
394
|
-
if (status !== void 0 && status >= 500) return {
|
|
395
|
-
message: "The publishing service could not complete the request.",
|
|
396
|
-
hint: RETRY_AND_REPORT
|
|
397
|
-
};
|
|
398
|
-
return {
|
|
399
|
-
message: "The registry did not accept the publishing request.",
|
|
400
|
-
hint: "Review the publication details and try again. If the failure continues, report this diagnostic to the registry operator."
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
function baseFacts(context) {
|
|
404
|
-
const registryName = safeDisplayValue(context.registryName ?? "", 100);
|
|
405
|
-
const registryAlias = safeDisplayValue(context.registryAlias, 100);
|
|
406
|
-
const registry = registryName && registryAlias && registryName !== registryAlias ? `${registryName} (${registryAlias})` : registryName ?? registryAlias;
|
|
407
|
-
return compactFacts([
|
|
408
|
-
fact("package", safeDisplayValue(context.packageName, 214)),
|
|
409
|
-
fact("version", safeDisplayValue(context.packageVersion, 256)),
|
|
410
|
-
fact("registry", registry),
|
|
411
|
-
fact("credential-kind", credentialKindLabel(context.credentialKind)),
|
|
412
|
-
fact("requested-owner", safeOwner(context.requestedOwner)),
|
|
413
|
-
fact("repository", safeRepository(context.repository))
|
|
414
|
-
]);
|
|
415
|
-
}
|
|
416
|
-
function resourcesFor(requested, context, requestId) {
|
|
417
|
-
const kinds = [.../* @__PURE__ */ new Set([...requested, "help"])];
|
|
418
|
-
const accountOrigin = accountOriginForIssuer(context.registryIssuer);
|
|
419
|
-
const resources = [];
|
|
420
|
-
for (const kind of kinds) switch (kind) {
|
|
421
|
-
case "help":
|
|
422
|
-
resources.push({
|
|
423
|
-
kind: "command",
|
|
424
|
-
command: "uapkg publish --help",
|
|
425
|
-
label: "Publish command help"
|
|
426
|
-
});
|
|
427
|
-
break;
|
|
428
|
-
case "login":
|
|
429
|
-
resources.push({
|
|
430
|
-
kind: "command",
|
|
431
|
-
command: `uapkg login --registry ${shellDisplayArgument(context.registryAlias)} --reauthorize`,
|
|
432
|
-
label: "Reauthorize this registry login"
|
|
433
|
-
});
|
|
434
|
-
break;
|
|
435
|
-
case "owner-command":
|
|
436
|
-
resources.push({
|
|
437
|
-
kind: "command",
|
|
438
|
-
command: "uapkg publish --owner <organization>",
|
|
439
|
-
label: "Publish with an explicit owner"
|
|
440
|
-
});
|
|
441
|
-
break;
|
|
442
|
-
case "requests":
|
|
443
|
-
if (requestId) resources.push({
|
|
444
|
-
kind: "command",
|
|
445
|
-
command: `uapkg requests status ${requestId}`,
|
|
446
|
-
label: "Inspect the related request"
|
|
447
|
-
});
|
|
448
|
-
addAccountUrl(resources, accountOrigin, "/requests", "Publishing requests");
|
|
449
|
-
break;
|
|
450
|
-
case "access-tokens":
|
|
451
|
-
addAccountUrl(resources, accountOrigin, "/settings/access-tokens", "Access token settings");
|
|
452
|
-
break;
|
|
453
|
-
case "trusted-publishers":
|
|
454
|
-
addAccountUrl(resources, accountOrigin, "/trusted-publishers", "Trusted publishers");
|
|
455
|
-
break;
|
|
456
|
-
case "registries":
|
|
457
|
-
addAccountUrl(resources, accountOrigin, "/settings/registries", "Registry settings");
|
|
458
|
-
break;
|
|
459
|
-
case "security": addAccountUrl(resources, accountOrigin, "/settings/two-factor-authentication", "Two-factor authentication settings");
|
|
460
|
-
}
|
|
461
|
-
return dedupeResources(resources);
|
|
462
|
-
}
|
|
463
|
-
function addAccountUrl(resources, origin, path, label) {
|
|
464
|
-
if (!origin) return;
|
|
465
|
-
resources.push({
|
|
466
|
-
kind: "url",
|
|
467
|
-
url: new URL(path, origin).href,
|
|
468
|
-
label
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
function accountOriginForIssuer(issuer) {
|
|
472
|
-
try {
|
|
473
|
-
const url = new URL(issuer);
|
|
474
|
-
return url.protocol === "https:" || url.protocol === "http:" ? url.origin : void 0;
|
|
475
|
-
} catch {
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
function validatedServerCode(error) {
|
|
480
|
-
return error instanceof ControlPlaneError && SERVER_CODE_PATTERN.test(error.code) ? error.code : void 0;
|
|
481
|
-
}
|
|
482
|
-
function validatedStatus(error) {
|
|
483
|
-
if (!(error instanceof ControlPlaneError) || error.status === void 0) return void 0;
|
|
484
|
-
return Number.isInteger(error.status) && error.status >= 100 && error.status <= 599 ? error.status : void 0;
|
|
485
|
-
}
|
|
486
|
-
function isNetworkFailure(error) {
|
|
487
|
-
return error instanceof TypeError || error instanceof Error && (error.name === "AbortError" || error.name === "TimeoutError");
|
|
488
|
-
}
|
|
489
|
-
function safeDisplayValue(value, maximumLength) {
|
|
490
|
-
if (typeof value !== "string") return void 0;
|
|
491
|
-
const normalized = value.trim();
|
|
492
|
-
return normalized.length > 0 && normalized.length <= maximumLength && !hasUnsafeDisplayCharacter(normalized) ? normalized : void 0;
|
|
493
|
-
}
|
|
494
|
-
function hasUnsafeDisplayCharacter(value) {
|
|
495
|
-
for (const character of value) {
|
|
496
|
-
const codePoint = character.codePointAt(0);
|
|
497
|
-
if (codePoint !== void 0 && (codePoint <= 31 || codePoint >= 127 && codePoint <= 159 || codePoint === 1564 || codePoint === 8206 || codePoint === 8207 || codePoint >= 8232 && codePoint <= 8238 || codePoint >= 8294 && codePoint <= 8297)) return true;
|
|
498
|
-
}
|
|
499
|
-
return false;
|
|
500
|
-
}
|
|
501
|
-
function safeOwner(value) {
|
|
502
|
-
const parsed = ownerNameSchema.safeParse(value);
|
|
503
|
-
return parsed.success ? parsed.data : void 0;
|
|
504
|
-
}
|
|
505
|
-
function safeRepository(value) {
|
|
506
|
-
const parsed = repositorySchema.safeParse(value);
|
|
507
|
-
return parsed.success ? parsed.data : void 0;
|
|
508
|
-
}
|
|
509
|
-
function safePackageLabel(packageName) {
|
|
510
|
-
const safe = safeDisplayValue(packageName, 214);
|
|
511
|
-
return safe ? `"${safe}"` : "this package";
|
|
512
|
-
}
|
|
513
|
-
function packageCoordinate(context) {
|
|
514
|
-
const packageName = safeDisplayValue(context.packageName, 214);
|
|
515
|
-
const version = safeDisplayValue(context.packageVersion, 256);
|
|
516
|
-
return packageName && version ? `"${packageName}@${version}"` : "This package version";
|
|
517
|
-
}
|
|
518
|
-
function scopedOwner(packageName) {
|
|
519
|
-
const match = safeDisplayValue(packageName, 214)?.match(/^@([^/]+)\//u);
|
|
520
|
-
return safeOwner(match?.[1]);
|
|
521
|
-
}
|
|
522
|
-
function credentialKindLabel(kind) {
|
|
523
|
-
switch (kind) {
|
|
524
|
-
case "login": return "CLI login";
|
|
525
|
-
case "gat": return "Granular access token";
|
|
526
|
-
case "oidc": return "GitHub Actions trusted publishing";
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
function capabilityLabel(capability) {
|
|
530
|
-
return capability === "package.publish" ? "Publish packages" : "Submit publishing requests";
|
|
531
|
-
}
|
|
532
|
-
function oauthScopeLabel(scope) {
|
|
533
|
-
return scope === "publishing.request.create" ? "Submit publishing requests" : "Read your publishing requests";
|
|
534
|
-
}
|
|
535
|
-
function accessModeLabel(mode, category) {
|
|
536
|
-
if (!mode) return void 0;
|
|
537
|
-
const noun = category === "package" ? "packages" : "registries";
|
|
538
|
-
switch (mode) {
|
|
539
|
-
case "none": return `No ${noun}`;
|
|
540
|
-
case "selected": return `Selected ${noun}`;
|
|
541
|
-
case "all": return `All ${noun}`;
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
function accessModesLabel(modes, category) {
|
|
545
|
-
if (!modes || modes.length === 0) return void 0;
|
|
546
|
-
return [...new Set(modes)].map((mode) => accessModeLabel(mode, category)).filter(Boolean).join(" or ");
|
|
547
|
-
}
|
|
548
|
-
function formatDuration(seconds) {
|
|
549
|
-
if (seconds === 1) return "1 second";
|
|
550
|
-
if (seconds < 60) return `${seconds} seconds`;
|
|
551
|
-
if (seconds % 60 === 0) {
|
|
552
|
-
const minutes = seconds / 60;
|
|
553
|
-
return `${minutes} ${minutes === 1 ? "minute" : "minutes"}`;
|
|
554
|
-
}
|
|
555
|
-
return `${seconds} seconds`;
|
|
556
|
-
}
|
|
557
|
-
function quotedList(values) {
|
|
558
|
-
const quoted = values.map((value) => `"${value}"`);
|
|
559
|
-
if (quoted.length === 1) return quoted[0];
|
|
560
|
-
if (quoted.length === 2) return `${quoted[0]} or ${quoted[1]}`;
|
|
561
|
-
return `${quoted.slice(0, -1).join(", ")}, or ${quoted.at(-1)}`;
|
|
562
|
-
}
|
|
563
|
-
function fact(kind, value) {
|
|
564
|
-
return value ? {
|
|
565
|
-
kind,
|
|
566
|
-
value
|
|
567
|
-
} : void 0;
|
|
568
|
-
}
|
|
569
|
-
function compactFacts(facts) {
|
|
570
|
-
return facts.filter((value) => value !== void 0);
|
|
571
|
-
}
|
|
572
|
-
function dedupeFacts(facts) {
|
|
573
|
-
const seen = /* @__PURE__ */ new Set();
|
|
574
|
-
return facts.filter((factValue) => {
|
|
575
|
-
const key = `${factValue.kind}\0${factValue.value}`;
|
|
576
|
-
if (seen.has(key)) return false;
|
|
577
|
-
seen.add(key);
|
|
578
|
-
return true;
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
function dedupeResources(resources) {
|
|
582
|
-
const seen = /* @__PURE__ */ new Set();
|
|
583
|
-
return resources.filter((resource) => {
|
|
584
|
-
const key = resource.kind === "command" ? `command\0${resource.command}` : `url\0${resource.url}`;
|
|
585
|
-
if (seen.has(key)) return false;
|
|
586
|
-
seen.add(key);
|
|
587
|
-
return true;
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
function shellDisplayArgument(value) {
|
|
591
|
-
const safe = safeDisplayValue(value, 100);
|
|
592
|
-
return safe && /^[A-Za-z0-9._-]+$/u.test(safe) ? safe : "<registry>";
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
//#endregion
|
|
596
|
-
export { PUBLISH_SUBMISSION_ERROR_CATALOG, publishRequestDiagnosticForError };
|
|
597
|
-
//# sourceMappingURL=PublishRequestErrorMapper.js.map
|