@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
package/dist/config-loader.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type RuntimePath } from '@vibesdotdev/paths';
|
|
2
|
+
import type { FileSystemAdapterInterface } from '@vibesdotdev/filesystem/interfaces/adapter';
|
|
3
|
+
import { type AppDeployment } from '@vibesdotdev/infra-core/deployment';
|
|
4
|
+
import { CapabilityError, composeChildEnv, type RuntimeRef } from '@vibesdotdev/kernel';
|
|
5
|
+
import type { RuntimeExecution } from '@vibesdotdev/kernel/execution';
|
|
6
|
+
import { findConfigFile } from './deployment-settings.ts';
|
|
7
|
+
/** What evaluating a deployment config reads from the runtime it is handed. */
|
|
8
|
+
export type ConfigEvaluationRuntime = Parameters<typeof composeChildEnv>[0] & Pick<RuntimeRef, 'query' | 'hasKind'>;
|
|
2
9
|
export interface LoadedDeployment {
|
|
3
10
|
configPath: string;
|
|
4
11
|
appDir: string;
|
|
@@ -6,19 +13,59 @@ export interface LoadedDeployment {
|
|
|
6
13
|
provider: string;
|
|
7
14
|
raw: unknown;
|
|
8
15
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* a managed deployment — used by the regen orchestrator to gate writes
|
|
13
|
-
* and the CI drift check.
|
|
16
|
+
* The provider artifact the deployment module rendered, through the
|
|
17
|
+
* renderer its provider's descriptor names; `null` when the provider renders
|
|
18
|
+
* none or no plugin registers it.
|
|
14
19
|
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
20
|
+
rendered: string | null;
|
|
21
|
+
/** The artifact local development reads, when the module renders one. */
|
|
22
|
+
localRendered: string | null;
|
|
23
|
+
/** The module opts into a generated, committed provider artifact. */
|
|
17
24
|
managed: boolean;
|
|
18
|
-
/**
|
|
19
|
-
|
|
25
|
+
/** Whether the module renders a provider artifact under an environment. */
|
|
26
|
+
renders: boolean;
|
|
27
|
+
/** The provider's name for the deployed unit, when the module declares one. */
|
|
28
|
+
unitName: string | null;
|
|
20
29
|
}
|
|
21
|
-
|
|
22
|
-
export
|
|
23
|
-
|
|
30
|
+
/** The host I/O one load resolves once: host-owned path probes plus path mechanics. */
|
|
31
|
+
export interface ConfigLoadHost {
|
|
32
|
+
readonly files: FileSystemAdapterInterface;
|
|
33
|
+
readonly paths: RuntimePath;
|
|
34
|
+
}
|
|
35
|
+
export declare function resolveConfigLoadHost(runtime: RuntimeRef): Promise<ConfigLoadHost>;
|
|
36
|
+
export declare class NonDeployableDeploymentConfigError extends CapabilityError {
|
|
37
|
+
readonly appId: string | undefined;
|
|
38
|
+
/** The marker's own human-readable reason, overriding the taxonomy code. */
|
|
39
|
+
readonly reason: string;
|
|
40
|
+
constructor(input: {
|
|
41
|
+
appId?: string;
|
|
42
|
+
reason: string;
|
|
43
|
+
configPath?: string;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The app directory a deployment config is loaded from. Callers resolve an
|
|
48
|
+
* operator's relative argument against the invocation cwd first
|
|
49
|
+
* (`requireRuntimeCwd(runtime)`); a relative path here is a caller
|
|
50
|
+
* error, never resolved against the process cwd or an environment variable.
|
|
51
|
+
*/
|
|
52
|
+
export declare function resolveAppDir(host: ConfigLoadHost, input: string): Promise<string>;
|
|
53
|
+
export { findConfigFile };
|
|
54
|
+
/**
|
|
55
|
+
* The keys a deployment module reads while rendering (metadata identifiers,
|
|
56
|
+
* never secret values): every registered deployment provider's declared
|
|
57
|
+
* `projectionKeys`, so the loader names no provider.
|
|
58
|
+
*/
|
|
59
|
+
export declare function deploymentProjectionKeys(runtime: Pick<RuntimeRef, 'hasKind' | 'query'>): string[];
|
|
60
|
+
export declare function loadDeploymentConfig(appDir: string, options: {
|
|
61
|
+
/** The runtime a fallback or fresh-process evaluation runs a child of. */
|
|
62
|
+
runtime: RuntimeRef;
|
|
63
|
+
freshProcess?: boolean;
|
|
64
|
+
execution?: RuntimeExecution;
|
|
65
|
+
/**
|
|
66
|
+
* The resolved Cloudflare projection, as data, for a fresh-process
|
|
67
|
+
* evaluation. The child sees exactly these projection keys.
|
|
68
|
+
*/
|
|
69
|
+
projectionEnvironment?: Readonly<Record<string, string>>;
|
|
70
|
+
}): Promise<LoadedDeployment>;
|
|
24
71
|
//# sourceMappingURL=config-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAE7F,OAAO,EAAyB,KAAK,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAS/F,OAAO,EAAE,eAAe,EAAE,eAAe,EAAyC,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/H,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,OAAO,EAAE,cAAc,EAA4C,MAAM,0BAA0B,CAAC;AAOpG,+EAA+E;AAC/E,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC,CAAC;AAEpH,MAAM,WAAW,gBAAgB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,aAAa,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,yEAAyE;IACzE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAC;IACjB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,uFAAuF;AACvF,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,KAAK,EAAE,0BAA0B,CAAC;IAC3C,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;CAC5B;AAED,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,CAOxF;AAED,qBAAa,kCAAmC,SAAQ,eAAe;IACtE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,4EAA4E;IAC5E,SAAkB,MAAM,EAAE,MAAM,CAAC;gBAErB,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;CAY1E;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBxF;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAwN1B;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG,MAAM,EAAE,CAOjG;AAqGD,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE;IACR,0EAA0E;IAC1E,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACzD,GACC,OAAO,CAAC,gBAAgB,CAAC,CAqF3B"}
|
package/dist/config-loader.js
CHANGED
|
@@ -1,135 +1,402 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const absolute = isAbsolute(input) ? input : resolve(process.cwd(), input);
|
|
7
|
-
if (!existsSync(absolute)) {
|
|
8
|
-
throw new Error(`Path does not exist: ${absolute}`);
|
|
9
|
-
}
|
|
10
|
-
const stat = statSync(absolute);
|
|
11
|
-
if (!stat.isDirectory()) {
|
|
12
|
-
throw new Error(`Expected directory, got file: ${absolute}`);
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
13
6
|
}
|
|
14
|
-
return
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import { getRuntimePath } from '@vibesdotdev/paths';
|
|
10
|
+
import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem/client/resolve-adapter';
|
|
11
|
+
import { projectWebApp } from '@vibesdotdev/infra-core';
|
|
12
|
+
import { validateAppDeployment } from '@vibesdotdev/infra-core/deployment';
|
|
13
|
+
import { DeploymentModuleExportSchema, DeploymentModuleRenderSchema, DeploymentProviderDescriptorSchema } from '@vibesdotdev/infra-core/kinds';
|
|
14
|
+
import { CapabilityError, composeChildEnv, settle, settleNow } from '@vibesdotdev/kernel';
|
|
15
|
+
import * as z from 'zod/v4';
|
|
16
|
+
import { resolveRuntimeExecution } from "./runtime-execution.js";
|
|
17
|
+
import { findConfigFile, readDeploymentSettings, UNIT_CONFIG_FILE } from "./deployment-settings.js";
|
|
18
|
+
import { composeDeclaredDeploymentProvider } from "./declared-provider.js";
|
|
19
|
+
function failureMessage(failure) {
|
|
20
|
+
return failure instanceof Error ? failure.message : failure.description;
|
|
21
|
+
}
|
|
22
|
+
export async function resolveConfigLoadHost(runtime) {
|
|
23
|
+
return {
|
|
24
|
+
// The app directory is named by the operator, not by the caller's
|
|
25
|
+
// workspace binding, so its probes go through the host-owned view.
|
|
26
|
+
files: await resolveFileSystemAdapter(runtime, { binding: false }),
|
|
27
|
+
paths: await getRuntimePath(runtime)
|
|
28
|
+
};
|
|
15
29
|
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
export class NonDeployableDeploymentConfigError extends CapabilityError {
|
|
31
|
+
appId;
|
|
32
|
+
/** The marker's own human-readable reason, overriding the taxonomy code. */
|
|
33
|
+
reason;
|
|
34
|
+
constructor(input) {
|
|
35
|
+
super(`deployment.config${input.configPath ? ` in ${input.configPath}` : ''} is intentionally not deployable: ${input.reason}`, 'INVALID_INPUT', {
|
|
36
|
+
reason: 'non-deployable-deployment-config',
|
|
37
|
+
details: { appId: input.appId ?? null, configPath: input.configPath ?? null }
|
|
38
|
+
});
|
|
39
|
+
this.appId = input.appId;
|
|
40
|
+
this.reason = input.reason;
|
|
21
41
|
}
|
|
22
|
-
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The app directory a deployment config is loaded from. Callers resolve an
|
|
45
|
+
* operator's relative argument against the invocation cwd first
|
|
46
|
+
* (`requireRuntimeCwd(runtime)`); a relative path here is a caller
|
|
47
|
+
* error, never resolved against the process cwd or an environment variable.
|
|
48
|
+
*/
|
|
49
|
+
export async function resolveAppDir(host, input) {
|
|
50
|
+
if (!host.paths.isAbsolute(input)) {
|
|
51
|
+
throw new CapabilityError(`App directory must be absolute: ${input}`, 'INVALID_INPUT', {
|
|
52
|
+
reason: 'path-relative',
|
|
53
|
+
details: { path: input }
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
const absolute = host.paths.resolve(input);
|
|
57
|
+
const stat = await host.files.stat(absolute);
|
|
58
|
+
if (stat.kind !== 'directory') {
|
|
59
|
+
throw new CapabilityError(`Expected directory, got file: ${absolute}`, 'INVALID_INPUT', {
|
|
60
|
+
reason: 'not-a-directory',
|
|
61
|
+
details: { path: absolute }
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return absolute;
|
|
65
|
+
}
|
|
66
|
+
export { findConfigFile };
|
|
67
|
+
/** The shape of an export the evaluator accepts: a record of arbitrary values. */
|
|
68
|
+
const ConfigExportRecordSchema = z.record(z.string(), z.unknown());
|
|
69
|
+
/** A non-deployable marker: `deployable: false` plus a reason, optional appId. */
|
|
70
|
+
const NonDeployableMarkerSchema = z.object({
|
|
71
|
+
deployable: z.boolean(),
|
|
72
|
+
reason: z.string(),
|
|
73
|
+
appId: z.string().optional()
|
|
74
|
+
}).loose();
|
|
75
|
+
/**
|
|
76
|
+
* The shape the load contract returns. SAFETY: appId presence and the provider
|
|
77
|
+
* string are checked by the caller; the full AppDeployment shape is validated
|
|
78
|
+
* by the owning infra-core schema when the provider projection is built
|
|
79
|
+
* (createAppDeployment), exactly as before structured admission here.
|
|
80
|
+
*/
|
|
81
|
+
function asAppDeployment(value) {
|
|
82
|
+
// SAFETY: the load contract checks appId presence and the provider string
|
|
83
|
+
// before this cast; the full AppDeployment shape is validated by the owning
|
|
84
|
+
// infra-core schema when the provider projection is built
|
|
85
|
+
// (createAppDeployment), exactly as before structured admission here.
|
|
86
|
+
return value;
|
|
23
87
|
}
|
|
24
88
|
function extractDeployment(raw) {
|
|
25
|
-
|
|
89
|
+
const record = ConfigExportRecordSchema.safeParse(raw);
|
|
90
|
+
if (!record.success) {
|
|
26
91
|
throw new Error('deployment.config default export must be an object');
|
|
27
92
|
}
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
93
|
+
const nonDeployable = extractNonDeployableMarker(record.data);
|
|
94
|
+
if (nonDeployable) {
|
|
95
|
+
throw new NonDeployableDeploymentConfigError(nonDeployable);
|
|
96
|
+
}
|
|
97
|
+
const rawCandidate = record.data.deployment ?? record.data;
|
|
98
|
+
const candidate = ConfigExportRecordSchema.safeParse(rawCandidate);
|
|
99
|
+
if (!candidate.success) {
|
|
31
100
|
throw new Error('deployment.config must export an AppDeployment (or { deployment })');
|
|
32
101
|
}
|
|
33
|
-
|
|
34
|
-
|
|
102
|
+
if (!('appId' in candidate.data)) {
|
|
103
|
+
throw new Error('deployment.config must export an AppDeployment (or { deployment })');
|
|
104
|
+
}
|
|
105
|
+
const provider = z.string().safeParse(candidate.data.provider);
|
|
106
|
+
if (!provider.success || provider.data.length === 0) {
|
|
35
107
|
throw new Error('deployment.provider is required');
|
|
36
108
|
}
|
|
37
|
-
return { deployment:
|
|
109
|
+
return { deployment: asAppDeployment(candidate.data), provider: provider.data };
|
|
110
|
+
}
|
|
111
|
+
function extractNonDeployableMarker(raw) {
|
|
112
|
+
const marker = NonDeployableMarkerSchema.safeParse(raw.deployList ?? raw.deploymentList);
|
|
113
|
+
if (!marker.success || marker.data.deployable !== false)
|
|
114
|
+
return null;
|
|
115
|
+
if (marker.data.reason.length === 0) {
|
|
116
|
+
throw new Error('non-deployable deployment.config marker requires a non-empty reason');
|
|
117
|
+
}
|
|
118
|
+
const appId = marker.data.appId;
|
|
119
|
+
return {
|
|
120
|
+
appId: appId !== undefined && appId.length > 0 ? appId : undefined,
|
|
121
|
+
reason: marker.data.reason
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/** A module whose provider renders nothing (or is not composed here). */
|
|
125
|
+
const NO_RENDER = { managed: false, renders: false, rendered: null, localRendered: null, unitName: null };
|
|
126
|
+
/** Each registered provider's renderer, by provider id. */
|
|
127
|
+
function deploymentRenderers(runtime) {
|
|
128
|
+
const renderers = new Map();
|
|
129
|
+
if (!runtime.hasKind('infra/deployment-provider'))
|
|
130
|
+
return renderers;
|
|
131
|
+
for (const descriptor of runtime.query('infra/deployment-provider').descriptors()) {
|
|
132
|
+
const { id, renderer } = DeploymentProviderDescriptorSchema.parse(descriptor);
|
|
133
|
+
if (renderer)
|
|
134
|
+
renderers.set(id, { module: resolvedRendererModule(renderer.module), export: renderer.export });
|
|
135
|
+
}
|
|
136
|
+
return renderers;
|
|
38
137
|
}
|
|
39
138
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
139
|
+
* The renderer module as this process resolves it. A fresh child evaluates
|
|
140
|
+
* from the app's directory, which need not see the provider's package, so it
|
|
141
|
+
* imports the URL resolved here; an unresolvable specifier stays bare and
|
|
142
|
+
* refuses at import with its own module-resolution error.
|
|
42
143
|
*/
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
144
|
+
function resolvedRendererModule(specifier) {
|
|
145
|
+
const resolved = settleNow(() => import.meta.resolve(specifier));
|
|
146
|
+
return resolved.ok ? resolved.value : specifier;
|
|
147
|
+
}
|
|
148
|
+
/** The provider an export declares, read leniently: admission refuses a malformed one later. */
|
|
149
|
+
const DeclaredProviderSchema = z.object({ provider: z.string().min(1) }).loose();
|
|
150
|
+
function declaredProvider(raw) {
|
|
151
|
+
const parsed = DeclaredProviderSchema.safeParse(raw.deployment ?? raw);
|
|
152
|
+
return parsed.success ? parsed.data.provider : null;
|
|
153
|
+
}
|
|
154
|
+
/** A renderer module's named export: a function, admitted before it is called. */
|
|
155
|
+
const RendererModuleSchema = z.record(z.string(), z.unknown());
|
|
156
|
+
const RendererFunctionSchema = z.custom((value) => value instanceof Function);
|
|
157
|
+
async function renderInProcess(renderers, raw, projectionEnvironment) {
|
|
158
|
+
const provider = declaredProvider(raw);
|
|
159
|
+
const renderer = provider ? renderers.get(provider) : undefined;
|
|
160
|
+
if (!renderer)
|
|
161
|
+
return NO_RENDER;
|
|
162
|
+
const exported = DeploymentModuleExportSchema.safeParse(raw);
|
|
163
|
+
if (!exported.success) {
|
|
164
|
+
throw new CapabilityError('The deployment module exports values its provider renderer cannot read.', 'INVALID_INPUT', {
|
|
165
|
+
reason: 'deployment-module-export-invalid',
|
|
166
|
+
retryable: false,
|
|
167
|
+
details: { provider, fields: [...new Set(exported.error.issues.map((issue) => String(issue.path[0] ?? '(export)')))] }
|
|
168
|
+
});
|
|
60
169
|
}
|
|
61
|
-
|
|
170
|
+
const mod = RendererModuleSchema.parse(await import(__rewriteRelativeImportExtension(renderer.module)));
|
|
171
|
+
const render = RendererFunctionSchema.parse(mod[renderer.export]);
|
|
172
|
+
return DeploymentModuleRenderSchema.parse(render(exported.data, projectionEnvironment));
|
|
62
173
|
}
|
|
63
174
|
/**
|
|
64
|
-
* Load a deployment.config.ts
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
175
|
+
* Load a deployment.config.ts and produce its raw export + the provider
|
|
176
|
+
* artifact its provider's renderer renders.
|
|
177
|
+
*
|
|
178
|
+
* Preferred path: evaluate in-process, on the same entrypoint that invoked
|
|
179
|
+
* deploy, so PATH/env/module-resolution match. This works whenever the host
|
|
180
|
+
* runtime can resolve the config's workspace imports — i.e. running from
|
|
181
|
+
* source, under `bun` in CI, or at build time.
|
|
71
182
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
183
|
+
* Fallback path: the published CLI ships as a `bun build --compile` standalone
|
|
184
|
+
* binary, which has no on-disk `node_modules` and cannot resolve the bare
|
|
185
|
+
* workspace specifiers a `deployment.config.ts` imports (`infra-core/deployment`,
|
|
186
|
+
* `infra-cloudflare/web-app`). In-process evaluation throws a module-resolution
|
|
187
|
+
* error there. When — and only when — that happens, delegate evaluation to a
|
|
188
|
+
* workspace-aware `bun` subprocess anchored at the config directory, which has
|
|
189
|
+
* real `node_modules` resolution. The deployment object and provider render are
|
|
190
|
+
* plain serializable data, so they round-trip through JSON cleanly.
|
|
78
191
|
*/
|
|
79
|
-
async function
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
192
|
+
async function loadConfigInCurrentRuntime(runtime, configPath, projectionEnvironment) {
|
|
193
|
+
const primary = await settle(() => loadConfigInProcess(deploymentRenderers(runtime), configPath, projectionEnvironment));
|
|
194
|
+
if (primary.ok)
|
|
195
|
+
return primary.value;
|
|
196
|
+
if (!isModuleResolutionError(primary.cause))
|
|
197
|
+
throw primary.cause;
|
|
198
|
+
// The fallback evaluates in a child of the caller's runtime.
|
|
199
|
+
return loadConfigViaWorkspaceBun(runtime, configPath, primary.cause, await resolveRuntimeExecution(runtime), projectionEnvironment);
|
|
200
|
+
}
|
|
201
|
+
async function loadConfigInProcess(renderers, configPath, projectionEnvironment) {
|
|
202
|
+
// The query re-imports the file so repeated loads in one process see config
|
|
203
|
+
// edits; a query on a plain path specifier is a fresh module in Bun.
|
|
204
|
+
const mod = await import(__rewriteRelativeImportExtension(`${configPath}?v=${crypto.randomUUID()}`));
|
|
205
|
+
const exported = ConfigExportRecordSchema.safeParse(mod);
|
|
206
|
+
const raw = exported.success && 'default' in exported.data ? exported.data.default : mod;
|
|
207
|
+
const admitted = ConfigExportRecordSchema.safeParse(raw);
|
|
208
|
+
const render = await renderInProcess(renderers, admitted.success ? admitted.data : {}, projectionEnvironment);
|
|
209
|
+
return { raw, render };
|
|
210
|
+
}
|
|
211
|
+
/** The error facts a module-resolution failure carries. */
|
|
212
|
+
const ModuleResolutionErrorFactsSchema = z.object({
|
|
213
|
+
name: z.string().optional(),
|
|
214
|
+
code: z.string().optional(),
|
|
215
|
+
message: z.string().optional()
|
|
216
|
+
}).loose();
|
|
217
|
+
/**
|
|
218
|
+
* True when an import failed because a module/package could not be resolved —
|
|
219
|
+
* the signature of evaluating a workspace-coupled config in a runtime without
|
|
220
|
+
* on-disk `node_modules` (the compiled standalone binary). Other failures
|
|
221
|
+
* (syntax errors, thrown config logic) are NOT resolution errors and must
|
|
222
|
+
* propagate unchanged rather than be silently re-routed through a subprocess.
|
|
223
|
+
*/
|
|
224
|
+
function isModuleResolutionError(error) {
|
|
225
|
+
const facts = ModuleResolutionErrorFactsSchema.safeParse(error);
|
|
226
|
+
if (!facts.success)
|
|
227
|
+
return false;
|
|
228
|
+
if (facts.data.name === 'ResolveMessage')
|
|
229
|
+
return true;
|
|
230
|
+
if (facts.data.code === 'ERR_MODULE_NOT_FOUND')
|
|
231
|
+
return true;
|
|
232
|
+
return facts.data.message !== undefined && /Cannot find (module|package)/i.test(facts.data.message);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* The keys a deployment module reads while rendering (metadata identifiers,
|
|
236
|
+
* never secret values): every registered deployment provider's declared
|
|
237
|
+
* `projectionKeys`, so the loader names no provider.
|
|
238
|
+
*/
|
|
239
|
+
export function deploymentProjectionKeys(runtime) {
|
|
240
|
+
if (!runtime.hasKind('infra/deployment-provider'))
|
|
241
|
+
return [];
|
|
242
|
+
const keys = new Set();
|
|
243
|
+
for (const descriptor of runtime.query('infra/deployment-provider').descriptors()) {
|
|
244
|
+
for (const key of DeploymentProviderDescriptorSchema.parse(descriptor).projectionKeys)
|
|
245
|
+
keys.add(key);
|
|
246
|
+
}
|
|
247
|
+
return [...keys];
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* The child environment's projection declaration. A resolved projection is
|
|
251
|
+
* passed as data and is the child's whole projection: a key it omits is absent
|
|
252
|
+
* in the child (fail-closed). Without one, the child inherits the same keys
|
|
253
|
+
* from the caller runtime's captured environment, never the live process.
|
|
254
|
+
*/
|
|
255
|
+
function projectionChildDeclaration(keys, projectionEnvironment) {
|
|
256
|
+
if (!projectionEnvironment)
|
|
257
|
+
return { inheritEnv: [...keys] };
|
|
258
|
+
const env = {};
|
|
259
|
+
for (const key of keys) {
|
|
260
|
+
const value = projectionEnvironment[key];
|
|
261
|
+
if (value)
|
|
262
|
+
env[key] = value;
|
|
263
|
+
}
|
|
264
|
+
return { env };
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Evaluate the config in a `bun` subprocess that has workspace `node_modules`
|
|
268
|
+
* resolution. The evaluator mirrors {@link loadConfigInProcess} exactly (raw
|
|
269
|
+
* default export + optional host renderer) and writes the result to stdout
|
|
270
|
+
* after a sentinel line, keeping any logging the config or infra packages
|
|
271
|
+
* emit on import out of the parsed document.
|
|
272
|
+
*/
|
|
273
|
+
async function loadConfigViaWorkspaceBun(runtime, configPath, originalError, execution, projectionEnvironment) {
|
|
274
|
+
const paths = await getRuntimePath(runtime);
|
|
275
|
+
// The child renders through the renderer the export's provider declares,
|
|
276
|
+
// named here as data: it imports the module, never this package's closures.
|
|
277
|
+
const evaluator = `
|
|
278
|
+
const mod = await import(${JSON.stringify(configPath)});
|
|
279
|
+
const raw = (mod && mod.default !== undefined) ? mod.default : mod;
|
|
280
|
+
const projectionEnv = ${projectionEnvironment ? JSON.stringify(projectionEnvironment) : 'undefined'};
|
|
281
|
+
const renderers = ${JSON.stringify(Object.fromEntries(deploymentRenderers(runtime)))};
|
|
282
|
+
const declared = raw && typeof raw === 'object' ? (raw.deployment ?? raw) : null;
|
|
283
|
+
const renderer = declared && typeof declared.provider === 'string' ? renderers[declared.provider] : undefined;
|
|
284
|
+
const render = renderer
|
|
285
|
+
? (await import(renderer.module))[renderer.export](raw, projectionEnv)
|
|
286
|
+
: ${JSON.stringify(NO_RENDER)};
|
|
287
|
+
process.stdout.write('VIBES_CONFIG_RESULT:' + JSON.stringify({ raw, render }) + '\\n');
|
|
288
|
+
`;
|
|
289
|
+
// The evaluator child gets the composed base set plus, as declared data, the
|
|
290
|
+
// Cloudflare Secrets Store identifier (metadata, never a secret value) it
|
|
291
|
+
// needs to render canonical `secrets_store_secrets` bindings. Without it,
|
|
292
|
+
// fallback evaluation silently renders `secrets.required` and the deploy gate
|
|
293
|
+
// cannot reproduce the configuration it just resolved. Nothing else from the
|
|
294
|
+
// host environment reaches the deployment config's code (C15).
|
|
295
|
+
const env = composeChildEnv(runtime, projectionChildDeclaration(deploymentProjectionKeys(runtime), projectionEnvironment));
|
|
296
|
+
const result = await execution.execute({
|
|
297
|
+
command: 'bun',
|
|
298
|
+
args: ['-e', evaluator],
|
|
299
|
+
cwd: paths.dirname(configPath),
|
|
300
|
+
env,
|
|
301
|
+
envMode: 'replace',
|
|
302
|
+
timeout: 60_000
|
|
116
303
|
});
|
|
304
|
+
if (result.timedOut) {
|
|
305
|
+
throw new Error(`Timed out while evaluating ${configPath} via runtime/execution.`);
|
|
306
|
+
}
|
|
307
|
+
if (result.exitCode !== 0) {
|
|
308
|
+
throw new Error(`bun subprocess exited ${result.exitCode ?? 'unknown'} while evaluating ${configPath}:\n${result.stderr || result.stdout}`);
|
|
309
|
+
}
|
|
310
|
+
const SENTINEL = 'VIBES_CONFIG_RESULT:';
|
|
311
|
+
const line = (result.stdout ?? '')
|
|
312
|
+
.split('\n')
|
|
313
|
+
.find((candidate) => candidate.startsWith(SENTINEL));
|
|
314
|
+
if (line === undefined) {
|
|
315
|
+
throw new Error(`bun subprocess produced no config result while evaluating ${configPath}:\n${result.stderr || result.stdout}`);
|
|
316
|
+
}
|
|
317
|
+
const payload = settleNow(() => ConfigLoadOutputSchema.parse(JSON.parse(line.slice(SENTINEL.length))));
|
|
318
|
+
if (!payload.ok) {
|
|
319
|
+
// Surface the parse failure, but keep the original in-process resolution
|
|
320
|
+
// error visible so the true cause isn't lost.
|
|
321
|
+
throw new Error(`${failureMessage(payload.cause)}\n(in-process load first failed with: ${failureMessage(originalError)})`);
|
|
322
|
+
}
|
|
323
|
+
return payload.value;
|
|
117
324
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
325
|
+
/** The document the fallback evaluator returns on its sentinel line. */
|
|
326
|
+
const ConfigLoadOutputSchema = z.object({
|
|
327
|
+
raw: z.unknown(),
|
|
328
|
+
render: DeploymentModuleRenderSchema
|
|
329
|
+
}).loose();
|
|
330
|
+
export async function loadDeploymentConfig(appDir, options) {
|
|
331
|
+
const host = await resolveConfigLoadHost(options.runtime);
|
|
332
|
+
const dir = await resolveAppDir(host, appDir);
|
|
333
|
+
// The unit's `infra.deployment` settings come from the config owner: a declared deployment (data) or
|
|
334
|
+
// non-deployable marker is the answer; otherwise the declared module (default deployment.config.ts) is evaluated.
|
|
335
|
+
const settings = await readDeploymentSettings(options.runtime, dir);
|
|
336
|
+
if (settings.nonDeployable) {
|
|
337
|
+
throw new NonDeployableDeploymentConfigError({ ...settings.nonDeployable, configPath: dir });
|
|
338
|
+
}
|
|
339
|
+
if (settings.webAppId !== undefined) {
|
|
340
|
+
const runtime = options.runtime;
|
|
341
|
+
const input = { appRoot: dir, projectionEnvironment: { ...options.projectionEnvironment } };
|
|
342
|
+
const production = await projectWebApp(runtime, settings.webAppId, { ...input, target: 'production' });
|
|
343
|
+
const local = production.artifact === null ? production
|
|
344
|
+
: await projectWebApp(runtime, settings.webAppId, { ...input, target: 'local' });
|
|
345
|
+
const [descriptor] = runtime.query('infra/web-app').withId(settings.webAppId).descriptors();
|
|
346
|
+
if (!descriptor) {
|
|
347
|
+
throw new CapabilityError('The selected web app is no longer registered.', 'NOT_FOUND', {
|
|
348
|
+
reason: 'web-app-unavailable', details: { id: settings.webAppId }
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
return {
|
|
352
|
+
configPath: host.paths.join(dir, UNIT_CONFIG_FILE), appDir: dir,
|
|
353
|
+
deployment: production.deployment, provider: production.provider,
|
|
354
|
+
raw: { deployment: production.deployment, config: descriptor.config },
|
|
355
|
+
rendered: production.artifact?.content ?? null,
|
|
356
|
+
localRendered: local.artifact?.content ?? null,
|
|
357
|
+
managed: production.managed, renders: production.artifact !== null,
|
|
358
|
+
unitName: production.workerName
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
const declared = settings.deployment;
|
|
362
|
+
const configPath = declared ? host.paths.join(dir, UNIT_CONFIG_FILE) : await findConfigFile(host, dir, settings.module);
|
|
363
|
+
const execution = options.execution;
|
|
364
|
+
if (options.freshProcess && !execution) {
|
|
365
|
+
throw new CapabilityError("A fresh-process evaluation runs on the caller's runtime/execution; pass execution.", 'INVALID_INPUT', { reason: 'execution-required' });
|
|
366
|
+
}
|
|
367
|
+
const output = declared
|
|
368
|
+
? { raw: declared, render: NO_RENDER }
|
|
369
|
+
: options.freshProcess && execution
|
|
370
|
+
? await loadConfigViaWorkspaceBun(options.runtime, configPath, new Error('fresh deployment projection requested'), execution, options.projectionEnvironment)
|
|
371
|
+
: await loadConfigInCurrentRuntime(options.runtime, configPath, options.projectionEnvironment);
|
|
372
|
+
const extracted = settleNow(() => extractDeployment(output.raw));
|
|
373
|
+
if (!extracted.ok) {
|
|
374
|
+
const failure = extracted.cause;
|
|
375
|
+
if (failure instanceof NonDeployableDeploymentConfigError) {
|
|
376
|
+
throw new NonDeployableDeploymentConfigError({
|
|
377
|
+
appId: failure.appId,
|
|
378
|
+
reason: failure.reason,
|
|
379
|
+
configPath
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
throw failure;
|
|
383
|
+
}
|
|
384
|
+
const { deployment, provider } = extracted.value;
|
|
385
|
+
// The provider the deployment names is composed from its own declaration
|
|
386
|
+
// (`providerPlugin`) when this runtime has not composed it.
|
|
387
|
+
await composeDeclaredDeploymentProvider(options.runtime, deployment, dir);
|
|
388
|
+
validateAppDeployment(options.runtime, deployment);
|
|
124
389
|
return {
|
|
125
390
|
configPath,
|
|
126
391
|
appDir: dir,
|
|
127
392
|
deployment,
|
|
128
393
|
provider,
|
|
129
394
|
raw: output.raw,
|
|
130
|
-
|
|
395
|
+
rendered: output.render.rendered,
|
|
396
|
+
localRendered: output.render.localRendered,
|
|
131
397
|
managed: output.render.managed,
|
|
132
|
-
|
|
398
|
+
renders: output.render.renders,
|
|
399
|
+
unitName: output.render.unitName
|
|
133
400
|
};
|
|
134
401
|
}
|
|
135
402
|
//# sourceMappingURL=config-loader.js.map
|