@vibesdotdev/infra-deploy 0.0.2 → 1.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +76 -12
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +48 -35
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +31 -21
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +26 -27
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +11 -11
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +15 -14
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +24 -17
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js +8 -3
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +164 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.js +557 -76
- package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -1
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts +49 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js +60 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts +30 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.js +167 -0
- package/dist/cli/db/infra-db.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts +6 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js +53 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js +50 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts +12 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js +70 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts +32 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js +39 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts +17 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js +66 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts +58 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js +72 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js +110 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js +47 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts +24 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.js +62 -0
- package/dist/cli/dns/resolve-dns-provider.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts +37 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js +45 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts +15 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts +29 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js +35 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts +19 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js +73 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js +50 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts +16 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js +81 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts +40 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js +49 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts +25 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js +74 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js.map +1 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/infra-deploy.cli-group.descriptor.js +1 -1
- package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -1
- package/dist/cli/infra.cli-group.descriptor.d.ts +7 -7
- package/dist/cli/infra.cli-group.descriptor.js +1 -1
- package/dist/cli/infra.cli-group.descriptor.js.map +1 -1
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts +26 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js +204 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +40 -30
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +7 -3
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +35 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js +202 -20
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +113 -35
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js +87 -3
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +61 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.js +1160 -111
- package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/stream-worker-tail.d.ts +7 -2
- package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -1
- package/dist/cli/logs/stream-worker-tail.js +280 -113
- package/dist/cli/logs/stream-worker-tail.js.map +1 -1
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts +62 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js +79 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts +8 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js +105 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts +34 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js +42 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts +13 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js +82 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +80 -23
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +48 -16
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +47 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +532 -351
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -1
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts +28 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js +34 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts +12 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js +134 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js +1 -1
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -1
- package/dist/cli/npm/mirror-registry-artifacts.d.ts +64 -0
- package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
- package/dist/cli/npm/mirror-registry-artifacts.js +114 -0
- package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
- package/dist/cli/npm/publish/command-options.d.ts +24 -0
- package/dist/cli/npm/publish/command-options.d.ts.map +1 -0
- package/dist/cli/npm/publish/command-options.js +85 -0
- package/dist/cli/npm/publish/command-options.js.map +1 -0
- package/dist/cli/npm/publish/concurrency.d.ts +19 -0
- package/dist/cli/npm/publish/concurrency.d.ts.map +1 -0
- package/dist/cli/npm/publish/concurrency.js +60 -0
- package/dist/cli/npm/publish/concurrency.js.map +1 -0
- package/dist/cli/npm/publish/consumer-smoke.d.ts +83 -0
- package/dist/cli/npm/publish/consumer-smoke.d.ts.map +1 -0
- package/dist/cli/npm/publish/consumer-smoke.js +371 -0
- package/dist/cli/npm/publish/consumer-smoke.js.map +1 -0
- package/dist/cli/npm/publish/consumer-surfaces.d.ts +81 -0
- package/dist/cli/npm/publish/consumer-surfaces.d.ts.map +1 -0
- package/dist/cli/npm/publish/consumer-surfaces.js +199 -0
- package/dist/cli/npm/publish/consumer-surfaces.js.map +1 -0
- package/dist/cli/npm/publish/external-requirements.d.ts +171 -0
- package/dist/cli/npm/publish/external-requirements.d.ts.map +1 -0
- package/dist/cli/npm/publish/external-requirements.js +365 -0
- package/dist/cli/npm/publish/external-requirements.js.map +1 -0
- package/dist/cli/npm/publish/forge-source-identity.d.ts +64 -0
- package/dist/cli/npm/publish/forge-source-identity.d.ts.map +1 -0
- package/dist/cli/npm/publish/forge-source-identity.js +201 -0
- package/dist/cli/npm/publish/forge-source-identity.js.map +1 -0
- package/dist/cli/npm/publish/fs-paths.d.ts +25 -0
- package/dist/cli/npm/publish/fs-paths.d.ts.map +1 -0
- package/dist/cli/npm/publish/fs-paths.js +87 -0
- package/dist/cli/npm/publish/fs-paths.js.map +1 -0
- package/dist/cli/npm/publish/lease-preflight-answer.d.ts +17 -0
- package/dist/cli/npm/publish/lease-preflight-answer.d.ts.map +1 -0
- package/dist/cli/npm/publish/lease-preflight-answer.js +35 -0
- package/dist/cli/npm/publish/lease-preflight-answer.js.map +1 -0
- package/dist/cli/npm/publish/lease-preflight.d.ts +92 -0
- package/dist/cli/npm/publish/lease-preflight.d.ts.map +1 -0
- package/dist/cli/npm/publish/lease-preflight.js +205 -0
- package/dist/cli/npm/publish/lease-preflight.js.map +1 -0
- package/dist/cli/npm/publish/managed-lease.d.ts +110 -0
- package/dist/cli/npm/publish/managed-lease.d.ts.map +1 -0
- package/dist/cli/npm/publish/managed-lease.js +191 -0
- package/dist/cli/npm/publish/managed-lease.js.map +1 -0
- package/dist/cli/npm/publish/npm-exec.d.ts +148 -0
- package/dist/cli/npm/publish/npm-exec.d.ts.map +1 -0
- package/dist/cli/npm/publish/npm-exec.js +311 -0
- package/dist/cli/npm/publish/npm-exec.js.map +1 -0
- package/dist/cli/npm/publish/package-artifact.d.ts +107 -0
- package/dist/cli/npm/publish/package-artifact.d.ts.map +1 -0
- package/dist/cli/npm/publish/package-artifact.js +418 -0
- package/dist/cli/npm/publish/package-artifact.js.map +1 -0
- package/dist/cli/npm/publish/platform-registry.d.ts +76 -0
- package/dist/cli/npm/publish/platform-registry.d.ts.map +1 -0
- package/dist/cli/npm/publish/platform-registry.js +324 -0
- package/dist/cli/npm/publish/platform-registry.js.map +1 -0
- package/dist/cli/npm/publish/proof-external-closure.d.ts +139 -0
- package/dist/cli/npm/publish/proof-external-closure.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-external-closure.js +339 -0
- package/dist/cli/npm/publish/proof-external-closure.js.map +1 -0
- package/dist/cli/npm/publish/proof-installed-graph.d.ts +26 -0
- package/dist/cli/npm/publish/proof-installed-graph.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-installed-graph.js +229 -0
- package/dist/cli/npm/publish/proof-installed-graph.js.map +1 -0
- package/dist/cli/npm/publish/proof-registry.d.ts +74 -0
- package/dist/cli/npm/publish/proof-registry.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-registry.js +335 -0
- package/dist/cli/npm/publish/proof-registry.js.map +1 -0
- package/dist/cli/npm/publish/proof-source-credentials.d.ts +42 -0
- package/dist/cli/npm/publish/proof-source-credentials.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-source-credentials.js +129 -0
- package/dist/cli/npm/publish/proof-source-credentials.js.map +1 -0
- package/dist/cli/npm/publish/publish-package.d.ts +66 -0
- package/dist/cli/npm/publish/publish-package.d.ts.map +1 -0
- package/dist/cli/npm/publish/publish-package.js +544 -0
- package/dist/cli/npm/publish/publish-package.js.map +1 -0
- package/dist/cli/npm/publish/publisher-manifest.d.ts +173 -0
- package/dist/cli/npm/publish/publisher-manifest.d.ts.map +1 -0
- package/dist/cli/npm/publish/publisher-manifest.js +79 -0
- package/dist/cli/npm/publish/publisher-manifest.js.map +1 -0
- package/dist/cli/npm/publish/rc-major-exception.d.ts +20 -0
- package/dist/cli/npm/publish/rc-major-exception.d.ts.map +1 -0
- package/dist/cli/npm/publish/rc-major-exception.js +46 -0
- package/dist/cli/npm/publish/rc-major-exception.js.map +1 -0
- package/dist/cli/npm/publish/registry-availability.d.ts +150 -0
- package/dist/cli/npm/publish/registry-availability.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-availability.js +570 -0
- package/dist/cli/npm/publish/registry-availability.js.map +1 -0
- package/dist/cli/npm/publish/registry-credentials.d.ts +108 -0
- package/dist/cli/npm/publish/registry-credentials.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-credentials.js +290 -0
- package/dist/cli/npm/publish/registry-credentials.js.map +1 -0
- package/dist/cli/npm/publish/registry-reads.d.ts +42 -0
- package/dist/cli/npm/publish/registry-reads.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-reads.js +164 -0
- package/dist/cli/npm/publish/registry-reads.js.map +1 -0
- package/dist/cli/npm/publish/release-build.d.ts +46 -0
- package/dist/cli/npm/publish/release-build.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-build.js +140 -0
- package/dist/cli/npm/publish/release-build.js.map +1 -0
- package/dist/cli/npm/publish/release-consumer-proof.d.ts +70 -0
- package/dist/cli/npm/publish/release-consumer-proof.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-consumer-proof.js +397 -0
- package/dist/cli/npm/publish/release-consumer-proof.js.map +1 -0
- package/dist/cli/npm/publish/release-executor.d.ts +46 -0
- package/dist/cli/npm/publish/release-executor.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-executor.js +181 -0
- package/dist/cli/npm/publish/release-executor.js.map +1 -0
- package/dist/cli/npm/publish/release-grants.client.impl.d.ts +10 -0
- package/dist/cli/npm/publish/release-grants.client.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-grants.client.impl.js +63 -0
- package/dist/cli/npm/publish/release-grants.client.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.client.d.ts +39 -0
- package/dist/cli/npm/publish/release-jobs.client.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.client.js +124 -0
- package/dist/cli/npm/publish/release-jobs.client.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts +20 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.js +82 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.impl.d.ts +15 -0
- package/dist/cli/npm/publish/release-jobs.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.impl.js +42 -0
- package/dist/cli/npm/publish/release-jobs.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-lock.d.ts +143 -0
- package/dist/cli/npm/publish/release-lock.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-lock.js +371 -0
- package/dist/cli/npm/publish/release-lock.js.map +1 -0
- package/dist/cli/npm/publish/release-phases.d.ts +93 -0
- package/dist/cli/npm/publish/release-phases.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-phases.js +175 -0
- package/dist/cli/npm/publish/release-phases.js.map +1 -0
- package/dist/cli/npm/publish/release-plan.d.ts +65 -0
- package/dist/cli/npm/publish/release-plan.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-plan.js +178 -0
- package/dist/cli/npm/publish/release-plan.js.map +1 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.d.ts +16 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.js +71 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-publish.job.impl.d.ts +18 -0
- package/dist/cli/npm/publish/release-publish.job.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-publish.job.impl.js +295 -0
- package/dist/cli/npm/publish/release-publish.job.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-workspace.d.ts +95 -0
- package/dist/cli/npm/publish/release-workspace.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-workspace.js +243 -0
- package/dist/cli/npm/publish/release-workspace.js.map +1 -0
- package/dist/cli/npm/publish/sensitive-temp.d.ts +90 -0
- package/dist/cli/npm/publish/sensitive-temp.d.ts.map +1 -0
- package/dist/cli/npm/publish/sensitive-temp.js +351 -0
- package/dist/cli/npm/publish/sensitive-temp.js.map +1 -0
- package/dist/cli/npm/publish/source-snapshot.d.ts +91 -0
- package/dist/cli/npm/publish/source-snapshot.d.ts.map +1 -0
- package/dist/cli/npm/publish/source-snapshot.js +245 -0
- package/dist/cli/npm/publish/source-snapshot.js.map +1 -0
- package/dist/cli/npm/publish/types.d.ts +69 -0
- package/dist/cli/npm/publish/types.d.ts.map +1 -0
- package/dist/cli/npm/publish/types.js +2 -0
- package/dist/cli/npm/publish/types.js.map +1 -0
- package/dist/cli/npm/publish/workspace-discovery.d.ts +48 -0
- package/dist/cli/npm/publish/workspace-discovery.d.ts.map +1 -0
- package/dist/cli/npm/publish/workspace-discovery.js +313 -0
- package/dist/cli/npm/publish/workspace-discovery.js.map +1 -0
- package/dist/cli/npm/put-attested-packument.d.ts +96 -0
- package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
- package/dist/cli/npm/put-attested-packument.js +240 -0
- package/dist/cli/npm/put-attested-packument.js.map +1 -0
- package/dist/cli/npm/reconcile-latest.d.ts +55 -0
- package/dist/cli/npm/reconcile-latest.d.ts.map +1 -0
- package/dist/cli/npm/reconcile-latest.js +59 -0
- package/dist/cli/npm/reconcile-latest.js.map +1 -0
- package/dist/cli/observability/blind-spots.d.ts +10 -0
- package/dist/cli/observability/blind-spots.d.ts.map +1 -0
- package/dist/cli/observability/blind-spots.js +19 -0
- package/dist/cli/observability/blind-spots.js.map +1 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts +6 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js +75 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js.map +1 -0
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +42 -21
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +3 -3
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +3 -2
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js +14 -14
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +25 -17
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +2 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js +30 -23
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -1
- package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js +1 -1
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -1
- package/dist/cli/plugin.d.ts +3 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +45 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts +38 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js +43 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts +117 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js +678 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js.map +1 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +37 -23
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +7 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +2 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +100 -25
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -1
- package/dist/cli/release/cli/latest-manifest.d.ts +148 -0
- package/dist/cli/release/cli/latest-manifest.d.ts.map +1 -0
- package/dist/cli/release/cli/latest-manifest.js +152 -0
- package/dist/cli/release/cli/latest-manifest.js.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js +49 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts +16 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js +52 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js.map +1 -0
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +2 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js +21 -15
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -1
- package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js +1 -1
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -1
- package/dist/cli/run/deploy-smoke.d.ts +57 -0
- package/dist/cli/run/deploy-smoke.d.ts.map +1 -0
- package/dist/cli/run/deploy-smoke.js +251 -0
- package/dist/cli/run/deploy-smoke.js.map +1 -0
- package/dist/cli/run/deployment-marker.d.ts +74 -0
- package/dist/cli/run/deployment-marker.d.ts.map +1 -0
- package/dist/cli/run/deployment-marker.js +237 -0
- package/dist/cli/run/deployment-marker.js.map +1 -0
- package/dist/cli/run/deployment-provider.d.ts +56 -0
- package/dist/cli/run/deployment-provider.d.ts.map +1 -0
- package/dist/cli/run/deployment-provider.js +295 -0
- package/dist/cli/run/deployment-provider.js.map +1 -0
- package/dist/cli/run/deployment-run-ledger.d.ts +72 -0
- package/dist/cli/run/deployment-run-ledger.d.ts.map +1 -0
- package/dist/cli/run/deployment-run-ledger.js +164 -0
- package/dist/cli/run/deployment-run-ledger.js.map +1 -0
- package/dist/cli/run/git-source-identity.d.ts +21 -0
- package/dist/cli/run/git-source-identity.d.ts.map +1 -0
- package/dist/cli/run/git-source-identity.js +73 -0
- package/dist/cli/run/git-source-identity.js.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts +403 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.js +589 -0
- package/dist/cli/run/immutable-deployment-release.program.js.map +1 -0
- package/dist/cli/run/immutable-deployment-workspace.d.ts +39 -0
- package/dist/cli/run/immutable-deployment-workspace.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-workspace.js +525 -0
- package/dist/cli/run/immutable-deployment-workspace.js.map +1 -0
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +80 -23
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +50 -8
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +46 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js +464 -226
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
- package/dist/cli/shared/build-workspace-artifacts.d.ts +147 -0
- package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
- package/dist/cli/shared/build-workspace-artifacts.js +2013 -0
- package/dist/cli/shared/build-workspace-artifacts.js.map +1 -0
- package/dist/cli/shared/credential-source.d.ts +3 -0
- package/dist/cli/shared/credential-source.d.ts.map +1 -0
- package/dist/cli/shared/credential-source.js +19 -0
- package/dist/cli/shared/credential-source.js.map +1 -0
- package/dist/cli/shared/discover-deployments.d.ts +46 -5
- package/dist/cli/shared/discover-deployments.d.ts.map +1 -1
- package/dist/cli/shared/discover-deployments.js +167 -41
- package/dist/cli/shared/discover-deployments.js.map +1 -1
- package/dist/cli/shared/infer-apex-zone.d.ts +18 -0
- package/dist/cli/shared/infer-apex-zone.d.ts.map +1 -0
- package/dist/cli/shared/infer-apex-zone.js +75 -0
- package/dist/cli/shared/infer-apex-zone.js.map +1 -0
- package/dist/cli/shared/option-strings.d.ts +2 -0
- package/dist/cli/shared/option-strings.d.ts.map +1 -0
- package/dist/cli/shared/option-strings.js +13 -0
- package/dist/cli/shared/option-strings.js.map +1 -0
- package/dist/cli/shared/repository-collection.d.ts +42 -0
- package/dist/cli/shared/repository-collection.d.ts.map +1 -0
- package/dist/cli/shared/repository-collection.js +111 -0
- package/dist/cli/shared/repository-collection.js.map +1 -0
- package/dist/cli/shared/runtime-execution.d.ts +78 -0
- package/dist/cli/shared/runtime-execution.d.ts.map +1 -0
- package/dist/cli/shared/runtime-execution.js +182 -0
- package/dist/cli/shared/runtime-execution.js.map +1 -0
- package/dist/cli/shared/workspace-artifact-lock.d.ts +17 -0
- package/dist/cli/shared/workspace-artifact-lock.d.ts.map +1 -0
- package/dist/cli/shared/workspace-artifact-lock.js +37 -0
- package/dist/cli/shared/workspace-artifact-lock.js.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts +238 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.js +410 -0
- package/dist/cli/workers/doks-worker-runtime.js.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts +28 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js +28 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.js +75 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts +31 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js +32 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.js +67 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts +48 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js +60 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.js +74 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.js +12 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.js.map +1 -0
- package/dist/config-loader.d.ts +60 -13
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/config-loader.js +371 -104
- package/dist/config-loader.js.map +1 -1
- package/dist/declared-provider.d.ts +27 -0
- package/dist/declared-provider.d.ts.map +1 -0
- package/dist/declared-provider.js +46 -0
- package/dist/declared-provider.js.map +1 -0
- package/dist/deployment-collisions.d.ts +55 -0
- package/dist/deployment-collisions.d.ts.map +1 -0
- package/dist/deployment-collisions.js +70 -0
- package/dist/deployment-collisions.js.map +1 -0
- package/dist/deployment-environment.d.ts +57 -0
- package/dist/deployment-environment.d.ts.map +1 -0
- package/dist/deployment-environment.js +198 -0
- package/dist/deployment-environment.js.map +1 -0
- package/dist/deployment-settings.d.ts +27 -0
- package/dist/deployment-settings.d.ts.map +1 -0
- package/dist/deployment-settings.js +52 -0
- package/dist/deployment-settings.js.map +1 -0
- package/dist/deployment.config.descriptor.d.ts +59 -0
- package/dist/deployment.config.descriptor.d.ts.map +1 -0
- package/dist/deployment.config.descriptor.js +54 -0
- package/dist/deployment.config.descriptor.js.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts +29 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js +35 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts +12 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js +12 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js.map +1 -0
- package/dist/index.d.ts +11 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/infra-deploy.plugin.d.ts +2 -2
- package/dist/infra-deploy.plugin.d.ts.map +1 -1
- package/dist/infra-deploy.plugin.js +63 -20
- package/dist/infra-deploy.plugin.js.map +1 -1
- package/dist/logger.d.ts +10 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +11 -0
- package/dist/logger.js.map +1 -0
- package/dist/migrations/migrate-workspace.d.ts +21 -0
- package/dist/migrations/migrate-workspace.d.ts.map +1 -0
- package/dist/migrations/migrate-workspace.js +83 -0
- package/dist/migrations/migrate-workspace.js.map +1 -0
- package/dist/migrations/run-migrate.d.ts +15 -0
- package/dist/migrations/run-migrate.d.ts.map +1 -0
- package/dist/migrations/run-migrate.js +314 -0
- package/dist/migrations/run-migrate.js.map +1 -0
- package/dist/regenerate.d.ts +52 -30
- package/dist/regenerate.d.ts.map +1 -1
- package/dist/regenerate.js +176 -148
- package/dist/regenerate.js.map +1 -1
- package/dist/runtime-execution.d.ts +5 -0
- package/dist/runtime-execution.d.ts.map +1 -0
- package/dist/runtime-execution.js +12 -0
- package/dist/runtime-execution.js.map +1 -0
- package/dist/schemas/migrate.d.ts +110 -0
- package/dist/schemas/migrate.d.ts.map +1 -0
- package/dist/schemas/migrate.js +55 -0
- package/dist/schemas/migrate.js.map +1 -0
- package/dist/schemas/proof-registry.d.ts +25 -0
- package/dist/schemas/proof-registry.d.ts.map +1 -0
- package/dist/schemas/proof-registry.js +24 -0
- package/dist/schemas/proof-registry.js.map +1 -0
- package/dist/schemas/release-grants.d.ts +7 -0
- package/dist/schemas/release-grants.d.ts.map +1 -0
- package/dist/schemas/release-grants.js +6 -0
- package/dist/schemas/release-grants.js.map +1 -0
- package/dist/schemas/release-jobs.d.ts +444 -0
- package/dist/schemas/release-jobs.d.ts.map +1 -0
- package/dist/schemas/release-jobs.js +204 -0
- package/dist/schemas/release-jobs.js.map +1 -0
- package/dist/schemas/service-release.d.ts +15 -0
- package/dist/schemas/service-release.d.ts.map +1 -0
- package/dist/schemas/service-release.js +13 -0
- package/dist/schemas/service-release.js.map +1 -0
- package/dist/schemas/worker-logs.d.ts +42 -0
- package/dist/schemas/worker-logs.d.ts.map +1 -0
- package/dist/schemas/worker-logs.js +29 -0
- package/dist/schemas/worker-logs.js.map +1 -0
- package/dist/storage/deployment-runs.schema.d.ts +199 -0
- package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
- package/dist/storage/deployment-runs.schema.js +61 -0
- package/dist/storage/deployment-runs.schema.js.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
- package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
- package/package.json +107 -38
- package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
- package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
- package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
- package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
- package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
- package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
- package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
- package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
- package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
- package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
- package/src/cli/infra.cli-group.descriptor.ts +0 -11
- package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
- package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
- package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
- package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
- package/src/cli/logs/stream-worker-tail.ts +0 -202
- package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
- package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
- package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
- package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
- package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
- package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
- package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
- package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
- package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
- package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
- package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
- package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
- package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
- package/src/cli/shared/discover-deployments.ts +0 -127
- package/src/config-loader.ts +0 -179
- package/src/index.ts +0 -11
- package/src/infra-deploy.plugin.ts +0 -83
- package/src/regenerate.ts +0 -230
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import { resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
2
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
import { isSourceFilePattern, publishAccessForManifest, registryCanonicalGzipCommand, registryPublishBuildPlan, } from "@vibesdotdev/registry";
|
|
5
|
+
import { stageRegistryPublishPackage } from "@vibesdotdev/registry/publish-stage";
|
|
6
|
+
import { runRuntimeCommand, registryTokenEnv, } from "../../shared/runtime-execution.js";
|
|
7
|
+
import { repositoryUrl } from "./forge-source-identity.js";
|
|
8
|
+
import { pathExists, readPackageJson, requirePathFileURL } from "./fs-paths.js";
|
|
9
|
+
import { newestTarball, writeIsolatedBunfig } from "./npm-exec.js";
|
|
10
|
+
import { readProofArtifactManifest } from "./proof-registry.js";
|
|
11
|
+
import { writeFreshReleaseConsumerSourceNpmrc } from "./proof-source-credentials.js";
|
|
12
|
+
import { PUBLIC_NPM_REGISTRY } from "./registry-credentials.js";
|
|
13
|
+
import { resolvePublishRegistry } from "./registry-credentials.js";
|
|
14
|
+
/**
|
|
15
|
+
* The one constructor for sealed publish metadata. The seal and the live
|
|
16
|
+
* publish both build through it, so the sealed-metadata comparison sees the
|
|
17
|
+
* same key order: access and tag sit between registry and provenance, and are
|
|
18
|
+
* omitted when absent.
|
|
19
|
+
*/
|
|
20
|
+
export function sealedPublishMetadata(parts) {
|
|
21
|
+
const { registry, access, tag, provenance } = parts;
|
|
22
|
+
return access
|
|
23
|
+
? tag
|
|
24
|
+
? { registry, access, tag, provenance }
|
|
25
|
+
: { registry, access, provenance }
|
|
26
|
+
: tag
|
|
27
|
+
? { registry, tag, provenance }
|
|
28
|
+
: { registry, provenance };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Copy a package into `stageDir` and write its canonical publish manifest.
|
|
32
|
+
* `version` stamps the assigned release version into the STAGED manifest only;
|
|
33
|
+
* the source manifest is never modified. Staging is owned by
|
|
34
|
+
* `@vibesdotdev/registry`, the same owner Forge CI packs through.
|
|
35
|
+
*/
|
|
36
|
+
export async function stagePackageForPublish(options) {
|
|
37
|
+
const { runtime, ...stage } = options;
|
|
38
|
+
await stageRegistryPublishPackage(runtime, stage);
|
|
39
|
+
}
|
|
40
|
+
function collectExportTargets(value, targets) {
|
|
41
|
+
const text = z.string().safeParse(value);
|
|
42
|
+
if (text.success) {
|
|
43
|
+
if (text.data.startsWith("./"))
|
|
44
|
+
targets.add(text.data.slice(2));
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const list = z.array(z.unknown()).safeParse(value);
|
|
48
|
+
if (list.success) {
|
|
49
|
+
for (const entry of list.data)
|
|
50
|
+
collectExportTargets(entry, targets);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const record = z.record(z.string(), z.unknown()).safeParse(value);
|
|
54
|
+
if (!record.success)
|
|
55
|
+
return;
|
|
56
|
+
for (const entry of Object.values(record.data))
|
|
57
|
+
collectExportTargets(entry, targets);
|
|
58
|
+
}
|
|
59
|
+
function wildcardMatches(pattern, candidate) {
|
|
60
|
+
const escaped = pattern
|
|
61
|
+
.replace(/[.+?^${}()|[\]\\]/g, "\\$&")
|
|
62
|
+
.replaceAll("*", ".*");
|
|
63
|
+
return new RegExp(`^${escaped}$`).test(candidate);
|
|
64
|
+
}
|
|
65
|
+
const TS_SPECIFIER_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts"];
|
|
66
|
+
// Matches the specifier string literal in `from '…'`, `require('…')`, and
|
|
67
|
+
// `import('…')` — this covers `import x from '…'`, `import '…'` (side
|
|
68
|
+
// effect), `export … from '…'`, `export * from '…'`, dynamic `import()`,
|
|
69
|
+
// and CommonJS `require()`.
|
|
70
|
+
const TS_SPECIFIER_RE = /\b(?:from\s+|import\s*\(\s*|require\s*\(\s*|import\s+)(['"])(\.\.?\/[^'"]+)\1/g;
|
|
71
|
+
/**
|
|
72
|
+
* Blank out `//` and `/* */` comments and the *contents* of template
|
|
73
|
+
* literals, leaving real single/double-quoted string literals untouched, so
|
|
74
|
+
* a doc-string code example or a JSDoc `@example` fence never counts as a
|
|
75
|
+
* real specifier. A false positive here is acceptable; a false negative is
|
|
76
|
+
* not, so genuine quoted specifiers are always preserved verbatim.
|
|
77
|
+
*/
|
|
78
|
+
const SPECIFIER_POSITION_RE = /(?:\bfrom|\bimport|\bimport\s*\(|\brequire\s*\()\s*$/;
|
|
79
|
+
function maskNonCode(text) {
|
|
80
|
+
let out = "";
|
|
81
|
+
let i = 0;
|
|
82
|
+
const n = text.length;
|
|
83
|
+
let state = "code";
|
|
84
|
+
while (i < n) {
|
|
85
|
+
const ch = text[i];
|
|
86
|
+
const next = text[i + 1];
|
|
87
|
+
if (state === "code") {
|
|
88
|
+
if (ch === "/" && next === "/") {
|
|
89
|
+
state = "line-comment";
|
|
90
|
+
out += " ";
|
|
91
|
+
i += 2;
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if (ch === "/" && next === "*") {
|
|
95
|
+
state = "block-comment";
|
|
96
|
+
out += " ";
|
|
97
|
+
i += 2;
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if (ch === "`") {
|
|
101
|
+
state = "template";
|
|
102
|
+
out += " ";
|
|
103
|
+
i += 1;
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
if (ch === "'" || ch === '"') {
|
|
107
|
+
const quote = ch;
|
|
108
|
+
let j = i + 1;
|
|
109
|
+
let literal = quote;
|
|
110
|
+
while (j < n) {
|
|
111
|
+
if (text[j] === "\\" && j + 1 < n) {
|
|
112
|
+
literal += text[j] + text[j + 1];
|
|
113
|
+
j += 2;
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if (text[j] === quote) {
|
|
117
|
+
literal += quote;
|
|
118
|
+
j += 1;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
if (text[j] === "\n")
|
|
122
|
+
break;
|
|
123
|
+
literal += text[j];
|
|
124
|
+
j += 1;
|
|
125
|
+
}
|
|
126
|
+
// A specifier is a literal in specifier position; any other string's
|
|
127
|
+
// contents (a rule message quoting `import('./x.ts')`) are not code.
|
|
128
|
+
out += SPECIFIER_POSITION_RE.test(out)
|
|
129
|
+
? literal
|
|
130
|
+
: quote + " ".repeat(literal.length - 1);
|
|
131
|
+
i = j;
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
out += ch;
|
|
135
|
+
i += 1;
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if (state === "line-comment") {
|
|
139
|
+
if (ch === "\n") {
|
|
140
|
+
state = "code";
|
|
141
|
+
out += "\n";
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
out += " ";
|
|
145
|
+
}
|
|
146
|
+
i += 1;
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
if (state === "block-comment") {
|
|
150
|
+
if (ch === "*" && next === "/") {
|
|
151
|
+
state = "code";
|
|
152
|
+
out += " ";
|
|
153
|
+
i += 2;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
out += ch === "\n" ? "\n" : " ";
|
|
157
|
+
i += 1;
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
// state === 'template'
|
|
161
|
+
if (ch === "\\" && i + 1 < n) {
|
|
162
|
+
out += " ";
|
|
163
|
+
i += 2;
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
if (ch === "`") {
|
|
167
|
+
state = "code";
|
|
168
|
+
out += " ";
|
|
169
|
+
i += 1;
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
out += ch === "\n" ? "\n" : " ";
|
|
173
|
+
i += 1;
|
|
174
|
+
}
|
|
175
|
+
return out;
|
|
176
|
+
}
|
|
177
|
+
function findTsImportSpecifiers(content) {
|
|
178
|
+
const masked = maskNonCode(content);
|
|
179
|
+
const found = [];
|
|
180
|
+
TS_SPECIFIER_RE.lastIndex = 0;
|
|
181
|
+
let match;
|
|
182
|
+
while ((match = TS_SPECIFIER_RE.exec(masked))) {
|
|
183
|
+
const specifier = match[2];
|
|
184
|
+
if (!specifier.startsWith("./") && !specifier.startsWith("../"))
|
|
185
|
+
continue;
|
|
186
|
+
if (TS_SPECIFIER_EXTENSIONS.some((ext) => specifier.endsWith(ext)))
|
|
187
|
+
found.push(specifier);
|
|
188
|
+
}
|
|
189
|
+
return found;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Verify a packed file list against the manifest: every export/main target is
|
|
193
|
+
* packed, no source, test or TypeScript specifier ships, and declared files staged.
|
|
194
|
+
*/
|
|
195
|
+
export async function verifyPackedPackage(pkg, files, readFileContent, sourceDeclaration) {
|
|
196
|
+
const forbidden = files.filter((file) => /(?:^src\/|(?:^|\/)(?:__tests__\/|SPEC\.md$|tsconfig(?:\.[^/]*)?\.json$)|\.tsbuildinfo$|(?:^|\/)\.build-ok\.json$|\.(?:test|spec)\.[cm]?[jt]sx?$)/i.test(file));
|
|
197
|
+
if (forbidden.length > 0) {
|
|
198
|
+
throw new Error(`${pkg.name ?? "package"}@${pkg.version ?? "unknown"} packs development-only files: ${forbidden.join(", ")}`);
|
|
199
|
+
}
|
|
200
|
+
const targets = new Set();
|
|
201
|
+
if (pkg.main?.startsWith("./"))
|
|
202
|
+
targets.add(pkg.main.slice(2));
|
|
203
|
+
if (pkg.types?.startsWith("./"))
|
|
204
|
+
targets.add(pkg.types.slice(2));
|
|
205
|
+
collectExportTargets(pkg.exports, targets);
|
|
206
|
+
const missing = [...targets].filter((target) => target.includes("*")
|
|
207
|
+
? !files.some((file) => wildcardMatches(target, file))
|
|
208
|
+
: !files.includes(target));
|
|
209
|
+
if (missing.length > 0) {
|
|
210
|
+
throw new Error(`${pkg.name ?? "package"}@${pkg.version ?? "unknown"} declares unpacked export artifacts: ${missing.join(", ")}`);
|
|
211
|
+
}
|
|
212
|
+
// Staging rewrites the owner's `files` declaration (dropping `src`, keeping
|
|
213
|
+
// the rest) before packing; this is a second, independent check that the
|
|
214
|
+
// rewrite never silently dropped a declared entry that actually exists in
|
|
215
|
+
// the staged tree. A negation pattern (`!dist/**/*.test.js`) or a glob is
|
|
216
|
+
// not a concrete entry to require, so only literal path-shaped declarations
|
|
217
|
+
// are checked.
|
|
218
|
+
if (sourceDeclaration?.files) {
|
|
219
|
+
const stagedFiles = new Set(pkg.files ?? []);
|
|
220
|
+
const dropped = [];
|
|
221
|
+
for (const entry of sourceDeclaration.files) {
|
|
222
|
+
if (entry.startsWith("!") || entry.includes("*"))
|
|
223
|
+
continue;
|
|
224
|
+
// `src` is the one entry staging drops on purpose (dist is authoritative);
|
|
225
|
+
// the same predicate the rewrite uses decides it, never a second copy.
|
|
226
|
+
if (isSourceFilePattern(entry))
|
|
227
|
+
continue;
|
|
228
|
+
const normalized = entry.replace(/^\.\//, "");
|
|
229
|
+
if (stagedFiles.has(entry) ||
|
|
230
|
+
stagedFiles.has(normalized) ||
|
|
231
|
+
stagedFiles.has(`./${normalized}`)) {
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
if (!(await sourceDeclaration.entryStaged(entry)))
|
|
235
|
+
continue;
|
|
236
|
+
dropped.push(entry);
|
|
237
|
+
}
|
|
238
|
+
if (dropped.length > 0) {
|
|
239
|
+
throw new Error(`${pkg.name ?? "package"}@${pkg.version ?? "unknown"} staging drops source-declared files entries that exist: ${dropped.join(", ")}`);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
// A published dist must never import a `.ts` specifier — consumers resolve
|
|
243
|
+
// the compiled `.js`, and a raw TS specifier throws at runtime (proven for
|
|
244
|
+
// @vibesdotdev/bridge and @vibesdotdev/platform: vite's SSR build fails).
|
|
245
|
+
// Fail closed: read every packed JS file's content and reject any relative
|
|
246
|
+
// import/export/require specifier that still ends in a TS extension.
|
|
247
|
+
const scriptFiles = files.filter((file) => /\.(?:js|mjs|cjs)$/i.test(file) && !file.endsWith(".d.ts"));
|
|
248
|
+
const specifierOffenses = [];
|
|
249
|
+
for (const file of scriptFiles) {
|
|
250
|
+
const content = await readFileContent(file);
|
|
251
|
+
for (const specifier of findTsImportSpecifiers(content)) {
|
|
252
|
+
specifierOffenses.push(`${file}: ${specifier}`);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
if (specifierOffenses.length > 0) {
|
|
256
|
+
throw new Error(`${pkg.name ?? "package"}@${pkg.version ?? "unknown"} ships .ts import specifiers: ${specifierOffenses.join(", ")}`);
|
|
257
|
+
}
|
|
258
|
+
return { verifiedFiles: files.length, verifiedExports: targets.size };
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Build the package when it has a build script, then prove its built main loads
|
|
262
|
+
* under its declared runtime.
|
|
263
|
+
*/
|
|
264
|
+
export async function buildAndVerifyLoadable(options) {
|
|
265
|
+
const plan = registryPublishBuildPlan(options.pkg);
|
|
266
|
+
if (options.build !== false && plan.build) {
|
|
267
|
+
if (!options.quiet)
|
|
268
|
+
options.ui.info(`Building ${options.pkg.name}@${options.pkg.version}`);
|
|
269
|
+
const result = await runRuntimeCommand({
|
|
270
|
+
runtime: options.runtime,
|
|
271
|
+
execution: options.execution,
|
|
272
|
+
command: "bun",
|
|
273
|
+
env: await registryTokenEnv(options.runtime),
|
|
274
|
+
args: ["run", "build"],
|
|
275
|
+
cwd: options.packageDir,
|
|
276
|
+
onLine: options.quiet
|
|
277
|
+
? undefined
|
|
278
|
+
: (_stream, line) => options.ui.log(line),
|
|
279
|
+
});
|
|
280
|
+
if (result.code !== 0) {
|
|
281
|
+
throw new Error(`Build failed for ${options.pkg.name}@${options.pkg.version}`);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
if (!plan.main)
|
|
285
|
+
return;
|
|
286
|
+
const paths = await getRuntimePath(options.runtime);
|
|
287
|
+
const mainPath = paths.resolve(options.packageDir, plan.main);
|
|
288
|
+
if (!(await pathExists(options.runtime, mainPath))) {
|
|
289
|
+
throw new Error(`${options.pkg.name}@${options.pkg.version} main artifact does not exist: ${options.pkg.main}`);
|
|
290
|
+
}
|
|
291
|
+
const result = await runRuntimeCommand({
|
|
292
|
+
runtime: options.runtime,
|
|
293
|
+
execution: options.execution,
|
|
294
|
+
command: plan.loadRuntime ?? "node",
|
|
295
|
+
env: await registryTokenEnv(options.runtime),
|
|
296
|
+
args: [
|
|
297
|
+
"--input-type=module",
|
|
298
|
+
"--eval",
|
|
299
|
+
`import(${JSON.stringify(requirePathFileURL(paths, mainPath).href)})`,
|
|
300
|
+
],
|
|
301
|
+
cwd: options.packageDir,
|
|
302
|
+
onLine: options.quiet ? undefined : (_stream, line) => options.ui.log(line),
|
|
303
|
+
});
|
|
304
|
+
if (result.code !== 0) {
|
|
305
|
+
throw new Error(`Built main export is not loadable for ${options.pkg.name}@${options.pkg.version}`);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Build, stage (stamping `version` into the staged manifest), pack, verify and
|
|
310
|
+
* canonically gzip one package under `tempRoot`. Returns the tarball, its
|
|
311
|
+
* verification counts, the copy retained in `artifactDir` (if any) and the
|
|
312
|
+
* publish metadata read back from the staged manifest.
|
|
313
|
+
*/
|
|
314
|
+
export async function sealPackageArtifact(options) {
|
|
315
|
+
const { pkg, version, packageDir } = options;
|
|
316
|
+
// Refuse a manifest whose access disagrees with its tier before building it.
|
|
317
|
+
publishAccessForManifest(pkg);
|
|
318
|
+
const paths = await getRuntimePath(options.runtime);
|
|
319
|
+
const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
|
|
320
|
+
const packDir = paths.join(options.tempRoot, "pack");
|
|
321
|
+
const stageDir = paths.join(options.tempRoot, "stage");
|
|
322
|
+
await buildAndVerifyLoadable({
|
|
323
|
+
pkg,
|
|
324
|
+
packageDir,
|
|
325
|
+
execution: options.execution,
|
|
326
|
+
runtime: options.runtime,
|
|
327
|
+
quiet: options.quiet,
|
|
328
|
+
ui: options.ui,
|
|
329
|
+
build: options.build,
|
|
330
|
+
});
|
|
331
|
+
await files.mkdir(packDir, { recursive: true });
|
|
332
|
+
await stagePackageForPublish({
|
|
333
|
+
runtime: options.runtime,
|
|
334
|
+
packageDir,
|
|
335
|
+
stageDir,
|
|
336
|
+
bunPackWorkspaceRoot: options.tempRoot,
|
|
337
|
+
versions: options.versions,
|
|
338
|
+
version,
|
|
339
|
+
gitHead: options.gitHead,
|
|
340
|
+
provenance: options.workspaceProvenance,
|
|
341
|
+
});
|
|
342
|
+
const stagedPkg = await readPackageJson(options.runtime, stageDir);
|
|
343
|
+
const stagedProvenance = {
|
|
344
|
+
repository: repositoryUrl(stagedPkg) ?? "",
|
|
345
|
+
repositoryId: stagedPkg.vibes?.registry?.repositoryId ?? "",
|
|
346
|
+
directory: stagedPkg.vibes?.registry?.directory ?? "",
|
|
347
|
+
};
|
|
348
|
+
if (JSON.stringify(stagedProvenance) !==
|
|
349
|
+
JSON.stringify(options.workspaceProvenance)) {
|
|
350
|
+
throw new Error(`Staged publish provenance differs for ${pkg.name}@${version}`);
|
|
351
|
+
}
|
|
352
|
+
const publishMetadata = sealedPublishMetadata({
|
|
353
|
+
registry: resolvePublishRegistry(stagedPkg, options.registry),
|
|
354
|
+
access: publishAccessForManifest(stagedPkg),
|
|
355
|
+
tag: options.tag ?? stagedPkg.publishConfig?.tag,
|
|
356
|
+
provenance: stagedProvenance,
|
|
357
|
+
});
|
|
358
|
+
if (!options.quiet)
|
|
359
|
+
options.ui.info(`Packing ${pkg.name}@${version} from ${packageDir}`);
|
|
360
|
+
await writeIsolatedBunfig(options.runtime, options.tempRoot);
|
|
361
|
+
await writeFreshReleaseConsumerSourceNpmrc(options.npmEnv.NPM_CONFIG_USERCONFIG, options.sourceRegistry ?? { defaultRegistry: PUBLIC_NPM_REGISTRY }, options.runtime);
|
|
362
|
+
const packingLock = await runRuntimeCommand({
|
|
363
|
+
execution: options.execution, runtime: options.runtime, command: "bun",
|
|
364
|
+
args: ["install", "--lockfile-only", "--ignore-scripts"],
|
|
365
|
+
cwd: options.tempRoot, env: options.npmEnv,
|
|
366
|
+
});
|
|
367
|
+
if (packingLock.code !== 0)
|
|
368
|
+
throw new Error(`Bun packing lock preparation failed for ${pkg.name}@${version}`);
|
|
369
|
+
const packResult = await runRuntimeCommand({
|
|
370
|
+
execution: options.execution,
|
|
371
|
+
command: "bun",
|
|
372
|
+
args: ["pm", "pack", "--ignore-scripts", "--destination", packDir, "--quiet"],
|
|
373
|
+
runtime: options.runtime,
|
|
374
|
+
cwd: stageDir,
|
|
375
|
+
env: options.npmEnv,
|
|
376
|
+
onLine: options.quiet ? undefined : (_stream, line) => options.ui.log(line),
|
|
377
|
+
});
|
|
378
|
+
if (packResult.code !== 0)
|
|
379
|
+
throw new Error(`Bun packing failed for ${pkg.name}@${version}`);
|
|
380
|
+
const tarball = await newestTarball(options.runtime, packDir);
|
|
381
|
+
const packed = await runRuntimeCommand({
|
|
382
|
+
execution: options.execution, runtime: options.runtime, command: "tar",
|
|
383
|
+
args: ["-tzf", tarball], cwd: options.tempRoot, env: options.npmEnv,
|
|
384
|
+
});
|
|
385
|
+
if (packed.code !== 0)
|
|
386
|
+
throw new Error(`Packed file list is unreadable for ${pkg.name}@${version}`);
|
|
387
|
+
const packedFiles = packed.stdout.split(/\r?\n/).filter((file) => file.startsWith("package/") && !file.endsWith("/")).map((file) => file.slice("package/".length));
|
|
388
|
+
const packedManifest = await readProofArtifactManifest(options.execution, options.runtime, tarball);
|
|
389
|
+
if (packedManifest.name !== pkg.name || packedManifest.version !== version)
|
|
390
|
+
throw new Error(`Packed package identity differs for ${pkg.name}@${version}`);
|
|
391
|
+
for (const field of ["dependencies", "peerDependencies", "optionalDependencies"]) {
|
|
392
|
+
if (Object.values(packedManifest[field] ?? {}).some((selector) => selector.startsWith("workspace:")))
|
|
393
|
+
throw new Error(`Bun packing left workspace selectors in ${pkg.name}@${version}`);
|
|
394
|
+
}
|
|
395
|
+
const verification = await verifyPackedPackage(packedManifest, packedFiles, async (file) => z.string().parse(await files.readFile(paths.join(stageDir, file), "utf8")), {
|
|
396
|
+
files: pkg.files,
|
|
397
|
+
entryStaged: (entry) => pathExists(options.runtime, paths.join(stageDir, entry.replace(/^\.\//, ""))),
|
|
398
|
+
});
|
|
399
|
+
const canonicalized = await runRuntimeCommand({
|
|
400
|
+
runtime: options.runtime,
|
|
401
|
+
execution: options.execution,
|
|
402
|
+
command: "sh",
|
|
403
|
+
env: await registryTokenEnv(options.runtime),
|
|
404
|
+
args: ["-c", registryCanonicalGzipCommand(tarball)],
|
|
405
|
+
cwd: options.tempRoot,
|
|
406
|
+
});
|
|
407
|
+
if (canonicalized.code !== 0) {
|
|
408
|
+
throw new Error(`Canonical gzip packaging failed for ${pkg.name}@${version}`);
|
|
409
|
+
}
|
|
410
|
+
let retainedTarball;
|
|
411
|
+
if (options.artifactDir) {
|
|
412
|
+
await files.mkdir(options.artifactDir, { recursive: true });
|
|
413
|
+
retainedTarball = paths.join(options.artifactDir, paths.basename(tarball));
|
|
414
|
+
await files.copy(tarball, retainedTarball);
|
|
415
|
+
}
|
|
416
|
+
return { tarball, retainedTarball, verification, publishMetadata };
|
|
417
|
+
}
|
|
418
|
+
//# sourceMappingURL=package-artifact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-artifact.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/package-artifact.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,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D,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AACrE,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { CapabilityError, type RuntimeRef, type VibesRuntime } from "@vibesdotdev/kernel";
|
|
2
|
+
import { type JsonValue } from "@vibesdotdev/kernel/schemas/json";
|
|
3
|
+
/** What the platform Registry client reads from the runtime it is handed. */
|
|
4
|
+
export type PlatformRegistryRuntime = RuntimeRef & Pick<VibesRuntime, "query" | "resolveCredential">;
|
|
5
|
+
/** A one-use publish credential minted by the platform. */
|
|
6
|
+
export type ManagedPublishLease = {
|
|
7
|
+
token: string;
|
|
8
|
+
id: string;
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
};
|
|
11
|
+
/** One platform registry-authority response, status preserved for poll logic. */
|
|
12
|
+
export type PlatformRegistryResponse = {
|
|
13
|
+
status: number;
|
|
14
|
+
ok: boolean;
|
|
15
|
+
/** Parsed from the `Retry-After` header or the payload's `retryAfterSeconds`. */
|
|
16
|
+
retryAfterSeconds?: number;
|
|
17
|
+
payload: JsonValue;
|
|
18
|
+
};
|
|
19
|
+
/** The human error message of a platform Registry error payload. */
|
|
20
|
+
export declare function registryErrorMessage(payload: JsonValue): string;
|
|
21
|
+
/**
|
|
22
|
+
* The platform that mints a publish lease must belong to the SAME environment
|
|
23
|
+
* as the registry being published to. Resolving 'platform' from the CLI's
|
|
24
|
+
* ambient environment is wrong whenever they differ — a CLI sitting in `local`
|
|
25
|
+
* would ask `platform.vibes.local` to authorize a publish to the production
|
|
26
|
+
* registry — and `resolve-app-origin` documents that ambient selection falls
|
|
27
|
+
* through to a NODE_ENV default outside the browser, so the CLI cannot be
|
|
28
|
+
* trusted to be in the right tier. Deriving the environment FROM the target
|
|
29
|
+
* registry origin removes the guess.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolvePlatformOriginForRegistry(runtime: PlatformRegistryRuntime, registry: string | undefined, resolvers?: {
|
|
32
|
+
environmentForOrigin?: (origin: string) => Promise<{
|
|
33
|
+
apps?: Record<string, string>;
|
|
34
|
+
} | null>;
|
|
35
|
+
ambientPlatformOrigin?: () => Promise<string | null>;
|
|
36
|
+
}): Promise<string | null>;
|
|
37
|
+
/**
|
|
38
|
+
* An authenticated request to the platform that owns `registry`, status preserved.
|
|
39
|
+
*/
|
|
40
|
+
export declare function platformRegistryRequestRaw(runtime: PlatformRegistryRuntime, path: string, method: "POST" | "DELETE", body: JsonValue, registry?: string, signal?: AbortSignal): Promise<PlatformRegistryResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* An authenticated platform Registry request that throws on a non-2xx response.
|
|
43
|
+
*/
|
|
44
|
+
export declare function platformRegistryRequest(runtime: PlatformRegistryRuntime, path: string, method: "POST" | "DELETE", body: JsonValue, registry?: string, signal?: AbortSignal): Promise<JsonValue>;
|
|
45
|
+
/** One authenticated Platform Registry request, status preserved (bound to a runtime). */
|
|
46
|
+
export type PlatformRegistryRawRequest = (path: string, method: "POST" | "DELETE", body: JsonValue, registry?: string, signal?: AbortSignal) => Promise<PlatformRegistryResponse>;
|
|
47
|
+
/** The Platform Registry calls one release run makes, bound to the runtime it was handed. */
|
|
48
|
+
export interface PlatformRegistryClient {
|
|
49
|
+
raw: PlatformRegistryRawRequest;
|
|
50
|
+
request(path: string, method: "POST" | "DELETE", body: JsonValue, registry?: string, signal?: AbortSignal): Promise<JsonValue>;
|
|
51
|
+
/** Whether scoped CI authority or a signed-in Vibes session is available. */
|
|
52
|
+
hasSession(): Promise<boolean>;
|
|
53
|
+
sessionJwt(): Promise<string | null>;
|
|
54
|
+
freshSessionJwt(): Promise<string | null>;
|
|
55
|
+
}
|
|
56
|
+
/** The Platform Registry client of `runtime`, the runtime the release command was handed. */
|
|
57
|
+
export declare function createPlatformRegistryClient(runtime: PlatformRegistryRuntime, signal?: AbortSignal): PlatformRegistryClient;
|
|
58
|
+
/** Deadline for a Forge release build started while minting a publish lease. */
|
|
59
|
+
export declare const MANAGED_LEASE_POLL_DEADLINE_MS: number;
|
|
60
|
+
/** Default delay when the Platform sends no Retry-After. */
|
|
61
|
+
export declare const MANAGED_LEASE_POLL_INTERVAL_MS = 15000;
|
|
62
|
+
export declare class ManagedPublishLeasePendingError extends CapabilityError {
|
|
63
|
+
readonly retryAfterMs: number;
|
|
64
|
+
constructor(retryAfterMs: number);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Make one idempotent lease request. A pending build is returned to the
|
|
68
|
+
* Workers job, which schedules the next request with the adapter's delay.
|
|
69
|
+
*/
|
|
70
|
+
export declare function pollManagedPublishLease(options: {
|
|
71
|
+
request: () => Promise<PlatformRegistryResponse>;
|
|
72
|
+
deadlineAt: number;
|
|
73
|
+
defaultRetryAfterMs?: number;
|
|
74
|
+
now: () => number;
|
|
75
|
+
}): Promise<ManagedPublishLease>;
|
|
76
|
+
//# sourceMappingURL=platform-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-registry.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/platform-registry.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,eAAe,EAGf,KAAK,UAAU,EACf,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,kCAAkC,CAAC;AAG1C,6EAA6E;AAC7E,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,mBAAmB,CAAC,CAAC;AAqBrG,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnF,iFAAiF;AACjF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,OAAO,CAAC;IACZ,iFAAiF;IACjF,iBAA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