@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/regenerate.js
CHANGED
|
@@ -1,204 +1,232 @@
|
|
|
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
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
import { CapabilityError, settle } from "@vibesdotdev/kernel";
|
|
15
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
16
|
+
import { resolveFileSystemAdapter } from "@vibesdotdev/filesystem/client/resolve-adapter";
|
|
17
|
+
import { DeploymentArtifactResultSchema } from "@vibesdotdev/infra-core/kinds";
|
|
18
|
+
import { infraDeployLogger } from "./logger.js";
|
|
19
|
+
import { declaresDeployment, UNIT_CONFIG_FILE } from "./deployment-settings.js";
|
|
20
|
+
import { DEFAULT_DEPLOYMENT_MODULE } from "./deployment.config.descriptor.js";
|
|
21
|
+
import { loadDeploymentConfig, NonDeployableDeploymentConfigError, } from "./config-loader.js";
|
|
22
|
+
import { detectDeploymentCollisions, formatCollision, } from "./deployment-collisions.js";
|
|
23
|
+
import { deploymentModuleEvaluation, resolveDeploymentProvider } from "./cli/run/deployment-provider.js";
|
|
24
|
+
function failureMessage(failure) {
|
|
25
|
+
return failure instanceof Error ? failure.message : failure.description;
|
|
26
|
+
}
|
|
33
27
|
const IGNORED_DIRS = new Set([
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
"node_modules",
|
|
29
|
+
".git",
|
|
30
|
+
".svelte-kit",
|
|
31
|
+
"dist",
|
|
32
|
+
".next",
|
|
33
|
+
".turbo",
|
|
34
|
+
".vite",
|
|
35
|
+
".wrangler",
|
|
42
36
|
]);
|
|
37
|
+
async function resolveRegenerateHost(runtime) {
|
|
38
|
+
return {
|
|
39
|
+
// App directories are named by the operator or by the walk, not by the
|
|
40
|
+
// caller's workspace binding, so reads go through the host-owned view.
|
|
41
|
+
files: await resolveFileSystemAdapter(runtime, { binding: false }),
|
|
42
|
+
paths: await getRuntimePath(runtime)
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/** A confirmed filesystem absence (vanished entry or directory mid-walk). */
|
|
46
|
+
function isFilesystemAbsence(failure) {
|
|
47
|
+
return failure instanceof CapabilityError && failure.code === "NOT_FOUND";
|
|
48
|
+
}
|
|
43
49
|
/**
|
|
44
|
-
* Recursive discovery
|
|
50
|
+
* Recursive discovery of units declaring `infra.deployment` under `root`. Mirrors
|
|
45
51
|
* the `infra deploy list` walker (kept private here to avoid a circular
|
|
46
|
-
* dep through the CLI command).
|
|
47
|
-
* is called from short-lived processes (deploy hooks + CLI).
|
|
52
|
+
* dep through the CLI command).
|
|
48
53
|
*/
|
|
49
|
-
function
|
|
54
|
+
async function findDeploymentDirs(runtime, host, root, maxDepth = 4) {
|
|
50
55
|
const found = [];
|
|
51
|
-
|
|
56
|
+
const walk = async (dir, depth) => {
|
|
52
57
|
if (depth > maxDepth)
|
|
53
58
|
return;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
const listing = await settle(() => host.files.list(dir));
|
|
60
|
+
if (!listing.ok) {
|
|
61
|
+
// A directory that vanished mid-walk holds no config; any other failure
|
|
62
|
+
// (permissions, I/O) is a real fault, never a silently short result.
|
|
63
|
+
if (isFilesystemAbsence(listing.cause))
|
|
64
|
+
return;
|
|
65
|
+
throw listing.cause;
|
|
57
66
|
}
|
|
58
|
-
|
|
59
|
-
|
|
67
|
+
// Only a directory holding a unit config can declare `infra.deployment`; the
|
|
68
|
+
// declaration itself (data, marker or module) is read through deployment-settings.
|
|
69
|
+
if (listing.value.some((entry) => entry.name === UNIT_CONFIG_FILE || entry.name === DEFAULT_DEPLOYMENT_MODULE)) {
|
|
70
|
+
if (await declaresDeployment(runtime, host, dir))
|
|
71
|
+
found.push(dir);
|
|
60
72
|
}
|
|
61
|
-
for (const entry of
|
|
62
|
-
if (
|
|
63
|
-
found.push(join(dir, entry));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
for (const entry of entries) {
|
|
67
|
-
if (IGNORED_DIRS.has(entry) || entry.startsWith('.'))
|
|
68
|
-
continue;
|
|
69
|
-
const full = join(dir, entry);
|
|
70
|
-
let info;
|
|
71
|
-
try {
|
|
72
|
-
info = statSync(full);
|
|
73
|
-
}
|
|
74
|
-
catch {
|
|
73
|
+
for (const entry of listing.value) {
|
|
74
|
+
if (IGNORED_DIRS.has(entry.name) || entry.name.startsWith("."))
|
|
75
75
|
continue;
|
|
76
|
+
const full = host.paths.join(dir, entry.name);
|
|
77
|
+
const info = await settle(() => host.files.stat(full));
|
|
78
|
+
if (!info.ok) {
|
|
79
|
+
// A dangling entry names no directory to walk; other faults surface.
|
|
80
|
+
if (isFilesystemAbsence(info.cause))
|
|
81
|
+
continue;
|
|
82
|
+
throw info.cause;
|
|
76
83
|
}
|
|
77
|
-
if (info.
|
|
78
|
-
walk(full, depth + 1);
|
|
84
|
+
if (info.value.kind === "directory")
|
|
85
|
+
await walk(full, depth + 1);
|
|
79
86
|
}
|
|
80
|
-
}
|
|
81
|
-
walk(root, 0);
|
|
87
|
+
};
|
|
88
|
+
await walk(root, 0);
|
|
82
89
|
return found;
|
|
83
90
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const max = Math.max(a.length, b.length);
|
|
91
|
-
const lines = [];
|
|
92
|
-
let lastShown = -contextLines - 1;
|
|
93
|
-
for (let i = 0; i < max; i++) {
|
|
94
|
-
const left = a[i];
|
|
95
|
-
const right = b[i];
|
|
96
|
-
if (left === right)
|
|
97
|
-
continue;
|
|
98
|
-
// Backfill context above first change.
|
|
99
|
-
for (let j = Math.max(lastShown + 1, i - contextLines); j < i; j++) {
|
|
100
|
-
if (lines.length >= 120)
|
|
101
|
-
break;
|
|
102
|
-
lines.push(` ${a[j] ?? ''}`);
|
|
103
|
-
}
|
|
104
|
-
if (lines.length >= 120)
|
|
105
|
-
break;
|
|
106
|
-
if (left !== undefined)
|
|
107
|
-
lines.push(`- ${left}`);
|
|
108
|
-
if (right !== undefined)
|
|
109
|
-
lines.push(`+ ${right}`);
|
|
110
|
-
lastShown = i;
|
|
91
|
+
function absoluteDirectory(paths, path) {
|
|
92
|
+
if (!paths.isAbsolute(path)) {
|
|
93
|
+
throw new CapabilityError(`Regeneration needs an absolute directory: ${path}`, "INVALID_INPUT", {
|
|
94
|
+
reason: "path-relative",
|
|
95
|
+
details: { path },
|
|
96
|
+
});
|
|
111
97
|
}
|
|
112
|
-
|
|
113
|
-
return '';
|
|
114
|
-
return lines.join('\n');
|
|
98
|
+
return paths.resolve(path);
|
|
115
99
|
}
|
|
116
100
|
/**
|
|
117
|
-
* Regenerate (or check)
|
|
118
|
-
* passes the app directory
|
|
101
|
+
* Regenerate (or check) one app's committed provider artifact. The caller
|
|
102
|
+
* passes the app directory that declares the deployment.
|
|
119
103
|
*/
|
|
120
104
|
export async function regenerateApp(appDir, options) {
|
|
121
|
-
const
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
105
|
+
const host = await resolveRegenerateHost(options.runtime);
|
|
106
|
+
const absoluteAppDir = absoluteDirectory(host.paths, appDir);
|
|
107
|
+
const label = options.displayBase ? host.paths.relative(options.displayBase, absoluteAppDir) || "." : absoluteAppDir;
|
|
108
|
+
// The provider is read off an identity load; the artifact renders under that provider's environment.
|
|
109
|
+
const identity = await settle(() => loadDeploymentConfig(absoluteAppDir, { runtime: options.runtime, projectionEnvironment: {} }));
|
|
110
|
+
// A projection that cannot be resolved refuses the run; it never renders under an empty one.
|
|
111
|
+
const projectionEnvironment = identity.ok && options.projectionEnvironment
|
|
112
|
+
? await options.projectionEnvironment(identity.value.provider)
|
|
113
|
+
: undefined;
|
|
114
|
+
const loadOutcome = identity.ok && projectionEnvironment
|
|
115
|
+
? await settle(() => loadDeploymentConfig(absoluteAppDir, {
|
|
116
|
+
runtime: options.runtime,
|
|
117
|
+
freshProcess: options.freshProcess,
|
|
118
|
+
execution: options.execution,
|
|
119
|
+
projectionEnvironment,
|
|
120
|
+
}))
|
|
121
|
+
: identity;
|
|
122
|
+
if (!loadOutcome.ok) {
|
|
123
|
+
const failure = loadOutcome.cause;
|
|
124
|
+
if (failure instanceof NonDeployableDeploymentConfigError) {
|
|
125
|
+
return {
|
|
126
|
+
appId: failure.appId ?? label,
|
|
127
|
+
appDir: absoluteAppDir,
|
|
128
|
+
path: absoluteAppDir,
|
|
129
|
+
status: "skipped",
|
|
130
|
+
reason: failure.reason,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
128
133
|
return {
|
|
129
|
-
appId:
|
|
134
|
+
appId: label,
|
|
130
135
|
appDir: absoluteAppDir,
|
|
131
|
-
|
|
132
|
-
status:
|
|
133
|
-
reason: `Failed to load deployment.config: ${
|
|
136
|
+
path: absoluteAppDir,
|
|
137
|
+
status: "error",
|
|
138
|
+
reason: `Failed to load deployment.config: ${failureMessage(failure)}`,
|
|
134
139
|
};
|
|
135
140
|
}
|
|
141
|
+
const loaded = loadOutcome.value;
|
|
136
142
|
const appId = loaded.deployment.appId;
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
143
|
+
const logger = infraDeployLogger(options.runtime);
|
|
144
|
+
const regenerated = await settle(async () => {
|
|
145
|
+
const { implementation } = await resolveDeploymentProvider(options.runtime, loaded.provider);
|
|
146
|
+
return DeploymentArtifactResultSchema.parse(await implementation.regenerate({
|
|
141
147
|
appDir: absoluteAppDir,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
:
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
if (
|
|
148
|
+
deployment: loaded.deployment,
|
|
149
|
+
module: deploymentModuleEvaluation(loaded),
|
|
150
|
+
local: options.local === true,
|
|
151
|
+
mode: options.mode,
|
|
152
|
+
log: {
|
|
153
|
+
info: (message) => logger.info(message),
|
|
154
|
+
warn: (message) => logger.warn(message),
|
|
155
|
+
log: (message) => logger.info(message),
|
|
156
|
+
error: (message) => logger.error(message),
|
|
157
|
+
},
|
|
158
|
+
}));
|
|
159
|
+
});
|
|
160
|
+
if (!regenerated.ok) {
|
|
155
161
|
return {
|
|
156
162
|
appId,
|
|
157
163
|
appDir: absoluteAppDir,
|
|
158
|
-
|
|
159
|
-
status:
|
|
160
|
-
|
|
164
|
+
path: absoluteAppDir,
|
|
165
|
+
status: "error",
|
|
166
|
+
reason: failureMessage(regenerated.cause),
|
|
161
167
|
};
|
|
162
168
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
const result = { appId, appDir: absoluteAppDir, path: regenerated.value.path, status: regenerated.value.status };
|
|
170
|
+
if (regenerated.value.unitName !== undefined)
|
|
171
|
+
result.unitName = regenerated.value.unitName;
|
|
172
|
+
if (regenerated.value.reason !== undefined)
|
|
173
|
+
result.reason = regenerated.value.reason;
|
|
174
|
+
if (regenerated.value.diff !== undefined)
|
|
175
|
+
result.diff = regenerated.value.diff;
|
|
176
|
+
if (regenerated.value.note !== undefined)
|
|
177
|
+
result.note = regenerated.value.note;
|
|
178
|
+
return result;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Hard-error every managed config that collides with another on its rendered
|
|
182
|
+
* deployed-unit name (or its appId). Two managed deployments mapping to one
|
|
183
|
+
* unit is a deploy footgun — `vibes infra deploy run` is path-based and
|
|
184
|
+
* would silently clobber the live unit — so a collision must fail the regen in
|
|
185
|
+
* BOTH `check` and `write` modes. Mutates the colliding results in place
|
|
186
|
+
* (`status: 'error'`) so `regenExitCode` returns non-zero, and returns the
|
|
187
|
+
* collision groups for callers that want to report them. Skipped (non-managed)
|
|
188
|
+
* results are excluded from the comparison.
|
|
189
|
+
*/
|
|
190
|
+
export function markCollisionsAsErrors(results) {
|
|
191
|
+
const managed = results.filter((r) => r.status !== "skipped");
|
|
192
|
+
const collisions = detectDeploymentCollisions(managed);
|
|
193
|
+
for (const collision of collisions) {
|
|
194
|
+
const message = formatCollision(collision);
|
|
195
|
+
for (const member of collision.members) {
|
|
196
|
+
// SAFETY: the members are the same objects passed in as RegenResult rows;
|
|
197
|
+
// detectDeploymentCollisions only reads the identity fields off them.
|
|
198
|
+
const result = member;
|
|
199
|
+
result.status = "error";
|
|
200
|
+
result.reason = message;
|
|
201
|
+
}
|
|
172
202
|
}
|
|
173
|
-
|
|
174
|
-
return {
|
|
175
|
-
appId,
|
|
176
|
-
appDir: absoluteAppDir,
|
|
177
|
-
wranglerJsoncPath,
|
|
178
|
-
status: 'updated',
|
|
179
|
-
workerName
|
|
180
|
-
};
|
|
203
|
+
return collisions;
|
|
181
204
|
}
|
|
182
205
|
/**
|
|
183
206
|
* Regenerate (or check) every `deployment.config.ts` under `root`.
|
|
184
207
|
* Non-managed deployments report `'skipped'`; the caller decides
|
|
185
208
|
* whether to treat skips as failure (typically: no).
|
|
209
|
+
*
|
|
210
|
+
* After rendering, runs the unit-name/appId collision guard
|
|
211
|
+
* (`markCollisionsAsErrors`): if two managed configs render the same unit name
|
|
212
|
+
* the offending results are flipped to `'error'` so the regen fails loud.
|
|
186
213
|
*/
|
|
187
214
|
export async function regenerateAll(root, options) {
|
|
188
|
-
const
|
|
215
|
+
const host = await resolveRegenerateHost(options.runtime);
|
|
216
|
+
const appDirs = await findDeploymentDirs(options.runtime, host, absoluteDirectory(host.paths, root));
|
|
189
217
|
const results = [];
|
|
190
|
-
for (const
|
|
191
|
-
const appDir = configPath.replace(/\/deployment\.config\.(ts|js|mjs)$/, '');
|
|
218
|
+
for (const appDir of appDirs) {
|
|
192
219
|
results.push(await regenerateApp(appDir, options));
|
|
193
220
|
}
|
|
221
|
+
markCollisionsAsErrors(results);
|
|
194
222
|
return results;
|
|
195
223
|
}
|
|
196
224
|
/** Exit code logic for CLI / CI use. */
|
|
197
225
|
export function regenExitCode(results, mode) {
|
|
198
226
|
for (const r of results) {
|
|
199
|
-
if (r.status ===
|
|
227
|
+
if (r.status === "error")
|
|
200
228
|
return 1;
|
|
201
|
-
if (mode ===
|
|
229
|
+
if (mode === "check" && r.status === "drift")
|
|
202
230
|
return 1;
|
|
203
231
|
}
|
|
204
232
|
return 0;
|
package/dist/regenerate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regenerate.js","sourceRoot":"","sources":["../src/regenerate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"regenerate.js","sourceRoot":"","sources":["../src/regenerate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,EAAuC,MAAM,qBAAqB,CAAC;AAEnG,OAAO,EAAE,cAAc,EAAoB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAE1F,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EACL,oBAAoB,EACpB,kCAAkC,GACnC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,0BAA0B,EAC1B,eAAe,GAEhB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAEzG,SAAS,cAAc,CAAC,OAAsB;IAC5C,OAAO,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;AAC1E,CAAC;AAsCD,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,cAAc;IACd,MAAM;IACN,aAAa;IACb,MAAM;IACN,OAAO;IACP,QAAQ;IACR,OAAO;IACP,WAAW;CACZ,CAAC,CAAC;AAQH,KAAK,UAAU,qBAAqB,CAAC,OAAmB;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C,CAAC;IACzD,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
2
|
+
import type { RuntimeExecution } from '@vibesdotdev/kernel/execution';
|
|
3
|
+
/** The execution of the runtime the caller was handed; there is no ambient default. */
|
|
4
|
+
export declare function resolveRuntimeExecution(runtime: Pick<RuntimeRef, 'query'>): Promise<RuntimeExecution>;
|
|
5
|
+
//# sourceMappingURL=runtime-execution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-execution.d.ts","sourceRoot":"","sources":["../src/runtime-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAuB,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,uFAAuF;AACvF,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAY3G"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
2
|
+
/** The execution of the runtime the caller was handed; there is no ambient default. */
|
|
3
|
+
export async function resolveRuntimeExecution(runtime) {
|
|
4
|
+
const execution = await runtime
|
|
5
|
+
.query('runtime/execution')
|
|
6
|
+
.resolve();
|
|
7
|
+
if (!execution) {
|
|
8
|
+
throw new CapabilityError("No 'runtime/execution' implementation is registered for this infra command.", 'UNAVAILABLE', { reason: 'execution-unavailable' });
|
|
9
|
+
}
|
|
10
|
+
return execution;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=runtime-execution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-execution.js","sourceRoot":"","sources":["../src/runtime-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAmB,MAAM,qBAAqB,CAAC;AAGvE,uFAAuF;AACvF,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,OAAkC;IAC/E,MAAM,SAAS,GAAG,MAAM,OAAO;SAC7B,KAAK,CAAwC,mBAAmB,CAAC;SACjE,OAAO,EAAE,CAAC;IACZ,IAAI,CAAC,SAAS,EAAE,CAAC;QAChB,MAAM,IAAI,eAAe,CACxB,6EAA6E,EAC7E,aAAa,EACb,EAAE,MAAM,EAAE,uBAAuB,EAAE,CACnC,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import type { VibesRuntime } from '@vibesdotdev/kernel';
|
|
3
|
+
import { type DatabaseMigrationLog } from '@vibesdotdev/infra-core/kinds';
|
|
4
|
+
export declare const MigrateModeSchema: z.ZodEnum<{
|
|
5
|
+
file: "file";
|
|
6
|
+
command: "command";
|
|
7
|
+
tag: "tag";
|
|
8
|
+
pending: "pending";
|
|
9
|
+
}>;
|
|
10
|
+
export type MigrateMode = z.infer<typeof MigrateModeSchema>;
|
|
11
|
+
export declare const AppliedEntrySchema: z.ZodObject<{
|
|
12
|
+
tag: z.ZodString;
|
|
13
|
+
idx: z.ZodNumber;
|
|
14
|
+
exitCode: z.ZodNumber;
|
|
15
|
+
recordedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type AppliedEntry = z.infer<typeof AppliedEntrySchema>;
|
|
18
|
+
export declare const MigrateOutcomeSchema: z.ZodObject<{
|
|
19
|
+
target: z.ZodString;
|
|
20
|
+
remote: z.ZodBoolean;
|
|
21
|
+
mode: z.ZodEnum<{
|
|
22
|
+
file: "file";
|
|
23
|
+
command: "command";
|
|
24
|
+
tag: "tag";
|
|
25
|
+
pending: "pending";
|
|
26
|
+
}>;
|
|
27
|
+
dryRun: z.ZodBoolean;
|
|
28
|
+
pending: z.ZodArray<z.ZodObject<{
|
|
29
|
+
tag: z.ZodString;
|
|
30
|
+
idx: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
applied: z.ZodArray<z.ZodObject<{
|
|
33
|
+
tag: z.ZodString;
|
|
34
|
+
idx: z.ZodNumber;
|
|
35
|
+
exitCode: z.ZodNumber;
|
|
36
|
+
recordedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type MigrateOutcome = z.infer<typeof MigrateOutcomeSchema>;
|
|
40
|
+
export declare const MigrateRequestSchema: z.ZodObject<{
|
|
41
|
+
appDir: z.ZodString;
|
|
42
|
+
mode: z.ZodEnum<{
|
|
43
|
+
file: "file";
|
|
44
|
+
command: "command";
|
|
45
|
+
tag: "tag";
|
|
46
|
+
pending: "pending";
|
|
47
|
+
}>;
|
|
48
|
+
remote: z.ZodBoolean;
|
|
49
|
+
yes: z.ZodBoolean;
|
|
50
|
+
dryRun: z.ZodBoolean;
|
|
51
|
+
recordOnly: z.ZodBoolean;
|
|
52
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
53
|
+
databaseOverride: z.ZodOptional<z.ZodString>;
|
|
54
|
+
file: z.ZodOptional<z.ZodString>;
|
|
55
|
+
command: z.ZodOptional<z.ZodString>;
|
|
56
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
57
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
58
|
+
configFileName: z.ZodOptional<z.ZodString>;
|
|
59
|
+
credentialSource: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
"secrets-store": "secrets-store";
|
|
61
|
+
ambient: "ambient";
|
|
62
|
+
}>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type MigrateRequest = z.infer<typeof MigrateRequestSchema>;
|
|
65
|
+
/** The runtime and the progress sink stay outside the serializable request. */
|
|
66
|
+
export interface RunMigrateOptions extends MigrateRequest {
|
|
67
|
+
readonly runtime: VibesRuntime;
|
|
68
|
+
readonly ui: DatabaseMigrationLog;
|
|
69
|
+
/** The provider environment a deploy already resolved; the engine resolves no credentials of its own. */
|
|
70
|
+
readonly providerVariables?: Readonly<Record<string, string>>;
|
|
71
|
+
}
|
|
72
|
+
/** Options of one app's pending pass over every database it declares with migrations. */
|
|
73
|
+
export type ApplyPendingMigrationsOptions = Omit<RunMigrateOptions, 'mode' | 'recordOnly' | 'databaseOverride' | 'file' | 'command' | 'tag'>;
|
|
74
|
+
/** One database's pending pass: what it applied and what was pending. */
|
|
75
|
+
export declare const PendingMigrationResultSchema: z.ZodObject<{
|
|
76
|
+
database: z.ZodString;
|
|
77
|
+
applied: z.ZodNumber;
|
|
78
|
+
pending: z.ZodNumber;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export type PendingMigrationResult = z.infer<typeof PendingMigrationResultSchema>;
|
|
81
|
+
export declare const WorkspaceDiscoveryFailureSchema: z.ZodObject<{
|
|
82
|
+
phase: z.ZodEnum<{
|
|
83
|
+
config: "config";
|
|
84
|
+
directory: "directory";
|
|
85
|
+
}>;
|
|
86
|
+
path: z.ZodString;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export type WorkspaceDiscoveryFailure = z.infer<typeof WorkspaceDiscoveryFailureSchema>;
|
|
89
|
+
/** One app's part of a workspace pass, or explicit evidence that discovery was incomplete. */
|
|
90
|
+
export declare const WorkspaceMigrationAppOutcomeSchema: z.ZodObject<{
|
|
91
|
+
appId: z.ZodString;
|
|
92
|
+
appDir: z.ZodString;
|
|
93
|
+
requiredForLocalDev: z.ZodBoolean;
|
|
94
|
+
results: z.ZodArray<z.ZodObject<{
|
|
95
|
+
database: z.ZodString;
|
|
96
|
+
applied: z.ZodNumber;
|
|
97
|
+
pending: z.ZodNumber;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
failure: z.ZodOptional<z.ZodString>;
|
|
100
|
+
discoveryIncomplete: z.ZodOptional<z.ZodLiteral<true>>;
|
|
101
|
+
discoveryFailures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
phase: z.ZodEnum<{
|
|
103
|
+
config: "config";
|
|
104
|
+
directory: "directory";
|
|
105
|
+
}>;
|
|
106
|
+
path: z.ZodString;
|
|
107
|
+
}, z.core.$strip>>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export type WorkspaceMigrationAppOutcome = z.infer<typeof WorkspaceMigrationAppOutcomeSchema>;
|
|
110
|
+
//# sourceMappingURL=migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../src/schemas/migrate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAA2C,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAEnH,eAAO,MAAM,iBAAiB;;;;;EAAgD,CAAC;AAC/E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;iBAO/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;iBAgB/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,+EAA+E;AAC/E,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACxD,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,QAAQ,CAAC,EAAE,EAAE,oBAAoB,CAAC;IAClC,yGAAyG;IACzG,QAAQ,CAAC,iBAAiB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC9D;AAED,yFAAyF;AACzF,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,YAAY,GAAG,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC,CAAC;AAE7I,yEAAyE;AACzE,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,+BAA+B;;;;;;iBAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,8FAA8F;AAC9F,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;iBAQ7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { DatabaseMigrationCredentialSourceSchema } from '@vibesdotdev/infra-core/kinds';
|
|
3
|
+
export const MigrateModeSchema = z.enum(['pending', 'file', 'command', 'tag']);
|
|
4
|
+
export const AppliedEntrySchema = z.object({
|
|
5
|
+
tag: z.string(),
|
|
6
|
+
idx: z.number(),
|
|
7
|
+
exitCode: z.number(),
|
|
8
|
+
recordedOnly: z.boolean().optional()
|
|
9
|
+
});
|
|
10
|
+
export const MigrateOutcomeSchema = z.object({
|
|
11
|
+
target: z.string(),
|
|
12
|
+
remote: z.boolean(),
|
|
13
|
+
mode: MigrateModeSchema,
|
|
14
|
+
dryRun: z.boolean(),
|
|
15
|
+
pending: z.array(z.object({ tag: z.string(), idx: z.number() })),
|
|
16
|
+
applied: z.array(AppliedEntrySchema)
|
|
17
|
+
});
|
|
18
|
+
export const MigrateRequestSchema = z.object({
|
|
19
|
+
appDir: z.string(),
|
|
20
|
+
mode: MigrateModeSchema,
|
|
21
|
+
remote: z.boolean(),
|
|
22
|
+
yes: z.boolean(),
|
|
23
|
+
dryRun: z.boolean(),
|
|
24
|
+
recordOnly: z.boolean(),
|
|
25
|
+
environment: z.string().optional(),
|
|
26
|
+
databaseOverride: z.string().optional(),
|
|
27
|
+
file: z.string().optional(),
|
|
28
|
+
command: z.string().optional(),
|
|
29
|
+
tag: z.string().optional(),
|
|
30
|
+
workspaceRoot: z.string().optional(),
|
|
31
|
+
configFileName: z.string().optional(),
|
|
32
|
+
/** Where the engine takes provider credentials from; absent reads as `secrets-store`. */
|
|
33
|
+
credentialSource: DatabaseMigrationCredentialSourceSchema.optional()
|
|
34
|
+
});
|
|
35
|
+
/** One database's pending pass: what it applied and what was pending. */
|
|
36
|
+
export const PendingMigrationResultSchema = z.object({
|
|
37
|
+
database: z.string(),
|
|
38
|
+
applied: z.number().int().nonnegative(),
|
|
39
|
+
pending: z.number().int().nonnegative()
|
|
40
|
+
});
|
|
41
|
+
export const WorkspaceDiscoveryFailureSchema = z.object({
|
|
42
|
+
phase: z.enum(['directory', 'config']),
|
|
43
|
+
path: z.string()
|
|
44
|
+
});
|
|
45
|
+
/** One app's part of a workspace pass, or explicit evidence that discovery was incomplete. */
|
|
46
|
+
export const WorkspaceMigrationAppOutcomeSchema = z.object({
|
|
47
|
+
appId: z.string(),
|
|
48
|
+
appDir: z.string(),
|
|
49
|
+
requiredForLocalDev: z.boolean(),
|
|
50
|
+
results: z.array(PendingMigrationResultSchema),
|
|
51
|
+
failure: z.string().optional(),
|
|
52
|
+
discoveryIncomplete: z.literal(true).optional(),
|
|
53
|
+
discoveryFailures: z.array(WorkspaceDiscoveryFailureSchema).optional()
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=migrate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../src/schemas/migrate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,uCAAuC,EAA6B,MAAM,+BAA+B,CAAC;AAEnH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AAG/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAChE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACpC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,C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