@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,251 @@
|
|
|
1
|
+
import { settle } from '@vibesdotdev/kernel';
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { infraDeployLogger } from "../../logger.js";
|
|
4
|
+
function smokeTargetUrl(deployment, deployedUrl, environmentResolution) {
|
|
5
|
+
// Declared topology comes FIRST. An app whose ONLY origins are
|
|
6
|
+
// kind:'internal' is reached exclusively over service bindings / queues and
|
|
7
|
+
// has no public health surface BY DESIGN — probing its logical hostname can
|
|
8
|
+
// never connect (measured: vibes-forge-ci, 2026-07-26), and the
|
|
9
|
+
// wrangler-reported workers.dev URL must not override that: a queue-only
|
|
10
|
+
// worker exports no fetch handler at all, so that URL answers HTTP 500
|
|
11
|
+
// forever on a perfectly healthy deploy (measured: vibes-ai-jobs,
|
|
12
|
+
// 2026-07-26 — two false DEPLOY FAILED ledger rows on successful uploads).
|
|
13
|
+
// The schema requires >=1 origin, so this is deliberate topology, not a
|
|
14
|
+
// missing config.
|
|
15
|
+
if (deployment.origins.length > 0 &&
|
|
16
|
+
deployment.origins.every((origin) => origin.kind === 'internal')) {
|
|
17
|
+
return {
|
|
18
|
+
skip: 'all origins are kind:internal (service-binding only); nothing publicly probeable'
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (environmentResolution && environmentResolution.environment !== 'production') {
|
|
22
|
+
const origin = environmentResolution.selectedOrigin;
|
|
23
|
+
if (!origin || !URL.canParse(origin) || new URL(origin).protocol !== 'https:') {
|
|
24
|
+
return {
|
|
25
|
+
error: `No public origin for selected environment "${environmentResolution.environment}"; refusing production smoke fallback.`
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return origin;
|
|
29
|
+
}
|
|
30
|
+
if (deployedUrl && deployedUrl.startsWith('https://'))
|
|
31
|
+
return deployedUrl;
|
|
32
|
+
const primary = deployment.origins.find((origin) => origin.kind === 'primary');
|
|
33
|
+
if (primary?.origin)
|
|
34
|
+
return primary.origin;
|
|
35
|
+
if (primary?.hostname)
|
|
36
|
+
return `https://${primary.hostname}`;
|
|
37
|
+
const first = deployment.origins[0];
|
|
38
|
+
if (first?.origin)
|
|
39
|
+
return first.origin;
|
|
40
|
+
if (first?.hostname)
|
|
41
|
+
return `https://${first.hostname}`;
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A build identity is what `VIBES_BUILD_VERSION` carries: a commit sha. Only
|
|
46
|
+
* two sha-shaped values can be compared for freshness.
|
|
47
|
+
*
|
|
48
|
+
* Anything else an app happens to stamp into `version.name` — `createKitVersion`'s
|
|
49
|
+
* `Date.now()` fallback, or a hand-written app label — is not a build identity,
|
|
50
|
+
* and comparing it against a commit proves nothing about which build is serving.
|
|
51
|
+
*
|
|
52
|
+
* Measured 2026-08-20 on casework, whose config resolved
|
|
53
|
+
* `name ?? VIBES_BUILD_VERSION` and so stamped the constant `casework-app`
|
|
54
|
+
* on every build. The probe compared that to the deployed sha, could never match,
|
|
55
|
+
* and reported DEPLOY FAILED with `consider wrangler rollback` — against a deploy
|
|
56
|
+
* that had in fact succeeded and was serving correctly.
|
|
57
|
+
*
|
|
58
|
+
* SCOPE, deliberately narrow: this only enriches the DIAGNOSIS. The verdict is
|
|
59
|
+
* unchanged — a mismatch is still a stale failure, which is a contract an
|
|
60
|
+
* existing test states outright ("a NON-numeric mismatch is still a hard stale
|
|
61
|
+
* failure"). Flipping that would trade a false-fail for a false-pass, and a
|
|
62
|
+
* stale worker waved through is the more expensive error for everyone
|
|
63
|
+
* downstream. Whether an incomparable stamp should instead read UNVERIFIED —
|
|
64
|
+
* generalising the numeric-fallback branch — is a real question, but it is a
|
|
65
|
+
* contract change and belongs to whoever owns this gate, not to a drive-by.
|
|
66
|
+
*/
|
|
67
|
+
const BuildIdentitySchema = z.string().trim();
|
|
68
|
+
export function isComparableBuildIdentity(value) {
|
|
69
|
+
const parsed = BuildIdentitySchema.safeParse(value);
|
|
70
|
+
if (!parsed.success)
|
|
71
|
+
return false;
|
|
72
|
+
const stamp = parsed.data;
|
|
73
|
+
// An all-digit stamp is `createKitVersion`'s documented `Date.now()` fallback.
|
|
74
|
+
// It has to be rejected EXPLICITLY: digits are hex characters, so a timestamp
|
|
75
|
+
// sails through a bare /^[0-9a-f]+$/ test and gets compared to a commit as
|
|
76
|
+
// though it were one — which is how `1785009445256 != 18d8e457…` was once
|
|
77
|
+
// reported as a stale worker.
|
|
78
|
+
if (/^\d+$/.test(stamp))
|
|
79
|
+
return false;
|
|
80
|
+
return /^[0-9a-f]{7,64}$/i.test(stamp);
|
|
81
|
+
}
|
|
82
|
+
const LiveVersionBodySchema = z.object({
|
|
83
|
+
version: z.string().optional()
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* Read the live origin's SvelteKit build identity. Returns `null` when the app
|
|
87
|
+
* does not publish one — treated as "cannot tell", never as "stale", because a
|
|
88
|
+
* non-SvelteKit or older app must not fail a deploy for lacking the file.
|
|
89
|
+
*/
|
|
90
|
+
async function readLiveVersion(origin, fetchImpl, runtime) {
|
|
91
|
+
const outcome = await settle(async () => {
|
|
92
|
+
const response = await fetchImpl(new URL('/_app/version.json', origin).toString(), {
|
|
93
|
+
headers: { 'User-Agent': 'vibes-infra-deploy-smoke/1.0' }
|
|
94
|
+
});
|
|
95
|
+
if (!response.ok)
|
|
96
|
+
return null;
|
|
97
|
+
const json = await response.json();
|
|
98
|
+
const parsed = LiveVersionBodySchema.safeParse(json);
|
|
99
|
+
return parsed.success ? (parsed.data.version ?? null) : null;
|
|
100
|
+
});
|
|
101
|
+
if (!outcome.ok) {
|
|
102
|
+
// Unreachable or unparseable version.json is not evidence of staleness;
|
|
103
|
+
// the reason is reported so "cannot tell" is never silent.
|
|
104
|
+
const reason = outcome.cause instanceof Error ? outcome.cause.message : outcome.cause.description;
|
|
105
|
+
infraDeployLogger(runtime).warn('Live /_app/version.json could not be read', {
|
|
106
|
+
origin,
|
|
107
|
+
reason
|
|
108
|
+
});
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return outcome.value;
|
|
112
|
+
}
|
|
113
|
+
async function probe(url, fetchImpl) {
|
|
114
|
+
const response = await fetchImpl(url, {
|
|
115
|
+
headers: { 'User-Agent': 'vibes-infra-deploy-smoke/1.0' },
|
|
116
|
+
// `redirect: 'manual'` is the whole point of this probe.
|
|
117
|
+
//
|
|
118
|
+
// Following redirects made this instrument report something other than what
|
|
119
|
+
// it claimed. Measured against a real deploy of platform-web: the worker
|
|
120
|
+
// answers 302 to https://auth.vibes.dev/?client=platform&redirect_to=... ,
|
|
121
|
+
// the probe followed it, and reported `OK (HTTP 200; cf-ray ...)` — a status
|
|
122
|
+
// that came from AUTH-WEB, not from the app just deployed. Every auth-gated
|
|
123
|
+
// app was being certified by whatever its sign-in host happened to return,
|
|
124
|
+
// and a worker with no routes bound would have passed the same way.
|
|
125
|
+
//
|
|
126
|
+
// A 3xx from the deployed origin is a legitimate PASS: answering at all is
|
|
127
|
+
// what is being tested. What is not acceptable is judging someone else's
|
|
128
|
+
// response and calling it this app's.
|
|
129
|
+
redirect: 'manual'
|
|
130
|
+
});
|
|
131
|
+
const cfRay = response.headers.get('cf-ray');
|
|
132
|
+
if (response.status >= 500)
|
|
133
|
+
return { ok: false, detail: `HTTP ${response.status}` };
|
|
134
|
+
if (!cfRay)
|
|
135
|
+
return { ok: false, detail: `HTTP ${response.status}; missing cf-ray header` };
|
|
136
|
+
// Say where a redirect went. The status alone reads as healthy while hiding
|
|
137
|
+
// that the app handed the request to a different origin entirely.
|
|
138
|
+
const location = response.headers.get('location');
|
|
139
|
+
const redirectNote = response.status >= 300 && response.status < 400 && location ? `; -> ${location}` : '';
|
|
140
|
+
return { ok: true, detail: `HTTP ${response.status}${redirectNote}; cf-ray ${cfRay}` };
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Post-deploy live probe: THE DEPLOYED ORIGIN ITSELF must answer below 500
|
|
144
|
+
* through Cloudflare (cf-ray present) within the retry window. This is the
|
|
145
|
+
* in-process home of scripts/cf-smoke-test.ts, which was only reachable from a
|
|
146
|
+
* dispatch-only workflow while the marker could report a false DEPLOY FAILED
|
|
147
|
+
* on rate-limited runs — the live probe is the counter-signal.
|
|
148
|
+
*
|
|
149
|
+
* What this probe does NOT establish, so nobody reads more into a green than it
|
|
150
|
+
* carries: `cf-ray` proves a Cloudflare edge answered, not that YOUR newly
|
|
151
|
+
* deployed worker answered. A stale worker, a route bound to the wrong script,
|
|
152
|
+
* or a Cloudflare error page all carry one. Proving provenance needs a
|
|
153
|
+
* deploy-stamped response header compared against the SHA just deployed, or a
|
|
154
|
+
* probe of an app-declared health path — `AppDeployment` carries neither today.
|
|
155
|
+
* Until it does, this reports liveness of the origin, not identity of the build.
|
|
156
|
+
*/
|
|
157
|
+
export async function runDeploySmokeProbe(options) {
|
|
158
|
+
const fetchImpl = options.fetchImpl ?? fetch;
|
|
159
|
+
const retryWindowMs = options.retryWindowMs ?? 30_000;
|
|
160
|
+
const pollIntervalMs = options.pollIntervalMs ?? 1_000;
|
|
161
|
+
// LIVENESS and FRESHNESS are different failure modes and deserve different
|
|
162
|
+
// patience. An origin that cannot answer in 30s is broken. An origin still
|
|
163
|
+
// serving the previous version for a minute or two is ordinary Cloudflare
|
|
164
|
+
// propagation — and reporting that as DEPLOY FAILED is worse than useless:
|
|
165
|
+
// it trains readers to disbelieve the smoke, and the next real stale worker
|
|
166
|
+
// gets waved through. Observed 2026-08-05 on platform-web, which reported
|
|
167
|
+
// `stale build serving` and was serving the new build minutes later.
|
|
168
|
+
// Derived from the liveness window rather than hardcoded, so every existing
|
|
169
|
+
// caller scales with it: production's 30s becomes 180s of propagation
|
|
170
|
+
// patience, while a test that shortens retryWindowMs stays fast instead of
|
|
171
|
+
// hanging for three minutes.
|
|
172
|
+
const freshnessWindowMs = options.freshnessWindowMs ?? retryWindowMs * 6;
|
|
173
|
+
const onLine = options.onLine ?? (() => undefined);
|
|
174
|
+
const target = smokeTargetUrl(options.deployment, options.deployedUrl, options.environmentResolution);
|
|
175
|
+
const TargetUrlSchema = z.string().min(1);
|
|
176
|
+
const parsedUrl = TargetUrlSchema.safeParse(target);
|
|
177
|
+
if (!parsedUrl.success) {
|
|
178
|
+
const SmokeTargetOutcomeSchema = z.union([
|
|
179
|
+
z.object({ skip: z.string() }),
|
|
180
|
+
z.object({ error: z.string() })
|
|
181
|
+
]);
|
|
182
|
+
const targetOutcome = SmokeTargetOutcomeSchema.safeParse(target);
|
|
183
|
+
if (targetOutcome.success) {
|
|
184
|
+
if ('error' in targetOutcome.data)
|
|
185
|
+
return { ok: false, detail: targetOutcome.data.error };
|
|
186
|
+
onLine('stdout', `[smoke] ${options.deployment.appId} SKIPPED: ${targetOutcome.data.skip}`);
|
|
187
|
+
return { ok: true, skipped: true, detail: targetOutcome.data.skip };
|
|
188
|
+
}
|
|
189
|
+
return { ok: true, skipped: true, detail: 'no primary origin to probe' };
|
|
190
|
+
}
|
|
191
|
+
const url = parsedUrl.data;
|
|
192
|
+
const deadline = Date.now() + retryWindowMs;
|
|
193
|
+
// Starts when liveness passes, not at probe start — propagation time should
|
|
194
|
+
// not be spent waiting for the origin to come up.
|
|
195
|
+
let freshnessDeadline = null;
|
|
196
|
+
let lastDetail = 'not attempted';
|
|
197
|
+
for (;;) {
|
|
198
|
+
const probeOutcome = await settle(() => probe(url, fetchImpl));
|
|
199
|
+
if (!probeOutcome.ok) {
|
|
200
|
+
lastDetail = probeOutcome.cause instanceof Error ? probeOutcome.cause.message : probeOutcome.cause.description;
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
const result = probeOutcome.value;
|
|
204
|
+
lastDetail = result.detail;
|
|
205
|
+
if (result.ok) {
|
|
206
|
+
// Liveness passed. Now FRESHNESS, when the caller told us what it
|
|
207
|
+
// shipped — a stale worker reaches this exact line with an identical
|
|
208
|
+
// result, so answering is not evidence the deploy took.
|
|
209
|
+
const expected = options.expectedVersion?.trim();
|
|
210
|
+
if (expected) {
|
|
211
|
+
const live = await readLiveVersion(url, fetchImpl, options.runtime);
|
|
212
|
+
// Coordinator policy (codex, 2026-08-20) closed the numeric fail-open
|
|
213
|
+
// too: a `Date.now()` stamp is exactly as incomparable to a commit as
|
|
214
|
+
// an app label is, so both are ONE case — the identity channel is
|
|
215
|
+
// broken and the serving build cannot be named. The cost is accepted:
|
|
216
|
+
// an app that does not plumb VIBES_BUILD_VERSION fails its seal until
|
|
217
|
+
// it does, which is a producer fix of the kind casework just took.
|
|
218
|
+
const isBrokenIdentityChannel = live !== null && !isComparableBuildIdentity(live);
|
|
219
|
+
if (live && (isBrokenIdentityChannel || live !== expected)) {
|
|
220
|
+
// Retry rather than fail outright: propagation is not instant, and
|
|
221
|
+
// the deadline below decides. A mismatch that OUTLASTS the retry
|
|
222
|
+
// window is a stale worker, which is the whole point.
|
|
223
|
+
lastDetail = isBrokenIdentityChannel
|
|
224
|
+
? `build identity invalid: live stamp ${JSON.stringify(live)} is not a build identity (deployed ${expected}). This app is not stamping VIBES_BUILD_VERSION into version.name, so the serving build cannot be identified. This is NOT evidence of a stale worker — do not roll back; fix the producer, redeploy, and require version.json to equal the deployed commit.`
|
|
225
|
+
: `stale build serving: live ${live} != deployed ${expected} — inspect active routes and traffic before rolling back`;
|
|
226
|
+
freshnessDeadline ??= Date.now() + freshnessWindowMs;
|
|
227
|
+
if (Date.now() >= freshnessDeadline)
|
|
228
|
+
break;
|
|
229
|
+
await options.runtime.lifecycle.delay(pollIntervalMs);
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
if (live && !isBrokenIdentityChannel) {
|
|
233
|
+
onLine('stdout', `[smoke] ${options.deployment.appId} ${url} OK (${result.detail}; build ${live} FRESH)`);
|
|
234
|
+
return { ok: true, url, detail: `${result.detail}; build ${live} fresh` };
|
|
235
|
+
}
|
|
236
|
+
// No version.json — say so instead of implying freshness was checked.
|
|
237
|
+
onLine('stdout', `[smoke] ${options.deployment.appId} ${url} OK (${result.detail}; build UNVERIFIED - no /_app/version.json)`);
|
|
238
|
+
return { ok: true, url, detail: `${result.detail}; build unverified` };
|
|
239
|
+
}
|
|
240
|
+
onLine('stdout', `[smoke] ${options.deployment.appId} ${url} OK (${result.detail})`);
|
|
241
|
+
return { ok: true, url, detail: result.detail };
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
if (Date.now() >= deadline)
|
|
245
|
+
break;
|
|
246
|
+
await options.runtime.lifecycle.delay(pollIntervalMs);
|
|
247
|
+
}
|
|
248
|
+
onLine('stderr', `[smoke] ${options.deployment.appId} ${url} FAILED: ${lastDetail}`);
|
|
249
|
+
return { ok: false, url, detail: lastDetail };
|
|
250
|
+
}
|
|
251
|
+
//# sourceMappingURL=deploy-smoke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy-smoke.js","sourceRoot":"","sources":["../../../src/cli/run/deploy-smoke.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAyCpD,SAAS,cAAc,CACtB,UAAyB,EACzB,WAA2B,EAC3B,qBAAuD;IAEvD,+DAA+D;IAC/D,4EAA4E;IAC5E,4EAA4E;IAC5E,gEAAgE;IAChE,yEAAyE;IACzE,uEAAuE;IACvE,kEAAkE;IAClE,2EAA2E;IAC3E,wEAAwE;IACxE,kBAAkB;IAClB,IACC,UAAU,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;QAC7B,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,EAC/D,CAAC;QACF,OAAO;YACN,IAAI,EAAE,kFAAkF;SACxF,CAAC;I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ppDeployment } from '@vibesdotdev/infra-core';
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { type VibesRuntime } from '@vibesdotdev/kernel';
|
|
4
|
+
/** The vendors the platform's deployment records name; any other reads as `other`. */
|
|
5
|
+
declare const MarkerProviderSchema: z.ZodEnum<{
|
|
6
|
+
other: "other";
|
|
7
|
+
cloudflare: "cloudflare";
|
|
8
|
+
digitalocean: "digitalocean";
|
|
9
|
+
}>;
|
|
10
|
+
type MarkerProvider = z.infer<typeof MarkerProviderSchema>;
|
|
11
|
+
type MarkerEnvironment = 'development' | 'staging' | 'production';
|
|
12
|
+
export type DeploymentMarkerPayload = {
|
|
13
|
+
appId: string;
|
|
14
|
+
provider: MarkerProvider;
|
|
15
|
+
environment: MarkerEnvironment;
|
|
16
|
+
status: 'succeeded' | 'failed' | 'rolled_back' | 'in_progress';
|
|
17
|
+
version?: string;
|
|
18
|
+
commit?: string;
|
|
19
|
+
branch?: string;
|
|
20
|
+
deployedBy?: string;
|
|
21
|
+
deployedUrl?: string;
|
|
22
|
+
externalDeploymentId?: string;
|
|
23
|
+
deploymentRunId?: string;
|
|
24
|
+
logsRef?: string;
|
|
25
|
+
providerTraceRef?: string;
|
|
26
|
+
remediationUrl?: string;
|
|
27
|
+
notes?: string;
|
|
28
|
+
deployedAt: string;
|
|
29
|
+
};
|
|
30
|
+
export type EmitDeploymentMarkerOptions = {
|
|
31
|
+
deployment: AppDeployment;
|
|
32
|
+
/** The deployment provider id the release went through. */
|
|
33
|
+
provider: string;
|
|
34
|
+
environment?: string;
|
|
35
|
+
status?: DeploymentMarkerPayload['status'];
|
|
36
|
+
deployedUrl?: string;
|
|
37
|
+
externalDeploymentId?: string;
|
|
38
|
+
version?: string;
|
|
39
|
+
commit?: string;
|
|
40
|
+
branch?: string;
|
|
41
|
+
deployedBy?: string;
|
|
42
|
+
notes?: string;
|
|
43
|
+
deploymentRunId?: string;
|
|
44
|
+
logsRef?: string;
|
|
45
|
+
providerTraceRef?: string;
|
|
46
|
+
remediationUrl?: string;
|
|
47
|
+
/** The runtime the marker's environment facts and internal token resolve through. */
|
|
48
|
+
runtime: VibesRuntime;
|
|
49
|
+
token?: string;
|
|
50
|
+
systemOrigin?: string;
|
|
51
|
+
fetchImpl?: typeof fetch | ((input: string | URL | Request, init?: RequestInit) => Promise<Response>);
|
|
52
|
+
};
|
|
53
|
+
export type EmitDeploymentMarkerResult = {
|
|
54
|
+
status: 'sent';
|
|
55
|
+
markerId?: string;
|
|
56
|
+
appId: string;
|
|
57
|
+
} | {
|
|
58
|
+
status: 'skipped';
|
|
59
|
+
reason: string;
|
|
60
|
+
} | {
|
|
61
|
+
status: 'failed';
|
|
62
|
+
reason: string;
|
|
63
|
+
};
|
|
64
|
+
export declare function deploymentMarkerNotes(value: unknown, maxLength?: number): string | undefined;
|
|
65
|
+
/** The vendor a release is attributed to: what the provider's descriptor declares (`vendor`). */
|
|
66
|
+
export declare function deploymentMarkerProvider(runtime: Pick<VibesRuntime, 'hasKind' | 'query'>, provider: string): MarkerProvider;
|
|
67
|
+
export declare function deploymentMarkerEnvironment(value: string | undefined): MarkerEnvironment;
|
|
68
|
+
export declare function systemOriginForDeployment(runtime: VibesRuntime, deployment: AppDeployment, explicit?: string): Promise<string>;
|
|
69
|
+
export declare function buildDeploymentMarkerPayload(runtime: Pick<VibesRuntime, 'getEnv' | 'hasKind' | 'query'>, options: Omit<EmitDeploymentMarkerOptions, 'runtime' | 'token' | 'systemOrigin' | 'fetchImpl'>): DeploymentMarkerPayload;
|
|
70
|
+
export declare function resolveDeploymentMarkerTokens(runtime: VibesRuntime, environment?: string, explicit?: string): Promise<string[]>;
|
|
71
|
+
export declare function resolveDeploymentMarkerToken(runtime: VibesRuntime, environment?: string, explicit?: string): Promise<string | undefined>;
|
|
72
|
+
export declare function emitDeploymentMarker(options: EmitDeploymentMarkerOptions): Promise<EmitDeploymentMarkerResult>;
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=deployment-marker.d.ts.map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,CAAC,YAAY,EAAE,SAAS,GAAG,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,cAAc,CAK3H;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,CAKxF;AAED,wBAAsB,yBAAyB,CAC9C,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,aAAa,EACzB,QAAQ,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CAiBjB;AAUD,wBAAgB,4BAA4B,CAC3C,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC,EAC3D,OAAO,EAAE,IAAI,CAAC,2BAA2B,EAAE,SAAS,GAAG,OAAO,GAAG,cAAc,GAAG,WAAW,CAAC,GAC5F,uBAAuB,CAiCzB;AA0CD,wBAAsB,6BAA6B,CAClD,OAAO,EAAE,YAAY,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,EAAE,CAAC,CAoBnB;AAED,wBAAsB,4BAA4B,CACjD,OAAO,EAAE,YAAY,EACrB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE7B;AAyBD,wBAAsB,oBAAoB,CACzC,OAAO,EAAE,2BAA2B,GAClC,OAAO,CAAC,0BAA0B,CAAC,CA4DrC"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { serviceOrigin } from '@vibesdotdev/infra-core/service';
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { infraDeployLogger } from "../../logger.js";
|
|
4
|
+
import { settle } from '@vibesdotdev/kernel';
|
|
5
|
+
import { DeploymentProviderDescriptorSchema } from '@vibesdotdev/infra-core/kinds';
|
|
6
|
+
import { isGenericSecretsStoreDescriptor, resolveSecretsEnvironment } from '@vibesdotdev/secrets';
|
|
7
|
+
/** The vendors the platform's deployment records name; any other reads as `other`. */
|
|
8
|
+
const MarkerProviderSchema = z.enum(['cloudflare', 'digitalocean', 'other']);
|
|
9
|
+
const INTERNAL_TOKEN_KEYS = [
|
|
10
|
+
'VIBES_INTERNAL_SERVICE_TOKEN',
|
|
11
|
+
'VIBES_AUTH_INTERNAL_TOKEN'
|
|
12
|
+
];
|
|
13
|
+
const SENSITIVE_ASSIGNMENT_PATTERN = /\b([A-Z0-9_]*(?:TOKEN|SECRET|PASSWORD|CREDENTIAL|API_KEY|PRIVATE_KEY)[A-Z0-9_]*)\b\s*[:=]\s*["']?[^"',\s]+["']?/gi;
|
|
14
|
+
const BEARER_PATTERN = /\bBearer\s+[^\s,;]+/gi;
|
|
15
|
+
const NonEmptyStringSchema = z.string().trim().min(1);
|
|
16
|
+
function nonEmpty(value) {
|
|
17
|
+
const parsed = NonEmptyStringSchema.safeParse(value);
|
|
18
|
+
if (parsed.success)
|
|
19
|
+
return parsed.data;
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
export function deploymentMarkerNotes(value, maxLength = 500) {
|
|
23
|
+
const parsed = NonEmptyStringSchema.safeParse(value);
|
|
24
|
+
if (!parsed.success)
|
|
25
|
+
return undefined;
|
|
26
|
+
return parsed.data
|
|
27
|
+
.replace(BEARER_PATTERN, 'Bearer [redacted]')
|
|
28
|
+
.replace(SENSITIVE_ASSIGNMENT_PATTERN, '$1=[redacted]')
|
|
29
|
+
.slice(0, maxLength);
|
|
30
|
+
}
|
|
31
|
+
/** The vendor a release is attributed to: what the provider's descriptor declares (`vendor`). */
|
|
32
|
+
export function deploymentMarkerProvider(runtime, provider) {
|
|
33
|
+
if (!runtime.hasKind('infra/deployment-provider'))
|
|
34
|
+
return 'other';
|
|
35
|
+
const [descriptor] = runtime.query('infra/deployment-provider').withId(provider).descriptors();
|
|
36
|
+
const vendor = descriptor ? DeploymentProviderDescriptorSchema.parse(descriptor).vendor : undefined;
|
|
37
|
+
return MarkerProviderSchema.catch('other').parse(vendor);
|
|
38
|
+
}
|
|
39
|
+
export function deploymentMarkerEnvironment(value) {
|
|
40
|
+
if (value === 'production')
|
|
41
|
+
return 'production';
|
|
42
|
+
if (value === 'staging')
|
|
43
|
+
return 'staging';
|
|
44
|
+
if (value === 'development' || value === 'dev' || value === 'local')
|
|
45
|
+
return 'development';
|
|
46
|
+
return 'production';
|
|
47
|
+
}
|
|
48
|
+
export async function systemOriginForDeployment(runtime, deployment, explicit) {
|
|
49
|
+
const fromExplicit = nonEmpty(explicit);
|
|
50
|
+
if (fromExplicit)
|
|
51
|
+
return fromExplicit.replace(/\/$/, '');
|
|
52
|
+
const fromEnv = nonEmpty(runtime.getEnv('PUBLIC_VIBES_SYSTEM_ORIGIN'));
|
|
53
|
+
if (fromEnv)
|
|
54
|
+
return fromEnv.replace(/\/$/, '');
|
|
55
|
+
const declared = deployment.env.find((entry) => entry.name === 'PUBLIC_VIBES_SYSTEM_ORIGIN');
|
|
56
|
+
const fromDeploymentEnv = nonEmpty(declared?.value);
|
|
57
|
+
if (fromDeploymentEnv)
|
|
58
|
+
return fromDeploymentEnv.replace(/\/$/, '');
|
|
59
|
+
if (deployment.appId === 'system') {
|
|
60
|
+
const primary = deployment.origins.find((origin) => origin.kind === 'primary') ?? deployment.origins[0];
|
|
61
|
+
if (primary?.origin)
|
|
62
|
+
return primary.origin.replace(/\/$/, '');
|
|
63
|
+
}
|
|
64
|
+
return serviceOrigin(runtime, 'system');
|
|
65
|
+
}
|
|
66
|
+
function currentActor(runtime) {
|
|
67
|
+
return (nonEmpty(runtime.getEnv('VIBES_DEPLOY_ACTOR')) ??
|
|
68
|
+
nonEmpty(runtime.getEnv('GITHUB_ACTOR')) ??
|
|
69
|
+
nonEmpty(runtime.getEnv('USER')));
|
|
70
|
+
}
|
|
71
|
+
export function buildDeploymentMarkerPayload(runtime, options) {
|
|
72
|
+
// VIBES_SOURCE_SHA is NOT consulted: the CLI republishes its own compile-time
|
|
73
|
+
// bake into it at boot, so falling back to it records the CLI's commit as the
|
|
74
|
+
// app's. `options.commit` already carries the resolved app identity; the CI
|
|
75
|
+
// vars below genuinely name the checked-out app repository.
|
|
76
|
+
const commit = nonEmpty(options.commit) ??
|
|
77
|
+
nonEmpty(runtime.getEnv('GITHUB_SHA')) ??
|
|
78
|
+
nonEmpty(runtime.getEnv('CI_COMMIT_SHA'));
|
|
79
|
+
const branch = nonEmpty(options.branch) ??
|
|
80
|
+
nonEmpty(runtime.getEnv('VIBES_SOURCE_BRANCH')) ??
|
|
81
|
+
nonEmpty(runtime.getEnv('GITHUB_REF_NAME')) ??
|
|
82
|
+
nonEmpty(runtime.getEnv('CI_COMMIT_BRANCH'));
|
|
83
|
+
return {
|
|
84
|
+
appId: options.deployment.appId,
|
|
85
|
+
provider: deploymentMarkerProvider(runtime, options.provider),
|
|
86
|
+
environment: deploymentMarkerEnvironment(options.environment),
|
|
87
|
+
status: options.status ?? 'succeeded',
|
|
88
|
+
version: nonEmpty(options.version) ?? commit,
|
|
89
|
+
commit,
|
|
90
|
+
branch,
|
|
91
|
+
deployedBy: nonEmpty(options.deployedBy) ?? currentActor(runtime),
|
|
92
|
+
deployedUrl: nonEmpty(options.deployedUrl),
|
|
93
|
+
externalDeploymentId: nonEmpty(options.externalDeploymentId),
|
|
94
|
+
deploymentRunId: deploymentMarkerNotes(options.deploymentRunId, 300),
|
|
95
|
+
logsRef: deploymentMarkerNotes(options.logsRef, 300),
|
|
96
|
+
providerTraceRef: deploymentMarkerNotes(options.providerTraceRef, 300),
|
|
97
|
+
remediationUrl: deploymentMarkerNotes(options.remediationUrl, 300),
|
|
98
|
+
notes: deploymentMarkerNotes(options.notes),
|
|
99
|
+
deployedAt: new Date().toISOString()
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
async function resolveInternalTokenFromRuntime(runtime, environment) {
|
|
103
|
+
const tokens = [];
|
|
104
|
+
if (!runtime.hasKind('secrets/store'))
|
|
105
|
+
return tokens;
|
|
106
|
+
const resolvedEnvironment = await resolveSecretsEnvironment(runtime, null, environment);
|
|
107
|
+
const tierCandidates = new Set([resolvedEnvironment.tier]);
|
|
108
|
+
if (resolvedEnvironment.tier === 'local' || resolvedEnvironment.tier === 'dev') {
|
|
109
|
+
tierCandidates.add('staging');
|
|
110
|
+
tierCandidates.add('production');
|
|
111
|
+
}
|
|
112
|
+
const descriptors = runtime
|
|
113
|
+
.assets('secrets/store')
|
|
114
|
+
.descriptors()
|
|
115
|
+
.filter((descriptor) => {
|
|
116
|
+
if (!isGenericSecretsStoreDescriptor(descriptor))
|
|
117
|
+
return false;
|
|
118
|
+
if (environment)
|
|
119
|
+
return true;
|
|
120
|
+
if (!descriptor.tiers || descriptor.tiers.length === 0)
|
|
121
|
+
return true;
|
|
122
|
+
return descriptor.tiers.some((tier) => tierCandidates.has(tier));
|
|
123
|
+
})
|
|
124
|
+
.sort((a, b) => (b.priority ?? 0) - (a.priority ?? 0));
|
|
125
|
+
for (const descriptor of descriptors) {
|
|
126
|
+
const store = await runtime
|
|
127
|
+
.query('secrets/store')
|
|
128
|
+
.withId(descriptor.id)
|
|
129
|
+
.resolve();
|
|
130
|
+
for (const key of INTERNAL_TOKEN_KEYS) {
|
|
131
|
+
const value = await store.get(resolvedEnvironment.name, key);
|
|
132
|
+
const token = nonEmpty(value);
|
|
133
|
+
if (token && !tokens.includes(token))
|
|
134
|
+
tokens.push(token);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return tokens;
|
|
138
|
+
}
|
|
139
|
+
export async function resolveDeploymentMarkerTokens(runtime, environment, explicit) {
|
|
140
|
+
const fromExplicit = nonEmpty(explicit);
|
|
141
|
+
if (fromExplicit)
|
|
142
|
+
return [fromExplicit];
|
|
143
|
+
const tokens = [];
|
|
144
|
+
// Credentials resolve through the runtime, never the host environment; an
|
|
145
|
+
// unresolved key is one absent candidate, and the store loop below asks next.
|
|
146
|
+
for (const key of INTERNAL_TOKEN_KEYS) {
|
|
147
|
+
const resolved = await runtime.resolveCredential({ source: 'secret', key });
|
|
148
|
+
if (!resolved.ok)
|
|
149
|
+
continue;
|
|
150
|
+
const value = nonEmpty(resolved.value);
|
|
151
|
+
if (value && !tokens.includes(value))
|
|
152
|
+
tokens.push(value);
|
|
153
|
+
}
|
|
154
|
+
for (const token of await resolveInternalTokenFromRuntime(runtime, environment)) {
|
|
155
|
+
if (!tokens.includes(token))
|
|
156
|
+
tokens.push(token);
|
|
157
|
+
}
|
|
158
|
+
return tokens;
|
|
159
|
+
}
|
|
160
|
+
export async function resolveDeploymentMarkerToken(runtime, environment, explicit) {
|
|
161
|
+
return (await resolveDeploymentMarkerTokens(runtime, environment, explicit))[0];
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The marker endpoint's answer, read at this boundary: the two fields a sent
|
|
165
|
+
* marker reports, each still checked by `nonEmpty`. A JSON value that is not
|
|
166
|
+
* an object (`null`, an array, a string) carries neither.
|
|
167
|
+
*/
|
|
168
|
+
const MarkerBodySchema = z.object({ id: z.unknown(), appId: z.unknown() }).partial();
|
|
169
|
+
/** The marker endpoint's JSON body; an unreadable or non-object body is logged and the marker still counts as sent. */
|
|
170
|
+
async function readMarkerBody(response, runtime) {
|
|
171
|
+
const jsonOutcome = await settle(() => response.json());
|
|
172
|
+
if (!jsonOutcome.ok) {
|
|
173
|
+
const failureName = jsonOutcome.cause instanceof Error ? jsonOutcome.cause.name : 'SyntaxError';
|
|
174
|
+
// The parse error's message can quote the body, so only its class is logged.
|
|
175
|
+
infraDeployLogger(runtime).warn(`Deployment marker response body was not JSON (${failureName})`);
|
|
176
|
+
return {};
|
|
177
|
+
}
|
|
178
|
+
const parsed = MarkerBodySchema.safeParse(jsonOutcome.value);
|
|
179
|
+
if (parsed.success)
|
|
180
|
+
return parsed.data;
|
|
181
|
+
infraDeployLogger(runtime).warn('Deployment marker response body was not a JSON object; no marker id was read');
|
|
182
|
+
return {};
|
|
183
|
+
}
|
|
184
|
+
export async function emitDeploymentMarker(options) {
|
|
185
|
+
if (options.status === 'in_progress') {
|
|
186
|
+
return { status: 'skipped', reason: 'in-progress markers are not emitted after deploy completion' };
|
|
187
|
+
}
|
|
188
|
+
const tokens = await resolveDeploymentMarkerTokens(options.runtime, options.environment, options.token);
|
|
189
|
+
if (tokens.length === 0) {
|
|
190
|
+
return { status: 'skipped', reason: 'internal service token unavailable' };
|
|
191
|
+
}
|
|
192
|
+
const payload = buildDeploymentMarkerPayload(options.runtime, options);
|
|
193
|
+
const origin = await systemOriginForDeployment(options.runtime, options.deployment, options.systemOrigin);
|
|
194
|
+
const fetcher = options.fetchImpl ?? fetch;
|
|
195
|
+
let lastAuthFailure;
|
|
196
|
+
for (const token of tokens) {
|
|
197
|
+
const sendOutcome = await settle(async () => {
|
|
198
|
+
return await fetcher(`${origin}/api/internal/deploy/marker`, {
|
|
199
|
+
method: 'POST',
|
|
200
|
+
headers: {
|
|
201
|
+
authorization: `Bearer ${token}`,
|
|
202
|
+
'content-type': 'application/json'
|
|
203
|
+
},
|
|
204
|
+
body: JSON.stringify(payload)
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
if (!sendOutcome.ok) {
|
|
208
|
+
const failureName = sendOutcome.cause instanceof Error ? sendOutcome.cause.name : 'Error';
|
|
209
|
+
const failureText = sendOutcome.cause instanceof Error ? sendOutcome.cause.message : sendOutcome.cause.description;
|
|
210
|
+
// A transport error can echo request headers; the reason passes the marker redactor.
|
|
211
|
+
return {
|
|
212
|
+
status: 'failed',
|
|
213
|
+
reason: deploymentMarkerNotes(failureText) ?? failureName
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
const response = sendOutcome.value;
|
|
217
|
+
if (!response.ok) {
|
|
218
|
+
const result = {
|
|
219
|
+
status: 'failed',
|
|
220
|
+
reason: `system marker endpoint returned ${response.status}`
|
|
221
|
+
};
|
|
222
|
+
if (response.status === 401 || response.status === 403) {
|
|
223
|
+
lastAuthFailure = result;
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
return result;
|
|
227
|
+
}
|
|
228
|
+
const data = await readMarkerBody(response, options.runtime);
|
|
229
|
+
return {
|
|
230
|
+
status: 'sent',
|
|
231
|
+
markerId: nonEmpty(data.id),
|
|
232
|
+
appId: nonEmpty(data.appId) ?? payload.appId
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
return lastAuthFailure ?? { status: 'failed', reason: 'system marker endpoint rejected all tokens' };
|
|
236
|
+
}
|
|
237
|
+
//# sourceMappingURL=deployment-marker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-marker.js","sourceRoot":"","sources":["../../../src/cli/run/deployment-marker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAqB,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAqC,MAAM,+BAA+B,CAAC;AACtH,OAAO,EACN,+BAA+B,EAC/B,yBAAyB,EAGzB,MAAM,sBAAsB,CAAC;AAE9B,sFAAsF;AACtF,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;AAoD7E,MAAM,mBAAmB,GAAG;IAC3B,8BAA8B;IAC9B,2BAA2B;CAClB,CAAC;AACX,MAAM,4BAA4B,GACjC,mHAAmH,CAAC;AACrH,MAAM,cAAc,GAAG,uBAAuB,CAAC;AAE/C,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEtD,SAAS,QAAQ,CAAC,KAAc;IAC/B,MAAM,MAAM,GAAG,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC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