@vibesdotdev/infra-deploy 0.0.1 → 1.0.0-rc.4
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/LICENSE +18 -0
- package/README.md +79 -118
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +48 -35
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +31 -21
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +26 -27
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +11 -11
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +15 -14
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +24 -17
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js +8 -3
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +164 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.js +557 -76
- package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -1
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts +49 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js +60 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts +30 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.js +167 -0
- package/dist/cli/db/infra-db.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts +6 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js +53 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js +50 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts +12 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js +70 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts +32 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js +39 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts +17 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js +66 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts +58 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js +72 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js +110 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js +47 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts +24 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.js +62 -0
- package/dist/cli/dns/resolve-dns-provider.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts +37 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js +45 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts +15 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts +29 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js +35 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts +19 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js +73 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js +50 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts +16 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js +81 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts +40 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js +49 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts +25 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js +74 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js.map +1 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/infra-deploy.cli-group.descriptor.js +1 -1
- package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -1
- package/dist/cli/infra.cli-group.descriptor.d.ts +7 -7
- package/dist/cli/infra.cli-group.descriptor.js +1 -1
- package/dist/cli/infra.cli-group.descriptor.js.map +1 -1
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts +26 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js +204 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +40 -30
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +7 -3
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +35 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js +202 -20
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +113 -35
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js +87 -3
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +61 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.js +1161 -108
- package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/stream-worker-tail.d.ts +7 -2
- package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -1
- package/dist/cli/logs/stream-worker-tail.js +280 -113
- package/dist/cli/logs/stream-worker-tail.js.map +1 -1
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts +62 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js +79 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts +8 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js +105 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts +34 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js +42 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts +13 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js +82 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +80 -23
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +48 -16
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +47 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +532 -351
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -1
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts +28 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js +34 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts +12 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js +134 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js +1 -1
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -1
- package/dist/cli/npm/mirror-registry-artifacts.d.ts +64 -0
- package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
- package/dist/cli/npm/mirror-registry-artifacts.js +114 -0
- package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
- package/dist/cli/npm/publish/command-options.d.ts +24 -0
- package/dist/cli/npm/publish/command-options.d.ts.map +1 -0
- package/dist/cli/npm/publish/command-options.js +85 -0
- package/dist/cli/npm/publish/command-options.js.map +1 -0
- package/dist/cli/npm/publish/concurrency.d.ts +19 -0
- package/dist/cli/npm/publish/concurrency.d.ts.map +1 -0
- package/dist/cli/npm/publish/concurrency.js +60 -0
- package/dist/cli/npm/publish/concurrency.js.map +1 -0
- package/dist/cli/npm/publish/consumer-smoke.d.ts +83 -0
- package/dist/cli/npm/publish/consumer-smoke.d.ts.map +1 -0
- package/dist/cli/npm/publish/consumer-smoke.js +371 -0
- package/dist/cli/npm/publish/consumer-smoke.js.map +1 -0
- package/dist/cli/npm/publish/consumer-surfaces.d.ts +81 -0
- package/dist/cli/npm/publish/consumer-surfaces.d.ts.map +1 -0
- package/dist/cli/npm/publish/consumer-surfaces.js +199 -0
- package/dist/cli/npm/publish/consumer-surfaces.js.map +1 -0
- package/dist/cli/npm/publish/external-requirements.d.ts +171 -0
- package/dist/cli/npm/publish/external-requirements.d.ts.map +1 -0
- package/dist/cli/npm/publish/external-requirements.js +365 -0
- package/dist/cli/npm/publish/external-requirements.js.map +1 -0
- package/dist/cli/npm/publish/forge-source-identity.d.ts +64 -0
- package/dist/cli/npm/publish/forge-source-identity.d.ts.map +1 -0
- package/dist/cli/npm/publish/forge-source-identity.js +201 -0
- package/dist/cli/npm/publish/forge-source-identity.js.map +1 -0
- package/dist/cli/npm/publish/fs-paths.d.ts +25 -0
- package/dist/cli/npm/publish/fs-paths.d.ts.map +1 -0
- package/dist/cli/npm/publish/fs-paths.js +87 -0
- package/dist/cli/npm/publish/fs-paths.js.map +1 -0
- package/dist/cli/npm/publish/lease-preflight-answer.d.ts +17 -0
- package/dist/cli/npm/publish/lease-preflight-answer.d.ts.map +1 -0
- package/dist/cli/npm/publish/lease-preflight-answer.js +35 -0
- package/dist/cli/npm/publish/lease-preflight-answer.js.map +1 -0
- package/dist/cli/npm/publish/lease-preflight.d.ts +92 -0
- package/dist/cli/npm/publish/lease-preflight.d.ts.map +1 -0
- package/dist/cli/npm/publish/lease-preflight.js +205 -0
- package/dist/cli/npm/publish/lease-preflight.js.map +1 -0
- package/dist/cli/npm/publish/managed-lease.d.ts +110 -0
- package/dist/cli/npm/publish/managed-lease.d.ts.map +1 -0
- package/dist/cli/npm/publish/managed-lease.js +191 -0
- package/dist/cli/npm/publish/managed-lease.js.map +1 -0
- package/dist/cli/npm/publish/npm-exec.d.ts +148 -0
- package/dist/cli/npm/publish/npm-exec.d.ts.map +1 -0
- package/dist/cli/npm/publish/npm-exec.js +311 -0
- package/dist/cli/npm/publish/npm-exec.js.map +1 -0
- package/dist/cli/npm/publish/package-artifact.d.ts +107 -0
- package/dist/cli/npm/publish/package-artifact.d.ts.map +1 -0
- package/dist/cli/npm/publish/package-artifact.js +418 -0
- package/dist/cli/npm/publish/package-artifact.js.map +1 -0
- package/dist/cli/npm/publish/platform-registry.d.ts +76 -0
- package/dist/cli/npm/publish/platform-registry.d.ts.map +1 -0
- package/dist/cli/npm/publish/platform-registry.js +324 -0
- package/dist/cli/npm/publish/platform-registry.js.map +1 -0
- package/dist/cli/npm/publish/proof-external-closure.d.ts +139 -0
- package/dist/cli/npm/publish/proof-external-closure.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-external-closure.js +339 -0
- package/dist/cli/npm/publish/proof-external-closure.js.map +1 -0
- package/dist/cli/npm/publish/proof-installed-graph.d.ts +26 -0
- package/dist/cli/npm/publish/proof-installed-graph.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-installed-graph.js +229 -0
- package/dist/cli/npm/publish/proof-installed-graph.js.map +1 -0
- package/dist/cli/npm/publish/proof-registry.d.ts +74 -0
- package/dist/cli/npm/publish/proof-registry.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-registry.js +335 -0
- package/dist/cli/npm/publish/proof-registry.js.map +1 -0
- package/dist/cli/npm/publish/proof-source-credentials.d.ts +42 -0
- package/dist/cli/npm/publish/proof-source-credentials.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-source-credentials.js +129 -0
- package/dist/cli/npm/publish/proof-source-credentials.js.map +1 -0
- package/dist/cli/npm/publish/publish-package.d.ts +66 -0
- package/dist/cli/npm/publish/publish-package.d.ts.map +1 -0
- package/dist/cli/npm/publish/publish-package.js +544 -0
- package/dist/cli/npm/publish/publish-package.js.map +1 -0
- package/dist/cli/npm/publish/publisher-manifest.d.ts +173 -0
- package/dist/cli/npm/publish/publisher-manifest.d.ts.map +1 -0
- package/dist/cli/npm/publish/publisher-manifest.js +79 -0
- package/dist/cli/npm/publish/publisher-manifest.js.map +1 -0
- package/dist/cli/npm/publish/rc-major-exception.d.ts +20 -0
- package/dist/cli/npm/publish/rc-major-exception.d.ts.map +1 -0
- package/dist/cli/npm/publish/rc-major-exception.js +46 -0
- package/dist/cli/npm/publish/rc-major-exception.js.map +1 -0
- package/dist/cli/npm/publish/registry-availability.d.ts +150 -0
- package/dist/cli/npm/publish/registry-availability.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-availability.js +570 -0
- package/dist/cli/npm/publish/registry-availability.js.map +1 -0
- package/dist/cli/npm/publish/registry-credentials.d.ts +108 -0
- package/dist/cli/npm/publish/registry-credentials.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-credentials.js +290 -0
- package/dist/cli/npm/publish/registry-credentials.js.map +1 -0
- package/dist/cli/npm/publish/registry-reads.d.ts +42 -0
- package/dist/cli/npm/publish/registry-reads.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-reads.js +164 -0
- package/dist/cli/npm/publish/registry-reads.js.map +1 -0
- package/dist/cli/npm/publish/release-build.d.ts +46 -0
- package/dist/cli/npm/publish/release-build.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-build.js +140 -0
- package/dist/cli/npm/publish/release-build.js.map +1 -0
- package/dist/cli/npm/publish/release-consumer-proof.d.ts +70 -0
- package/dist/cli/npm/publish/release-consumer-proof.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-consumer-proof.js +397 -0
- package/dist/cli/npm/publish/release-consumer-proof.js.map +1 -0
- package/dist/cli/npm/publish/release-executor.d.ts +46 -0
- package/dist/cli/npm/publish/release-executor.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-executor.js +181 -0
- package/dist/cli/npm/publish/release-executor.js.map +1 -0
- package/dist/cli/npm/publish/release-grants.client.impl.d.ts +10 -0
- package/dist/cli/npm/publish/release-grants.client.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-grants.client.impl.js +63 -0
- package/dist/cli/npm/publish/release-grants.client.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.client.d.ts +39 -0
- package/dist/cli/npm/publish/release-jobs.client.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.client.js +124 -0
- package/dist/cli/npm/publish/release-jobs.client.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts +20 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.js +82 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.impl.d.ts +15 -0
- package/dist/cli/npm/publish/release-jobs.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.impl.js +42 -0
- package/dist/cli/npm/publish/release-jobs.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-lock.d.ts +143 -0
- package/dist/cli/npm/publish/release-lock.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-lock.js +371 -0
- package/dist/cli/npm/publish/release-lock.js.map +1 -0
- package/dist/cli/npm/publish/release-phases.d.ts +93 -0
- package/dist/cli/npm/publish/release-phases.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-phases.js +175 -0
- package/dist/cli/npm/publish/release-phases.js.map +1 -0
- package/dist/cli/npm/publish/release-plan.d.ts +65 -0
- package/dist/cli/npm/publish/release-plan.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-plan.js +178 -0
- package/dist/cli/npm/publish/release-plan.js.map +1 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.d.ts +16 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.js +71 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-publish.job.impl.d.ts +18 -0
- package/dist/cli/npm/publish/release-publish.job.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-publish.job.impl.js +295 -0
- package/dist/cli/npm/publish/release-publish.job.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-workspace.d.ts +95 -0
- package/dist/cli/npm/publish/release-workspace.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-workspace.js +243 -0
- package/dist/cli/npm/publish/release-workspace.js.map +1 -0
- package/dist/cli/npm/publish/sensitive-temp.d.ts +90 -0
- package/dist/cli/npm/publish/sensitive-temp.d.ts.map +1 -0
- package/dist/cli/npm/publish/sensitive-temp.js +351 -0
- package/dist/cli/npm/publish/sensitive-temp.js.map +1 -0
- package/dist/cli/npm/publish/source-snapshot.d.ts +91 -0
- package/dist/cli/npm/publish/source-snapshot.d.ts.map +1 -0
- package/dist/cli/npm/publish/source-snapshot.js +245 -0
- package/dist/cli/npm/publish/source-snapshot.js.map +1 -0
- package/dist/cli/npm/publish/types.d.ts +69 -0
- package/dist/cli/npm/publish/types.d.ts.map +1 -0
- package/dist/cli/npm/publish/types.js +2 -0
- package/dist/cli/npm/publish/types.js.map +1 -0
- package/dist/cli/npm/publish/workspace-discovery.d.ts +48 -0
- package/dist/cli/npm/publish/workspace-discovery.d.ts.map +1 -0
- package/dist/cli/npm/publish/workspace-discovery.js +313 -0
- package/dist/cli/npm/publish/workspace-discovery.js.map +1 -0
- package/dist/cli/npm/put-attested-packument.d.ts +96 -0
- package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
- package/dist/cli/npm/put-attested-packument.js +240 -0
- package/dist/cli/npm/put-attested-packument.js.map +1 -0
- package/dist/cli/npm/reconcile-latest.d.ts +55 -0
- package/dist/cli/npm/reconcile-latest.d.ts.map +1 -0
- package/dist/cli/npm/reconcile-latest.js +59 -0
- package/dist/cli/npm/reconcile-latest.js.map +1 -0
- package/dist/cli/observability/blind-spots.d.ts +10 -0
- package/dist/cli/observability/blind-spots.d.ts.map +1 -0
- package/dist/cli/observability/blind-spots.js +19 -0
- package/dist/cli/observability/blind-spots.js.map +1 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts +6 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js +75 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js.map +1 -0
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +42 -21
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +3 -3
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +3 -2
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js +14 -14
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +25 -17
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +2 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js +30 -23
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -1
- package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js +1 -1
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -1
- package/dist/cli/plugin.d.ts +3 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +45 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts +38 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js +43 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts +117 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js +678 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js.map +1 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +37 -23
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +7 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +2 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +100 -25
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -1
- package/dist/cli/release/cli/latest-manifest.d.ts +148 -0
- package/dist/cli/release/cli/latest-manifest.d.ts.map +1 -0
- package/dist/cli/release/cli/latest-manifest.js +152 -0
- package/dist/cli/release/cli/latest-manifest.js.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js +49 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts +16 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js +52 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js.map +1 -0
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +2 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js +21 -15
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -1
- package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js +1 -1
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -1
- package/dist/cli/run/deploy-smoke.d.ts +57 -0
- package/dist/cli/run/deploy-smoke.d.ts.map +1 -0
- package/dist/cli/run/deploy-smoke.js +251 -0
- package/dist/cli/run/deploy-smoke.js.map +1 -0
- package/dist/cli/run/deployment-marker.d.ts +74 -0
- package/dist/cli/run/deployment-marker.d.ts.map +1 -0
- package/dist/cli/run/deployment-marker.js +237 -0
- package/dist/cli/run/deployment-marker.js.map +1 -0
- package/dist/cli/run/deployment-provider.d.ts +56 -0
- package/dist/cli/run/deployment-provider.d.ts.map +1 -0
- package/dist/cli/run/deployment-provider.js +295 -0
- package/dist/cli/run/deployment-provider.js.map +1 -0
- package/dist/cli/run/deployment-run-ledger.d.ts +72 -0
- package/dist/cli/run/deployment-run-ledger.d.ts.map +1 -0
- package/dist/cli/run/deployment-run-ledger.js +164 -0
- package/dist/cli/run/deployment-run-ledger.js.map +1 -0
- package/dist/cli/run/git-source-identity.d.ts +21 -0
- package/dist/cli/run/git-source-identity.d.ts.map +1 -0
- package/dist/cli/run/git-source-identity.js +73 -0
- package/dist/cli/run/git-source-identity.js.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts +403 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.js +589 -0
- package/dist/cli/run/immutable-deployment-release.program.js.map +1 -0
- package/dist/cli/run/immutable-deployment-workspace.d.ts +39 -0
- package/dist/cli/run/immutable-deployment-workspace.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-workspace.js +525 -0
- package/dist/cli/run/immutable-deployment-workspace.js.map +1 -0
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +80 -23
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +50 -8
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +46 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js +464 -226
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
- package/dist/cli/shared/build-workspace-artifacts.d.ts +147 -0
- package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
- package/dist/cli/shared/build-workspace-artifacts.js +2013 -0
- package/dist/cli/shared/build-workspace-artifacts.js.map +1 -0
- package/dist/cli/shared/credential-source.d.ts +3 -0
- package/dist/cli/shared/credential-source.d.ts.map +1 -0
- package/dist/cli/shared/credential-source.js +19 -0
- package/dist/cli/shared/credential-source.js.map +1 -0
- package/dist/cli/shared/discover-deployments.d.ts +46 -5
- package/dist/cli/shared/discover-deployments.d.ts.map +1 -1
- package/dist/cli/shared/discover-deployments.js +167 -41
- package/dist/cli/shared/discover-deployments.js.map +1 -1
- package/dist/cli/shared/infer-apex-zone.d.ts +18 -0
- package/dist/cli/shared/infer-apex-zone.d.ts.map +1 -0
- package/dist/cli/shared/infer-apex-zone.js +75 -0
- package/dist/cli/shared/infer-apex-zone.js.map +1 -0
- package/dist/cli/shared/option-strings.d.ts +2 -0
- package/dist/cli/shared/option-strings.d.ts.map +1 -0
- package/dist/cli/shared/option-strings.js +13 -0
- package/dist/cli/shared/option-strings.js.map +1 -0
- package/dist/cli/shared/repository-collection.d.ts +42 -0
- package/dist/cli/shared/repository-collection.d.ts.map +1 -0
- package/dist/cli/shared/repository-collection.js +111 -0
- package/dist/cli/shared/repository-collection.js.map +1 -0
- package/dist/cli/shared/runtime-execution.d.ts +78 -0
- package/dist/cli/shared/runtime-execution.d.ts.map +1 -0
- package/dist/cli/shared/runtime-execution.js +182 -0
- package/dist/cli/shared/runtime-execution.js.map +1 -0
- package/dist/cli/shared/workspace-artifact-lock.d.ts +17 -0
- package/dist/cli/shared/workspace-artifact-lock.d.ts.map +1 -0
- package/dist/cli/shared/workspace-artifact-lock.js +37 -0
- package/dist/cli/shared/workspace-artifact-lock.js.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts +238 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.js +410 -0
- package/dist/cli/workers/doks-worker-runtime.js.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts +28 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js +28 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.js +75 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts +31 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js +32 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.js +67 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts +48 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js +60 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.js +74 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.js +12 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.js.map +1 -0
- package/dist/config-loader.d.ts +60 -13
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/config-loader.js +371 -104
- package/dist/config-loader.js.map +1 -1
- package/dist/declared-provider.d.ts +27 -0
- package/dist/declared-provider.d.ts.map +1 -0
- package/dist/declared-provider.js +46 -0
- package/dist/declared-provider.js.map +1 -0
- package/dist/deployment-collisions.d.ts +55 -0
- package/dist/deployment-collisions.d.ts.map +1 -0
- package/dist/deployment-collisions.js +70 -0
- package/dist/deployment-collisions.js.map +1 -0
- package/dist/deployment-environment.d.ts +57 -0
- package/dist/deployment-environment.d.ts.map +1 -0
- package/dist/deployment-environment.js +198 -0
- package/dist/deployment-environment.js.map +1 -0
- package/dist/deployment-settings.d.ts +27 -0
- package/dist/deployment-settings.d.ts.map +1 -0
- package/dist/deployment-settings.js +52 -0
- package/dist/deployment-settings.js.map +1 -0
- package/dist/deployment.config.descriptor.d.ts +59 -0
- package/dist/deployment.config.descriptor.d.ts.map +1 -0
- package/dist/deployment.config.descriptor.js +54 -0
- package/dist/deployment.config.descriptor.js.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts +29 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js +35 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts +12 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js +12 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js.map +1 -0
- package/dist/index.d.ts +11 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/infra-deploy.plugin.d.ts +2 -2
- package/dist/infra-deploy.plugin.d.ts.map +1 -1
- package/dist/infra-deploy.plugin.js +63 -20
- package/dist/infra-deploy.plugin.js.map +1 -1
- package/dist/logger.d.ts +10 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +11 -0
- package/dist/logger.js.map +1 -0
- package/dist/migrations/migrate-workspace.d.ts +21 -0
- package/dist/migrations/migrate-workspace.d.ts.map +1 -0
- package/dist/migrations/migrate-workspace.js +83 -0
- package/dist/migrations/migrate-workspace.js.map +1 -0
- package/dist/migrations/run-migrate.d.ts +15 -0
- package/dist/migrations/run-migrate.d.ts.map +1 -0
- package/dist/migrations/run-migrate.js +314 -0
- package/dist/migrations/run-migrate.js.map +1 -0
- package/dist/regenerate.d.ts +52 -30
- package/dist/regenerate.d.ts.map +1 -1
- package/dist/regenerate.js +176 -148
- package/dist/regenerate.js.map +1 -1
- package/dist/runtime-execution.d.ts +5 -0
- package/dist/runtime-execution.d.ts.map +1 -0
- package/dist/runtime-execution.js +12 -0
- package/dist/runtime-execution.js.map +1 -0
- package/dist/schemas/migrate.d.ts +110 -0
- package/dist/schemas/migrate.d.ts.map +1 -0
- package/dist/schemas/migrate.js +55 -0
- package/dist/schemas/migrate.js.map +1 -0
- package/dist/schemas/proof-registry.d.ts +25 -0
- package/dist/schemas/proof-registry.d.ts.map +1 -0
- package/dist/schemas/proof-registry.js +24 -0
- package/dist/schemas/proof-registry.js.map +1 -0
- package/dist/schemas/release-grants.d.ts +7 -0
- package/dist/schemas/release-grants.d.ts.map +1 -0
- package/dist/schemas/release-grants.js +6 -0
- package/dist/schemas/release-grants.js.map +1 -0
- package/dist/schemas/release-jobs.d.ts +444 -0
- package/dist/schemas/release-jobs.d.ts.map +1 -0
- package/dist/schemas/release-jobs.js +204 -0
- package/dist/schemas/release-jobs.js.map +1 -0
- package/dist/schemas/service-release.d.ts +15 -0
- package/dist/schemas/service-release.d.ts.map +1 -0
- package/dist/schemas/service-release.js +13 -0
- package/dist/schemas/service-release.js.map +1 -0
- package/dist/schemas/worker-logs.d.ts +42 -0
- package/dist/schemas/worker-logs.d.ts.map +1 -0
- package/dist/schemas/worker-logs.js +29 -0
- package/dist/schemas/worker-logs.js.map +1 -0
- package/dist/storage/deployment-runs.schema.d.ts +199 -0
- package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
- package/dist/storage/deployment-runs.schema.js +61 -0
- package/dist/storage/deployment-runs.schema.js.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
- package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
- package/package.json +110 -42
- package/SPEC.md +0 -181
- package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
- package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
- package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
- package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
- package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
- package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
- package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
- package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
- package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
- package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
- package/src/cli/infra.cli-group.descriptor.ts +0 -11
- package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
- package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
- package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
- package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
- package/src/cli/logs/stream-worker-tail.ts +0 -202
- package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
- package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
- package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
- package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
- package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
- package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
- package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
- package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
- package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
- package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
- package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
- package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
- package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
- package/src/cli/shared/discover-deployments.ts +0 -127
- package/src/config-loader.ts +0 -179
- package/src/index.ts +0 -11
- package/src/infra-deploy.plugin.ts +0 -83
- package/src/regenerate.ts +0 -230
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry identity and credentials: registry URL normalization, publish and
|
|
3
|
+
* read token selection, session JWT renewal rules, and operator guidance for
|
|
4
|
+
* auth failures. Credential values are resolved here and never printed.
|
|
5
|
+
*/
|
|
6
|
+
import { type ValueFreeFailure, type RuntimeRef, type VibesRuntime } from "@vibesdotdev/kernel";
|
|
7
|
+
import type { PackageJson } from "./types.ts";
|
|
8
|
+
/** The public npm registry. */
|
|
9
|
+
export declare const PUBLIC_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
10
|
+
/** The Registry identity selected by the handed runtime's infra.services configuration. */
|
|
11
|
+
export declare function registryServiceOrigin(runtime: RuntimeRef): Promise<string>;
|
|
12
|
+
/** Secret key of a public npm publish token. */
|
|
13
|
+
export declare const PUBLIC_NPM_TOKEN_KEY = "NPM_TOKEN";
|
|
14
|
+
/** Secret key of a static Vibes Registry token. */
|
|
15
|
+
export declare const VIBES_NPM_TOKEN_KEY = "VIBES_NPM_TOKEN";
|
|
16
|
+
/** A registry URL without surrounding whitespace or trailing slashes. */
|
|
17
|
+
export declare function normalizeRegistryUrl(registry: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Public npm is treated as an install-time passthrough during release consumer
|
|
20
|
+
* proof: planned external roots that resolve there are still npm-packed and
|
|
21
|
+
* sealed, but their transitive public graph is not pre-packed (that walk is
|
|
22
|
+
* thousands of network packs and ETIMEDOUTs on large first-party packages).
|
|
23
|
+
* First-party / private registries keep a fully sealed transitive graph.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isPublicNpmProofRegistry(registry: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The registry a package publishes to: the override, else `publishConfig.registry`.
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolvePublishRegistry(pkg: PackageJson, registryOverride?: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* The default publish token key for one registry; multiple registries need `--token-key`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function defaultTokenKeyForRegistries(registries: string[], registryOrigin: string): string;
|
|
34
|
+
type RegistryReadTokenResolution = {
|
|
35
|
+
value?: string;
|
|
36
|
+
source?: string;
|
|
37
|
+
environment: string;
|
|
38
|
+
tier: string;
|
|
39
|
+
};
|
|
40
|
+
type RegistrySessionJwtClaims = {
|
|
41
|
+
expiresAtMs: number;
|
|
42
|
+
subject: string;
|
|
43
|
+
issuer: string;
|
|
44
|
+
audience: string[];
|
|
45
|
+
};
|
|
46
|
+
/** A session JWT closer than this to expiry is renewed before use. */
|
|
47
|
+
export declare const REGISTRY_SESSION_JWT_MIN_LIFETIME_MS: number;
|
|
48
|
+
export declare function registrySessionJwtClaims(token: string,
|
|
49
|
+
/** The runtime whose logger reports a three-part token that does not decode. */
|
|
50
|
+
runtime: RuntimeRef): RegistrySessionJwtClaims | undefined;
|
|
51
|
+
/** True when a renewed JWT carries the same session authority. */
|
|
52
|
+
export declare function registrySessionJwtContinuityMatches(current: RegistrySessionJwtClaims, renewed: RegistrySessionJwtClaims): boolean;
|
|
53
|
+
/** The error for a read credential that could not be renewed. */
|
|
54
|
+
export declare function registryReadCredentialRenewalError(registry: string, reason: string, failure?: ValueFreeFailure): Error;
|
|
55
|
+
/** The release's Registry read credential and its optional session renewer. */
|
|
56
|
+
export type RegistryReleaseReadCredential = {
|
|
57
|
+
tokenKey?: string;
|
|
58
|
+
resolution?: RegistryReadTokenResolution;
|
|
59
|
+
refreshSessionJwt?: () => Promise<string | null | undefined>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The Registry read credential for a release: an explicit token key, an explicit
|
|
63
|
+
* JWT, or the signed-in session (renewable).
|
|
64
|
+
*/
|
|
65
|
+
export declare function resolveRegistryReleaseReadCredential(options: {
|
|
66
|
+
/** The runtime whose logger reports a credential that is not a decodable session JWT. */
|
|
67
|
+
runtime: RuntimeRef;
|
|
68
|
+
registries: string[];
|
|
69
|
+
explicitTokenKey?: string;
|
|
70
|
+
registryJwt?: string;
|
|
71
|
+
resolveSessionJwt: () => Promise<string | null | undefined>;
|
|
72
|
+
resolveFreshSessionJwt: () => Promise<string | null | undefined>;
|
|
73
|
+
resolveNamedToken: (key: string) => Promise<RegistryReadTokenResolution>;
|
|
74
|
+
}): Promise<RegistryReleaseReadCredential>;
|
|
75
|
+
/**
|
|
76
|
+
* The publish token key: explicit, the dry-run default, or the registry default.
|
|
77
|
+
*/
|
|
78
|
+
export declare function resolvePublishTokenKey(options: {
|
|
79
|
+
registryOrigin: string;
|
|
80
|
+
registries: string[];
|
|
81
|
+
explicitTokenKey?: string;
|
|
82
|
+
dryRun: boolean;
|
|
83
|
+
}): string;
|
|
84
|
+
export { VIBES_REGISTRY_READ_TOKEN_KEY } from '@vibesdotdev/registry/publish-authentication';
|
|
85
|
+
/** Read-token keys present in `env` that a Registry write ignores. */
|
|
86
|
+
export declare function ignoredRegistryWriteCredentialKeys(env: Record<string, string | undefined>): string[];
|
|
87
|
+
/** Operator note that present read tokens do not authorize the publish. */
|
|
88
|
+
export declare function formatIgnoredRegistryWriteCredentials(keys: readonly string[]): string;
|
|
89
|
+
/**
|
|
90
|
+
* Guidance when npm output shows the Vibes Registry rejected the publish credential.
|
|
91
|
+
*/
|
|
92
|
+
export declare function formatVibesRegistryPublishAuthFailure(npmOutputText: string): string | undefined;
|
|
93
|
+
/** Where to get or store a publish token for the target registries. */
|
|
94
|
+
export declare function publishTokenSetupHint(tokenKey: string, registries: string[], registryOrigin: string): string;
|
|
95
|
+
/**
|
|
96
|
+
* A token from the runtime's secrets stores, with its source and tier. The host
|
|
97
|
+
* environment is never a credential source (D3).
|
|
98
|
+
*/
|
|
99
|
+
export declare function resolveTokenFromSecrets(runtime: VibesRuntime, key: string, options: {
|
|
100
|
+
environment?: string;
|
|
101
|
+
backend?: string;
|
|
102
|
+
}): Promise<{
|
|
103
|
+
value?: string;
|
|
104
|
+
source?: string;
|
|
105
|
+
environment: string;
|
|
106
|
+
tier: string;
|
|
107
|
+
}>;
|
|
108
|
+
//# sourceMappingURL=registry-credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-credentials.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/registry-credentials.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAA+B,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAgB7H,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,+BAA+B;AAC/B,eAAO,MAAM,mBAAmB,+BAA+B,CAAC;AAEhE,2FAA2F;AAC3F,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAEhF;AACD,gDAAgD;AAChD,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAChD,mDAAmD;AACnD,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD,yEAAyE;AACzE,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAIlE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,WAAW,EAChB,gBAAgB,CAAC,EAAE,MAAM,GACxB,MAAM,CAaR;AAQD;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAUjG;AAED,KAAK,2BAA2B,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;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
|
+
* read token selection, session JWT renewal rules, and operator guidance for
|
|
4
|
+
* auth failures. Credential values are resolved here and never printed.
|
|
5
|
+
*/
|
|
6
|
+
import { settleNow, valueFreeFailure } from "@vibesdotdev/kernel";
|
|
7
|
+
import { serviceOrigin } from '@vibesdotdev/infra-core/service';
|
|
8
|
+
import { VIBES_REGISTRY_READ_TOKEN_KEY } from '@vibesdotdev/registry/publish-authentication';
|
|
9
|
+
import { JsonObjectSchema, } from "@vibesdotdev/kernel/schemas/json";
|
|
10
|
+
import { isGenericSecretsStoreDescriptor, resolveSecretsEnvironment, } from "@vibesdotdev/secrets";
|
|
11
|
+
import { z } from "zod/v4";
|
|
12
|
+
import { infraDeployLogger } from "../../../logger.js";
|
|
13
|
+
import { readString } from "./command-options.js";
|
|
14
|
+
/** The public npm registry. */
|
|
15
|
+
export const PUBLIC_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
16
|
+
/** The Registry identity selected by the handed runtime's infra.services configuration. */
|
|
17
|
+
export async function registryServiceOrigin(runtime) {
|
|
18
|
+
return normalizeRegistryUrl(await serviceOrigin(runtime, 'registry'));
|
|
19
|
+
}
|
|
20
|
+
/** Secret key of a public npm publish token. */
|
|
21
|
+
export const PUBLIC_NPM_TOKEN_KEY = "NPM_TOKEN";
|
|
22
|
+
/** Secret key of a static Vibes Registry token. */
|
|
23
|
+
export const VIBES_NPM_TOKEN_KEY = "VIBES_NPM_TOKEN";
|
|
24
|
+
/** A registry URL without surrounding whitespace or trailing slashes. */
|
|
25
|
+
export function normalizeRegistryUrl(registry) {
|
|
26
|
+
return registry.trim().replace(/\/+$/, "");
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Public npm is treated as an install-time passthrough during release consumer
|
|
30
|
+
* proof: planned external roots that resolve there are still npm-packed and
|
|
31
|
+
* sealed, but their transitive public graph is not pre-packed (that walk is
|
|
32
|
+
* thousands of network packs and ETIMEDOUTs on large first-party packages).
|
|
33
|
+
* First-party / private registries keep a fully sealed transitive graph.
|
|
34
|
+
*/
|
|
35
|
+
export function isPublicNpmProofRegistry(registry) {
|
|
36
|
+
return (normalizeRegistryUrl(registry) === normalizeRegistryUrl(PUBLIC_NPM_REGISTRY));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The registry a package publishes to: the override, else `publishConfig.registry`.
|
|
40
|
+
*/
|
|
41
|
+
export function resolvePublishRegistry(pkg, registryOverride) {
|
|
42
|
+
const registry = readString(registryOverride) ?? readString(pkg.publishConfig?.registry);
|
|
43
|
+
if (registry)
|
|
44
|
+
return registry;
|
|
45
|
+
const label = pkg.name && pkg.version
|
|
46
|
+
? `${pkg.name}@${pkg.version}`
|
|
47
|
+
: (pkg.name ?? "package");
|
|
48
|
+
throw new Error(`${label} has no publishConfig.registry and no --registry override. ` +
|
|
49
|
+
"Set publishConfig.registry to the intended registry or pass --registry explicitly.");
|
|
50
|
+
}
|
|
51
|
+
function defaultTokenKeyForRegistry(registry, registryOrigin) {
|
|
52
|
+
return normalizeRegistryUrl(registry) === normalizeRegistryUrl(registryOrigin)
|
|
53
|
+
? VIBES_NPM_TOKEN_KEY
|
|
54
|
+
: PUBLIC_NPM_TOKEN_KEY;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The default publish token key for one registry; multiple registries need `--token-key`.
|
|
58
|
+
*/
|
|
59
|
+
export function defaultTokenKeyForRegistries(registries, registryOrigin) {
|
|
60
|
+
const unique = [
|
|
61
|
+
...new Set(registries.map((registry) => normalizeRegistryUrl(registry))),
|
|
62
|
+
];
|
|
63
|
+
if (unique.length === 0)
|
|
64
|
+
return PUBLIC_NPM_TOKEN_KEY;
|
|
65
|
+
if (unique.length === 1)
|
|
66
|
+
return defaultTokenKeyForRegistry(unique[0], registryOrigin);
|
|
67
|
+
throw new Error(`Publish targets span multiple registries (${unique.join(", ")}). ` +
|
|
68
|
+
"Publish one registry per run or pass --token-key explicitly.");
|
|
69
|
+
}
|
|
70
|
+
/** A session JWT closer than this to expiry is renewed before use. */
|
|
71
|
+
export const REGISTRY_SESSION_JWT_MIN_LIFETIME_MS = 2 * 60 * 1000;
|
|
72
|
+
/**
|
|
73
|
+
* Expiry, subject, issuer and audience of a session JWT (unverified), if it is one.
|
|
74
|
+
*/
|
|
75
|
+
/** String audience members, including a single string. Other members stay out. */
|
|
76
|
+
function sessionJwtAudience(value) {
|
|
77
|
+
const text = z.string().safeParse(value);
|
|
78
|
+
if (text.success)
|
|
79
|
+
return [text.data];
|
|
80
|
+
if (!Array.isArray(value))
|
|
81
|
+
return [];
|
|
82
|
+
const audience = [];
|
|
83
|
+
for (const entry of value) {
|
|
84
|
+
const item = z.string().safeParse(entry);
|
|
85
|
+
if (item.success)
|
|
86
|
+
audience.push(item.data);
|
|
87
|
+
}
|
|
88
|
+
return audience;
|
|
89
|
+
}
|
|
90
|
+
export function registrySessionJwtClaims(token,
|
|
91
|
+
/** The runtime whose logger reports a three-part token that does not decode. */
|
|
92
|
+
runtime) {
|
|
93
|
+
const parts = token.split(".");
|
|
94
|
+
if (parts.length !== 3)
|
|
95
|
+
return undefined;
|
|
96
|
+
const decoded = settleNow(() => JSON.parse(Buffer.from(parts[1] ?? "", "base64url").toString("utf8")));
|
|
97
|
+
if (!decoded.ok) {
|
|
98
|
+
// Not a decodable session JWT: report the value-free class and treat it
|
|
99
|
+
// as one without claims. The decode text can echo credential bytes.
|
|
100
|
+
infraDeployLogger(runtime).warn("Registry credential is not a decodable session JWT", {
|
|
101
|
+
reason: valueFreeFailure(decoded.cause).name,
|
|
102
|
+
});
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
const claims = JsonObjectSchema.safeParse(decoded.value);
|
|
106
|
+
if (!claims.success)
|
|
107
|
+
return undefined;
|
|
108
|
+
const exp = z.number().finite().safeParse(claims.data.exp);
|
|
109
|
+
const sub = z.string().safeParse(claims.data.sub);
|
|
110
|
+
const iss = z.string().safeParse(claims.data.iss);
|
|
111
|
+
const audience = sessionJwtAudience(claims.data.aud);
|
|
112
|
+
if (!exp.success ||
|
|
113
|
+
!sub.success ||
|
|
114
|
+
sub.data.trim().length === 0 ||
|
|
115
|
+
!iss.success ||
|
|
116
|
+
iss.data.trim().length === 0 ||
|
|
117
|
+
audience.length === 0) {
|
|
118
|
+
return undefined;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
expiresAtMs: exp.data * 1000,
|
|
122
|
+
subject: sub.data,
|
|
123
|
+
issuer: iss.data,
|
|
124
|
+
audience: [...new Set(audience)].sort(),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/** True when a renewed JWT carries the same session authority. */
|
|
128
|
+
export function registrySessionJwtContinuityMatches(current, renewed) {
|
|
129
|
+
return (current.subject === renewed.subject &&
|
|
130
|
+
current.issuer === renewed.issuer &&
|
|
131
|
+
current.audience.length === renewed.audience.length &&
|
|
132
|
+
current.audience.every((value, index) => value === renewed.audience[index]));
|
|
133
|
+
}
|
|
134
|
+
/** The error for a read credential that could not be renewed. */
|
|
135
|
+
export function registryReadCredentialRenewalError(registry, reason, failure) {
|
|
136
|
+
const options = {};
|
|
137
|
+
if (failure !== undefined)
|
|
138
|
+
options.cause = failure;
|
|
139
|
+
return new Error(`Release consumer proof read credential for ${registry} may be expired or concealed as a Registry 404, and signed-session renewal ${reason}. ` +
|
|
140
|
+
`Sign in again or pass --token-key ${VIBES_NPM_TOKEN_KEY} for a static Registry read credential.`, options);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* The Registry read credential for a release: an explicit token key, an explicit
|
|
144
|
+
* JWT, or the signed-in session (renewable).
|
|
145
|
+
*/
|
|
146
|
+
export async function resolveRegistryReleaseReadCredential(options) {
|
|
147
|
+
const registryOrigin = await registryServiceOrigin(options.runtime);
|
|
148
|
+
const explicitTokenKey = readString(options.explicitTokenKey);
|
|
149
|
+
const uniqueRegistries = [
|
|
150
|
+
...new Set(options.registries.map((registry) => normalizeRegistryUrl(registry))),
|
|
151
|
+
];
|
|
152
|
+
if (!explicitTokenKey &&
|
|
153
|
+
uniqueRegistries.length === 1 &&
|
|
154
|
+
uniqueRegistries[0] === registryOrigin) {
|
|
155
|
+
const namedRead = await options.resolveNamedToken(VIBES_REGISTRY_READ_TOKEN_KEY);
|
|
156
|
+
if (readString(namedRead.value)) {
|
|
157
|
+
return { tokenKey: VIBES_REGISTRY_READ_TOKEN_KEY, resolution: namedRead };
|
|
158
|
+
}
|
|
159
|
+
const registryJwt = readString(options.registryJwt);
|
|
160
|
+
if (registryJwt) {
|
|
161
|
+
const credential = {
|
|
162
|
+
resolution: {
|
|
163
|
+
value: registryJwt,
|
|
164
|
+
source: "runtime-credential",
|
|
165
|
+
environment: "runtime",
|
|
166
|
+
tier: "runtime",
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
// Only a decodable session JWT is renewable.
|
|
170
|
+
if (registrySessionJwtClaims(registryJwt, options.runtime)) {
|
|
171
|
+
credential.refreshSessionJwt = options.resolveFreshSessionJwt;
|
|
172
|
+
}
|
|
173
|
+
return credential;
|
|
174
|
+
}
|
|
175
|
+
const sessionJwt = readString(await options.resolveSessionJwt());
|
|
176
|
+
if (sessionJwt?.split(".").length === 3 && sessionJwt.length > 20) {
|
|
177
|
+
const credential = {
|
|
178
|
+
resolution: {
|
|
179
|
+
value: sessionJwt,
|
|
180
|
+
source: "signed-session",
|
|
181
|
+
environment: "session",
|
|
182
|
+
tier: "session",
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
// Only a decodable session JWT is renewable.
|
|
186
|
+
if (registrySessionJwtClaims(sessionJwt, options.runtime)) {
|
|
187
|
+
credential.refreshSessionJwt = options.resolveFreshSessionJwt;
|
|
188
|
+
}
|
|
189
|
+
return credential;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const tokenKey = explicitTokenKey ?? defaultTokenKeyForRegistries(options.registries, registryOrigin);
|
|
193
|
+
return { tokenKey, resolution: await options.resolveNamedToken(tokenKey) };
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* The publish token key: explicit, the dry-run default, or the registry default.
|
|
197
|
+
*/
|
|
198
|
+
export function resolvePublishTokenKey(options) {
|
|
199
|
+
const explicit = readString(options.explicitTokenKey);
|
|
200
|
+
if (explicit)
|
|
201
|
+
return explicit;
|
|
202
|
+
if (options.dryRun)
|
|
203
|
+
return PUBLIC_NPM_TOKEN_KEY;
|
|
204
|
+
return defaultTokenKeyForRegistries(options.registries, options.registryOrigin);
|
|
205
|
+
}
|
|
206
|
+
export { VIBES_REGISTRY_READ_TOKEN_KEY } from '@vibesdotdev/registry/publish-authentication';
|
|
207
|
+
/** Read-token keys present in `env` that a Registry write ignores. */
|
|
208
|
+
export function ignoredRegistryWriteCredentialKeys(env) {
|
|
209
|
+
const value = z.string().min(1).safeParse(env[VIBES_REGISTRY_READ_TOKEN_KEY]);
|
|
210
|
+
return value.success ? [VIBES_REGISTRY_READ_TOKEN_KEY] : [];
|
|
211
|
+
}
|
|
212
|
+
/** Operator note that present read tokens do not authorize the publish. */
|
|
213
|
+
export function formatIgnoredRegistryWriteCredentials(keys) {
|
|
214
|
+
if (keys.length === 0)
|
|
215
|
+
return "";
|
|
216
|
+
const listed = keys.join(", ");
|
|
217
|
+
const verb = keys.length === 1 ? "is" : "are";
|
|
218
|
+
const pronoun = keys.length === 1 ? "it" : "them";
|
|
219
|
+
return (`${listed} ${verb} present but this write does not consume ${pronoun}. ` +
|
|
220
|
+
"Registry publish authenticates with the signed-in session " +
|
|
221
|
+
"and a one-use lease. VIBES_REGISTRY_TOKEN is the install/read token. Check `vibes auth status`.");
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Guidance when npm output shows the Vibes Registry rejected the publish credential.
|
|
225
|
+
*/
|
|
226
|
+
export function formatVibesRegistryPublishAuthFailure(npmOutputText) {
|
|
227
|
+
if (!/(?:E401|401 Unauthorized|unable to authenticate|need:\s*Bearer)/i.test(npmOutputText)) {
|
|
228
|
+
return undefined;
|
|
229
|
+
}
|
|
230
|
+
return ("Registry rejected the publish credential. Do not run `npm login`. " +
|
|
231
|
+
"Check `vibes auth status`, then retry `vibes registry publish` or `vibes infra npm publish` " +
|
|
232
|
+
"without injecting VIBES_REGISTRY_TOKEN.");
|
|
233
|
+
}
|
|
234
|
+
/** Where to get or store a publish token for the target registries. */
|
|
235
|
+
export function publishTokenSetupHint(tokenKey, registries, registryOrigin) {
|
|
236
|
+
const unique = [
|
|
237
|
+
...new Set(registries.map((registry) => normalizeRegistryUrl(registry))),
|
|
238
|
+
];
|
|
239
|
+
if (unique.length === 1 && unique[0] === normalizeRegistryUrl(registryOrigin)) {
|
|
240
|
+
return `Store the ${normalizeRegistryUrl(registryOrigin).replace(/^https?:\/\//, "")} publish token as ${tokenKey} with \`vibes secrets set ${tokenKey}\`.`;
|
|
241
|
+
}
|
|
242
|
+
if (unique.length === 1 && unique[0] === PUBLIC_NPM_REGISTRY) {
|
|
243
|
+
return "Create a publish token at https://www.npmjs.com/settings/tokens";
|
|
244
|
+
}
|
|
245
|
+
return `Store a publish token for ${unique.join(", ")} as ${tokenKey} with \`vibes secrets set ${tokenKey}\`.`;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* A token from the runtime's secrets stores, with its source and tier. The host
|
|
249
|
+
* environment is never a credential source (D3).
|
|
250
|
+
*/
|
|
251
|
+
export async function resolveTokenFromSecrets(runtime, key, options) {
|
|
252
|
+
const environment = await resolveSecretsEnvironment(runtime, null, options.environment);
|
|
253
|
+
if (!runtime.hasKind("secrets/store")) {
|
|
254
|
+
return { environment: environment.name, tier: environment.tier };
|
|
255
|
+
}
|
|
256
|
+
const descriptors = runtime
|
|
257
|
+
.query("secrets/store")
|
|
258
|
+
.descriptors()
|
|
259
|
+
.filter((descriptor) => {
|
|
260
|
+
if (options.backend)
|
|
261
|
+
return descriptor.id === options.backend;
|
|
262
|
+
if (!isGenericSecretsStoreDescriptor(descriptor))
|
|
263
|
+
return false;
|
|
264
|
+
if (descriptor.backend === "encrypted-local")
|
|
265
|
+
return true;
|
|
266
|
+
if (descriptor.tiers.length === 0)
|
|
267
|
+
return true;
|
|
268
|
+
return descriptor.tiers.includes(environment.tier);
|
|
269
|
+
})
|
|
270
|
+
.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
|
|
271
|
+
for (const descriptor of descriptors) {
|
|
272
|
+
const store = await runtime
|
|
273
|
+
.query("secrets/store")
|
|
274
|
+
.withId(descriptor.id)
|
|
275
|
+
.resolve();
|
|
276
|
+
if (!store)
|
|
277
|
+
continue;
|
|
278
|
+
const value = await store.get(environment.name, key);
|
|
279
|
+
if (value && value.length > 0) {
|
|
280
|
+
return {
|
|
281
|
+
value,
|
|
282
|
+
source: descriptor.id,
|
|
283
|
+
environment: environment.name,
|
|
284
|
+
tier: environment.tier,
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return { environment: environment.name, tier: environment.tier };
|
|
289
|
+
}
|
|
290
|
+
//# sourceMappingURL=registry-credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-credentials.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/registry-credentials.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAA6D,MAAM,qBAAqB,CAAC;AAC7H,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EACL,gBAAgB,GAEjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,GAG1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,+BAA+B;AAC/B,MAAM,CAA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ts";
|
|
3
|
+
import type { RegistryPublishedArtifactIdentity } from "@vibesdotdev/registry";
|
|
4
|
+
import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
|
|
5
|
+
/**
|
|
6
|
+
* The integrity, repository, gitHead and tarball of an `npm view --json` record;
|
|
7
|
+
* only a full commit hash counts as a gitHead.
|
|
8
|
+
*/
|
|
9
|
+
export declare function parsePublishedArtifactIdentity(name: string, version: string, value: JsonValue): RegistryPublishedArtifactIdentity;
|
|
10
|
+
/**
|
|
11
|
+
* The published identity of `name@version`, or null when the Registry does not have it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function npmPublishedArtifactIdentity(options: {
|
|
14
|
+
name: string;
|
|
15
|
+
version: string;
|
|
16
|
+
registry: string;
|
|
17
|
+
scope?: string;
|
|
18
|
+
cwd: string;
|
|
19
|
+
env: Record<string, string>;
|
|
20
|
+
execution: RuntimeExecution;
|
|
21
|
+
/** The runtime child environments are composed from. */
|
|
22
|
+
runtime: ChildEnvRuntime;
|
|
23
|
+
redactValues?: readonly string[];
|
|
24
|
+
retryConcealedNotFound?: () => Promise<boolean>;
|
|
25
|
+
}): Promise<RegistryPublishedArtifactIdentity | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Every version the Registry publishes for `name`, or null when the package is
|
|
28
|
+
* absent. A rejected read credential is blindness and throws; a concealed 404
|
|
29
|
+
* retries once when the caller can renew its credential.
|
|
30
|
+
*/
|
|
31
|
+
export declare function npmListPublishedVersions(options: {
|
|
32
|
+
name: string;
|
|
33
|
+
registry: string;
|
|
34
|
+
cwd: string;
|
|
35
|
+
env: Record<string, string>;
|
|
36
|
+
execution: RuntimeExecution;
|
|
37
|
+
/** The runtime child environments are composed from. */
|
|
38
|
+
runtime: ChildEnvRuntime;
|
|
39
|
+
redactValues?: readonly string[];
|
|
40
|
+
retryConcealedNotFound?: () => Promise<boolean>;
|
|
41
|
+
}): Promise<readonly string[] | null>;
|
|
42
|
+
//# sourceMappingURL=registry-reads.d.ts.map
|
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AC;IAC5B,wDAAwD;IACxD,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACjD,GAAG,OAAO,CAAC,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC,CA0FpC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry reads through npm: a published version's artifact identity and the
|
|
3
|
+
* list of every published version of a package. A concealed 404 may retry once
|
|
4
|
+
* with a renewed read credential; a rejected credential is blindness and throws.
|
|
5
|
+
*/
|
|
6
|
+
import { CapabilityError, settle, valueFreeFailure } from "@vibesdotdev/kernel";
|
|
7
|
+
import { JsonObjectSchema, JsonValueSchema, } from "@vibesdotdev/kernel/schemas/json";
|
|
8
|
+
import { z } from "zod/v4";
|
|
9
|
+
import { NpmCommandError, runNpm, versionSpec } from "./npm-exec.js";
|
|
10
|
+
const GitHeadSchema = z.string().regex(/^[0-9a-f]{40,64}$/i);
|
|
11
|
+
function jsonObject(value) {
|
|
12
|
+
const parsed = JsonObjectSchema.safeParse(value);
|
|
13
|
+
return parsed.success ? parsed.data : {};
|
|
14
|
+
}
|
|
15
|
+
function jsonString(value) {
|
|
16
|
+
const parsed = z.string().safeParse(value);
|
|
17
|
+
return parsed.success ? parsed.data : "";
|
|
18
|
+
}
|
|
19
|
+
function readRepository(value) {
|
|
20
|
+
const text = z.string().safeParse(value);
|
|
21
|
+
if (text.success)
|
|
22
|
+
return text.data;
|
|
23
|
+
return jsonString(jsonObject(value).url);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The integrity, repository, gitHead and tarball of an `npm view --json` record;
|
|
27
|
+
* only a full commit hash counts as a gitHead.
|
|
28
|
+
*/
|
|
29
|
+
export function parsePublishedArtifactIdentity(name, version, value) {
|
|
30
|
+
const record = jsonObject(value);
|
|
31
|
+
const dist = jsonObject(record.dist);
|
|
32
|
+
const gitHead = GitHeadSchema.safeParse(record.gitHead);
|
|
33
|
+
return {
|
|
34
|
+
name,
|
|
35
|
+
version,
|
|
36
|
+
integrity: jsonString(dist.integrity),
|
|
37
|
+
repository: readRepository(record.repository),
|
|
38
|
+
// Only a complete commit hash is a historical identity; a symbolic ref
|
|
39
|
+
// ('HEAD', a branch name, an abbreviated sha) would resolve against the
|
|
40
|
+
// current checkout, so coerce it to missing and fail closed.
|
|
41
|
+
gitHead: gitHead.success ? gitHead.data : "",
|
|
42
|
+
tarball: jsonString(dist.tarball),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The published identity of `name@version`, or null when the Registry does not have it.
|
|
47
|
+
*/
|
|
48
|
+
export async function npmPublishedArtifactIdentity(options) {
|
|
49
|
+
const args = [
|
|
50
|
+
"view",
|
|
51
|
+
versionSpec(options.name, options.version),
|
|
52
|
+
"--registry",
|
|
53
|
+
options.registry,
|
|
54
|
+
"--json",
|
|
55
|
+
];
|
|
56
|
+
if (options.scope)
|
|
57
|
+
args.push(`--${options.scope}:registry=${options.registry}`);
|
|
58
|
+
const runView = () => runNpm(options.execution, args, {
|
|
59
|
+
runtime: options.runtime,
|
|
60
|
+
cwd: options.cwd,
|
|
61
|
+
env: options.env,
|
|
62
|
+
quiet: true,
|
|
63
|
+
allowFailure: true,
|
|
64
|
+
redactValues: options.redactValues,
|
|
65
|
+
});
|
|
66
|
+
let result = await runView();
|
|
67
|
+
let output = `${result.stdout}\n${result.stderr}`;
|
|
68
|
+
const concealedNotFound = /\bE404\b|404 Not Found|is not in this registry/i;
|
|
69
|
+
if (result.status !== 0 &&
|
|
70
|
+
concealedNotFound.test(output) &&
|
|
71
|
+
options.retryConcealedNotFound &&
|
|
72
|
+
(await options.retryConcealedNotFound())) {
|
|
73
|
+
result = await runView();
|
|
74
|
+
output = `${result.stdout}\n${result.stderr}`;
|
|
75
|
+
}
|
|
76
|
+
if (result.status === 0) {
|
|
77
|
+
return parsePublishedArtifactIdentity(options.name, options.version, JSON.parse(result.stdout));
|
|
78
|
+
}
|
|
79
|
+
if (concealedNotFound.test(output))
|
|
80
|
+
return null;
|
|
81
|
+
throw new NpmCommandError(args, result);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Every version the Registry publishes for `name`, or null when the package is
|
|
85
|
+
* absent. A rejected read credential is blindness and throws; a concealed 404
|
|
86
|
+
* retries once when the caller can renew its credential.
|
|
87
|
+
*/
|
|
88
|
+
export async function npmListPublishedVersions(options) {
|
|
89
|
+
const args = [
|
|
90
|
+
"view",
|
|
91
|
+
options.name,
|
|
92
|
+
"versions",
|
|
93
|
+
"--json",
|
|
94
|
+
"--registry",
|
|
95
|
+
options.registry,
|
|
96
|
+
];
|
|
97
|
+
const scope = options.name.startsWith("@")
|
|
98
|
+
? options.name.slice(0, options.name.indexOf("/"))
|
|
99
|
+
: undefined;
|
|
100
|
+
if (scope)
|
|
101
|
+
args.push(`--${scope}:registry=${options.registry}`);
|
|
102
|
+
const view = () => runNpm(options.execution, args, {
|
|
103
|
+
runtime: options.runtime,
|
|
104
|
+
cwd: options.cwd,
|
|
105
|
+
env: options.env,
|
|
106
|
+
quiet: true,
|
|
107
|
+
allowFailure: true,
|
|
108
|
+
redactValues: options.redactValues,
|
|
109
|
+
});
|
|
110
|
+
const concealedNotFound = /\bE404\b|404 Not Found|is not in this registry/i;
|
|
111
|
+
let result = await view();
|
|
112
|
+
if (result.status !== 0 &&
|
|
113
|
+
concealedNotFound.test(`${result.stdout}\n${result.stderr}`) &&
|
|
114
|
+
options.retryConcealedNotFound &&
|
|
115
|
+
(await options.retryConcealedNotFound())) {
|
|
116
|
+
result = await view();
|
|
117
|
+
}
|
|
118
|
+
if (result.status !== 0) {
|
|
119
|
+
const output = `${result.stdout}\n${result.stderr}`;
|
|
120
|
+
if (concealedNotFound.test(output))
|
|
121
|
+
return null;
|
|
122
|
+
if (/401 Unauthorized|403 Forbidden/i.test(output)) {
|
|
123
|
+
throw new Error(`Cannot read ${options.name} from ${options.registry}: the read credential was rejected. ` +
|
|
124
|
+
"This is blindness, not evidence the package is unpublished. " +
|
|
125
|
+
"Check `vibes auth status` and that VIBES_REGISTRY_TOKEN can install from packages.vibes.dev.");
|
|
126
|
+
}
|
|
127
|
+
throw new NpmCommandError(args, result);
|
|
128
|
+
}
|
|
129
|
+
// Unreadable output is not evidence of absence: an empty listing would
|
|
130
|
+
// assign a version the Registry may already hold.
|
|
131
|
+
const stdout = result.stdout.trim();
|
|
132
|
+
const decoded = await settle(() => Promise.resolve(stdout ? JSON.parse(stdout) : []));
|
|
133
|
+
if (!decoded.ok) {
|
|
134
|
+
throw new CapabilityError(`Registry version listing for ${options.name} is not JSON`, "INVALID_INPUT", {
|
|
135
|
+
reason: "registry-version-listing-not-json",
|
|
136
|
+
details: { package: options.name },
|
|
137
|
+
cause: valueFreeFailure(decoded.cause),
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
const admitted = JsonValueSchema.safeParse(decoded.value);
|
|
141
|
+
if (!admitted.success) {
|
|
142
|
+
throw new CapabilityError(`Registry version listing for ${options.name} is malformed`, "INVALID_INPUT", {
|
|
143
|
+
reason: "registry-version-listing-malformed",
|
|
144
|
+
details: { package: options.name },
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
const single = z.string().safeParse(admitted.data);
|
|
148
|
+
if (single.success)
|
|
149
|
+
return [single.data];
|
|
150
|
+
if (Array.isArray(admitted.data)) {
|
|
151
|
+
const versions = [];
|
|
152
|
+
for (const item of admitted.data) {
|
|
153
|
+
const version = z.string().safeParse(item);
|
|
154
|
+
if (version.success)
|
|
155
|
+
versions.push(version.data);
|
|
156
|
+
}
|
|
157
|
+
return versions;
|
|
158
|
+
}
|
|
159
|
+
throw new CapabilityError(`Registry version listing for ${options.name} is malformed`, "INVALID_INPUT", {
|
|
160
|
+
reason: "registry-version-listing-malformed",
|
|
161
|
+
details: { package: options.name },
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
//# sourceMappingURL=registry-reads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-reads.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/registry-reads.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EACL,gBAAgB,EAChB,eAAe,GAGhB,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAErE,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AAE7D,SAAS,UAAU,CAAC,KAA4B;IAC9C,MAAM,MAAM,GAAG,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACjD,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,UAAU,CAAC,KAA4B;IAC9C,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,cAAc,CAAC,KAA4B;IAClD,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACzC,IAAI,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnC,OAAO,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC;AAC3C,CAAC;AAED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