@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,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parsing of loosely typed CLI option values and the release contract version.
|
|
3
|
+
*/
|
|
4
|
+
import { resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
5
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
6
|
+
import { CapabilityError, CaughtFailureSchema, settle, valueFreeFailure } from "@vibesdotdev/kernel";
|
|
7
|
+
import { z } from "zod/v4";
|
|
8
|
+
import { parseWorkspaceRootManifest } from "./publisher-manifest.js";
|
|
9
|
+
/** A trimmed non-empty string option, else undefined. */
|
|
10
|
+
export function readString(value) {
|
|
11
|
+
const parsed = z.string().safeParse(value);
|
|
12
|
+
if (!parsed.success)
|
|
13
|
+
return undefined;
|
|
14
|
+
const trimmed = parsed.data.trim();
|
|
15
|
+
return trimmed.length > 0 ? trimmed : undefined;
|
|
16
|
+
}
|
|
17
|
+
/** CLI/wire contract version. v1 cannot represent a build-only closure. */
|
|
18
|
+
export function parseReleaseContractVersion(value) {
|
|
19
|
+
const parsed = z
|
|
20
|
+
.union([z.null(), z.undefined(), z.number().int(), z.string()])
|
|
21
|
+
.safeParse(value);
|
|
22
|
+
if (!parsed.success) {
|
|
23
|
+
throw new CapabilityError("Registry release contract version must be 1 or 2", "INVALID_INPUT");
|
|
24
|
+
}
|
|
25
|
+
if (parsed.data === null || parsed.data === undefined)
|
|
26
|
+
return 1;
|
|
27
|
+
const asNumber = z.number().safeParse(parsed.data);
|
|
28
|
+
const text = asNumber.success ? String(asNumber.data) : readString(parsed.data);
|
|
29
|
+
if (text === "1")
|
|
30
|
+
return 1;
|
|
31
|
+
if (text === "2")
|
|
32
|
+
return 2;
|
|
33
|
+
throw new CapabilityError("Registry release contract version must be 1 or 2", "INVALID_INPUT");
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Release contract version for this run. The CLI flag wins; otherwise the
|
|
37
|
+
* release workspace root declares it via `vibes.release.contractVersion` in
|
|
38
|
+
* its package.json; otherwise v1. An unreadable root manifest or an invalid
|
|
39
|
+
* configured value fails closed with the file named: a release must never
|
|
40
|
+
* silently run under a contract the operator did not choose.
|
|
41
|
+
*/
|
|
42
|
+
export async function resolveReleaseContractVersion(options) {
|
|
43
|
+
if (options.flagValue !== undefined && options.flagValue !== null) {
|
|
44
|
+
return parseReleaseContractVersion(options.flagValue);
|
|
45
|
+
}
|
|
46
|
+
const manifestPath = (await getRuntimePath(options.runtime)).join(options.workspaceRoot, "package.json");
|
|
47
|
+
const files = await resolveFileSystemAdapter(options.runtime);
|
|
48
|
+
const read = await settle(async () => JSON.parse(z.string().parse(await files.readFile(manifestPath, "utf8"))));
|
|
49
|
+
if (!read.ok) {
|
|
50
|
+
throw new CapabilityError(`Cannot resolve the release contract version: ${manifestPath} is unreadable`, "INVALID_INPUT", { cause: valueFreeFailure(read.cause) });
|
|
51
|
+
}
|
|
52
|
+
const manifest = parseWorkspaceRootManifest(read.value);
|
|
53
|
+
const configured = manifest.vibes?.release?.contractVersion;
|
|
54
|
+
if (configured === undefined || configured === null)
|
|
55
|
+
return 1;
|
|
56
|
+
try {
|
|
57
|
+
return parseReleaseContractVersion(configured);
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
throw new CapabilityError(`Registry release contract version must be 1 or 2 (vibes.release.contractVersion in ${manifestPath})`, "INVALID_INPUT", { cause: valueFreeFailure(CaughtFailureSchema.parse(error)) });
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/** A flag option: true for `true`, `"true"` or `"yes"`. */
|
|
64
|
+
export function readBoolean(value) {
|
|
65
|
+
const parsed = z.union([z.literal(true), z.literal("true"), z.literal("yes")]).safeParse(value);
|
|
66
|
+
return parsed.success;
|
|
67
|
+
}
|
|
68
|
+
/** A finite numeric option (number or numeric string), else `fallback`. */
|
|
69
|
+
export function readNumber(value, fallback) {
|
|
70
|
+
const asNumber = z.number().safeParse(value);
|
|
71
|
+
if (asNumber.success && Number.isFinite(asNumber.data))
|
|
72
|
+
return asNumber.data;
|
|
73
|
+
const asText = z.string().safeParse(value);
|
|
74
|
+
if (!asText.success || asText.data.trim().length === 0)
|
|
75
|
+
return fallback;
|
|
76
|
+
const parsed = Number(asText.data);
|
|
77
|
+
return Number.isFinite(parsed) ? parsed : fallback;
|
|
78
|
+
}
|
|
79
|
+
/** `value` floored and clamped at zero; `fallback` when not finite. */
|
|
80
|
+
export function positiveInteger(value, fallback) {
|
|
81
|
+
if (!Number.isFinite(value))
|
|
82
|
+
return fallback;
|
|
83
|
+
return Math.max(0, Math.floor(value));
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=command-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-options.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/command-options.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACrG,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAGrE,yDAAyD;AACzD,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO,SAAS,CAAC;IACtC,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACnC,OAAO,OAAO,CAAC,MAAM,GAAG,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bounded-concurrency mapping used by Registry probes, Git inspection and
|
|
3
|
+
* Registry input sealing.
|
|
4
|
+
*/
|
|
5
|
+
export declare function mapWithConcurrency<T, R>(values: readonly T[], limit: number, map: (value: T, index: number) => Promise<R>): Promise<R[]>;
|
|
6
|
+
/**
|
|
7
|
+
* `mapWithConcurrency` for work whose side effects must not outlive a failure
|
|
8
|
+
* (child processes in a temp root the caller removes once this rejects). After
|
|
9
|
+
* the first rejection no further value starts and `signal` aborts, so a started
|
|
10
|
+
* mapping can skip work it no longer needs; every started mapping settles, and
|
|
11
|
+
* then the rejection with the lowest index is rethrown.
|
|
12
|
+
*
|
|
13
|
+
* Values start in index order, so every value below a failing one has started
|
|
14
|
+
* by then, and the error is the one a sequential loop would have thrown, as
|
|
15
|
+
* long as a mapping honours `signal` only where its remaining work cannot
|
|
16
|
+
* reject. A rejection with `signal.reason` is that stop, not a failure.
|
|
17
|
+
*/
|
|
18
|
+
export declare function mapWithConcurrencyUntilFirstFailure<T, R>(values: readonly T[], limit: number, map: (value: T, index: number, signal: AbortSignal) => Promise<R>): Promise<R[]>;
|
|
19
|
+
//# sourceMappingURL=concurrency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concurrency.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/concurrency.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAC3C,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAC3C,OAAO,CAAC,CAAC,EAAE,CAAC,CAiBd;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,mCAAmC,CAAC,CAAC,EAAE,CAAC,EAC5D,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,GAChE,OAAO,CAAC,CAAC,EAAE,CAAC,CA0Bd"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounded-concurrency mapping used by Registry probes, Git inspection and
|
|
3
|
+
* Registry input sealing.
|
|
4
|
+
*/
|
|
5
|
+
import { settle } from "@vibesdotdev/kernel";
|
|
6
|
+
export async function mapWithConcurrency(values, limit, map) {
|
|
7
|
+
const results = [];
|
|
8
|
+
results.length = values.length;
|
|
9
|
+
let cursor = 0;
|
|
10
|
+
const workers = Array.from({ length: Math.min(Math.max(1, limit), values.length) }, async () => {
|
|
11
|
+
while (true) {
|
|
12
|
+
const index = cursor;
|
|
13
|
+
cursor += 1;
|
|
14
|
+
if (index >= values.length)
|
|
15
|
+
return;
|
|
16
|
+
results[index] = await map(values[index], index);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
await Promise.all(workers);
|
|
20
|
+
return results;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `mapWithConcurrency` for work whose side effects must not outlive a failure
|
|
24
|
+
* (child processes in a temp root the caller removes once this rejects). After
|
|
25
|
+
* the first rejection no further value starts and `signal` aborts, so a started
|
|
26
|
+
* mapping can skip work it no longer needs; every started mapping settles, and
|
|
27
|
+
* then the rejection with the lowest index is rethrown.
|
|
28
|
+
*
|
|
29
|
+
* Values start in index order, so every value below a failing one has started
|
|
30
|
+
* by then, and the error is the one a sequential loop would have thrown, as
|
|
31
|
+
* long as a mapping honours `signal` only where its remaining work cannot
|
|
32
|
+
* reject. A rejection with `signal.reason` is that stop, not a failure.
|
|
33
|
+
*/
|
|
34
|
+
export async function mapWithConcurrencyUntilFirstFailure(values, limit, map) {
|
|
35
|
+
const stop = new AbortController();
|
|
36
|
+
let failure;
|
|
37
|
+
const settled = await mapWithConcurrency(values, limit, async (value, index) => {
|
|
38
|
+
if (stop.signal.aborted)
|
|
39
|
+
return undefined;
|
|
40
|
+
const outcome = await settle(() => map(value, index, stop.signal));
|
|
41
|
+
if (outcome.ok)
|
|
42
|
+
return { result: outcome.value };
|
|
43
|
+
if (stop.signal.aborted && outcome.cause === stop.signal.reason)
|
|
44
|
+
return undefined;
|
|
45
|
+
if (!failure || index < failure.index)
|
|
46
|
+
failure = { index, cause: outcome.cause };
|
|
47
|
+
stop.abort(new Error("Stopped after an earlier mapping failed"));
|
|
48
|
+
return undefined;
|
|
49
|
+
});
|
|
50
|
+
if (failure) {
|
|
51
|
+
const cause = failure.cause;
|
|
52
|
+
throw cause instanceof Error ? cause : cause.value;
|
|
53
|
+
}
|
|
54
|
+
return settled.map((entry, index) => {
|
|
55
|
+
if (!entry)
|
|
56
|
+
throw new Error(`Mapping ${index} settled without a result`);
|
|
57
|
+
return entry.result;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=concurrency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concurrency.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/concurrency.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAAoB,EACpB,KAAa,EACb,GAA4C;IAE5C,MAAM,OAAO,GAAQ,EAAE,CAAC;IACxB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CACxB,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EACvD,KAAK,IAAI,EAAE;QACT,OAAO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C,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC,CAAC;QACjE,OAAO,SAAS,CAAC;IACnB,CAAC,CACF,CAAC;IACF,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAC5B,MAAM,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;IACrD,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAClC,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,WAAW,KAAK,2BAA2B,CAAC,CAAC;QACzE,OAAO,KAAK,CAAC,MAAM,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Publisher consumer smoke: install the sealed batch as a plain consumer and
|
|
3
|
+
* import every reachable export target, refusing every failed runtime import.
|
|
4
|
+
*/
|
|
5
|
+
import type { ChildEnvRuntime } from "../../shared/runtime-execution.ts";
|
|
6
|
+
import type { UIContext } from "@vibesdotdev/cli/providers";
|
|
7
|
+
import type { RegistryPublishManifest } from "@vibesdotdev/registry";
|
|
8
|
+
import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
|
|
9
|
+
import type { ReleaseConsumerSourceRegistry } from "./proof-registry.ts";
|
|
10
|
+
/**
|
|
11
|
+
* Every import-time export-map/main target this package could load at runtime, following
|
|
12
|
+
* the same enumeration `verifyPackedPackage` uses to prove every target
|
|
13
|
+
* exists in the tarball. Wildcard subpaths (`./*`) have no single concrete
|
|
14
|
+
* file to import, and non-script targets (`.d.ts`, `.svelte`, `.css`, …) are
|
|
15
|
+
* not importable by a bare Node/Bun runtime — both are already covered by
|
|
16
|
+
* `verifyPackedPackage`'s existence check and the SvelteKit SSR proof, so
|
|
17
|
+
* this only returns the concrete `.js`/`.mjs`/`.cjs` files a plain
|
|
18
|
+
* `import()` can actually execute.
|
|
19
|
+
*/
|
|
20
|
+
export declare function publisherConsumerSmokeImportTargets(manifest: Pick<RegistryPublishManifest, "main" | "exports">): string[];
|
|
21
|
+
/** One sealed batch member the smoke installs from its packed tarball. */
|
|
22
|
+
export type PublisherConsumerSmokeMember = {
|
|
23
|
+
name: string;
|
|
24
|
+
version: string;
|
|
25
|
+
tarball: string;
|
|
26
|
+
};
|
|
27
|
+
/** What the smoke installed and imported, and any consumer check it ran. */
|
|
28
|
+
export type PublisherConsumerSmokeResult = {
|
|
29
|
+
installed: number;
|
|
30
|
+
imports: string[];
|
|
31
|
+
durationMs: number;
|
|
32
|
+
consumerCheck?: {
|
|
33
|
+
ok: boolean;
|
|
34
|
+
log: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/** Upper bound for the smoke consumer's install. */
|
|
38
|
+
export declare const PUBLISHER_CONSUMER_INSTALL_TIMEOUT_MS = 120000;
|
|
39
|
+
/**
|
|
40
|
+
* Installs every non-skipped sealed batch member into a throwaway consumer by
|
|
41
|
+
* its packed tarball (`file:<path>`, the exact bytes about to be uploaded)
|
|
42
|
+
* and imports every export-map/main target from the installed copy. This
|
|
43
|
+
* closes the gap `verifyPackedPackage` cannot: that gate inspects the
|
|
44
|
+
* tarball's file *list*, not what happens when a real installer (hoisting,
|
|
45
|
+
* peer resolution, duplicate dependency trees) lays the batch out and a
|
|
46
|
+
* runtime actually loads it. A `.ts` import specifier surviving into a
|
|
47
|
+
* shipped `.js` file, or an export target missing after a real install,
|
|
48
|
+
* throws here — before any package in the batch reaches the registry.
|
|
49
|
+
*
|
|
50
|
+
* Reuses the already-packed, already-retained tarballs from the seal phase —
|
|
51
|
+
* no rebuild, no re-pack — so this stays fast enough to run on every publish
|
|
52
|
+
* and every `--dry-run`.
|
|
53
|
+
*/
|
|
54
|
+
export declare function runPublisherConsumerSmoke(options: {
|
|
55
|
+
members: readonly PublisherConsumerSmokeMember[];
|
|
56
|
+
workspaceRoot: string;
|
|
57
|
+
execution: RuntimeExecution;
|
|
58
|
+
/** The runtime child environments are composed from. */
|
|
59
|
+
runtime: ChildEnvRuntime;
|
|
60
|
+
ui: UIContext;
|
|
61
|
+
quiet: boolean;
|
|
62
|
+
sourceRegistry?: ReleaseConsumerSourceRegistry;
|
|
63
|
+
consumerPath?: string;
|
|
64
|
+
}): Promise<PublisherConsumerSmokeResult>;
|
|
65
|
+
/**
|
|
66
|
+
* The optional heavier proof: install the exact batch tarballs into a real
|
|
67
|
+
* consumer checkout (e.g. a `vibes-app-template` clone) with `bun add`, then
|
|
68
|
+
* run its own `check`/`build`. Off by default (`--consumer` is unset in
|
|
69
|
+
* ordinary publishes); this exercises a real project's own toolchain against
|
|
70
|
+
* the batch, which the throwaway-consumer import smoke above does not.
|
|
71
|
+
*/
|
|
72
|
+
export declare function runPublisherConsumerSmokeConsumerCheck(options: {
|
|
73
|
+
consumerPath: string;
|
|
74
|
+
members: readonly PublisherConsumerSmokeMember[];
|
|
75
|
+
execution: RuntimeExecution;
|
|
76
|
+
/** The runtime child environments are composed from. */
|
|
77
|
+
runtime: ChildEnvRuntime;
|
|
78
|
+
sourceRegistry?: ReleaseConsumerSourceRegistry;
|
|
79
|
+
}): Promise<{
|
|
80
|
+
ok: boolean;
|
|
81
|
+
log: string;
|
|
82
|
+
}>;
|
|
83
|
+
//# sourceMappingURL=consumer-smoke.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-smoke.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/consumer-smoke.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAQ5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAGrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,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AAgB,CAAC;IAC5B,wDAAwD;IACxD,OAAO,EAAE,eAAe,CAAC;IACzB,cAAc,CAAC,EAAE,6BAA6B,CAAC;CAChD,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CA8DxC"}
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
2
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
3
|
+
import { CapabilityError, isCapabilityError, settle, valueFreeFailure } from "@vibesdotdev/kernel";
|
|
4
|
+
import { JsonObjectSchema, } from "@vibesdotdev/kernel/schemas/json";
|
|
5
|
+
import { z } from "zod/v4";
|
|
6
|
+
import { parsePublisherManifest } from "./publisher-manifest.js";
|
|
7
|
+
import { runRuntimeCommand, registryTokenEnv, } from "../../shared/runtime-execution.js";
|
|
8
|
+
import { mapWithConcurrency } from "./concurrency.js";
|
|
9
|
+
import { requirePathFileURL } from "./fs-paths.js";
|
|
10
|
+
import { writeIsolatedBunfig } from "./npm-exec.js";
|
|
11
|
+
import { writeFreshReleaseConsumerSourceNpmrc } from "./proof-source-credentials.js";
|
|
12
|
+
import { createReleaseTempRoot, defaultSensitiveTempFileAuthorities, scrubSensitiveTempFile, reportedSensitiveTempCleanup, SENSITIVE_TEMP_ROOT_PREFIXES, } from "./sensitive-temp.js";
|
|
13
|
+
/**
|
|
14
|
+
* Export conditions that name an environment this smoke is not: a target
|
|
15
|
+
* reachable ONLY under one of them is unreachable to the plain consumer the
|
|
16
|
+
* smoke plays, so evaluating it proves nothing and fails for the wrong reason
|
|
17
|
+
* (`Cannot find package 'bun'` under node).
|
|
18
|
+
*/
|
|
19
|
+
const SMOKE_FOREIGN_CONDITIONS = new Set([
|
|
20
|
+
"bun",
|
|
21
|
+
"browser",
|
|
22
|
+
"deno",
|
|
23
|
+
"workerd",
|
|
24
|
+
"worker",
|
|
25
|
+
"react-native",
|
|
26
|
+
"cef",
|
|
27
|
+
]);
|
|
28
|
+
/** Conditions a plain node/bun consumer actually resolves through. */
|
|
29
|
+
const SMOKE_CONSUMER_CONDITIONS = new Set([
|
|
30
|
+
"node",
|
|
31
|
+
"import",
|
|
32
|
+
"require",
|
|
33
|
+
"default",
|
|
34
|
+
"module",
|
|
35
|
+
]);
|
|
36
|
+
/**
|
|
37
|
+
* Subpath segments whose entry is compiled by a bundler, never evaluated by a
|
|
38
|
+
* runtime: `@vibesdotdev/surface-sveltekit/svelte` re-exports `.svelte` files, which no
|
|
39
|
+
* runtime can load without a Svelte plugin. The publisher proves those through
|
|
40
|
+
* the installed-style Svelte surface build instead.
|
|
41
|
+
*/
|
|
42
|
+
const SMOKE_BUNDLER_ONLY_SEGMENTS = new Set(["svelte", "tui"]);
|
|
43
|
+
function collectSmokeTargets(key, value, conditions, out) {
|
|
44
|
+
const text = z.string().safeParse(value);
|
|
45
|
+
if (text.success) {
|
|
46
|
+
if (text.data.startsWith("./"))
|
|
47
|
+
out.push({ key, conditions, target: text.data.slice(2) });
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (Array.isArray(value)) {
|
|
51
|
+
for (const entry of value)
|
|
52
|
+
collectSmokeTargets(key, entry, conditions, out);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const record = JsonObjectSchema.safeParse(value);
|
|
56
|
+
if (record.success) {
|
|
57
|
+
for (const [condition, entry] of Object.entries(record.data)) {
|
|
58
|
+
collectSmokeTargets(key, entry, [...conditions, condition], out);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* An export that loads at import time (CORRECT.md §1 #3): the package root, a plugin, a schema
|
|
64
|
+
* or a descriptor entry. It must load in a consumer that installed none of the package's optional
|
|
65
|
+
* peers; an implementation subpath may need its peer and is proven by the installed release proof.
|
|
66
|
+
*/
|
|
67
|
+
function isImportTimeExportKey(key) {
|
|
68
|
+
if (key === ".")
|
|
69
|
+
return true;
|
|
70
|
+
// Match the role as a whole word (`./cloud.plugin`, `./schemas/x`, `./db-schema`),
|
|
71
|
+
// never a substring: `./runtime-plugin-host/runtime-thread.shim.bun` is a worker program.
|
|
72
|
+
return key
|
|
73
|
+
.split(/[./]/)
|
|
74
|
+
.some((token) => /^(?:plugin|schema|descriptor)s?-|(?:plugin|schema|descriptor)s?$/i.test(token));
|
|
75
|
+
}
|
|
76
|
+
function smokeTargetIsReachable(entry) {
|
|
77
|
+
if (!isImportTimeExportKey(entry.key))
|
|
78
|
+
return false;
|
|
79
|
+
if (entry.key
|
|
80
|
+
.split("/")
|
|
81
|
+
.some((segment) => SMOKE_BUNDLER_ONLY_SEGMENTS.has(segment)))
|
|
82
|
+
return false;
|
|
83
|
+
const foreign = entry.conditions.filter((condition) => SMOKE_FOREIGN_CONDITIONS.has(condition));
|
|
84
|
+
if (foreign.length === 0)
|
|
85
|
+
return true;
|
|
86
|
+
return entry.conditions.some((condition) => SMOKE_CONSUMER_CONDITIONS.has(condition));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Every import-time export-map/main target this package could load at runtime, following
|
|
90
|
+
* the same enumeration `verifyPackedPackage` uses to prove every target
|
|
91
|
+
* exists in the tarball. Wildcard subpaths (`./*`) have no single concrete
|
|
92
|
+
* file to import, and non-script targets (`.d.ts`, `.svelte`, `.css`, …) are
|
|
93
|
+
* not importable by a bare Node/Bun runtime — both are already covered by
|
|
94
|
+
* `verifyPackedPackage`'s existence check and the SvelteKit SSR proof, so
|
|
95
|
+
* this only returns the concrete `.js`/`.mjs`/`.cjs` files a plain
|
|
96
|
+
* `import()` can actually execute.
|
|
97
|
+
*/
|
|
98
|
+
export function publisherConsumerSmokeImportTargets(manifest) {
|
|
99
|
+
const entries = [];
|
|
100
|
+
const exportsValue = manifest.exports;
|
|
101
|
+
const exportText = z.string().safeParse(exportsValue);
|
|
102
|
+
const exportRecord = JsonObjectSchema.safeParse(exportsValue);
|
|
103
|
+
if (exportText.success) {
|
|
104
|
+
collectSmokeTargets(".", exportText.data, [], entries);
|
|
105
|
+
}
|
|
106
|
+
else if (exportRecord.success) {
|
|
107
|
+
for (const [key, value] of Object.entries(exportRecord.data)) {
|
|
108
|
+
// A top-level key is a subpath when it looks like one; anything else
|
|
109
|
+
// (a bare condition on a sugar export) keeps the root subpath.
|
|
110
|
+
const isSubpath = key === "." || key.startsWith("./");
|
|
111
|
+
collectSmokeTargets(isSubpath ? key : ".", value, isSubpath ? [] : [key], entries);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const targets = new Set();
|
|
115
|
+
for (const entry of entries) {
|
|
116
|
+
if (smokeTargetIsReachable(entry))
|
|
117
|
+
targets.add(entry.target);
|
|
118
|
+
}
|
|
119
|
+
const main = z.string().safeParse(manifest.main);
|
|
120
|
+
if (main.success && main.data.startsWith("./")) {
|
|
121
|
+
targets.add(main.data.slice(2));
|
|
122
|
+
}
|
|
123
|
+
return [...targets]
|
|
124
|
+
.filter((target) => !target.includes("*"))
|
|
125
|
+
.filter((target) => /\.(?:js|mjs|cjs)$/i.test(target))
|
|
126
|
+
.sort();
|
|
127
|
+
}
|
|
128
|
+
async function readTarballPackageJson(tarballPath, execution, runtime) {
|
|
129
|
+
const result = await runRuntimeCommand({
|
|
130
|
+
runtime,
|
|
131
|
+
execution,
|
|
132
|
+
command: "tar",
|
|
133
|
+
args: ["-xzO", "-f", tarballPath, "package/package.json"],
|
|
134
|
+
cwd: (await getRuntimePath(runtime)).dirname(tarballPath),
|
|
135
|
+
});
|
|
136
|
+
if (result.code !== 0) {
|
|
137
|
+
throw new Error(`Publisher consumer smoke could not read package.json from ${tarballPath}: ${result.stderr || result.stdout}`);
|
|
138
|
+
}
|
|
139
|
+
const parsed = await settle(() => Promise.resolve(parsePublisherManifest(JSON.parse(result.stdout))));
|
|
140
|
+
if (!parsed.ok) {
|
|
141
|
+
if (isCapabilityError(parsed.cause))
|
|
142
|
+
throw parsed.cause;
|
|
143
|
+
throw new CapabilityError("Publisher consumer smoke found an unparsable package.json.", "INVALID_INPUT", {
|
|
144
|
+
reason: "consumer-smoke-manifest-unreadable",
|
|
145
|
+
cause: valueFreeFailure(parsed.cause),
|
|
146
|
+
details: { tarball: tarballPath },
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
return parsed.value;
|
|
150
|
+
}
|
|
151
|
+
/** Upper bound for the smoke consumer's install. */
|
|
152
|
+
export const PUBLISHER_CONSUMER_INSTALL_TIMEOUT_MS = 120_000;
|
|
153
|
+
/**
|
|
154
|
+
* Installs every non-skipped sealed batch member into a throwaway consumer by
|
|
155
|
+
* its packed tarball (`file:<path>`, the exact bytes about to be uploaded)
|
|
156
|
+
* and imports every export-map/main target from the installed copy. This
|
|
157
|
+
* closes the gap `verifyPackedPackage` cannot: that gate inspects the
|
|
158
|
+
* tarball's file *list*, not what happens when a real installer (hoisting,
|
|
159
|
+
* peer resolution, duplicate dependency trees) lays the batch out and a
|
|
160
|
+
* runtime actually loads it. A `.ts` import specifier surviving into a
|
|
161
|
+
* shipped `.js` file, or an export target missing after a real install,
|
|
162
|
+
* throws here — before any package in the batch reaches the registry.
|
|
163
|
+
*
|
|
164
|
+
* Reuses the already-packed, already-retained tarballs from the seal phase —
|
|
165
|
+
* no rebuild, no re-pack — so this stays fast enough to run on every publish
|
|
166
|
+
* and every `--dry-run`.
|
|
167
|
+
*/
|
|
168
|
+
export async function runPublisherConsumerSmoke(options) {
|
|
169
|
+
const startedAt = Date.now();
|
|
170
|
+
if (options.members.length === 0) {
|
|
171
|
+
return { installed: 0, imports: [], durationMs: Date.now() - startedAt };
|
|
172
|
+
}
|
|
173
|
+
const tempRoot = await createReleaseTempRoot(options.runtime, options.workspaceRoot, SENSITIVE_TEMP_ROOT_PREFIXES.consumerSmoke);
|
|
174
|
+
const paths = await getRuntimePath(options.runtime);
|
|
175
|
+
const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
|
|
176
|
+
const consumerDir = paths.join(tempRoot, "consumer");
|
|
177
|
+
const npmrcPath = paths.join(consumerDir, ".npmrc");
|
|
178
|
+
let npmrcWritten = false;
|
|
179
|
+
try {
|
|
180
|
+
await files.mkdir(consumerDir, { recursive: true });
|
|
181
|
+
// cwd is this nested consumer, not tempRoot: pin bunfig here so bun does
|
|
182
|
+
// not walk up to the worktree file under envMode:replace.
|
|
183
|
+
await writeIsolatedBunfig(options.runtime, consumerDir);
|
|
184
|
+
const manifests = await mapWithConcurrency(options.members, 4, async (member) => ({
|
|
185
|
+
member,
|
|
186
|
+
manifest: await readTarballPackageJson(member.tarball, options.execution, options.runtime),
|
|
187
|
+
}));
|
|
188
|
+
const dependencies = {};
|
|
189
|
+
for (const { member } of manifests)
|
|
190
|
+
dependencies[member.name] = `file:${member.tarball}`;
|
|
191
|
+
await files.writeFile(paths.join(consumerDir, "package.json"), `${JSON.stringify({
|
|
192
|
+
name: "vibes-publisher-consumer-smoke",
|
|
193
|
+
private: true,
|
|
194
|
+
version: "0.0.0",
|
|
195
|
+
// Members only, no optional peer: an import-time entry that needs one is the defect.
|
|
196
|
+
dependencies,
|
|
197
|
+
// Members depend on each other by caret range, and the versions
|
|
198
|
+
// in this batch are not on the registry yet: without overrides
|
|
199
|
+
// bun satisfies an intra-batch range from the REGISTRY, nests a
|
|
200
|
+
// second copy of (say) @vibesdotdev/kernel under a sibling, and
|
|
201
|
+
// the runtime's one-process-one-graph guard rejects the import.
|
|
202
|
+
// The smoke must exercise the batch, never a mix of the batch and
|
|
203
|
+
// the versions it is about to replace.
|
|
204
|
+
overrides: dependencies,
|
|
205
|
+
}, null, 2)}\n`);
|
|
206
|
+
if (options.sourceRegistry) {
|
|
207
|
+
npmrcWritten = true;
|
|
208
|
+
await writeFreshReleaseConsumerSourceNpmrc(npmrcPath, options.sourceRegistry, options.runtime);
|
|
209
|
+
}
|
|
210
|
+
if (!options.quiet) {
|
|
211
|
+
options.ui.info(`Installing ${manifests.length} packed tarball(s) into a throwaway consumer...`);
|
|
212
|
+
}
|
|
213
|
+
const install = await runRuntimeCommand({
|
|
214
|
+
runtime: options.runtime,
|
|
215
|
+
execution: options.execution,
|
|
216
|
+
command: "bun",
|
|
217
|
+
args: ["install", "--linker=hoisted", "--no-save", "--ignore-scripts"],
|
|
218
|
+
cwd: consumerDir,
|
|
219
|
+
env: { HOME: consumerDir, USERPROFILE: consumerDir },
|
|
220
|
+
timeout: PUBLISHER_CONSUMER_INSTALL_TIMEOUT_MS,
|
|
221
|
+
});
|
|
222
|
+
if (install.code !== 0) {
|
|
223
|
+
throw new Error(`Publisher consumer smoke install failed:\n${install.stdout}\n${install.stderr}`);
|
|
224
|
+
}
|
|
225
|
+
if (npmrcWritten) {
|
|
226
|
+
await scrubSensitiveTempFile(npmrcPath, defaultSensitiveTempFileAuthorities(options.runtime));
|
|
227
|
+
npmrcWritten = false;
|
|
228
|
+
}
|
|
229
|
+
const imports = [];
|
|
230
|
+
const failures = [];
|
|
231
|
+
for (const { member, manifest } of manifests) {
|
|
232
|
+
const targets = publisherConsumerSmokeImportTargets(manifest);
|
|
233
|
+
const packageDir = paths.join(consumerDir, "node_modules", member.name);
|
|
234
|
+
// These packages are consumed by bun hosts (the vibes CLI, every app's
|
|
235
|
+
// dev server and build). Loading a published artifact under node was an
|
|
236
|
+
// assumption, and it fails for the wrong reason on every bun-runtime
|
|
237
|
+
// module reachable from a node-shaped export condition
|
|
238
|
+
// (`dist/bun/index.js`, `dist/router-server/server.js`, `dist/lsp/index.js`).
|
|
239
|
+
// A package that must load under node says so in its manifest.
|
|
240
|
+
// A package whose published modules are FRAMEWORK-COMPILED output — Svelte 5
|
|
241
|
+
// runes ($state), $env/* imports, .svelte and .css — has no runtime that can
|
|
242
|
+
// evaluate them; only a build can. Such a package declares
|
|
243
|
+
// vibes.publishSmoke: "static" and the packed-content checks (declared files,
|
|
244
|
+
// export targets exist, no .ts specifier) remain its proof.
|
|
245
|
+
const vibes = JsonObjectSchema.safeParse(manifest.vibes);
|
|
246
|
+
if (vibes.success &&
|
|
247
|
+
z.literal("static").safeParse(vibes.data.publishSmoke).success) {
|
|
248
|
+
if (!options.quiet) {
|
|
249
|
+
options.ui.info(`${member.name}@${member.version}: framework-compiled; static checks only`);
|
|
250
|
+
}
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
const runtime = manifest.vibes?.publishLoadRuntime === "node" ? "node" : "bun";
|
|
254
|
+
for (const target of targets) {
|
|
255
|
+
const label = `${member.name}@${member.version}: ${target}`;
|
|
256
|
+
imports.push(label);
|
|
257
|
+
const specifierUrl = requirePathFileURL(paths, paths.join(packageDir, target)).href;
|
|
258
|
+
const result = await runRuntimeCommand({
|
|
259
|
+
runtime: options.runtime,
|
|
260
|
+
execution: options.execution,
|
|
261
|
+
command: runtime,
|
|
262
|
+
args: runtime === "node"
|
|
263
|
+
? [
|
|
264
|
+
"--input-type=module",
|
|
265
|
+
"--eval",
|
|
266
|
+
`import(${JSON.stringify(specifierUrl)})`,
|
|
267
|
+
]
|
|
268
|
+
: ["--eval", `await import(${JSON.stringify(specifierUrl)})`],
|
|
269
|
+
cwd: consumerDir,
|
|
270
|
+
});
|
|
271
|
+
if (result.code !== 0) {
|
|
272
|
+
const output = (result.stderr || result.stdout).trim();
|
|
273
|
+
failures.push(`${label}: ${output}`);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (failures.length > 0) {
|
|
278
|
+
throw new Error(`Publisher consumer smoke refuses this publish; the installed copy failed to load:\n${failures.join("\n")}`);
|
|
279
|
+
}
|
|
280
|
+
let consumerCheck;
|
|
281
|
+
if (options.consumerPath) {
|
|
282
|
+
if (!options.quiet) {
|
|
283
|
+
options.ui.info(`Installing the batch into ${options.consumerPath} for check/build...`);
|
|
284
|
+
}
|
|
285
|
+
consumerCheck = await runPublisherConsumerSmokeConsumerCheck({
|
|
286
|
+
consumerPath: options.consumerPath,
|
|
287
|
+
members: options.members,
|
|
288
|
+
execution: options.execution,
|
|
289
|
+
runtime: options.runtime,
|
|
290
|
+
sourceRegistry: options.sourceRegistry,
|
|
291
|
+
});
|
|
292
|
+
if (!consumerCheck.ok) {
|
|
293
|
+
throw new Error(`Publisher consumer smoke refuses this publish; ${options.consumerPath} check/build failed:\n${consumerCheck.log}`);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
const result = {
|
|
297
|
+
installed: manifests.length,
|
|
298
|
+
imports,
|
|
299
|
+
durationMs: Date.now() - startedAt,
|
|
300
|
+
};
|
|
301
|
+
if (consumerCheck !== undefined)
|
|
302
|
+
result.consumerCheck = consumerCheck;
|
|
303
|
+
return result;
|
|
304
|
+
}
|
|
305
|
+
finally {
|
|
306
|
+
await reportedSensitiveTempCleanup(options.runtime, npmrcWritten ? { npmrcPath, root: tempRoot } : { root: tempRoot });
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* The optional heavier proof: install the exact batch tarballs into a real
|
|
311
|
+
* consumer checkout (e.g. a `vibes-app-template` clone) with `bun add`, then
|
|
312
|
+
* run its own `check`/`build`. Off by default (`--consumer` is unset in
|
|
313
|
+
* ordinary publishes); this exercises a real project's own toolchain against
|
|
314
|
+
* the batch, which the throwaway-consumer import smoke above does not.
|
|
315
|
+
*/
|
|
316
|
+
export async function runPublisherConsumerSmokeConsumerCheck(options) {
|
|
317
|
+
const npmrcPath = (await getRuntimePath(options.runtime)).join(options.consumerPath, ".npmrc");
|
|
318
|
+
let npmrcWritten = false;
|
|
319
|
+
try {
|
|
320
|
+
if (options.sourceRegistry) {
|
|
321
|
+
npmrcWritten = true;
|
|
322
|
+
await writeFreshReleaseConsumerSourceNpmrc(npmrcPath, options.sourceRegistry, options.runtime);
|
|
323
|
+
}
|
|
324
|
+
const install = await runRuntimeCommand({
|
|
325
|
+
runtime: options.runtime,
|
|
326
|
+
execution: options.execution,
|
|
327
|
+
command: "bun",
|
|
328
|
+
env: await registryTokenEnv(options.runtime),
|
|
329
|
+
args: [
|
|
330
|
+
"add",
|
|
331
|
+
"--linker=hoisted",
|
|
332
|
+
...options.members.map((member) => `${member.name}@file:${member.tarball}`),
|
|
333
|
+
],
|
|
334
|
+
cwd: options.consumerPath,
|
|
335
|
+
});
|
|
336
|
+
if (install.code !== 0) {
|
|
337
|
+
return { ok: false, log: `${install.stdout}\n${install.stderr}` };
|
|
338
|
+
}
|
|
339
|
+
if (npmrcWritten) {
|
|
340
|
+
await scrubSensitiveTempFile(npmrcPath, defaultSensitiveTempFileAuthorities(options.runtime));
|
|
341
|
+
npmrcWritten = false;
|
|
342
|
+
}
|
|
343
|
+
const check = await runRuntimeCommand({
|
|
344
|
+
runtime: options.runtime,
|
|
345
|
+
execution: options.execution,
|
|
346
|
+
command: "bun",
|
|
347
|
+
args: ["run", "check"],
|
|
348
|
+
cwd: options.consumerPath,
|
|
349
|
+
});
|
|
350
|
+
if (check.code !== 0) {
|
|
351
|
+
return { ok: false, log: `${check.stdout}\n${check.stderr}` };
|
|
352
|
+
}
|
|
353
|
+
const build = await runRuntimeCommand({
|
|
354
|
+
runtime: options.runtime,
|
|
355
|
+
execution: options.execution,
|
|
356
|
+
command: "bun",
|
|
357
|
+
args: ["run", "build"],
|
|
358
|
+
cwd: options.consumerPath,
|
|
359
|
+
});
|
|
360
|
+
return {
|
|
361
|
+
ok: build.code === 0,
|
|
362
|
+
log: [check.stdout, check.stderr, build.stdout, build.stderr]
|
|
363
|
+
.filter(Boolean)
|
|
364
|
+
.join("\n"),
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
finally {
|
|
368
|
+
await reportedSensitiveTempCleanup(options.runtime, npmrcWritten ? { npmrcPath } : {});
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
//# sourceMappingURL=consumer-smoke.js.map
|