@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,157 +0,0 @@
|
|
|
1
|
-
import { InstallCommand } from "../commands/InstallCommand.js";
|
|
2
|
-
import { AddCommand } from "../commands/AddCommand.js";
|
|
3
|
-
import { ConfigCommand } from "../commands/ConfigCommand.js";
|
|
4
|
-
import { InitCommand } from "../commands/InitCommand.js";
|
|
5
|
-
import { ListCommand } from "../commands/ListCommand.js";
|
|
6
|
-
import { LoginCommand } from "../commands/LoginCommand.js";
|
|
7
|
-
import { LogoutCommand } from "../commands/LogoutCommand.js";
|
|
8
|
-
import { OutdatedCommand } from "../commands/OutdatedCommand.js";
|
|
9
|
-
import { InkPromptService } from "../prompts/InkPromptService.js";
|
|
10
|
-
import { PackageLifecycleCommand } from "../commands/PackageLifecycleCommand.js";
|
|
11
|
-
import { PackCommand } from "../commands/PackCommand.js";
|
|
12
|
-
import { ProjectGetNameCommand } from "../commands/ProjectGetNameCommand.js";
|
|
13
|
-
import { PublishCommand } from "../commands/PublishCommand.js";
|
|
14
|
-
import { RegistryCommand } from "../commands/RegistryCommand.js";
|
|
15
|
-
import { RemoveCommand } from "../commands/RemoveCommand.js";
|
|
16
|
-
import { RequestsCommand } from "../commands/RequestsCommand.js";
|
|
17
|
-
import { UpdateCommand } from "../commands/UpdateCommand.js";
|
|
18
|
-
import { WhoamiCommand } from "../commands/WhoamiCommand.js";
|
|
19
|
-
import { WhyCommand } from "../commands/WhyCommand.js";
|
|
20
|
-
import { ProjectContextDetector } from "../prompts/ProjectContextDetector.js";
|
|
21
|
-
import { CompositionRoot } from "./CompositionRoot.js";
|
|
22
|
-
|
|
23
|
-
//#region src/app/UAPKGApplication.ts
|
|
24
|
-
/**
|
|
25
|
-
* Dispatcher: maps the parsed command-line shape to a concrete command
|
|
26
|
-
* implementation, wiring dependencies via {@link CompositionRoot}.
|
|
27
|
-
*
|
|
28
|
-
* Every command now composes over {@link CompositionRoot}. The `init` and
|
|
29
|
-
* `project-get-name` commands additionally receive a prompt service +
|
|
30
|
-
* project-context detector (split out of the legacy `ui/` + `services/`
|
|
31
|
-
* folders in Phase 10).
|
|
32
|
-
*/
|
|
33
|
-
var UAPKGApplication = class {
|
|
34
|
-
async run(commandLine) {
|
|
35
|
-
const root = new CompositionRoot({ cwd: commandLine.cwd });
|
|
36
|
-
switch (commandLine.command) {
|
|
37
|
-
case "install": return new InstallCommand(root, {
|
|
38
|
-
force: commandLine.force,
|
|
39
|
-
frozen: commandLine.frozen,
|
|
40
|
-
dryRun: commandLine.dryRun,
|
|
41
|
-
outputFormat: commandLine.outputFormat
|
|
42
|
-
}).execute();
|
|
43
|
-
case "add": return new AddCommand(root, {
|
|
44
|
-
spec: commandLine.source,
|
|
45
|
-
pin: commandLine.pin,
|
|
46
|
-
dev: commandLine.dev,
|
|
47
|
-
registry: commandLine.registry,
|
|
48
|
-
force: commandLine.force,
|
|
49
|
-
dryRun: commandLine.dryRun,
|
|
50
|
-
outputFormat: commandLine.outputFormat
|
|
51
|
-
}).execute();
|
|
52
|
-
case "update": return new UpdateCommand(root, {
|
|
53
|
-
specs: commandLine.specs,
|
|
54
|
-
force: commandLine.force,
|
|
55
|
-
dryRun: commandLine.dryRun,
|
|
56
|
-
outputFormat: commandLine.outputFormat
|
|
57
|
-
}).execute();
|
|
58
|
-
case "remove": return new RemoveCommand(root, {
|
|
59
|
-
packageName: commandLine.packageName,
|
|
60
|
-
outputFormat: commandLine.outputFormat
|
|
61
|
-
}).execute();
|
|
62
|
-
case "outdated": return new OutdatedCommand(root, { outputFormat: commandLine.outputFormat }).execute();
|
|
63
|
-
case "why": return new WhyCommand(root, {
|
|
64
|
-
target: commandLine.target,
|
|
65
|
-
outputFormat: commandLine.outputFormat
|
|
66
|
-
}).execute();
|
|
67
|
-
case "list": return new ListCommand(root, {
|
|
68
|
-
depth: commandLine.depth,
|
|
69
|
-
outputFormat: commandLine.outputFormat
|
|
70
|
-
}).execute();
|
|
71
|
-
case "pack": return new PackCommand({
|
|
72
|
-
cwd: commandLine.cwd,
|
|
73
|
-
dryRun: commandLine.dryRun,
|
|
74
|
-
allowMissingLfs: commandLine.allowMissingLfs,
|
|
75
|
-
outFile: commandLine.outFile
|
|
76
|
-
}).execute();
|
|
77
|
-
case "config": return new ConfigCommand({
|
|
78
|
-
cwd: commandLine.cwd,
|
|
79
|
-
action: commandLine.action,
|
|
80
|
-
pathToProperty: commandLine.path,
|
|
81
|
-
rawValue: commandLine.value,
|
|
82
|
-
scope: commandLine.scope,
|
|
83
|
-
output: commandLine.output,
|
|
84
|
-
showOrigin: commandLine.showOrigin,
|
|
85
|
-
trace: commandLine.trace
|
|
86
|
-
}).execute();
|
|
87
|
-
case "registry": return new RegistryCommand(root, {
|
|
88
|
-
action: commandLine.action,
|
|
89
|
-
name: commandLine.name,
|
|
90
|
-
url: commandLine.url,
|
|
91
|
-
refType: commandLine.refType,
|
|
92
|
-
refValue: commandLine.refValue,
|
|
93
|
-
scope: commandLine.scope,
|
|
94
|
-
output: commandLine.output
|
|
95
|
-
}).execute();
|
|
96
|
-
case "login": return new LoginCommand(root, {
|
|
97
|
-
registry: commandLine.registry,
|
|
98
|
-
deviceName: commandLine.deviceName,
|
|
99
|
-
reauthorize: commandLine.reauthorize,
|
|
100
|
-
outputFormat: commandLine.outputFormat
|
|
101
|
-
}).execute();
|
|
102
|
-
case "logout": return new LogoutCommand(root, {
|
|
103
|
-
registry: commandLine.registry,
|
|
104
|
-
localOnly: commandLine.localOnly,
|
|
105
|
-
outputFormat: commandLine.outputFormat
|
|
106
|
-
}).execute();
|
|
107
|
-
case "whoami": return new WhoamiCommand(root, {
|
|
108
|
-
field: commandLine.field,
|
|
109
|
-
registry: commandLine.registry,
|
|
110
|
-
outputFormat: commandLine.outputFormat
|
|
111
|
-
}).execute();
|
|
112
|
-
case "publish": return new PublishCommand(root, {
|
|
113
|
-
registry: commandLine.registry,
|
|
114
|
-
owner: commandLine.owner,
|
|
115
|
-
repository: commandLine.repository,
|
|
116
|
-
tag: commandLine.tag,
|
|
117
|
-
asset: commandLine.asset,
|
|
118
|
-
assetPath: commandLine.assetPath,
|
|
119
|
-
auth: commandLine.auth,
|
|
120
|
-
detach: commandLine.detach,
|
|
121
|
-
outputFormat: commandLine.outputFormat
|
|
122
|
-
}).execute();
|
|
123
|
-
case "yank":
|
|
124
|
-
case "unyank":
|
|
125
|
-
case "unpublish":
|
|
126
|
-
case "deprecate":
|
|
127
|
-
case "undeprecate": return new PackageLifecycleCommand(root, {
|
|
128
|
-
operation: commandLine.command,
|
|
129
|
-
packageName: commandLine.packageName,
|
|
130
|
-
packageVersion: commandLine.packageVersion,
|
|
131
|
-
reason: commandLine.reason,
|
|
132
|
-
registry: commandLine.registry,
|
|
133
|
-
auth: commandLine.auth,
|
|
134
|
-
detach: commandLine.detach,
|
|
135
|
-
outputFormat: commandLine.outputFormat
|
|
136
|
-
}).execute();
|
|
137
|
-
case "requests": return new RequestsCommand(root, {
|
|
138
|
-
action: commandLine.action,
|
|
139
|
-
requestId: commandLine.requestId,
|
|
140
|
-
registry: commandLine.registry,
|
|
141
|
-
status: commandLine.status,
|
|
142
|
-
watch: commandLine.watch,
|
|
143
|
-
outputFormat: commandLine.outputFormat
|
|
144
|
-
}).execute();
|
|
145
|
-
case "init": return new InitCommand(root, {
|
|
146
|
-
explicitKind: commandLine.type,
|
|
147
|
-
explicitName: commandLine.name
|
|
148
|
-
}, new ProjectContextDetector(), new InkPromptService()).execute();
|
|
149
|
-
case "project-get-name": return new ProjectGetNameCommand(root).execute();
|
|
150
|
-
default: return 1;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
//#endregion
|
|
156
|
-
export { UAPKGApplication };
|
|
157
|
-
//# sourceMappingURL=UAPKGApplication.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGApplication.js","names":[],"sources":["../../src/app/UAPKGApplication.ts"],"sourcesContent":["import type { UAPKGCommandLine } from '#cli/cli/UAPKGCommandLine.ts';\nimport { AddCommand } from '#cli/commands/AddCommand.ts';\nimport { ConfigCommand } from '#cli/commands/ConfigCommand.ts';\nimport { InitCommand } from '#cli/commands/InitCommand.ts';\nimport { InstallCommand } from '#cli/commands/InstallCommand.ts';\nimport { ListCommand } from '#cli/commands/ListCommand.ts';\nimport { LoginCommand } from '#cli/commands/LoginCommand.ts';\nimport { LogoutCommand } from '#cli/commands/LogoutCommand.ts';\nimport { OutdatedCommand } from '#cli/commands/OutdatedCommand.ts';\nimport { PackageLifecycleCommand } from '#cli/commands/PackageLifecycleCommand.ts';\nimport { PackCommand } from '#cli/commands/PackCommand.ts';\nimport { ProjectGetNameCommand } from '#cli/commands/ProjectGetNameCommand.ts';\nimport { PublishCommand } from '#cli/commands/PublishCommand.ts';\nimport { RegistryCommand } from '#cli/commands/RegistryCommand.ts';\nimport { RemoveCommand } from '#cli/commands/RemoveCommand.ts';\nimport { RequestsCommand } from '#cli/commands/RequestsCommand.ts';\nimport { UpdateCommand } from '#cli/commands/UpdateCommand.ts';\nimport { WhoamiCommand } from '#cli/commands/WhoamiCommand.ts';\nimport { WhyCommand } from '#cli/commands/WhyCommand.ts';\nimport { InkPromptService } from '#cli/prompts/InkPromptService.tsx';\nimport { ProjectContextDetector } from '#cli/prompts/ProjectContextDetector.ts';\nimport { CompositionRoot } from '#cli/app/CompositionRoot.ts';\n\n/**\n * Dispatcher: maps the parsed command-line shape to a concrete command\n * implementation, wiring dependencies via {@link CompositionRoot}.\n *\n * Every command now composes over {@link CompositionRoot}. The `init` and\n * `project-get-name` commands additionally receive a prompt service +\n * project-context detector (split out of the legacy `ui/` + `services/`\n * folders in Phase 10).\n */\nexport class UAPKGApplication {\n async run(commandLine: UAPKGCommandLine): Promise<number> {\n const root = new CompositionRoot({ cwd: commandLine.cwd });\n\n switch (commandLine.command) {\n case 'install':\n return new InstallCommand(root, {\n force: commandLine.force,\n frozen: commandLine.frozen,\n dryRun: commandLine.dryRun,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'add':\n return new AddCommand(root, {\n spec: commandLine.source,\n pin: commandLine.pin,\n dev: commandLine.dev,\n registry: commandLine.registry,\n force: commandLine.force,\n dryRun: commandLine.dryRun,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'update':\n return new UpdateCommand(root, {\n specs: commandLine.specs,\n force: commandLine.force,\n dryRun: commandLine.dryRun,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'remove':\n return new RemoveCommand(root, {\n packageName: commandLine.packageName,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'outdated':\n return new OutdatedCommand(root, { outputFormat: commandLine.outputFormat }).execute();\n\n case 'why':\n return new WhyCommand(root, {\n target: commandLine.target,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'list':\n return new ListCommand(root, {\n depth: commandLine.depth,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'pack':\n return new PackCommand({\n cwd: commandLine.cwd,\n dryRun: commandLine.dryRun,\n allowMissingLfs: commandLine.allowMissingLfs,\n outFile: commandLine.outFile,\n }).execute();\n\n case 'config':\n return new ConfigCommand({\n cwd: commandLine.cwd,\n action: commandLine.action,\n pathToProperty: commandLine.path,\n rawValue: commandLine.value,\n scope: commandLine.scope,\n output: commandLine.output,\n showOrigin: commandLine.showOrigin,\n trace: commandLine.trace,\n }).execute();\n\n case 'registry':\n return new RegistryCommand(root, {\n action: commandLine.action,\n name: commandLine.name,\n url: commandLine.url,\n refType: commandLine.refType,\n refValue: commandLine.refValue,\n scope: commandLine.scope,\n output: commandLine.output,\n }).execute();\n\n case 'login':\n return new LoginCommand(root, {\n registry: commandLine.registry,\n deviceName: commandLine.deviceName,\n reauthorize: commandLine.reauthorize,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'logout':\n return new LogoutCommand(root, {\n registry: commandLine.registry,\n localOnly: commandLine.localOnly,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'whoami':\n return new WhoamiCommand(root, {\n field: commandLine.field,\n registry: commandLine.registry,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'publish':\n return new PublishCommand(root, {\n registry: commandLine.registry,\n owner: commandLine.owner,\n repository: commandLine.repository,\n tag: commandLine.tag,\n asset: commandLine.asset,\n assetPath: commandLine.assetPath,\n auth: commandLine.auth,\n detach: commandLine.detach,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'yank':\n case 'unyank':\n case 'unpublish':\n case 'deprecate':\n case 'undeprecate':\n return new PackageLifecycleCommand(root, {\n operation: commandLine.command,\n packageName: commandLine.packageName,\n packageVersion: commandLine.packageVersion,\n reason: commandLine.reason,\n registry: commandLine.registry,\n auth: commandLine.auth,\n detach: commandLine.detach,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'requests':\n return new RequestsCommand(root, {\n action: commandLine.action,\n requestId: commandLine.requestId,\n registry: commandLine.registry,\n status: commandLine.status,\n watch: commandLine.watch,\n outputFormat: commandLine.outputFormat,\n }).execute();\n\n case 'init':\n return new InitCommand(\n root,\n { explicitKind: commandLine.type, explicitName: commandLine.name },\n new ProjectContextDetector(),\n new InkPromptService(),\n ).execute();\n\n case 'project-get-name':\n return new ProjectGetNameCommand(root).execute();\n\n default: {\n const exhaustive: never = commandLine;\n void exhaustive;\n return 1;\n }\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,IAAa,mBAAb,MAA8B;CAC5B,MAAM,IAAI,aAAgD;EACxD,MAAM,OAAO,IAAI,gBAAgB,EAAE,KAAK,YAAY,IAAI,CAAC;EAEzD,QAAQ,YAAY,SAApB;GACE,KAAK,WACH,OAAO,IAAI,eAA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YAAY;IACtB,QAAQ,YAAY;IACpB,OAAO,YAAY;IACnB,cAAc,YAAY;GAC5B,CAAC,CAAC,CAAC,QAAQ;GAEb,KAAK,QACH,OAAO,IAAI,YACT,MACA;IAAE,cAAc,YAAY;IAAM,cAAc,YAAY;GAAK,GACjE,IAAI,uBAAuB,GAC3B,IAAI,iBAAiB,CACvB,CAAC,CAAC,QAAQ;GAEZ,KAAK,oBACH,OAAO,IAAI,sBAAsB,IAAI,CAAC,CAAC,QAAQ;GAEjD,SAGE,OAAO;EAEX;CACF;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BuildMetadata.d.ts","names":[],"sources":["../../src/build/BuildMetadata.ts"],"mappings":";;UAGiB;WACN,MAAM;WACN;WACA;;;;;;cAaE,sBAAsB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandLine.d.ts","names":[],"sources":["../../src/cli/UAPKGCommandLine.ts"],"mappings":";KAAY;KAuBA;KACA;KACA;KACA;cACC;KACD,2BAA2B;KAC3B;KAQA;KACA;UAEF;EACR,SAAS;EACT;;UAGe,wBAAwB;EACvC;EACA;EACA;;UAGe,uBAAuB;EACtC;EACA;EACA;EACA;EACA;EACA;EACA;EACA,cAAc;;UAGC,2BAA2B;EAC1C;EACA;EACA;EACA;EACA,cAAc;;UAGC,0BAA0B;EACzC;EACA;EACA;EACA;EACA,cAAc;;UAGC,kCAAkC;EACjD;;UAGe,0BAA0B;EACzC;EACA,QAAQ;EACR;EACA;EACA,QAAQ;EACR,QAAQ;EACR;EACA;;UAGe,4BAA4B;EAC3C;EACA,QAAQ;EACR;EACA;EACA;EACA;EACA,QAAQ;EACR,QAAQ;;UAGO,wBAAwB;EACvC;EACA;EACA;EACA;;UAGe,4BAA4B;EAC3C;EACA,cAAc;;UAGC,uBAAuB;EACtC;EACA;EACA,cAAc;;UAGC,wBAAwB;EACvC;EACA;EACA,cAAc;;UAGC,0BAA0B;EACzC;EACA;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E,cAAc,UAAS,oCAAyC;EAWhE,aAAa,UAAS,uBAA4B;EAWlD,eAAe,UAAS,yBAA8B;EAQtD,UAAU,gBAAgB,UAAS,oBAAyB;EAS5D,WAAW,UAAS,qBAA0B;EAS9C,aAAa,qBAAqB,UAAS,uBAA4B;EASvE,YAAY,UAAS,0BAA+B;EAWpD,aAAa,UAAS,2BAAgC;EAUtD,aAAa,UAAS,2BAAgC;EAUtD,cAAc,UAAS,4BAAiC;EAgBxD,gBACE,SAAS,2BACT,qBACA,wBACA,UAAS,8BACR;EAcH,eAAe,QAAQ,qBAAqB,UAAS,6BAAkC;EAavF,qBAAqB,UAAS,2BAAgC;EAO9D,gBAAgB,cAAc,UAAS,mBAAwB;EAa/D,iBAAiB,UAAS,sBAA2B;EAYrD,gBAAgB,cAAc,eAAe,UAAS,sBAA2B;EAcjF,mBAAmB,cAAc,UAAS,sBAA2B;EAarE,iBAAiB,UAAS,sBAA2B;EAYrD,eAAe,QAAQ,qBAAqB,UAAS,6BAAkC;EAcvF,WAAW,UAAS,yBAA8B;UAU1C;;iBAKM,8BAA8B,6BAA0B"}
|
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
//#region src/cli/UAPKGCommandLine.ts
|
|
2
|
-
const UAPKG_WHOAMI_FIELDS = [
|
|
3
|
-
"username",
|
|
4
|
-
"user-id",
|
|
5
|
-
"registry",
|
|
6
|
-
"registry-id"
|
|
7
|
-
];
|
|
8
|
-
var UAPKGCommandLineFactory = class {
|
|
9
|
-
cwdProvider;
|
|
10
|
-
constructor(cwdProvider = () => process.cwd()) {
|
|
11
|
-
this.cwdProvider = cwdProvider;
|
|
12
|
-
}
|
|
13
|
-
createInit(options = {}) {
|
|
14
|
-
return {
|
|
15
|
-
command: "init",
|
|
16
|
-
cwd: this.resolveCwd(options.cwd),
|
|
17
|
-
type: options.type,
|
|
18
|
-
name: options.name
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
createAdd(source, options = {}) {
|
|
22
|
-
return {
|
|
23
|
-
command: "add",
|
|
24
|
-
cwd: this.resolveCwd(options.cwd),
|
|
25
|
-
source,
|
|
26
|
-
force: options.force === true,
|
|
27
|
-
pin: options.pin === true,
|
|
28
|
-
dev: options.dev === true,
|
|
29
|
-
registry: options.registry,
|
|
30
|
-
dryRun: options.dryRun === true,
|
|
31
|
-
outputFormat: options.outputFormat ?? "text"
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
createInstall(options = {}) {
|
|
35
|
-
return {
|
|
36
|
-
command: "install",
|
|
37
|
-
cwd: this.resolveCwd(options.cwd),
|
|
38
|
-
force: options.force === true,
|
|
39
|
-
frozen: options.frozen === true,
|
|
40
|
-
dryRun: options.dryRun === true,
|
|
41
|
-
outputFormat: options.outputFormat ?? "text"
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
createUpdate(options = {}) {
|
|
45
|
-
return {
|
|
46
|
-
command: "update",
|
|
47
|
-
cwd: this.resolveCwd(options.cwd),
|
|
48
|
-
specs: options.specs ?? [],
|
|
49
|
-
force: options.force === true,
|
|
50
|
-
dryRun: options.dryRun === true,
|
|
51
|
-
outputFormat: options.outputFormat ?? "text"
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
createOutdated(options = {}) {
|
|
55
|
-
return {
|
|
56
|
-
command: "outdated",
|
|
57
|
-
cwd: this.resolveCwd(options.cwd),
|
|
58
|
-
outputFormat: options.outputFormat ?? "text"
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
createWhy(target, options = {}) {
|
|
62
|
-
return {
|
|
63
|
-
command: "why",
|
|
64
|
-
cwd: this.resolveCwd(options.cwd),
|
|
65
|
-
target,
|
|
66
|
-
outputFormat: options.outputFormat ?? "text"
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
createList(options = {}) {
|
|
70
|
-
return {
|
|
71
|
-
command: "list",
|
|
72
|
-
cwd: this.resolveCwd(options.cwd),
|
|
73
|
-
depth: options.depth ?? 0,
|
|
74
|
-
outputFormat: options.outputFormat ?? "text"
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
createRemove(packageName, options = {}) {
|
|
78
|
-
return {
|
|
79
|
-
command: "remove",
|
|
80
|
-
cwd: this.resolveCwd(options.cwd),
|
|
81
|
-
packageName,
|
|
82
|
-
outputFormat: options.outputFormat ?? "text"
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
createLogin(options = {}) {
|
|
86
|
-
return {
|
|
87
|
-
command: "login",
|
|
88
|
-
cwd: this.resolveCwd(options.cwd),
|
|
89
|
-
registry: options.registry,
|
|
90
|
-
deviceName: options.deviceName,
|
|
91
|
-
reauthorize: options.reauthorize === true,
|
|
92
|
-
outputFormat: options.outputFormat ?? "text"
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
createLogout(options = {}) {
|
|
96
|
-
return {
|
|
97
|
-
command: "logout",
|
|
98
|
-
cwd: this.resolveCwd(options.cwd),
|
|
99
|
-
registry: options.registry,
|
|
100
|
-
localOnly: options.localOnly === true,
|
|
101
|
-
outputFormat: options.outputFormat ?? "text"
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
createWhoami(options = {}) {
|
|
105
|
-
return {
|
|
106
|
-
command: "whoami",
|
|
107
|
-
cwd: this.resolveCwd(options.cwd),
|
|
108
|
-
field: options.field,
|
|
109
|
-
registry: options.registry,
|
|
110
|
-
outputFormat: options.outputFormat ?? "text"
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
createPublish(options = {}) {
|
|
114
|
-
return {
|
|
115
|
-
command: "publish",
|
|
116
|
-
cwd: this.resolveCwd(options.cwd),
|
|
117
|
-
registry: options.registry,
|
|
118
|
-
owner: options.owner,
|
|
119
|
-
repository: options.repository,
|
|
120
|
-
tag: options.tag,
|
|
121
|
-
asset: options.asset,
|
|
122
|
-
assetPath: options.assetPath,
|
|
123
|
-
auth: options.auth ?? "auto",
|
|
124
|
-
detach: options.detach === true,
|
|
125
|
-
outputFormat: options.outputFormat ?? "text"
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
createLifecycle(command, packageName, packageVersion, options = {}) {
|
|
129
|
-
return {
|
|
130
|
-
command,
|
|
131
|
-
cwd: this.resolveCwd(options.cwd),
|
|
132
|
-
packageName,
|
|
133
|
-
packageVersion,
|
|
134
|
-
reason: options.reason,
|
|
135
|
-
registry: options.registry,
|
|
136
|
-
auth: options.auth ?? "auto",
|
|
137
|
-
detach: options.detach === true,
|
|
138
|
-
outputFormat: options.outputFormat ?? "text"
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
createRequests(action, options = {}) {
|
|
142
|
-
return {
|
|
143
|
-
command: "requests",
|
|
144
|
-
action,
|
|
145
|
-
cwd: this.resolveCwd(options.cwd),
|
|
146
|
-
requestId: options.requestId,
|
|
147
|
-
registry: options.registry,
|
|
148
|
-
status: options.status,
|
|
149
|
-
watch: options.watch === true,
|
|
150
|
-
outputFormat: options.outputFormat ?? "text"
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
createProjectGetName(options = {}) {
|
|
154
|
-
return {
|
|
155
|
-
command: "project-get-name",
|
|
156
|
-
cwd: this.resolveCwd(options.cwd)
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
createConfigGet(path, options = {}) {
|
|
160
|
-
return {
|
|
161
|
-
command: "config",
|
|
162
|
-
action: "get",
|
|
163
|
-
cwd: this.resolveCwd(options.cwd),
|
|
164
|
-
path,
|
|
165
|
-
scope: options.scope,
|
|
166
|
-
output: options.output ?? "text",
|
|
167
|
-
showOrigin: options.showOrigin === true,
|
|
168
|
-
trace: options.trace === true
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
createConfigList(options = {}) {
|
|
172
|
-
return {
|
|
173
|
-
command: "config",
|
|
174
|
-
action: "list",
|
|
175
|
-
cwd: this.resolveCwd(options.cwd),
|
|
176
|
-
scope: options.scope,
|
|
177
|
-
output: options.output ?? "text",
|
|
178
|
-
showOrigin: false,
|
|
179
|
-
trace: false
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
createConfigSet(path, value, options = {}) {
|
|
183
|
-
return {
|
|
184
|
-
command: "config",
|
|
185
|
-
action: "set",
|
|
186
|
-
cwd: this.resolveCwd(options.cwd),
|
|
187
|
-
path,
|
|
188
|
-
value,
|
|
189
|
-
scope: options.scope,
|
|
190
|
-
output: options.output ?? "text",
|
|
191
|
-
showOrigin: false,
|
|
192
|
-
trace: false
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
createConfigDelete(path, options = {}) {
|
|
196
|
-
return {
|
|
197
|
-
command: "config",
|
|
198
|
-
action: "delete",
|
|
199
|
-
cwd: this.resolveCwd(options.cwd),
|
|
200
|
-
path,
|
|
201
|
-
scope: options.scope,
|
|
202
|
-
output: options.output ?? "text",
|
|
203
|
-
showOrigin: false,
|
|
204
|
-
trace: false
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
createConfigEdit(options = {}) {
|
|
208
|
-
return {
|
|
209
|
-
command: "config",
|
|
210
|
-
action: "edit",
|
|
211
|
-
cwd: this.resolveCwd(options.cwd),
|
|
212
|
-
scope: options.scope,
|
|
213
|
-
output: options.output ?? "text",
|
|
214
|
-
showOrigin: false,
|
|
215
|
-
trace: false
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
createRegistry(action, options = {}) {
|
|
219
|
-
return {
|
|
220
|
-
command: "registry",
|
|
221
|
-
action,
|
|
222
|
-
cwd: this.resolveCwd(options.cwd),
|
|
223
|
-
name: options.name,
|
|
224
|
-
url: options.url,
|
|
225
|
-
refType: options.refType,
|
|
226
|
-
refValue: options.refValue,
|
|
227
|
-
scope: options.scope,
|
|
228
|
-
output: options.output ?? "text"
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
createPack(options = {}) {
|
|
232
|
-
return {
|
|
233
|
-
command: "pack",
|
|
234
|
-
cwd: this.resolveCwd(options.cwd),
|
|
235
|
-
dryRun: options.dryRun === true,
|
|
236
|
-
allowMissingLfs: options.allowMissingLfs === true,
|
|
237
|
-
outFile: options.outFile
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
resolveCwd(cwd) {
|
|
241
|
-
return cwd ?? this.cwdProvider();
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
function createUAPKGCommandLineFactory(cwdProvider) {
|
|
245
|
-
return new UAPKGCommandLineFactory(cwdProvider);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
//#endregion
|
|
249
|
-
export { UAPKGCommandLineFactory, UAPKG_WHOAMI_FIELDS, createUAPKGCommandLineFactory };
|
|
250
|
-
//# sourceMappingURL=UAPKGCommandLine.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandLine.js","names":[],"sources":["../../src/cli/UAPKGCommandLine.ts"],"sourcesContent":["export type UAPKGCommandName =\n | 'init'\n | 'add'\n | 'install'\n | 'update'\n | 'project-get-name'\n | 'config'\n | 'registry'\n | 'pack'\n | 'outdated'\n | 'why'\n | 'list'\n | 'remove'\n | 'login'\n | 'logout'\n | 'whoami'\n | 'publish'\n | 'yank'\n | 'unyank'\n | 'unpublish'\n | 'deprecate'\n | 'undeprecate'\n | 'requests';\nexport type UAPKGConfigAction = 'get' | 'list' | 'set' | 'delete' | 'edit';\nexport type UAPKGRegistryAction = 'add' | 'remove' | 'list' | 'use' | 'auth' | 'refresh';\nexport type UAPKGRequestsAction = 'list' | 'status';\nexport type UAPKGControlPlaneAuthMode = 'auto' | 'login' | 'gat' | 'oidc';\nexport const UAPKG_WHOAMI_FIELDS = ['username', 'user-id', 'registry', 'registry-id'] as const;\nexport type UAPKGWhoamiField = (typeof UAPKG_WHOAMI_FIELDS)[number];\nexport type UAPKGRegistryRequestStatus =\n | 'queued'\n | 'checking'\n | 'accepted'\n | 'ready'\n | 'ready_superseded'\n | 'rejected'\n | 'operationally_failed';\nexport type UAPKGConfigScope = 'global' | 'local';\nexport type UAPKGOutputFormat = 'text' | 'json';\n\ninterface BaseCommandLine {\n command: UAPKGCommandName;\n cwd: string;\n}\n\nexport interface InitCommandLine extends BaseCommandLine {\n command: 'init';\n type?: 'project' | 'plugin';\n name?: string;\n}\n\nexport interface AddCommandLine extends BaseCommandLine {\n command: 'add';\n source: string;\n force: boolean;\n pin: boolean;\n dev: boolean;\n registry?: string;\n dryRun: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface InstallCommandLine extends BaseCommandLine {\n command: 'install';\n force: boolean;\n frozen: boolean;\n dryRun: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface UpdateCommandLine extends BaseCommandLine {\n command: 'update';\n specs: string[];\n force: boolean;\n dryRun: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface ProjectGetNameCommandLine extends BaseCommandLine {\n command: 'project-get-name';\n}\n\nexport interface ConfigCommandLine extends BaseCommandLine {\n command: 'config';\n action: UAPKGConfigAction;\n path?: string;\n value?: string;\n scope?: UAPKGConfigScope;\n output: UAPKGOutputFormat;\n showOrigin: boolean;\n trace: boolean;\n}\n\nexport interface RegistryCommandLine extends BaseCommandLine {\n command: 'registry';\n action: UAPKGRegistryAction;\n name?: string;\n url?: string;\n refType?: 'branch' | 'tag' | 'rev';\n refValue?: string;\n scope?: UAPKGConfigScope;\n output: UAPKGOutputFormat;\n}\n\nexport interface PackCommandLine extends BaseCommandLine {\n command: 'pack';\n dryRun: boolean;\n allowMissingLfs: boolean;\n outFile?: string;\n}\n\nexport interface OutdatedCommandLine extends BaseCommandLine {\n command: 'outdated';\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface WhyCommandLine extends BaseCommandLine {\n command: 'why';\n target: string;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface ListCommandLine extends BaseCommandLine {\n command: 'list';\n depth: number;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface RemoveCommandLine extends BaseCommandLine {\n command: 'remove';\n packageName: string;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface LoginCommandLine extends BaseCommandLine {\n command: 'login';\n registry?: string;\n deviceName?: string;\n reauthorize: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface LogoutCommandLine extends BaseCommandLine {\n command: 'logout';\n registry?: string;\n localOnly: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface WhoamiCommandLine extends BaseCommandLine {\n command: 'whoami';\n field?: UAPKGWhoamiField;\n registry?: string;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface PublishCommandLine extends BaseCommandLine {\n command: 'publish';\n registry?: string;\n owner?: string;\n repository?: string;\n tag?: string;\n asset?: string;\n assetPath?: string;\n auth: UAPKGControlPlaneAuthMode;\n detach: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport type UAPKGLifecycleCommandName = 'yank' | 'unyank' | 'unpublish' | 'deprecate' | 'undeprecate';\n\nexport interface LifecycleCommandLine extends BaseCommandLine {\n command: UAPKGLifecycleCommandName;\n packageName: string;\n packageVersion: string;\n reason?: string;\n registry?: string;\n auth: UAPKGControlPlaneAuthMode;\n detach: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface RequestsCommandLine extends BaseCommandLine {\n command: 'requests';\n action: UAPKGRequestsAction;\n requestId?: string;\n registry?: string;\n status?: UAPKGRegistryRequestStatus;\n watch: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport type UAPKGCommandLine =\n | InitCommandLine\n | AddCommandLine\n | InstallCommandLine\n | UpdateCommandLine\n | ProjectGetNameCommandLine\n | ConfigCommandLine\n | RegistryCommandLine\n | PackCommandLine\n | OutdatedCommandLine\n | WhyCommandLine\n | ListCommandLine\n | RemoveCommandLine\n | LoginCommandLine\n | LogoutCommandLine\n | WhoamiCommandLine\n | PublishCommandLine\n | LifecycleCommandLine\n | RequestsCommandLine;\n\nexport interface CommonCommandLineOptions {\n cwd?: string;\n}\n\nexport interface AddCommandLineOptions extends CommonCommandLineOptions {\n force?: boolean;\n pin?: boolean;\n dev?: boolean;\n registry?: string;\n dryRun?: boolean;\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface InstallOrUpdateCommandLineOptions extends CommonCommandLineOptions {\n force?: boolean;\n frozen?: boolean;\n dryRun?: boolean;\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface UpdateFactoryOptions extends InstallOrUpdateCommandLineOptions {\n specs?: string[];\n}\n\nexport interface OutdatedFactoryOptions extends CommonCommandLineOptions {\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface WhyFactoryOptions extends CommonCommandLineOptions {\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface ListFactoryOptions extends CommonCommandLineOptions {\n depth?: number;\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface RemoveFactoryOptions extends CommonCommandLineOptions {\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface RegistryAuthCommandLineOptions extends CommonCommandLineOptions {\n registry?: string;\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface LoginCommandLineOptions extends RegistryAuthCommandLineOptions {\n deviceName?: string;\n reauthorize?: boolean;\n}\n\nexport interface LogoutCommandLineOptions extends RegistryAuthCommandLineOptions {\n localOnly?: boolean;\n}\n\nexport interface WhoamiCommandLineOptions extends RegistryAuthCommandLineOptions {\n field?: UAPKGWhoamiField;\n}\n\nexport interface PublishCommandLineOptions extends RegistryAuthCommandLineOptions {\n owner?: string;\n repository?: string;\n tag?: string;\n asset?: string;\n assetPath?: string;\n auth?: UAPKGControlPlaneAuthMode;\n detach?: boolean;\n}\n\nexport interface LifecycleCommandLineOptions extends RegistryAuthCommandLineOptions {\n reason?: string;\n auth?: UAPKGControlPlaneAuthMode;\n detach?: boolean;\n}\n\nexport interface RequestsCommandLineOptions extends RegistryAuthCommandLineOptions {\n requestId?: string;\n status?: UAPKGRegistryRequestStatus;\n watch?: boolean;\n}\n\nexport interface ConfigCommonOptions extends CommonCommandLineOptions {\n scope?: UAPKGConfigScope;\n output?: UAPKGOutputFormat;\n}\n\nexport interface RegistryCommandLineOptions extends ConfigCommonOptions {\n name?: string;\n url?: string;\n refType?: 'branch' | 'tag' | 'rev';\n refValue?: string;\n}\n\nexport interface ConfigGetOptions extends ConfigCommonOptions {\n showOrigin?: boolean;\n trace?: boolean;\n}\n\nexport interface PackCommandLineOptions extends CommonCommandLineOptions {\n dryRun?: boolean;\n allowMissingLfs?: boolean;\n outFile?: string;\n}\n\nexport class UAPKGCommandLineFactory {\n constructor(private readonly cwdProvider: () => string = () => process.cwd()) {}\n\n createInit(options: { type?: 'project' | 'plugin'; name?: string } & CommonCommandLineOptions = {}): InitCommandLine {\n return {\n command: 'init',\n cwd: this.resolveCwd(options.cwd),\n type: options.type,\n name: options.name,\n };\n }\n\n createAdd(source: string, options: AddCommandLineOptions = {}): AddCommandLine {\n return {\n command: 'add',\n cwd: this.resolveCwd(options.cwd),\n source,\n force: options.force === true,\n pin: options.pin === true,\n dev: options.dev === true,\n registry: options.registry,\n dryRun: options.dryRun === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createInstall(options: InstallOrUpdateCommandLineOptions = {}): InstallCommandLine {\n return {\n command: 'install',\n cwd: this.resolveCwd(options.cwd),\n force: options.force === true,\n frozen: options.frozen === true,\n dryRun: options.dryRun === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createUpdate(options: UpdateFactoryOptions = {}): UpdateCommandLine {\n return {\n command: 'update',\n cwd: this.resolveCwd(options.cwd),\n specs: options.specs ?? [],\n force: options.force === true,\n dryRun: options.dryRun === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createOutdated(options: OutdatedFactoryOptions = {}): OutdatedCommandLine {\n return {\n command: 'outdated',\n cwd: this.resolveCwd(options.cwd),\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createWhy(target: string, options: WhyFactoryOptions = {}): WhyCommandLine {\n return {\n command: 'why',\n cwd: this.resolveCwd(options.cwd),\n target,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createList(options: ListFactoryOptions = {}): ListCommandLine {\n return {\n command: 'list',\n cwd: this.resolveCwd(options.cwd),\n depth: options.depth ?? 0,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createRemove(packageName: string, options: RemoveFactoryOptions = {}): RemoveCommandLine {\n return {\n command: 'remove',\n cwd: this.resolveCwd(options.cwd),\n packageName,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createLogin(options: LoginCommandLineOptions = {}): LoginCommandLine {\n return {\n command: 'login',\n cwd: this.resolveCwd(options.cwd),\n registry: options.registry,\n deviceName: options.deviceName,\n reauthorize: options.reauthorize === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createLogout(options: LogoutCommandLineOptions = {}): LogoutCommandLine {\n return {\n command: 'logout',\n cwd: this.resolveCwd(options.cwd),\n registry: options.registry,\n localOnly: options.localOnly === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createWhoami(options: WhoamiCommandLineOptions = {}): WhoamiCommandLine {\n return {\n command: 'whoami',\n cwd: this.resolveCwd(options.cwd),\n field: options.field,\n registry: options.registry,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createPublish(options: PublishCommandLineOptions = {}): PublishCommandLine {\n return {\n command: 'publish',\n cwd: this.resolveCwd(options.cwd),\n registry: options.registry,\n owner: options.owner,\n repository: options.repository,\n tag: options.tag,\n asset: options.asset,\n assetPath: options.assetPath,\n auth: options.auth ?? 'auto',\n detach: options.detach === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createLifecycle(\n command: UAPKGLifecycleCommandName,\n packageName: string,\n packageVersion: string,\n options: LifecycleCommandLineOptions = {},\n ): LifecycleCommandLine {\n return {\n command,\n cwd: this.resolveCwd(options.cwd),\n packageName,\n packageVersion,\n reason: options.reason,\n registry: options.registry,\n auth: options.auth ?? 'auto',\n detach: options.detach === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createRequests(action: UAPKGRequestsAction, options: RequestsCommandLineOptions = {}): RequestsCommandLine {\n return {\n command: 'requests',\n action,\n cwd: this.resolveCwd(options.cwd),\n requestId: options.requestId,\n registry: options.registry,\n status: options.status,\n watch: options.watch === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createProjectGetName(options: CommonCommandLineOptions = {}): ProjectGetNameCommandLine {\n return {\n command: 'project-get-name',\n cwd: this.resolveCwd(options.cwd),\n };\n }\n\n createConfigGet(path: string, options: ConfigGetOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'get',\n cwd: this.resolveCwd(options.cwd),\n path,\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: options.showOrigin === true,\n trace: options.trace === true,\n };\n }\n\n createConfigList(options: ConfigCommonOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'list',\n cwd: this.resolveCwd(options.cwd),\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: false,\n trace: false,\n };\n }\n\n createConfigSet(path: string, value: string, options: ConfigCommonOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'set',\n cwd: this.resolveCwd(options.cwd),\n path,\n value,\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: false,\n trace: false,\n };\n }\n\n createConfigDelete(path: string, options: ConfigCommonOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'delete',\n cwd: this.resolveCwd(options.cwd),\n path,\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: false,\n trace: false,\n };\n }\n\n createConfigEdit(options: ConfigCommonOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'edit',\n cwd: this.resolveCwd(options.cwd),\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: false,\n trace: false,\n };\n }\n\n createRegistry(action: UAPKGRegistryAction, options: RegistryCommandLineOptions = {}): RegistryCommandLine {\n return {\n command: 'registry',\n action,\n cwd: this.resolveCwd(options.cwd),\n name: options.name,\n url: options.url,\n refType: options.refType,\n refValue: options.refValue,\n scope: options.scope,\n output: options.output ?? 'text',\n };\n }\n\n createPack(options: PackCommandLineOptions = {}): PackCommandLine {\n return {\n command: 'pack',\n cwd: this.resolveCwd(options.cwd),\n dryRun: options.dryRun === true,\n allowMissingLfs: options.allowMissingLfs === true,\n outFile: options.outFile,\n };\n }\n\n private resolveCwd(cwd?: string) {\n return cwd ?? this.cwdProvider();\n }\n}\n\nexport function createUAPKGCommandLineFactory(cwdProvider?: () => string) {\n return new UAPKGCommandLineFactory(cwdProvider);\n}\n"],"mappings":";AA2BA,MAAa,sBAAsB;CAAC;CAAY;CAAW;CAAY;AAAa;AAiSpF,IAAa,0BAAb,MAAqC;CACN;CAA7B,YAAY,AAAiB,oBAAkC,QAAQ,IAAI,GAAG;EAAjD;CAAkD;CAE/E,WAAW,UAAqF,CAAC,GAAoB;EACnH,OAAO;GACL,SAAS;GACT,KAAK,KAAK,WAAW,QAAQ,GAAG;GAChC,MAAM,QAAQ;GACd,MAAM,QAAQ;EAChB;CACF;CAEA,UAAU,QAAgB,UAAiC,CAAC,GAAmB;EAC7E,OAAO;GACL,SAAS;GACT,KAAK,KAAK,WAAW,QAAQ,GAAG;GAChC;GACA,OAAO,QAAQ,UAAU;GACzB,KAAK,QAAQ,QAAQ;GACrB,KAAK,QAAQ,QAAQ;GACrB,UAAU,QAAQ;GAClB,QAAQ,QAAQ,WAAW;GAC3B,cAAc,QAAQ,gBAAgB;EACxC;CACF;CAEA,cAAc,UAA6C,CAAC,GAAuB;EACjF,OAAO;GACL,SAAS;GACT,KAAK,KAAK,WAAW,QAAQ,GAAG;GAChC,OAAO,QAAQ,UAAU;GACzB,QAAQ,QAAQ,WAAW;GAC3B,QAAQ,QAAQ,WAAW;GAC3B,cAAc,QAAQ,gBAAgB;EACxC;CACF;CAEA,aAAa,UAAgC,CAAC,GAAsB;EAClE,OAAO;GACL,SAAS;GACT,KAAK,KAAK,WAAW,QAAQ,GAAG;GAChC,OAAO,QAAQ,SAAS,CAAC;GACzB,OAAO,QAAQ,UAAU;GACz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;iBAIsB,sBAAsB,qBAAsB,QAA5C"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UAPKGCommandLineParser } from "./parsing/UAPKGCommandLineParser.js";
|
|
2
|
-
|
|
3
|
-
//#region src/cli/parseCommandLine.ts
|
|
4
|
-
const parser = new UAPKGCommandLineParser();
|
|
5
|
-
async function parseUAPKGCommandLine(rawArgv = process.argv) {
|
|
6
|
-
return await parser.parse(rawArgv);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { parseUAPKGCommandLine };
|
|
11
|
-
//# sourceMappingURL=parseCommandLine.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseCommandLine.js","names":[],"sources":["../../src/cli/parseCommandLine.ts"],"sourcesContent":["import { UAPKGCommandLineParser } from '#cli/cli/parsing/UAPKGCommandLineParser.ts';\n\nconst parser = new UAPKGCommandLineParser();\n\nexport async function parseUAPKGCommandLine(rawArgv = process.argv) {\n return await parser.parse(rawArgv);\n}\n"],"mappings":";;;AAEA,MAAM,SAAS,IAAI,uBAAuB;AAE1C,eAAsB,sBAAsB,UAAU,QAAQ,MAAM;CAClE,OAAO,MAAM,OAAO,MAAM,OAAO;AACnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandLineParser.d.ts","names":[],"sources":["../../../src/cli/parsing/UAPKGCommandLineParser.ts"],"mappings":";;;cAMa;mBACkB;EAA7B,YAA6B,WAAQ;EAE/B,MAAM,qBAAyB,QAAQ"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UAPKG_BUILD_METADATA } from "../../build/BuildMetadata.js";
|
|
2
|
-
import { UAPKGParserRegistry } from "./UAPKGParserRegistry.js";
|
|
3
|
-
import yargs from "yargs";
|
|
4
|
-
import { hideBin } from "yargs/helpers";
|
|
5
|
-
|
|
6
|
-
//#region src/cli/parsing/UAPKGCommandLineParser.ts
|
|
7
|
-
var UAPKGCommandLineParser = class {
|
|
8
|
-
registry;
|
|
9
|
-
constructor(registry = new UAPKGParserRegistry()) {
|
|
10
|
-
this.registry = registry;
|
|
11
|
-
}
|
|
12
|
-
async parse(rawArgv = process.argv) {
|
|
13
|
-
let parsed;
|
|
14
|
-
await this.registry.registerAll(yargs(hideBin(rawArgv)).scriptName("uapkg").usage("$0 <command> [args]").version(UAPKG_BUILD_METADATA.displayVersion).demandCommand(1).strict().help(), { set(commandLine) {
|
|
15
|
-
parsed = commandLine;
|
|
16
|
-
} }).wrap(Math.min(120, yargs().terminalWidth())).parse();
|
|
17
|
-
if (!parsed) throw new Error("[uapkg] Failed to resolve command line input");
|
|
18
|
-
return parsed;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
export { UAPKGCommandLineParser };
|
|
24
|
-
//# sourceMappingURL=UAPKGCommandLineParser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandLineParser.js","names":[],"sources":["../../../src/cli/parsing/UAPKGCommandLineParser.ts"],"sourcesContent":["import yargs from 'yargs';\nimport { hideBin } from 'yargs/helpers';\nimport { UAPKG_BUILD_METADATA } from '#cli/build/BuildMetadata.ts';\nimport type { UAPKGCommandLine } from '#cli/cli/UAPKGCommandLine.ts';\nimport { UAPKGParserRegistry } from '#cli/cli/parsing/UAPKGParserRegistry.ts';\n\nexport class UAPKGCommandLineParser {\n constructor(private readonly registry = new UAPKGParserRegistry()) {}\n\n async parse(rawArgv = process.argv): Promise<UAPKGCommandLine> {\n let parsed: UAPKGCommandLine | undefined;\n\n const parser = this.registry\n .registerAll(\n yargs(hideBin(rawArgv))\n .scriptName('uapkg')\n .usage('$0 <command> [args]')\n .version(UAPKG_BUILD_METADATA.displayVersion)\n .demandCommand(1)\n .strict()\n .help(),\n {\n set(commandLine) {\n parsed = commandLine;\n },\n },\n )\n .wrap(Math.min(120, yargs().terminalWidth()));\n\n await parser.parse();\n\n if (!parsed) {\n throw new Error('[uapkg] Failed to resolve command line input');\n }\n\n return parsed;\n }\n}\n"],"mappings":";;;;;;AAMA,IAAa,yBAAb,MAAoC;CACL;CAA7B,YAAY,AAAiB,WAAW,IAAI,oBAAoB,GAAG;EAAtC;CAAuC;CAEpE,MAAM,MAAM,UAAU,QAAQ,MAAiC;EAC7D,IAAI;EAmBJ,MAjBe,KAAK,SACjB,YACC,MAAM,QAAQ,OAAO,CAAC,CAAC,CACpB,WAAW,OAAO,CAAC,CACnB,MAAM,qBAAqB,CAAC,CAC5B,QAAQ,qBAAqB,cAAc,CAAC,CAC5C,cAAc,CAAC,CAAC,CAChB,OAAO,CAAC,CACR,KAAK,GACR,EACE,IAAI,aAAa;GACf,SAAS;EACX,EACF,CACF,CAAC,CACA,KAAK,KAAK,IAAI,KAAK,MAAM,CAAC,CAAC,cAAc,CAAC,CAElC,CAAC,CAAC,MAAM;EAEnB,IAAI,CAAC,QACH,MAAM,IAAI,MAAM,8CAA8C;EAGhE,OAAO;CACT;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGParserRegistry.d.ts","names":[],"sources":["../../../src/cli/parsing/UAPKGParserRegistry.ts"],"mappings":";;;;cAsBa;mBAEQ;EADnB,YACmB,UAAS;EAsB5B,YAAY,QAAQ,MAAM;IAAQ,MAAM,aAAa;MAA2B"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AddCommandModule } from "./modules/AddCommandModule.js";
|
|
2
|
-
import { ConfigCommandModule } from "./modules/ConfigCommandModule.js";
|
|
3
|
-
import { InitCommandModule } from "./modules/InitCommandModule.js";
|
|
4
|
-
import { InstallCommandModule } from "./modules/InstallCommandModule.js";
|
|
5
|
-
import { LifecycleCommandModule } from "./modules/LifecycleCommandModule.js";
|
|
6
|
-
import { ListCommandModule } from "./modules/ListCommandModule.js";
|
|
7
|
-
import { LoginCommandModule } from "./modules/LoginCommandModule.js";
|
|
8
|
-
import { LogoutCommandModule } from "./modules/LogoutCommandModule.js";
|
|
9
|
-
import { OutdatedCommandModule } from "./modules/OutdatedCommandModule.js";
|
|
10
|
-
import { PackCommandModule } from "./modules/PackCommandModule.js";
|
|
11
|
-
import { ProjectGetNameCommandModule } from "./modules/ProjectGetNameCommandModule.js";
|
|
12
|
-
import { PublishCommandModule } from "./modules/PublishCommandModule.js";
|
|
13
|
-
import { RegistryCommandModule } from "./modules/RegistryCommandModule.js";
|
|
14
|
-
import { RemoveCommandModule } from "./modules/RemoveCommandModule.js";
|
|
15
|
-
import { RequestsCommandModule } from "./modules/RequestsCommandModule.js";
|
|
16
|
-
import { UpdateCommandModule } from "./modules/UpdateCommandModule.js";
|
|
17
|
-
import { WhoamiCommandModule } from "./modules/WhoamiCommandModule.js";
|
|
18
|
-
import { WhyCommandModule } from "./modules/WhyCommandModule.js";
|
|
19
|
-
|
|
20
|
-
//#region src/cli/parsing/UAPKGParserRegistry.ts
|
|
21
|
-
var UAPKGParserRegistry = class {
|
|
22
|
-
modules;
|
|
23
|
-
constructor(modules = [
|
|
24
|
-
new InitCommandModule(),
|
|
25
|
-
new AddCommandModule(),
|
|
26
|
-
new InstallCommandModule(),
|
|
27
|
-
new UpdateCommandModule(),
|
|
28
|
-
new RemoveCommandModule(),
|
|
29
|
-
new OutdatedCommandModule(),
|
|
30
|
-
new WhyCommandModule(),
|
|
31
|
-
new ListCommandModule(),
|
|
32
|
-
new PackCommandModule(),
|
|
33
|
-
new ProjectGetNameCommandModule(),
|
|
34
|
-
new ConfigCommandModule(),
|
|
35
|
-
new RegistryCommandModule(),
|
|
36
|
-
new LoginCommandModule(),
|
|
37
|
-
new LogoutCommandModule(),
|
|
38
|
-
new WhoamiCommandModule(),
|
|
39
|
-
new PublishCommandModule(),
|
|
40
|
-
new LifecycleCommandModule(),
|
|
41
|
-
new RequestsCommandModule()
|
|
42
|
-
]) {
|
|
43
|
-
this.modules = modules;
|
|
44
|
-
}
|
|
45
|
-
registerAll(parser, sink) {
|
|
46
|
-
let next = parser;
|
|
47
|
-
for (const module of this.modules) next = module.register(next, sink);
|
|
48
|
-
return next;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
//#endregion
|
|
53
|
-
export { UAPKGParserRegistry };
|
|
54
|
-
//# sourceMappingURL=UAPKGParserRegistry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGParserRegistry.js","names":[],"sources":["../../../src/cli/parsing/UAPKGParserRegistry.ts"],"sourcesContent":["import type { Argv } from 'yargs';\nimport type { UAPKGCommandLine } from '#cli/cli/UAPKGCommandLine.ts';\nimport type { UAPKGCommandModule } from '#cli/cli/parsing/contracts/UAPKGCommandModule.ts';\nimport { AddCommandModule } from '#cli/cli/parsing/modules/AddCommandModule.ts';\nimport { ConfigCommandModule } from '#cli/cli/parsing/modules/ConfigCommandModule.ts';\nimport { InitCommandModule } from '#cli/cli/parsing/modules/InitCommandModule.ts';\nimport { InstallCommandModule } from '#cli/cli/parsing/modules/InstallCommandModule.ts';\nimport { LifecycleCommandModule } from '#cli/cli/parsing/modules/LifecycleCommandModule.ts';\nimport { ListCommandModule } from '#cli/cli/parsing/modules/ListCommandModule.ts';\nimport { LoginCommandModule } from '#cli/cli/parsing/modules/LoginCommandModule.ts';\nimport { LogoutCommandModule } from '#cli/cli/parsing/modules/LogoutCommandModule.ts';\nimport { OutdatedCommandModule } from '#cli/cli/parsing/modules/OutdatedCommandModule.ts';\nimport { PackCommandModule } from '#cli/cli/parsing/modules/PackCommandModule.ts';\nimport { ProjectGetNameCommandModule } from '#cli/cli/parsing/modules/ProjectGetNameCommandModule.ts';\nimport { PublishCommandModule } from '#cli/cli/parsing/modules/PublishCommandModule.ts';\nimport { RegistryCommandModule } from '#cli/cli/parsing/modules/RegistryCommandModule.ts';\nimport { RemoveCommandModule } from '#cli/cli/parsing/modules/RemoveCommandModule.ts';\nimport { RequestsCommandModule } from '#cli/cli/parsing/modules/RequestsCommandModule.ts';\nimport { UpdateCommandModule } from '#cli/cli/parsing/modules/UpdateCommandModule.ts';\nimport { WhoamiCommandModule } from '#cli/cli/parsing/modules/WhoamiCommandModule.ts';\nimport { WhyCommandModule } from '#cli/cli/parsing/modules/WhyCommandModule.ts';\n\nexport class UAPKGParserRegistry {\n constructor(\n private readonly modules: UAPKGCommandModule[] = [\n new InitCommandModule(),\n new AddCommandModule(),\n new InstallCommandModule(),\n new UpdateCommandModule(),\n new RemoveCommandModule(),\n new OutdatedCommandModule(),\n new WhyCommandModule(),\n new ListCommandModule(),\n new PackCommandModule(),\n new ProjectGetNameCommandModule(),\n new ConfigCommandModule(),\n new RegistryCommandModule(),\n new LoginCommandModule(),\n new LogoutCommandModule(),\n new WhoamiCommandModule(),\n new PublishCommandModule(),\n new LifecycleCommandModule(),\n new RequestsCommandModule(),\n ],\n ) {}\n\n registerAll(parser: Argv, sink: { set: (commandLine: UAPKGCommandLine) => void }) {\n let next = parser;\n for (const module of this.modules) {\n next = module.register(next, sink);\n }\n\n return next;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA,IAAa,sBAAb,MAAiC;CAEZ;CADnB,YACE,AAAiB,UAAgC;EAC/C,IAAI,kBAAkB;EACtB,IAAI,iBAAiB;EACrB,IAAI,qBAAqB;EACzB,IAAI,oBAAoB;EACxB,IAAI,oBAAoB;EACxB,IAAI,sBAAsB;EAC1B,IAAI,iBAAiB;EACrB,IAAI,kBAAkB;EACtB,IAAI,kBAAkB;EACtB,IAAI,4BAA4B;EAChC,IAAI,oBAAoB;EACxB,IAAI,sBAAsB;EAC1B,IAAI,mBAAmB;EACvB,IAAI,oBAAoB;EACxB,IAAI,oBAAoB;EACxB,IAAI,qBAAqB;EACzB,IAAI,uBAAuB;EAC3B,IAAI,sBAAsB;CAC5B,GACA;EApBiB;CAoBhB;CAEH,YAAY,QAAc,MAAwD;EAChF,IAAI,OAAO;EACX,KAAK,MAAM,UAAU,KAAK,SACxB,OAAO,OAAO,SAAS,MAAM,IAAI;EAGnC,OAAO;CACT;AACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/contracts/UAPKGCommandModule.ts"],"mappings":";;;UAGiB;EACf,IAAI,aAAa;;UAGF;EACf,SAAS,QAAQ,MAAM,MAAM,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AddCommandModule.d.ts","names":[],"sources":["../../../../src/cli/parsing/modules/AddCommandModule.ts"],"mappings":";;;cAIa,4BAA4B;mBACtB;EAEjB,SAAS,QAAQ,MAAM,MAAM,kBAAe"}
|