@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,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* First-party PUT of an npm publish document that keeps `_vibes_source`.
|
|
3
|
+
*
|
|
4
|
+
* `npm publish` copies package.json into the PUT `versions` map and drops
|
|
5
|
+
* underscore-prefixed fields. packages.vibes.dev requires the attested stamp
|
|
6
|
+
* on that JSON body. Build the document from the packed tarball ourselves.
|
|
7
|
+
*/
|
|
8
|
+
import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem';
|
|
9
|
+
import { parseRegistryPublishManifest } from '@vibesdotdev/registry';
|
|
10
|
+
import { CapabilityError, settle, settleNow, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
11
|
+
import { MAX_CAUSE_CHARS, redactCredentials } from '@vibesdotdev/shared/utils';
|
|
12
|
+
import { gt, prerelease, valid } from 'semver';
|
|
13
|
+
import { z } from 'zod/v4';
|
|
14
|
+
/** The npm pack root member. Nested `package.json` files belong to bundled dependencies. */
|
|
15
|
+
const NPM_PACK_MANIFEST = 'package/package.json';
|
|
16
|
+
/** packages.vibes.dev answers every refusal with a value-free `{ error }` body. */
|
|
17
|
+
const RegistryErrorBodySchema = z.object({ error: z.string() });
|
|
18
|
+
/**
|
|
19
|
+
* The registry's `{ error }` text for a failed response, only when it is
|
|
20
|
+
* short and reads the same after the shared credential redaction (with the
|
|
21
|
+
* request's token as a secret). Any other body is never read into a failure.
|
|
22
|
+
*/
|
|
23
|
+
export async function registryErrorText(response, secrets) {
|
|
24
|
+
const read = await settle(() => response.text());
|
|
25
|
+
if (!read.ok)
|
|
26
|
+
return undefined;
|
|
27
|
+
const decoded = settleNow(() => JSON.parse(read.value));
|
|
28
|
+
if (!decoded.ok)
|
|
29
|
+
return undefined;
|
|
30
|
+
const body = RegistryErrorBodySchema.safeParse(decoded.value);
|
|
31
|
+
if (!body.success)
|
|
32
|
+
return undefined;
|
|
33
|
+
const text = body.data.error;
|
|
34
|
+
if (text.length === 0 || text.length > MAX_CAUSE_CHARS)
|
|
35
|
+
return undefined;
|
|
36
|
+
return redactCredentials(text, secrets) === text ? text : undefined;
|
|
37
|
+
}
|
|
38
|
+
export function tarballFilename(name, version) {
|
|
39
|
+
const unscoped = name.includes('/') ? name.split('/')[1] : name;
|
|
40
|
+
return `${unscoped}-${version}.tgz`;
|
|
41
|
+
}
|
|
42
|
+
async function gunzip(gzipBytes) {
|
|
43
|
+
const body = new Response(new Uint8Array(gzipBytes)).body;
|
|
44
|
+
if (body === null)
|
|
45
|
+
throw new Error('gzip body is missing');
|
|
46
|
+
const tar = body.pipeThrough(new DecompressionStream('gzip'));
|
|
47
|
+
return new Uint8Array(await new Response(tar).arrayBuffer());
|
|
48
|
+
}
|
|
49
|
+
export async function extractPackageJsonFromTgz(gzipBytes) {
|
|
50
|
+
const tarBytes = await gunzip(gzipBytes);
|
|
51
|
+
const decoder = new TextDecoder();
|
|
52
|
+
let manifestText;
|
|
53
|
+
let offset = 0;
|
|
54
|
+
while (offset + 512 <= tarBytes.length) {
|
|
55
|
+
const header = tarBytes.subarray(offset, offset + 512);
|
|
56
|
+
if (header.every((byte) => byte === 0))
|
|
57
|
+
break;
|
|
58
|
+
const name = readTarString(header, 0, 100);
|
|
59
|
+
const prefix = readTarString(header, 345, 155);
|
|
60
|
+
const fullName = (prefix ? `${prefix}/${name}` : name).replace(/^\.\//, '');
|
|
61
|
+
const size = readTarOctal(header, 124, 12);
|
|
62
|
+
const type = header[156];
|
|
63
|
+
const dataStart = offset + 512;
|
|
64
|
+
const dataEnd = dataStart + size;
|
|
65
|
+
if (dataEnd > tarBytes.length) {
|
|
66
|
+
throw new Error(`invalid tar entry size for ${fullName}`);
|
|
67
|
+
}
|
|
68
|
+
if ((type === 0 || type === 48) && fullName === NPM_PACK_MANIFEST) {
|
|
69
|
+
if (manifestText !== undefined) {
|
|
70
|
+
throw new CapabilityError(`packed tarball has duplicate ${NPM_PACK_MANIFEST}`, 'INVALID_INPUT', {
|
|
71
|
+
reason: 'tarball-manifest-invalid'
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
manifestText = decoder.decode(tarBytes.subarray(dataStart, dataEnd));
|
|
75
|
+
}
|
|
76
|
+
offset = dataStart + Math.ceil(size / 512) * 512;
|
|
77
|
+
}
|
|
78
|
+
if (manifestText === undefined)
|
|
79
|
+
throw new Error('packed tarball has no package.json');
|
|
80
|
+
const decoded = settleNow(() => JSON.parse(manifestText));
|
|
81
|
+
if (!decoded.ok) {
|
|
82
|
+
throw new CapabilityError('packed package.json is not valid JSON', 'INVALID_INPUT', {
|
|
83
|
+
reason: 'registry-manifest-invalid',
|
|
84
|
+
cause: valueFreeFailure(decoded.cause)
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return parseRegistryPublishManifest(decoded.value);
|
|
88
|
+
}
|
|
89
|
+
function readTarString(bytes, offset, length) {
|
|
90
|
+
const end = offset + length;
|
|
91
|
+
let actualEnd = offset;
|
|
92
|
+
while (actualEnd < end && bytes[actualEnd] !== 0)
|
|
93
|
+
actualEnd++;
|
|
94
|
+
return new TextDecoder().decode(bytes.subarray(offset, actualEnd));
|
|
95
|
+
}
|
|
96
|
+
function readTarOctal(bytes, offset, length) {
|
|
97
|
+
const raw = readTarString(bytes, offset, length).trim();
|
|
98
|
+
if (!raw)
|
|
99
|
+
return 0;
|
|
100
|
+
const parsed = Number.parseInt(raw, 8);
|
|
101
|
+
if (!Number.isFinite(parsed))
|
|
102
|
+
throw new Error(`invalid tar octal size: ${raw}`);
|
|
103
|
+
return parsed;
|
|
104
|
+
}
|
|
105
|
+
export function bytesToBase64(bytes) {
|
|
106
|
+
let binary = '';
|
|
107
|
+
for (const byte of bytes)
|
|
108
|
+
binary += String.fromCharCode(byte);
|
|
109
|
+
return btoa(binary);
|
|
110
|
+
}
|
|
111
|
+
/** Default dist-tag when no explicit tag is supplied: `rc` for prereleases, `latest` for stable releases. */
|
|
112
|
+
export function defaultDistTagForVersion(version) {
|
|
113
|
+
return prerelease(version) !== null ? 'rc' : 'latest';
|
|
114
|
+
}
|
|
115
|
+
export async function buildAttestedPublishPayload(options) {
|
|
116
|
+
const manifest = await extractPackageJsonFromTgz(options.tarball);
|
|
117
|
+
if (!manifest.name || !manifest.version) {
|
|
118
|
+
throw new Error('packed package.json is missing name or version');
|
|
119
|
+
}
|
|
120
|
+
const name = manifest.name;
|
|
121
|
+
const version = manifest.version;
|
|
122
|
+
if (!manifest._vibes_source?.repo || !manifest._vibes_source.sha || !manifest._vibes_source.workspaceDigest) {
|
|
123
|
+
throw new Error(`packed ${name}@${version} is missing _vibes_source {repo, sha, workspaceDigest}`);
|
|
124
|
+
}
|
|
125
|
+
const attested = { ...manifest, name, version };
|
|
126
|
+
const file = tarballFilename(name, version);
|
|
127
|
+
const registry = options.registry.replace(/\/$/, '');
|
|
128
|
+
const tarballUrl = `${registry}/${name}/-/${file}`;
|
|
129
|
+
const resolvedTag = options.tag ?? defaultDistTagForVersion(version);
|
|
130
|
+
const payload = {
|
|
131
|
+
_id: name,
|
|
132
|
+
name,
|
|
133
|
+
'dist-tags': { [resolvedTag]: version },
|
|
134
|
+
versions: {
|
|
135
|
+
[version]: {
|
|
136
|
+
...attested,
|
|
137
|
+
dist: { ...options.dist, tarball: tarballUrl }
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
_attachments: {
|
|
141
|
+
[file]: {
|
|
142
|
+
content_type: 'application/octet-stream',
|
|
143
|
+
data: bytesToBase64(options.tarball),
|
|
144
|
+
length: options.tarball.byteLength
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
if (options.access)
|
|
149
|
+
payload.access = options.access;
|
|
150
|
+
return {
|
|
151
|
+
name,
|
|
152
|
+
version,
|
|
153
|
+
payload,
|
|
154
|
+
url: `${registry}/${encodeURIComponent(name)}`
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export async function putAttestedPackument(options) {
|
|
158
|
+
const tarball = 'bytes' in options.tarball
|
|
159
|
+
? options.tarball.bytes
|
|
160
|
+
: z.instanceof(Uint8Array).parse(await (await resolveFileSystemAdapter(options.runtime, { binding: false })).readFile(options.tarball.path));
|
|
161
|
+
const built = await buildAttestedPublishPayload({
|
|
162
|
+
tarball,
|
|
163
|
+
registry: options.registry,
|
|
164
|
+
tag: options.tag,
|
|
165
|
+
access: options.access,
|
|
166
|
+
dist: options.dist
|
|
167
|
+
});
|
|
168
|
+
const fetchImpl = options.fetchImpl ?? fetch;
|
|
169
|
+
// `latest` names the current stable release line. A non-`latest` publish that displaces `latest`
|
|
170
|
+
// (see `latestDisplacedBy`) moves `latest` in the same PUT; prereleases never displace `latest`.
|
|
171
|
+
const resolvedTag = options.tag ?? defaultDistTagForVersion(built.version);
|
|
172
|
+
let latestTag = { state: 'unchanged' };
|
|
173
|
+
if (resolvedTag !== 'latest') {
|
|
174
|
+
const read = await settle(() => readDistTags({ ...options, fetchImpl, name: built.name }));
|
|
175
|
+
if (!read.ok)
|
|
176
|
+
latestTag = { state: 'unread', failure: valueFreeFailure(read.cause) };
|
|
177
|
+
else if (latestDisplacedBy(read.value.latest, built.version)) {
|
|
178
|
+
built.payload['dist-tags'].latest = built.version;
|
|
179
|
+
latestTag = { state: 'moved' };
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const response = await fetchImpl(built.url, {
|
|
183
|
+
method: 'PUT',
|
|
184
|
+
headers: {
|
|
185
|
+
authorization: `Bearer ${options.token}`,
|
|
186
|
+
'content-type': 'application/json',
|
|
187
|
+
accept: 'application/json'
|
|
188
|
+
},
|
|
189
|
+
body: JSON.stringify(built.payload)
|
|
190
|
+
});
|
|
191
|
+
if (!response.ok) {
|
|
192
|
+
const registryError = await registryErrorText(response, [options.token]);
|
|
193
|
+
const said = registryError === undefined ? '' : `: ${registryError}`;
|
|
194
|
+
throw new CapabilityError(`Attested publish PUT ${built.name}@${built.version} failed (${response.status})${said}`, 'UNAVAILABLE', {
|
|
195
|
+
reason: 'registry-put-failed',
|
|
196
|
+
// The registry sends `retry-after` only with its bounded-CAS 409; every other 409 is final.
|
|
197
|
+
// A rate limit or a server failure may run again; a retry after a PUT that did store is
|
|
198
|
+
// refused as an existing version, which the publisher skips.
|
|
199
|
+
retryable: (response.status === 409 && response.headers.has('retry-after')) || response.status === 429 || response.status >= 500,
|
|
200
|
+
details: { status: response.status }
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
return { name: built.name, version: built.version, status: response.status, latestTag };
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Whether `published`, released on a tag other than `latest`, displaces the
|
|
207
|
+
* package's current `latest`. Prereleases (`1.0.0-rc.*`, etc.) are published on
|
|
208
|
+
* `rc` only and never displace `latest`. A stable release displaces `latest`
|
|
209
|
+
* when `latest` is absent (or not a version) or when `latest` is an older
|
|
210
|
+
* prerelease (`gt(published, latest)`). A stable published on another tag never
|
|
211
|
+
* displaces an existing stable `latest`. The publish PUT and the train's latest
|
|
212
|
+
* reconcile share this rule.
|
|
213
|
+
*/
|
|
214
|
+
export function latestDisplacedBy(latest, published) {
|
|
215
|
+
if (!valid(published) || prerelease(published) !== null)
|
|
216
|
+
return false;
|
|
217
|
+
if (latest === undefined || !valid(latest))
|
|
218
|
+
return true;
|
|
219
|
+
if (prerelease(latest) !== null)
|
|
220
|
+
return gt(published, latest);
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
const DistTagsSchema = z.object({ 'dist-tags': z.record(z.string(), z.string()).default({}) });
|
|
224
|
+
/** The package's current dist-tags; empty for a package the registry does not hold yet. */
|
|
225
|
+
export async function readDistTags(options) {
|
|
226
|
+
const registry = options.registry.replace(/\/$/, '');
|
|
227
|
+
const current = await options.fetchImpl(`${registry}/${encodeURIComponent(options.name)}`, {
|
|
228
|
+
headers: { authorization: `Bearer ${options.token}`, accept: 'application/json' }
|
|
229
|
+
});
|
|
230
|
+
if (current.status === 404) {
|
|
231
|
+
await current.body?.cancel();
|
|
232
|
+
return {};
|
|
233
|
+
}
|
|
234
|
+
if (!current.ok) {
|
|
235
|
+
const said = await registryErrorText(current, [options.token]);
|
|
236
|
+
throw new CapabilityError(`Reading ${options.name}'s dist-tags failed (${current.status})${said === undefined ? '' : `: ${said}`}`, 'UNAVAILABLE', { reason: 'registry-dist-tag-read-failed', retryable: current.status === 429 || current.status >= 500, details: { status: current.status } });
|
|
237
|
+
}
|
|
238
|
+
return DistTagsSchema.parse(await current.json())['dist-tags'];
|
|
239
|
+
}
|
|
240
|
+
//# sourceMappingURL=put-attested-packument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"put-attested-packument.js","sourceRoot":"","sources":["../../../src/cli/npm/put-attested-packument.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,4BAA4B,EAAgC,MAAM,uBAAuB,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAmB,MAAM,qBAAqB,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,4FAA4F;AAC5F,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;AAEjD,mFAAmF;AACnF,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAkB,EAAE,OAA0B;IACrF,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GA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,KAAK,EAAE,EAAE,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,GAAG,QAAQ,IAAI,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE;QAC1F,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,OAAO,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;KACjF,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC5B,MAAM,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;QAC7B,OAAO,EAAE,CAAC;IACX,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,IAAI,GAAG,MAAM,iBAAiB,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/D,MAAM,IAAI,eAAe,CACxB,WAAW,OAAO,CAAC,IAAI,wBAAwB,OAAO,CAAC,MAAM,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,EAAE,EACxG,aAAa,EACb,EAAE,MAAM,EAAE,+BAA+B,EAAE,SAAS,EAAE,OAAO,CAAC,MAAM,KAAK,GAAG,IAAI,OAAO,CAAC,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,CAC5I,CAAC;IACH,CAAC;IACD,OAAO,cAAc,CAAC,KAAK,CAAC,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The release train's `latest` reconcile. After a train publishes, each graph
|
|
3
|
+
* package whose registry `latest` is displaced (`latestDisplacedBy`, the same
|
|
4
|
+
* rule the publish PUT applies) by its newest version on the release tag has
|
|
5
|
+
* `latest` moved through the registry's dist-tag operation, leaves first.
|
|
6
|
+
*
|
|
7
|
+
* Authority is the caller's: the bearer token is the one its publish ran
|
|
8
|
+
* under. A registry refusal (with its status and `{ error }` text) or a failed
|
|
9
|
+
* read is reported for that package, never retried around, and the reconcile
|
|
10
|
+
* continues with the next package.
|
|
11
|
+
*/
|
|
12
|
+
import { valueFreeFailure } from '@vibesdotdev/kernel';
|
|
13
|
+
/** What the reconcile did to one package's `latest`. */
|
|
14
|
+
export type LatestReconcileOutcome = {
|
|
15
|
+
name: string;
|
|
16
|
+
state: 'moved';
|
|
17
|
+
from: string | undefined;
|
|
18
|
+
to: string;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
state: 'unchanged';
|
|
22
|
+
latest: string | undefined;
|
|
23
|
+
release: string;
|
|
24
|
+
} | {
|
|
25
|
+
name: string;
|
|
26
|
+
state: 'untagged';
|
|
27
|
+
}
|
|
28
|
+
/** The registry answered the dist-tag operation with a refusal: its status and `{ error }` text. */
|
|
29
|
+
| {
|
|
30
|
+
name: string;
|
|
31
|
+
state: 'refused';
|
|
32
|
+
release: string;
|
|
33
|
+
status: number;
|
|
34
|
+
error: string | undefined;
|
|
35
|
+
}
|
|
36
|
+
/** The packument read or the request itself failed. */
|
|
37
|
+
| {
|
|
38
|
+
name: string;
|
|
39
|
+
state: 'failed';
|
|
40
|
+
failure: ReturnType<typeof valueFreeFailure>;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Reconcile `latest` for `packages`, which must be in dependency order
|
|
44
|
+
* (leaves first, as a release plan's `publishOrder` is). Each package is read
|
|
45
|
+
* and, when displaced, moved before the next is touched.
|
|
46
|
+
*/
|
|
47
|
+
export declare function reconcileLatestDistTags(options: {
|
|
48
|
+
registry: string;
|
|
49
|
+
token: string;
|
|
50
|
+
/** The release tag the train published on (e.g. `rc`). */
|
|
51
|
+
tag: string;
|
|
52
|
+
packages: readonly string[];
|
|
53
|
+
fetchImpl?: typeof fetch;
|
|
54
|
+
}): Promise<LatestReconcileOutcome[]>;
|
|
55
|
+
//# sourceMappingURL=reconcile-latest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcile-latest.d.ts","sourceRoot":"","sources":["../../../src/cli/npm/reconcile-latest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAA2B,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,wDAAwD;AACxD,MAAM,MAAM,sBAAsB,GAC/B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GACtE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACjF;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,UAAU,CAAA;CAAE;AACrC,oGAAoG;GAClG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE;AAChG,uDAAuD;GACrD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;CAAE,CAAC;AAEnF;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CACzB,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAcpC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The release train's `latest` reconcile. After a train publishes, each graph
|
|
3
|
+
* package whose registry `latest` is displaced (`latestDisplacedBy`, the same
|
|
4
|
+
* rule the publish PUT applies) by its newest version on the release tag has
|
|
5
|
+
* `latest` moved through the registry's dist-tag operation, leaves first.
|
|
6
|
+
*
|
|
7
|
+
* Authority is the caller's: the bearer token is the one its publish ran
|
|
8
|
+
* under. A registry refusal (with its status and `{ error }` text) or a failed
|
|
9
|
+
* read is reported for that package, never retried around, and the reconcile
|
|
10
|
+
* continues with the next package.
|
|
11
|
+
*/
|
|
12
|
+
import { CapabilityError, settle, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
13
|
+
import { latestDisplacedBy, readDistTags, registryErrorText } from "./put-attested-packument.js";
|
|
14
|
+
/**
|
|
15
|
+
* Reconcile `latest` for `packages`, which must be in dependency order
|
|
16
|
+
* (leaves first, as a release plan's `publishOrder` is). Each package is read
|
|
17
|
+
* and, when displaced, moved before the next is touched.
|
|
18
|
+
*/
|
|
19
|
+
export async function reconcileLatestDistTags(options) {
|
|
20
|
+
if (options.tag === 'latest') {
|
|
21
|
+
throw new CapabilityError('The latest reconcile reads a release tag other than latest.', 'INVALID_INPUT', {
|
|
22
|
+
reason: 'latest-reconcile-tag-invalid'
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
const fetchImpl = options.fetchImpl ?? fetch;
|
|
26
|
+
const registry = options.registry.replace(/\/$/, '');
|
|
27
|
+
const outcomes = [];
|
|
28
|
+
for (const name of options.packages) {
|
|
29
|
+
const reconciled = await settle(() => reconcileOne({ ...options, registry, fetchImpl, name }));
|
|
30
|
+
outcomes.push(reconciled.ok ? reconciled.value : { name, state: 'failed', failure: valueFreeFailure(reconciled.cause) });
|
|
31
|
+
}
|
|
32
|
+
return outcomes;
|
|
33
|
+
}
|
|
34
|
+
async function reconcileOne(options) {
|
|
35
|
+
const { name } = options;
|
|
36
|
+
const tags = await readDistTags(options);
|
|
37
|
+
const release = tags[options.tag];
|
|
38
|
+
if (release === undefined)
|
|
39
|
+
return { name, state: 'untagged' };
|
|
40
|
+
const latest = tags.latest;
|
|
41
|
+
if (!latestDisplacedBy(latest, release))
|
|
42
|
+
return { name, state: 'unchanged', latest, release };
|
|
43
|
+
const response = await options.fetchImpl(`${options.registry}/-/package/${encodeURIComponent(name)}/dist-tags/latest`, {
|
|
44
|
+
method: 'PUT',
|
|
45
|
+
headers: {
|
|
46
|
+
authorization: `Bearer ${options.token}`,
|
|
47
|
+
'content-type': 'application/json',
|
|
48
|
+
accept: 'application/json'
|
|
49
|
+
},
|
|
50
|
+
body: JSON.stringify(release)
|
|
51
|
+
});
|
|
52
|
+
if (!response.ok) {
|
|
53
|
+
const error = await registryErrorText(response, [options.token]);
|
|
54
|
+
return { name, state: 'refused', release, status: response.status, error };
|
|
55
|
+
}
|
|
56
|
+
await response.body?.cancel();
|
|
57
|
+
return { name, state: 'moved', from: latest, to: release };
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=reconcile-latest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcile-latest.js","sourceRoot":"","sources":["../../../src/cli/npm/reconcile-latest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAYjG;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,OAO7C;IACA,IAAI,OAAO,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,IAAI,eAAe,CAAC,6D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AAE,CAAC;IAC9F,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACvC,GAAG,OAAO,CAAC,QAAQ,cAAc,kBAAkB,CAAC,IAAI,CAAC,mBAAmB,EAC5E;QACC,MAAM,EAAE,KAAK;QACb,OAAO,EAAE;YACR,aAAa,EAAE,UAAU,OAAO,CAAC,KAAK,EAAE;YACxC,cAAc,EAAE,kBAAkB;YAClC,MAAM,EAAE,kBAAkB;SAC1B;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;KAC7B,CACD,CAAC;IACF,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QAClB,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QACjE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;IAC5E,CAAC;IACD,MAAM,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IAC9B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ObservabilitySnapshot } from '@vibesdotdev/infra-core/kinds';
|
|
2
|
+
/**
|
|
3
|
+
* Workers whose logs miss invocations: logs off, or head sampling below full
|
|
4
|
+
* capture. Logs on with no reported rate is full capture (the provider default
|
|
5
|
+
* rate is 1). Unreadable workers are reported separately, never as covered.
|
|
6
|
+
*/
|
|
7
|
+
export declare function observabilityBlindSpots(snapshots: readonly ObservabilitySnapshot[]): string[];
|
|
8
|
+
/** How to close a blind spot durably, and between deploys. */
|
|
9
|
+
export declare const OBSERVABILITY_BLIND_SPOT_REMEDY: string;
|
|
10
|
+
//# sourceMappingURL=blind-spots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blind-spots.d.ts","sourceRoot":"","sources":["../../../src/cli/observability/blind-spots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAE3E;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,SAAS,EAAE,SAAS,qBAAqB,EAAE,GACzC,MAAM,EAAE,CAQV;AAED,8DAA8D;AAC9D,eAAO,MAAM,+BAA+B,QAG+B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workers whose logs miss invocations: logs off, or head sampling below full
|
|
3
|
+
* capture. Logs on with no reported rate is full capture (the provider default
|
|
4
|
+
* rate is 1). Unreadable workers are reported separately, never as covered.
|
|
5
|
+
*/
|
|
6
|
+
export function observabilityBlindSpots(snapshots) {
|
|
7
|
+
return snapshots
|
|
8
|
+
.filter((snapshot) => !snapshot.failure)
|
|
9
|
+
.filter((snapshot) => {
|
|
10
|
+
const logs = snapshot.settings.logs;
|
|
11
|
+
return !logs?.enabled || (logs.headSamplingRate ?? 1) < 1;
|
|
12
|
+
})
|
|
13
|
+
.map((snapshot) => snapshot.workerName);
|
|
14
|
+
}
|
|
15
|
+
/** How to close a blind spot durably, and between deploys. */
|
|
16
|
+
export const OBSERVABILITY_BLIND_SPOT_REMEDY = 'declare `observability: { enabled: true }` in the app deployment config (the deploy ' +
|
|
17
|
+
'helper writes full capture), or between deploys run ' +
|
|
18
|
+
'`vibes infra observability set --worker <name> --logs true --sampling 1`';
|
|
19
|
+
//# sourceMappingURL=blind-spots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blind-spots.js","sourceRoot":"","sources":["../../../src/cli/observability/blind-spots.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACtC,SAA2C;IAE3C,OAAO,SAAS;SACd,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;SACvC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE;QACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;QACpC,OAAO,CAAC,IAAI,EAAE,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IAC3D,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC;AAED,8DAA8D;AAC9D,MAAM,CAAC,MAAM,+BAA+B,GAC3C,sFAAsF;IACtF,sDAAsD;IACtD,0EAA0E,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommandContext, CommandOptions } from '@vibesdotdev/cli';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
execute(_args: CommandOptions, opts: CommandOptions, context: CommandContext): Promise<void>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=infra-observability-exports-list.cli-command.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-observability-exports-list.cli-command.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-exports-list.cli-command.impl.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;mBAiBjD,cAAc,QAAQ,cAAc,WAAW,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;;AADnG,wBAuFE"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
2
|
+
import { ObservabilityExportInventorySchema, sanitizeInfraProviderFailure } from '@vibesdotdev/infra-core';
|
|
3
|
+
import { readString } from "../shared/option-strings.js";
|
|
4
|
+
export default {
|
|
5
|
+
async execute(_args, opts, context) {
|
|
6
|
+
const runtime = context.runtime;
|
|
7
|
+
const ui = await runtime.context('cli/ui');
|
|
8
|
+
const worker = readString(opts.worker);
|
|
9
|
+
const filter = readString(opts.filter);
|
|
10
|
+
const provider = readString(opts.provider);
|
|
11
|
+
const environment = readString(opts.environment);
|
|
12
|
+
const output = readString(opts.output) ?? 'text';
|
|
13
|
+
if (!['text', 'json'].includes(output))
|
|
14
|
+
throw new CapabilityError('Output must be text or json.', 'INVALID_INPUT');
|
|
15
|
+
if (!runtime.hasKind('infra/observability')) {
|
|
16
|
+
throw new CapabilityError('No observability provider is registered; export inventory is unavailable.', 'UNAVAILABLE');
|
|
17
|
+
}
|
|
18
|
+
const descriptors = runtime
|
|
19
|
+
.query('infra/observability')
|
|
20
|
+
.enabled()
|
|
21
|
+
.descriptors();
|
|
22
|
+
const target = provider
|
|
23
|
+
? descriptors.find((descriptor) => descriptor.id === provider || descriptor.adapter === provider)
|
|
24
|
+
: descriptors[0];
|
|
25
|
+
if (!target)
|
|
26
|
+
throw new CapabilityError('No matching observability provider for export inventory.', 'NOT_FOUND');
|
|
27
|
+
const scope = worker
|
|
28
|
+
? { kind: 'worker', workerName: worker }
|
|
29
|
+
: filter
|
|
30
|
+
? { kind: 'account-wide', filter }
|
|
31
|
+
: { kind: 'account-wide' };
|
|
32
|
+
let raw;
|
|
33
|
+
let implementation;
|
|
34
|
+
try {
|
|
35
|
+
const resolved = await runtime
|
|
36
|
+
.query('infra/observability')
|
|
37
|
+
.withId(target.id)
|
|
38
|
+
.resolve();
|
|
39
|
+
implementation = 'create' in resolved ? await resolved.create({ environment }) : resolved;
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
const failure = sanitizeInfraProviderFailure(error);
|
|
43
|
+
throw new CapabilityError(failure.message, 'UNAVAILABLE');
|
|
44
|
+
}
|
|
45
|
+
if (!implementation.listExports)
|
|
46
|
+
throw new CapabilityError('This observability provider does not support export inventory.', 'UNAVAILABLE');
|
|
47
|
+
try {
|
|
48
|
+
raw = await implementation.listExports(scope);
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
throw new CapabilityError(sanitizeInfraProviderFailure(error).message, 'UNAVAILABLE');
|
|
52
|
+
}
|
|
53
|
+
const parsed = ObservabilityExportInventorySchema.safeParse(raw);
|
|
54
|
+
if (!parsed.success)
|
|
55
|
+
throw new CapabilityError('Provider returned an invalid export inventory.', 'INTERNAL');
|
|
56
|
+
const inventory = parsed.data;
|
|
57
|
+
if (output === 'json') {
|
|
58
|
+
ui.json(inventory);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
ui.info('Export inventory is configuration evidence; it does not certify collector delivery.');
|
|
62
|
+
for (const destination of inventory.destinations) {
|
|
63
|
+
ui.info(`${destination.id} (${destination.name}): ${destination.signal}, enabled=${destination.enabled}, ${destination.endpointOrigin ?? 'unknown endpoint'}; header names: ${destination.headerNames.join(', ') || 'none'}`);
|
|
64
|
+
}
|
|
65
|
+
if (inventory.destinations.length === 0)
|
|
66
|
+
ui.info('No export destinations reported by the provider.');
|
|
67
|
+
for (const worker of inventory.workers) {
|
|
68
|
+
if (worker.failure)
|
|
69
|
+
ui.warn(`${worker.workerName}: unreadable (${worker.failure.code}: ${worker.failure.message})`);
|
|
70
|
+
else
|
|
71
|
+
ui.info(`${worker.workerName}: logs=[${worker.logs.join(', ')}] traces=[${worker.traces.join(', ')}]`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=infra-observability-exports-list.cli-command.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-observability-exports-list.cli-command.impl.js","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-exports-list.cli-command.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EACN,kCAAkC,EAClC,4BAA4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
|
@@ -1,25 +1,46 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
id:
|
|
3
|
-
kind: "cli/command";
|
|
4
|
-
name:
|
|
5
|
-
description:
|
|
6
|
-
group:
|
|
7
|
-
options:
|
|
8
|
-
flags:
|
|
9
|
-
description:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
readonly id: "infra-observability.set";
|
|
3
|
+
readonly kind: "cli/command";
|
|
4
|
+
readonly name: "set";
|
|
5
|
+
readonly description: "Update observability config (sampling, logs/traces enabled) on Worker(s)";
|
|
6
|
+
readonly group: "infra-observability";
|
|
7
|
+
readonly options: [{
|
|
8
|
+
readonly flags: "--worker <name>";
|
|
9
|
+
readonly description: "Scope to a single Worker (omit for fleet-wide apply)";
|
|
10
|
+
}, {
|
|
11
|
+
readonly flags: "--filter <glob>";
|
|
12
|
+
readonly description: "Glob to narrow the fleet apply (e.g. \"worker-*\")";
|
|
13
|
+
}, {
|
|
14
|
+
readonly flags: "--sampling <rate>";
|
|
15
|
+
readonly description: "Logs head sampling rate (0..1; 1 captures every invocation)";
|
|
16
|
+
}, {
|
|
17
|
+
readonly flags: "--logs <enabled>";
|
|
18
|
+
readonly description: "Enable/disable logs (true|false)";
|
|
19
|
+
}, {
|
|
20
|
+
readonly flags: "--traces <enabled>";
|
|
21
|
+
readonly description: "Enable/disable traces (true|false)";
|
|
22
|
+
}, {
|
|
23
|
+
readonly flags: "--provider <id>";
|
|
24
|
+
readonly description: "Provider impl id (default: cloudflare-workers-observability)";
|
|
25
|
+
}, {
|
|
26
|
+
readonly flags: "--environment <name>";
|
|
27
|
+
readonly description: "Vibes environment for secret resolution (local|dev|staging|production)";
|
|
28
|
+
}, {
|
|
29
|
+
readonly flags: "--dry-run";
|
|
30
|
+
readonly description: "Show what would change; do not write";
|
|
31
|
+
readonly default: false;
|
|
32
|
+
}, {
|
|
33
|
+
readonly flags: "-y, --yes";
|
|
34
|
+
readonly description: "Skip confirmation prompt for multi-worker changes";
|
|
35
|
+
readonly default: false;
|
|
36
|
+
}, {
|
|
37
|
+
readonly flags: "-o, --output <format>";
|
|
38
|
+
readonly description: "Output format (text|json)";
|
|
39
|
+
readonly default: "text";
|
|
40
|
+
}];
|
|
41
|
+
readonly surfaces: ["cli"];
|
|
42
|
+
readonly hardware: ["consumer", "cloud"];
|
|
43
|
+
readonly enabled: true;
|
|
23
44
|
};
|
|
24
45
|
export default _default;
|
|
25
46
|
//# sourceMappingURL=infra-observability-set.cli-command.descriptor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-observability-set.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-set.cli-command.descriptor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"infra-observability-set.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-set.cli-command.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAsDG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRuntimeAsset } from '@vibesdotdev/
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
2
2
|
export default createRuntimeAsset({
|
|
3
3
|
id: 'infra-observability.set',
|
|
4
4
|
kind: 'cli/command',
|
|
@@ -12,11 +12,11 @@ export default createRuntimeAsset({
|
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
flags: '--filter <glob>',
|
|
15
|
-
description: 'Glob to narrow the fleet apply (e.g. "
|
|
15
|
+
description: 'Glob to narrow the fleet apply (e.g. "worker-*")'
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
flags: '--sampling <rate>',
|
|
19
|
-
description: 'Logs head sampling rate (0..1;
|
|
19
|
+
description: 'Logs head sampling rate (0..1; 1 captures every invocation)'
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
flags: '--logs <enabled>',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-observability-set.cli-command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-set.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"infra-observability-set.cli-command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/observability/infra-observability-set.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,yBAAyB;IAC7B,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,0EAA0E;IACvF,KAAK,EAAE,qBAAqB;IAC5B,OAAO,EAAE;QACR;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,sDAAsD;SACnE;QACD;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,kDAAkD;SAC/D;QACD;YACC,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,6DAA6D;SAC1E;QACD;YACC,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,kCAAkC;SAC/C;QACD;YACC,KAAK,EAAE,oBAAoB;YAC3B,WAAW,EAAE,oCAAoC;SACjD;QACD;YACC,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,8DAA8D;SAC3E;QACD;YACC,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,wEAAwE;SACrF;QACD;YACC,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,KAAK;SACd;QACD;YACC,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE,KAAK;SACd;QACD;YACC,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,2BAA2B;YACxC,OAAO,EAAE,MAAM;SACf;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|