@vibesdotdev/infra-deploy 0.0.2 → 1.0.0-rc.5
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 +76 -12
- 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 +1160 -111
- 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 +40 -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 +50 -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 +108 -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 +83 -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 +52 -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 +52 -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 +568 -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 +91 -0
- package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
- package/dist/cli/npm/mirror-registry-artifacts.js +99 -0
- package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
- package/dist/cli/npm/npm-protocol-package-registry.d.ts +32 -0
- package/dist/cli/npm/npm-protocol-package-registry.d.ts.map +1 -0
- package/dist/cli/npm/npm-protocol-package-registry.js +237 -0
- package/dist/cli/npm/npm-protocol-package-registry.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/publish-to-mirror.d.ts +28 -0
- package/dist/cli/npm/publish/publish-to-mirror.d.ts.map +1 -0
- package/dist/cli/npm/publish/publish-to-mirror.js +36 -0
- package/dist/cli/npm/publish/publish-to-mirror.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 +181 -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 +142 -0
- package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
- package/dist/cli/npm/put-attested-packument.js +353 -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/npm/registries/npmjs.package-registry.descriptor.d.ts +56 -0
- package/dist/cli/npm/registries/npmjs.package-registry.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/registries/npmjs.package-registry.descriptor.js +16 -0
- package/dist/cli/npm/registries/npmjs.package-registry.descriptor.js.map +1 -0
- package/dist/cli/npm/registries/package-registries.plugin.d.ts +3 -0
- package/dist/cli/npm/registries/package-registries.plugin.d.ts.map +1 -0
- package/dist/cli/npm/registries/package-registries.plugin.js +44 -0
- package/dist/cli/npm/registries/package-registries.plugin.js.map +1 -0
- package/dist/cli/npm/registries/resolve-package-registry.d.ts +29 -0
- package/dist/cli/npm/registries/resolve-package-registry.d.ts.map +1 -0
- package/dist/cli/npm/registries/resolve-package-registry.js +58 -0
- package/dist/cli/npm/registries/resolve-package-registry.js.map +1 -0
- package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.d.ts +53 -0
- package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.js +12 -0
- package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.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 +51 -0
- package/dist/cli/run/deployment-provider.d.ts.map +1 -0
- package/dist/cli/run/deployment-provider.js +274 -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 +404 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.js +585 -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 +77 -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 +49 -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 +440 -229
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
- package/dist/cli/shared/build-workspace-artifacts.d.ts +152 -0
- package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
- package/dist/cli/shared/build-workspace-artifacts.js +2049 -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/shared/workspace-artifact-store.d.ts +14 -0
- package/dist/cli/shared/workspace-artifact-store.d.ts.map +1 -0
- package/dist/cli/shared/workspace-artifact-store.js +53 -0
- package/dist/cli/shared/workspace-artifact-store.js.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts +239 -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 +65 -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 +107 -38
- 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,371 @@
|
|
|
1
|
+
import { hashHex } from "@vibesdotdev/crypto";
|
|
2
|
+
import { assertRegistryStandaloneWorkspaceReady } from '@vibesdotdev/registry/standalone-install';
|
|
3
|
+
import { realpathChecked, resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
4
|
+
import { GIT_CHILD_ENV } from "@vibesdotdev/git-operations/core";
|
|
5
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
6
|
+
import { z } from "zod/v4";
|
|
7
|
+
import { runRuntimeCommand, } from "../../shared/runtime-execution.js";
|
|
8
|
+
import { canonicalForgeRepositoryIdentity } from "./forge-source-identity.js";
|
|
9
|
+
import { parsePublisherManifest } from "./publisher-manifest.js";
|
|
10
|
+
import { assertRegistryReleaseSnapshot, assertRegistryReleaseSnapshots, assertRegistryReleaseSourceLanded, COMPOSE_ROOT_RELEASE_PATH_PREFIXES, } from "./source-snapshot.js";
|
|
11
|
+
import { DEFAULT_REGISTRY_RELEASE_MANIFEST, assertManagedRegistryReleaseWorkspaceManifest, buildManagedRegistryReleaseWorkspace, } from "./release-workspace.js";
|
|
12
|
+
/**
|
|
13
|
+
* The release workspace manifest and its sibling `bun.lock`, relative and absolute,
|
|
14
|
+
* rejecting paths that escape the workspace.
|
|
15
|
+
*/
|
|
16
|
+
export async function resolveRegistryReleaseWorkspacePaths(options) {
|
|
17
|
+
const paths = await getRuntimePath(options.runtime);
|
|
18
|
+
const workspaceManifestPath = (options.workspaceManifestPath ?? DEFAULT_REGISTRY_RELEASE_MANIFEST).replaceAll("\\", "/");
|
|
19
|
+
const segments = workspaceManifestPath.split("/");
|
|
20
|
+
if (paths.isAbsolute(workspaceManifestPath) ||
|
|
21
|
+
segments.some((segment) => !segment || segment === "." || segment === "..") ||
|
|
22
|
+
segments.at(-1) !== "package.json" ||
|
|
23
|
+
segments[0] !== "release" ||
|
|
24
|
+
segments[1] !== "registry") {
|
|
25
|
+
throw new Error("Registry release workspace manifest must be an exact package.json path under release/registry");
|
|
26
|
+
}
|
|
27
|
+
const lockfilePath = [...segments.slice(0, -1), "bun.lock"].join("/");
|
|
28
|
+
const workspaceManifestAbsolutePath = paths.resolve(options.workspaceRoot, workspaceManifestPath);
|
|
29
|
+
const lockfileAbsolutePath = paths.resolve(options.workspaceRoot, lockfilePath);
|
|
30
|
+
for (const absolute of [
|
|
31
|
+
workspaceManifestAbsolutePath,
|
|
32
|
+
lockfileAbsolutePath,
|
|
33
|
+
]) {
|
|
34
|
+
const position = paths.relative(paths.resolve(options.workspaceRoot), absolute);
|
|
35
|
+
if (!position ||
|
|
36
|
+
position === ".." ||
|
|
37
|
+
position.startsWith("../") ||
|
|
38
|
+
paths.isAbsolute(position)) {
|
|
39
|
+
throw new Error("Registry release workspace path escapes the registered workspace");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
workspaceManifestPath,
|
|
44
|
+
lockfilePath,
|
|
45
|
+
workspaceManifestAbsolutePath,
|
|
46
|
+
lockfileAbsolutePath,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Throw unless every segment of the path is a real (non-symlink) entry in the workspace.
|
|
51
|
+
*/
|
|
52
|
+
export async function assertCanonicalRegistryReleaseWorkspaceFile(options) {
|
|
53
|
+
const pathOwner = await getRuntimePath(options.runtime);
|
|
54
|
+
const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
|
|
55
|
+
const canonicalRoot = await realpathChecked(files, options.workspaceRoot);
|
|
56
|
+
const segments = options.path.split("/");
|
|
57
|
+
let cursor = canonicalRoot;
|
|
58
|
+
for (const [index, segment] of segments.entries()) {
|
|
59
|
+
cursor = pathOwner.join(cursor, segment);
|
|
60
|
+
const entry = await files.stat(cursor);
|
|
61
|
+
if (entry.isSymlink || entry.kind === "symlink") {
|
|
62
|
+
throw new Error(`Registry release workspace path must not be a symlink: ${options.path}`);
|
|
63
|
+
}
|
|
64
|
+
const isFile = index === segments.length - 1;
|
|
65
|
+
if ((isFile && entry.kind !== "file") || (!isFile && entry.kind !== "directory")) {
|
|
66
|
+
throw new Error(`Registry release workspace path is not a canonical ${isFile ? "file" : "directory"}: ${options.path}`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const position = pathOwner.relative(canonicalRoot, await realpathChecked(files, cursor));
|
|
70
|
+
if (!position ||
|
|
71
|
+
position === ".." ||
|
|
72
|
+
position.startsWith("../") ||
|
|
73
|
+
position.startsWith("..\\") ||
|
|
74
|
+
pathOwner.isAbsolute(position)) {
|
|
75
|
+
throw new Error(`Registry release workspace path escapes the registered workspace: ${options.path}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/** Landed `refs/heads/main` on the canonical Forge remote — not a dirty local HEAD. */
|
|
79
|
+
export async function resolveForgeRefSha(options) {
|
|
80
|
+
const canonical = canonicalForgeRepositoryIdentity(options.repository);
|
|
81
|
+
const remote = await runRuntimeCommand({
|
|
82
|
+
runtime: options.runtime,
|
|
83
|
+
execution: options.execution,
|
|
84
|
+
command: "git",
|
|
85
|
+
inheritEnv: GIT_CHILD_ENV,
|
|
86
|
+
args: ["ls-remote", canonical.repository, options.ref],
|
|
87
|
+
cwd: options.sourceRoot,
|
|
88
|
+
});
|
|
89
|
+
const sha = remote.stdout.trim().split(/\s+/)[0] ?? "";
|
|
90
|
+
if (remote.code !== 0 || !/^[0-9a-f]{40}$/.test(sha)) {
|
|
91
|
+
throw new Error(`Cannot resolve landed Forge ref ${options.ref} for ${options.sourceRoot}`);
|
|
92
|
+
}
|
|
93
|
+
return sha;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The commit a session publish locks to: the workspace's verified snapshot, else Forge main.
|
|
97
|
+
*/
|
|
98
|
+
export async function resolveSessionPublishLockGitHead(options) {
|
|
99
|
+
// A standalone owner supplies both package sources and the root lock. Reuse
|
|
100
|
+
// its verified snapshot instead of racing a second read of moving main.
|
|
101
|
+
const sourceGitHead = options.expectedGitHeads.get(options.workspaceRoot);
|
|
102
|
+
if (sourceGitHead)
|
|
103
|
+
return sourceGitHead;
|
|
104
|
+
return resolveForgeRefSha({
|
|
105
|
+
sourceRoot: options.workspaceRoot,
|
|
106
|
+
repository: options.lockSource.repository,
|
|
107
|
+
ref: "refs/heads/main",
|
|
108
|
+
execution: options.execution,
|
|
109
|
+
runtime: options.runtime,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/** SHA-256 of a file as committed at `gitHead` (never the worktree copy). */
|
|
113
|
+
export async function hashCommittedGitPath(options) {
|
|
114
|
+
const pathOwner = await getRuntimePath(options.runtime);
|
|
115
|
+
if (!options.path ||
|
|
116
|
+
options.path === "." ||
|
|
117
|
+
pathOwner.isAbsolute(options.path) ||
|
|
118
|
+
options.path
|
|
119
|
+
.split("/")
|
|
120
|
+
.some((segment) => !segment || segment === "." || segment === "..")) {
|
|
121
|
+
throw new Error(`Registry release committed path is not a nested file: ${options.path}`);
|
|
122
|
+
}
|
|
123
|
+
const shown = await runRuntimeCommand({
|
|
124
|
+
runtime: options.runtime,
|
|
125
|
+
execution: options.execution,
|
|
126
|
+
command: "git",
|
|
127
|
+
inheritEnv: GIT_CHILD_ENV,
|
|
128
|
+
args: ["show", `${options.gitHead}:${options.path}`],
|
|
129
|
+
cwd: options.sourceRoot,
|
|
130
|
+
});
|
|
131
|
+
if (shown.code !== 0) {
|
|
132
|
+
throw new Error(`Registry release committed path ${options.path} is missing at ${options.gitHead}`);
|
|
133
|
+
}
|
|
134
|
+
return hashHex(options.runtime, "sha256", shown.stdout);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Throw unless the worktree release manifest and lock match their committed bytes;
|
|
138
|
+
* returns the committed manifest and both digests.
|
|
139
|
+
*/
|
|
140
|
+
export async function assertRegistryReleaseWorkspaceFilesCommitted(options) {
|
|
141
|
+
const files = await resolveFileSystemAdapter(options.runtime);
|
|
142
|
+
const [workspaceManifestRaw, lockfileRaw, committedManifestSha256, committedLockfileSha256,] = await Promise.all([
|
|
143
|
+
files.readFile(options.paths.workspaceManifestAbsolutePath),
|
|
144
|
+
files.readFile(options.paths.lockfileAbsolutePath),
|
|
145
|
+
hashCommittedGitPath({
|
|
146
|
+
sourceRoot: options.workspaceRoot,
|
|
147
|
+
gitHead: options.lockGitHead,
|
|
148
|
+
path: options.paths.workspaceManifestPath,
|
|
149
|
+
execution: options.execution,
|
|
150
|
+
runtime: options.runtime,
|
|
151
|
+
}),
|
|
152
|
+
hashCommittedGitPath({
|
|
153
|
+
sourceRoot: options.workspaceRoot,
|
|
154
|
+
gitHead: options.lockGitHead,
|
|
155
|
+
path: options.paths.lockfilePath,
|
|
156
|
+
execution: options.execution,
|
|
157
|
+
runtime: options.runtime,
|
|
158
|
+
}),
|
|
159
|
+
]);
|
|
160
|
+
const workspaceManifest = z.instanceof(Uint8Array).parse(workspaceManifestRaw);
|
|
161
|
+
const lockfile = z.instanceof(Uint8Array).parse(lockfileRaw);
|
|
162
|
+
const workspaceManifestSha256 = await hashHex(options.runtime, "sha256", workspaceManifest);
|
|
163
|
+
const lockfileSha256 = await hashHex(options.runtime, "sha256", lockfile);
|
|
164
|
+
if (workspaceManifestSha256 !== committedManifestSha256) {
|
|
165
|
+
throw new Error("Registry release workspace manifest differs from the landed lock authority");
|
|
166
|
+
}
|
|
167
|
+
if (lockfileSha256 !== committedLockfileSha256) {
|
|
168
|
+
throw new Error("Registry release lockfile differs from the landed lock authority");
|
|
169
|
+
}
|
|
170
|
+
return {
|
|
171
|
+
workspaceManifest,
|
|
172
|
+
workspaceManifestSha256: committedManifestSha256,
|
|
173
|
+
lockfileSha256: committedLockfileSha256,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Session product path: pack a developer-workspace member without requiring it
|
|
178
|
+
* in `release/registry/package.json`. A Developer composition binds to its
|
|
179
|
+
* committed release manifest and lock; a standalone owner repository binds to
|
|
180
|
+
* its committed root manifest and Bun lock. `--release-workspace-manifest`
|
|
181
|
+
* remains the sealed closure path.
|
|
182
|
+
*/
|
|
183
|
+
export async function resolveSessionPublishLockPaths(options) {
|
|
184
|
+
const releasePaths = await resolveRegistryReleaseWorkspacePaths({
|
|
185
|
+
runtime: options.runtime,
|
|
186
|
+
workspaceRoot: options.composeWorkspaceRoot,
|
|
187
|
+
});
|
|
188
|
+
const rootPaths = {
|
|
189
|
+
workspaceManifestPath: "package.json",
|
|
190
|
+
lockfilePath: "bun.lock",
|
|
191
|
+
};
|
|
192
|
+
const candidates = [
|
|
193
|
+
releasePaths.workspaceManifestPath,
|
|
194
|
+
releasePaths.lockfilePath,
|
|
195
|
+
rootPaths.workspaceManifestPath,
|
|
196
|
+
rootPaths.lockfilePath,
|
|
197
|
+
];
|
|
198
|
+
const listed = await runRuntimeCommand({
|
|
199
|
+
runtime: options.runtime,
|
|
200
|
+
execution: options.execution,
|
|
201
|
+
command: "git",
|
|
202
|
+
inheritEnv: GIT_CHILD_ENV,
|
|
203
|
+
args: ["ls-tree", "--name-only", options.lockGitHead, "--", ...candidates],
|
|
204
|
+
cwd: options.composeWorkspaceRoot,
|
|
205
|
+
});
|
|
206
|
+
if (listed.code !== 0) {
|
|
207
|
+
throw new Error(`Cannot inspect the landed Registry session lock at ${options.lockGitHead}`);
|
|
208
|
+
}
|
|
209
|
+
const committed = new Set(listed.stdout.split(/\r?\n/).filter(Boolean));
|
|
210
|
+
const selectPair = (pair) => {
|
|
211
|
+
const manifest = committed.has(pair.workspaceManifestPath);
|
|
212
|
+
const lock = committed.has(pair.lockfilePath);
|
|
213
|
+
if (manifest !== lock) {
|
|
214
|
+
throw new Error(`Registry session lock is incomplete at ${options.lockGitHead}: ${pair.workspaceManifestPath} and ${pair.lockfilePath} must be committed together`);
|
|
215
|
+
}
|
|
216
|
+
return manifest ? pair : undefined;
|
|
217
|
+
};
|
|
218
|
+
return (selectPair({
|
|
219
|
+
workspaceManifestPath: releasePaths.workspaceManifestPath,
|
|
220
|
+
lockfilePath: releasePaths.lockfilePath,
|
|
221
|
+
}) ??
|
|
222
|
+
selectPair(rootPaths) ??
|
|
223
|
+
(() => {
|
|
224
|
+
throw new Error(`Registry session lock is missing at ${options.lockGitHead}: expected release/registry/{package.json,bun.lock} or repository-root {package.json,bun.lock}`);
|
|
225
|
+
})());
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* The release workspace of a session publish, locked to the committed root or
|
|
229
|
+
* `release/registry` manifest and lock.
|
|
230
|
+
*/
|
|
231
|
+
export async function buildSessionPublishReleaseWorkspace(options) {
|
|
232
|
+
const paths = await resolveSessionPublishLockPaths({
|
|
233
|
+
composeWorkspaceRoot: options.composeWorkspaceRoot,
|
|
234
|
+
lockGitHead: options.lockGitHead,
|
|
235
|
+
execution: options.execution,
|
|
236
|
+
runtime: options.runtime,
|
|
237
|
+
});
|
|
238
|
+
const workspaceManifestSha256 = await hashCommittedGitPath({
|
|
239
|
+
sourceRoot: options.composeWorkspaceRoot,
|
|
240
|
+
gitHead: options.lockGitHead,
|
|
241
|
+
path: paths.workspaceManifestPath,
|
|
242
|
+
execution: options.execution,
|
|
243
|
+
runtime: options.runtime,
|
|
244
|
+
});
|
|
245
|
+
const lockfileSha256 = await hashCommittedGitPath({
|
|
246
|
+
sourceRoot: options.composeWorkspaceRoot,
|
|
247
|
+
gitHead: options.lockGitHead,
|
|
248
|
+
path: paths.lockfilePath,
|
|
249
|
+
execution: options.execution,
|
|
250
|
+
runtime: options.runtime,
|
|
251
|
+
});
|
|
252
|
+
return buildManagedRegistryReleaseWorkspace({
|
|
253
|
+
runtime: options.runtime,
|
|
254
|
+
workspaceRoot: options.composeWorkspaceRoot,
|
|
255
|
+
buildPackages: options.buildPackages,
|
|
256
|
+
packages: options.packages,
|
|
257
|
+
buildPackageOrder: options.buildPackageOrder,
|
|
258
|
+
expectedGitHeads: options.expectedGitHeads,
|
|
259
|
+
lockSource: options.lockSource,
|
|
260
|
+
lockGitHead: options.lockGitHead,
|
|
261
|
+
workspaceManifestPath: paths.workspaceManifestPath,
|
|
262
|
+
lockfilePath: paths.lockfilePath,
|
|
263
|
+
workspaceManifestSha256,
|
|
264
|
+
lockfileSha256,
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Verify every build source is a clean, landed snapshot and the release lock
|
|
269
|
+
* is committed and landed. Returns each source root's verified commit and the
|
|
270
|
+
* sealer for the release workspace, which names exact outputs and so is
|
|
271
|
+
* sealed only after version assignment.
|
|
272
|
+
*/
|
|
273
|
+
export async function verifyRegistryReleaseLock(options) {
|
|
274
|
+
const { workspaceRoot, execution, lockSource } = options;
|
|
275
|
+
const requireLanded = options.rcMajorException !== true;
|
|
276
|
+
const expectedGitHeads = await assertRegistryReleaseSnapshots({
|
|
277
|
+
targets: options.buildPackages,
|
|
278
|
+
execution,
|
|
279
|
+
runtime: options.runtime,
|
|
280
|
+
requireLanded,
|
|
281
|
+
});
|
|
282
|
+
const paths = options.releaseWorkspacePaths;
|
|
283
|
+
if (paths) {
|
|
284
|
+
const lockGitHead = await assertRegistryReleaseSnapshot({
|
|
285
|
+
workspaceRoot,
|
|
286
|
+
execution,
|
|
287
|
+
runtime: options.runtime,
|
|
288
|
+
ignoreUntracked: true,
|
|
289
|
+
relevantPathPrefixes: COMPOSE_ROOT_RELEASE_PATH_PREFIXES,
|
|
290
|
+
});
|
|
291
|
+
if (requireLanded)
|
|
292
|
+
await assertRegistryReleaseSourceLanded({
|
|
293
|
+
sourceRoot: workspaceRoot,
|
|
294
|
+
repository: lockSource.repository,
|
|
295
|
+
expectedGitHead: lockGitHead,
|
|
296
|
+
execution,
|
|
297
|
+
runtime: options.runtime,
|
|
298
|
+
});
|
|
299
|
+
const committedReleaseFiles = await assertRegistryReleaseWorkspaceFilesCommitted({
|
|
300
|
+
workspaceRoot,
|
|
301
|
+
lockGitHead,
|
|
302
|
+
paths,
|
|
303
|
+
execution,
|
|
304
|
+
runtime: options.runtime,
|
|
305
|
+
});
|
|
306
|
+
const workspaceManifest = parsePublisherManifest(JSON.parse(new TextDecoder().decode(committedReleaseFiles.workspaceManifest)));
|
|
307
|
+
await assertManagedRegistryReleaseWorkspaceManifest({
|
|
308
|
+
runtime: options.runtime,
|
|
309
|
+
workspaceRoot,
|
|
310
|
+
buildPackages: options.buildPackages,
|
|
311
|
+
manifest: workspaceManifest,
|
|
312
|
+
});
|
|
313
|
+
await assertRegistryStandaloneWorkspaceReady(options.runtime, { cwd: workspaceRoot, manifest: workspaceManifest });
|
|
314
|
+
return {
|
|
315
|
+
expectedGitHeads,
|
|
316
|
+
sealReleaseWorkspace: async (assigned) => buildManagedRegistryReleaseWorkspace({
|
|
317
|
+
runtime: options.runtime,
|
|
318
|
+
workspaceRoot,
|
|
319
|
+
buildPackages: assigned.buildPackages,
|
|
320
|
+
packages: assigned.packages,
|
|
321
|
+
buildPackageOrder: options.buildPackageOrder,
|
|
322
|
+
expectedGitHeads,
|
|
323
|
+
lockSource,
|
|
324
|
+
lockGitHead,
|
|
325
|
+
workspaceManifestPath: paths.workspaceManifestPath,
|
|
326
|
+
lockfilePath: paths.lockfilePath,
|
|
327
|
+
workspaceManifestSha256: committedReleaseFiles.workspaceManifestSha256,
|
|
328
|
+
lockfileSha256: committedReleaseFiles.lockfileSha256,
|
|
329
|
+
}),
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
const lockGitHead = requireLanded
|
|
333
|
+
? await resolveSessionPublishLockGitHead({
|
|
334
|
+
workspaceRoot,
|
|
335
|
+
expectedGitHeads,
|
|
336
|
+
lockSource,
|
|
337
|
+
execution,
|
|
338
|
+
runtime: options.runtime,
|
|
339
|
+
})
|
|
340
|
+
: (expectedGitHeads.get(workspaceRoot) ??
|
|
341
|
+
(await assertRegistryReleaseSnapshot({
|
|
342
|
+
workspaceRoot,
|
|
343
|
+
execution,
|
|
344
|
+
runtime: options.runtime,
|
|
345
|
+
ignoreUntracked: true,
|
|
346
|
+
relevantPathPrefixes: COMPOSE_ROOT_RELEASE_PATH_PREFIXES,
|
|
347
|
+
})));
|
|
348
|
+
if (requireLanded)
|
|
349
|
+
await assertRegistryReleaseSourceLanded({
|
|
350
|
+
sourceRoot: workspaceRoot,
|
|
351
|
+
repository: lockSource.repository,
|
|
352
|
+
expectedGitHead: lockGitHead,
|
|
353
|
+
execution,
|
|
354
|
+
runtime: options.runtime,
|
|
355
|
+
});
|
|
356
|
+
return {
|
|
357
|
+
expectedGitHeads,
|
|
358
|
+
sealReleaseWorkspace: (assigned) => buildSessionPublishReleaseWorkspace({
|
|
359
|
+
composeWorkspaceRoot: workspaceRoot,
|
|
360
|
+
buildPackages: assigned.buildPackages,
|
|
361
|
+
packages: assigned.packages,
|
|
362
|
+
buildPackageOrder: options.buildPackageOrder,
|
|
363
|
+
expectedGitHeads,
|
|
364
|
+
lockSource,
|
|
365
|
+
lockGitHead,
|
|
366
|
+
execution,
|
|
367
|
+
runtime: options.runtime,
|
|
368
|
+
}),
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
//# sourceMappingURL=release-lock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-lock.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/release-lock.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EACL,iBAAiB,GAChB,MAAM,mCAAmC,CAAC;AAC7C,OAAO,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,sBA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AAW,GAAG,aAAa;QAC/B,CAAC,CAAC,MAAM,gCAAgC,CAAC;YACrC,aAAa;YACb,gBAAgB;YAChB,UAAU;YACV,SAAS;YACT,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC;QACJ,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC;YACpC,CAAC,MAAM,6BAA6B,CAAC;gBACnC,aAAa;gBACb,SAAS;gBACT,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,eAAe,EAAE,IAAI;gBACrB,oBAAoB,EAAE,kCAAkC;aACzD,CAAC,CAAC,CAAC,CAAC;IACT,IAAI,aAAa;QACf,MAAM,iCAAiC,CAAC;YACtC,UAAU,EAAE,aAAa;YACzB,UAAU,EAAE,UAAU,CAAC,UAAU;YACjC,eAAe,EAAE,WAAW;YAC5B,SAAS;YACT,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC,CAAC;IACL,OAAO;QACL,gBAAgB;QAChB,oBAAoB,EAAE,CAAC,QAAQ,EAAE,EAAE,CACjC,mCAAmC,CAAC;YAClC,oBAAoB,EAAE,aAAa;YACnC,aAAa,EAAE,QAAQ,CAAC,aAAa;YACrC,QAAQ,EAAE,QAAQ,CAAC,QAAQ;YAC3B,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,gBAAgB;YAChB,UAAU;YACV,WAAW;YACX,SAAS;YACT,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release phases: seal every publish target (or take its verified reuse),
|
|
3
|
+
* prove the sealed set as a consumer, re-verify the source snapshots, then
|
|
4
|
+
* publish dependency-first. Nothing reaches the Registry until every target
|
|
5
|
+
* is sealed and proven.
|
|
6
|
+
*/
|
|
7
|
+
import type { ChildEnvRuntime } from "../../shared/runtime-execution.ts";
|
|
8
|
+
import type { UIContext } from "@vibesdotdev/cli/providers";
|
|
9
|
+
import type { VibesRuntime } from "@vibesdotdev/kernel";
|
|
10
|
+
import type { RegistryReleaseSetPlan, RegistryReleaseWorkspacePackage } from "@vibesdotdev/registry";
|
|
11
|
+
import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
|
|
12
|
+
import type { PublisherConsumerSmokeResult } from "./consumer-smoke.ts";
|
|
13
|
+
import type { SealedWorkspaceRegistryInput } from "./external-requirements.ts";
|
|
14
|
+
import type { ReleaseConsumerSourceRegistry } from "./proof-registry.ts";
|
|
15
|
+
import type { ReleasePublishJobInput } from "../../../schemas/release-jobs.ts";
|
|
16
|
+
import type { PlatformRegistryClient } from "./platform-registry.ts";
|
|
17
|
+
import type { RegistryReleaseAvailabilityPlan } from "./registry-availability.ts";
|
|
18
|
+
import type { ManagedRegistryReleaseWorkspaceWire } from "./release-workspace.ts";
|
|
19
|
+
import type { PublishResult, RegistryReleaseBuildPackage, RegistryReleasePublishTarget } from "./types.ts";
|
|
20
|
+
/** Seal the whole release set before the first real remote mutation. */
|
|
21
|
+
export declare function runRegistryReleasePhases<TTarget, TResult>(options: {
|
|
22
|
+
targets: readonly TTarget[];
|
|
23
|
+
dryRun: boolean;
|
|
24
|
+
preflight(target: TTarget): Promise<TResult>;
|
|
25
|
+
afterSeal?(results: readonly TResult[]): Promise<void>;
|
|
26
|
+
beforePublish?(results: readonly TResult[]): Promise<void>;
|
|
27
|
+
publish(target: TTarget, index: number, sealed: TResult): Promise<TResult>;
|
|
28
|
+
onPublishProgress?(results: readonly TResult[]): Promise<void> | void;
|
|
29
|
+
afterPublish?(result: TResult, index: number): Promise<void>;
|
|
30
|
+
}): Promise<TResult[]>;
|
|
31
|
+
/** Publish options shared by the seal and publish phases of every target. */
|
|
32
|
+
export type RegistryReleasePublishSettings = {
|
|
33
|
+
scope: string;
|
|
34
|
+
tag?: string;
|
|
35
|
+
otp?: string;
|
|
36
|
+
provenance: boolean;
|
|
37
|
+
tokenSecret?: NonNullable<ReleasePublishJobInput["tokenSecret"]>;
|
|
38
|
+
rateLimitRetries: number;
|
|
39
|
+
rateLimitDelayMs: number;
|
|
40
|
+
managedLease: boolean;
|
|
41
|
+
authorityVerify: boolean;
|
|
42
|
+
/** Where published tarballs are retained (`--pack-destination`), if anywhere. */
|
|
43
|
+
artifactDir?: string;
|
|
44
|
+
/** Delay between real publishes. */
|
|
45
|
+
publishDelayMs: number;
|
|
46
|
+
};
|
|
47
|
+
/** Results of every target plus the consumer smoke and proof evidence. */
|
|
48
|
+
export type RegistryReleasePublishOutcome = {
|
|
49
|
+
results: PublishResult[];
|
|
50
|
+
consumerSmoke?: PublisherConsumerSmokeResult;
|
|
51
|
+
consumerProof?: {
|
|
52
|
+
installed: number;
|
|
53
|
+
imports: string[];
|
|
54
|
+
bins: string[];
|
|
55
|
+
withheld: string[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Run the release phases for `publishTargets` (at their assigned versions).
|
|
60
|
+
* `onProgress` observes results as they land so a caller can report partial
|
|
61
|
+
* progress when a later publish fails.
|
|
62
|
+
*/
|
|
63
|
+
export declare function runRegistryReleasePublish(options: {
|
|
64
|
+
/** The release run's Platform Registry client, bound to the command's runtime. */
|
|
65
|
+
platformRegistry: PlatformRegistryClient;
|
|
66
|
+
publishTargets: readonly RegistryReleasePublishTarget[];
|
|
67
|
+
buildPackages: readonly RegistryReleaseBuildPackage[];
|
|
68
|
+
availabilityPlan: RegistryReleaseAvailabilityPlan;
|
|
69
|
+
expectedGitHeads: ReadonlyMap<string, string>;
|
|
70
|
+
/** Workspace versions for `workspace:` selectors, with assigned versions applied. */
|
|
71
|
+
versions: Map<string, string>;
|
|
72
|
+
releasePlan: RegistryReleaseSetPlan;
|
|
73
|
+
releaseWorkspace: ManagedRegistryReleaseWorkspaceWire;
|
|
74
|
+
workspaceRoot: string;
|
|
75
|
+
workspace: ReadonlyMap<string, RegistryReleaseWorkspacePackage>;
|
|
76
|
+
sourceRegistry: ReleaseConsumerSourceRegistry;
|
|
77
|
+
sealedWorkspaceInputs: readonly SealedWorkspaceRegistryInput[];
|
|
78
|
+
/** Temporary directory the release seals artifacts into. */
|
|
79
|
+
sealArtifactDir: string;
|
|
80
|
+
consumerPath?: string;
|
|
81
|
+
settings: RegistryReleasePublishSettings;
|
|
82
|
+
dryRun: boolean;
|
|
83
|
+
quiet: boolean;
|
|
84
|
+
ui: UIContext;
|
|
85
|
+
execution: RuntimeExecution;
|
|
86
|
+
/** The runtime child environments are composed from; the release jobs
|
|
87
|
+
* client dispatches through the same runtime's Workers client. */
|
|
88
|
+
runtime: ChildEnvRuntime & VibesRuntime;
|
|
89
|
+
onProgress(results: readonly PublishResult[]): void;
|
|
90
|
+
/** ADR-0017 RC major-version exception: skip only the landed-on-main checks. */
|
|
91
|
+
rcMajorException?: boolean;
|
|
92
|
+
}): Promise<RegistryReleasePublishOutcome>;
|
|
93
|
+
//# sourceMappingURL=release-phases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-phases.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/release-phases.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EACV,sBAAsB,EACtB,+BAA+B,EAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAGzE,OAAO,KAAK,EAA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,SAAS,4BAA4B,EAAE,CAAC;IAC/D,4DAA4D;IAC5D,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,8BAA8B,CAAC;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,EAAE,SAAS,CAAC;IACd,SAAS,EAAE,gBAAgB,CAAC;IAC5B;sEACkE;IAClE,OAAO,EAAE,eAAe,GAAG,YAAY,CAAC;IACxC,UAAU,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,GAAG,IAAI,CAAC;IACpD,gFAAgF;IAChF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CA0JzC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
2
|
+
import { publishPackage } from "./publish-package.js";
|
|
3
|
+
import { dispatchSealedReleasePublish } from "./release-jobs.client.js";
|
|
4
|
+
import { runSealedReleaseConsumerChecks } from "./release-consumer-proof.js";
|
|
5
|
+
import { assertRegistryReleaseSourceCommit, assertRegistryReleaseSnapshots, assertRegistryReleaseTargetSnapshot, expectedGitHeadForTarget, } from "./source-snapshot.js";
|
|
6
|
+
/** Seal the whole release set before the first real remote mutation. */
|
|
7
|
+
export async function runRegistryReleasePhases(options) {
|
|
8
|
+
const sealed = [];
|
|
9
|
+
for (const target of options.targets)
|
|
10
|
+
sealed.push(await options.preflight(target));
|
|
11
|
+
await options.afterSeal?.(sealed);
|
|
12
|
+
await options.beforePublish?.(sealed);
|
|
13
|
+
if (options.dryRun)
|
|
14
|
+
return sealed;
|
|
15
|
+
const results = [];
|
|
16
|
+
for (let index = 0; index < options.targets.length; index += 1) {
|
|
17
|
+
const result = await options.publish(options.targets[index], index, sealed[index]);
|
|
18
|
+
results.push(result);
|
|
19
|
+
await options.onPublishProgress?.(results);
|
|
20
|
+
await options.afterPublish?.(result, index);
|
|
21
|
+
}
|
|
22
|
+
return results;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Run the release phases for `publishTargets` (at their assigned versions).
|
|
26
|
+
* `onProgress` observes results as they land so a caller can report partial
|
|
27
|
+
* progress when a later publish fails.
|
|
28
|
+
*/
|
|
29
|
+
export async function runRegistryReleasePublish(options) {
|
|
30
|
+
const { settings, execution, expectedGitHeads, ui, quiet } = options;
|
|
31
|
+
const outcome = {};
|
|
32
|
+
let delayNextPublish = false;
|
|
33
|
+
const results = await runRegistryReleasePhases({
|
|
34
|
+
targets: options.publishTargets,
|
|
35
|
+
dryRun: options.dryRun,
|
|
36
|
+
preflight: async (target) => {
|
|
37
|
+
const reused = options.availabilityPlan.reuse.get(target.name);
|
|
38
|
+
if (reused)
|
|
39
|
+
return reused;
|
|
40
|
+
return publishPackage({
|
|
41
|
+
platformRegistry: options.platformRegistry,
|
|
42
|
+
packageDir: target.packageDir,
|
|
43
|
+
workspaceRoot: options.workspaceRoot,
|
|
44
|
+
registry: target.registry,
|
|
45
|
+
scope: settings.scope,
|
|
46
|
+
tag: settings.tag,
|
|
47
|
+
otp: undefined,
|
|
48
|
+
provenance: settings.provenance,
|
|
49
|
+
dryRun: true,
|
|
50
|
+
rateLimitRetries: 0,
|
|
51
|
+
rateLimitDelayMs: 0,
|
|
52
|
+
ui,
|
|
53
|
+
versions: options.versions,
|
|
54
|
+
sourceRegistry: options.sourceRegistry,
|
|
55
|
+
version: target.version,
|
|
56
|
+
execution,
|
|
57
|
+
runtime: options.runtime,
|
|
58
|
+
quiet,
|
|
59
|
+
managedLease: false,
|
|
60
|
+
authorityVerify: false,
|
|
61
|
+
artifactDir: options.sealArtifactDir,
|
|
62
|
+
workspaceProvenance: target.workspaceProvenance,
|
|
63
|
+
expectedGitHead: expectedGitHeadForTarget(target, expectedGitHeads),
|
|
64
|
+
build: false,
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
afterSeal: async (sealed) => {
|
|
68
|
+
const pathOwner = await getRuntimePath(options.runtime);
|
|
69
|
+
const checks = await runSealedReleaseConsumerChecks({
|
|
70
|
+
sealed,
|
|
71
|
+
smoke: {
|
|
72
|
+
workspaceRoot: options.workspaceRoot,
|
|
73
|
+
execution,
|
|
74
|
+
runtime: options.runtime,
|
|
75
|
+
ui,
|
|
76
|
+
quiet,
|
|
77
|
+
sourceRegistry: options.sourceRegistry,
|
|
78
|
+
consumerPath: options.consumerPath,
|
|
79
|
+
},
|
|
80
|
+
proof: {
|
|
81
|
+
artifactDir: options.sealArtifactDir,
|
|
82
|
+
plan: options.releasePlan,
|
|
83
|
+
workspaceRoot: options.workspaceRoot,
|
|
84
|
+
workspace: options.workspace,
|
|
85
|
+
execution,
|
|
86
|
+
runtime: options.runtime,
|
|
87
|
+
sourceRegistry: options.sourceRegistry,
|
|
88
|
+
sealedWorkspaceInputs: options.sealedWorkspaceInputs,
|
|
89
|
+
reusedTarballs: new Set([...options.availabilityPlan.reuse.values()].flatMap((result) => result.tarball ? [pathOwner.basename(result.tarball)] : [])),
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
outcome.consumerSmoke = checks.consumerSmoke;
|
|
93
|
+
outcome.consumerProof = checks.consumerProof;
|
|
94
|
+
},
|
|
95
|
+
beforePublish: async (sealed) => {
|
|
96
|
+
for (const result of sealed) {
|
|
97
|
+
if (result.skipped)
|
|
98
|
+
continue;
|
|
99
|
+
const target = options.publishTargets.find((candidate) => candidate.name === result.name);
|
|
100
|
+
if (!target) {
|
|
101
|
+
throw new Error(`Sealed release source commit differs for ${result.name}`);
|
|
102
|
+
}
|
|
103
|
+
const expected = expectedGitHeadForTarget(target, expectedGitHeads);
|
|
104
|
+
assertRegistryReleaseSourceCommit({
|
|
105
|
+
expected,
|
|
106
|
+
observed: result.gitHead,
|
|
107
|
+
message: `Sealed release source commit differs for ${result.name}`,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
await assertRegistryReleaseSnapshots({
|
|
111
|
+
targets: options.buildPackages,
|
|
112
|
+
execution,
|
|
113
|
+
runtime: options.runtime,
|
|
114
|
+
expectedGitHeads,
|
|
115
|
+
requireLanded: options.rcMajorException !== true,
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
publish: async (target, _index, sealed) => {
|
|
119
|
+
await assertRegistryReleaseTargetSnapshot({
|
|
120
|
+
target,
|
|
121
|
+
execution,
|
|
122
|
+
runtime: options.runtime,
|
|
123
|
+
expectedGitHeads,
|
|
124
|
+
requireLanded: options.rcMajorException !== true,
|
|
125
|
+
});
|
|
126
|
+
const expectedGitHead = expectedGitHeadForTarget(target, expectedGitHeads);
|
|
127
|
+
if (!sealed.skipped) {
|
|
128
|
+
assertRegistryReleaseSourceCommit({
|
|
129
|
+
expected: expectedGitHead,
|
|
130
|
+
observed: sealed.gitHead,
|
|
131
|
+
message: `Sealed release source commit differs for ${sealed.name}`,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
const delayBeforePublish = delayNextPublish;
|
|
135
|
+
delayNextPublish = false;
|
|
136
|
+
return sealed.skipped
|
|
137
|
+
? { ...sealed, dryRun: false }
|
|
138
|
+
: dispatchSealedReleasePublish({
|
|
139
|
+
runtime: options.runtime,
|
|
140
|
+
target,
|
|
141
|
+
sealedArtifact: sealed,
|
|
142
|
+
workspaceRoot: options.workspaceRoot,
|
|
143
|
+
scope: settings.scope,
|
|
144
|
+
tag: settings.tag,
|
|
145
|
+
otp: settings.otp,
|
|
146
|
+
provenance: settings.provenance,
|
|
147
|
+
rateLimitRetries: settings.rateLimitRetries,
|
|
148
|
+
rateLimitDelayMs: settings.rateLimitDelayMs,
|
|
149
|
+
publishDelayMs: settings.publishDelayMs,
|
|
150
|
+
delayBeforePublish,
|
|
151
|
+
quiet,
|
|
152
|
+
managedLease: settings.managedLease,
|
|
153
|
+
authorityVerify: settings.authorityVerify,
|
|
154
|
+
artifactDir: settings.artifactDir,
|
|
155
|
+
workspaceProvenance: target.workspaceProvenance,
|
|
156
|
+
expectedGitHead,
|
|
157
|
+
releaseWorkspace: options.releaseWorkspace,
|
|
158
|
+
publishTargets: options.publishTargets,
|
|
159
|
+
tokenSecret: settings.tokenSecret,
|
|
160
|
+
ui,
|
|
161
|
+
});
|
|
162
|
+
},
|
|
163
|
+
afterPublish: async (result, index) => {
|
|
164
|
+
const hasNext = index < options.publishTargets.length - 1;
|
|
165
|
+
delayNextPublish =
|
|
166
|
+
!options.dryRun &&
|
|
167
|
+
hasNext &&
|
|
168
|
+
settings.publishDelayMs > 0 &&
|
|
169
|
+
!result.skipped;
|
|
170
|
+
},
|
|
171
|
+
onPublishProgress: (published) => options.onProgress(published),
|
|
172
|
+
});
|
|
173
|
+
return { ...outcome, results };
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=release-phases.js.map
|