@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,311 @@
|
|
|
1
|
+
import { chmodChecked, resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
2
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
3
|
+
import { CapabilityError, CaughtFailureSchema, valueFreeFailure, } from "@vibesdotdev/kernel";
|
|
4
|
+
import { z } from "zod/v4";
|
|
5
|
+
import { runRuntimeCommand, } from "../../shared/runtime-execution.js";
|
|
6
|
+
import { formatVibesRegistryPublishAuthFailure, normalizeRegistryUrl, } from "./registry-credentials.js";
|
|
7
|
+
/** A failed npm command, carrying its arguments and (redacted) output. */
|
|
8
|
+
export class NpmCommandError extends CapabilityError {
|
|
9
|
+
args;
|
|
10
|
+
status;
|
|
11
|
+
stdout;
|
|
12
|
+
stderr;
|
|
13
|
+
constructor(args, result) {
|
|
14
|
+
super(`npm ${args.join(" ")} failed with exit ${result.status ?? "unknown"}`, "UNAVAILABLE", { reason: "npm-command-failed" });
|
|
15
|
+
this.name = "NpmCommandError";
|
|
16
|
+
this.args = args;
|
|
17
|
+
this.status = result.status;
|
|
18
|
+
this.stdout = result.stdout;
|
|
19
|
+
this.stderr = result.stderr;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** Replace every exact occurrence of each secret with `[REDACTED]`. */
|
|
23
|
+
export function redactExactSecrets(value, secrets) {
|
|
24
|
+
return secrets
|
|
25
|
+
.filter((secret) => secret.length > 0)
|
|
26
|
+
.reduce((redacted, secret) => redacted.split(secret).join("[REDACTED]"), value);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Run npm through the runtime execution with secrets redacted from output;
|
|
30
|
+
* throws `NpmCommandError` on failure unless `allowFailure`.
|
|
31
|
+
*/
|
|
32
|
+
export async function runNpm(execution, args, options) {
|
|
33
|
+
const redactValues = options.redactValues ?? [];
|
|
34
|
+
const result = await runRuntimeCommand({
|
|
35
|
+
runtime: options.runtime,
|
|
36
|
+
execution,
|
|
37
|
+
command: "npm",
|
|
38
|
+
args,
|
|
39
|
+
cwd: options.cwd,
|
|
40
|
+
env: options.env,
|
|
41
|
+
onLine: options.quiet || !options.onLine
|
|
42
|
+
? undefined
|
|
43
|
+
: (stream, line) => options.onLine(stream, redactExactSecrets(line, redactValues)),
|
|
44
|
+
});
|
|
45
|
+
const npmResult = {
|
|
46
|
+
status: result.code,
|
|
47
|
+
stdout: redactExactSecrets(result.stdout, redactValues),
|
|
48
|
+
stderr: redactExactSecrets(result.stderr, redactValues),
|
|
49
|
+
};
|
|
50
|
+
if (!options.allowFailure && npmResult.status !== 0) {
|
|
51
|
+
throw new NpmCommandError(args, npmResult);
|
|
52
|
+
}
|
|
53
|
+
return npmResult;
|
|
54
|
+
}
|
|
55
|
+
/** The npm output (plus any Registry auth hint) or message of a failure. */
|
|
56
|
+
export function npmOutput(error) {
|
|
57
|
+
const parsed = CaughtFailureSchema.safeParse(error);
|
|
58
|
+
if (!parsed.success)
|
|
59
|
+
return "npm failure is unreadable.";
|
|
60
|
+
const failure = parsed.data;
|
|
61
|
+
if (failure instanceof NpmCommandError) {
|
|
62
|
+
const raw = `${failure.stdout}\n${failure.stderr}`;
|
|
63
|
+
const hint = formatVibesRegistryPublishAuthFailure(raw);
|
|
64
|
+
return hint ? `${raw}\n${hint}` : raw;
|
|
65
|
+
}
|
|
66
|
+
return failure instanceof Error ? failure.message : failure.description;
|
|
67
|
+
}
|
|
68
|
+
/** `npm pack --json` was JSON, but not an array whose first entry is an object. */
|
|
69
|
+
function unreadablePackManifest() {
|
|
70
|
+
throw new CapabilityError("npm pack did not return a manifest.", "INVALID_INPUT", { reason: "npm-pack-manifest-unreadable" });
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The pack entry's selected fields. Other fields, including a non-finite
|
|
74
|
+
* number JSON parses as `Infinity`, are not part of admission.
|
|
75
|
+
*/
|
|
76
|
+
const PackEntrySchema = z.object({
|
|
77
|
+
files: z.unknown().optional(),
|
|
78
|
+
integrity: z.unknown().optional(),
|
|
79
|
+
});
|
|
80
|
+
/** One pack file row's path. A row that is not `{ path: string }` is skipped. */
|
|
81
|
+
const PackFilePathSchema = z.object({ path: z.string() });
|
|
82
|
+
/** The file list and integrity from `npm pack --json` output. */
|
|
83
|
+
export function parsePackManifest(stdout) {
|
|
84
|
+
let parsed;
|
|
85
|
+
try {
|
|
86
|
+
parsed = JSON.parse(stdout);
|
|
87
|
+
}
|
|
88
|
+
catch (error) {
|
|
89
|
+
throw new CapabilityError("npm pack did not return valid JSON.", "INVALID_INPUT", {
|
|
90
|
+
reason: "npm-pack-manifest-unreadable",
|
|
91
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(error)),
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
if (!Array.isArray(parsed))
|
|
95
|
+
unreadablePackManifest();
|
|
96
|
+
const entry = PackEntrySchema.safeParse(parsed[0]);
|
|
97
|
+
if (!entry.success)
|
|
98
|
+
unreadablePackManifest();
|
|
99
|
+
const listed = entry.data.files;
|
|
100
|
+
const files = Array.isArray(listed)
|
|
101
|
+
? listed.flatMap((file) => {
|
|
102
|
+
const row = PackFilePathSchema.safeParse(file);
|
|
103
|
+
return row.success ? [row.data.path] : [];
|
|
104
|
+
})
|
|
105
|
+
: [];
|
|
106
|
+
const integrity = z.string().safeParse(entry.data.integrity);
|
|
107
|
+
if (!integrity.success || !integrity.data.startsWith("sha512-")) {
|
|
108
|
+
throw new CapabilityError("npm pack returned no SHA-512 integrity", "INVALID_INPUT", { reason: "npm-pack-integrity-missing" });
|
|
109
|
+
}
|
|
110
|
+
return { files, integrity: integrity.data };
|
|
111
|
+
}
|
|
112
|
+
/** True when npm failed with a rate limit (E429). */
|
|
113
|
+
export function isNpmRateLimitError(error) {
|
|
114
|
+
const parsed = CaughtFailureSchema.safeParse(error);
|
|
115
|
+
if (!parsed.success)
|
|
116
|
+
return false;
|
|
117
|
+
return /(?:\bE429\b|429 Too Many Requests|rate limited exceeded|rate limit)/i.test(npmOutput(parsed.data));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* True when a publish attempt failed in transport or the registry marked its
|
|
121
|
+
* PUT refusal retryable: the same publish may run again. A retry whose first
|
|
122
|
+
* upload did land is refused as an existing version, which the caller skips.
|
|
123
|
+
*/
|
|
124
|
+
export function isTransientPublishError(error) {
|
|
125
|
+
const parsed = CaughtFailureSchema.safeParse(error);
|
|
126
|
+
if (!parsed.success)
|
|
127
|
+
return false;
|
|
128
|
+
const failure = parsed.data;
|
|
129
|
+
if (failure instanceof CapabilityError && failure.reason === "registry-put-failed") {
|
|
130
|
+
return failure.retryable === true;
|
|
131
|
+
}
|
|
132
|
+
return /\b(?:ECONNRESET|ETIMEDOUT|EPIPE|UND_ERR_SOCKET)\b|socket connection was closed unexpectedly/i.test(npmOutput(failure));
|
|
133
|
+
}
|
|
134
|
+
/** True when npm refused to publish over an existing version (E409). */
|
|
135
|
+
export function isNpmExistingVersionError(error) {
|
|
136
|
+
const parsed = CaughtFailureSchema.safeParse(error);
|
|
137
|
+
if (!parsed.success)
|
|
138
|
+
return false;
|
|
139
|
+
return /(?:\bE409\b|cannot publish(?: .+)? over (?:an existing version|the previously published versions))/i.test(npmOutput(parsed.data));
|
|
140
|
+
}
|
|
141
|
+
/** The `name@version` npm spec. */
|
|
142
|
+
export function versionSpec(name, version) {
|
|
143
|
+
return name.startsWith("@") ? `${name}@${version}` : `${name}@${version}`;
|
|
144
|
+
}
|
|
145
|
+
/** The file name `npm pack` gives `name@version`. */
|
|
146
|
+
export function npmTarballFilename(name, version) {
|
|
147
|
+
return `${name.replace(/^@/, "").replaceAll("/", "-")}-${version}.tgz`;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* npm's output with its `npm error` lines first and each repeated line kept
|
|
151
|
+
* once. npm prints its warnings before the error that failed the command, so
|
|
152
|
+
* a bounded message cut from the front would otherwise show only warnings.
|
|
153
|
+
*/
|
|
154
|
+
export function npmErrorLinesFirst(output) {
|
|
155
|
+
const lines = output.split("\n").map((line) => line.trimEnd()).filter(Boolean);
|
|
156
|
+
const isError = (line) => /^npm (?:error|ERR!)/.test(line);
|
|
157
|
+
const ordered = [...lines.filter(isError), ...lines.filter((line) => !isError(line))];
|
|
158
|
+
return [...new Set(ordered)].join("\n");
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* A redacted, whitespace-collapsed failure message of at most `limit`
|
|
162
|
+
* characters (500 by default).
|
|
163
|
+
*/
|
|
164
|
+
export function boundedCleanupFailureMessage(error, redactValues, limit = 500) {
|
|
165
|
+
const parsed = CaughtFailureSchema.safeParse(error);
|
|
166
|
+
if (!parsed.success)
|
|
167
|
+
return "unknown failure";
|
|
168
|
+
const failure = parsed.data;
|
|
169
|
+
const output = npmErrorLinesFirst(npmOutput(failure).trim());
|
|
170
|
+
const raw = output || (failure instanceof Error ? failure.message : failure.description);
|
|
171
|
+
const normalized = redactExactSecrets(raw, redactValues).replace(/\s+/g, " ").trim() ||
|
|
172
|
+
"unknown failure";
|
|
173
|
+
return normalized.length <= limit ? normalized : `${normalized.slice(0, limit - 1)}…`;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The installed-release-proof install failure, bounded and redacted. An npm
|
|
177
|
+
* resolution refusal (ERESOLVE) names the conflicting edge only after its
|
|
178
|
+
* preamble, so this keeps enough of npm's own output to name it.
|
|
179
|
+
*/
|
|
180
|
+
const RELEASE_CONSUMER_INSTALL_FAILURE_LIMIT = 4000;
|
|
181
|
+
export function releaseConsumerNpmInstallFailure(error, redactValues) {
|
|
182
|
+
const parsed = CaughtFailureSchema.safeParse(error);
|
|
183
|
+
if (!parsed.success) {
|
|
184
|
+
return new Error("Installed release npm install failed: unknown failure");
|
|
185
|
+
}
|
|
186
|
+
return new Error(`Installed release npm install failed: ${boundedCleanupFailureMessage(parsed.data, redactValues, RELEASE_CONSUMER_INSTALL_FAILURE_LIMIT)}`, { cause: parsed.data });
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* npm treats the nearest directory with a package.json as the project root and
|
|
190
|
+
* stops walking ancestor `.npmrc` files there. Release temp dirs live under
|
|
191
|
+
* `<workspace>/.vibes/tmp/registry-release/`, so without this file npm loads
|
|
192
|
+
* the compose-root `//packages.vibes.dev/:_authToken=${VIBES_REGISTRY_TOKEN}`
|
|
193
|
+
* line, interpolates the env var this command deletes, and overrides the
|
|
194
|
+
* isolated lease with an empty Bearer.
|
|
195
|
+
*/
|
|
196
|
+
export const ISOLATED_NPM_PROJECT_MANIFEST = '{"private":true}\n';
|
|
197
|
+
/** Pin `dir` as its own npm project so ancestor `.npmrc` files are not read. */
|
|
198
|
+
export async function writeIsolatedNpmProjectManifest(runtime, dir) {
|
|
199
|
+
const paths = await getRuntimePath(runtime);
|
|
200
|
+
const files = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
201
|
+
await files.writeFile(paths.join(dir, "package.json"), ISOLATED_NPM_PROJECT_MANIFEST);
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* bun walks ancestor `bunfig.toml` files independently of package.json.
|
|
205
|
+
* Release temps live under `<workspace>/.vibes/tmp/registry-release/`, so a
|
|
206
|
+
* throwaway consumer with `envMode:replace` (no VIBES_REGISTRY_TOKEN) still
|
|
207
|
+
* inherits the worktree `[install.scopes] token = "$VIBES_REGISTRY_TOKEN"`.
|
|
208
|
+
* Bun interpolates the empty env var and 404s restricted packuments — a leak
|
|
209
|
+
* that looks like a missing publish. Nearest bunfig wins: pin one with no
|
|
210
|
+
* scopes so that walk stops before the worktree file.
|
|
211
|
+
*/
|
|
212
|
+
export const ISOLATED_BUNFIG = "# Isolated release temp: do not inherit ancestor [install.scopes].\n[install]\n";
|
|
213
|
+
/** Pin `dir` with a scope-free bunfig so ancestor bunfig files are not read. */
|
|
214
|
+
export async function writeIsolatedBunfig(runtime, dir) {
|
|
215
|
+
const paths = await getRuntimePath(runtime);
|
|
216
|
+
const files = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
217
|
+
await files.writeFile(paths.join(dir, "bunfig.toml"), ISOLATED_BUNFIG);
|
|
218
|
+
}
|
|
219
|
+
/** The single tarball in `dir`; throws unless exactly one exists. */
|
|
220
|
+
export async function newestTarball(runtime, dir) {
|
|
221
|
+
const paths = await getRuntimePath(runtime);
|
|
222
|
+
const files = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
223
|
+
const tarballs = (await files.list(dir))
|
|
224
|
+
.filter((entry) => entry.kind === "file" && entry.name.endsWith(".tgz"))
|
|
225
|
+
.map((entry) => entry.name)
|
|
226
|
+
.sort();
|
|
227
|
+
const [tarball] = tarballs;
|
|
228
|
+
if (tarballs.length !== 1 || tarball === undefined) {
|
|
229
|
+
throw new Error(`Expected one packed tarball in ${dir}, found ${tarballs.length}`);
|
|
230
|
+
}
|
|
231
|
+
return paths.join(dir, tarball);
|
|
232
|
+
}
|
|
233
|
+
/** The npmrc `_authToken` key for `registry`. */
|
|
234
|
+
export function authConfigLine(registry) {
|
|
235
|
+
const url = new URL(registry);
|
|
236
|
+
const path = url.pathname.endsWith("/") ? url.pathname : `${url.pathname}/`;
|
|
237
|
+
return `//${url.host}${path}:_authToken`;
|
|
238
|
+
}
|
|
239
|
+
/** An npmrc for authenticated Registry reads; one token never spans origins. */
|
|
240
|
+
export function registryReadNpmrc(options) {
|
|
241
|
+
const registries = [...new Set(options.registries.map(normalizeRegistryUrl))];
|
|
242
|
+
if (options.token && registries.length > 1) {
|
|
243
|
+
throw new Error("Authenticated Registry reads require one registry per run; one token is never shared across origins");
|
|
244
|
+
}
|
|
245
|
+
const lines = [
|
|
246
|
+
registries[0] ? `registry=${registries[0]}` : undefined,
|
|
247
|
+
options.scope && registries[0]
|
|
248
|
+
? `${options.scope}:registry=${registries[0]}`
|
|
249
|
+
: undefined,
|
|
250
|
+
...registries.map((registry) => options.token
|
|
251
|
+
? `${authConfigLine(registry)}=${options.token}`
|
|
252
|
+
: undefined),
|
|
253
|
+
].filter((line) => Boolean(line));
|
|
254
|
+
return `${lines.join("\n")}\n`;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* The declared environment of an isolated npm run: its own home, cache and user
|
|
258
|
+
* config. The child composes its base from the runtime (`envMode: 'replace'`),
|
|
259
|
+
* so no host variable, npm config or Registry credential is inherited.
|
|
260
|
+
*/
|
|
261
|
+
export function isolatedNpmPackEnv(options) {
|
|
262
|
+
return {
|
|
263
|
+
HOME: options.homeDir,
|
|
264
|
+
USERPROFILE: options.homeDir,
|
|
265
|
+
NPM_CONFIG_CACHE: options.cacheDir,
|
|
266
|
+
NPM_CONFIG_USERCONFIG: options.npmrcPath,
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* An npmrc for publishing to `registry`, optionally scoped and authenticated.
|
|
271
|
+
*/
|
|
272
|
+
export function registryPublishNpmrc(options) {
|
|
273
|
+
const lines = [
|
|
274
|
+
`registry=${options.registry}`,
|
|
275
|
+
options.scope ? `${options.scope}:registry=${options.registry}` : undefined,
|
|
276
|
+
options.token
|
|
277
|
+
? `${authConfigLine(options.registry)}=${options.token}`
|
|
278
|
+
: undefined,
|
|
279
|
+
].filter((line) => Boolean(line));
|
|
280
|
+
return `${lines.join("\n")}\n`;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Write a mode-0600 publish npmrc (and the same file in `homeDir`, if given).
|
|
284
|
+
*/
|
|
285
|
+
export async function writeTempNpmrc(options) {
|
|
286
|
+
const npmrc = registryPublishNpmrc(options);
|
|
287
|
+
const paths = await getRuntimePath(options.runtime);
|
|
288
|
+
const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
|
|
289
|
+
await files.writeFile(options.path, npmrc, { mode: 0o600 });
|
|
290
|
+
await chmodChecked(files, options.path, 0o600);
|
|
291
|
+
if (options.homeDir) {
|
|
292
|
+
await files.mkdir(options.homeDir, { recursive: true });
|
|
293
|
+
const homeNpmrc = paths.join(options.homeDir, ".npmrc");
|
|
294
|
+
await files.writeFile(homeNpmrc, npmrc, { mode: 0o600 });
|
|
295
|
+
await chmodChecked(files, homeNpmrc, 0o600);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
/** The `npm publish` arguments for a tarball. */
|
|
299
|
+
export function publishArgs(options) {
|
|
300
|
+
const args = ["publish", options.tarball, "--registry", options.registry];
|
|
301
|
+
if (options.access)
|
|
302
|
+
args.push("--access", options.access);
|
|
303
|
+
if (options.tag)
|
|
304
|
+
args.push("--tag", options.tag);
|
|
305
|
+
if (options.provenance)
|
|
306
|
+
args.push("--provenance");
|
|
307
|
+
if (options.dryRun)
|
|
308
|
+
args.push("--dry-run");
|
|
309
|
+
return args;
|
|
310
|
+
}
|
|
311
|
+
//# sourceMappingURL=npm-exec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npm-exec.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/npm-exec.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAEL,iBAAiB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,qCAAqC,EACrC,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AASnC,0EAA0E;AAC1E,MAAM,OAAO,eAAgB,SAAQ,eAAe;IACzC,IAAI,CAAW;IACf,MAAM,CAAgB;IACtB,MAAM,CAAS;IACf,MAAM,CAAS;IAExB,YAAY,IAAc,EAAE,MAAoB;QAC9C,KAAK,CACH,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qBAAqB,MAAM,CAAC,MAAM,IAAI,SAAS,EAAE,EACtE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AAC;AAED,iDAAiD;AACjD,MAAM,UAAU,WAAW,CAAC,OAO3B;IACC,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1E,IAAI,OAAO,CAAC,MAAM;QAAE,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1D,IAAI,OAAO,CAAC,GAAG;QAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACjD,IAAI,OAAO,CAAC,UAAU;QAAE,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAClD,IAAI,OAAO,CAAC,MAAM;QAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC3C,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Package artifact preparation: staging a package with its canonical publish
|
|
3
|
+
* manifest at its assigned version, building it, packing it canonically, and
|
|
4
|
+
* verifying the packed file list and export targets.
|
|
5
|
+
*/
|
|
6
|
+
import type { ChildEnvRuntime } from "../../shared/runtime-execution.ts";
|
|
7
|
+
import type { UIContext } from "@vibesdotdev/cli/providers";
|
|
8
|
+
import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
|
|
9
|
+
import { type ReleaseConsumerSourceRegistry } from "./proof-registry.ts";
|
|
10
|
+
import type { PackageJson, RegistryWorkspaceProvenance, SealedPublishMetadata } from "./types.ts";
|
|
11
|
+
/**
|
|
12
|
+
* The one constructor for sealed publish metadata. The seal and the live
|
|
13
|
+
* publish both build through it, so the sealed-metadata comparison sees the
|
|
14
|
+
* same key order: access and tag sit between registry and provenance, and are
|
|
15
|
+
* omitted when absent.
|
|
16
|
+
*/
|
|
17
|
+
export declare function sealedPublishMetadata(parts: {
|
|
18
|
+
registry: string;
|
|
19
|
+
access?: string;
|
|
20
|
+
tag?: string;
|
|
21
|
+
provenance: RegistryWorkspaceProvenance;
|
|
22
|
+
}): SealedPublishMetadata;
|
|
23
|
+
/**
|
|
24
|
+
* Copy a package into `stageDir` and write its canonical publish manifest.
|
|
25
|
+
* `version` stamps the assigned release version into the STAGED manifest only;
|
|
26
|
+
* the source manifest is never modified. Staging is owned by
|
|
27
|
+
* `@vibesdotdev/registry`, the same owner Forge CI packs through.
|
|
28
|
+
*/
|
|
29
|
+
export declare function stagePackageForPublish(options: {
|
|
30
|
+
/** The invoking command's runtime: staging copies through its host filesystem adapter. */
|
|
31
|
+
runtime: ChildEnvRuntime;
|
|
32
|
+
packageDir: string;
|
|
33
|
+
stageDir: string;
|
|
34
|
+
bunPackWorkspaceRoot?: string;
|
|
35
|
+
versions: Map<string, string>;
|
|
36
|
+
version?: string;
|
|
37
|
+
gitHead?: string;
|
|
38
|
+
provenance?: RegistryWorkspaceProvenance;
|
|
39
|
+
}): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Verify a packed file list against the manifest: every export/main target is
|
|
42
|
+
* packed, no source, test or TypeScript specifier ships, and declared files staged.
|
|
43
|
+
*/
|
|
44
|
+
export declare function verifyPackedPackage(pkg: Pick<PackageJson, "name" | "version" | "main" | "types" | "exports" | "files">, files: string[], readFileContent: (file: string) => Promise<string>, sourceDeclaration?: {
|
|
45
|
+
/** The package's own (pre-staging) `package.json` `files` declaration. */
|
|
46
|
+
files: string[] | undefined;
|
|
47
|
+
/** Whether an undeclared-glob-free entry from that declaration actually staged. */
|
|
48
|
+
entryStaged: (entry: string) => Promise<boolean> | boolean;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
verifiedFiles: number;
|
|
51
|
+
verifiedExports: number;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* Build the package when it has a build script, then prove its built main loads
|
|
55
|
+
* under its declared runtime.
|
|
56
|
+
*/
|
|
57
|
+
export declare function buildAndVerifyLoadable(options: {
|
|
58
|
+
pkg: PackageJson & {
|
|
59
|
+
name: string;
|
|
60
|
+
version: string;
|
|
61
|
+
};
|
|
62
|
+
packageDir: string;
|
|
63
|
+
execution: RuntimeExecution;
|
|
64
|
+
/** The runtime child environments are composed from. */
|
|
65
|
+
runtime: ChildEnvRuntime;
|
|
66
|
+
quiet: boolean;
|
|
67
|
+
ui: Pick<UIContext, "info" | "log">;
|
|
68
|
+
build?: boolean;
|
|
69
|
+
}): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Build, stage (stamping `version` into the staged manifest), pack, verify and
|
|
72
|
+
* canonically gzip one package under `tempRoot`. Returns the tarball, its
|
|
73
|
+
* verification counts, the copy retained in `artifactDir` (if any) and the
|
|
74
|
+
* publish metadata read back from the staged manifest.
|
|
75
|
+
*/
|
|
76
|
+
export declare function sealPackageArtifact(options: {
|
|
77
|
+
pkg: PackageJson & {
|
|
78
|
+
name: string;
|
|
79
|
+
version: string;
|
|
80
|
+
};
|
|
81
|
+
version: string;
|
|
82
|
+
packageDir: string;
|
|
83
|
+
tempRoot: string;
|
|
84
|
+
versions: Map<string, string>;
|
|
85
|
+
gitHead: string;
|
|
86
|
+
workspaceProvenance: RegistryWorkspaceProvenance;
|
|
87
|
+
registry?: string;
|
|
88
|
+
tag?: string;
|
|
89
|
+
artifactDir?: string;
|
|
90
|
+
build?: boolean;
|
|
91
|
+
npmEnv: Record<string, string>;
|
|
92
|
+
sourceRegistry?: ReleaseConsumerSourceRegistry;
|
|
93
|
+
execution: RuntimeExecution;
|
|
94
|
+
/** The runtime child environments are composed from. */
|
|
95
|
+
runtime: ChildEnvRuntime;
|
|
96
|
+
quiet: boolean;
|
|
97
|
+
ui: Pick<UIContext, "info" | "log">;
|
|
98
|
+
}): Promise<{
|
|
99
|
+
tarball: string;
|
|
100
|
+
retainedTarball?: string;
|
|
101
|
+
verification: {
|
|
102
|
+
verifiedFiles: number;
|
|
103
|
+
verifiedExports: number;
|
|
104
|
+
};
|
|
105
|
+
publishMetadata: SealedPublishMetadata;
|
|
106
|
+
}>;
|
|
107
|
+
//# sourceMappingURL=package-artifact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-artifact.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/package-artifact.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAW5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAQtE,OAAO,EAA6B,KAAK,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAIpG,OAAO,KAAK,EACV,WAAW,EACX,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,2BAA2B,CAAC;CACzC,GAAG,qBAAqB,CASxB;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,EAAE;IACpD,0FAA0F;IAC1F,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C,GAAG,OAAO,CAAC,IAAI,CAAC,CAGhB;AA0JD;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,IAAI,CACP,WAA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