@vibesdotdev/infra-deploy 0.0.1 → 1.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +79 -118
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +48 -35
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +31 -21
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +26 -27
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +11 -11
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +15 -14
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +24 -17
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js +8 -3
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +164 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.js +557 -76
- package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -1
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts +49 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js +60 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts +30 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.js +167 -0
- package/dist/cli/db/infra-db.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts +6 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js +53 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js +50 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts +12 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js +70 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts +32 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js +39 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts +17 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js +66 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts +58 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js +72 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js +110 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js +47 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts +24 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.js +62 -0
- package/dist/cli/dns/resolve-dns-provider.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts +37 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js +45 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts +15 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts +29 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js +35 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts +19 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js +73 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js +50 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts +16 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js +81 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts +40 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js +49 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts +25 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js +74 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js.map +1 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/infra-deploy.cli-group.descriptor.js +1 -1
- package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -1
- package/dist/cli/infra.cli-group.descriptor.d.ts +7 -7
- package/dist/cli/infra.cli-group.descriptor.js +1 -1
- package/dist/cli/infra.cli-group.descriptor.js.map +1 -1
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts +26 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js +204 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +40 -30
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +7 -3
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +35 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js +202 -20
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +113 -35
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js +87 -3
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +61 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.js +1161 -108
- package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/stream-worker-tail.d.ts +7 -2
- package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -1
- package/dist/cli/logs/stream-worker-tail.js +280 -113
- package/dist/cli/logs/stream-worker-tail.js.map +1 -1
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts +62 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js +79 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts +8 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js +105 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts +34 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js +42 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts +13 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js +82 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +80 -23
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +48 -16
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +47 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +532 -351
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -1
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts +28 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js +34 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts +12 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js +134 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js +1 -1
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -1
- package/dist/cli/npm/mirror-registry-artifacts.d.ts +64 -0
- package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
- package/dist/cli/npm/mirror-registry-artifacts.js +114 -0
- package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
- package/dist/cli/npm/publish/command-options.d.ts +24 -0
- package/dist/cli/npm/publish/command-options.d.ts.map +1 -0
- package/dist/cli/npm/publish/command-options.js +85 -0
- package/dist/cli/npm/publish/command-options.js.map +1 -0
- package/dist/cli/npm/publish/concurrency.d.ts +19 -0
- package/dist/cli/npm/publish/concurrency.d.ts.map +1 -0
- package/dist/cli/npm/publish/concurrency.js +60 -0
- package/dist/cli/npm/publish/concurrency.js.map +1 -0
- package/dist/cli/npm/publish/consumer-smoke.d.ts +83 -0
- package/dist/cli/npm/publish/consumer-smoke.d.ts.map +1 -0
- package/dist/cli/npm/publish/consumer-smoke.js +371 -0
- package/dist/cli/npm/publish/consumer-smoke.js.map +1 -0
- package/dist/cli/npm/publish/consumer-surfaces.d.ts +81 -0
- package/dist/cli/npm/publish/consumer-surfaces.d.ts.map +1 -0
- package/dist/cli/npm/publish/consumer-surfaces.js +199 -0
- package/dist/cli/npm/publish/consumer-surfaces.js.map +1 -0
- package/dist/cli/npm/publish/external-requirements.d.ts +171 -0
- package/dist/cli/npm/publish/external-requirements.d.ts.map +1 -0
- package/dist/cli/npm/publish/external-requirements.js +365 -0
- package/dist/cli/npm/publish/external-requirements.js.map +1 -0
- package/dist/cli/npm/publish/forge-source-identity.d.ts +64 -0
- package/dist/cli/npm/publish/forge-source-identity.d.ts.map +1 -0
- package/dist/cli/npm/publish/forge-source-identity.js +201 -0
- package/dist/cli/npm/publish/forge-source-identity.js.map +1 -0
- package/dist/cli/npm/publish/fs-paths.d.ts +25 -0
- package/dist/cli/npm/publish/fs-paths.d.ts.map +1 -0
- package/dist/cli/npm/publish/fs-paths.js +87 -0
- package/dist/cli/npm/publish/fs-paths.js.map +1 -0
- package/dist/cli/npm/publish/lease-preflight-answer.d.ts +17 -0
- package/dist/cli/npm/publish/lease-preflight-answer.d.ts.map +1 -0
- package/dist/cli/npm/publish/lease-preflight-answer.js +35 -0
- package/dist/cli/npm/publish/lease-preflight-answer.js.map +1 -0
- package/dist/cli/npm/publish/lease-preflight.d.ts +92 -0
- package/dist/cli/npm/publish/lease-preflight.d.ts.map +1 -0
- package/dist/cli/npm/publish/lease-preflight.js +205 -0
- package/dist/cli/npm/publish/lease-preflight.js.map +1 -0
- package/dist/cli/npm/publish/managed-lease.d.ts +110 -0
- package/dist/cli/npm/publish/managed-lease.d.ts.map +1 -0
- package/dist/cli/npm/publish/managed-lease.js +191 -0
- package/dist/cli/npm/publish/managed-lease.js.map +1 -0
- package/dist/cli/npm/publish/npm-exec.d.ts +148 -0
- package/dist/cli/npm/publish/npm-exec.d.ts.map +1 -0
- package/dist/cli/npm/publish/npm-exec.js +311 -0
- package/dist/cli/npm/publish/npm-exec.js.map +1 -0
- package/dist/cli/npm/publish/package-artifact.d.ts +107 -0
- package/dist/cli/npm/publish/package-artifact.d.ts.map +1 -0
- package/dist/cli/npm/publish/package-artifact.js +418 -0
- package/dist/cli/npm/publish/package-artifact.js.map +1 -0
- package/dist/cli/npm/publish/platform-registry.d.ts +76 -0
- package/dist/cli/npm/publish/platform-registry.d.ts.map +1 -0
- package/dist/cli/npm/publish/platform-registry.js +324 -0
- package/dist/cli/npm/publish/platform-registry.js.map +1 -0
- package/dist/cli/npm/publish/proof-external-closure.d.ts +139 -0
- package/dist/cli/npm/publish/proof-external-closure.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-external-closure.js +339 -0
- package/dist/cli/npm/publish/proof-external-closure.js.map +1 -0
- package/dist/cli/npm/publish/proof-installed-graph.d.ts +26 -0
- package/dist/cli/npm/publish/proof-installed-graph.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-installed-graph.js +229 -0
- package/dist/cli/npm/publish/proof-installed-graph.js.map +1 -0
- package/dist/cli/npm/publish/proof-registry.d.ts +74 -0
- package/dist/cli/npm/publish/proof-registry.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-registry.js +335 -0
- package/dist/cli/npm/publish/proof-registry.js.map +1 -0
- package/dist/cli/npm/publish/proof-source-credentials.d.ts +42 -0
- package/dist/cli/npm/publish/proof-source-credentials.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-source-credentials.js +129 -0
- package/dist/cli/npm/publish/proof-source-credentials.js.map +1 -0
- package/dist/cli/npm/publish/publish-package.d.ts +66 -0
- package/dist/cli/npm/publish/publish-package.d.ts.map +1 -0
- package/dist/cli/npm/publish/publish-package.js +544 -0
- package/dist/cli/npm/publish/publish-package.js.map +1 -0
- package/dist/cli/npm/publish/publisher-manifest.d.ts +173 -0
- package/dist/cli/npm/publish/publisher-manifest.d.ts.map +1 -0
- package/dist/cli/npm/publish/publisher-manifest.js +79 -0
- package/dist/cli/npm/publish/publisher-manifest.js.map +1 -0
- package/dist/cli/npm/publish/rc-major-exception.d.ts +20 -0
- package/dist/cli/npm/publish/rc-major-exception.d.ts.map +1 -0
- package/dist/cli/npm/publish/rc-major-exception.js +46 -0
- package/dist/cli/npm/publish/rc-major-exception.js.map +1 -0
- package/dist/cli/npm/publish/registry-availability.d.ts +150 -0
- package/dist/cli/npm/publish/registry-availability.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-availability.js +570 -0
- package/dist/cli/npm/publish/registry-availability.js.map +1 -0
- package/dist/cli/npm/publish/registry-credentials.d.ts +108 -0
- package/dist/cli/npm/publish/registry-credentials.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-credentials.js +290 -0
- package/dist/cli/npm/publish/registry-credentials.js.map +1 -0
- package/dist/cli/npm/publish/registry-reads.d.ts +42 -0
- package/dist/cli/npm/publish/registry-reads.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-reads.js +164 -0
- package/dist/cli/npm/publish/registry-reads.js.map +1 -0
- package/dist/cli/npm/publish/release-build.d.ts +46 -0
- package/dist/cli/npm/publish/release-build.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-build.js +140 -0
- package/dist/cli/npm/publish/release-build.js.map +1 -0
- package/dist/cli/npm/publish/release-consumer-proof.d.ts +70 -0
- package/dist/cli/npm/publish/release-consumer-proof.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-consumer-proof.js +397 -0
- package/dist/cli/npm/publish/release-consumer-proof.js.map +1 -0
- package/dist/cli/npm/publish/release-executor.d.ts +46 -0
- package/dist/cli/npm/publish/release-executor.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-executor.js +181 -0
- package/dist/cli/npm/publish/release-executor.js.map +1 -0
- package/dist/cli/npm/publish/release-grants.client.impl.d.ts +10 -0
- package/dist/cli/npm/publish/release-grants.client.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-grants.client.impl.js +63 -0
- package/dist/cli/npm/publish/release-grants.client.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.client.d.ts +39 -0
- package/dist/cli/npm/publish/release-jobs.client.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.client.js +124 -0
- package/dist/cli/npm/publish/release-jobs.client.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts +20 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.js +82 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.impl.d.ts +15 -0
- package/dist/cli/npm/publish/release-jobs.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.impl.js +42 -0
- package/dist/cli/npm/publish/release-jobs.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-lock.d.ts +143 -0
- package/dist/cli/npm/publish/release-lock.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-lock.js +371 -0
- package/dist/cli/npm/publish/release-lock.js.map +1 -0
- package/dist/cli/npm/publish/release-phases.d.ts +93 -0
- package/dist/cli/npm/publish/release-phases.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-phases.js +175 -0
- package/dist/cli/npm/publish/release-phases.js.map +1 -0
- package/dist/cli/npm/publish/release-plan.d.ts +65 -0
- package/dist/cli/npm/publish/release-plan.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-plan.js +178 -0
- package/dist/cli/npm/publish/release-plan.js.map +1 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.d.ts +16 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.js +71 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-publish.job.impl.d.ts +18 -0
- package/dist/cli/npm/publish/release-publish.job.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-publish.job.impl.js +295 -0
- package/dist/cli/npm/publish/release-publish.job.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-workspace.d.ts +95 -0
- package/dist/cli/npm/publish/release-workspace.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-workspace.js +243 -0
- package/dist/cli/npm/publish/release-workspace.js.map +1 -0
- package/dist/cli/npm/publish/sensitive-temp.d.ts +90 -0
- package/dist/cli/npm/publish/sensitive-temp.d.ts.map +1 -0
- package/dist/cli/npm/publish/sensitive-temp.js +351 -0
- package/dist/cli/npm/publish/sensitive-temp.js.map +1 -0
- package/dist/cli/npm/publish/source-snapshot.d.ts +91 -0
- package/dist/cli/npm/publish/source-snapshot.d.ts.map +1 -0
- package/dist/cli/npm/publish/source-snapshot.js +245 -0
- package/dist/cli/npm/publish/source-snapshot.js.map +1 -0
- package/dist/cli/npm/publish/types.d.ts +69 -0
- package/dist/cli/npm/publish/types.d.ts.map +1 -0
- package/dist/cli/npm/publish/types.js +2 -0
- package/dist/cli/npm/publish/types.js.map +1 -0
- package/dist/cli/npm/publish/workspace-discovery.d.ts +48 -0
- package/dist/cli/npm/publish/workspace-discovery.d.ts.map +1 -0
- package/dist/cli/npm/publish/workspace-discovery.js +313 -0
- package/dist/cli/npm/publish/workspace-discovery.js.map +1 -0
- package/dist/cli/npm/put-attested-packument.d.ts +96 -0
- package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
- package/dist/cli/npm/put-attested-packument.js +240 -0
- package/dist/cli/npm/put-attested-packument.js.map +1 -0
- package/dist/cli/npm/reconcile-latest.d.ts +55 -0
- package/dist/cli/npm/reconcile-latest.d.ts.map +1 -0
- package/dist/cli/npm/reconcile-latest.js +59 -0
- package/dist/cli/npm/reconcile-latest.js.map +1 -0
- package/dist/cli/observability/blind-spots.d.ts +10 -0
- package/dist/cli/observability/blind-spots.d.ts.map +1 -0
- package/dist/cli/observability/blind-spots.js +19 -0
- package/dist/cli/observability/blind-spots.js.map +1 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts +6 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js +75 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js.map +1 -0
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +42 -21
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +3 -3
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +3 -2
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js +14 -14
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +25 -17
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +2 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js +30 -23
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -1
- package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js +1 -1
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -1
- package/dist/cli/plugin.d.ts +3 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +45 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts +38 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js +43 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts +117 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js +678 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js.map +1 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +37 -23
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +7 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +2 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +100 -25
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -1
- package/dist/cli/release/cli/latest-manifest.d.ts +148 -0
- package/dist/cli/release/cli/latest-manifest.d.ts.map +1 -0
- package/dist/cli/release/cli/latest-manifest.js +152 -0
- package/dist/cli/release/cli/latest-manifest.js.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js +49 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts +16 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js +52 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js.map +1 -0
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +2 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js +21 -15
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -1
- package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js +1 -1
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -1
- package/dist/cli/run/deploy-smoke.d.ts +57 -0
- package/dist/cli/run/deploy-smoke.d.ts.map +1 -0
- package/dist/cli/run/deploy-smoke.js +251 -0
- package/dist/cli/run/deploy-smoke.js.map +1 -0
- package/dist/cli/run/deployment-marker.d.ts +74 -0
- package/dist/cli/run/deployment-marker.d.ts.map +1 -0
- package/dist/cli/run/deployment-marker.js +237 -0
- package/dist/cli/run/deployment-marker.js.map +1 -0
- package/dist/cli/run/deployment-provider.d.ts +56 -0
- package/dist/cli/run/deployment-provider.d.ts.map +1 -0
- package/dist/cli/run/deployment-provider.js +295 -0
- package/dist/cli/run/deployment-provider.js.map +1 -0
- package/dist/cli/run/deployment-run-ledger.d.ts +72 -0
- package/dist/cli/run/deployment-run-ledger.d.ts.map +1 -0
- package/dist/cli/run/deployment-run-ledger.js +164 -0
- package/dist/cli/run/deployment-run-ledger.js.map +1 -0
- package/dist/cli/run/git-source-identity.d.ts +21 -0
- package/dist/cli/run/git-source-identity.d.ts.map +1 -0
- package/dist/cli/run/git-source-identity.js +73 -0
- package/dist/cli/run/git-source-identity.js.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts +403 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.js +589 -0
- package/dist/cli/run/immutable-deployment-release.program.js.map +1 -0
- package/dist/cli/run/immutable-deployment-workspace.d.ts +39 -0
- package/dist/cli/run/immutable-deployment-workspace.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-workspace.js +525 -0
- package/dist/cli/run/immutable-deployment-workspace.js.map +1 -0
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +80 -23
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +50 -8
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +46 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js +464 -226
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
- package/dist/cli/shared/build-workspace-artifacts.d.ts +147 -0
- package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
- package/dist/cli/shared/build-workspace-artifacts.js +2013 -0
- package/dist/cli/shared/build-workspace-artifacts.js.map +1 -0
- package/dist/cli/shared/credential-source.d.ts +3 -0
- package/dist/cli/shared/credential-source.d.ts.map +1 -0
- package/dist/cli/shared/credential-source.js +19 -0
- package/dist/cli/shared/credential-source.js.map +1 -0
- package/dist/cli/shared/discover-deployments.d.ts +46 -5
- package/dist/cli/shared/discover-deployments.d.ts.map +1 -1
- package/dist/cli/shared/discover-deployments.js +167 -41
- package/dist/cli/shared/discover-deployments.js.map +1 -1
- package/dist/cli/shared/infer-apex-zone.d.ts +18 -0
- package/dist/cli/shared/infer-apex-zone.d.ts.map +1 -0
- package/dist/cli/shared/infer-apex-zone.js +75 -0
- package/dist/cli/shared/infer-apex-zone.js.map +1 -0
- package/dist/cli/shared/option-strings.d.ts +2 -0
- package/dist/cli/shared/option-strings.d.ts.map +1 -0
- package/dist/cli/shared/option-strings.js +13 -0
- package/dist/cli/shared/option-strings.js.map +1 -0
- package/dist/cli/shared/repository-collection.d.ts +42 -0
- package/dist/cli/shared/repository-collection.d.ts.map +1 -0
- package/dist/cli/shared/repository-collection.js +111 -0
- package/dist/cli/shared/repository-collection.js.map +1 -0
- package/dist/cli/shared/runtime-execution.d.ts +78 -0
- package/dist/cli/shared/runtime-execution.d.ts.map +1 -0
- package/dist/cli/shared/runtime-execution.js +182 -0
- package/dist/cli/shared/runtime-execution.js.map +1 -0
- package/dist/cli/shared/workspace-artifact-lock.d.ts +17 -0
- package/dist/cli/shared/workspace-artifact-lock.d.ts.map +1 -0
- package/dist/cli/shared/workspace-artifact-lock.js +37 -0
- package/dist/cli/shared/workspace-artifact-lock.js.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts +238 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.js +410 -0
- package/dist/cli/workers/doks-worker-runtime.js.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts +28 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js +28 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.js +75 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts +31 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js +32 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.js +67 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts +48 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js +60 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.js +74 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.js +12 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.js.map +1 -0
- package/dist/config-loader.d.ts +60 -13
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/config-loader.js +371 -104
- package/dist/config-loader.js.map +1 -1
- package/dist/declared-provider.d.ts +27 -0
- package/dist/declared-provider.d.ts.map +1 -0
- package/dist/declared-provider.js +46 -0
- package/dist/declared-provider.js.map +1 -0
- package/dist/deployment-collisions.d.ts +55 -0
- package/dist/deployment-collisions.d.ts.map +1 -0
- package/dist/deployment-collisions.js +70 -0
- package/dist/deployment-collisions.js.map +1 -0
- package/dist/deployment-environment.d.ts +57 -0
- package/dist/deployment-environment.d.ts.map +1 -0
- package/dist/deployment-environment.js +198 -0
- package/dist/deployment-environment.js.map +1 -0
- package/dist/deployment-settings.d.ts +27 -0
- package/dist/deployment-settings.d.ts.map +1 -0
- package/dist/deployment-settings.js +52 -0
- package/dist/deployment-settings.js.map +1 -0
- package/dist/deployment.config.descriptor.d.ts +59 -0
- package/dist/deployment.config.descriptor.d.ts.map +1 -0
- package/dist/deployment.config.descriptor.js +54 -0
- package/dist/deployment.config.descriptor.js.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts +29 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js +35 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts +12 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js +12 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js.map +1 -0
- package/dist/index.d.ts +11 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/infra-deploy.plugin.d.ts +2 -2
- package/dist/infra-deploy.plugin.d.ts.map +1 -1
- package/dist/infra-deploy.plugin.js +63 -20
- package/dist/infra-deploy.plugin.js.map +1 -1
- package/dist/logger.d.ts +10 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +11 -0
- package/dist/logger.js.map +1 -0
- package/dist/migrations/migrate-workspace.d.ts +21 -0
- package/dist/migrations/migrate-workspace.d.ts.map +1 -0
- package/dist/migrations/migrate-workspace.js +83 -0
- package/dist/migrations/migrate-workspace.js.map +1 -0
- package/dist/migrations/run-migrate.d.ts +15 -0
- package/dist/migrations/run-migrate.d.ts.map +1 -0
- package/dist/migrations/run-migrate.js +314 -0
- package/dist/migrations/run-migrate.js.map +1 -0
- package/dist/regenerate.d.ts +52 -30
- package/dist/regenerate.d.ts.map +1 -1
- package/dist/regenerate.js +176 -148
- package/dist/regenerate.js.map +1 -1
- package/dist/runtime-execution.d.ts +5 -0
- package/dist/runtime-execution.d.ts.map +1 -0
- package/dist/runtime-execution.js +12 -0
- package/dist/runtime-execution.js.map +1 -0
- package/dist/schemas/migrate.d.ts +110 -0
- package/dist/schemas/migrate.d.ts.map +1 -0
- package/dist/schemas/migrate.js +55 -0
- package/dist/schemas/migrate.js.map +1 -0
- package/dist/schemas/proof-registry.d.ts +25 -0
- package/dist/schemas/proof-registry.d.ts.map +1 -0
- package/dist/schemas/proof-registry.js +24 -0
- package/dist/schemas/proof-registry.js.map +1 -0
- package/dist/schemas/release-grants.d.ts +7 -0
- package/dist/schemas/release-grants.d.ts.map +1 -0
- package/dist/schemas/release-grants.js +6 -0
- package/dist/schemas/release-grants.js.map +1 -0
- package/dist/schemas/release-jobs.d.ts +444 -0
- package/dist/schemas/release-jobs.d.ts.map +1 -0
- package/dist/schemas/release-jobs.js +204 -0
- package/dist/schemas/release-jobs.js.map +1 -0
- package/dist/schemas/service-release.d.ts +15 -0
- package/dist/schemas/service-release.d.ts.map +1 -0
- package/dist/schemas/service-release.js +13 -0
- package/dist/schemas/service-release.js.map +1 -0
- package/dist/schemas/worker-logs.d.ts +42 -0
- package/dist/schemas/worker-logs.d.ts.map +1 -0
- package/dist/schemas/worker-logs.js +29 -0
- package/dist/schemas/worker-logs.js.map +1 -0
- package/dist/storage/deployment-runs.schema.d.ts +199 -0
- package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
- package/dist/storage/deployment-runs.schema.js +61 -0
- package/dist/storage/deployment-runs.schema.js.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
- package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
- package/package.json +110 -42
- package/SPEC.md +0 -181
- package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
- package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
- package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
- package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
- package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
- package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
- package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
- package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
- package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
- package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
- package/src/cli/infra.cli-group.descriptor.ts +0 -11
- package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
- package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
- package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
- package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
- package/src/cli/logs/stream-worker-tail.ts +0 -202
- package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
- package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
- package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
- package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
- package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
- package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
- package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
- package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
- package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
- package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
- package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
- package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
- package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
- package/src/cli/shared/discover-deployments.ts +0 -127
- package/src/config-loader.ts +0 -179
- package/src/index.ts +0 -11
- package/src/infra-deploy.plugin.ts +0 -83
- package/src/regenerate.ts +0 -230
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
import { infraDeployLogger } from "../../logger.js";
|
|
2
|
+
import { realpathChecked } from '@vibesdotdev/filesystem';
|
|
3
|
+
import { GIT_CHILD_ENV } from '@vibesdotdev/git-operations/core';
|
|
4
|
+
import { getRuntimePath } from '@vibesdotdev/paths';
|
|
5
|
+
import { CapabilityError, composeChildEnv, isCapabilityError, requireRuntimeCwd, settle, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
6
|
+
import { z } from 'zod/v4';
|
|
7
|
+
import { repositoryGroupRoot } from '@vibesdotdev/config/repository-collection';
|
|
8
|
+
import { loadDeploymentConfig, NonDeployableDeploymentConfigError, resolveAppDir, resolveConfigLoadHost } from "../../config-loader.js";
|
|
9
|
+
import { declaresDeployment, findConfigFile, locateDeploymentSource } from "../../deployment-settings.js";
|
|
10
|
+
import { readString } from "../shared/option-strings.js";
|
|
11
|
+
import { resolveRuntimeExecution } from "../shared/runtime-execution.js";
|
|
12
|
+
import { readRepositoryCollection, registeredAppCheckouts } from "../shared/repository-collection.js";
|
|
13
|
+
import { formatDeploymentEnvironmentResolution, resolveDeploymentEnvironment } from "../../deployment-environment.js";
|
|
14
|
+
import { DeploymentEnvironmentFactsSchema, DeploymentProviderDescriptorSchema, DeploymentReadinessCheckSchema } from '@vibesdotdev/infra-core/kinds';
|
|
15
|
+
import { projectWebApp } from '@vibesdotdev/infra-core';
|
|
16
|
+
import { normalizeDeploymentEnvironment } from '@vibesdotdev/infra-core/deployment-environment';
|
|
17
|
+
import { deploymentModuleEvaluation, resolveDeploymentProvider } from "../run/deployment-provider.js";
|
|
18
|
+
import { inspectRegistryStandaloneSelectors } from '@vibesdotdev/registry/standalone-install';
|
|
19
|
+
import { resolveGitRepositoryRoot } from "../run/git-source-identity.js";
|
|
20
|
+
function failureMessage(failure) {
|
|
21
|
+
return failure instanceof Error ? failure.message : failure.description;
|
|
22
|
+
}
|
|
23
|
+
function runtimeEnvironmentDescriptors(runtime) {
|
|
24
|
+
return runtime.query('config/environment').descriptors();
|
|
25
|
+
}
|
|
26
|
+
export function checkDeploymentEnvironment(resolution) {
|
|
27
|
+
const violations = resolution.violations;
|
|
28
|
+
return {
|
|
29
|
+
id: 'deployment-environment',
|
|
30
|
+
label: 'Selected deployment environment',
|
|
31
|
+
status: violations.length > 0 ? 'fail' : 'pass',
|
|
32
|
+
summary: violations.length > 0
|
|
33
|
+
? `Environment ${resolution.environment} is unsafe for ${resolution.mutationSurface}.`
|
|
34
|
+
: `Environment ${resolution.environment} resolves an explicit ${resolution.mutationSurface} descriptor.`,
|
|
35
|
+
evidence: [
|
|
36
|
+
formatDeploymentEnvironmentResolution(resolution),
|
|
37
|
+
`required secret names: ${resolution.requiredSecrets.join(', ') || 'none'}`,
|
|
38
|
+
`optional secret names: ${resolution.optionalSecrets.join(', ') || 'none'}`,
|
|
39
|
+
...violations
|
|
40
|
+
],
|
|
41
|
+
action: violations.length > 0
|
|
42
|
+
? 'Fix the unit deployment declaration (vibes.config.ts or its deployment module) or its provider projection; do not bypass the selected-environment gate.'
|
|
43
|
+
: null
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const FiniteNumberSchema = z.number().finite();
|
|
47
|
+
const NumericTextSchema = z.string().min(1);
|
|
48
|
+
function readNumber(value) {
|
|
49
|
+
const direct = FiniteNumberSchema.safeParse(value);
|
|
50
|
+
if (direct.success)
|
|
51
|
+
return direct.data;
|
|
52
|
+
const text = NumericTextSchema.safeParse(value);
|
|
53
|
+
if (!text.success)
|
|
54
|
+
return undefined;
|
|
55
|
+
const parsed = FiniteNumberSchema.safeParse(Number(text.data));
|
|
56
|
+
return parsed.success ? parsed.data : undefined;
|
|
57
|
+
}
|
|
58
|
+
async function runReadOnlyCommand(runtime, execution, cwd, command) {
|
|
59
|
+
const [program, ...args] = command;
|
|
60
|
+
if (!program)
|
|
61
|
+
throw new Error('A command program is required.');
|
|
62
|
+
const outcome = await settle(async () => {
|
|
63
|
+
const env = composeChildEnv(runtime, { env: {}, inheritEnv: GIT_CHILD_ENV });
|
|
64
|
+
return execution.execute({ command: program, args, cwd, timeout: 10_000, env, envMode: 'replace' });
|
|
65
|
+
});
|
|
66
|
+
if (outcome.ok) {
|
|
67
|
+
return {
|
|
68
|
+
exitCode: outcome.value.exitCode ?? 1,
|
|
69
|
+
stdout: outcome.value.stdout,
|
|
70
|
+
stderr: outcome.value.stderr
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
exitCode: 127,
|
|
75
|
+
stdout: '',
|
|
76
|
+
stderr: '',
|
|
77
|
+
error: failureMessage(outcome.cause)
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The repository collection the bound workspace declares, or null for an
|
|
82
|
+
* ordinary workspace (an end-user project). Only a missing manifest means
|
|
83
|
+
* "no collection"; an unreadable or invalid one fails.
|
|
84
|
+
*/
|
|
85
|
+
async function boundCollection(configHost, workspaceRoot) {
|
|
86
|
+
const outcome = await settle(() => readRepositoryCollection(configHost, workspaceRoot));
|
|
87
|
+
if (outcome.ok)
|
|
88
|
+
return outcome.value;
|
|
89
|
+
// Only a missing manifest means "no collection"; an unreadable or invalid
|
|
90
|
+
// one fails.
|
|
91
|
+
if (outcome.cause instanceof CapabilityError &&
|
|
92
|
+
outcome.cause.reason === 'repository-collection-missing') {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
throw outcome.cause;
|
|
96
|
+
}
|
|
97
|
+
function parsePorcelain(output) {
|
|
98
|
+
return output
|
|
99
|
+
.split('\n')
|
|
100
|
+
.filter(Boolean)
|
|
101
|
+
.map((line) => line.slice(3).trim())
|
|
102
|
+
.filter(Boolean);
|
|
103
|
+
}
|
|
104
|
+
const PackageExportEntrySchema = z.record(z.string(), z.string());
|
|
105
|
+
const PackageExportsSchema = z.record(z.string(), PackageExportEntrySchema);
|
|
106
|
+
function packageExportHasConditions(exportsField, subpath, conditions) {
|
|
107
|
+
const parsed = PackageExportsSchema.safeParse(exportsField);
|
|
108
|
+
if (!parsed.success)
|
|
109
|
+
return false;
|
|
110
|
+
const entry = parsed.data[subpath];
|
|
111
|
+
if (!entry)
|
|
112
|
+
return false;
|
|
113
|
+
return conditions.every((condition) => Boolean(entry[condition]));
|
|
114
|
+
}
|
|
115
|
+
function summarize(checks) {
|
|
116
|
+
const passing = checks.filter((check) => check.status === 'pass').length;
|
|
117
|
+
const warnings = checks.filter((check) => check.status === 'warn').length;
|
|
118
|
+
const failures = checks.filter((check) => check.status === 'fail').length;
|
|
119
|
+
const unknown = checks.filter((check) => check.status === 'unknown').length;
|
|
120
|
+
const status = failures > 0 ? 'fail' : warnings > 0 ? 'warn' : unknown > 0 ? 'unknown' : 'pass';
|
|
121
|
+
return { status, passing, warnings, failures, unknown };
|
|
122
|
+
}
|
|
123
|
+
function firstLine(value) {
|
|
124
|
+
return (value
|
|
125
|
+
.split('\n')
|
|
126
|
+
.map((line) => line.trim())
|
|
127
|
+
.find(Boolean) ?? '');
|
|
128
|
+
}
|
|
129
|
+
function isPathWithin(paths, root, candidate) {
|
|
130
|
+
const path = paths.relative(root, candidate);
|
|
131
|
+
return (path === '' ||
|
|
132
|
+
(!paths.isAbsolute(path) && path !== '..' && !path.startsWith('../') && !path.startsWith('..\\')));
|
|
133
|
+
}
|
|
134
|
+
async function readHostText(host, path) {
|
|
135
|
+
return z.string().parse(await host.files.readFile(path, 'utf8'));
|
|
136
|
+
}
|
|
137
|
+
export async function checkWorktree(input) {
|
|
138
|
+
const repository = await runReadOnlyCommand(input.runtime, input.execution, input.appDir, [
|
|
139
|
+
'git',
|
|
140
|
+
'rev-parse',
|
|
141
|
+
'--show-toplevel'
|
|
142
|
+
]);
|
|
143
|
+
if (repository.exitCode !== 0) {
|
|
144
|
+
return {
|
|
145
|
+
id: 'clean-worktree',
|
|
146
|
+
label: 'Clean deploy-sensitive worktree',
|
|
147
|
+
status: 'unknown',
|
|
148
|
+
summary: repository.error ??
|
|
149
|
+
(firstLine(repository.stderr) || 'The app Git repository could not be resolved.'),
|
|
150
|
+
evidence: [`git rev-parse --show-toplevel exited ${repository.exitCode}`],
|
|
151
|
+
action: 'Run the readiness check from an app owned by a Git worktree before treating this candidate as deployable.'
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
const host = await resolveConfigLoadHost(input.runtime);
|
|
155
|
+
const repositoryRoot = await realpathChecked(host.files, host.paths.resolve(firstLine(repository.stdout)));
|
|
156
|
+
const appDir = await realpathChecked(host.files, input.appDir);
|
|
157
|
+
const workspaceRoot = await realpathChecked(host.files, input.workspaceRoot);
|
|
158
|
+
if (!isPathWithin(host.paths, repositoryRoot, appDir)) {
|
|
159
|
+
return {
|
|
160
|
+
id: 'clean-worktree',
|
|
161
|
+
label: 'Clean deploy-sensitive worktree',
|
|
162
|
+
status: 'unknown',
|
|
163
|
+
summary: 'The resolved app path is outside its reported Git repository.',
|
|
164
|
+
evidence: [repositoryRoot, appDir],
|
|
165
|
+
action: 'Resolve the app checkout before treating this candidate as deployable.'
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
const candidatePaths = [
|
|
169
|
+
appDir,
|
|
170
|
+
host.paths.join(repositoryRoot, 'bun.lock'),
|
|
171
|
+
host.paths.join(repositoryRoot, 'package.json'),
|
|
172
|
+
host.paths.join(workspaceRoot, 'bun.lock'),
|
|
173
|
+
host.paths.join(workspaceRoot, 'package.json'),
|
|
174
|
+
host.paths.join(workspaceRoot, 'infra-deploy'),
|
|
175
|
+
host.paths.join(workspaceRoot, 'infra-core'),
|
|
176
|
+
host.paths.join(workspaceRoot, 'infra-cloudflare'),
|
|
177
|
+
host.paths.join(workspaceRoot, 'libraries/vibeskit/package.json'),
|
|
178
|
+
host.paths.join(workspaceRoot, 'apps/cli-bin')
|
|
179
|
+
];
|
|
180
|
+
const deploySensitivePaths = [
|
|
181
|
+
...new Set(candidatePaths
|
|
182
|
+
.filter((path) => isPathWithin(host.paths, repositoryRoot, path))
|
|
183
|
+
.map((path) => host.paths.relative(repositoryRoot, path) || '.'))
|
|
184
|
+
];
|
|
185
|
+
const result = await runReadOnlyCommand(input.runtime, input.execution, repositoryRoot, [
|
|
186
|
+
'git',
|
|
187
|
+
'status',
|
|
188
|
+
'--porcelain',
|
|
189
|
+
'--',
|
|
190
|
+
...deploySensitivePaths
|
|
191
|
+
]);
|
|
192
|
+
if (result.exitCode !== 0) {
|
|
193
|
+
return {
|
|
194
|
+
id: 'clean-worktree',
|
|
195
|
+
label: 'Clean deploy-sensitive worktree',
|
|
196
|
+
status: 'unknown',
|
|
197
|
+
summary: result.error ?? (firstLine(result.stderr) || 'git status could not be read.'),
|
|
198
|
+
evidence: [`git status --porcelain exited ${result.exitCode}`],
|
|
199
|
+
action: 'Run the readiness check from a git worktree before treating this candidate as deployable.'
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
const changed = parsePorcelain(result.stdout).slice(0, input.maxStatusFiles);
|
|
203
|
+
if (changed.length > 0) {
|
|
204
|
+
return {
|
|
205
|
+
id: 'clean-worktree',
|
|
206
|
+
label: 'Clean deploy-sensitive worktree',
|
|
207
|
+
status: 'warn',
|
|
208
|
+
summary: `${changed.length} deploy-sensitive path(s) have local changes.`,
|
|
209
|
+
evidence: changed,
|
|
210
|
+
action: 'Review and commit or isolate deploy-sensitive changes before relying on a production dry-run.'
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
return {
|
|
214
|
+
id: 'clean-worktree',
|
|
215
|
+
label: 'Clean deploy-sensitive worktree',
|
|
216
|
+
status: 'pass',
|
|
217
|
+
summary: 'No local changes detected in deploy-sensitive paths.',
|
|
218
|
+
evidence: [`repository: ${repositoryRoot}`, ...deploySensitivePaths],
|
|
219
|
+
action: null
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
export function checkDeploymentConfig(deployment, configLabel) {
|
|
223
|
+
const hasFrozenInstall = deployment.build.installCommand?.includes('bun install --frozen-lockfile') ?? false;
|
|
224
|
+
const hasBuildCommand = Boolean(deployment.build.buildCommand?.trim());
|
|
225
|
+
const hasOutputDir = Boolean(deployment.build.outputDir?.trim());
|
|
226
|
+
const evidence = [
|
|
227
|
+
configLabel,
|
|
228
|
+
hasFrozenInstall ? 'installCommand uses bun install --frozen-lockfile' : 'installCommand is not frozen',
|
|
229
|
+
hasBuildCommand ? 'buildCommand declared' : 'buildCommand missing',
|
|
230
|
+
hasOutputDir ? 'outputDir declared' : 'outputDir missing'
|
|
231
|
+
];
|
|
232
|
+
const missing = [
|
|
233
|
+
!hasFrozenInstall && 'frozen installCommand',
|
|
234
|
+
!hasBuildCommand && 'buildCommand',
|
|
235
|
+
!hasOutputDir && 'outputDir'
|
|
236
|
+
].filter(Boolean);
|
|
237
|
+
return {
|
|
238
|
+
id: 'deployment-config',
|
|
239
|
+
label: 'Deployment config contract',
|
|
240
|
+
status: missing.length > 0 ? 'fail' : 'pass',
|
|
241
|
+
summary: missing.length > 0
|
|
242
|
+
? `Missing deploy config contract: ${missing.join(', ')}.`
|
|
243
|
+
: 'Deployment config declares frozen install, build command, and output directory.',
|
|
244
|
+
evidence,
|
|
245
|
+
action: missing.length > 0 ? `Fix ${configLabel} before deploy.` : null
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
/** The registry owns projection of cross-repository workspace selectors during a frozen install. */
|
|
249
|
+
export async function checkLockedWorkspaceSelectors(runtime, repositoryRoot) {
|
|
250
|
+
const result = await settle(() => inspectRegistryStandaloneSelectors(runtime, repositoryRoot));
|
|
251
|
+
if (result.ok && result.value === 'not-applicable')
|
|
252
|
+
return undefined;
|
|
253
|
+
if (result.ok && result.value === 'unsupported-lock')
|
|
254
|
+
return {
|
|
255
|
+
id: 'locked-workspace-selectors', label: 'Locked workspace selectors', status: 'unknown',
|
|
256
|
+
summary: 'The source repository uses a Bun lock format that cannot be inspected here.', evidence: ['bun.lockb'],
|
|
257
|
+
action: 'Verify the frozen install through the Registry owner before deploying.'
|
|
258
|
+
};
|
|
259
|
+
if (result.ok)
|
|
260
|
+
return {
|
|
261
|
+
id: 'locked-workspace-selectors', label: 'Locked workspace selectors', status: 'pass',
|
|
262
|
+
summary: 'The source repository has locked cross-repository workspace ranges.', evidence: [], action: null
|
|
263
|
+
};
|
|
264
|
+
const failure = result.cause;
|
|
265
|
+
const reason = isCapabilityError(failure) ? failure.reason : undefined;
|
|
266
|
+
const invalid = reason === 'registry-workspace-version-missing' || reason === 'registry-lock-invalid' ||
|
|
267
|
+
reason === 'registry-manifest-invalid' || reason === 'registry-workspace-selector-unsupported';
|
|
268
|
+
return {
|
|
269
|
+
id: 'locked-workspace-selectors', label: 'Locked workspace selectors', status: invalid ? 'fail' : 'unknown',
|
|
270
|
+
summary: invalid ? 'The source repository has missing or invalid locked workspace selectors.' : 'Locked workspace selectors could not be verified.',
|
|
271
|
+
evidence: reason ? [reason] : [],
|
|
272
|
+
action: 'Regenerate and verify the lock through the Registry owner before deploying.'
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
async function checkVibesKitExports(host, collection, displayBase) {
|
|
276
|
+
const packagePath = collection
|
|
277
|
+
? host.paths.join(collection.root, repositoryGroupRoot(collection.manifest, 'platform'), 'kit', 'package.json')
|
|
278
|
+
: null;
|
|
279
|
+
if (!packagePath || !(await host.files.exists(packagePath))) {
|
|
280
|
+
return {
|
|
281
|
+
id: 'package-exports',
|
|
282
|
+
label: 'VibesKit package export contract',
|
|
283
|
+
status: 'unknown',
|
|
284
|
+
summary: packagePath
|
|
285
|
+
? 'VibesKit package.json is not present in this checkout.'
|
|
286
|
+
: 'The bound workspace is not a repository collection, so it has no VibesKit checkout.',
|
|
287
|
+
evidence: packagePath ? [host.paths.relative(displayBase, packagePath) || packagePath] : [],
|
|
288
|
+
action: 'Run this check from the repository-collection checkout used for deployment.'
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
const packageText = await readHostText(host, packagePath);
|
|
292
|
+
const parsedPackage = await settle(() => z.object({ exports: z.unknown().optional() }).loose().parse(JSON.parse(packageText)));
|
|
293
|
+
if (!parsedPackage.ok) {
|
|
294
|
+
throw new CapabilityError('VibesKit package.json is not a valid package object.', 'INVALID_INPUT', {
|
|
295
|
+
reason: 'package-json-invalid',
|
|
296
|
+
cause: valueFreeFailure(parsedPackage.cause)
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
const pkg = parsedPackage.value;
|
|
300
|
+
const required = [
|
|
301
|
+
['.', ['types', 'import', 'default']],
|
|
302
|
+
['./components', ['types', 'svelte', 'import', 'default']],
|
|
303
|
+
['./datatable', ['types', 'svelte', 'import', 'default']],
|
|
304
|
+
['./pagination/server', ['types', 'import', 'default']],
|
|
305
|
+
['./forms/form', ['types', 'import', 'default']]
|
|
306
|
+
];
|
|
307
|
+
const missing = required
|
|
308
|
+
.filter(([subpath, conditions]) => !packageExportHasConditions(pkg.exports, subpath, conditions))
|
|
309
|
+
.map(([subpath]) => subpath);
|
|
310
|
+
return {
|
|
311
|
+
id: 'package-exports',
|
|
312
|
+
label: 'VibesKit package export contract',
|
|
313
|
+
status: missing.length > 0 ? 'fail' : 'pass',
|
|
314
|
+
summary: missing.length > 0
|
|
315
|
+
? `Missing required VibesKit export conditions for ${missing.join(', ')}.`
|
|
316
|
+
: 'Required VibesKit exports expose packaged types/import/default conditions and isolated Svelte conditions where applicable.',
|
|
317
|
+
evidence: missing.length > 0 ? missing : required.map(([subpath]) => subpath),
|
|
318
|
+
action: missing.length > 0
|
|
319
|
+
? 'Restore dual export conditions before building system-web.'
|
|
320
|
+
: null
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
function checkCliDiscovery() {
|
|
324
|
+
return {
|
|
325
|
+
id: 'cli-discovery',
|
|
326
|
+
label: 'Infra CLI discovery',
|
|
327
|
+
status: 'pass',
|
|
328
|
+
summary: 'infra deploy readiness command executed through the infra-deploy plugin.',
|
|
329
|
+
evidence: [
|
|
330
|
+
'infra-deploy.readiness loader resolved',
|
|
331
|
+
'expected sibling commands: infra-deploy.run, infra-deploy.list, infra-deploy.regenerate'
|
|
332
|
+
],
|
|
333
|
+
action: null
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Deployment-module fields only another registered provider consumes: a
|
|
338
|
+
* provider's descriptor names its own `declarations`, so an app declaring a
|
|
339
|
+
* field its provider does not own ships configuration nothing will read.
|
|
340
|
+
*/
|
|
341
|
+
export function checkProviderDeclarations(input) {
|
|
342
|
+
const record = z.record(z.string(), z.unknown()).safeParse(input.raw);
|
|
343
|
+
const raw = record.success ? record.data : {};
|
|
344
|
+
const own = new Set(input.providers.find((descriptor) => descriptor.id === input.provider)?.declarations ?? []);
|
|
345
|
+
// A field counts when it is declared with content: non-empty, not false.
|
|
346
|
+
const foreign = [...new Set(input.providers
|
|
347
|
+
.filter((descriptor) => descriptor.id !== input.provider)
|
|
348
|
+
.flatMap((descriptor) => descriptor.declarations))]
|
|
349
|
+
.filter((field) => {
|
|
350
|
+
if (own.has(field) || !Object.hasOwn(raw, field))
|
|
351
|
+
return false;
|
|
352
|
+
const value = raw[field];
|
|
353
|
+
if (value === undefined || value === false)
|
|
354
|
+
return false;
|
|
355
|
+
if (Array.isArray(value))
|
|
356
|
+
return value.length > 0;
|
|
357
|
+
const subRecord = z.record(z.string(), z.unknown()).safeParse(value);
|
|
358
|
+
return subRecord.success ? Object.keys(subRecord.data).length > 0 : true;
|
|
359
|
+
});
|
|
360
|
+
return {
|
|
361
|
+
id: 'provider-declarations',
|
|
362
|
+
label: 'Provider-owned declarations',
|
|
363
|
+
status: foreign.length > 0 ? 'warn' : 'pass',
|
|
364
|
+
summary: foreign.length > 0
|
|
365
|
+
? `Provider ${input.provider} cannot consume declarations other providers own: ${foreign.join(', ')}.`
|
|
366
|
+
: `The deployment declares only fields ${input.provider} consumes.`,
|
|
367
|
+
evidence: foreign.length > 0 ? foreign : [`provider: ${input.provider}`],
|
|
368
|
+
action: foreign.length > 0 ? 'Remove the declarations or deploy the app through the provider that owns them.' : null
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* The deployed-unit name of every app registered as an `infra/web-app`, by app
|
|
373
|
+
* id, as its provider names it (`projectWebApp`), for provider topology checks.
|
|
374
|
+
* The kernel's registry is the only enumeration: an app that declares no
|
|
375
|
+
* descriptor contributes nothing, and no other app's module is evaluated. One
|
|
376
|
+
* app's failed projection stays in that app's entry (`unresolved`, value-free
|
|
377
|
+
* reason) and never fails another app's readiness.
|
|
378
|
+
*/
|
|
379
|
+
async function registeredDeployedUnits(runtime, paths, workspaceRoot, projectionEnvironment) {
|
|
380
|
+
const units = new Map();
|
|
381
|
+
const unresolved = new Map();
|
|
382
|
+
if (!runtime.hasKind('infra/web-app'))
|
|
383
|
+
return { units, unresolved };
|
|
384
|
+
for (const descriptor of runtime.query('infra/web-app').descriptors()) {
|
|
385
|
+
const projected = await settle(() => projectWebApp(runtime, descriptor.id, {
|
|
386
|
+
appRoot: paths.resolve(workspaceRoot, descriptor.appDir),
|
|
387
|
+
target: 'production',
|
|
388
|
+
projectionEnvironment: { ...projectionEnvironment }
|
|
389
|
+
}));
|
|
390
|
+
if (!projected.ok) {
|
|
391
|
+
const cause = projected.cause;
|
|
392
|
+
unresolved.set(descriptor.deployment.appId, cause instanceof Error && isCapabilityError(cause) ? (cause.reason ?? cause.code) : 'web-app-projection-failed');
|
|
393
|
+
}
|
|
394
|
+
else if (projected.value.workerName) {
|
|
395
|
+
units.set(projected.value.deployment.appId, projected.value.workerName);
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
unresolved.set(descriptor.deployment.appId, 'provider-names-no-unit');
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return { units, unresolved };
|
|
402
|
+
}
|
|
403
|
+
/** Each dependency's deployed unit is registered, or the check names every dependency it could not verify and why. */
|
|
404
|
+
export function checkDependencyUnits(input) {
|
|
405
|
+
const dependencies = [...new Set(input.deployment.dependsOn.map((dependency) => dependency.appId))];
|
|
406
|
+
const unverified = dependencies.filter((appId) => !input.units.has(appId));
|
|
407
|
+
const why = (appId) => `${appId}: ${input.unresolved?.get(appId) ?? 'no registered infra/web-app'}`;
|
|
408
|
+
return {
|
|
409
|
+
id: 'dependency-units',
|
|
410
|
+
label: 'Dependency deployed units',
|
|
411
|
+
status: unverified.length > 0 ? 'unknown' : 'pass',
|
|
412
|
+
summary: unverified.length > 0
|
|
413
|
+
? `No registered infra/web-app names the deployed unit of ${unverified.join(', ')}; the provider could not check this app's bindings to them.`
|
|
414
|
+
: dependencies.length > 0
|
|
415
|
+
? `Every dependency's deployed unit is registered: ${dependencies.join(', ')}.`
|
|
416
|
+
: 'The deployment declares no dependencies.',
|
|
417
|
+
evidence: unverified.length > 0 ? unverified.map(why) : dependencies.map((appId) => `${appId}: ${input.units.get(appId)}`),
|
|
418
|
+
action: unverified.length > 0
|
|
419
|
+
? 'Declare each listed dependency as an infra/web-app descriptor in its own package (<app>.infra.ts).'
|
|
420
|
+
: null
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
/** The registered deployment providers' descriptors, as their schema reads them. */
|
|
424
|
+
function registeredProviders(runtime) {
|
|
425
|
+
if (!runtime.hasKind('infra/deployment-provider'))
|
|
426
|
+
return [];
|
|
427
|
+
return runtime.query('infra/deployment-provider').descriptors()
|
|
428
|
+
.map((descriptor) => DeploymentProviderDescriptorSchema.parse(descriptor));
|
|
429
|
+
}
|
|
430
|
+
export async function collectDeployReadinessReport(input) {
|
|
431
|
+
const configHost = await resolveConfigLoadHost(input.runtime);
|
|
432
|
+
const appDir = await resolveAppDir(configHost, input.appDir);
|
|
433
|
+
const located = await locateDeploymentSource(input.runtime, configHost, appDir);
|
|
434
|
+
const configPath = located.configPath ?? (await findConfigFile(configHost, appDir, located.settings.module));
|
|
435
|
+
const workspaceRoot = configHost.paths.resolve(input.workspaceRoot);
|
|
436
|
+
const collection = input.collection === undefined ? await boundCollection(configHost, workspaceRoot) : input.collection;
|
|
437
|
+
const maxStatusFiles = Math.max(1, Math.min(input.maxStatusFiles ?? 25, 100));
|
|
438
|
+
const runtime = input.runtime;
|
|
439
|
+
const execution = input.execution ?? (await resolveRuntimeExecution(runtime));
|
|
440
|
+
const logger = infraDeployLogger(runtime);
|
|
441
|
+
const log = {
|
|
442
|
+
info: (message) => logger.info(message),
|
|
443
|
+
warn: (message) => logger.warn(message),
|
|
444
|
+
log: (message) => logger.info(message),
|
|
445
|
+
error: (message) => logger.error(message)
|
|
446
|
+
};
|
|
447
|
+
// The projection is data: when the caller already resolved it (e.g. deploy run),
|
|
448
|
+
// evaluate under that object; otherwise resolve the provider's environment and
|
|
449
|
+
// re-evaluate in a fresh process when the provider projects variables into the render.
|
|
450
|
+
let projectionEnvironment = input.projectionEnvironment ?? {};
|
|
451
|
+
let loaded = await loadDeploymentConfig(appDir, {
|
|
452
|
+
runtime,
|
|
453
|
+
freshProcess: input.freshDeploymentProjection === true,
|
|
454
|
+
execution,
|
|
455
|
+
projectionEnvironment
|
|
456
|
+
});
|
|
457
|
+
const provider = input.provider ?? loaded.provider;
|
|
458
|
+
const environment = normalizeDeploymentEnvironment(input.environment);
|
|
459
|
+
const { implementation } = await resolveDeploymentProvider(runtime, provider);
|
|
460
|
+
if (input.projectionEnvironment === undefined) {
|
|
461
|
+
const providerEnvironment = await implementation.environment({
|
|
462
|
+
environment,
|
|
463
|
+
credentialSource: 'secrets-store',
|
|
464
|
+
log
|
|
465
|
+
});
|
|
466
|
+
if (providerEnvironment.projected) {
|
|
467
|
+
projectionEnvironment = providerEnvironment.variables;
|
|
468
|
+
loaded = await loadDeploymentConfig(appDir, {
|
|
469
|
+
runtime,
|
|
470
|
+
freshProcess: true,
|
|
471
|
+
execution,
|
|
472
|
+
projectionEnvironment
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
const { units, unresolved } = await registeredDeployedUnits(runtime, configHost.paths, workspaceRoot, projectionEnvironment);
|
|
477
|
+
const inspection = await implementation.inspect({
|
|
478
|
+
appDir,
|
|
479
|
+
configPath,
|
|
480
|
+
displayBase: input.displayBase,
|
|
481
|
+
deployment: loaded.deployment,
|
|
482
|
+
module: deploymentModuleEvaluation(loaded),
|
|
483
|
+
environment,
|
|
484
|
+
units,
|
|
485
|
+
log
|
|
486
|
+
});
|
|
487
|
+
const environmentResolution = resolveDeploymentEnvironment({
|
|
488
|
+
deployment: loaded.deployment,
|
|
489
|
+
facts: DeploymentEnvironmentFactsSchema.parse(inspection.facts),
|
|
490
|
+
environment,
|
|
491
|
+
runtimeEnvironments: runtimeEnvironmentDescriptors(runtime)
|
|
492
|
+
});
|
|
493
|
+
const sourceRoot = await settle(() => resolveGitRepositoryRoot(runtime, execution, appDir));
|
|
494
|
+
const lockedSelectors = sourceRoot.ok && sourceRoot.value
|
|
495
|
+
? await checkLockedWorkspaceSelectors(runtime, sourceRoot.value)
|
|
496
|
+
: undefined;
|
|
497
|
+
const checks = [
|
|
498
|
+
checkCliDiscovery(),
|
|
499
|
+
await checkWorktree({ execution, runtime, workspaceRoot, appDir, maxStatusFiles }),
|
|
500
|
+
checkDeploymentConfig(loaded.deployment, configHost.paths.relative(input.displayBase, configPath) || configPath),
|
|
501
|
+
...(lockedSelectors ? [lockedSelectors] : []),
|
|
502
|
+
checkDeploymentEnvironment(environmentResolution),
|
|
503
|
+
...inspection.checks.map((check) => DeploymentReadinessCheckSchema.parse(check)),
|
|
504
|
+
checkDependencyUnits({ deployment: loaded.deployment, units, unresolved }),
|
|
505
|
+
await checkVibesKitExports(configHost, collection, input.displayBase),
|
|
506
|
+
checkProviderDeclarations({ provider, raw: loaded.raw, providers: registeredProviders(runtime) })
|
|
507
|
+
];
|
|
508
|
+
return {
|
|
509
|
+
appDir,
|
|
510
|
+
appPath: configHost.paths.relative(workspaceRoot, appDir) || '.',
|
|
511
|
+
environment: environmentResolution.environment,
|
|
512
|
+
generatedAt: (input.now ?? new Date()).toISOString(),
|
|
513
|
+
environmentResolution,
|
|
514
|
+
summary: summarize(checks),
|
|
515
|
+
checks
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Readiness for every registered app of the bound workspace's repository
|
|
520
|
+
* collection that declares a deployment config. The apps come from the
|
|
521
|
+
* collection's manifest (`@vibesdotdev/config/repository-collection`), never
|
|
522
|
+
* from listing a directory.
|
|
523
|
+
*/
|
|
524
|
+
export async function collectDeployReadinessFleetReport(input) {
|
|
525
|
+
const configHost = await resolveConfigLoadHost(input.runtime);
|
|
526
|
+
const collection = await readRepositoryCollection(configHost, input.workspaceRoot);
|
|
527
|
+
const workspaceRoot = collection.root;
|
|
528
|
+
const runtime = input.runtime;
|
|
529
|
+
const execution = input.execution ?? (await resolveRuntimeExecution(runtime));
|
|
530
|
+
const now = input.now ?? new Date();
|
|
531
|
+
const reports = [];
|
|
532
|
+
const appDirs = registeredAppCheckouts(configHost, collection).sort((a, b) => a.localeCompare(b));
|
|
533
|
+
for (const appDir of appDirs) {
|
|
534
|
+
if (!(await declaresDeployment(runtime, configHost, appDir)))
|
|
535
|
+
continue;
|
|
536
|
+
const reportOutcome = await settle(() => collectDeployReadinessReport({
|
|
537
|
+
appDir,
|
|
538
|
+
workspaceRoot,
|
|
539
|
+
displayBase: input.displayBase,
|
|
540
|
+
collection,
|
|
541
|
+
environment: input.environment,
|
|
542
|
+
maxStatusFiles: input.maxStatusFiles,
|
|
543
|
+
now,
|
|
544
|
+
runtime,
|
|
545
|
+
execution
|
|
546
|
+
}));
|
|
547
|
+
if (reportOutcome.ok) {
|
|
548
|
+
reports.push(reportOutcome.value);
|
|
549
|
+
}
|
|
550
|
+
else if (!(reportOutcome.cause instanceof NonDeployableDeploymentConfigError)) {
|
|
551
|
+
throw reportOutcome.cause;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
return {
|
|
555
|
+
workspaceRoot,
|
|
556
|
+
environment: input.environment ?? 'production',
|
|
557
|
+
generatedAt: now.toISOString(),
|
|
558
|
+
summary: {
|
|
559
|
+
apps: reports.length,
|
|
560
|
+
passing: reports.filter((report) => report.summary.status === 'pass').length,
|
|
561
|
+
warnings: reports.filter((report) => report.summary.status === 'warn').length,
|
|
562
|
+
failures: reports.filter((report) => report.summary.status === 'fail').length,
|
|
563
|
+
unknown: reports.filter((report) => report.summary.status === 'unknown').length
|
|
564
|
+
},
|
|
565
|
+
reports
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
function statusGlyph(status) {
|
|
569
|
+
switch (status) {
|
|
570
|
+
case 'pass':
|
|
571
|
+
return 'OK';
|
|
572
|
+
case 'warn':
|
|
573
|
+
return 'WARN';
|
|
574
|
+
case 'fail':
|
|
575
|
+
return 'FAIL';
|
|
576
|
+
case 'unknown':
|
|
577
|
+
return 'UNKNOWN';
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
export function validateReadinessScope(path, all) {
|
|
581
|
+
if (all && path) {
|
|
582
|
+
throw new CapabilityError('Pass either a path or --all, not both.', 'INVALID_INPUT');
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
export function ensureFleetReadiness(fleet) {
|
|
586
|
+
if (fleet.summary.failures === 0)
|
|
587
|
+
return;
|
|
588
|
+
throw new CapabilityError(`Deploy readiness fleet failed: ${fleet.summary.failures} app(s) have failing checks.`, 'UNAVAILABLE', { details: fleet.summary, recoveryHint: 'Resolve the failing app reports before deploying.' });
|
|
589
|
+
}
|
|
590
|
+
export function fleetTextLines(fleet) {
|
|
591
|
+
return [
|
|
592
|
+
`Deploy readiness fleet (${fleet.environment}): ${fleet.summary.apps} apps, ${fleet.summary.failures} failing, ${fleet.summary.warnings} warning`,
|
|
593
|
+
...fleet.reports.map((report) => ` ${statusGlyph(report.summary.status)} ${report.appPath}: ${report.summary.failures} failing, ${report.summary.warnings} warning`)
|
|
594
|
+
];
|
|
595
|
+
}
|
|
596
|
+
export default {
|
|
597
|
+
async execute(args, opts, context) {
|
|
598
|
+
const { runtime } = context;
|
|
599
|
+
const cwd = requireRuntimeCwd(runtime);
|
|
600
|
+
const ui = await runtime.context('cli/ui');
|
|
601
|
+
const output = readString(opts.output) ?? 'table';
|
|
602
|
+
const all = opts.all === true;
|
|
603
|
+
validateReadinessScope(readString(args.path), all);
|
|
604
|
+
const workspaceRoot = await runtime.context('runtime/workspace-path');
|
|
605
|
+
const displayBase = cwd;
|
|
606
|
+
if (all) {
|
|
607
|
+
const fleet = await collectDeployReadinessFleetReport({
|
|
608
|
+
workspaceRoot,
|
|
609
|
+
displayBase,
|
|
610
|
+
environment: readString(opts.environment),
|
|
611
|
+
maxStatusFiles: readNumber(opts.maxStatusFiles),
|
|
612
|
+
runtime
|
|
613
|
+
});
|
|
614
|
+
if (output === 'json')
|
|
615
|
+
ui.json(fleet);
|
|
616
|
+
else if (output === 'table') {
|
|
617
|
+
ui.table(fleet.reports.map((report) => ({
|
|
618
|
+
status: report.summary.status,
|
|
619
|
+
app: report.appPath,
|
|
620
|
+
passing: report.summary.passing,
|
|
621
|
+
warnings: report.summary.warnings,
|
|
622
|
+
failures: report.summary.failures,
|
|
623
|
+
unknown: report.summary.unknown
|
|
624
|
+
})), { columns: ['status', 'app', 'passing', 'warnings', 'failures', 'unknown'] });
|
|
625
|
+
}
|
|
626
|
+
else
|
|
627
|
+
for (const line of fleetTextLines(fleet))
|
|
628
|
+
ui.log(line);
|
|
629
|
+
ensureFleetReadiness(fleet);
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
const paths = await getRuntimePath(runtime);
|
|
633
|
+
const report = await collectDeployReadinessReport({
|
|
634
|
+
appDir: paths.resolve(cwd, readString(args.path) ?? '.'),
|
|
635
|
+
workspaceRoot,
|
|
636
|
+
displayBase,
|
|
637
|
+
environment: readString(opts.environment),
|
|
638
|
+
maxStatusFiles: readNumber(opts.maxStatusFiles),
|
|
639
|
+
runtime
|
|
640
|
+
});
|
|
641
|
+
// Render the report first (so the operator/JSON consumer always sees the
|
|
642
|
+
// full readiness detail), then let a failing verdict propagate as a coded
|
|
643
|
+
// error the surface projects into the exit code + envelope. Note the JSON
|
|
644
|
+
// branch previously `return`ed before the exit-code check, so `--output
|
|
645
|
+
// json` silently exited 0 even with failing checks — throwing after the
|
|
646
|
+
// render closes that exit-0-on-error hole for both output modes.
|
|
647
|
+
if (output === 'json') {
|
|
648
|
+
ui.json(report);
|
|
649
|
+
}
|
|
650
|
+
else if (output === 'table') {
|
|
651
|
+
ui.table(report.checks.map((check) => ({
|
|
652
|
+
status: check.status,
|
|
653
|
+
check: check.label,
|
|
654
|
+
summary: check.summary,
|
|
655
|
+
action: check.action ?? '-'
|
|
656
|
+
})), { columns: ['status', 'check', 'summary', 'action'] });
|
|
657
|
+
}
|
|
658
|
+
else {
|
|
659
|
+
ui.info(`Deploy readiness for ${report.appPath} (${report.environment}): ${report.summary.status}`);
|
|
660
|
+
for (const check of report.checks) {
|
|
661
|
+
ui.log(` ${statusGlyph(check.status)} ${check.label}: ${check.summary}`);
|
|
662
|
+
if (check.action)
|
|
663
|
+
ui.log(` action: ${check.action}`);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
if (report.summary.failures > 0) {
|
|
667
|
+
throw new CapabilityError(`Deploy readiness for ${report.appPath} (${report.environment}) failed: ${report.summary.failures} check(s) failing.`, 'UNAVAILABLE', {
|
|
668
|
+
details: {
|
|
669
|
+
appPath: report.appPath,
|
|
670
|
+
environment: report.environment,
|
|
671
|
+
summary: report.summary
|
|
672
|
+
},
|
|
673
|
+
recoveryHint: 'Resolve the failing checks listed above before deploying.'
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
};
|
|
678
|
+
//# sourceMappingURL=infra-deploy.readiness.cli-command.impl.js.map
|