@vibesdotdev/infra-deploy 0.0.2 → 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 +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 +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 +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
|
@@ -1,271 +1,509 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { CapabilityError, CaughtFailureSchema, requireRuntimeCwd, settle } from '@vibesdotdev/kernel';
|
|
2
|
+
import { DeploymentReleaseRequestSchema, DeploymentReleaseResultSchema } from '@vibesdotdev/infra-core/kinds';
|
|
3
|
+
import { z } from 'zod/v4';
|
|
4
|
+
import { readString } from "../shared/option-strings.js";
|
|
5
|
+
import { readCredentialSource } from "../shared/credential-source.js";
|
|
6
|
+
import { getRuntimePath } from '@vibesdotdev/paths';
|
|
7
7
|
import { loadDeploymentConfig } from "../../config-loader.js";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import { collectDeployReadinessReport } from "../readiness/infra-deploy.readiness.cli-command.impl.js";
|
|
9
|
+
import { resolveRuntimeExecution } from "../shared/runtime-execution.js";
|
|
10
|
+
import { withImmutableDeploymentWorkspace } from "./immutable-deployment-workspace.js";
|
|
11
|
+
import { WorkspaceCompositionLockPathSchema } from '@vibesdotdev/workspace-schemas/isolation';
|
|
12
|
+
import { emitDeploymentMarker } from "./deployment-marker.js";
|
|
13
|
+
import { runDeploySmokeProbe } from "./deploy-smoke.js";
|
|
14
|
+
import { resolveGitRepositoryRoot, resolveGitSourceIdentity } from "./git-source-identity.js";
|
|
15
|
+
import { completeDeploymentRun, startDeploymentRun, deploymentRunStore } from "./deployment-run-ledger.js";
|
|
16
|
+
import { createDeploymentReleaseHost, deploymentModuleEvaluation, providerOptions, resolveDeploymentProvider } from "./deployment-provider.js";
|
|
17
|
+
import { deploymentEnvironmentRunRefusal, formatDeploymentEnvironmentResolution, selectDeploymentEnvironment } from "../../deployment-environment.js";
|
|
18
|
+
function failureMessage(failure) {
|
|
19
|
+
return failure instanceof Error ? failure.message : failure.description;
|
|
11
20
|
}
|
|
21
|
+
const TruthyBooleanValueSchema = z.union([z.literal(true), z.literal('true')]);
|
|
12
22
|
function readBoolean(v) {
|
|
13
|
-
|
|
23
|
+
const parsed = TruthyBooleanValueSchema.safeParse(v);
|
|
24
|
+
return parsed.success;
|
|
14
25
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (!workspaceRootDir || workspaceRootDir === '.')
|
|
19
|
-
return process.cwd();
|
|
20
|
-
return resolve(appDir, workspaceRootDir);
|
|
26
|
+
function readErrorMessage(value) {
|
|
27
|
+
const failure = CaughtFailureSchema.parse(value);
|
|
28
|
+
return failure instanceof Error ? failure.message : failure.description;
|
|
21
29
|
}
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
export function failedDeploymentConfigLoad(err) {
|
|
31
|
+
const failure = CaughtFailureSchema.parse(err);
|
|
32
|
+
if (failure instanceof CapabilityError)
|
|
33
|
+
return failure;
|
|
34
|
+
return new CapabilityError(`Failed to load deployment config: ${failure instanceof Error ? failure.message : failure.description}`, 'INVALID_INPUT', { cause: failure });
|
|
35
|
+
}
|
|
36
|
+
export function emitDeployOutputLine(ui, stream, line) {
|
|
37
|
+
if (stream === 'stderr')
|
|
38
|
+
ui.error(line);
|
|
39
|
+
else
|
|
40
|
+
ui.log(line);
|
|
41
|
+
}
|
|
42
|
+
function readinessEvidenceForLedger(report) {
|
|
43
|
+
return {
|
|
44
|
+
status: report.summary.status,
|
|
45
|
+
generatedAt: report.generatedAt,
|
|
46
|
+
passing: report.summary.passing,
|
|
47
|
+
warnings: report.summary.warnings,
|
|
48
|
+
failures: report.summary.failures,
|
|
49
|
+
unknown: report.summary.unknown,
|
|
50
|
+
checks: report.checks
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The workspace a deploy builds in. An app that declares
|
|
55
|
+
* `build.workspaceRootDir` builds there (relative to the app). Otherwise it
|
|
56
|
+
* builds in the bound workspace (`runtime/workspace-path`: `--workspace-root`,
|
|
57
|
+
* else the nearest workspace root above the invocation cwd), which must
|
|
58
|
+
* contain the app. An app outside it fails closed: nothing falls back to the
|
|
59
|
+
* app's repository or an environment variable.
|
|
60
|
+
*/
|
|
61
|
+
function appIsInsideWorkspace(paths, workspace, app) {
|
|
62
|
+
const relative = paths.relative(workspace, app);
|
|
63
|
+
return (relative === '' ||
|
|
64
|
+
(!paths.isAbsolute(relative) &&
|
|
65
|
+
relative !== '..' &&
|
|
66
|
+
!relative.startsWith('../') &&
|
|
67
|
+
!relative.startsWith('..\\')));
|
|
68
|
+
}
|
|
69
|
+
export function deployWorkspaceRoot(paths, workspaceRootDir, appDir, boundWorkspace) {
|
|
70
|
+
if (workspaceRootDir && workspaceRootDir !== '.')
|
|
71
|
+
return paths.resolve(appDir, workspaceRootDir);
|
|
72
|
+
const workspace = paths.resolve(boundWorkspace);
|
|
73
|
+
const app = paths.resolve(appDir);
|
|
74
|
+
if (appIsInsideWorkspace(paths, workspace, app))
|
|
75
|
+
return workspace;
|
|
76
|
+
throw new CapabilityError(`The app ${app} is outside the bound workspace ${workspace}.`, 'INVALID_INPUT', {
|
|
77
|
+
reason: 'app-outside-workspace',
|
|
78
|
+
recoveryHint: "Run from the app's workspace, or pass --workspace-root <dir> for a workspace that contains the app.",
|
|
79
|
+
details: { appDir: app, workspaceRoot: workspace }
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function logDeploymentMarkerResult(result, onLine) {
|
|
83
|
+
if (result.status === 'sent') {
|
|
84
|
+
const suffix = result.markerId ? ` (${result.markerId})` : '';
|
|
85
|
+
onLine('stdout', `[deploy-marker] recorded for ${result.appId}${suffix}`);
|
|
86
|
+
return;
|
|
27
87
|
}
|
|
28
|
-
if (
|
|
29
|
-
|
|
30
|
-
|
|
88
|
+
if (result.status === 'skipped') {
|
|
89
|
+
onLine('stderr', `[deploy-marker] skipped: ${result.reason}`);
|
|
90
|
+
return;
|
|
31
91
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
92
|
+
onLine('stderr', `[deploy-marker] failed: ${result.reason}`);
|
|
93
|
+
}
|
|
94
|
+
function logDeploymentRunLedgerResult(result, onLine) {
|
|
95
|
+
if (result.status === 'recorded') {
|
|
96
|
+
onLine('stdout', `[deploy-ledger] recorded run ${result.runId}`);
|
|
97
|
+
return;
|
|
36
98
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
envName = envConfig.name;
|
|
41
|
-
envTier = envConfig.tier ?? 'local';
|
|
42
|
-
}
|
|
43
|
-
catch {
|
|
44
|
-
// Fall back to local when config environment resolution is unavailable.
|
|
45
|
-
}
|
|
99
|
+
if (result.status === 'skipped') {
|
|
100
|
+
onLine('stderr', `[deploy-ledger] skipped: ${result.reason}`);
|
|
101
|
+
return;
|
|
46
102
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
103
|
+
onLine('stderr', `[deploy-ledger] failed: ${result.reason}`);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The fail-closed deploy prologue, extracted as one owner-level seam so the
|
|
107
|
+
* ordering guarantee is testable via dependency injection (resolver + readiness).
|
|
108
|
+
*
|
|
109
|
+
* Resolves the provider environment FIRST, runs readiness UNDER that same
|
|
110
|
+
* environment when the provider renders under it (so the deployment module
|
|
111
|
+
* projects post-resolution bindings), then runs the environment gate. If the
|
|
112
|
+
* projection is a strip (required secrets declared but unbound), it THROWS the
|
|
113
|
+
* refusal here — before the caller records any ledger entry or dispatches to a
|
|
114
|
+
* provider. The returned `envOverrides` is the SAME object the provider's
|
|
115
|
+
* release receives, so nothing downstream reads pre-resolution state.
|
|
116
|
+
*/
|
|
117
|
+
export async function prepareDeployProjection(input, deps = {}) {
|
|
118
|
+
const collectReadiness = deps.collectReadiness ?? collectDeployReadinessReport;
|
|
119
|
+
const resolveEnvironment = deps.resolveEnvironment ?? (() => input.implementation.environment({
|
|
120
|
+
environment: input.selectedEnvironment,
|
|
121
|
+
credentialSource: input.credentialSource,
|
|
122
|
+
log: input.ui
|
|
123
|
+
}));
|
|
124
|
+
const providerEnvironment = await resolveEnvironment();
|
|
125
|
+
const envOverrides = providerEnvironment.variables;
|
|
126
|
+
const readinessInput = {
|
|
127
|
+
appDir: input.appDir,
|
|
128
|
+
workspaceRoot: input.workspaceRoot,
|
|
129
|
+
displayBase: input.displayBase,
|
|
130
|
+
environment: input.selectedEnvironment,
|
|
131
|
+
provider: input.provider,
|
|
132
|
+
runtime: input.runtime,
|
|
133
|
+
execution: input.execution,
|
|
134
|
+
// execute() loaded the deployment module before the provider environment
|
|
135
|
+
// was resolved. A same-process import would reuse that stale module; the
|
|
136
|
+
// fresh evaluation renders under the resolved projection, passed as data.
|
|
137
|
+
freshDeploymentProjection: providerEnvironment.projected
|
|
138
|
+
};
|
|
139
|
+
if (providerEnvironment.projected) {
|
|
140
|
+
readinessInput.projectionEnvironment = envOverrides;
|
|
55
141
|
}
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (!d.tiers || d.tiers.length === 0)
|
|
61
|
-
return true;
|
|
62
|
-
return d.tiers.some((tier) => tierCandidates.has(tier));
|
|
63
|
-
})
|
|
64
|
-
.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
|
|
65
|
-
const out = {};
|
|
66
|
-
for (const descriptor of candidates) {
|
|
67
|
-
const store = (await runtime
|
|
68
|
-
.query('secrets/store')
|
|
69
|
-
.withId(descriptor.id)
|
|
70
|
-
.resolve());
|
|
71
|
-
if (!process.env.CLOUDFLARE_API_TOKEN && !out.CLOUDFLARE_API_TOKEN) {
|
|
72
|
-
const value = await store.get(envName, CLOUDFLARE_API_TOKEN_KEY);
|
|
73
|
-
if (value && value.length > 0) {
|
|
74
|
-
out.CLOUDFLARE_API_TOKEN = value;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (!process.env.CLOUDFLARE_ACCOUNT_ID && !out.CLOUDFLARE_ACCOUNT_ID) {
|
|
78
|
-
const value = await store.get(envName, CLOUDFLARE_ACCOUNT_ID_KEY);
|
|
79
|
-
if (value && value.length > 0) {
|
|
80
|
-
out.CLOUDFLARE_ACCOUNT_ID = value;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (out.CLOUDFLARE_API_TOKEN && out.CLOUDFLARE_ACCOUNT_ID)
|
|
84
|
-
break;
|
|
142
|
+
const readinessReport = await collectReadiness(readinessInput);
|
|
143
|
+
const environmentResolution = readinessReport.environmentResolution;
|
|
144
|
+
if (input.emitEnvironmentLine) {
|
|
145
|
+
input.ui.info(`[environment] ${formatDeploymentEnvironmentResolution(environmentResolution)}`);
|
|
85
146
|
}
|
|
86
|
-
|
|
87
|
-
|
|
147
|
+
const environmentRefusal = deploymentEnvironmentRunRefusal(environmentResolution, {
|
|
148
|
+
environment: input.targetEnvironment,
|
|
149
|
+
providerEnvironment: input.wranglerEnvironmentOverride
|
|
150
|
+
});
|
|
151
|
+
if (environmentRefusal) {
|
|
152
|
+
throw new CapabilityError(environmentRefusal.message, environmentRefusal.code, {
|
|
153
|
+
details: environmentResolution,
|
|
154
|
+
recoveryHint: environmentRefusal.recoveryHint
|
|
155
|
+
});
|
|
88
156
|
}
|
|
89
|
-
return
|
|
157
|
+
return { envOverrides, readinessReport, environmentResolution };
|
|
158
|
+
}
|
|
159
|
+
/** The marker/ledger record of a release; one shape for every provider. */
|
|
160
|
+
function releaseRecord(release, providerTraceRefOverride) {
|
|
161
|
+
return {
|
|
162
|
+
deployedUrl: release.deployedUrl,
|
|
163
|
+
externalDeploymentId: release.externalDeploymentId,
|
|
164
|
+
providerTraceRef: providerTraceRefOverride ?? release.providerTraceRef
|
|
165
|
+
};
|
|
90
166
|
}
|
|
91
167
|
export default {
|
|
92
|
-
async execute(args, opts) {
|
|
93
|
-
const runtime =
|
|
94
|
-
const
|
|
95
|
-
const
|
|
168
|
+
async execute(args, opts, context) {
|
|
169
|
+
const { runtime } = context;
|
|
170
|
+
const cwd = requireRuntimeCwd(runtime);
|
|
171
|
+
const ui = await runtime.context('cli/ui');
|
|
172
|
+
const execution = await resolveRuntimeExecution(runtime);
|
|
173
|
+
const paths = await getRuntimePath(runtime);
|
|
174
|
+
const pathArg = paths.resolve(cwd, readString(args.path) ?? '.');
|
|
96
175
|
const output = readString(opts.output) ?? 'text';
|
|
97
176
|
const skipBuild = readBoolean(opts.skipBuild);
|
|
177
|
+
const inPlace = readBoolean(opts.inPlace);
|
|
98
178
|
const skipD1Migrations = readBoolean(opts.skipD1Migrations);
|
|
99
179
|
const dryRun = readBoolean(opts.dryRun);
|
|
100
|
-
const workspaceRootOverride = readString(opts.workspaceRoot);
|
|
101
180
|
const targetEnvironment = readString(opts.environment);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
181
|
+
const credentialSource = readCredentialSource(opts);
|
|
182
|
+
const wranglerEnvironmentOverride = readString(opts.wranglerEnv);
|
|
183
|
+
const selectedEnvironment = selectDeploymentEnvironment({
|
|
184
|
+
environment: targetEnvironment,
|
|
185
|
+
providerEnvironment: wranglerEnvironmentOverride
|
|
186
|
+
});
|
|
187
|
+
const logsRef = readString(opts.logsRef);
|
|
188
|
+
const providerTraceRefOverride = readString(opts.providerTraceRef);
|
|
189
|
+
const remediationUrl = readString(opts.remediationUrl);
|
|
190
|
+
// Identity load: provider and app directory are needed to resolve the
|
|
191
|
+
// projection. Readiness and the provider's render re-evaluate under the
|
|
192
|
+
// resolved projection, passed as data; this load renders under an empty one.
|
|
193
|
+
const loadedOutcome = await settle(async () => loadDeploymentConfig(pathArg, { runtime, projectionEnvironment: {} }));
|
|
194
|
+
if (!loadedOutcome.ok) {
|
|
195
|
+
throw failedDeploymentConfigLoad(loadedOutcome.cause);
|
|
110
196
|
}
|
|
197
|
+
const loaded = loadedOutcome.value;
|
|
111
198
|
const { deployment, provider, appDir } = loaded;
|
|
199
|
+
// The provider the deployment declares, resolved through the runtime; its
|
|
200
|
+
// own schema refuses options it cannot honour before anything is recorded.
|
|
201
|
+
const { implementation } = await resolveDeploymentProvider(runtime, provider);
|
|
202
|
+
const options = providerOptions(opts);
|
|
203
|
+
implementation.validateOptions(options);
|
|
204
|
+
const appRepositoryRoot = await resolveGitRepositoryRoot(runtime, execution, appDir);
|
|
205
|
+
const workspaceRoot = deployWorkspaceRoot(paths, deployment.build.workspaceRootDir, appDir, await runtime.context('runtime/workspace-path'));
|
|
206
|
+
// Fail-closed prologue: resolve the provider environment FIRST, run readiness
|
|
207
|
+
// under it, and refuse a stripped projection — all BEFORE the ledger and the
|
|
208
|
+
// release below. See prepareDeployProjection. The returned envOverrides is the
|
|
209
|
+
// object the release receives, so nothing downstream reads pre-resolution state.
|
|
210
|
+
const { envOverrides, readinessReport, environmentResolution } = await prepareDeployProjection({
|
|
211
|
+
provider,
|
|
212
|
+
implementation,
|
|
213
|
+
appDir,
|
|
214
|
+
workspaceRoot,
|
|
215
|
+
displayBase: cwd,
|
|
216
|
+
selectedEnvironment,
|
|
217
|
+
targetEnvironment,
|
|
218
|
+
wranglerEnvironmentOverride,
|
|
219
|
+
credentialSource,
|
|
220
|
+
runtime,
|
|
221
|
+
execution,
|
|
222
|
+
ui,
|
|
223
|
+
emitEnvironmentLine: output === 'text'
|
|
224
|
+
});
|
|
225
|
+
const readinessEvidence = readinessEvidenceForLedger(readinessReport);
|
|
112
226
|
if (output === 'text') {
|
|
113
227
|
ui.info(`Deploying ${deployment.appName} (${deployment.appId}) via ${provider}`);
|
|
114
228
|
}
|
|
115
|
-
const onLine = (
|
|
229
|
+
const onLine = (stream, line) => {
|
|
116
230
|
if (output === 'text')
|
|
117
|
-
ui
|
|
231
|
+
emitDeployOutputLine(ui, stream, line);
|
|
118
232
|
};
|
|
233
|
+
// One resolution, passed explicitly to every marker/ledger site: manual
|
|
234
|
+
// deploys otherwise record NULL commits (only CI env vars were read).
|
|
235
|
+
const sourceIdentity = await resolveGitSourceIdentity(runtime, execution, appDir);
|
|
236
|
+
// Bake the deployed commit into the build so the LIVE origin can report which
|
|
237
|
+
// build it is serving. `apps/sveltekit-version.mjs` already reads
|
|
238
|
+
// `VIBES_BUILD_VERSION` into `kit.version.name`, which SvelteKit publishes at
|
|
239
|
+
// `/_app/version.json` — public, pre-auth, no API token. Without this it falls
|
|
240
|
+
// back to `Date.now()`, which changes per build but cannot be compared against
|
|
241
|
+
// anything, so a deploy could not be distinguished from a stale worker.
|
|
242
|
+
if (sourceIdentity.commit) {
|
|
243
|
+
envOverrides.VIBES_BUILD_VERSION = sourceIdentity.commit;
|
|
244
|
+
}
|
|
245
|
+
const startedRun = await startDeploymentRun(runtime, {
|
|
246
|
+
store: deploymentRunStore(runtime),
|
|
247
|
+
deployment,
|
|
248
|
+
provider,
|
|
249
|
+
environment: environmentResolution.environment,
|
|
250
|
+
appDir,
|
|
251
|
+
dryRun,
|
|
252
|
+
skipBuild,
|
|
253
|
+
skipD1Migrations,
|
|
254
|
+
branch: readString(opts.branch) ?? sourceIdentity.branch,
|
|
255
|
+
commit: sourceIdentity.commit,
|
|
256
|
+
logsRef,
|
|
257
|
+
providerTraceRef: providerTraceRefOverride,
|
|
258
|
+
remediationUrl,
|
|
259
|
+
readinessEvidence
|
|
260
|
+
});
|
|
261
|
+
const deploymentRunId = startedRun.status === 'recorded' ? startedRun.runId : undefined;
|
|
262
|
+
if (output === 'text')
|
|
263
|
+
logDeploymentRunLedgerResult(startedRun, onLine);
|
|
264
|
+
if (!dryRun && startedRun.status !== 'recorded') {
|
|
265
|
+
throw new CapabilityError('Refusing real deploy because the deployment run ledger could not be recorded.', 'UNAVAILABLE', { details: { ledgerStatus: startedRun.status, reason: startedRun.reason } });
|
|
266
|
+
}
|
|
119
267
|
try {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
for (const cmd of deployment.preDeployCommands) {
|
|
128
|
-
if (cmd.description) {
|
|
129
|
-
onLine('stdout', ` ${cmd.description}`);
|
|
130
|
-
}
|
|
131
|
-
if (dryRun) {
|
|
132
|
-
onLine('stdout', ` [dry-run] ${cmd.command}`);
|
|
133
|
-
continue;
|
|
134
|
-
}
|
|
135
|
-
const [bin, ...args] = cmd.command.split(' ').filter(Boolean);
|
|
136
|
-
if (!bin)
|
|
137
|
-
continue;
|
|
138
|
-
const child = spawnSync(bin, args, {
|
|
139
|
-
cwd: appDir,
|
|
140
|
-
stdio: 'inherit',
|
|
141
|
-
env: process.env
|
|
142
|
-
});
|
|
143
|
-
if (child.status !== 0) {
|
|
144
|
-
throw new Error(`Pre-deploy command failed: ${cmd.command} (exit=${child.status ?? child.error?.message ?? 'unknown'})`);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
onLine('stdout', 'Pre-deploy commands complete.');
|
|
148
|
-
}
|
|
149
|
-
// Regen gate: refuse to deploy a stale wrangler.jsonc. For apps with
|
|
150
|
-
// `managed: true` in deployment.config.ts, this enforces that what's
|
|
151
|
-
// on disk matches what the typed config would produce. Unmanaged apps
|
|
152
|
-
// pass through (the gate is opt-in until every app is migrated).
|
|
153
|
-
const regen = await regenerateApp(appDir, { mode: 'check' });
|
|
154
|
-
if (regen.status === 'drift') {
|
|
155
|
-
const uuidRe = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
156
|
-
const isKvIdDrift = regen.diff &&
|
|
157
|
-
/^[\+\-]\s+"id":\s*"[^"]*"/m.test(regen.diff) &&
|
|
158
|
-
!uuidRe.test(regen.diff.replace(/"id":\s*"([^"]*)"/g, '$1').slice(0, 36));
|
|
159
|
-
if (!isKvIdDrift) {
|
|
160
|
-
const detail = regen.diff ? `\n${regen.diff}` : '';
|
|
161
|
-
throw new Error(`wrangler.jsonc drift for ${regen.appId} — regenerate before deploy (run \`vibes infra deploy regenerate ${appDir}\`)${detail}`);
|
|
162
|
-
}
|
|
163
|
-
onLine('stdout', `[regen] wrangler.jsonc verified (unchanged — kv namespace IDs resolved)`);
|
|
164
|
-
}
|
|
165
|
-
if (regen.status === 'error') {
|
|
166
|
-
throw new Error(`regenerate check failed for ${appDir}: ${regen.reason ?? 'unknown error'}`);
|
|
167
|
-
}
|
|
168
|
-
if (regen.status === 'updated' || regen.status === 'unchanged') {
|
|
169
|
-
onLine('stdout', `[regen] wrangler.jsonc verified (${regen.status})`);
|
|
170
|
-
}
|
|
171
|
-
else if (regen.status === 'skipped') {
|
|
172
|
-
onLine('stdout', `[regen] skipped: ${regen.reason ?? 'not managed'}`);
|
|
173
|
-
}
|
|
174
|
-
const client = await getCloudflareWorkersDeployClient();
|
|
175
|
-
const envOverrides = await resolveCloudflareEnvFromSecretsStore(runtime, ui, targetEnvironment);
|
|
176
|
-
// Provisioning for KV, D1, R2 is now always attempted when declared
|
|
177
|
-
// (creation + ID reconciliation happens in the client using REST API).
|
|
178
|
-
// Migrations remain opt-in via autoMigrateD1 for safety.
|
|
179
|
-
const rawConfig = loaded.raw;
|
|
180
|
-
const autoMigrateD1 = rawConfig.autoMigrateD1 === true && !skipD1Migrations;
|
|
181
|
-
if (skipD1Migrations) {
|
|
182
|
-
onLine('stdout', 'Skipping D1 migrations for this deploy.');
|
|
183
|
-
}
|
|
184
|
-
const generatedWranglerConfig = typeof rawConfig.generateWranglerConfig === 'function'
|
|
185
|
-
? rawConfig.generateWranglerConfig()
|
|
186
|
-
: loaded.wranglerJsoncString
|
|
187
|
-
? JSON.parse(loaded.wranglerJsoncString.replace(/^\s*\/\/.*$/gm, ''))
|
|
188
|
-
: rawConfig;
|
|
189
|
-
const d1Databases = (rawConfig.d1Databases ??
|
|
190
|
-
rawConfig.d1_databases ??
|
|
191
|
-
generatedWranglerConfig.d1Databases ??
|
|
192
|
-
generatedWranglerConfig.d1_databases) ?? undefined;
|
|
193
|
-
const r2Buckets = rawConfig.r2_buckets ?? undefined;
|
|
194
|
-
const result = await client.deployWorker({
|
|
268
|
+
let release;
|
|
269
|
+
const variables = { ...envOverrides };
|
|
270
|
+
if (sourceIdentity.commit)
|
|
271
|
+
variables.VIBES_BUILD_VERSION = sourceIdentity.commit;
|
|
272
|
+
const releaseInProcess = async (host, compositionDigest) => {
|
|
273
|
+
return DeploymentReleaseResultSchema.parse(await implementation.release({
|
|
274
|
+
...DeploymentReleaseRequestSchema.parse({
|
|
195
275
|
appDir,
|
|
196
276
|
workspaceRoot,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
277
|
+
repositoryRoot: appRepositoryRoot,
|
|
278
|
+
environment: environmentResolution.environment,
|
|
279
|
+
providerEnvironment: environmentResolution.providerEnvironment ?? null,
|
|
200
280
|
dryRun,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
281
|
+
skipBuild,
|
|
282
|
+
source: {
|
|
283
|
+
commit: sourceIdentity.commit,
|
|
284
|
+
branch: sourceIdentity.branch,
|
|
285
|
+
compositionDigest
|
|
286
|
+
},
|
|
287
|
+
options
|
|
288
|
+
}),
|
|
289
|
+
deployment,
|
|
290
|
+
module: deploymentModuleEvaluation(loaded),
|
|
291
|
+
variables,
|
|
292
|
+
host,
|
|
293
|
+
log: ui,
|
|
294
|
+
onLine
|
|
295
|
+
}));
|
|
296
|
+
};
|
|
297
|
+
if (dryRun || inPlace) {
|
|
298
|
+
release = await releaseInProcess(createDeploymentReleaseHost({
|
|
299
|
+
runtime,
|
|
300
|
+
execution,
|
|
301
|
+
deployment,
|
|
302
|
+
appDir,
|
|
303
|
+
workspaceRoot,
|
|
304
|
+
environment: environmentResolution.environment,
|
|
305
|
+
credentialSource,
|
|
306
|
+
skipBuild,
|
|
307
|
+
dryRun,
|
|
308
|
+
onLine
|
|
309
|
+
}));
|
|
310
|
+
}
|
|
311
|
+
else if (skipBuild) {
|
|
312
|
+
// The receipt is the bytes already in this workspace. A fresh composition
|
|
313
|
+
// does not contain them, so the composition owner only names the identity
|
|
314
|
+
// and the release host seals those bytes before provider effects.
|
|
315
|
+
const isolation = runtime.hasKind('workspace/isolation')
|
|
316
|
+
? await runtime.query('workspace/isolation').resolve()
|
|
317
|
+
: undefined;
|
|
318
|
+
if (!isolation || !appRepositoryRoot || !sourceIdentity.commit) {
|
|
319
|
+
throw new CapabilityError('Skip-build requires a matching immutable source, composition and artifact receipt.', 'INVALID_INPUT', {
|
|
320
|
+
reason: 'skip-build-immutable-receipt-required'
|
|
207
321
|
});
|
|
208
|
-
if (output === 'json') {
|
|
209
|
-
ui.json({
|
|
210
|
-
ok: true,
|
|
211
|
-
provider: 'cloudflare-workers',
|
|
212
|
-
workerName: result.workerName,
|
|
213
|
-
deployedUrl: result.deployedUrl
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
else if (!dryRun) {
|
|
217
|
-
ui.success(result.deployedUrl
|
|
218
|
-
? `Deployed Worker ${result.workerName} at ${result.deployedUrl}`
|
|
219
|
-
: `Deployed Worker ${result.workerName}`);
|
|
220
|
-
}
|
|
221
|
-
return;
|
|
222
322
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
const doGitBranch = readString(opts.doGitBranch);
|
|
228
|
-
const client = await getDigitalOceanAppDeployClient();
|
|
229
|
-
const result = await client.deployApp({
|
|
230
|
-
deployment,
|
|
231
|
-
appId: doAppId,
|
|
232
|
-
region: doRegion,
|
|
233
|
-
git: doGitRepo ? { repoCloneUrl: doGitRepo, branch: doGitBranch ?? 'main' } : undefined,
|
|
234
|
-
dryRun,
|
|
235
|
-
onLine
|
|
323
|
+
const reference = await isolation.prepareComposition(appRepositoryRoot);
|
|
324
|
+
if (reference.parent.repoPath !== workspaceRoot || reference.source.commit !== sourceIdentity.commit) {
|
|
325
|
+
throw new CapabilityError('Skip-build requires a matching immutable source, composition and artifact receipt.', 'INVALID_INPUT', {
|
|
326
|
+
reason: 'skip-build-immutable-receipt-required'
|
|
236
327
|
});
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
328
|
+
}
|
|
329
|
+
const assertSource = async () => {
|
|
330
|
+
const current = await isolation.prepareComposition(appRepositoryRoot);
|
|
331
|
+
if (current.digest !== reference.digest || current.source.commit !== reference.source.commit) {
|
|
332
|
+
throw new CapabilityError('Deployment source identity does not match its admitted composition.', 'CONFLICT', {
|
|
333
|
+
reason: 'deployment-source-identity-mismatch'
|
|
243
334
|
});
|
|
244
335
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
336
|
+
};
|
|
337
|
+
release = await releaseInProcess(createDeploymentReleaseHost({
|
|
338
|
+
runtime,
|
|
339
|
+
execution,
|
|
340
|
+
deployment,
|
|
341
|
+
appDir,
|
|
342
|
+
workspaceRoot,
|
|
343
|
+
environment: environmentResolution.environment,
|
|
344
|
+
credentialSource,
|
|
345
|
+
skipBuild,
|
|
346
|
+
dryRun,
|
|
347
|
+
onLine,
|
|
348
|
+
immutableBuild: {
|
|
349
|
+
compositionDigest: reference.digest,
|
|
350
|
+
sourceCommit: reference.source.commit,
|
|
351
|
+
lockFiles: WorkspaceCompositionLockPathSchema.options,
|
|
352
|
+
assertSource
|
|
249
353
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
354
|
+
}), reference.digest);
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
if (!appRepositoryRoot) {
|
|
358
|
+
throw new CapabilityError('Immutable deployment requires a source repository.', 'INVALID_INPUT', {
|
|
359
|
+
reason: 'deployment-source-repository-missing'
|
|
360
|
+
});
|
|
257
361
|
}
|
|
362
|
+
release = await withImmutableDeploymentWorkspace({
|
|
363
|
+
runtime,
|
|
364
|
+
appDir,
|
|
365
|
+
workspaceRoot,
|
|
366
|
+
repositoryRoot: appRepositoryRoot,
|
|
367
|
+
expectedCommit: sourceIdentity.commit,
|
|
368
|
+
provider,
|
|
369
|
+
appId: deployment.appId,
|
|
370
|
+
options,
|
|
371
|
+
selectedEnvironment,
|
|
372
|
+
targetEnvironment,
|
|
373
|
+
wranglerEnvironmentOverride,
|
|
374
|
+
credentialSource,
|
|
375
|
+
skipBuild,
|
|
376
|
+
dryRun,
|
|
377
|
+
sourceIdentity,
|
|
378
|
+
ui,
|
|
379
|
+
onLine
|
|
380
|
+
});
|
|
258
381
|
}
|
|
382
|
+
const record = releaseRecord(release, providerTraceRefOverride);
|
|
383
|
+
// Live-probe BEFORE recording the marker so the marker states what is
|
|
384
|
+
// actually serving, not what the upload claimed (the marker path has
|
|
385
|
+
// produced a false DEPLOY FAILED under rate limiting before).
|
|
386
|
+
const smokeEnabled = opts.smoke !== false;
|
|
387
|
+
const smokeResult = release.probe && smokeEnabled
|
|
388
|
+
? await runDeploySmokeProbe({
|
|
389
|
+
runtime,
|
|
390
|
+
deployment,
|
|
391
|
+
deployedUrl: release.deployedUrl,
|
|
392
|
+
environmentResolution,
|
|
393
|
+
// Same SHA baked into the build above. Passing it turns the
|
|
394
|
+
// probe from "the origin answered" into "the build I just
|
|
395
|
+
// shipped is the one serving".
|
|
396
|
+
expectedVersion: sourceIdentity.commit,
|
|
397
|
+
onLine
|
|
398
|
+
})
|
|
399
|
+
: undefined;
|
|
400
|
+
if (smokeResult && !smokeResult.ok) {
|
|
401
|
+
// Throw into the shared failure path below — it records the failed
|
|
402
|
+
// marker + ledger row exactly once and owns the exit envelope.
|
|
403
|
+
// No blanket rollback advice: the smoke detail already carries the
|
|
404
|
+
// remedy that fits the specific failure.
|
|
405
|
+
throw new Error(`smoke probe: ${release.externalDeploymentId ?? deployment.appId} uploaded but ${smokeResult.url ?? 'its origin'} did not pass the post-deploy check within the retry window (${smokeResult.detail}). The upload itself succeeded — confirm what is actually serving before reverting anything.`);
|
|
406
|
+
}
|
|
407
|
+
const smokeNotes = smokeResult
|
|
408
|
+
? smokeResult.skipped
|
|
409
|
+
? `smoke SKIPPED: ${smokeResult.detail}`
|
|
410
|
+
: `smoke ok: ${smokeResult.detail}`
|
|
411
|
+
: undefined;
|
|
412
|
+
const released = release.status === 'released';
|
|
413
|
+
const deploymentMarker = released
|
|
414
|
+
? await emitDeploymentMarker({
|
|
415
|
+
runtime,
|
|
416
|
+
deployment,
|
|
417
|
+
provider,
|
|
418
|
+
environment: environmentResolution.environment,
|
|
419
|
+
...record,
|
|
420
|
+
deploymentRunId,
|
|
421
|
+
commit: sourceIdentity.commit,
|
|
422
|
+
branch: sourceIdentity.branch,
|
|
423
|
+
logsRef,
|
|
424
|
+
remediationUrl,
|
|
425
|
+
notes: smokeNotes ?? release.notes
|
|
426
|
+
})
|
|
427
|
+
: undefined;
|
|
428
|
+
const deploymentRun = await completeDeploymentRun({
|
|
429
|
+
store: deploymentRunStore(runtime),
|
|
430
|
+
runId: deploymentRunId,
|
|
431
|
+
status: released ? 'succeeded' : 'dry_run',
|
|
432
|
+
...record,
|
|
433
|
+
logsRef,
|
|
434
|
+
remediationUrl,
|
|
435
|
+
marker: deploymentMarker,
|
|
436
|
+
readinessEvidence,
|
|
437
|
+
notes: smokeNotes ?? release.notes
|
|
438
|
+
});
|
|
439
|
+
if (output === 'json') {
|
|
440
|
+
ui.json({
|
|
441
|
+
ok: true,
|
|
442
|
+
provider,
|
|
443
|
+
...release.result,
|
|
444
|
+
environmentResolution,
|
|
445
|
+
deploymentMarker,
|
|
446
|
+
deploymentRun
|
|
447
|
+
});
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
if (release.summary)
|
|
451
|
+
ui.success(release.summary);
|
|
452
|
+
if (deploymentMarker)
|
|
453
|
+
logDeploymentMarkerResult(deploymentMarker, onLine);
|
|
454
|
+
logDeploymentRunLedgerResult(deploymentRun, onLine);
|
|
259
455
|
}
|
|
260
456
|
catch (err) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
457
|
+
// A coded error from the release (e.g. a refused provider option) is an
|
|
458
|
+
// input/validation failure, not a deploy that failed mid-flight — let it
|
|
459
|
+
// propagate without emitting a failure marker or ledger row.
|
|
460
|
+
if (err instanceof CapabilityError)
|
|
461
|
+
throw err;
|
|
462
|
+
const message = readErrorMessage(err);
|
|
463
|
+
const summary = message.split('\n')[0];
|
|
464
|
+
const markerEnvironment = environmentResolution.environment;
|
|
465
|
+
let deploymentMarker = undefined;
|
|
466
|
+
if (!dryRun) {
|
|
467
|
+
const markerOutcome = await settle(() => emitDeploymentMarker({
|
|
468
|
+
runtime,
|
|
469
|
+
deployment,
|
|
470
|
+
provider,
|
|
471
|
+
environment: markerEnvironment,
|
|
472
|
+
status: 'failed',
|
|
473
|
+
deploymentRunId,
|
|
474
|
+
logsRef,
|
|
475
|
+
providerTraceRef: providerTraceRefOverride,
|
|
476
|
+
remediationUrl,
|
|
477
|
+
notes: summary
|
|
478
|
+
}));
|
|
479
|
+
deploymentMarker = markerOutcome.ok
|
|
480
|
+
? markerOutcome.value
|
|
481
|
+
: {
|
|
482
|
+
status: 'failed',
|
|
483
|
+
reason: `failure marker emission failed: ${failureMessage(markerOutcome.cause)}`
|
|
484
|
+
};
|
|
264
485
|
}
|
|
265
|
-
|
|
266
|
-
|
|
486
|
+
const deploymentRun = await completeDeploymentRun({
|
|
487
|
+
store: deploymentRunStore(runtime),
|
|
488
|
+
runId: deploymentRunId,
|
|
489
|
+
status: 'failed',
|
|
490
|
+
marker: deploymentMarker,
|
|
491
|
+
logsRef,
|
|
492
|
+
providerTraceRef: providerTraceRefOverride,
|
|
493
|
+
remediationUrl,
|
|
494
|
+
readinessEvidence,
|
|
495
|
+
error: summary
|
|
496
|
+
});
|
|
497
|
+
// Record the marker/ledger rows before propagating, then throw so the
|
|
498
|
+
// surface owns the exit code and the failure envelope. The marker/ledger
|
|
499
|
+
// lines read success-ish ("recorded run <id>") even on failure, so the
|
|
500
|
+
// thrown message must be unambiguous.
|
|
501
|
+
if (output === 'text') {
|
|
502
|
+
if (deploymentMarker)
|
|
503
|
+
logDeploymentMarkerResult(deploymentMarker, onLine);
|
|
504
|
+
logDeploymentRunLedgerResult(deploymentRun, onLine);
|
|
267
505
|
}
|
|
268
|
-
|
|
506
|
+
throw new CapabilityError(`DEPLOY FAILED — ${deployment.appId} (${provider}${markerEnvironment ? `, ${markerEnvironment}` : ''}): ${message}`, 'INTERNAL', { cause: err, details: { deploymentMarker, deploymentRun } });
|
|
269
507
|
}
|
|
270
508
|
}
|
|
271
509
|
};
|