@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,410 @@
|
|
|
1
|
+
import { CapabilityError, CaughtFailureSchema, settle, getRuntimeStdio, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
2
|
+
import { JsonObjectSchema } from '@vibesdotdev/kernel/schemas/json';
|
|
3
|
+
import { WorkerDescriptorSchema } from '@vibesdotdev/infra-core/kinds';
|
|
4
|
+
import { z } from 'zod/v4';
|
|
5
|
+
export const DoksWorkerDescriptorSchema = WorkerDescriptorSchema;
|
|
6
|
+
export function admitWorkerDescriptor(descriptor) {
|
|
7
|
+
try {
|
|
8
|
+
const parsed = DoksWorkerDescriptorSchema.safeParse(descriptor);
|
|
9
|
+
if (!parsed.success) {
|
|
10
|
+
throw new CapabilityError('Invalid DOKS worker descriptor structure.', 'INVALID_INPUT', {
|
|
11
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(parsed.error))
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return parsed.data;
|
|
15
|
+
}
|
|
16
|
+
catch (cause) {
|
|
17
|
+
if (cause instanceof CapabilityError)
|
|
18
|
+
throw cause;
|
|
19
|
+
throw new CapabilityError('DOKS worker descriptor validation threw an unexpected error.', 'INVALID_INPUT', {
|
|
20
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export const DoksWorkerPlanSchema = JsonObjectSchema;
|
|
25
|
+
export function admitWorkerPlan(plan) {
|
|
26
|
+
try {
|
|
27
|
+
const parsed = DoksWorkerPlanSchema.safeParse(plan);
|
|
28
|
+
if (!parsed.success) {
|
|
29
|
+
throw new CapabilityError('Invalid DOKS worker plan structure.', 'INVALID_INPUT', {
|
|
30
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(parsed.error))
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return parsed.data;
|
|
34
|
+
}
|
|
35
|
+
catch (cause) {
|
|
36
|
+
if (cause instanceof CapabilityError)
|
|
37
|
+
throw cause;
|
|
38
|
+
throw new CapabilityError('DOKS worker plan validation threw an unexpected error.', 'INVALID_INPUT', {
|
|
39
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export const DoksWorkerStatusSchema = z.object({
|
|
44
|
+
state: z.enum(['pending', 'succeeded', 'failed']),
|
|
45
|
+
reason: z.string(),
|
|
46
|
+
worker: z.string(),
|
|
47
|
+
operation: z.enum(['build', 'apply'])
|
|
48
|
+
});
|
|
49
|
+
export function admitWorkerStatus(status) {
|
|
50
|
+
try {
|
|
51
|
+
const parsed = DoksWorkerStatusSchema.safeParse(status);
|
|
52
|
+
if (!parsed.success) {
|
|
53
|
+
throw new CapabilityError('Invalid DOKS worker status structure.', 'INVALID_INPUT', {
|
|
54
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(parsed.error))
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return parsed.data;
|
|
58
|
+
}
|
|
59
|
+
catch (cause) {
|
|
60
|
+
if (cause instanceof CapabilityError)
|
|
61
|
+
throw cause;
|
|
62
|
+
throw new CapabilityError('DOKS worker status validation threw an unexpected error.', 'INVALID_INPUT', {
|
|
63
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const FunctionSchema = z.instanceof(Function);
|
|
68
|
+
export const DoksWorkerClientCandidateSchema = z.custom((val) => val instanceof Object);
|
|
69
|
+
export const DoksWorkerOperationsSchema = z
|
|
70
|
+
.object({
|
|
71
|
+
planApply: z.instanceof(Function),
|
|
72
|
+
planBuild: z.instanceof(Function)
|
|
73
|
+
})
|
|
74
|
+
.passthrough();
|
|
75
|
+
export const DoksWorkerClientSchema = z.custom((val) => {
|
|
76
|
+
const parsed = DoksWorkerClientCandidateSchema.safeParse(val);
|
|
77
|
+
if (!parsed.success)
|
|
78
|
+
return false;
|
|
79
|
+
return (FunctionSchema.safeParse(parsed.data.planApply).success &&
|
|
80
|
+
FunctionSchema.safeParse(parsed.data.planBuild).success);
|
|
81
|
+
});
|
|
82
|
+
export const DoksScopedOperationsSchema = z
|
|
83
|
+
.object({
|
|
84
|
+
apply: z.instanceof(Function),
|
|
85
|
+
status: z.instanceof(Function)
|
|
86
|
+
})
|
|
87
|
+
.passthrough();
|
|
88
|
+
const originalReceivers = new WeakMap();
|
|
89
|
+
function resolveReceiver(target) {
|
|
90
|
+
return originalReceivers.get(target) ?? target;
|
|
91
|
+
}
|
|
92
|
+
export function admitWorkerClient(client) {
|
|
93
|
+
let rawClient;
|
|
94
|
+
try {
|
|
95
|
+
const parsed = DoksWorkerClientCandidateSchema.safeParse(client);
|
|
96
|
+
if (!parsed.success) {
|
|
97
|
+
throw new CapabilityError('The worker adapter client must be an object.', 'INVALID_INPUT', {
|
|
98
|
+
reason: 'doks-worker-client-invalid',
|
|
99
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(parsed.error))
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
rawClient = parsed.data;
|
|
103
|
+
}
|
|
104
|
+
catch (cause) {
|
|
105
|
+
if (cause instanceof CapabilityError)
|
|
106
|
+
throw cause;
|
|
107
|
+
throw new CapabilityError('The worker adapter client property check failed.', 'INVALID_INPUT', {
|
|
108
|
+
reason: 'doks-worker-client-invalid',
|
|
109
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
let planApplyFn;
|
|
113
|
+
let planBuildFn;
|
|
114
|
+
try {
|
|
115
|
+
planApplyFn = rawClient.planApply;
|
|
116
|
+
planBuildFn = rawClient.planBuild;
|
|
117
|
+
}
|
|
118
|
+
catch (cause) {
|
|
119
|
+
if (cause instanceof CapabilityError)
|
|
120
|
+
throw cause;
|
|
121
|
+
throw new CapabilityError('The worker adapter client property check failed.', 'INVALID_INPUT', {
|
|
122
|
+
reason: 'doks-worker-client-invalid',
|
|
123
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
const parsedPlanApply = FunctionSchema.safeParse(planApplyFn);
|
|
127
|
+
const parsedPlanBuild = FunctionSchema.safeParse(planBuildFn);
|
|
128
|
+
if (!parsedPlanApply.success || !parsedPlanBuild.success) {
|
|
129
|
+
throw new CapabilityError('The worker adapter client must expose planApply and planBuild operations.', 'INVALID_INPUT', {
|
|
130
|
+
reason: 'doks-worker-client-invalid'
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
const boundPlanApplyCallable = parsedPlanApply.data;
|
|
134
|
+
const boundPlanBuildCallable = parsedPlanBuild.data;
|
|
135
|
+
const boundPlanApply = async (descriptor) => {
|
|
136
|
+
let result;
|
|
137
|
+
try {
|
|
138
|
+
result = await boundPlanApplyCallable.call(rawClient, descriptor);
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
if (error instanceof CapabilityError)
|
|
142
|
+
throw error;
|
|
143
|
+
throw new CapabilityError('DOKS worker planApply operation failed.', 'INTERNAL', { cause: valueFreeFailure(CaughtFailureSchema.parse(error)) });
|
|
144
|
+
}
|
|
145
|
+
return admitWorkerPlan(result);
|
|
146
|
+
};
|
|
147
|
+
const boundPlanBuild = async (descriptor, sha) => {
|
|
148
|
+
let result;
|
|
149
|
+
try {
|
|
150
|
+
result = await boundPlanBuildCallable.call(rawClient, descriptor, sha);
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
if (error instanceof CapabilityError)
|
|
154
|
+
throw error;
|
|
155
|
+
throw new CapabilityError('DOKS worker planBuild operation failed.', 'INTERNAL', { cause: valueFreeFailure(CaughtFailureSchema.parse(error)) });
|
|
156
|
+
}
|
|
157
|
+
return admitWorkerPlan(result);
|
|
158
|
+
};
|
|
159
|
+
const admitted = Object.create(rawClient, {
|
|
160
|
+
planApply: {
|
|
161
|
+
value: boundPlanApply,
|
|
162
|
+
enumerable: true,
|
|
163
|
+
configurable: true,
|
|
164
|
+
writable: true
|
|
165
|
+
},
|
|
166
|
+
planBuild: {
|
|
167
|
+
value: boundPlanBuild,
|
|
168
|
+
enumerable: true,
|
|
169
|
+
configurable: true,
|
|
170
|
+
writable: true
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
originalReceivers.set(admitted, rawClient);
|
|
174
|
+
originalReceivers.set(rawClient, rawClient);
|
|
175
|
+
return admitted;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* The declared DOKS workers, read from the registry. The boot's one discovery
|
|
179
|
+
* pass registered every `infra/worker` descriptor its kind's patterns match
|
|
180
|
+
* (`*.infra.ts`, `infra/*.infra.ts`) in each declared package of the bound
|
|
181
|
+
* workspace; the command runs no discovery of its own.
|
|
182
|
+
*/
|
|
183
|
+
export function selectDoksWorkers(runtime, requested) {
|
|
184
|
+
const rawDescriptors = runtime.query('infra/worker').descriptors();
|
|
185
|
+
const available = rawDescriptors
|
|
186
|
+
.map(admitWorkerDescriptor)
|
|
187
|
+
.filter((descriptor) => descriptor.config !== undefined);
|
|
188
|
+
const selected = requested.length === 0
|
|
189
|
+
? available
|
|
190
|
+
: requested
|
|
191
|
+
.map((id) => available.find((descriptor) => descriptor.id === id))
|
|
192
|
+
.filter((descriptor) => descriptor !== undefined);
|
|
193
|
+
const missing = requested.filter((id) => !selected.some((descriptor) => descriptor.id === id));
|
|
194
|
+
if (missing.length > 0) {
|
|
195
|
+
throw new CapabilityError(`Worker descriptor(s) not found: ${missing.join(', ')}`, 'NOT_FOUND');
|
|
196
|
+
}
|
|
197
|
+
if (selected.length === 0) {
|
|
198
|
+
throw new CapabilityError('No infra/worker descriptors declare an adapter.', 'NOT_FOUND');
|
|
199
|
+
}
|
|
200
|
+
return selected;
|
|
201
|
+
}
|
|
202
|
+
export async function resolveDoksWorkerClient(runtime, options) {
|
|
203
|
+
const registeredClients = runtime.query('runtime/client').descriptors();
|
|
204
|
+
const adapterId = options.adapter ?? (registeredClients.length === 1 ? registeredClients[0]?.id : undefined);
|
|
205
|
+
if (!adapterId) {
|
|
206
|
+
throw new CapabilityError(registeredClients.length === 0
|
|
207
|
+
? 'No worker runtime client is registered.'
|
|
208
|
+
: 'Select the worker adapter declared by the descriptor.', registeredClients.length === 0 ? 'NOT_FOUND' : 'INVALID_INPUT', { reason: registeredClients.length === 0 ? 'doks-worker-client-absent' : 'worker-adapter-ambiguous' });
|
|
209
|
+
}
|
|
210
|
+
let base;
|
|
211
|
+
try {
|
|
212
|
+
if (runtime.hasKind('infra/worker')) {
|
|
213
|
+
const worker = await settle(() => runtime.query('infra/worker').withId(adapterId).resolve());
|
|
214
|
+
if (worker.ok) {
|
|
215
|
+
base = worker.value;
|
|
216
|
+
}
|
|
217
|
+
else if (!CapabilityError.isAbsenceOf(worker.cause, 'infra/worker', adapterId)) {
|
|
218
|
+
throw worker.cause;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
if (base == null) {
|
|
222
|
+
base = await runtime.query('runtime/client').withId(adapterId).resolve();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
catch (error) {
|
|
226
|
+
if (error instanceof CapabilityError) {
|
|
227
|
+
if (error.code === 'NOT_FOUND' &&
|
|
228
|
+
(!error.reason || error.reason === 'doks-worker-client-absent' || error.reason === 'descriptor-not-found' || error.reason === 'not-registered')) {
|
|
229
|
+
throw new CapabilityError('The worker adapter client is absent.', 'NOT_FOUND', {
|
|
230
|
+
reason: 'doks-worker-client-absent',
|
|
231
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(error))
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
throw error;
|
|
235
|
+
}
|
|
236
|
+
throw new CapabilityError('Failed to resolve worker adapter client.', 'INTERNAL', {
|
|
237
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(error))
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
if (base == null) {
|
|
241
|
+
throw new CapabilityError('The worker adapter client is absent.', 'NOT_FOUND', {
|
|
242
|
+
reason: 'doks-worker-client-absent'
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
const admittedBase = admitWorkerClient(base);
|
|
246
|
+
if (!options.mutate)
|
|
247
|
+
return admittedBase;
|
|
248
|
+
const baseReceiver = resolveReceiver(admittedBase);
|
|
249
|
+
let createFn;
|
|
250
|
+
try {
|
|
251
|
+
createFn = Object.hasOwn(admittedBase, 'create') ? admittedBase.create : baseReceiver.create;
|
|
252
|
+
}
|
|
253
|
+
catch (cause) {
|
|
254
|
+
if (cause instanceof CapabilityError)
|
|
255
|
+
throw cause;
|
|
256
|
+
throw new CapabilityError('The worker adapter client cannot create a credentialed execution scope.', 'INVALID_INPUT', {
|
|
257
|
+
reason: 'doks-worker-client-cannot-create',
|
|
258
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
const parsedCreate = FunctionSchema.safeParse(createFn);
|
|
262
|
+
if (!parsedCreate.success) {
|
|
263
|
+
throw new CapabilityError('The worker adapter client cannot create a credentialed execution scope.', 'NOT_FOUND', {
|
|
264
|
+
reason: 'doks-worker-client-cannot-create'
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
let scoped;
|
|
268
|
+
try {
|
|
269
|
+
scoped = await parsedCreate.data.call(baseReceiver, { environment: options.environment });
|
|
270
|
+
}
|
|
271
|
+
catch (cause) {
|
|
272
|
+
if (cause instanceof CapabilityError)
|
|
273
|
+
throw cause;
|
|
274
|
+
throw new CapabilityError('Failed to create credentialed execution scope.', 'INTERNAL', {
|
|
275
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
if (scoped == null) {
|
|
279
|
+
throw new CapabilityError('The credentialed worker adapter client is absent.', 'NOT_FOUND', {
|
|
280
|
+
reason: 'doks-worker-client-absent'
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
const admittedScoped = admitWorkerClient(scoped);
|
|
284
|
+
const scopedReceiver = resolveReceiver(admittedScoped);
|
|
285
|
+
let applyFn;
|
|
286
|
+
let statusFn;
|
|
287
|
+
try {
|
|
288
|
+
applyFn = Object.hasOwn(admittedScoped, 'apply') ? admittedScoped.apply : scopedReceiver.apply;
|
|
289
|
+
statusFn = Object.hasOwn(admittedScoped, 'status') ? admittedScoped.status : scopedReceiver.status;
|
|
290
|
+
}
|
|
291
|
+
catch (cause) {
|
|
292
|
+
if (cause instanceof CapabilityError)
|
|
293
|
+
throw cause;
|
|
294
|
+
throw new CapabilityError('The credentialed worker adapter client failed schema validation.', 'INVALID_INPUT', {
|
|
295
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
const parsedApply = FunctionSchema.safeParse(applyFn);
|
|
299
|
+
const parsedStatus = FunctionSchema.safeParse(statusFn);
|
|
300
|
+
if (!parsedApply.success || !parsedStatus.success) {
|
|
301
|
+
throw new CapabilityError('The credentialed worker adapter client must expose apply and status operations.', 'NOT_FOUND', {
|
|
302
|
+
reason: 'doks-worker-client-incomplete'
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
Object.defineProperty(admittedScoped, 'apply', {
|
|
306
|
+
value: parsedApply.data,
|
|
307
|
+
enumerable: true,
|
|
308
|
+
configurable: true,
|
|
309
|
+
writable: true
|
|
310
|
+
});
|
|
311
|
+
Object.defineProperty(admittedScoped, 'status', {
|
|
312
|
+
value: parsedStatus.data,
|
|
313
|
+
enumerable: true,
|
|
314
|
+
configurable: true,
|
|
315
|
+
writable: true
|
|
316
|
+
});
|
|
317
|
+
return admittedScoped;
|
|
318
|
+
}
|
|
319
|
+
export async function waitForDoksWorker(client, plan, options) {
|
|
320
|
+
const admittedPlan = admitWorkerPlan(plan);
|
|
321
|
+
const receiver = resolveReceiver(client);
|
|
322
|
+
let statusFn;
|
|
323
|
+
try {
|
|
324
|
+
statusFn = Object.hasOwn(client, 'status') ? client.status : receiver.status;
|
|
325
|
+
}
|
|
326
|
+
catch (cause) {
|
|
327
|
+
if (cause instanceof CapabilityError)
|
|
328
|
+
throw cause;
|
|
329
|
+
throw new CapabilityError('DOKS worker status operation check threw an unexpected error.', 'INVALID_INPUT', {
|
|
330
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
const parsedStatus = FunctionSchema.safeParse(statusFn);
|
|
334
|
+
if (!parsedStatus.success) {
|
|
335
|
+
throw new CapabilityError('DOKS worker status operation is unavailable.', 'NOT_FOUND');
|
|
336
|
+
}
|
|
337
|
+
const lifecycle = options.runtime.lifecycle;
|
|
338
|
+
const deadline = lifecycle.now() + options.timeoutMs;
|
|
339
|
+
const sleep = options.sleep ?? ((ms) => lifecycle.delay(ms));
|
|
340
|
+
while (lifecycle.now() <= deadline) {
|
|
341
|
+
const remainingMs = deadline - lifecycle.now();
|
|
342
|
+
if (remainingMs <= 0)
|
|
343
|
+
break;
|
|
344
|
+
let rawStatus;
|
|
345
|
+
try {
|
|
346
|
+
rawStatus = await lifecycle.wait(async () => parsedStatus.data.call(receiver, admittedPlan), {
|
|
347
|
+
timeoutMs: remainingMs,
|
|
348
|
+
reason: 'doks-worker-status'
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
catch (error) {
|
|
352
|
+
if (error instanceof CapabilityError) {
|
|
353
|
+
if (error.reason === 'wait-timeout') {
|
|
354
|
+
throw new CapabilityError(`DOKS worker status request timed out after ${options.timeoutMs}ms.`, 'TIMEOUT', { cause: error });
|
|
355
|
+
}
|
|
356
|
+
throw error;
|
|
357
|
+
}
|
|
358
|
+
throw new CapabilityError('DOKS worker status operation failed.', 'INTERNAL', {
|
|
359
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(error))
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
const status = admitWorkerStatus(rawStatus);
|
|
363
|
+
options.onStatus?.(status);
|
|
364
|
+
if (status.state === 'succeeded')
|
|
365
|
+
return status;
|
|
366
|
+
if (status.state === 'failed') {
|
|
367
|
+
throw new CapabilityError(`DOKS worker ${status.operation} failed: ${status.reason}`, 'INTERNAL');
|
|
368
|
+
}
|
|
369
|
+
await sleep(Math.min(options.pollIntervalMs ?? 5_000, Math.max(0, deadline - lifecycle.now())));
|
|
370
|
+
}
|
|
371
|
+
throw new CapabilityError(`DOKS worker operation timed out after ${options.timeoutMs}ms.`, 'TIMEOUT');
|
|
372
|
+
}
|
|
373
|
+
export async function applyAndWaitForDoksWorker(client, plan, options) {
|
|
374
|
+
const admittedPlan = admitWorkerPlan(plan);
|
|
375
|
+
const receiver = resolveReceiver(client);
|
|
376
|
+
let applyFn;
|
|
377
|
+
try {
|
|
378
|
+
applyFn = Object.hasOwn(client, 'apply') ? client.apply : receiver.apply;
|
|
379
|
+
}
|
|
380
|
+
catch (cause) {
|
|
381
|
+
if (cause instanceof CapabilityError)
|
|
382
|
+
throw cause;
|
|
383
|
+
throw new CapabilityError('DOKS worker apply operation check threw an unexpected error.', 'INVALID_INPUT', {
|
|
384
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(cause))
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
const parsedApply = FunctionSchema.safeParse(applyFn);
|
|
388
|
+
if (!parsedApply.success) {
|
|
389
|
+
throw new CapabilityError('DOKS worker apply operation is unavailable.', 'NOT_FOUND');
|
|
390
|
+
}
|
|
391
|
+
let rawAppliedPlan;
|
|
392
|
+
try {
|
|
393
|
+
rawAppliedPlan = await parsedApply.data.call(receiver, admittedPlan);
|
|
394
|
+
}
|
|
395
|
+
catch (error) {
|
|
396
|
+
if (error instanceof CapabilityError)
|
|
397
|
+
throw error;
|
|
398
|
+
throw new CapabilityError('DOKS worker apply operation failed.', 'INTERNAL', {
|
|
399
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(error))
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
const appliedPlan = admitWorkerPlan(rawAppliedPlan);
|
|
403
|
+
return waitForDoksWorker(client, appliedPlan, options);
|
|
404
|
+
}
|
|
405
|
+
export async function printWorkerPlan(runtime, plan) {
|
|
406
|
+
const admittedPlan = admitWorkerPlan(plan);
|
|
407
|
+
const stdio = await getRuntimeStdio(runtime);
|
|
408
|
+
stdio.write('stdout', `${JSON.stringify(admittedPlan, null, 2)}\n`);
|
|
409
|
+
}
|
|
410
|
+
//# sourceMappingURL=doks-worker-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doks-worker-runtime.js","sourceRoot":"","sources":["../../../src/cli/workers/doks-worker-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,mBAAmB,EACnB,MAAM,EACN,eAAe,EACf,gBAAgB,EAEhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAmB,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAyB,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AAGjE,MAAM,UAAU,qBAAqB,CAAC,UAAmB;IACxD,IAAI,CAAC;QACJ,MAAM,MAAM,GAAG,0BAA0B,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACrB,MAAM,IAAI,eAAe,CAAC,2CAA2C,EAAE,eAAe,EAAE;gBACvF,KAAK,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;aAChE,CAAC,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC;IACpB,CAAC;IAAC,OAAO,KAAK,EA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AAC;IAED,IAAI,cAAuB,CAAC;IAC5B,IAAI,CAAC;QACJ,cAAc,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACtE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,IAAI,KAAK,YAAY,eAAe;YAAE,MAAM,KAAK,CAAC;QAClD,MAAM,IAAI,eAAe,CAAC,qCAAqC,EAAE,UAAU,EAAE;YAC5E,KAAK,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SACzD,CAAC,CAAC;IACJ,CAAC;IACD,MAAM,WAAW,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC;IACpD,OAAO,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,OAA8C,EAAE,IAAoB;IACzG,MAAM,YAAY,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC;IAC7C,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly id: "infra-workers.apply";
|
|
3
|
+
readonly kind: "cli/command";
|
|
4
|
+
readonly name: "apply";
|
|
5
|
+
readonly description: "Plan or reconcile discovered DOKS worker descriptors through the provider runtime";
|
|
6
|
+
readonly group: "infra-workers";
|
|
7
|
+
readonly arguments: [{
|
|
8
|
+
readonly name: "worker";
|
|
9
|
+
readonly description: "Optional worker id(s) to apply, for example pdf-ocr-drainer. Defaults to all workers.";
|
|
10
|
+
readonly required: false;
|
|
11
|
+
readonly variadic: true;
|
|
12
|
+
}];
|
|
13
|
+
readonly options: [{
|
|
14
|
+
readonly flags: "--dry-run";
|
|
15
|
+
readonly description: "Show what would be applied without mutating the cluster";
|
|
16
|
+
}, {
|
|
17
|
+
readonly flags: "--timeout <ms>";
|
|
18
|
+
readonly description: "Bounded wait for Deployment readiness (default: 600000).";
|
|
19
|
+
}, {
|
|
20
|
+
readonly flags: "--environment <name>";
|
|
21
|
+
readonly description: "Vibes secrets environment to use for worker deploy credentials";
|
|
22
|
+
}];
|
|
23
|
+
readonly surfaces: ["cli"];
|
|
24
|
+
readonly hardware: ["consumer", "cloud"];
|
|
25
|
+
readonly enabled: true;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=infra-workers-apply.cli-command.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-workers-apply.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/workers/infra-workers-apply.cli-command.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAyBG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createRuntimeAsset } from '@vibesdotdev/kernel';
|
|
2
|
+
export default createRuntimeAsset({
|
|
3
|
+
id: 'infra-workers.apply',
|
|
4
|
+
kind: 'cli/command',
|
|
5
|
+
name: 'apply',
|
|
6
|
+
description: 'Plan or reconcile discovered DOKS worker descriptors through the provider runtime',
|
|
7
|
+
group: 'infra-workers',
|
|
8
|
+
arguments: [
|
|
9
|
+
{
|
|
10
|
+
name: 'worker',
|
|
11
|
+
description: 'Optional worker id(s) to apply, for example pdf-ocr-drainer. Defaults to all workers.',
|
|
12
|
+
required: false,
|
|
13
|
+
variadic: true
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
options: [
|
|
17
|
+
{ flags: '--dry-run', description: 'Show what would be applied without mutating the cluster' },
|
|
18
|
+
{ flags: '--timeout <ms>', description: 'Bounded wait for Deployment readiness (default: 600000).' },
|
|
19
|
+
{
|
|
20
|
+
flags: '--environment <name>',
|
|
21
|
+
description: 'Vibes secrets environment to use for worker deploy credentials'
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
surfaces: ['cli'],
|
|
25
|
+
hardware: ['consumer', 'cloud'],
|
|
26
|
+
enabled: true
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=infra-workers-apply.cli-command.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-workers-apply.cli-command.descriptor.js","sourceRoot":"","sources":["../../../src/cli/workers/infra-workers-apply.cli-command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAe,kBAAkB,CAAC;IACjC,EAAE,EAAE,qBAAqB;IACzB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,mFAAmF;IAChG,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE;QACV;YACC,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,uFAAuF;YACpG,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,IAAI;SACd;KACD;IACD,OAAO,EAAE;QACR,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,yDAAyD,EAAE;QAC9F,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,0DAA0D,EAAE;QACpG;YACC,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,gEAAgE;SAC7E;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommandContext, CommandOptions } from '@vibesdotdev/cli';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
execute(args: CommandOptions, opts: CommandOptions, context: CommandContext): Promise<void>;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=infra-workers-apply.cli-command.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-workers-apply.cli-command.impl.d.ts","sourceRoot":"","sources":["../../../src/cli/workers/infra-workers-apply.cli-command.impl.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;kBA0ClD,cAAc,QAAQ,cAAc,WAAW,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;;AADlG,wBAiCE"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { admitWorkerPlan, applyAndWaitForDoksWorker, printWorkerPlan, resolveDoksWorkerClient, selectDoksWorkers } from "./doks-worker-runtime.js";
|
|
2
|
+
import { CapabilityError, CaughtFailureSchema, getRuntimeStdio, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
3
|
+
import { z } from 'zod/v4';
|
|
4
|
+
const NonEmptyStringSchema = z.string().trim().min(1);
|
|
5
|
+
const FlagSchema = z.union([z.literal(true), z.literal('true')]);
|
|
6
|
+
const ArraySchema = z.array(z.unknown());
|
|
7
|
+
const PositiveFiniteNumberSchema = z.number().finite().positive();
|
|
8
|
+
function readString(value) {
|
|
9
|
+
const parsed = NonEmptyStringSchema.safeParse(value);
|
|
10
|
+
return parsed.success ? parsed.data : undefined;
|
|
11
|
+
}
|
|
12
|
+
function readBoolean(value) {
|
|
13
|
+
return FlagSchema.safeParse(value).success;
|
|
14
|
+
}
|
|
15
|
+
function readStrings(value) {
|
|
16
|
+
const single = NonEmptyStringSchema.safeParse(value);
|
|
17
|
+
if (single.success)
|
|
18
|
+
return [single.data];
|
|
19
|
+
const array = ArraySchema.safeParse(value);
|
|
20
|
+
if (array.success) {
|
|
21
|
+
const items = [];
|
|
22
|
+
for (const item of array.data) {
|
|
23
|
+
const parsed = NonEmptyStringSchema.safeParse(item);
|
|
24
|
+
if (parsed.success)
|
|
25
|
+
items.push(parsed.data);
|
|
26
|
+
}
|
|
27
|
+
return items;
|
|
28
|
+
}
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
function readTimeout(value, fallback) {
|
|
32
|
+
const coerced = z.coerce.number().safeParse(value);
|
|
33
|
+
if (coerced.success && PositiveFiniteNumberSchema.safeParse(coerced.data).success) {
|
|
34
|
+
return coerced.data;
|
|
35
|
+
}
|
|
36
|
+
return fallback;
|
|
37
|
+
}
|
|
38
|
+
export default {
|
|
39
|
+
async execute(args, opts, context) {
|
|
40
|
+
const runtime = context.runtime;
|
|
41
|
+
const workers = selectDoksWorkers(runtime, readStrings(args.worker));
|
|
42
|
+
const dryRun = readBoolean(opts.dryRun);
|
|
43
|
+
const stdio = await getRuntimeStdio(runtime);
|
|
44
|
+
for (const worker of workers) {
|
|
45
|
+
const client = await resolveDoksWorkerClient(runtime, {
|
|
46
|
+
adapter: worker.config?.adapter,
|
|
47
|
+
environment: readString(opts.environment),
|
|
48
|
+
mutate: !dryRun
|
|
49
|
+
});
|
|
50
|
+
const planApply = client.planApply;
|
|
51
|
+
let plan;
|
|
52
|
+
try {
|
|
53
|
+
const rawPlan = await planApply.call(client, worker);
|
|
54
|
+
plan = admitWorkerPlan(rawPlan);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
if (error instanceof CapabilityError)
|
|
58
|
+
throw error;
|
|
59
|
+
throw new CapabilityError('DOKS worker planning failed.', 'INTERNAL', {
|
|
60
|
+
cause: valueFreeFailure(CaughtFailureSchema.parse(error))
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (dryRun)
|
|
64
|
+
await printWorkerPlan(runtime, plan);
|
|
65
|
+
else {
|
|
66
|
+
await applyAndWaitForDoksWorker(client, plan, {
|
|
67
|
+
runtime,
|
|
68
|
+
timeoutMs: readTimeout(opts.timeout, 10 * 60_000),
|
|
69
|
+
onStatus: (status) => stdio.write('stdout', `[workers apply] ${status.worker}: ${status.state} (${status.reason})\n`)
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=infra-workers-apply.cli-command.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-workers-apply.cli-command.impl.js","sourceRoot":"","sources":["../../../src/cli/workers/infra-workers-apply.cli-command.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EACvB,iBAAiB,EAEjB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACtD,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACjE,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AACzC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC;AAElE,SAAS,UAAU,CAAC,KAA6B;IAChD,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;AAED,SAAS,WAAW,CAAC,KAA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mB,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,MAAM,KAAK,CAAC;iBACrH,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;IACF,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly id: "infra-workers.build";
|
|
3
|
+
readonly kind: "cli/command";
|
|
4
|
+
readonly name: "build";
|
|
5
|
+
readonly description: "Plan or submit a source-revision-bound DOKS worker image build through the provider runtime";
|
|
6
|
+
readonly group: "infra-workers";
|
|
7
|
+
readonly arguments: [{
|
|
8
|
+
readonly name: "worker";
|
|
9
|
+
readonly description: "Worker image target id, for example pdf-ocr-drainer (run with --dry-run to see the rendered Job).";
|
|
10
|
+
readonly required: true;
|
|
11
|
+
readonly variadic: false;
|
|
12
|
+
}];
|
|
13
|
+
readonly options: [{
|
|
14
|
+
readonly flags: "--sha <sha>";
|
|
15
|
+
readonly description: "Exact 40-character git commit SHA to build (must already be pushed to origin).";
|
|
16
|
+
}, {
|
|
17
|
+
readonly flags: "--dry-run";
|
|
18
|
+
readonly description: "Print the rendered Kaniko Job manifest without submitting.";
|
|
19
|
+
}, {
|
|
20
|
+
readonly flags: "--timeout <ms>";
|
|
21
|
+
readonly description: "Bounded wait for the image-build Job (default: 2700000).";
|
|
22
|
+
}, {
|
|
23
|
+
readonly flags: "--environment <name>";
|
|
24
|
+
readonly description: "Vibes secrets environment to use for build credentials";
|
|
25
|
+
}];
|
|
26
|
+
readonly surfaces: ["cli"];
|
|
27
|
+
readonly hardware: ["consumer", "cloud"];
|
|
28
|
+
readonly enabled: true;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=infra-workers-build.cli-command.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infra-workers-build.cli-command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/cli/workers/infra-workers-build.cli-command.descriptor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBA+BG"}
|