@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,15 @@
|
|
|
1
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
2
|
+
import { type DatabaseMigrationTarget, type DatabaseMigrationTargetQuery } from '@vibesdotdev/infra-core/kinds';
|
|
3
|
+
import { type ApplyPendingMigrationsOptions, type MigrateOutcome, type PendingMigrationResult, type RunMigrateOptions } from '../schemas/migrate.ts';
|
|
4
|
+
export type { AppliedEntry, ApplyPendingMigrationsOptions, MigrateMode, MigrateOutcome, PendingMigrationResult, RunMigrateOptions } from '../schemas/migrate.ts';
|
|
5
|
+
/** The databases every registered engine serves for one app, in engine order. */
|
|
6
|
+
export declare function resolveMigrationTargets(runtime: VibesRuntime, query: DatabaseMigrationTargetQuery): Promise<DatabaseMigrationTarget[]>;
|
|
7
|
+
/** The one database a request names: by name or binding, the only one declared, or a refusal. */
|
|
8
|
+
export declare function selectMigrationTarget(targets: readonly DatabaseMigrationTarget[], databaseOverride?: string): DatabaseMigrationTarget;
|
|
9
|
+
/** The target one request names, refused before any credential or engine work. */
|
|
10
|
+
export declare function resolveMigrateTarget(runtime: VibesRuntime, appDir: string, databaseOverride?: string, configFileName?: string, environment?: string): Promise<DatabaseMigrationTarget>;
|
|
11
|
+
/** Apply one request against the one database it names. */
|
|
12
|
+
export declare function runMigrate(options: RunMigrateOptions): Promise<MigrateOutcome>;
|
|
13
|
+
/** Apply pending migrations to every database the app declares migrations for. */
|
|
14
|
+
export declare function applyPendingMigrations(options: ApplyPendingMigrationsOptions): Promise<PendingMigrationResult[]>;
|
|
15
|
+
//# sourceMappingURL=run-migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-migrate.d.ts","sourceRoot":"","sources":["../../src/migrations/run-migrate.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAkE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxH,OAAO,EAKN,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EAGjC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAGN,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,6BAA6B,EAAE,WAAW,EAAE,cAAc,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAMjK,iFAAiF;AACjF,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAQ5I;AAMD,iGAAiG;AACjG,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,SAAS,uBAAuB,EAAE,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAmBrI;AAED,kFAAkF;AAClF,wBAAsB,oBAAoB,CACzC,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,MAAM,EACzB,cAAc,CAAC,EAAE,MAAM,EACvB,WAAW,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,uBAAuB,CAAC,CAGlC;AA8ND,2DAA2D;AAC3D,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CA2CpF;AAED,kFAAkF;AAClF,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAStH"}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The migration driver every engine shares. The databases an app declares come
|
|
3
|
+
* from the registered `infra/database-migrator` engines, resolved at call
|
|
4
|
+
* time; the migration files come from the `storage/migration-format` each
|
|
5
|
+
* target names. This driver owns only the ledger semantics:
|
|
6
|
+
*
|
|
7
|
+
* - pending = journal minus ledger, applied in journal order;
|
|
8
|
+
* - each file is applied, then recorded; a failure is never recorded, so a
|
|
9
|
+
* re-run resumes at the failed file;
|
|
10
|
+
* - exact receipts an older ledger holds (the engine's own, the format's own)
|
|
11
|
+
* are adopted once by intersection with the current journal; failure text
|
|
12
|
+
* is never a receipt;
|
|
13
|
+
* - a comment-only placeholder is recorded without being executed;
|
|
14
|
+
* - `--remote` writes need `--yes`; `--dry-run` runs nothing.
|
|
15
|
+
*/
|
|
16
|
+
import { hashHex } from '@vibesdotdev/crypto';
|
|
17
|
+
import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem/client/resolve-adapter';
|
|
18
|
+
import { getRuntimePath } from '@vibesdotdev/paths';
|
|
19
|
+
import { CapabilityError, isCapabilityError, settle } from '@vibesdotdev/kernel';
|
|
20
|
+
import { DatabaseMigrationSessionRequestSchema, DatabaseMigrationTargetQuerySchema } from '@vibesdotdev/infra-core/kinds';
|
|
21
|
+
import { MigrateRequestSchema } from "../schemas/migrate.js";
|
|
22
|
+
function migratorQuery(runtime) {
|
|
23
|
+
return runtime.query('infra/database-migrator');
|
|
24
|
+
}
|
|
25
|
+
/** The databases every registered engine serves for one app, in engine order. */
|
|
26
|
+
export async function resolveMigrationTargets(runtime, query) {
|
|
27
|
+
if (!runtime.hasKind('infra/database-migrator'))
|
|
28
|
+
return [];
|
|
29
|
+
const targets = [];
|
|
30
|
+
for (const descriptor of migratorQuery(runtime).descriptors()) {
|
|
31
|
+
const engine = await migratorQuery(runtime).withId(descriptor.id).resolve();
|
|
32
|
+
targets.push(...await engine.targets(query));
|
|
33
|
+
}
|
|
34
|
+
return targets;
|
|
35
|
+
}
|
|
36
|
+
function describeTargets(targets) {
|
|
37
|
+
return targets.map((target) => target.database + (target.binding ? ` [binding: ${target.binding}]` : '')).join(', ');
|
|
38
|
+
}
|
|
39
|
+
/** The one database a request names: by name or binding, the only one declared, or a refusal. */
|
|
40
|
+
export function selectMigrationTarget(targets, databaseOverride) {
|
|
41
|
+
if (targets.length === 0) {
|
|
42
|
+
throw new CapabilityError('No databases are declared for this app.', 'NOT_FOUND', { reason: 'migration-target-missing', retryable: false });
|
|
43
|
+
}
|
|
44
|
+
if (databaseOverride) {
|
|
45
|
+
const match = targets.find((target) => target.database === databaseOverride || (Boolean(target.binding) && target.binding === databaseOverride));
|
|
46
|
+
if (!match) {
|
|
47
|
+
throw new CapabilityError(`--database "${databaseOverride}" not found in declared databases (have: ${describeTargets(targets)}).`, 'NOT_FOUND', {
|
|
48
|
+
reason: 'migration-target-not-declared', retryable: false
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return match;
|
|
52
|
+
}
|
|
53
|
+
if (targets.length > 1) {
|
|
54
|
+
throw new CapabilityError(`Multiple databases declared (${targets.map((target) => target.database).join(', ')}); pass --database <name> to pick one.`, 'INVALID_INPUT', {
|
|
55
|
+
reason: 'migration-target-ambiguous', retryable: false
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return targets[0];
|
|
59
|
+
}
|
|
60
|
+
/** The target one request names, refused before any credential or engine work. */
|
|
61
|
+
export async function resolveMigrateTarget(runtime, appDir, databaseOverride, configFileName, environment) {
|
|
62
|
+
const query = DatabaseMigrationTargetQuerySchema.parse({ appDir, environment, configFile: configFileName });
|
|
63
|
+
return selectMigrationTarget(await resolveMigrationTargets(runtime, query), databaseOverride);
|
|
64
|
+
}
|
|
65
|
+
function assertRemoteGate(remote, yes) {
|
|
66
|
+
if (remote && !yes) {
|
|
67
|
+
throw new CapabilityError('Refusing to apply against --remote without --yes. Re-run with --yes to apply, or --dry-run to inspect.', 'INVALID_INPUT', { reason: 'migration-remote-unconfirmed', retryable: false });
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/** The engine's own account of a failure (its argv and captured output), as text. */
|
|
71
|
+
function diagnostic(failure) {
|
|
72
|
+
return failure instanceof Error ? failure.message : failure.description;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Re-throw an engine refusal under the driver's account of what failed. The
|
|
76
|
+
* message keeps the engine's diagnostic and the code keeps the engine's, so a
|
|
77
|
+
* reader that sees only the message (`--all`, a PM task) still sees why.
|
|
78
|
+
*/
|
|
79
|
+
async function step(message, reason, work) {
|
|
80
|
+
const outcome = await settle(work);
|
|
81
|
+
if (outcome.ok)
|
|
82
|
+
return outcome.value;
|
|
83
|
+
const failure = outcome.cause;
|
|
84
|
+
throw new CapabilityError(`${message}\n${diagnostic(failure)}`, isCapabilityError(failure) ? failure.code : 'UNAVAILABLE', {
|
|
85
|
+
reason, retryable: false, cause: failure
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/** sha256 hex of a migration file's bytes: the recorded checksum. */
|
|
89
|
+
async function fileChecksum(run, path) {
|
|
90
|
+
const raw = await run.files.readFile(path);
|
|
91
|
+
return hashHex(run.options.runtime, 'sha256', raw instanceof Uint8Array ? new Uint8Array(raw) : raw);
|
|
92
|
+
}
|
|
93
|
+
async function bootstrapLedger(run) {
|
|
94
|
+
await step('Failed to bootstrap vibes_migrations tracking table', 'migration-ledger-bootstrap-failed', () => run.session.execute({ kind: 'ledger-bootstrap' }));
|
|
95
|
+
}
|
|
96
|
+
async function applyAndRecord(run, format, entry, outcome) {
|
|
97
|
+
if (!(await run.files.exists(entry.file))) {
|
|
98
|
+
throw new CapabilityError(`Migration file not found: ${entry.file}`, 'NOT_FOUND', { reason: 'migration-file-missing', retryable: false });
|
|
99
|
+
}
|
|
100
|
+
const executable = await format.executable(entry);
|
|
101
|
+
// A conflict in one statement does not prove later statements ran: a failed file is never recorded.
|
|
102
|
+
if (executable)
|
|
103
|
+
await step(`Failed to apply ${entry.tag}`, 'migration-apply-failed', () => run.session.execute({ kind: 'file', file: entry.file }));
|
|
104
|
+
else
|
|
105
|
+
run.options.ui.log(` ~ ${entry.tag} contains no executable SQL; recording receipt`);
|
|
106
|
+
const receipt = { tag: entry.tag, idx: entry.idx, checksum: await fileChecksum(run, entry.file) };
|
|
107
|
+
const recorded = await settle(() => run.session.execute({ kind: 'ledger-record', receipts: [receipt], appliedAt: Date.now() }));
|
|
108
|
+
if (!recorded.ok) {
|
|
109
|
+
throw new CapabilityError(`Applied ${entry.tag} but failed to record it.\n${diagnostic(recorded.cause)}\n` +
|
|
110
|
+
`re-record with: vibes infra deploy migrate --tag ${entry.tag} --record-only` + (run.options.remote ? ' --remote --yes' : ''), isCapabilityError(recorded.cause) ? recorded.cause.code : 'UNAVAILABLE', { reason: 'migration-record-failed', retryable: false, cause: recorded.cause });
|
|
111
|
+
}
|
|
112
|
+
run.options.ui.log(` ✓ applied ${entry.tag}`);
|
|
113
|
+
const applied = { tag: entry.tag, idx: entry.idx, exitCode: 0 };
|
|
114
|
+
if (!executable)
|
|
115
|
+
applied.recordedOnly = true;
|
|
116
|
+
outcome.applied.push(applied);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Adopt exact receipts from ledgers that predate vibes_migrations: the
|
|
120
|
+
* engine's native ledger and the format's own, intersected with the current
|
|
121
|
+
* journal and recorded once, so their non-idempotent SQL never replays.
|
|
122
|
+
*/
|
|
123
|
+
async function adoptCompatibleReceipts(run, format, journal, applied) {
|
|
124
|
+
const compatible = new Set([
|
|
125
|
+
...await step('Failed to read the engine\'s native migration ledger', 'migration-native-ledger-failed', () => run.session.nativeAppliedTags()),
|
|
126
|
+
...await step('Failed to read the migration format\'s ledger', 'migration-format-ledger-failed', () => format.adoptableTags(journal, run.session))
|
|
127
|
+
]);
|
|
128
|
+
const adopted = journal.filter((entry) => compatible.has(entry.tag) && !applied.has(entry.tag));
|
|
129
|
+
if (adopted.length === 0)
|
|
130
|
+
return new Set(applied);
|
|
131
|
+
const receipts = [];
|
|
132
|
+
for (const entry of adopted)
|
|
133
|
+
receipts.push({ tag: entry.tag, idx: entry.idx, checksum: await fileChecksum(run, entry.file) });
|
|
134
|
+
await step('Failed to adopt compatible migration receipts', 'migration-adoption-failed', () => run.session.execute({ kind: 'ledger-record', receipts, appliedAt: Date.now() }));
|
|
135
|
+
run.options.ui.log(` ~ adopted ${adopted.length} exact migration receipt(s) from the existing engine/format ledger`);
|
|
136
|
+
return new Set([...applied, ...adopted.map((entry) => entry.tag)]);
|
|
137
|
+
}
|
|
138
|
+
async function resolveFormat(runtime, target) {
|
|
139
|
+
if (!target.migrations) {
|
|
140
|
+
throw new CapabilityError(`No migrations declared for ${target.database}; use --file/--command for ad-hoc SQL.`, 'NOT_FOUND', {
|
|
141
|
+
reason: 'migration-source-missing', retryable: false
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
const format = await runtime
|
|
145
|
+
.query('storage/migration-format')
|
|
146
|
+
.withId(target.migrations.format)
|
|
147
|
+
.resolve();
|
|
148
|
+
return { format, directory: target.migrations.directory };
|
|
149
|
+
}
|
|
150
|
+
async function runAdHoc(run, outcome) {
|
|
151
|
+
const { options, session, label } = run;
|
|
152
|
+
const database = session.target.database;
|
|
153
|
+
if (options.mode === 'command') {
|
|
154
|
+
const sql = options.command;
|
|
155
|
+
if (!sql)
|
|
156
|
+
throw new CapabilityError('--command requires a SQL string.', 'INVALID_INPUT', { reason: 'migration-command-missing', retryable: false });
|
|
157
|
+
if (options.dryRun) {
|
|
158
|
+
options.ui.info(`[dry-run] Target: ${database} [${label}]`);
|
|
159
|
+
options.ui.info(`[dry-run] runs: ${session.describe({ kind: 'command', sql })}`);
|
|
160
|
+
options.ui.info(`[dry-run] SQL: ${sql}`);
|
|
161
|
+
return outcome;
|
|
162
|
+
}
|
|
163
|
+
assertRemoteGate(options.remote, options.yes);
|
|
164
|
+
options.ui.info(`Target: ${database} [${label}], inline command`);
|
|
165
|
+
await step('The inline command failed', 'migration-command-failed', () => session.execute({ kind: 'command', sql }));
|
|
166
|
+
outcome.applied.push({ tag: '(inline-command)', idx: -1, exitCode: 0 });
|
|
167
|
+
return outcome;
|
|
168
|
+
}
|
|
169
|
+
const file = options.file;
|
|
170
|
+
if (!file)
|
|
171
|
+
throw new CapabilityError('--file requires a path.', 'INVALID_INPUT', { reason: 'migration-file-missing', retryable: false });
|
|
172
|
+
const paths = await getRuntimePath(options.runtime);
|
|
173
|
+
if (!paths.isAbsolute(file))
|
|
174
|
+
throw new CapabilityError(`--file must be an absolute path: ${file}`, 'INVALID_INPUT', { reason: 'path-relative' });
|
|
175
|
+
if (!(await run.files.exists(file)))
|
|
176
|
+
throw new CapabilityError(`SQL file not found: ${file}`, 'NOT_FOUND', { reason: 'migration-file-missing', retryable: false });
|
|
177
|
+
if (options.dryRun) {
|
|
178
|
+
options.ui.info(`[dry-run] Target: ${database} [${label}]`);
|
|
179
|
+
options.ui.info(`[dry-run] runs: ${session.describe({ kind: 'file', file })}`);
|
|
180
|
+
options.ui.info(`[dry-run] file: ${file}`);
|
|
181
|
+
return outcome;
|
|
182
|
+
}
|
|
183
|
+
assertRemoteGate(options.remote, options.yes);
|
|
184
|
+
options.ui.info(`Target: ${database} [${label}], file ${file}`);
|
|
185
|
+
await step(`Failed to apply ${file}`, 'migration-file-failed', () => session.execute({ kind: 'file', file }));
|
|
186
|
+
outcome.applied.push({ tag: file, idx: -1, exitCode: 0 });
|
|
187
|
+
return outcome;
|
|
188
|
+
}
|
|
189
|
+
async function runTag(run, format, journal, outcome) {
|
|
190
|
+
const { options, session, label } = run;
|
|
191
|
+
const tag = options.tag;
|
|
192
|
+
if (!tag)
|
|
193
|
+
throw new CapabilityError('--tag requires a migration tag.', 'INVALID_INPUT', { reason: 'migration-tag-missing', retryable: false });
|
|
194
|
+
const entry = journal.find((candidate) => candidate.tag === tag);
|
|
195
|
+
if (!entry) {
|
|
196
|
+
throw new CapabilityError(`Journal tag "${tag}" not found (have: ${journal.map((candidate) => candidate.tag).join(', ')}).`, 'NOT_FOUND', {
|
|
197
|
+
reason: 'migration-tag-not-found', retryable: false
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
const database = session.target.database;
|
|
201
|
+
if (options.recordOnly) {
|
|
202
|
+
if (!(await run.files.exists(entry.file))) {
|
|
203
|
+
throw new CapabilityError(`Migration file not found for --record-only: ${entry.file}`, 'NOT_FOUND', { reason: 'migration-file-missing', retryable: false });
|
|
204
|
+
}
|
|
205
|
+
const receipts = [{ tag: entry.tag, idx: entry.idx, checksum: await fileChecksum(run, entry.file) }];
|
|
206
|
+
if (options.dryRun) {
|
|
207
|
+
options.ui.info(`[dry-run] Target: ${database} [${label}]`);
|
|
208
|
+
options.ui.info(`[dry-run] record-only ${entry.tag} (idx ${entry.idx}); execute SKIPPED`);
|
|
209
|
+
options.ui.info(`[dry-run] runs: ${session.describe({ kind: 'ledger-record', receipts, appliedAt: Date.now() })}`);
|
|
210
|
+
outcome.applied.push({ tag: entry.tag, idx: entry.idx, exitCode: 0, recordedOnly: true });
|
|
211
|
+
return outcome;
|
|
212
|
+
}
|
|
213
|
+
assertRemoteGate(options.remote, options.yes);
|
|
214
|
+
await bootstrapLedger(run);
|
|
215
|
+
options.ui.info(`Target: ${database} [${label}], record-only ${entry.tag}`);
|
|
216
|
+
await step(`Failed to record ${entry.tag}`, 'migration-record-failed', () => session.execute({ kind: 'ledger-record', receipts, appliedAt: Date.now() }));
|
|
217
|
+
outcome.applied.push({ tag: entry.tag, idx: entry.idx, exitCode: 0, recordedOnly: true });
|
|
218
|
+
return outcome;
|
|
219
|
+
}
|
|
220
|
+
if (options.dryRun) {
|
|
221
|
+
options.ui.info(`[dry-run] Target: ${database} [${label}]`);
|
|
222
|
+
options.ui.info(`[dry-run] would apply ${entry.tag} (idx ${entry.idx})`);
|
|
223
|
+
options.ui.info(`[dry-run] runs: ${session.describe({ kind: 'file', file: entry.file })}`);
|
|
224
|
+
outcome.pending.push({ tag: entry.tag, idx: entry.idx });
|
|
225
|
+
return outcome;
|
|
226
|
+
}
|
|
227
|
+
assertRemoteGate(options.remote, options.yes);
|
|
228
|
+
await bootstrapLedger(run);
|
|
229
|
+
options.ui.info(`Target: ${database} [${label}], applying ${entry.tag}`);
|
|
230
|
+
await applyAndRecord(run, format, entry, outcome);
|
|
231
|
+
return outcome;
|
|
232
|
+
}
|
|
233
|
+
async function runPending(run, format, journal, outcome) {
|
|
234
|
+
const { options, session, label } = run;
|
|
235
|
+
const database = session.target.database;
|
|
236
|
+
// A dry-run reads no ledger: it lists the full journal as the would-apply set,
|
|
237
|
+
// and says recorded migrations are skipped at apply time.
|
|
238
|
+
if (options.dryRun) {
|
|
239
|
+
options.ui.info(`[dry-run] Target: ${database} [${label}]`);
|
|
240
|
+
options.ui.info(`[dry-run] Tracking table bootstrap (idempotent): ${session.describe({ kind: 'ledger-bootstrap' })}`);
|
|
241
|
+
options.ui.info(`[dry-run] Applied-tags query: ${session.describe({ kind: 'ledger-read' })}`);
|
|
242
|
+
options.ui.info(`[dry-run] ${journal.length} journal migration(s); each applied only if not already recorded:`);
|
|
243
|
+
for (const entry of journal) {
|
|
244
|
+
options.ui.info(` [${String(entry.idx).padStart(4, '0')}] ${entry.tag}`);
|
|
245
|
+
options.ui.info(` ${session.describe({ kind: 'file', file: entry.file })}`);
|
|
246
|
+
outcome.pending.push({ tag: entry.tag, idx: entry.idx });
|
|
247
|
+
}
|
|
248
|
+
return outcome;
|
|
249
|
+
}
|
|
250
|
+
assertRemoteGate(options.remote, options.yes);
|
|
251
|
+
await bootstrapLedger(run);
|
|
252
|
+
const recorded = await step('Failed to read applied tags from vibes_migrations', 'migration-ledger-read-failed', () => session.appliedTags());
|
|
253
|
+
const applied = await adoptCompatibleReceipts(run, format, journal, recorded);
|
|
254
|
+
const pending = journal.filter((entry) => !applied.has(entry.tag));
|
|
255
|
+
outcome.pending = pending.map((entry) => ({ tag: entry.tag, idx: entry.idx }));
|
|
256
|
+
options.ui.info(`Target: ${database} [${label}], ${pending.length} pending migration(s): ` + (pending.length ? pending.map((entry) => entry.tag).join(', ') : '(none)'));
|
|
257
|
+
for (const entry of pending)
|
|
258
|
+
await applyAndRecord(run, format, entry, outcome);
|
|
259
|
+
return outcome;
|
|
260
|
+
}
|
|
261
|
+
/** Apply one request against the one database it names. */
|
|
262
|
+
export async function runMigrate(options) {
|
|
263
|
+
const { runtime, ui, providerVariables, ...serializableRequest } = options;
|
|
264
|
+
const admittedRequest = MigrateRequestSchema.parse(serializableRequest);
|
|
265
|
+
const admittedOptions = providerVariables === undefined
|
|
266
|
+
? { ...admittedRequest, runtime, ui }
|
|
267
|
+
: { ...admittedRequest, runtime, ui, providerVariables };
|
|
268
|
+
const target = await resolveMigrateTarget(admittedOptions.runtime, admittedOptions.appDir, admittedOptions.databaseOverride, admittedOptions.configFileName, admittedOptions.environment);
|
|
269
|
+
const engine = await migratorQuery(admittedOptions.runtime).withId(target.migrator).resolve();
|
|
270
|
+
const request = DatabaseMigrationSessionRequestSchema.parse({
|
|
271
|
+
target,
|
|
272
|
+
location: admittedOptions.remote ? 'remote' : 'local',
|
|
273
|
+
environment: admittedOptions.environment,
|
|
274
|
+
credentialSource: admittedOptions.credentialSource,
|
|
275
|
+
workspaceRoot: admittedOptions.workspaceRoot
|
|
276
|
+
});
|
|
277
|
+
const session = await engine.open(admittedOptions.providerVariables
|
|
278
|
+
? { ...request, log: admittedOptions.ui, providerVariables: admittedOptions.providerVariables }
|
|
279
|
+
: { ...request, log: admittedOptions.ui });
|
|
280
|
+
const run = {
|
|
281
|
+
options: admittedOptions,
|
|
282
|
+
session,
|
|
283
|
+
files: await resolveFileSystemAdapter(admittedOptions.runtime, { binding: false }),
|
|
284
|
+
label: admittedOptions.remote ? 'REMOTE' : 'LOCAL'
|
|
285
|
+
};
|
|
286
|
+
const outcome = {
|
|
287
|
+
target: target.database,
|
|
288
|
+
remote: admittedOptions.remote,
|
|
289
|
+
mode: admittedOptions.mode,
|
|
290
|
+
dryRun: admittedOptions.dryRun,
|
|
291
|
+
pending: [],
|
|
292
|
+
applied: []
|
|
293
|
+
};
|
|
294
|
+
if (admittedOptions.mode === 'command' || admittedOptions.mode === 'file')
|
|
295
|
+
return runAdHoc(run, outcome);
|
|
296
|
+
const { format, directory } = await resolveFormat(admittedOptions.runtime, target);
|
|
297
|
+
const journal = await format.entries(directory);
|
|
298
|
+
if (admittedOptions.mode === 'tag')
|
|
299
|
+
return runTag(run, format, journal, outcome);
|
|
300
|
+
return runPending(run, format, journal, outcome);
|
|
301
|
+
}
|
|
302
|
+
/** Apply pending migrations to every database the app declares migrations for. */
|
|
303
|
+
export async function applyPendingMigrations(options) {
|
|
304
|
+
const query = DatabaseMigrationTargetQuerySchema.parse({ appDir: options.appDir, environment: options.environment, configFile: options.configFileName });
|
|
305
|
+
const results = [];
|
|
306
|
+
for (const target of await resolveMigrationTargets(options.runtime, query)) {
|
|
307
|
+
if (!target.migrations)
|
|
308
|
+
continue;
|
|
309
|
+
const outcome = await runMigrate({ ...options, mode: 'pending', recordOnly: false, databaseOverride: target.database });
|
|
310
|
+
results.push({ database: outcome.target, applied: outcome.applied.length, pending: outcome.pending.length });
|
|
311
|
+
}
|
|
312
|
+
return results;
|
|
313
|
+
}
|
|
314
|
+
//# sourceMappingURL=run-migrate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-migrate.js","sourceRoot":"","sources":["../../src/migrations/run-migrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAE1F,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAyC,MAAM,qBAAqB,CAAC;AACxH,OAAO,EACN,qCAAqC,EACrC,kCAAkC,EAOlC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACN,oBAAoB,EAMpB,MAAM,uBAAuB,CAAC;AAG/B,SAAS,aAAa,CAAC,OAAqB;IAC3C,OAAO,OAAO,CAAC,KAAK,CAA6D,yBAAyB,CAAC,CAAC;AAC7G,CAAC;AAED,iFAAiF;A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O,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9G,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
package/dist/regenerate.d.ts
CHANGED
|
@@ -1,55 +1,77 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Committed provider-artifact regeneration (`vibes infra deploy regenerate`).
|
|
3
3
|
*
|
|
4
|
-
* Reads an app's
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* Reads an app's deployment module through the config loader, resolves the
|
|
5
|
+
* `infra/deployment-provider` the deployment declares, and has that provider
|
|
6
|
+
* check or rewrite its own committed artifact (`regenerate`). The provider
|
|
7
|
+
* owns the artifact's file, equivalence and write; this module owns the walk,
|
|
8
|
+
* the collision guard and the exit code.
|
|
9
9
|
*
|
|
10
10
|
* Two modes:
|
|
11
|
-
* - `check` — read-only;
|
|
12
|
-
*
|
|
13
|
-
* - `write` — overwrites the on-disk file with the rendered string.
|
|
14
|
-
* Used during local development after editing `deployment.config.ts`.
|
|
15
|
-
*
|
|
16
|
-
* Apps that haven't opted in via `managed: true` are reported as
|
|
17
|
-
* `'skipped'` — neither check nor write happens. Once every app is on
|
|
18
|
-
* the regen pipeline, the `managed` flag can be defaulted true and the
|
|
19
|
-
* skipped path removed.
|
|
20
|
-
*
|
|
21
|
-
* Provider dispatch is implicit: only Cloudflare web-app deployments
|
|
22
|
-
* currently surface a `wranglerJsoncString`. Other providers (DO App
|
|
23
|
-
* Spec) skip regen by construction.
|
|
11
|
+
* - `check` — read-only; `drift` when the committed artifact differs.
|
|
12
|
+
* - `write` — rewrites a drifted artifact.
|
|
24
13
|
*/
|
|
25
|
-
|
|
14
|
+
import { type RuntimeRef } from "@vibesdotdev/kernel";
|
|
15
|
+
import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
|
|
16
|
+
import { type DeploymentCollision } from "./deployment-collisions.ts";
|
|
17
|
+
export type RegenStatus = "unchanged" | "updated" | "drift" | "skipped" | "error";
|
|
26
18
|
export interface RegenResult {
|
|
27
19
|
appId: string;
|
|
28
20
|
appDir: string;
|
|
29
|
-
|
|
21
|
+
/** The committed artifact's path (the app directory when the provider commits none). */
|
|
22
|
+
path: string;
|
|
30
23
|
status: RegenStatus;
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
/** Reason text for 'skipped'
|
|
24
|
+
/** The provider's name for the deployed unit, when the module declares one. */
|
|
25
|
+
unitName?: string;
|
|
26
|
+
/** Reason text for 'skipped' or 'error'. */
|
|
34
27
|
reason?: string;
|
|
35
|
-
/** Unified diff snippet on `drift`.
|
|
28
|
+
/** Unified diff snippet on `drift`. */
|
|
36
29
|
diff?: string;
|
|
30
|
+
/** A value-free note about what shaped the render. */
|
|
31
|
+
note?: string;
|
|
37
32
|
}
|
|
38
33
|
export interface RegenerateOptions {
|
|
39
|
-
|
|
40
|
-
mode:
|
|
34
|
+
runtime: RuntimeRef;
|
|
35
|
+
mode: "check" | "write";
|
|
36
|
+
/** Render the local-development artifact instead of the deployed one. */
|
|
37
|
+
local?: boolean;
|
|
38
|
+
/** Stable label base for CLI output. */
|
|
39
|
+
displayBase?: string;
|
|
40
|
+
/** For fresh-process evaluation. */
|
|
41
|
+
freshProcess?: boolean;
|
|
42
|
+
execution?: RuntimeExecution;
|
|
43
|
+
/**
|
|
44
|
+
* The environment a provider's deployment modules render under, by provider
|
|
45
|
+
* id; resolved by the caller (once per provider for a fleet walk).
|
|
46
|
+
*/
|
|
47
|
+
projectionEnvironment?: (provider: string) => Promise<Readonly<Record<string, string>>>;
|
|
41
48
|
}
|
|
42
49
|
/**
|
|
43
|
-
* Regenerate (or check)
|
|
44
|
-
* passes the app directory
|
|
50
|
+
* Regenerate (or check) one app's committed provider artifact. The caller
|
|
51
|
+
* passes the app directory that declares the deployment.
|
|
45
52
|
*/
|
|
46
53
|
export declare function regenerateApp(appDir: string, options: RegenerateOptions): Promise<RegenResult>;
|
|
54
|
+
/**
|
|
55
|
+
* Hard-error every managed config that collides with another on its rendered
|
|
56
|
+
* deployed-unit name (or its appId). Two managed deployments mapping to one
|
|
57
|
+
* unit is a deploy footgun — `vibes infra deploy run` is path-based and
|
|
58
|
+
* would silently clobber the live unit — so a collision must fail the regen in
|
|
59
|
+
* BOTH `check` and `write` modes. Mutates the colliding results in place
|
|
60
|
+
* (`status: 'error'`) so `regenExitCode` returns non-zero, and returns the
|
|
61
|
+
* collision groups for callers that want to report them. Skipped (non-managed)
|
|
62
|
+
* results are excluded from the comparison.
|
|
63
|
+
*/
|
|
64
|
+
export declare function markCollisionsAsErrors(results: RegenResult[]): DeploymentCollision[];
|
|
47
65
|
/**
|
|
48
66
|
* Regenerate (or check) every `deployment.config.ts` under `root`.
|
|
49
67
|
* Non-managed deployments report `'skipped'`; the caller decides
|
|
50
68
|
* whether to treat skips as failure (typically: no).
|
|
69
|
+
*
|
|
70
|
+
* After rendering, runs the unit-name/appId collision guard
|
|
71
|
+
* (`markCollisionsAsErrors`): if two managed configs render the same unit name
|
|
72
|
+
* the offending results are flipped to `'error'` so the regen fails loud.
|
|
51
73
|
*/
|
|
52
74
|
export declare function regenerateAll(root: string, options: RegenerateOptions): Promise<RegenResult[]>;
|
|
53
75
|
/** Exit code logic for CLI / CI use. */
|
|
54
|
-
export declare function regenExitCode(results: RegenResult[], mode:
|
|
76
|
+
export declare function regenExitCode(results: RegenResult[], mode: "check" | "write"): number;
|
|
55
77
|
//# sourceMappingURL=regenerate.d.ts.map
|
package/dist/regenerate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regenerate.d.ts","sourceRoot":"","sources":["../src/regenerate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"regenerate.d.ts","sourceRoot":"","sources":["../src/regenerate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAA+C,KAAK,UAAU,EAAE,MAAM,qBAAqB,C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