@vibesdotdev/infra-deploy 0.0.2 → 1.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +76 -12
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +48 -35
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +31 -21
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +26 -27
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +11 -11
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +15 -14
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +24 -17
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js +8 -3
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +164 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.js +557 -76
- package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -1
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts +49 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js +60 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts +30 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.js +167 -0
- package/dist/cli/db/infra-db.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts +6 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js +53 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js +50 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts +12 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js +70 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts +32 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js +39 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts +17 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js +66 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts +58 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js +72 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js +110 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js +47 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts +24 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.js +62 -0
- package/dist/cli/dns/resolve-dns-provider.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts +37 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js +45 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts +15 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts +29 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js +35 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts +19 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js +73 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js +50 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts +16 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js +81 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts +40 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js +49 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts +25 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js +74 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js.map +1 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/infra-deploy.cli-group.descriptor.js +1 -1
- package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -1
- package/dist/cli/infra.cli-group.descriptor.d.ts +7 -7
- package/dist/cli/infra.cli-group.descriptor.js +1 -1
- package/dist/cli/infra.cli-group.descriptor.js.map +1 -1
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts +26 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js +204 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +40 -30
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +7 -3
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +35 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js +202 -20
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +113 -35
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js +87 -3
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +61 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.js +1160 -111
- package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/stream-worker-tail.d.ts +7 -2
- package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -1
- package/dist/cli/logs/stream-worker-tail.js +280 -113
- package/dist/cli/logs/stream-worker-tail.js.map +1 -1
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts +62 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js +79 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts +8 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js +105 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts +40 -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 +50 -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 +108 -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 +83 -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 +52 -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 +52 -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 +568 -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 +91 -0
- package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
- package/dist/cli/npm/mirror-registry-artifacts.js +99 -0
- package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
- package/dist/cli/npm/npm-protocol-package-registry.d.ts +32 -0
- package/dist/cli/npm/npm-protocol-package-registry.d.ts.map +1 -0
- package/dist/cli/npm/npm-protocol-package-registry.js +237 -0
- package/dist/cli/npm/npm-protocol-package-registry.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/publish-to-mirror.d.ts +28 -0
- package/dist/cli/npm/publish/publish-to-mirror.d.ts.map +1 -0
- package/dist/cli/npm/publish/publish-to-mirror.js +36 -0
- package/dist/cli/npm/publish/publish-to-mirror.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 +181 -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 +142 -0
- package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
- package/dist/cli/npm/put-attested-packument.js +353 -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/npm/registries/npmjs.package-registry.descriptor.d.ts +56 -0
- package/dist/cli/npm/registries/npmjs.package-registry.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/registries/npmjs.package-registry.descriptor.js +16 -0
- package/dist/cli/npm/registries/npmjs.package-registry.descriptor.js.map +1 -0
- package/dist/cli/npm/registries/package-registries.plugin.d.ts +3 -0
- package/dist/cli/npm/registries/package-registries.plugin.d.ts.map +1 -0
- package/dist/cli/npm/registries/package-registries.plugin.js +44 -0
- package/dist/cli/npm/registries/package-registries.plugin.js.map +1 -0
- package/dist/cli/npm/registries/resolve-package-registry.d.ts +29 -0
- package/dist/cli/npm/registries/resolve-package-registry.d.ts.map +1 -0
- package/dist/cli/npm/registries/resolve-package-registry.js +58 -0
- package/dist/cli/npm/registries/resolve-package-registry.js.map +1 -0
- package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.d.ts +53 -0
- package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.js +12 -0
- package/dist/cli/npm/registries/vibes-registry.package-registry.descriptor.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 +51 -0
- package/dist/cli/run/deployment-provider.d.ts.map +1 -0
- package/dist/cli/run/deployment-provider.js +274 -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 +404 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.js +585 -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 +77 -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 +49 -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 +440 -229
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
- package/dist/cli/shared/build-workspace-artifacts.d.ts +152 -0
- package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
- package/dist/cli/shared/build-workspace-artifacts.js +2049 -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/shared/workspace-artifact-store.d.ts +14 -0
- package/dist/cli/shared/workspace-artifact-store.d.ts.map +1 -0
- package/dist/cli/shared/workspace-artifact-store.js +53 -0
- package/dist/cli/shared/workspace-artifact-store.js.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts +239 -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 +65 -20
- package/dist/infra-deploy.plugin.js.map +1 -1
- package/dist/logger.d.ts +10 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +11 -0
- package/dist/logger.js.map +1 -0
- package/dist/migrations/migrate-workspace.d.ts +21 -0
- package/dist/migrations/migrate-workspace.d.ts.map +1 -0
- package/dist/migrations/migrate-workspace.js +83 -0
- package/dist/migrations/migrate-workspace.js.map +1 -0
- package/dist/migrations/run-migrate.d.ts +15 -0
- package/dist/migrations/run-migrate.d.ts.map +1 -0
- package/dist/migrations/run-migrate.js +314 -0
- package/dist/migrations/run-migrate.js.map +1 -0
- package/dist/regenerate.d.ts +52 -30
- package/dist/regenerate.d.ts.map +1 -1
- package/dist/regenerate.js +176 -148
- package/dist/regenerate.js.map +1 -1
- package/dist/runtime-execution.d.ts +5 -0
- package/dist/runtime-execution.d.ts.map +1 -0
- package/dist/runtime-execution.js +12 -0
- package/dist/runtime-execution.js.map +1 -0
- package/dist/schemas/migrate.d.ts +110 -0
- package/dist/schemas/migrate.d.ts.map +1 -0
- package/dist/schemas/migrate.js +55 -0
- package/dist/schemas/migrate.js.map +1 -0
- package/dist/schemas/proof-registry.d.ts +25 -0
- package/dist/schemas/proof-registry.d.ts.map +1 -0
- package/dist/schemas/proof-registry.js +24 -0
- package/dist/schemas/proof-registry.js.map +1 -0
- package/dist/schemas/release-grants.d.ts +7 -0
- package/dist/schemas/release-grants.d.ts.map +1 -0
- package/dist/schemas/release-grants.js +6 -0
- package/dist/schemas/release-grants.js.map +1 -0
- package/dist/schemas/release-jobs.d.ts +444 -0
- package/dist/schemas/release-jobs.d.ts.map +1 -0
- package/dist/schemas/release-jobs.js +204 -0
- package/dist/schemas/release-jobs.js.map +1 -0
- package/dist/schemas/service-release.d.ts +15 -0
- package/dist/schemas/service-release.d.ts.map +1 -0
- package/dist/schemas/service-release.js +13 -0
- package/dist/schemas/service-release.js.map +1 -0
- package/dist/schemas/worker-logs.d.ts +42 -0
- package/dist/schemas/worker-logs.d.ts.map +1 -0
- package/dist/schemas/worker-logs.js +29 -0
- package/dist/schemas/worker-logs.js.map +1 -0
- package/dist/storage/deployment-runs.schema.d.ts +199 -0
- package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
- package/dist/storage/deployment-runs.schema.js +61 -0
- package/dist/storage/deployment-runs.schema.js.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
- package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
- package/package.json +107 -38
- package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
- package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
- package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
- package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
- package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
- package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
- package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
- package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
- package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
- package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
- package/src/cli/infra.cli-group.descriptor.ts +0 -11
- package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
- package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
- package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
- package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
- package/src/cli/logs/stream-worker-tail.ts +0 -202
- package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
- package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
- package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
- package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
- package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
- package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
- package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
- package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
- package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
- package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
- package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
- package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
- package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
- package/src/cli/shared/discover-deployments.ts +0 -127
- package/src/config-loader.ts +0 -179
- package/src/index.ts +0 -11
- package/src/infra-deploy.plugin.ts +0 -83
- package/src/regenerate.ts +0 -230
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-smoke.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/consumer-smoke.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACnG,O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YACpC,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;YACtB,GAAG,EAAE,OAAO,CAAC,YAAY;SAC1B,CAAC,CAAC;QACH,OAAO;YACL,EAAE,EAAE,KAAK,CAAC,IAAI,KAAK,CAAC;YACpB,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;iBAC1D,MAAM,CAAC,OAAO,CAAC;iBACf,IAAI,CAAC,IAAI,CAAC;SACd,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,MAAM,4BAA4B,CAChC,OAAO,CAAC,OAAO,EACf,YAAY,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAClC,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Release consumer surfaces: which profile specifiers a consumer imports
|
|
3
|
+
* directly, and the bundler/SSR proof for the ones a bare runtime cannot load.
|
|
4
|
+
*/
|
|
5
|
+
import type { ChildEnvRuntime } from "../../shared/runtime-execution.ts";
|
|
6
|
+
import type { RegistryReleaseSetPlan, RegistryReleaseWorkspacePackage } from "@vibesdotdev/registry";
|
|
7
|
+
import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
|
|
8
|
+
/**
|
|
9
|
+
* Vite config for the surface proof consumer; release packages are bundled for SSR.
|
|
10
|
+
*/
|
|
11
|
+
export declare function releaseConsumerViteConfig(internalPackageNames: readonly string[]): string;
|
|
12
|
+
/**
|
|
13
|
+
* One bare-runtime import batch: the runtime, owning profile roots and specifiers.
|
|
14
|
+
*/
|
|
15
|
+
export type ReleaseConsumerRootImportPlan = {
|
|
16
|
+
runtime: "node" | "bun";
|
|
17
|
+
profileRoots: string[];
|
|
18
|
+
importSpecifiers: string[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The subpaths a profile has DECLARED as framework surfaces — the ones a bare
|
|
22
|
+
* runtime cannot load. Read off the profile, never inferred from the specifier's
|
|
23
|
+
* text: a publisher may put a Svelte surface at `/ui`, or ship something at
|
|
24
|
+
* `/svelte-utils` that is plain JS, and the release proof has no business
|
|
25
|
+
* guessing either way from our own naming habits.
|
|
26
|
+
*
|
|
27
|
+
* One definition, because the bare-runtime plan and the installed surface proof
|
|
28
|
+
* must partition the specifier set between them — if they disagree, a specifier
|
|
29
|
+
* is either proven twice or not at all.
|
|
30
|
+
*/
|
|
31
|
+
export declare function releaseConsumerSurfaceSpecifiers(profile: RegistryReleaseSetPlan["profiles"][number]): ReadonlySet<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Binds every proof import to the runtime declared by its profile owner.
|
|
34
|
+
*
|
|
35
|
+
* Svelte surface specifiers are deliberately excluded here: their module graph
|
|
36
|
+
* reaches `.svelte` files, which no bare runtime can load (node throws
|
|
37
|
+
* ERR_UNKNOWN_FILE_EXTENSION, bun needs a registered plugin). They are proven
|
|
38
|
+
* by the stronger installed SvelteKit build + SSR render instead, which is the
|
|
39
|
+
* only place a component can actually be evaluated. Feeding them to the bare
|
|
40
|
+
* runtime import made the whole release proof fail on any package publishing a
|
|
41
|
+
* Svelte surface.
|
|
42
|
+
*
|
|
43
|
+
* The same specifier is intentionally exercised once per declared runtime.
|
|
44
|
+
*/
|
|
45
|
+
export declare function planReleaseConsumerRootImports(options: {
|
|
46
|
+
profiles: RegistryReleaseSetPlan["profiles"];
|
|
47
|
+
workspace: ReadonlyMap<string, RegistryReleaseWorkspacePackage>;
|
|
48
|
+
}): ReleaseConsumerRootImportPlan[];
|
|
49
|
+
/**
|
|
50
|
+
* Import every planned specifier from the installed consumer under its runtime.
|
|
51
|
+
*/
|
|
52
|
+
export declare function runReleaseConsumerRootImports(options: {
|
|
53
|
+
plans: readonly ReleaseConsumerRootImportPlan[];
|
|
54
|
+
consumerDir: string;
|
|
55
|
+
execution: RuntimeExecution;
|
|
56
|
+
/** The runtime child environments are composed from. */
|
|
57
|
+
runtime: ChildEnvRuntime;
|
|
58
|
+
}): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* The installed-surface harness a profile asks for. `sveltekit` is the default
|
|
61
|
+
* and the only one implemented; it is a DECLARED choice rather than an assumed
|
|
62
|
+
* one so a package built on this framework that publishes, say, a React surface
|
|
63
|
+
* gets a clear refusal instead of our SvelteKit scaffold written into its proof.
|
|
64
|
+
*/
|
|
65
|
+
export declare function releaseConsumerSurfaceProofKind(profile: RegistryReleaseSetPlan["profiles"][number]): "sveltekit";
|
|
66
|
+
/** True when any profile declares surfaces proven by the SvelteKit harness. */
|
|
67
|
+
export declare function releaseConsumerNeedsSvelteProof(profiles: RegistryReleaseSetPlan["profiles"]): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Build a SvelteKit consumer that imports every declared surface and renders
|
|
70
|
+
* every SSR probe, when any profile needs the Svelte proof. Returns the
|
|
71
|
+
* profiles' import specifiers.
|
|
72
|
+
*/
|
|
73
|
+
export declare function runReleaseConsumerSurfaceProof(options: {
|
|
74
|
+
plan: RegistryReleaseSetPlan;
|
|
75
|
+
consumerDir: string;
|
|
76
|
+
internalNames: ReadonlySet<string>;
|
|
77
|
+
execution: RuntimeExecution;
|
|
78
|
+
/** The runtime child environments are composed from. */
|
|
79
|
+
runtime: ChildEnvRuntime;
|
|
80
|
+
}): Promise<string[]>;
|
|
81
|
+
//# sourceMappingURL=consumer-surfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-surfaces.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/consumer-surfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAGzE,OAAO,KAAK,EACV,sBAA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