@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,18 @@
|
|
|
1
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
2
|
+
export declare function extractApexZone(hostname: string): string;
|
|
3
|
+
/** The bound workspace, and the runtime its deployment config is evaluated under. */
|
|
4
|
+
export type ApexZoneRuntime = RuntimeRef & {
|
|
5
|
+
context<T = unknown>(id: string): Promise<T>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Infer the apex DNS zone from the bound workspace's own deployment.config
|
|
9
|
+
* origins (an app checkout binds as its own workspace) when --zone is
|
|
10
|
+
* omitted. Nothing walks up for a config. A workspace with no deployment
|
|
11
|
+
* config, an unbound host, or a config that declares itself non-deployable
|
|
12
|
+
* infers no zone; a config that fails to load fails the command.
|
|
13
|
+
*/
|
|
14
|
+
export declare function inferApexZoneFromWorkspace(runtime: ApexZoneRuntime, options?: {
|
|
15
|
+
/** The resolved Cloudflare projection; identity-only reads default to an empty one. */
|
|
16
|
+
projectionEnvironment?: Readonly<Record<string, string>>;
|
|
17
|
+
}): Promise<string | undefined>;
|
|
18
|
+
//# sourceMappingURL=infer-apex-zone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer-apex-zone.d.ts","sourceRoot":"","sources":["../../../src/cli/shared/infer-apex-zone.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAU/E,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMxD;AAKD,qFAAqF;AACrF,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IAC1C,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CAC7C,CAAC;AAqCF;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,GAAE;IACR,uFAAuF;IACvF,qBAAqB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACpD,GACJ,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAkB7B"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { CapabilityError, settle } from '@vibesdotdev/kernel';
|
|
2
|
+
import * as z from 'zod/v4';
|
|
3
|
+
import { loadDeploymentConfig, NonDeployableDeploymentConfigError, resolveConfigLoadHost } from "../../config-loader.js";
|
|
4
|
+
import { declaresDeployment } from "../../deployment-settings.js";
|
|
5
|
+
export function extractApexZone(hostname) {
|
|
6
|
+
const parts = hostname.split('.');
|
|
7
|
+
if (parts.length >= 2) {
|
|
8
|
+
return parts.slice(-2).join('.');
|
|
9
|
+
}
|
|
10
|
+
return hostname;
|
|
11
|
+
}
|
|
12
|
+
/** One admitted deployment origin: the hostname is the only field zone inference reads. */
|
|
13
|
+
const OriginHostnameSchema = z.object({ hostname: z.string().min(1) }).loose();
|
|
14
|
+
/** The host I/O one zone inference resolves once: host-owned config probes. */
|
|
15
|
+
async function resolveApexZoneHost(runtime) {
|
|
16
|
+
// The config loader's host handle is exactly the view a load performs its
|
|
17
|
+
// workspace deployment.config probes through.
|
|
18
|
+
return resolveConfigLoadHost(runtime);
|
|
19
|
+
}
|
|
20
|
+
/** The first origin hostname from a loaded deployment, skipping malformed entries. */
|
|
21
|
+
function firstOriginHostname(origins) {
|
|
22
|
+
const entries = z.array(z.unknown()).safeParse(origins);
|
|
23
|
+
if (!entries.success)
|
|
24
|
+
return undefined;
|
|
25
|
+
for (const origin of entries.data) {
|
|
26
|
+
const admitted = OriginHostnameSchema.safeParse(origin);
|
|
27
|
+
if (admitted.success)
|
|
28
|
+
return extractApexZone(admitted.data.hostname);
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The bound workspace, or null for a host bound to none. Only
|
|
34
|
+
* `workspace-unbound` (a confirmed absence) means "no workspace".
|
|
35
|
+
*/
|
|
36
|
+
async function boundWorkspace(runtime) {
|
|
37
|
+
const outcome = await settle(() => runtime.context('runtime/workspace-path'));
|
|
38
|
+
if (!outcome.ok) {
|
|
39
|
+
// Only the confirmed unbound absence answers "no workspace"; any other
|
|
40
|
+
// failure surfaces unchanged.
|
|
41
|
+
if (outcome.cause instanceof CapabilityError && outcome.cause.reason === 'workspace-unbound') {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
throw outcome.cause;
|
|
45
|
+
}
|
|
46
|
+
return outcome.value;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Infer the apex DNS zone from the bound workspace's own deployment.config
|
|
50
|
+
* origins (an app checkout binds as its own workspace) when --zone is
|
|
51
|
+
* omitted. Nothing walks up for a config. A workspace with no deployment
|
|
52
|
+
* config, an unbound host, or a config that declares itself non-deployable
|
|
53
|
+
* infers no zone; a config that fails to load fails the command.
|
|
54
|
+
*/
|
|
55
|
+
export async function inferApexZoneFromWorkspace(runtime, options = {}) {
|
|
56
|
+
const workspaceRoot = await boundWorkspace(runtime);
|
|
57
|
+
if (!workspaceRoot)
|
|
58
|
+
return undefined;
|
|
59
|
+
const host = await resolveApexZoneHost(runtime);
|
|
60
|
+
if (!(await declaresDeployment(runtime, host, workspaceRoot)))
|
|
61
|
+
return undefined;
|
|
62
|
+
const loadOutcome = await settle(() => loadDeploymentConfig(workspaceRoot, {
|
|
63
|
+
runtime,
|
|
64
|
+
projectionEnvironment: options.projectionEnvironment ?? {}
|
|
65
|
+
}));
|
|
66
|
+
if (!loadOutcome.ok) {
|
|
67
|
+
// A config that declares itself non-deployable infers no zone; any other
|
|
68
|
+
// load failure fails the command unchanged.
|
|
69
|
+
if (loadOutcome.cause instanceof NonDeployableDeploymentConfigError)
|
|
70
|
+
return undefined;
|
|
71
|
+
throw loadOutcome.cause;
|
|
72
|
+
}
|
|
73
|
+
return firstOriginHostname(loadOutcome.value.deployment.origins ?? []);
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=infer-apex-zone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infer-apex-zone.js","sourceRoot":"","sources":["../../../src/cli/shared/infer-apex-zone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,oBAAoB,EACpB,kCAAkC,EAClC,qBAAqB,EAErB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC/C,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;QACvB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,2FAA2F;AAC3F,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;AAO/E,+EAA+E;AAC/E,KAAK,UAAU,mBAAmB,CAAC,OAAwB;IAC1D,0EAA0E;IAC1E,8CAA8C;IAC9C,OAAO,qBAAqB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAED,sFAAsF;AACtF,SAAS,mBAAmB,CAAC,OAAgB;IAC5C,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACx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rC,oBAAoB,CAAC,aAAa,EAAE;QACnC,OAAO;QACP,qBAAqB,EAAE,OAAO,CAAC,qBAAqB,IAAI,EAAE;KAC1D,CAAC,CACF,CAAC;IACF,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC;QACrB,yEAAyE;QACzE,4CAA4C;QAC5C,IAAI,WAAW,CAAC,KAAK,YAAY,kCAAkC;YAAE,OAAO,SAAS,CAAC;QACtF,MAAM,WAAW,CAAC,KAAK,CAAC;IACzB,CAAC;IACD,OAAO,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option-strings.d.ts","sourceRoot":"","sources":["../../../src/cli/shared/option-strings.ts"],"names":[],"mappings":"AAUA,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAG7D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One home for CLI option string readers. `readString` is the non-trimming
|
|
3
|
+
* reader: an option value that is a non-empty string, otherwise `undefined`.
|
|
4
|
+
* Commands whose options need trimming (npm publish) keep their own reader
|
|
5
|
+
* because trimming changes parsing semantics.
|
|
6
|
+
*/
|
|
7
|
+
import * as z from 'zod/v4';
|
|
8
|
+
const NonEmptyStringSchema = z.string().min(1);
|
|
9
|
+
export function readString(value) {
|
|
10
|
+
const parsed = NonEmptyStringSchema.safeParse(value);
|
|
11
|
+
return parsed.success ? parsed.data : undefined;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=option-strings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"option-strings.js","sourceRoot":"","sources":["../../../src/cli/shared/option-strings.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE/C,MAAM,UAAU,UAAU,CAAC,KAAc;IACxC,MAAM,MAAM,GAAG,oBAAoB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACrD,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
2
|
+
import { type RuntimePath } from '@vibesdotdev/paths';
|
|
3
|
+
import type { FileSystemAdapterInterface } from '@vibesdotdev/filesystem/interfaces/adapter';
|
|
4
|
+
import { type RepositoryCollectionGroup, type RepositoryCollectionManifest } from '@vibesdotdev/config/repository-collection';
|
|
5
|
+
/** The one runtime read this module makes: the bound workspace. */
|
|
6
|
+
export interface WorkspaceBoundRuntime {
|
|
7
|
+
context<T = unknown>(id: string): Promise<T>;
|
|
8
|
+
}
|
|
9
|
+
/** The host I/O one collection read resolves once: the manifest read plus path mechanics. */
|
|
10
|
+
export interface CollectionReadHost {
|
|
11
|
+
readonly files: FileSystemAdapterInterface;
|
|
12
|
+
readonly paths: RuntimePath;
|
|
13
|
+
}
|
|
14
|
+
/** Resolve the collection read host from the handed runtime. */
|
|
15
|
+
export declare function resolveCollectionReadHost(runtime: RuntimeRef): Promise<CollectionReadHost>;
|
|
16
|
+
/** A repository collection: the bound workspace root and its checkout manifest. */
|
|
17
|
+
export interface RepositoryCollection {
|
|
18
|
+
readonly root: string;
|
|
19
|
+
readonly manifestPath: string;
|
|
20
|
+
readonly manifest: RepositoryCollectionManifest;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The Developer repository collection is the bound workspace
|
|
24
|
+
* (`runtime/workspace-path`) when that workspace declares
|
|
25
|
+
* `config/repositories.json`. Nothing walks up for the manifest: a nested
|
|
26
|
+
* checkout binds as its own workspace, so deploy tooling that needs the
|
|
27
|
+
* collection runs from its root or passes `--workspace-root <root>`.
|
|
28
|
+
*/
|
|
29
|
+
export declare function readBoundRepositoryCollection(runtime: WorkspaceBoundRuntime & RuntimeRef): Promise<RepositoryCollection>;
|
|
30
|
+
/**
|
|
31
|
+
* Read the checkout manifest at `root` with the Config owner's schema. A root
|
|
32
|
+
* without one is `NOT_FOUND` `repository-collection-missing`; a manifest that
|
|
33
|
+
* cannot be read or parsed is a typed failure, never "no collection".
|
|
34
|
+
*/
|
|
35
|
+
export declare function readRepositoryCollection(host: CollectionReadHost, root: string): Promise<RepositoryCollection>;
|
|
36
|
+
/** One registered checkout of `group`, named by the caller; no layout is inferred. */
|
|
37
|
+
export declare function registeredCheckout(host: CollectionReadHost, collection: RepositoryCollection, group: RepositoryCollectionGroup, name: string): string;
|
|
38
|
+
/** One registered split app's checkout (the manifest's `apps` group). */
|
|
39
|
+
export declare function registeredAppCheckout(host: CollectionReadHost, collection: RepositoryCollection, appName: string): string;
|
|
40
|
+
/** Every registered split app's checkout, in manifest order. */
|
|
41
|
+
export declare function registeredAppCheckouts(host: CollectionReadHost, collection: RepositoryCollection): string[];
|
|
42
|
+
//# sourceMappingURL=repository-collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-collection.d.ts","sourceRoot":"","sources":["../../../src/cli/shared/repository-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEnG,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAC7F,OAAO,EAIN,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,MAAM,2CAA2C,CAAC;AAEnD,mEAAmE;AACnE,MAAM,WAAW,qBAAqB;IACrC,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE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3
|
+
import { getRuntimePath } from '@vibesdotdev/paths';
|
|
4
|
+
import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem/client/resolve-adapter';
|
|
5
|
+
import { REPOSITORY_COLLECTION_MANIFEST_PATH, RepositoryCollectionManifestSchema, repositoryGroupRoot } from '@vibesdotdev/config/repository-collection';
|
|
6
|
+
/** Resolve the collection read host from the handed runtime. */
|
|
7
|
+
export async function resolveCollectionReadHost(runtime) {
|
|
8
|
+
return {
|
|
9
|
+
// The collection root is named by the caller, not by the caller's
|
|
10
|
+
// workspace binding, so the manifest read goes through the host-owned view.
|
|
11
|
+
files: await resolveFileSystemAdapter(runtime, { binding: false }),
|
|
12
|
+
paths: await getRuntimePath(runtime)
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The Developer repository collection is the bound workspace
|
|
17
|
+
* (`runtime/workspace-path`) when that workspace declares
|
|
18
|
+
* `config/repositories.json`. Nothing walks up for the manifest: a nested
|
|
19
|
+
* checkout binds as its own workspace, so deploy tooling that needs the
|
|
20
|
+
* collection runs from its root or passes `--workspace-root <root>`.
|
|
21
|
+
*/
|
|
22
|
+
export async function readBoundRepositoryCollection(runtime) {
|
|
23
|
+
// The bound root is read first so an unbound host refuses with
|
|
24
|
+
// workspace-unbound before any host kind is needed.
|
|
25
|
+
const root = await runtime.context('runtime/workspace-path');
|
|
26
|
+
return readRepositoryCollection(await resolveCollectionReadHost(runtime), root);
|
|
27
|
+
}
|
|
28
|
+
/** True when a read failure is the confirmed absence of the probed path. */
|
|
29
|
+
function isMissingPathFailure(failure) {
|
|
30
|
+
if (failure instanceof CapabilityError)
|
|
31
|
+
return failure.code === 'NOT_FOUND';
|
|
32
|
+
// A raw host error carries its errno on the error itself.
|
|
33
|
+
const facts = MissingPathCodeSchema.safeParse(failure);
|
|
34
|
+
return facts.success && (facts.data.code === 'ENOENT' || facts.data.code === 'ENOTDIR');
|
|
35
|
+
}
|
|
36
|
+
/** The errno facts a raw host absence carries. */
|
|
37
|
+
const MissingPathCodeSchema = z.object({ code: z.string().optional() }).loose();
|
|
38
|
+
/** A host read as text: an unencoded read is bytes; a text read passes through. */
|
|
39
|
+
function textOf(contents) {
|
|
40
|
+
return contents instanceof Uint8Array ? new TextDecoder().decode(contents) : contents;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Read the checkout manifest at `root` with the Config owner's schema. A root
|
|
44
|
+
* without one is `NOT_FOUND` `repository-collection-missing`; a manifest that
|
|
45
|
+
* cannot be read or parsed is a typed failure, never "no collection".
|
|
46
|
+
*/
|
|
47
|
+
export async function readRepositoryCollection(host, root) {
|
|
48
|
+
const collectionRoot = host.paths.resolve(root);
|
|
49
|
+
const manifestPath = host.paths.join(collectionRoot, REPOSITORY_COLLECTION_MANIFEST_PATH);
|
|
50
|
+
const read = await settle(async () => {
|
|
51
|
+
const raw = await host.files.readFile(manifestPath, 'utf8');
|
|
52
|
+
return textOf(raw);
|
|
53
|
+
});
|
|
54
|
+
if (!read.ok) {
|
|
55
|
+
if (isMissingPathFailure(read.cause)) {
|
|
56
|
+
throw new CapabilityError(`The workspace ${collectionRoot} is not a repository collection: ${manifestPath} does not exist.`, 'NOT_FOUND', {
|
|
57
|
+
reason: 'repository-collection-missing',
|
|
58
|
+
recoveryHint: 'Run from the repository collection root, or pass --workspace-root <collection root>.',
|
|
59
|
+
details: { root: collectionRoot, manifestPath }
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
throw new CapabilityError(`The repository checkout manifest ${manifestPath} cannot be read.`, 'PERMISSION_DENIED', { reason: 'fs-denied', details: { manifestPath }, cause: read.cause });
|
|
63
|
+
}
|
|
64
|
+
let parsed;
|
|
65
|
+
try {
|
|
66
|
+
parsed = JSON.parse(read.value);
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
throw new CapabilityError(`The repository checkout manifest ${manifestPath} is not valid JSON.`, 'INTERNAL', { reason: 'data-corrupt', details: { manifestPath }, cause: error });
|
|
70
|
+
}
|
|
71
|
+
const manifest = RepositoryCollectionManifestSchema.safeParse(parsed);
|
|
72
|
+
if (!manifest.success) {
|
|
73
|
+
throw new CapabilityError(`The repository checkout manifest ${manifestPath} does not match its schema.`, 'INTERNAL', { reason: 'data-corrupt', details: { manifestPath }, cause: manifest.error });
|
|
74
|
+
}
|
|
75
|
+
return { root: collectionRoot, manifestPath, manifest: manifest.data };
|
|
76
|
+
}
|
|
77
|
+
const REGISTERED_CHECKOUT_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
78
|
+
/** The checkout of a declared entry: its group's root (the manifest's layout) plus its name. */
|
|
79
|
+
function groupCheckout(host, collection, group, name) {
|
|
80
|
+
const checkout = host.paths.resolve(collection.root, repositoryGroupRoot(collection.manifest, group), name);
|
|
81
|
+
const checkoutRelative = toPosix(host.paths.relative(collection.root, checkout));
|
|
82
|
+
if (!checkoutRelative || checkoutRelative === '..' || checkoutRelative.startsWith('../')) {
|
|
83
|
+
throw new CapabilityError(`Registered checkout escapes the repository collection root: ${checkout}`, 'INVALID_INPUT', { reason: 'checkout-escapes-collection', details: { checkout, root: collection.root } });
|
|
84
|
+
}
|
|
85
|
+
return checkout;
|
|
86
|
+
}
|
|
87
|
+
/** A relative path normalized to posix separators, so containment checks are host-neutral. */
|
|
88
|
+
function toPosix(path) {
|
|
89
|
+
return path.split('\\').join('/');
|
|
90
|
+
}
|
|
91
|
+
/** One registered checkout of `group`, named by the caller; no layout is inferred. */
|
|
92
|
+
export function registeredCheckout(host, collection, group, name) {
|
|
93
|
+
if (!REGISTERED_CHECKOUT_NAME.test(name)) {
|
|
94
|
+
throw new CapabilityError(`Invalid registered checkout name: ${name}`, 'INVALID_INPUT', {
|
|
95
|
+
reason: 'checkout-name-invalid'
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
if (!collection.manifest.repositories[group].some((entry) => entry.name === name)) {
|
|
99
|
+
throw new CapabilityError(`${name} is not registered under ${group} in ${collection.manifestPath}.`, 'NOT_FOUND', { reason: 'checkout-not-registered', details: { group, name, manifestPath: collection.manifestPath } });
|
|
100
|
+
}
|
|
101
|
+
return groupCheckout(host, collection, group, name);
|
|
102
|
+
}
|
|
103
|
+
/** One registered split app's checkout (the manifest's `apps` group). */
|
|
104
|
+
export function registeredAppCheckout(host, collection, appName) {
|
|
105
|
+
return registeredCheckout(host, collection, 'apps', appName);
|
|
106
|
+
}
|
|
107
|
+
/** Every registered split app's checkout, in manifest order. */
|
|
108
|
+
export function registeredAppCheckouts(host, collection) {
|
|
109
|
+
return collection.manifest.repositories.apps.map((entry) => groupCheckout(host, collection, 'apps', entry.name));
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=repository-collection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-collection.js","sourceRoot":"","sources":["../../../src/cli/shared/repository-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAuC,MAAM,qBAAqB,CAAC;AACnG,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAoB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAE1F,OAAO,EACN,mCAAmC,EACnC,kCAAkC,EAClC,mBAAmB,EAGnB,MAAM,2CAA2C,CAAC;AAanD,gEAAgE;AAChE,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,OAAmB;IAClE,OAAO;QACN,kEAAkE;QAClE,4EAA4E;QAC5E,KAAK,EAAE,MAAM,wBAAwB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAClE,KAAK,EAAE,MAAM,cAAc,CAAC,OAAO,CAAC;KACpC,CAAC;AACH,CAAC;AASD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAClD,OAA2C;IAE3C,+DAA+D;IAC/D,oDAAoD;IACpD,MAAM,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C,EAAE,CAAC;QAC1C,MAAM,IAAI,eAAe,CAAC,qCAAqC,IAAI,EAAE,EAAE,eAAe,EAAE;YACvF,MAAM,EAAE,uBAAuB;SAC/B,CAAC,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,CAAC;QACnF,MAAM,IAAI,eAAe,CACxB,GAAG,IAAI,4BAA4B,KAAK,OAAO,UAAU,CAAC,YAAY,GAAG,EACzE,WAAW,EACX,EAAE,MAAM,EAAE,yBAAyB,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,EAAE,EAAE,CACtG,CAAC;IACH,CAAC;IACD,OAAO,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;AACrD,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,qBAAqB,CACpC,IAAwB,EACxB,UAAgC,EAChC,OAAe;IAEf,OAAO,kBAAkB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,sBAAsB,CACrC,IAAwB,EACxB,UAAgC;IAEhC,OAAO,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAC1D,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CACnD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
2
|
+
import { type ExecutionOutputLine, type RuntimeExecution } from '@vibesdotdev/kernel/execution';
|
|
3
|
+
export { resolveRuntimeExecution } from '../../runtime-execution.ts';
|
|
4
|
+
export type { ExecutionOutputLine } from '@vibesdotdev/kernel/execution';
|
|
5
|
+
/**
|
|
6
|
+
* The runtime a child runs on: its environment is composed from it
|
|
7
|
+
* (`composeChildEnv`), its deadlines are its lifecycle's, and a failure the
|
|
8
|
+
* call continues past is reported through its logger (C083a).
|
|
9
|
+
*/
|
|
10
|
+
export type ChildEnvRuntime = RuntimeRef;
|
|
11
|
+
/**
|
|
12
|
+
* bun, npm and node on the release rail and in builds receive the Registry
|
|
13
|
+
* token only as a declared variable the caller resolved as a credential
|
|
14
|
+
* ({@link registryTokenEnv}); the compose-root npmrc interpolates it
|
|
15
|
+
* (`//packages.vibes.dev/:_authToken=${VIBES_REGISTRY_TOKEN}`, npm-exec.ts)
|
|
16
|
+
* and bunfig scopes read it (`token = "$VIBES_REGISTRY_TOKEN"`). It is never
|
|
17
|
+
* inherited from the host, so an ambient `VIBES_REGISTRY_TOKEN` cannot reach a
|
|
18
|
+
* child. No NPM_CONFIG_* or BUN_* is inherited: isolated npm runs declare
|
|
19
|
+
* their own (npm-exec.ts `isolatedNpmPackEnv`).
|
|
20
|
+
*/
|
|
21
|
+
export declare function registryTokenEnv(runtime: Pick<RuntimeRef, 'resolveCredential'>): Promise<Record<string, string>>;
|
|
22
|
+
/**
|
|
23
|
+
* The Registry token when the runtime resolves one, and no declaration when it
|
|
24
|
+
* cannot. For children that never authenticate to the Vibes Registry — a
|
|
25
|
+
* wrangler/D1 child resolves its program from public npm — the token is an
|
|
26
|
+
* optional pass-through, so a host with no Registry credential (any public
|
|
27
|
+
* end-user) still runs `vibes infra db --local` (SPEC: local D1 execution
|
|
28
|
+
* needs no credentials). Children that authenticate to the Registry keep using
|
|
29
|
+
* {@link registryTokenEnv}, which fails typed on a missing credential.
|
|
30
|
+
*/
|
|
31
|
+
export declare function optionalRegistryTokenEnv(runtime: Pick<RuntimeRef, 'resolveCredential'>): Promise<Record<string, string>>;
|
|
32
|
+
/** Apple tooling (xcrun, codesign, ditto, hdiutil): the selected developer directory. The keychain resolves through the user session and HOME. */
|
|
33
|
+
export declare const APPLE_TOOL_ENV: readonly ["DEVELOPER_DIR"];
|
|
34
|
+
/**
|
|
35
|
+
* docker and kubectl: their context selectors and config, and the SSH agent an
|
|
36
|
+
* `ssh://` docker context dials through (release/shared/declared-child.ts,
|
|
37
|
+
* workers/infra-workers-logs.cli-command.impl.ts).
|
|
38
|
+
*/
|
|
39
|
+
export declare const CONTAINER_TOOL_ENV: readonly ["DOCKER_HOST", "DOCKER_CONFIG", "DOCKER_CONTEXT", "KUBECONFIG", "SSH_AUTH_SOCK"];
|
|
40
|
+
/** Budget for `SIGKILL` to be accepted by the execution provider. */
|
|
41
|
+
export declare const RUNTIME_COMMAND_KILL_BUDGET_MS = 5000;
|
|
42
|
+
/** Budget for a killed child's output pipes to close and its stdin delivery to settle. */
|
|
43
|
+
export declare const RUNTIME_COMMAND_DRAIN_BUDGET_MS = 5000;
|
|
44
|
+
export declare function runRuntimeCommand(input: {
|
|
45
|
+
/** The runtime the child's environment is composed from. */
|
|
46
|
+
runtime: ChildEnvRuntime;
|
|
47
|
+
execution: Pick<RuntimeExecution, 'spawn'>;
|
|
48
|
+
command: string;
|
|
49
|
+
args?: string[];
|
|
50
|
+
cwd?: string;
|
|
51
|
+
/** Variables the child declares; they win over inherited ones. */
|
|
52
|
+
env?: Record<string, string>;
|
|
53
|
+
/** Host variables the child names (one of the declarations above). */
|
|
54
|
+
inheritEnv?: readonly string[];
|
|
55
|
+
/** Keys removed after the environment is composed. */
|
|
56
|
+
unsetEnv?: string[];
|
|
57
|
+
/** Bound the child lifetime (spawn included) through the runtime lifecycle. */
|
|
58
|
+
timeout?: number;
|
|
59
|
+
/** Signal descendants when the command handle is killed, even without a timeout. */
|
|
60
|
+
killTree?: boolean;
|
|
61
|
+
/** Bound the `SIGKILL` after a timeout or failure. Defaults to {@link RUNTIME_COMMAND_KILL_BUDGET_MS}. */
|
|
62
|
+
killBudgetMs?: number;
|
|
63
|
+
/** Bound the join of the output pipes after a kill. Defaults to {@link RUNTIME_COMMAND_DRAIN_BUDGET_MS}. */
|
|
64
|
+
drainBudgetMs?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Text piped to the child's stdin then closed (e.g. `docker login
|
|
67
|
+
* --password-stdin`). Never logged — callers must not also pass a
|
|
68
|
+
* credential via `args`/`onLine`. Omit for the previous `stdin: 'ignore'`
|
|
69
|
+
* behavior.
|
|
70
|
+
*/
|
|
71
|
+
stdin?: string;
|
|
72
|
+
onLine?: ExecutionOutputLine;
|
|
73
|
+
}): Promise<{
|
|
74
|
+
code: number | null;
|
|
75
|
+
stdout: string;
|
|
76
|
+
stderr: string;
|
|
77
|
+
}>;
|
|
78
|
+
//# sourceMappingURL=runtime-execution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-execution.d.ts","sourceRoot":"","sources":["../../../src/cli/shared/runtime-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAChG,OAAO,EAEN,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,YAAY,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;AAezC;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,mBAAmB,CAAC,GAC5C,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAIjC;AAED;;;;;;;;GAQG;AACH,wBAAsB,wBAAwB,CAC7C,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,mBAAmB,CAAC,GAC5C,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CA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
2
|
+
import { collectProcessOutput } from '@vibesdotdev/kernel/execution';
|
|
3
|
+
import { getLogger } from '@vibesdotdev/logging';
|
|
4
|
+
export { resolveRuntimeExecution } from "../../runtime-execution.js";
|
|
5
|
+
/*
|
|
6
|
+
* Every child runs with `envMode: 'replace'` and exactly the kernel's composed
|
|
7
|
+
* environment (rc02-rc03 C15): the host base set (search path, home, locale,
|
|
8
|
+
* temp, the host's re-entry facts and roots), the host variables its caller
|
|
9
|
+
* names below, and the variables it declares. Nothing else from the host, and
|
|
10
|
+
* no Vibes credential, reaches git hooks, package lifecycle scripts or docker.
|
|
11
|
+
*/
|
|
12
|
+
/*
|
|
13
|
+
* git children name `GIT_CHILD_ENV`, the one git declaration, owned by
|
|
14
|
+
* `@vibesdotdev/git-operations/core`.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* bun, npm and node on the release rail and in builds receive the Registry
|
|
18
|
+
* token only as a declared variable the caller resolved as a credential
|
|
19
|
+
* ({@link registryTokenEnv}); the compose-root npmrc interpolates it
|
|
20
|
+
* (`//packages.vibes.dev/:_authToken=${VIBES_REGISTRY_TOKEN}`, npm-exec.ts)
|
|
21
|
+
* and bunfig scopes read it (`token = "$VIBES_REGISTRY_TOKEN"`). It is never
|
|
22
|
+
* inherited from the host, so an ambient `VIBES_REGISTRY_TOKEN` cannot reach a
|
|
23
|
+
* child. No NPM_CONFIG_* or BUN_* is inherited: isolated npm runs declare
|
|
24
|
+
* their own (npm-exec.ts `isolatedNpmPackEnv`).
|
|
25
|
+
*/
|
|
26
|
+
export async function registryTokenEnv(runtime) {
|
|
27
|
+
const resolved = await runtime.resolveCredential({ source: 'secret', key: 'VIBES_REGISTRY_TOKEN' });
|
|
28
|
+
if (!resolved.ok)
|
|
29
|
+
throw resolved.error;
|
|
30
|
+
return { VIBES_REGISTRY_TOKEN: resolved.value };
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The Registry token when the runtime resolves one, and no declaration when it
|
|
34
|
+
* cannot. For children that never authenticate to the Vibes Registry — a
|
|
35
|
+
* wrangler/D1 child resolves its program from public npm — the token is an
|
|
36
|
+
* optional pass-through, so a host with no Registry credential (any public
|
|
37
|
+
* end-user) still runs `vibes infra db --local` (SPEC: local D1 execution
|
|
38
|
+
* needs no credentials). Children that authenticate to the Registry keep using
|
|
39
|
+
* {@link registryTokenEnv}, which fails typed on a missing credential.
|
|
40
|
+
*/
|
|
41
|
+
export async function optionalRegistryTokenEnv(runtime) {
|
|
42
|
+
const resolved = await runtime.resolveCredential({ source: 'secret', key: 'VIBES_REGISTRY_TOKEN' });
|
|
43
|
+
return resolved.ok ? { VIBES_REGISTRY_TOKEN: resolved.value } : {};
|
|
44
|
+
}
|
|
45
|
+
/** Apple tooling (xcrun, codesign, ditto, hdiutil): the selected developer directory. The keychain resolves through the user session and HOME. */
|
|
46
|
+
export const APPLE_TOOL_ENV = ['DEVELOPER_DIR'];
|
|
47
|
+
/**
|
|
48
|
+
* docker and kubectl: their context selectors and config, and the SSH agent an
|
|
49
|
+
* `ssh://` docker context dials through (release/shared/declared-child.ts,
|
|
50
|
+
* workers/infra-workers-logs.cli-command.impl.ts).
|
|
51
|
+
*/
|
|
52
|
+
export const CONTAINER_TOOL_ENV = ['DOCKER_HOST', 'DOCKER_CONFIG', 'DOCKER_CONTEXT', 'KUBECONFIG', 'SSH_AUTH_SOCK'];
|
|
53
|
+
/** Budget for `SIGKILL` to be accepted by the execution provider. */
|
|
54
|
+
export const RUNTIME_COMMAND_KILL_BUDGET_MS = 5_000;
|
|
55
|
+
/** Budget for a killed child's output pipes to close and its stdin delivery to settle. */
|
|
56
|
+
export const RUNTIME_COMMAND_DRAIN_BUDGET_MS = 5_000;
|
|
57
|
+
function isWaitTimeout(error) {
|
|
58
|
+
return error instanceof CapabilityError && error.code === 'TIMEOUT' && error.reason === 'wait-timeout';
|
|
59
|
+
}
|
|
60
|
+
export async function runRuntimeCommand(input) {
|
|
61
|
+
const { lifecycle } = input.runtime;
|
|
62
|
+
// Validation before any side effect: an invalid environment fails here, before spawn.
|
|
63
|
+
const declaration = { env: input.env ?? {} };
|
|
64
|
+
if (input.inheritEnv)
|
|
65
|
+
declaration.inheritEnv = [...input.inheritEnv];
|
|
66
|
+
const env = composeChildEnv(input.runtime, declaration);
|
|
67
|
+
const killBudgetMs = input.killBudgetMs ?? RUNTIME_COMMAND_KILL_BUDGET_MS;
|
|
68
|
+
const drainBudgetMs = input.drainBudgetMs ?? RUNTIME_COMMAND_DRAIN_BUDGET_MS;
|
|
69
|
+
let spawning;
|
|
70
|
+
let spawned;
|
|
71
|
+
let output;
|
|
72
|
+
let inputDelivery;
|
|
73
|
+
const work = async () => {
|
|
74
|
+
spawning = Promise.resolve().then(() => input.execution.spawn({
|
|
75
|
+
command: input.command,
|
|
76
|
+
args: input.args,
|
|
77
|
+
cwd: input.cwd,
|
|
78
|
+
env,
|
|
79
|
+
envMode: 'replace',
|
|
80
|
+
unsetEnv: input.unsetEnv,
|
|
81
|
+
killTree: input.killTree ?? (input.timeout !== undefined),
|
|
82
|
+
stdin: input.stdin !== undefined ? 'pipe' : 'ignore',
|
|
83
|
+
stdout: 'pipe',
|
|
84
|
+
stderr: 'pipe'
|
|
85
|
+
}));
|
|
86
|
+
const child = await spawning;
|
|
87
|
+
spawned = child;
|
|
88
|
+
const collected = collectProcessOutput(child, input.onLine);
|
|
89
|
+
output = collected;
|
|
90
|
+
inputDelivery = (async () => {
|
|
91
|
+
if (input.stdin !== undefined && child.stdin) {
|
|
92
|
+
const writer = child.stdin.getWriter();
|
|
93
|
+
try {
|
|
94
|
+
await writer.write(new TextEncoder().encode(input.stdin));
|
|
95
|
+
await writer.close();
|
|
96
|
+
}
|
|
97
|
+
finally {
|
|
98
|
+
writer.releaseLock();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
})();
|
|
102
|
+
const [, result] = await Promise.all([inputDelivery, collected]);
|
|
103
|
+
return result;
|
|
104
|
+
};
|
|
105
|
+
/** Kill the child and join its output, each bounded; typed failures never hang. */
|
|
106
|
+
const reap = async () => {
|
|
107
|
+
const child = spawned;
|
|
108
|
+
if (!child) {
|
|
109
|
+
// A hung spawn: the deadline already failed the call. If the provider
|
|
110
|
+
// ever hands the child back, kill it then.
|
|
111
|
+
// Non-blocking by design: the caller already has its typed failure. Both
|
|
112
|
+
// outcomes are reported through the package logger, never dropped.
|
|
113
|
+
const log = getLogger('infra-deploy', input.runtime);
|
|
114
|
+
void (async () => {
|
|
115
|
+
const lateOutcome = await settle(async () => {
|
|
116
|
+
const late = await spawning;
|
|
117
|
+
// SAFETY: a resolved spawn answers the child handle; the promise's
|
|
118
|
+
// own type marks it possibly undefined only for the void path.
|
|
119
|
+
if (!late)
|
|
120
|
+
throw new Error('no child to reap');
|
|
121
|
+
return late;
|
|
122
|
+
});
|
|
123
|
+
if (!lateOutcome.ok) {
|
|
124
|
+
log.warn('Spawn failed after its deadline; no child to reap', { error: lateOutcome.cause });
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const killOutcome = await settle(() => lateOutcome.value.kill('SIGKILL'));
|
|
128
|
+
if (!killOutcome.ok) {
|
|
129
|
+
log.warn('Late-spawned child refused SIGKILL after its deadline', { error: killOutcome.cause });
|
|
130
|
+
}
|
|
131
|
+
})();
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const killOutcome = await settle(() => lifecycle.wait(async () => { await child.kill('SIGKILL'); }, {
|
|
135
|
+
timeoutMs: killBudgetMs,
|
|
136
|
+
reason: `SIGKILL of ${input.command}`
|
|
137
|
+
}));
|
|
138
|
+
if (!killOutcome.ok) {
|
|
139
|
+
if (!isWaitTimeout(killOutcome.cause)) {
|
|
140
|
+
// The kill itself failed (for example ESRCH on a child that already
|
|
141
|
+
// exited). That is secondary to the failure that brought us here: report
|
|
142
|
+
// it, then still join the pipes so the primary failure is what surfaces.
|
|
143
|
+
const log = getLogger('infra-deploy', input.runtime);
|
|
144
|
+
log.warn(`SIGKILL of ${input.command} failed while reaping`, { error: killOutcome.cause });
|
|
145
|
+
return joinOutput();
|
|
146
|
+
}
|
|
147
|
+
throw new CapabilityError(`Runtime command ${input.command} did not accept SIGKILL within ${killBudgetMs}ms.`, 'TIMEOUT', { reason: 'kill-timeout', details: { command: input.command, killBudgetMs }, cause: killOutcome.cause });
|
|
148
|
+
}
|
|
149
|
+
await joinOutput();
|
|
150
|
+
};
|
|
151
|
+
/** Join the output pipes and stdin delivery, bounded; typed failure when they never close. */
|
|
152
|
+
const joinOutput = async () => {
|
|
153
|
+
const pending = [inputDelivery, output].filter((join) => join !== undefined);
|
|
154
|
+
try {
|
|
155
|
+
// Rejections here are the killed child's expected stream teardown; the caller
|
|
156
|
+
// gets the primary failure, and this join only proves the pipes closed.
|
|
157
|
+
await lifecycle.wait(async () => { await Promise.allSettled(pending); }, {
|
|
158
|
+
timeoutMs: drainBudgetMs,
|
|
159
|
+
reason: `output of ${input.command} to close`
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
if (!isWaitTimeout(error))
|
|
164
|
+
throw error;
|
|
165
|
+
throw new CapabilityError(`Runtime command ${input.command} output did not close within ${drainBudgetMs}ms of SIGKILL.`, 'TIMEOUT', { reason: 'output-drain-timeout', details: { command: input.command, drainBudgetMs } });
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
try {
|
|
169
|
+
if (input.timeout === undefined)
|
|
170
|
+
return await work();
|
|
171
|
+
// The deadline is armed before `spawn` is called, so a hung spawn also times out.
|
|
172
|
+
return await lifecycle.wait(work, { timeoutMs: input.timeout, reason: `command ${input.command}` });
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
if (!isWaitTimeout(error))
|
|
176
|
+
throw error;
|
|
177
|
+
const failure = new CapabilityError(`Runtime command timed out after ${input.timeout}ms: ${input.command}`, 'TIMEOUT', { reason: 'command-timeout', details: { command: input.command, timeoutMs: input.timeout }, cause: error });
|
|
178
|
+
await reap();
|
|
179
|
+
throw failure;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=runtime-execution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime-execution.js","sourceRoot":"","sources":["../../../src/cli/shared/runtime-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAChG,OAAO,EACN,oBAAoB,EAGpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAUrE;;;;;;GAMG;AAEH;;;GAGG;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACrC,OAA8C;IAE9C,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,sBAAsB,EAAE,CAAC,CAAC;IACpG,IAAI,CAAC,QAAQ,CAAC,EAAE;QAAE,MAAM,QAAQ,CAAC,KAAK,CAAC;IACvC,OAAO,EAAE,oBAAoB,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;AACjD,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC7C,OAA8C;IAE9C,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,sBAAsB,EAAE,CAAC,CAAC;IACpG,OAAO,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,oBAAoB,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACpE,CAAC;AAED,kJAAkJ;AAClJ,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,eAAe,CAAU,CAAC;AAEzD;;;;GAIG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
|
+
import type { ExecutionOutputLine } from './runtime-execution.ts';
|
|
4
|
+
export declare const WORKSPACE_ARTIFACT_LOCK_PARTS: readonly [".cache", "infra-deploy", "workspace-artifacts.lock"];
|
|
5
|
+
/** A deployment carries its existing claim through nested build callbacks. */
|
|
6
|
+
export interface WorkspaceArtifactLock {
|
|
7
|
+
readonly workspaceRoot: string;
|
|
8
|
+
readonly held: HeldOwnerLock;
|
|
9
|
+
}
|
|
10
|
+
/** Keep one workspace's emitted dependencies stable until their consumer finishes. */
|
|
11
|
+
export declare function withWorkspaceArtifactLock<T>(input: {
|
|
12
|
+
runtime: RuntimeRef;
|
|
13
|
+
workspaceRoot: string;
|
|
14
|
+
artifactLock?: WorkspaceArtifactLock;
|
|
15
|
+
onLine?: ExecutionOutputLine;
|
|
16
|
+
}, operation: (lock: WorkspaceArtifactLock) => Promise<T>): Promise<T>;
|
|
17
|
+
//# sourceMappingURL=workspace-artifact-lock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-artifact-lock.d.ts","sourceRoot":"","sources":["../../../src/cli/shared/workspace-artifact-lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEvE,OAAO,EAEN,KAAK,aAAa,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,6BAA6B,iEAAkE,CAAC;AAG7G,8EAA8E;AAC9E,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAC7B;AAED,sFAAsF;AACtF,wBAAsB,yBAAyB,CAAC,CAAC,EAChD,KAAK,EAAE;IACN,OAAO,EAAE,UAAU,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC7B,EACD,SAAS,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,CAAC,CAAC,GACpD,OAAO,CAAC,CAAC,CAAC,CA8BZ"}
|