@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
|
@@ -1,383 +1,564 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import { realpathChecked, resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
10
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
11
|
+
import { CapabilityError, requireRuntimeCwd, settle, valueFreeFailure, } from "@vibesdotdev/kernel";
|
|
12
|
+
import {} from "@vibesdotdev/cli";
|
|
13
|
+
import { resolveRuntimeExecution } from "../shared/runtime-execution.js";
|
|
14
|
+
import { createPlatformRegistryClient } from "./publish/platform-registry.js";
|
|
15
|
+
import { positiveInteger, readBoolean, readNumber, readString, resolveReleaseContractVersion, } from "./publish/command-options.js";
|
|
16
|
+
import { resolveReleaseExternalRequirements, sealWorkspaceRegistryInputs, workspaceSelectorVersions, } from "./publish/external-requirements.js";
|
|
17
|
+
import { resolveOnDiskPath } from "./publish/fs-paths.js";
|
|
18
|
+
import { parsePublisherManifest } from "./publish/publisher-manifest.js";
|
|
19
|
+
import { gateReleaseBuildOnLeasePreflight } from "./publish/lease-preflight.js";
|
|
20
|
+
import { isNpmRateLimitError, NpmCommandError, npmOutput } from "./publish/npm-exec.js";
|
|
21
|
+
import { buildReleaseConsumerSourceRegistry } from "./publish/proof-registry.js";
|
|
22
|
+
import { assertRegistryReleaseOutputsRequested, inspectRegistryReleaseAvailability, registryReleaseReusedResults, } from "./publish/registry-availability.js";
|
|
23
|
+
import { formatIgnoredRegistryWriteCredentials, formatVibesRegistryPublishAuthFailure, ignoredRegistryWriteCredentialKeys, normalizeRegistryUrl, publishTokenSetupHint, resolvePublishTokenKey, resolveRegistryReleaseReadCredential, resolveTokenFromSecrets, registryServiceOrigin, VIBES_REGISTRY_READ_TOKEN_KEY, } from "./publish/registry-credentials.js";
|
|
24
|
+
import { assertRegistryReleaseWorkspacePreflight, buildRegistryReleaseWorkspaceArtifacts, ensureRaisedPublishFileDescriptorLimit, removeReleaseArtifactDir, } from "./publish/release-build.js";
|
|
25
|
+
import { assertFollowedFrameworkExecutorIdentity, assertRegistryReleaseExecutorProvenance, RELEASE_EXECUTOR_PATH, } from "./publish/release-executor.js";
|
|
26
|
+
import { verifyRegistryReleaseLock } from "./publish/release-lock.js";
|
|
27
|
+
import { RC_MAJOR_EXCEPTION_NOTICE, rcMajorChangeViolation, rcMajorExceptionIneligibility, } from "./publish/rc-major-exception.js";
|
|
28
|
+
import { runRegistryReleasePublish } from "./publish/release-phases.js";
|
|
29
|
+
import { planRegistryReleaseTargets, } from "./publish/release-plan.js";
|
|
30
|
+
import { applyAssignedReleaseVersions, formatRegistryReleaseVersionAssignments, RegistryPublishReceiptSchema, } from "@vibesdotdev/registry";
|
|
31
|
+
import { projectManagedRegistryReleaseWorkspaceWire } from "./publish/release-workspace.js";
|
|
32
|
+
import { createReleaseTempRoot, SENSITIVE_TEMP_ROOT_PREFIXES, } from "./publish/sensitive-temp.js";
|
|
33
|
+
import { collectRegistryReleaseWorkspaceInventory, resolvePublishPackageDirs, resolvePublishWorkspaceRoot, resolveSealedFollowWorkspaceRoot, } from "./publish/workspace-discovery.js";
|
|
34
|
+
/** Invocation path resolution, also used by `vibes registry publish`. */
|
|
35
|
+
export { resolvePublishPackageDirs, resolvePublishWorkspaceRoot, } from "./publish/workspace-discovery.js";
|
|
36
|
+
/**
|
|
37
|
+
* Re-enter the sealed framework checkout's own executor when this module is
|
|
38
|
+
* not it, so release work always runs the sealed source.
|
|
39
|
+
*/
|
|
40
|
+
export async function dispatchToRegistryReleaseExecutor(args, opts, workspaceRoot, context) {
|
|
41
|
+
const followRoot = await resolveSealedFollowWorkspaceRoot(context.runtime, workspaceRoot);
|
|
42
|
+
await assertFollowedFrameworkExecutorIdentity(followRoot, context.runtime);
|
|
43
|
+
const pathOwner = await getRuntimePath(context.runtime);
|
|
44
|
+
const hostFiles = await resolveFileSystemAdapter(context.runtime, { binding: false });
|
|
45
|
+
const expectedExecutorPath = await realpathChecked(hostFiles, pathOwner.join(followRoot, RELEASE_EXECUTOR_PATH));
|
|
46
|
+
const currentExecutorPath = await resolveOnDiskPath(context.runtime, pathOwner.fileURLToPath(import.meta.url));
|
|
47
|
+
if (currentExecutorPath !== expectedExecutorPath) {
|
|
48
|
+
const toFileURL = pathOwner.pathToFileURL;
|
|
49
|
+
if (toFileURL === undefined) {
|
|
50
|
+
throw new CapabilityError("The selected runtime path host cannot convert a filesystem path to a file URL.", "UNAVAILABLE", { reason: "runtime-path-file-url-unavailable", details: { path: expectedExecutorPath } });
|
|
25
51
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
52
|
+
const loaded = await settle(() => import(__rewriteRelativeImportExtension(toFileURL(expectedExecutorPath).href)));
|
|
53
|
+
if (!loaded.ok) {
|
|
54
|
+
if (loaded.cause instanceof CapabilityError)
|
|
55
|
+
throw loaded.cause;
|
|
56
|
+
throw new CapabilityError("Sealed release executor could not be loaded.", "UNAVAILABLE", {
|
|
57
|
+
reason: "sealed-release-executor-unreadable",
|
|
58
|
+
cause: valueFreeFailure(loaded.cause),
|
|
59
|
+
details: { path: expectedExecutorPath },
|
|
60
|
+
});
|
|
29
61
|
}
|
|
30
|
-
|
|
31
|
-
|
|
62
|
+
const receiver = loaded.value?.default;
|
|
63
|
+
const execute = receiver?.execute;
|
|
64
|
+
if (!(execute instanceof Function)) {
|
|
65
|
+
throw new CapabilityError("Sealed release executor is invalid.", "UNAVAILABLE", {
|
|
66
|
+
reason: "sealed-release-executor-invalid",
|
|
67
|
+
details: { path: expectedExecutorPath },
|
|
68
|
+
});
|
|
32
69
|
}
|
|
70
|
+
return {
|
|
71
|
+
dispatched: true,
|
|
72
|
+
result: await receiver.execute(args, opts, context),
|
|
73
|
+
};
|
|
33
74
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
75
|
+
await assertRegistryReleaseExecutorProvenance({
|
|
76
|
+
runtime: context.runtime,
|
|
77
|
+
workspaceRoot: followRoot,
|
|
78
|
+
infraDeployModuleUrl: import.meta.url,
|
|
79
|
+
registryModuleUrl: import.meta.resolve("@vibesdotdev/registry"),
|
|
80
|
+
});
|
|
81
|
+
return { dispatched: false, workspaceRoot: followRoot };
|
|
41
82
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
const environment = await resolveSecretsEnvironment(options.environment);
|
|
48
|
-
if (!runtime.hasKind('secrets/store')) {
|
|
49
|
-
return { environment: environment.name, tier: environment.tier };
|
|
50
|
-
}
|
|
51
|
-
const descriptors = runtime.assets('secrets/store').descriptors()
|
|
52
|
-
.filter((descriptor) => {
|
|
53
|
-
if (options.backend)
|
|
54
|
-
return descriptor.id === options.backend;
|
|
55
|
-
if (descriptor.backend === 'encrypted-local')
|
|
56
|
-
return true;
|
|
57
|
-
if (!descriptor.tiers || descriptor.tiers.length === 0)
|
|
58
|
-
return true;
|
|
59
|
-
return descriptor.tiers.includes(environment.tier);
|
|
60
|
-
})
|
|
61
|
-
.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
|
|
62
|
-
for (const descriptor of descriptors) {
|
|
63
|
-
const store = (await runtime
|
|
64
|
-
.query('secrets/store')
|
|
65
|
-
.withId(descriptor.id)
|
|
66
|
-
.resolve());
|
|
67
|
-
const value = await store.get(environment.name, key);
|
|
68
|
-
if (value && value.length > 0) {
|
|
69
|
-
return {
|
|
70
|
-
value,
|
|
71
|
-
source: descriptor.id,
|
|
72
|
-
environment: environment.name,
|
|
73
|
-
tier: environment.tier
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return { environment: environment.name, tier: environment.tier };
|
|
83
|
+
/** Rethrow a planning/validation failure as the command's INVALID_INPUT. */
|
|
84
|
+
export function invalidInput(cause) {
|
|
85
|
+
if (cause instanceof CapabilityError && !(cause instanceof NpmCommandError))
|
|
86
|
+
throw cause;
|
|
87
|
+
throw new CapabilityError(cause instanceof Error ? cause.message : "Publish input is invalid.", "INVALID_INPUT", { cause });
|
|
78
88
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
if (!
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
89
|
+
/** An optional path flag, resolved against the invocation cwd. */
|
|
90
|
+
async function resolveOptionalPath(runtime, value, cwd) {
|
|
91
|
+
const path = readString(value);
|
|
92
|
+
if (!path)
|
|
93
|
+
return undefined;
|
|
94
|
+
const pathOwner = await getRuntimePath(runtime);
|
|
95
|
+
return pathOwner.resolve(cwd, path);
|
|
86
96
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
/** Map a publish-phase failure to the command error, with partial results. */
|
|
98
|
+
export function publishFailure(cause, results) {
|
|
99
|
+
if (cause instanceof CapabilityError && !(cause instanceof NpmCommandError))
|
|
100
|
+
return cause;
|
|
101
|
+
const message = npmOutput(cause).trim();
|
|
102
|
+
const rateLimited = isNpmRateLimitError(cause);
|
|
103
|
+
const authHint = formatVibesRegistryPublishAuthFailure(message);
|
|
104
|
+
const rateLimitAdvice = "npm returned E429. Stop retrying in a loop; rerun this command later and already-published versions will be skipped.";
|
|
105
|
+
return new CapabilityError(message, rateLimited ? "RATE_LIMITED" : "INTERNAL", {
|
|
106
|
+
cause,
|
|
107
|
+
...(rateLimited
|
|
108
|
+
? { recoveryHint: rateLimitAdvice }
|
|
109
|
+
: authHint
|
|
110
|
+
? { recoveryHint: authHint }
|
|
111
|
+
: {}),
|
|
112
|
+
details: { rateLimited, results },
|
|
113
|
+
});
|
|
95
114
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
/**
|
|
116
|
+
* Announce and publish while the ephemeral artifact directory is still owned.
|
|
117
|
+
* A refusal from the announcement or the publish removes that directory.
|
|
118
|
+
*/
|
|
119
|
+
export async function publishInsideArtifactCleanup(options) {
|
|
120
|
+
const publishRun = await settle(async () => {
|
|
121
|
+
options.announce();
|
|
122
|
+
return await options.publish();
|
|
123
|
+
});
|
|
124
|
+
const cleanup = await settle(options.cleanup);
|
|
125
|
+
if (!publishRun.ok) {
|
|
126
|
+
const primary = options.fail(publishRun.cause);
|
|
127
|
+
if (!cleanup.ok) {
|
|
128
|
+
throw new AggregateError([primary, cleanup.cause], "Publish failed and release artifact cleanup also failed.", { cause: primary });
|
|
109
129
|
}
|
|
110
|
-
|
|
111
|
-
if (parent === current)
|
|
112
|
-
return resolve(startDir);
|
|
113
|
-
current = parent;
|
|
130
|
+
throw primary;
|
|
114
131
|
}
|
|
132
|
+
if (!cleanup.ok)
|
|
133
|
+
throw cleanup.cause;
|
|
134
|
+
return publishRun.value;
|
|
115
135
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
136
|
+
export default {
|
|
137
|
+
async execute(args, opts, context) {
|
|
138
|
+
const { runtime } = context;
|
|
139
|
+
await ensureRaisedPublishFileDescriptorLimit(runtime);
|
|
140
|
+
const cwd = requireRuntimeCwd(runtime);
|
|
141
|
+
const packageDirs = await resolvePublishPackageDirs(runtime, args.paths, cwd);
|
|
142
|
+
const pathWorkspaceRoot = await resolvePublishWorkspaceRoot(runtime, packageDirs, await runtime.context("runtime/workspace-path"));
|
|
143
|
+
const releaseWorkspaceManifest = readString(opts.releaseWorkspaceManifest);
|
|
144
|
+
const releaseExecutor = releaseWorkspaceManifest
|
|
145
|
+
? await dispatchToRegistryReleaseExecutor(args, opts, pathWorkspaceRoot, context)
|
|
146
|
+
: undefined;
|
|
147
|
+
if (releaseExecutor?.dispatched)
|
|
148
|
+
return releaseExecutor.result;
|
|
149
|
+
const ui = await runtime.context("cli/ui");
|
|
150
|
+
const execution = await resolveRuntimeExecution(runtime);
|
|
151
|
+
// Every Platform Registry call this run makes (session, grants, leases)
|
|
152
|
+
// uses this runtime's credential and environment.
|
|
153
|
+
const platformRegistry = createPlatformRegistryClient(runtime);
|
|
154
|
+
const output = readString(opts.output) ?? "text";
|
|
155
|
+
const quiet = output === "json";
|
|
156
|
+
const dryRun = readBoolean(opts.dryRun);
|
|
157
|
+
const yes = readBoolean(opts.yes);
|
|
158
|
+
const workspaceRoot = releaseExecutor?.workspaceRoot ?? pathWorkspaceRoot;
|
|
159
|
+
const { workspace, releaseWorkspacePaths } = await collectRegistryReleaseWorkspaceInventory({
|
|
160
|
+
runtime,
|
|
161
|
+
workspaceRoot,
|
|
162
|
+
releaseWorkspaceManifest,
|
|
163
|
+
});
|
|
164
|
+
const workspacePackageScope = new Map([...workspace].map(([name, pkg]) => [
|
|
165
|
+
name,
|
|
166
|
+
{ name, dir: pkg.directory, packageJson: parsePublisherManifest(pkg.manifest) },
|
|
167
|
+
]));
|
|
168
|
+
const planned = await settle(() => planRegistryReleaseTargets({
|
|
169
|
+
packageDirs,
|
|
170
|
+
explicitScope: readString(opts.scope),
|
|
171
|
+
workspaceRoot,
|
|
172
|
+
workspace,
|
|
173
|
+
workspacePackageScope,
|
|
174
|
+
registryOverride: readString(opts.registry),
|
|
175
|
+
execution,
|
|
176
|
+
runtime,
|
|
177
|
+
forgeApiClient: () => runtime
|
|
178
|
+
.query("forge/api-client")
|
|
179
|
+
.withId("forge-api-client")
|
|
180
|
+
.resolve(),
|
|
181
|
+
}));
|
|
182
|
+
if (!planned.ok)
|
|
183
|
+
invalidInput(planned.cause);
|
|
184
|
+
const targets = planned.value;
|
|
185
|
+
const { scope, releasePlan, buildPackageOrder, buildPackages, artifactTargets, workspaceInputRegistryTargets, workspaceInputPackages, lockSourceIdentity, } = targets;
|
|
186
|
+
let { publishTargets } = targets;
|
|
187
|
+
const registryOrigin = await registryServiceOrigin(runtime);
|
|
188
|
+
const resolvedTokenKey = await settle(() => Promise.resolve(resolvePublishTokenKey({
|
|
189
|
+
registryOrigin,
|
|
190
|
+
registries: publishTargets.map((target) => target.registry),
|
|
191
|
+
explicitTokenKey: readString(opts.tokenKey),
|
|
192
|
+
dryRun,
|
|
193
|
+
})));
|
|
194
|
+
if (!resolvedTokenKey.ok)
|
|
195
|
+
invalidInput(resolvedTokenKey.cause);
|
|
196
|
+
const tokenKey = resolvedTokenKey.value;
|
|
197
|
+
const versions = new Map([...workspace].map(([name, pkg]) => [name, pkg.manifest.version]));
|
|
198
|
+
// Publish-body provenance + freshness: a stale compiled staging module or a
|
|
199
|
+
// stale package dist must refuse loudly, never publish old semantics
|
|
200
|
+
// (deploy-preflight parity; the materialized-bundle staleness class).
|
|
201
|
+
ui.info(`[publish-preflight] module=${import.meta.url}`);
|
|
202
|
+
{
|
|
203
|
+
const preflight = await assertRegistryReleaseWorkspacePreflight({
|
|
204
|
+
workspaceRoot,
|
|
205
|
+
runtime,
|
|
206
|
+
releasePlan,
|
|
207
|
+
workspacePackageScope,
|
|
208
|
+
artifactPolicy: "planned-build",
|
|
209
|
+
});
|
|
210
|
+
for (const warning of preflight.warnings)
|
|
211
|
+
ui.warn(`[publish-preflight] ${warning}`);
|
|
123
212
|
}
|
|
124
|
-
|
|
125
|
-
|
|
213
|
+
const sourceTargets = [...artifactTargets, ...workspaceInputRegistryTargets];
|
|
214
|
+
const releaseRegistries = sourceTargets.map((target) => target.registry);
|
|
215
|
+
const hostEnvironment = runtime.getEnvSnapshot();
|
|
216
|
+
const ignoredWriteKeys = ignoredRegistryWriteCredentialKeys(hostEnvironment);
|
|
217
|
+
if (ignoredWriteKeys.length > 0 &&
|
|
218
|
+
releaseRegistries.some((registry) => normalizeRegistryUrl(registry) === registryOrigin)) {
|
|
219
|
+
ui.warn(formatIgnoredRegistryWriteCredentials(ignoredWriteKeys));
|
|
126
220
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
221
|
+
// The read token is a credential (D3): the runtime resolves it, the host
|
|
222
|
+
// environment is never a source. Absent is a normal state — the chain
|
|
223
|
+
// below falls through to the named store and the signed session.
|
|
224
|
+
const runtimeReadCredential = await runtime.resolveCredential({
|
|
225
|
+
source: "secret",
|
|
226
|
+
key: VIBES_REGISTRY_READ_TOKEN_KEY,
|
|
227
|
+
});
|
|
228
|
+
const readCredential = await resolveRegistryReleaseReadCredential({
|
|
229
|
+
runtime,
|
|
230
|
+
registries: releaseRegistries,
|
|
231
|
+
explicitTokenKey: readString(opts.tokenKey),
|
|
232
|
+
registryJwt: runtimeReadCredential.ok
|
|
233
|
+
? runtimeReadCredential.value
|
|
234
|
+
: undefined,
|
|
235
|
+
resolveSessionJwt: () => platformRegistry.sessionJwt(),
|
|
236
|
+
resolveFreshSessionJwt: () => platformRegistry.freshSessionJwt(),
|
|
237
|
+
resolveNamedToken: (key) => resolveTokenFromSecrets(runtime, key, {
|
|
238
|
+
environment: readString(opts.environment),
|
|
239
|
+
backend: readString(opts.backend),
|
|
240
|
+
}),
|
|
241
|
+
});
|
|
242
|
+
const readResolution = readCredential.resolution;
|
|
243
|
+
if (readResolution?.source) {
|
|
244
|
+
ui.info(`[publish-preflight] registry read credential source=${readResolution.source}`);
|
|
138
245
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
246
|
+
const externalRequirementResolutions = await resolveReleaseExternalRequirements({
|
|
247
|
+
releasePlan,
|
|
248
|
+
sourceTargets,
|
|
249
|
+
workspaceRoot,
|
|
250
|
+
scope,
|
|
251
|
+
readToken: readResolution?.value,
|
|
252
|
+
execution,
|
|
253
|
+
runtime,
|
|
254
|
+
});
|
|
255
|
+
if (releasePlan.externalRequirements.length > 0) {
|
|
256
|
+
ui.info(`[publish-preflight] ${releasePlan.externalRequirements.length} external requirement(s) satisfiable`);
|
|
145
257
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
258
|
+
const publishDelayMs = dryRun
|
|
259
|
+
? 0
|
|
260
|
+
: positiveInteger(readNumber(opts.publishDelayMs, 0), 0);
|
|
261
|
+
const rateLimitRetries = dryRun
|
|
262
|
+
? 0
|
|
263
|
+
: positiveInteger(readNumber(opts.rateLimitRetries, 0), 0);
|
|
264
|
+
const rateLimitDelayMs = dryRun
|
|
265
|
+
? 0
|
|
266
|
+
: positiveInteger(readNumber(opts.rateLimitDelayMs, 3600000), 3600000);
|
|
267
|
+
const authorityVerify = readBoolean(opts.authorityVerify);
|
|
268
|
+
const releaseContractVersion = await resolveReleaseContractVersion({
|
|
269
|
+
flagValue: opts.releaseContractVersion,
|
|
270
|
+
workspaceRoot,
|
|
271
|
+
runtime,
|
|
272
|
+
});
|
|
273
|
+
const artifactDir = await resolveOptionalPath(runtime, opts.packDestination, cwd);
|
|
274
|
+
const consumerPath = await resolveOptionalPath(runtime, opts.consumer, cwd);
|
|
275
|
+
const rcMajorException = readBoolean(opts.rcMajorException);
|
|
276
|
+
if (rcMajorException) {
|
|
277
|
+
const ineligible = rcMajorExceptionIneligibility({
|
|
278
|
+
tag: readString(opts.tag),
|
|
279
|
+
versions: publishTargets,
|
|
280
|
+
});
|
|
281
|
+
if (ineligible)
|
|
282
|
+
invalidInput(new Error(ineligible));
|
|
283
|
+
ui.warn(`[publish-preflight] ${RC_MAJOR_EXCEPTION_NOTICE}`);
|
|
284
|
+
}
|
|
285
|
+
ui.info(`[publish-preflight] Verifying committed source for ${buildPackages.length} build package(s) across ${new Set(buildPackages.map((pkg) => pkg.sourceRoot)).size} repository owner(s)`);
|
|
286
|
+
const verifiedLock = await settle(() => verifyRegistryReleaseLock({
|
|
287
|
+
workspaceRoot,
|
|
288
|
+
buildPackages,
|
|
289
|
+
buildPackageOrder,
|
|
290
|
+
lockSource: lockSourceIdentity,
|
|
291
|
+
releaseWorkspacePaths,
|
|
292
|
+
execution,
|
|
293
|
+
runtime,
|
|
294
|
+
rcMajorException,
|
|
295
|
+
}));
|
|
296
|
+
if (!verifiedLock.ok)
|
|
297
|
+
invalidInput(verifiedLock.cause);
|
|
298
|
+
const { expectedGitHeads, sealReleaseWorkspace } = verifiedLock.value;
|
|
299
|
+
const ephemeralArtifactDir = artifactDir
|
|
300
|
+
? undefined
|
|
301
|
+
: await createReleaseTempRoot(runtime, workspaceRoot, SENSITIVE_TEMP_ROOT_PREFIXES.artifacts);
|
|
302
|
+
const sealArtifactDir = artifactDir ?? ephemeralArtifactDir;
|
|
303
|
+
const readTokenKey = readCredential.tokenKey;
|
|
304
|
+
const readTokenResolution = readCredential.resolution;
|
|
305
|
+
const releaseSourceRegistry = buildReleaseConsumerSourceRegistry({
|
|
306
|
+
targets: sourceTargets,
|
|
307
|
+
readToken: readTokenResolution?.value,
|
|
308
|
+
renewReadToken: readCredential.refreshSessionJwt,
|
|
309
|
+
});
|
|
310
|
+
ui.info(`[publish-preflight] Sealing ${externalRequirementResolutions.filter((entry) => entry.requirement.source === 'workspace').length} workspace Registry input(s) against their published artifacts`);
|
|
311
|
+
const sealedWorkspaceInputs = await sealWorkspaceRegistryInputs({
|
|
312
|
+
resolutions: externalRequirementResolutions,
|
|
313
|
+
// Inputs outside the build closure seal by their source record, alongside the built packages.
|
|
314
|
+
buildPackages: [...buildPackages, ...workspaceInputPackages],
|
|
315
|
+
expectedGitHeads,
|
|
316
|
+
sourceRegistry: releaseSourceRegistry,
|
|
317
|
+
artifactDir: sealArtifactDir,
|
|
318
|
+
workspaceRoot,
|
|
319
|
+
scope,
|
|
320
|
+
readCredential,
|
|
321
|
+
execution,
|
|
322
|
+
runtime,
|
|
323
|
+
});
|
|
324
|
+
const publishedVersions = new Map();
|
|
325
|
+
ui.info(`[publish-preflight] Comparing ${artifactTargets.length} release output(s) with published Registry versions`);
|
|
326
|
+
const availabilityPlan = await inspectRegistryReleaseAvailability({
|
|
327
|
+
targets: artifactTargets,
|
|
328
|
+
expectedGitHeads,
|
|
329
|
+
versioning: "assign",
|
|
330
|
+
artifactDir: sealArtifactDir,
|
|
331
|
+
workspaceRoot,
|
|
332
|
+
scope,
|
|
333
|
+
readCredential,
|
|
334
|
+
execution,
|
|
335
|
+
runtime,
|
|
336
|
+
onPublishedVersions: (name, listed) => {
|
|
337
|
+
publishedVersions.set(name, listed);
|
|
338
|
+
ui.info(`[publish-preflight] ${name}: inspected ${listed.length} published version(s)`);
|
|
339
|
+
},
|
|
340
|
+
});
|
|
341
|
+
if (rcMajorException) {
|
|
342
|
+
const violations = publishTargets.flatMap((target) => {
|
|
343
|
+
const version = availabilityPlan.assignments.get(target.name)?.version ?? target.version;
|
|
344
|
+
const published = publishedVersions.get(target.name);
|
|
345
|
+
if (!published)
|
|
346
|
+
return [`${target.name}@${version}: published versions were not listed`];
|
|
347
|
+
const violation = rcMajorChangeViolation({
|
|
348
|
+
name: target.name,
|
|
349
|
+
version,
|
|
350
|
+
published,
|
|
351
|
+
});
|
|
352
|
+
return violation ? [violation] : [];
|
|
353
|
+
});
|
|
354
|
+
if (violations.length > 0)
|
|
355
|
+
invalidInput(new Error(`The RC major exception does not apply:\n${violations.map((line) => `- ${line}`).join("\n")}`));
|
|
356
|
+
}
|
|
357
|
+
// From here on every release output carries its assigned version: the
|
|
358
|
+
// staged manifests, dependents' workspace selectors, the sealed release
|
|
359
|
+
// workspace, the installed release proof and the receipts.
|
|
360
|
+
const sealed = await settle(async () => {
|
|
361
|
+
assertRegistryReleaseOutputsRequested({
|
|
362
|
+
availabilityPlan,
|
|
363
|
+
requested: publishTargets,
|
|
364
|
+
});
|
|
365
|
+
const assignedReleasePlan = applyAssignedReleaseVersions(releasePlan, availabilityPlan.assignments);
|
|
366
|
+
const withAssignedVersion = (entry) => ({
|
|
367
|
+
...entry,
|
|
368
|
+
version: availabilityPlan.assignments.get(entry.name)?.version ?? entry.version,
|
|
369
|
+
});
|
|
370
|
+
const assignedPublishTargets = publishTargets.map(withAssignedVersion);
|
|
371
|
+
for (const [name, version] of workspaceSelectorVersions({
|
|
372
|
+
sourceVersions: versions,
|
|
373
|
+
sealedWorkspaceInputs,
|
|
374
|
+
assignments: availabilityPlan.assignments,
|
|
375
|
+
}))
|
|
376
|
+
versions.set(name, version);
|
|
377
|
+
ui.info(`[publish-preflight] Sealing committed manifest and lock identities for ${buildPackages.length} build package(s)`);
|
|
378
|
+
const releaseWorkspace = await sealReleaseWorkspace({
|
|
379
|
+
buildPackages: buildPackages.map(withAssignedVersion),
|
|
380
|
+
packages: assignedPublishTargets,
|
|
381
|
+
});
|
|
382
|
+
return { assignedReleasePlan, assignedPublishTargets, releaseWorkspace };
|
|
383
|
+
});
|
|
384
|
+
if (!sealed.ok) {
|
|
385
|
+
const cleanup = await settle(() => removeReleaseArtifactDir(runtime, ephemeralArtifactDir));
|
|
386
|
+
if (!cleanup.ok) {
|
|
387
|
+
throw new AggregateError([sealed.cause, cleanup.cause], "Release sealing failed and release artifact cleanup also failed.", { cause: sealed.cause });
|
|
165
388
|
}
|
|
166
|
-
|
|
389
|
+
invalidInput(sealed.cause);
|
|
167
390
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
recursive: true,
|
|
175
|
-
filter: (source) => {
|
|
176
|
-
const name = basename(source);
|
|
177
|
-
return ![
|
|
178
|
-
'node_modules',
|
|
179
|
-
'.git',
|
|
180
|
-
'.turbo',
|
|
181
|
-
'.svelte-kit'
|
|
182
|
-
].includes(name) && !name.endsWith('.tgz');
|
|
391
|
+
const assignedReleasePlan = sealed.value.assignedReleasePlan;
|
|
392
|
+
publishTargets = sealed.value.assignedPublishTargets;
|
|
393
|
+
const releaseWorkspace = sealed.value.releaseWorkspace;
|
|
394
|
+
if (!quiet) {
|
|
395
|
+
for (const line of formatRegistryReleaseVersionAssignments(availabilityPlan.assignments.values()))
|
|
396
|
+
ui.info(`[publish-plan] ${line}`);
|
|
183
397
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
await writeFile(packagePath, `${JSON.stringify(rewritten, null, 2)}\n`);
|
|
189
|
-
}
|
|
190
|
-
function npmBin() {
|
|
191
|
-
return process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
192
|
-
}
|
|
193
|
-
function runNpm(args, options) {
|
|
194
|
-
const child = spawnSync(npmBin(), args, {
|
|
195
|
-
cwd: options.cwd,
|
|
196
|
-
stdio: 'inherit',
|
|
197
|
-
env: options.env ?? process.env
|
|
198
|
-
});
|
|
199
|
-
if (child.error)
|
|
200
|
-
throw child.error;
|
|
201
|
-
if (child.status !== 0) {
|
|
202
|
-
throw new Error(`npm ${args.join(' ')} failed with exit ${child.status ?? 'unknown'}`);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
async function newestTarball(dir) {
|
|
206
|
-
const entries = await readdir(dir);
|
|
207
|
-
const tarballs = entries.filter((entry) => entry.endsWith('.tgz')).sort();
|
|
208
|
-
if (tarballs.length !== 1) {
|
|
209
|
-
throw new Error(`Expected one packed tarball in ${dir}, found ${tarballs.length}`);
|
|
210
|
-
}
|
|
211
|
-
return join(dir, tarballs[0]);
|
|
212
|
-
}
|
|
213
|
-
function authConfigLine(registry) {
|
|
214
|
-
const url = new URL(registry);
|
|
215
|
-
const path = url.pathname.endsWith('/') ? url.pathname : `${url.pathname}/`;
|
|
216
|
-
return `//${url.host}${path}:_authToken`;
|
|
217
|
-
}
|
|
218
|
-
function sanitizeNpmEnv(extra) {
|
|
219
|
-
const env = { ...process.env };
|
|
220
|
-
delete env.NPM_TOKEN;
|
|
221
|
-
delete env.NODE_AUTH_TOKEN;
|
|
222
|
-
delete env.NPM_CONFIG_USERCONFIG;
|
|
223
|
-
delete env.NPM_CONFIG_REGISTRY;
|
|
224
|
-
for (const [key, value] of Object.entries(extra))
|
|
225
|
-
env[key] = value;
|
|
226
|
-
return env;
|
|
227
|
-
}
|
|
228
|
-
async function writeTempNpmrc(options) {
|
|
229
|
-
const lines = [
|
|
230
|
-
`registry=${options.registry}`,
|
|
231
|
-
options.scope ? `${options.scope}:registry=${options.registry}` : undefined,
|
|
232
|
-
options.token ? `${authConfigLine(options.registry)}=${options.token}` : undefined
|
|
233
|
-
].filter((line) => Boolean(line));
|
|
234
|
-
await writeFile(options.path, `${lines.join('\n')}\n`, { mode: 0o600 });
|
|
235
|
-
await chmod(options.path, 0o600);
|
|
236
|
-
}
|
|
237
|
-
function publishArgs(options) {
|
|
238
|
-
const args = ['publish', options.tarball, '--registry', options.registry];
|
|
239
|
-
if (options.access)
|
|
240
|
-
args.push('--access', options.access);
|
|
241
|
-
if (options.tag)
|
|
242
|
-
args.push('--tag', options.tag);
|
|
243
|
-
if (options.otp)
|
|
244
|
-
args.push('--otp', options.otp);
|
|
245
|
-
if (options.provenance)
|
|
246
|
-
args.push('--provenance');
|
|
247
|
-
if (options.dryRun)
|
|
248
|
-
args.push('--dry-run');
|
|
249
|
-
return args;
|
|
250
|
-
}
|
|
251
|
-
async function publishPackage(options) {
|
|
252
|
-
const packageDir = isAbsolute(options.packageDir)
|
|
253
|
-
? options.packageDir
|
|
254
|
-
: resolve(process.cwd(), options.packageDir);
|
|
255
|
-
const pkg = await readPackageJson(packageDir);
|
|
256
|
-
const registry = options.registry || pkg.publishConfig?.registry || 'https://registry.npmjs.org';
|
|
257
|
-
const access = options.access ?? pkg.publishConfig?.access;
|
|
258
|
-
const tag = options.tag ?? pkg.publishConfig?.tag;
|
|
259
|
-
const tempRoot = await mkdtemp(join(tmpdir(), 'vibes-npm-publish-'));
|
|
260
|
-
const packDir = join(tempRoot, 'pack');
|
|
261
|
-
const stageDir = join(tempRoot, 'stage');
|
|
262
|
-
const npmrcPath = join(tempRoot, 'npmrc');
|
|
263
|
-
const homeDir = join(tempRoot, 'home');
|
|
264
|
-
try {
|
|
265
|
-
await mkdir(packDir, { recursive: true });
|
|
266
|
-
await mkdir(homeDir, { recursive: true });
|
|
267
|
-
await stagePackageForPublish({ packageDir, stageDir, versions: options.versions });
|
|
268
|
-
await writeTempNpmrc({
|
|
269
|
-
path: npmrcPath,
|
|
270
|
-
registry,
|
|
271
|
-
scope: options.scope,
|
|
272
|
-
token: options.token
|
|
398
|
+
const reusedResults = registryReleaseReusedResults({
|
|
399
|
+
availabilityPlan,
|
|
400
|
+
requested: publishTargets,
|
|
401
|
+
dryRun,
|
|
273
402
|
});
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
403
|
+
if (reusedResults) {
|
|
404
|
+
// Every target is already published as-is: nothing to build, pack, prove or publish.
|
|
405
|
+
await removeReleaseArtifactDir(runtime, ephemeralArtifactDir);
|
|
406
|
+
const receipt = RegistryPublishReceiptSchema.parse({
|
|
407
|
+
ok: true,
|
|
408
|
+
dryRun,
|
|
409
|
+
releasePlan: assignedReleasePlan,
|
|
410
|
+
versions: [...availabilityPlan.assignments.values()],
|
|
411
|
+
results: reusedResults,
|
|
412
|
+
});
|
|
413
|
+
if (output === "json") {
|
|
414
|
+
if (opts.suppressOutput !== true)
|
|
415
|
+
ui.json(receipt);
|
|
416
|
+
return receipt;
|
|
417
|
+
}
|
|
418
|
+
if (opts.suppressOutput !== true)
|
|
419
|
+
ui.success(`Published 0 npm package(s); skipped ${reusedResults.length} already-published package(s).`);
|
|
420
|
+
return receipt;
|
|
421
|
+
}
|
|
422
|
+
const releaseWorkspaceWire = projectManagedRegistryReleaseWorkspaceWire(releaseWorkspace, releaseContractVersion, { configPath: (await getRuntimePath(runtime)).join(workspaceRoot, "package.json") });
|
|
423
|
+
// The lease is requested only after the whole build, pack and consumer
|
|
424
|
+
// proof; ask whether each one would be granted before spending that.
|
|
425
|
+
ui.info(`[publish-preflight] Checking Platform publish authority for ${publishTargets.map((target) => `${target.name}@${target.version}`).join(', ')}`);
|
|
426
|
+
const { viaLease } = await gateReleaseBuildOnLeasePreflight({
|
|
427
|
+
runtime,
|
|
428
|
+
platformRegistry,
|
|
429
|
+
tokenKey: readString(opts.tokenKey),
|
|
430
|
+
dryRun,
|
|
431
|
+
yes,
|
|
432
|
+
publishTargets,
|
|
433
|
+
availabilityPlan,
|
|
434
|
+
expectedGitHeads,
|
|
435
|
+
releaseWorkspace: releaseWorkspaceWire,
|
|
436
|
+
report: {
|
|
437
|
+
warn: (line) => ui.warn(`[publish-preflight] ${line}`),
|
|
438
|
+
info: (line) => {
|
|
439
|
+
if (!quiet)
|
|
440
|
+
ui.info(`[publish-preflight] ${line}`);
|
|
441
|
+
},
|
|
442
|
+
},
|
|
443
|
+
onFailure: () => removeReleaseArtifactDir(runtime, ephemeralArtifactDir),
|
|
281
444
|
});
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
dryRun: options.dryRun
|
|
445
|
+
await buildRegistryReleaseWorkspaceArtifacts({
|
|
446
|
+
workspaceRoot,
|
|
447
|
+
releasePlan,
|
|
448
|
+
workspacePackageScope,
|
|
449
|
+
execution,
|
|
450
|
+
runtime,
|
|
451
|
+
onLine: quiet ? undefined : (_stream, line) => ui.log(line),
|
|
290
452
|
});
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
finally {
|
|
303
|
-
await rm(tempRoot, { recursive: true, force: true });
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
export default {
|
|
307
|
-
async execute(args, opts) {
|
|
308
|
-
const runtime = getVibesRuntime();
|
|
309
|
-
const ui = (await runtime.context('cli/ui'));
|
|
310
|
-
const output = readString(opts.output) ?? 'text';
|
|
311
|
-
const dryRun = readBoolean(opts.dryRun);
|
|
312
|
-
const yes = readBoolean(opts.yes);
|
|
313
|
-
const tokenKey = readString(opts.tokenKey) ?? 'NPM_TOKEN';
|
|
314
|
-
const registry = readString(opts.registry) ?? 'https://registry.npmjs.org';
|
|
315
|
-
const scope = readString(opts.scope);
|
|
316
|
-
const packagePaths = normalizePaths(args.paths);
|
|
317
|
-
const workspaceRoot = await findWorkspaceRoot(process.cwd());
|
|
318
|
-
const versions = await collectWorkspaceVersions(workspaceRoot);
|
|
319
|
-
if (!dryRun && !yes) {
|
|
320
|
-
ui.error('Refusing to publish without --yes. Use --dry-run to test without publishing.');
|
|
321
|
-
process.exitCode = 1;
|
|
322
|
-
return;
|
|
453
|
+
{
|
|
454
|
+
const preflight = await assertRegistryReleaseWorkspacePreflight({
|
|
455
|
+
workspaceRoot,
|
|
456
|
+
runtime,
|
|
457
|
+
releasePlan,
|
|
458
|
+
workspacePackageScope,
|
|
459
|
+
artifactPolicy: "strict",
|
|
460
|
+
});
|
|
461
|
+
for (const warning of preflight.warnings)
|
|
462
|
+
ui.warn(`[publish-preflight] ${warning}`);
|
|
323
463
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
if (!dryRun) {
|
|
329
|
-
const resolved = await resolveTokenFromSecrets(runtime, tokenKey, {
|
|
330
|
-
environment: readString(opts.environment),
|
|
331
|
-
backend: readString(opts.backend)
|
|
464
|
+
const managedLease = !dryRun && viaLease;
|
|
465
|
+
if (!dryRun && !yes) {
|
|
466
|
+
throw new CapabilityError("Refusing to publish without --yes.", "INVALID_INPUT", {
|
|
467
|
+
recoveryHint: "Use --dry-run to test without publishing, or pass --yes to publish.",
|
|
332
468
|
});
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
469
|
+
}
|
|
470
|
+
let tokenSecret;
|
|
471
|
+
if (!dryRun && !managedLease) {
|
|
472
|
+
const resolved = readTokenKey === tokenKey && readTokenResolution
|
|
473
|
+
? readTokenResolution
|
|
474
|
+
: await resolveTokenFromSecrets(runtime, tokenKey, {
|
|
475
|
+
environment: readString(opts.environment),
|
|
476
|
+
backend: readString(opts.backend),
|
|
477
|
+
});
|
|
478
|
+
const backend = readString(opts.backend);
|
|
479
|
+
tokenSecret = {
|
|
480
|
+
key: tokenKey,
|
|
481
|
+
environment: resolved.environment,
|
|
482
|
+
};
|
|
483
|
+
if (backend)
|
|
484
|
+
tokenSecret.backend = backend;
|
|
485
|
+
if (!resolved.value) {
|
|
486
|
+
throw new CapabilityError(`Missing ${tokenKey}.`, "AUTH_REQUIRED", {
|
|
487
|
+
recoveryHint: `Store it with \`vibes secrets set ${tokenKey} --environment ${resolved.environment}\` and rerun. ` +
|
|
488
|
+
publishTokenSetupHint(tokenKey, publishTargets.map((target) => target.registry), registryOrigin),
|
|
489
|
+
});
|
|
342
490
|
}
|
|
343
|
-
|
|
491
|
+
if (!quiet)
|
|
492
|
+
ui.info(`Resolved ${tokenKey} from ${resolved.source} (${resolved.environment}/${resolved.tier}).`);
|
|
344
493
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
494
|
+
let results = [];
|
|
495
|
+
const outcome = await publishInsideArtifactCleanup({
|
|
496
|
+
announce: () => {
|
|
497
|
+
if (!dryRun && !quiet)
|
|
498
|
+
ui.info(`Preflighting ${publishTargets.length} release artifact(s) before publishing.`);
|
|
499
|
+
},
|
|
500
|
+
publish: () => runRegistryReleasePublish({
|
|
501
|
+
platformRegistry,
|
|
502
|
+
publishTargets,
|
|
503
|
+
buildPackages,
|
|
504
|
+
availabilityPlan,
|
|
505
|
+
expectedGitHeads,
|
|
506
|
+
versions,
|
|
507
|
+
releasePlan: assignedReleasePlan,
|
|
508
|
+
releaseWorkspace: releaseWorkspaceWire,
|
|
509
|
+
workspaceRoot,
|
|
510
|
+
workspace,
|
|
511
|
+
sourceRegistry: releaseSourceRegistry,
|
|
512
|
+
sealedWorkspaceInputs,
|
|
513
|
+
sealArtifactDir,
|
|
514
|
+
consumerPath,
|
|
515
|
+
settings: {
|
|
351
516
|
scope,
|
|
352
|
-
access: readString(opts.access),
|
|
353
517
|
tag: readString(opts.tag),
|
|
354
518
|
otp: readString(opts.otp),
|
|
355
519
|
provenance: readBoolean(opts.provenance),
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
ui
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
520
|
+
tokenSecret,
|
|
521
|
+
rateLimitRetries,
|
|
522
|
+
rateLimitDelayMs,
|
|
523
|
+
managedLease,
|
|
524
|
+
authorityVerify,
|
|
525
|
+
artifactDir,
|
|
526
|
+
publishDelayMs,
|
|
527
|
+
},
|
|
528
|
+
dryRun,
|
|
529
|
+
quiet,
|
|
530
|
+
ui,
|
|
531
|
+
execution,
|
|
532
|
+
runtime,
|
|
533
|
+
rcMajorException,
|
|
534
|
+
onProgress: (published) => {
|
|
535
|
+
results = [...published];
|
|
536
|
+
},
|
|
537
|
+
}),
|
|
538
|
+
cleanup: () => removeReleaseArtifactDir(runtime, ephemeralArtifactDir),
|
|
539
|
+
fail: (cause) => publishFailure(cause, results),
|
|
540
|
+
});
|
|
541
|
+
const receipt = RegistryPublishReceiptSchema.parse({
|
|
542
|
+
ok: true,
|
|
543
|
+
dryRun,
|
|
544
|
+
releasePlan: assignedReleasePlan,
|
|
545
|
+
versions: [...availabilityPlan.assignments.values()],
|
|
546
|
+
consumerProof: outcome.consumerProof,
|
|
547
|
+
consumerSmoke: outcome.consumerSmoke,
|
|
548
|
+
results: outcome.results,
|
|
549
|
+
});
|
|
550
|
+
if (output === "json") {
|
|
551
|
+
if (opts.suppressOutput !== true)
|
|
552
|
+
ui.json(receipt);
|
|
553
|
+
return receipt;
|
|
377
554
|
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
555
|
+
const skipped = outcome.results.filter((result) => result.skipped).length;
|
|
556
|
+
const published = outcome.results.length - skipped;
|
|
557
|
+
if (opts.suppressOutput !== true)
|
|
558
|
+
ui.success(dryRun
|
|
559
|
+
? `npm publish dry-run completed for ${outcome.results.length} package(s).`
|
|
560
|
+
: `Published ${published} npm package(s); skipped ${skipped} already-published package(s).`);
|
|
561
|
+
return receipt;
|
|
562
|
+
},
|
|
382
563
|
};
|
|
383
564
|
//# sourceMappingURL=infra-npm-publish.cli-command.impl.js.map
|