@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,313 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Publish invocation and workspace discovery: which package directories were
|
|
3
|
+
* requested, which workspace root owns them, and the workspace package inventory.
|
|
4
|
+
*/
|
|
5
|
+
import { realpathChecked, resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
6
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
7
|
+
import { CapabilityError, settle, settleNow, valueFreeFailure, } from "@vibesdotdev/kernel";
|
|
8
|
+
import { z } from "zod/v4";
|
|
9
|
+
import { isPathAbsentError, isWithinDirectory, pathExists } from "./fs-paths.js";
|
|
10
|
+
import { parsePublisherManifest, readDeclaredWorkspacePatterns, workspaceRootManifestSchema, } from "./publisher-manifest.js";
|
|
11
|
+
import { RELEASE_EXECUTOR_PATH } from "./release-executor.js";
|
|
12
|
+
import { ENVIRONMENT_LOADER_ID, listDeclaredPackages, listPatternPackages } from "@vibesdotdev/kernel/bootstrap";
|
|
13
|
+
import { assertCanonicalRegistryReleaseWorkspaceFile, resolveRegistryReleaseWorkspacePaths, } from "./release-lock.js";
|
|
14
|
+
/** Platform and architecture the runtime's environment captured. */
|
|
15
|
+
export function hostPlatformFacts(runtime) {
|
|
16
|
+
const platform = runtime.localEnvironment.getPlatform?.();
|
|
17
|
+
const architecture = runtime.localEnvironment.getArch?.();
|
|
18
|
+
if (!platform || !architecture) {
|
|
19
|
+
throw new CapabilityError("This runtime does not provide host platform facts.", "UNAVAILABLE", { reason: "host-platform-unavailable" });
|
|
20
|
+
}
|
|
21
|
+
return { platform, architecture };
|
|
22
|
+
}
|
|
23
|
+
/** True when the manifest's `os`/`cpu` allow this platform. */
|
|
24
|
+
export function isPackagePlatformCompatible(manifest, platform, architecture) {
|
|
25
|
+
const allows = (values, current) => {
|
|
26
|
+
if (!values || values.length === 0)
|
|
27
|
+
return true;
|
|
28
|
+
if (values.includes(`!${current}`))
|
|
29
|
+
return false;
|
|
30
|
+
const positive = values.filter((value) => !value.startsWith("!"));
|
|
31
|
+
return positive.length === 0 || positive.includes(current);
|
|
32
|
+
};
|
|
33
|
+
return allows(manifest.os, platform) && allows(manifest.cpu, architecture);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Absolute package directories for the requested paths. Relative paths resolve
|
|
37
|
+
* against the invocation cwd. An absent value or an empty string selects the
|
|
38
|
+
* cwd itself. Any other present value must be a string or an array of strings.
|
|
39
|
+
*/
|
|
40
|
+
export async function resolvePublishPackageDirs(runtime, paths, cwd) {
|
|
41
|
+
const absent = z.undefined().safeParse(paths);
|
|
42
|
+
const empty = z.literal("").safeParse(paths);
|
|
43
|
+
let requested;
|
|
44
|
+
if (absent.success || empty.success) {
|
|
45
|
+
requested = ["."];
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const text = z.string().safeParse(paths);
|
|
49
|
+
if (text.success) {
|
|
50
|
+
requested = [text.data];
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
const list = z.array(z.unknown()).safeParse(paths);
|
|
54
|
+
if (!list.success) {
|
|
55
|
+
throw new CapabilityError("Publish paths are invalid.", "INVALID_INPUT", { reason: "publish-paths-invalid" });
|
|
56
|
+
}
|
|
57
|
+
requested = [];
|
|
58
|
+
for (const [index, item] of list.data.entries()) {
|
|
59
|
+
const path = z.string().safeParse(item);
|
|
60
|
+
if (!path.success) {
|
|
61
|
+
throw new CapabilityError("Publish paths are invalid.", "INVALID_INPUT", {
|
|
62
|
+
reason: "publish-paths-invalid",
|
|
63
|
+
details: { index },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
requested.push(path.data);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const pathOwner = await getRuntimePath(runtime);
|
|
71
|
+
return requested.map((packagePath) => pathOwner.resolve(cwd, packagePath));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The publish workspace is the bound workspace (`runtime/workspace-path`):
|
|
75
|
+
* `--workspace-root`, else the nearest workspace root above the invocation
|
|
76
|
+
* cwd. Every requested package must sit inside it; nothing walks from a
|
|
77
|
+
* package to find another root.
|
|
78
|
+
*/
|
|
79
|
+
export async function resolvePublishWorkspaceRoot(runtime, packageDirs, workspaceRoot) {
|
|
80
|
+
if (packageDirs.length === 0) {
|
|
81
|
+
throw new CapabilityError("npm publish requires at least one package path", "INVALID_INPUT", { reason: "package-path-missing" });
|
|
82
|
+
}
|
|
83
|
+
const pathOwner = await getRuntimePath(runtime);
|
|
84
|
+
const files = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
85
|
+
const canonical = await realpathChecked(files, workspaceRoot);
|
|
86
|
+
for (const dir of packageDirs) {
|
|
87
|
+
const resolved = await settle(() => realpathChecked(files, dir));
|
|
88
|
+
if (!resolved.ok && !isPathAbsentError(resolved.cause))
|
|
89
|
+
throw resolved.cause;
|
|
90
|
+
const canonicalPackageDir = resolved.ok
|
|
91
|
+
? resolved.value
|
|
92
|
+
: pathOwner.resolve(dir);
|
|
93
|
+
if (!(await isWithinDirectory(runtime, canonical, canonicalPackageDir))) {
|
|
94
|
+
throw new CapabilityError(`npm publish path resolves outside its selected workspace root: ${canonicalPackageDir}`, "INVALID_INPUT", {
|
|
95
|
+
reason: "package-outside-workspace",
|
|
96
|
+
recoveryHint: "Run from the package's workspace, or pass --workspace-root <dir> for a workspace that contains it.",
|
|
97
|
+
details: { packageDir: canonicalPackageDir, workspaceRoot: canonical },
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return canonical;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The sealed follow runs the executor inside the publish workspace itself,
|
|
105
|
+
* which must carry it at {@link RELEASE_EXECUTOR_PATH}; no ancestor is searched.
|
|
106
|
+
*/
|
|
107
|
+
export async function resolveSealedFollowWorkspaceRoot(runtime, workspaceRoot) {
|
|
108
|
+
const files = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
109
|
+
const pathOwner = await getRuntimePath(runtime);
|
|
110
|
+
const root = await realpathChecked(files, workspaceRoot);
|
|
111
|
+
if (await pathExists(runtime, pathOwner.join(root, RELEASE_EXECUTOR_PATH), { binding: false })) {
|
|
112
|
+
return root;
|
|
113
|
+
}
|
|
114
|
+
throw new CapabilityError(`Sealed publish follow requires a workspace that contains ${RELEASE_EXECUTOR_PATH}; the bound workspace is ${workspaceRoot}`, "INVALID_INPUT", {
|
|
115
|
+
reason: "release-executor-missing",
|
|
116
|
+
recoveryHint: "Run from the release snapshot root, or pass --workspace-root <snapshot root>.",
|
|
117
|
+
details: { workspaceRoot: root, executorPath: RELEASE_EXECUTOR_PATH },
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
async function readWorkspaceText(runtime, path) {
|
|
121
|
+
const read = await settle(async () => {
|
|
122
|
+
const files = await resolveFileSystemAdapter(runtime);
|
|
123
|
+
return z.string().parse(await files.readFile(path, "utf8"));
|
|
124
|
+
});
|
|
125
|
+
if (read.ok)
|
|
126
|
+
return read.value;
|
|
127
|
+
if (isPathAbsentError(read.cause))
|
|
128
|
+
return null;
|
|
129
|
+
throw read.cause;
|
|
130
|
+
}
|
|
131
|
+
/** Every package the workspace manifest declares, by name. */
|
|
132
|
+
export async function collectWorkspacePackages(runtime, workspaceRoot, workspaceManifestPath = "package.json") {
|
|
133
|
+
const pathOwner = await getRuntimePath(runtime);
|
|
134
|
+
const hostFiles = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
135
|
+
if (pathOwner.isAbsolute(workspaceManifestPath)) {
|
|
136
|
+
throw new Error("Workspace inventory manifest path must be relative to the workspace root");
|
|
137
|
+
}
|
|
138
|
+
const manifestAbsolutePath = pathOwner.resolve(workspaceRoot, workspaceManifestPath);
|
|
139
|
+
const manifestPosition = pathOwner.relative(pathOwner.resolve(workspaceRoot), manifestAbsolutePath);
|
|
140
|
+
if (!manifestPosition ||
|
|
141
|
+
manifestPosition === ".." ||
|
|
142
|
+
manifestPosition.startsWith("../") ||
|
|
143
|
+
manifestPosition.startsWith("..\\") ||
|
|
144
|
+
pathOwner.isAbsolute(manifestPosition)) {
|
|
145
|
+
throw new Error("Workspace inventory manifest escapes the workspace root");
|
|
146
|
+
}
|
|
147
|
+
const manifestText = await readWorkspaceText(runtime, manifestAbsolutePath);
|
|
148
|
+
if (manifestText === null) {
|
|
149
|
+
throw new Error(`${workspaceManifestPath} is unreadable`);
|
|
150
|
+
}
|
|
151
|
+
const rootRaw = JSON.parse(manifestText);
|
|
152
|
+
const rootRecord = z.record(z.string(), z.unknown()).parse(rootRaw);
|
|
153
|
+
const hasDeclaredWorkspaces = Object.prototype.hasOwnProperty.call(rootRecord, "workspaces");
|
|
154
|
+
const rootVibes = z.record(z.string(), z.unknown()).safeParse(rootRecord.vibes);
|
|
155
|
+
const hasDeclaredPackageRoots = rootVibes.success &&
|
|
156
|
+
Array.isArray(rootVibes.data.packageRoots) &&
|
|
157
|
+
rootVibes.data.packageRoots.length > 0;
|
|
158
|
+
if (!hasDeclaredWorkspaces && !hasDeclaredPackageRoots) {
|
|
159
|
+
const rootManifest = parsePublisherManifest(rootRaw);
|
|
160
|
+
if (!rootManifest.name || !rootManifest.version) {
|
|
161
|
+
throw new Error(`${workspaceManifestPath} must include name and version when no workspaces are declared`);
|
|
162
|
+
}
|
|
163
|
+
const canonicalRoot = await realpathChecked(hostFiles, workspaceRoot);
|
|
164
|
+
return new Map([
|
|
165
|
+
[
|
|
166
|
+
rootManifest.name,
|
|
167
|
+
{
|
|
168
|
+
directory: canonicalRoot,
|
|
169
|
+
manifest: {
|
|
170
|
+
...rootManifest,
|
|
171
|
+
name: rootManifest.name,
|
|
172
|
+
version: rootManifest.version,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
]);
|
|
177
|
+
}
|
|
178
|
+
const workspacePatterns = hasDeclaredWorkspaces
|
|
179
|
+
? readDeclaredWorkspacePatterns(rootRecord.workspaces)
|
|
180
|
+
: [];
|
|
181
|
+
if (workspacePatterns === undefined) {
|
|
182
|
+
throw new Error(`${workspaceManifestPath} must declare a string workspaces array for release inventory`);
|
|
183
|
+
}
|
|
184
|
+
const canonicalRoot = await realpathChecked(hostFiles, workspaceRoot);
|
|
185
|
+
const packages = new Map();
|
|
186
|
+
const directories = new Set();
|
|
187
|
+
// A release inventory names packages, never a recursion or an escape.
|
|
188
|
+
for (const declaredPattern of workspacePatterns) {
|
|
189
|
+
const pattern = declaredPattern.startsWith("!") ? declaredPattern.slice(1) : declaredPattern;
|
|
190
|
+
if (!pattern ||
|
|
191
|
+
pathOwner.isAbsolute(pattern) ||
|
|
192
|
+
pattern.split("/").some((part) => !part || part === ".." || part === "**")) {
|
|
193
|
+
throw new Error(`Invalid workspace package pattern: ${declaredPattern}`);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// The kernel's declared-package inventory is the one source: the root
|
|
197
|
+
// manifest's workspaces (braces, negation) plus its declared
|
|
198
|
+
// vibes.packageRoots; a named release manifest's own patterns read through
|
|
199
|
+
// the same rules. No publisher-local expansion.
|
|
200
|
+
const declaredDirectories = await declaredPackageDirectories(runtime, canonicalRoot, workspaceManifestPath === "package.json" ? undefined : workspacePatterns);
|
|
201
|
+
for (const directory of declaredDirectories) {
|
|
202
|
+
const canonical = await settle(() => realpathChecked(hostFiles, directory));
|
|
203
|
+
if (!canonical.ok && isPathAbsentError(canonical.cause)) {
|
|
204
|
+
throw new CapabilityError(`Workspace package path does not exist: ${pathOwner.relative(workspaceRoot, directory)}`, "NOT_FOUND", {
|
|
205
|
+
reason: "workspace-package-missing",
|
|
206
|
+
cause: valueFreeFailure(canonical.cause),
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
if (!canonical.ok)
|
|
210
|
+
throw canonical.cause;
|
|
211
|
+
const canonicalDirectory = canonical.value;
|
|
212
|
+
if (canonicalDirectory !== canonicalRoot &&
|
|
213
|
+
!canonicalDirectory.startsWith(`${canonicalRoot}/`)) {
|
|
214
|
+
throw new Error(`Workspace package escapes the workspace root: ${directory}`);
|
|
215
|
+
}
|
|
216
|
+
// Match Bun workspace membership: overlapping patterns de-duplicate an
|
|
217
|
+
// identical canonical directory. Distinct directories with one package
|
|
218
|
+
// name still fail below.
|
|
219
|
+
if (directories.has(canonicalDirectory))
|
|
220
|
+
continue;
|
|
221
|
+
// Same rule as the deploy-side reader: a glob match with no manifest is not a
|
|
222
|
+
// workspace member. Fold residue at a retired package path must not be able to
|
|
223
|
+
// abort a publish closure. A manifest that exists but does not parse still throws.
|
|
224
|
+
const manifestSource = await readWorkspaceText(runtime, pathOwner.join(canonicalDirectory, "package.json"));
|
|
225
|
+
if (manifestSource === null)
|
|
226
|
+
continue;
|
|
227
|
+
directories.add(canonicalDirectory);
|
|
228
|
+
const parsedRaw = settleNow(() => JSON.parse(manifestSource));
|
|
229
|
+
if (!parsedRaw.ok) {
|
|
230
|
+
throw new CapabilityError(`Invalid workspace package manifest at ${pathOwner.relative(workspaceRoot, canonicalDirectory)}.`, "INVALID_INPUT", {
|
|
231
|
+
reason: "workspace-manifest-invalid",
|
|
232
|
+
cause: valueFreeFailure(parsedRaw.cause),
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
// A private package is not a publisher manifest. App hosts use visibility
|
|
236
|
+
// "app"; other private roots use values such as "never-publish". Both are
|
|
237
|
+
// absent from the publish inventory.
|
|
238
|
+
const privateMember = z
|
|
239
|
+
.object({ private: z.literal(true) })
|
|
240
|
+
.loose()
|
|
241
|
+
.safeParse(parsedRaw.value);
|
|
242
|
+
if (privateMember.success)
|
|
243
|
+
continue;
|
|
244
|
+
const appMember = workspaceRootManifestSchema.safeParse(parsedRaw.value);
|
|
245
|
+
if (appMember.success && (appMember.data.vibes?.visibility === "app" || appMember.data.vibes?.visibility === "never-publish"))
|
|
246
|
+
continue;
|
|
247
|
+
const parsedManifest = settleNow(() => parsePublisherManifest(parsedRaw.value));
|
|
248
|
+
if (!parsedManifest.ok) {
|
|
249
|
+
throw new CapabilityError(`Invalid workspace package manifest at ${pathOwner.relative(workspaceRoot, canonicalDirectory)}.`, "INVALID_INPUT", {
|
|
250
|
+
reason: "workspace-manifest-invalid",
|
|
251
|
+
cause: valueFreeFailure(parsedManifest.cause),
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
const parsed = parsedManifest.value;
|
|
255
|
+
if ((!parsed.name || !parsed.version) && parsed.private === true)
|
|
256
|
+
continue;
|
|
257
|
+
if (!parsed.name || !parsed.version) {
|
|
258
|
+
throw new Error(`${pathOwner.relative(workspaceRoot, canonicalDirectory)}/package.json must include name and version`);
|
|
259
|
+
}
|
|
260
|
+
if (packages.has(parsed.name))
|
|
261
|
+
throw new Error(`Duplicate workspace package name: ${parsed.name}`);
|
|
262
|
+
packages.set(parsed.name, {
|
|
263
|
+
directory: canonicalDirectory,
|
|
264
|
+
manifest: { ...parsed, name: parsed.name, version: parsed.version },
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
return packages;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* The package directories the workspace at `root` declares, root excluded,
|
|
271
|
+
* through the kernel's inventory (`listDeclaredPackages`: workspaces plus
|
|
272
|
+
* `vibes.packageRoots`), or, for a named release manifest, its `patterns`
|
|
273
|
+
* through the same rules (`listPatternPackages`).
|
|
274
|
+
*/
|
|
275
|
+
export async function declaredPackageDirectories(runtime, root, patterns) {
|
|
276
|
+
const loader = await runtime
|
|
277
|
+
.query("runtime/loader")
|
|
278
|
+
.withId(ENVIRONMENT_LOADER_ID)
|
|
279
|
+
.resolve();
|
|
280
|
+
const listed = patterns === undefined
|
|
281
|
+
? listDeclaredPackages(loader, root)
|
|
282
|
+
: listPatternPackages(loader, root, patterns);
|
|
283
|
+
return listed.filter((directory) => directory !== root);
|
|
284
|
+
}
|
|
285
|
+
/** Select the exact package inventory before release-set planning begins. */
|
|
286
|
+
export async function collectRegistryReleaseWorkspaceInventory(options) {
|
|
287
|
+
const releaseWorkspacePaths = options.releaseWorkspaceManifest
|
|
288
|
+
? await resolveRegistryReleaseWorkspacePaths({
|
|
289
|
+
runtime: options.runtime,
|
|
290
|
+
workspaceRoot: options.workspaceRoot,
|
|
291
|
+
workspaceManifestPath: options.releaseWorkspaceManifest,
|
|
292
|
+
})
|
|
293
|
+
: undefined;
|
|
294
|
+
if (releaseWorkspacePaths) {
|
|
295
|
+
await Promise.all([
|
|
296
|
+
assertCanonicalRegistryReleaseWorkspaceFile({
|
|
297
|
+
runtime: options.runtime,
|
|
298
|
+
workspaceRoot: options.workspaceRoot,
|
|
299
|
+
path: releaseWorkspacePaths.workspaceManifestPath,
|
|
300
|
+
}),
|
|
301
|
+
assertCanonicalRegistryReleaseWorkspaceFile({
|
|
302
|
+
runtime: options.runtime,
|
|
303
|
+
workspaceRoot: options.workspaceRoot,
|
|
304
|
+
path: releaseWorkspacePaths.lockfilePath,
|
|
305
|
+
}),
|
|
306
|
+
]);
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
workspace: await collectWorkspacePackages(options.runtime, options.workspaceRoot, releaseWorkspacePaths?.workspaceManifestPath),
|
|
310
|
+
releaseWorkspacePaths,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
//# sourceMappingURL=workspace-discovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-discovery.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/workspace-discovery.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACL,eAAe,EACf,MAAM,EACN,SAAS,EACT,gBAAgB,GAGjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,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qBAAqB,CAC7C;QACD,qBAAqB;KACtB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { type RegistryPublishManifest } from '@vibesdotdev/registry';
|
|
2
|
+
import { valueFreeFailure, type RuntimeRef } from '@vibesdotdev/kernel';
|
|
3
|
+
/**
|
|
4
|
+
* The registry's `{ error }` text for a failed response, only when it is
|
|
5
|
+
* short and reads the same after the shared credential redaction (with the
|
|
6
|
+
* request's token as a secret). Any other body is never read into a failure.
|
|
7
|
+
*/
|
|
8
|
+
export declare function registryErrorText(response: Response, secrets: readonly string[]): Promise<string | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* What a refusal's headers say beyond its status: the wait a rate limit asks for, the
|
|
11
|
+
* body's media type (an HTML page is an edge refusal, not the registry's JSON), and
|
|
12
|
+
* npm's `npm-notice` text when it reads the same after credential redaction.
|
|
13
|
+
*/
|
|
14
|
+
export type RegistryRefusalDetails = {
|
|
15
|
+
status: number;
|
|
16
|
+
retryAfter?: string;
|
|
17
|
+
contentType?: string;
|
|
18
|
+
notice?: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function registryRefusalDetails(response: Response, secrets: readonly string[]): RegistryRefusalDetails;
|
|
21
|
+
export type AttestedPublishManifest = RegistryPublishManifest & {
|
|
22
|
+
name: string;
|
|
23
|
+
version: string;
|
|
24
|
+
};
|
|
25
|
+
export type AttestedPublishPayload = {
|
|
26
|
+
_id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
'dist-tags': Record<string, string>;
|
|
29
|
+
versions: Record<string, AttestedPublishManifest & {
|
|
30
|
+
dist: Partial<TarballDigests> & {
|
|
31
|
+
tarball: string;
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
_attachments: Record<string, {
|
|
35
|
+
content_type: string;
|
|
36
|
+
data: string;
|
|
37
|
+
length: number;
|
|
38
|
+
}>;
|
|
39
|
+
access?: string;
|
|
40
|
+
};
|
|
41
|
+
export declare function tarballFilename(name: string, version: string): string;
|
|
42
|
+
export declare function extractPackageJsonFromTgz(gzipBytes: Uint8Array): Promise<RegistryPublishManifest>;
|
|
43
|
+
export declare function bytesToBase64(bytes: Uint8Array): string;
|
|
44
|
+
/** Default dist-tag when no explicit tag is supplied: `rc` for prereleases, `latest` for stable releases. */
|
|
45
|
+
export declare function defaultDistTagForVersion(version: string): string;
|
|
46
|
+
/** The tarball digests a registry records on the version (`dist.integrity`, `dist.shasum`). */
|
|
47
|
+
export type TarballDigests = {
|
|
48
|
+
integrity: string;
|
|
49
|
+
shasum: string;
|
|
50
|
+
};
|
|
51
|
+
export declare function buildAttestedPublishPayload(options: {
|
|
52
|
+
tarball: Uint8Array;
|
|
53
|
+
registry: string;
|
|
54
|
+
tag?: string;
|
|
55
|
+
access?: string;
|
|
56
|
+
/** Digests of exactly these bytes, recorded on the version for registries that require them. */
|
|
57
|
+
dist?: TarballDigests;
|
|
58
|
+
}): Promise<{
|
|
59
|
+
name: string;
|
|
60
|
+
version: string;
|
|
61
|
+
payload: AttestedPublishPayload;
|
|
62
|
+
url: string;
|
|
63
|
+
}>;
|
|
64
|
+
export declare function putAttestedPackument(options: {
|
|
65
|
+
runtime: RuntimeRef;
|
|
66
|
+
/** The packed tarball: a file the publisher staged, or bytes already read and verified. */
|
|
67
|
+
tarball: {
|
|
68
|
+
path: string;
|
|
69
|
+
} | {
|
|
70
|
+
bytes: Uint8Array;
|
|
71
|
+
};
|
|
72
|
+
registry: string;
|
|
73
|
+
token: string;
|
|
74
|
+
tag?: string;
|
|
75
|
+
access?: string;
|
|
76
|
+
dist?: TarballDigests;
|
|
77
|
+
/** A one-time password for a registry account that requires 2FA on writes (`npm-otp`). */
|
|
78
|
+
otp?: string;
|
|
79
|
+
/**
|
|
80
|
+
* npm's web second factor: the PUT asks for it (`npm-auth-type: web`), a 401 names the
|
|
81
|
+
* approval URL, `announce` shows it to the account owner, and the PUT runs once more
|
|
82
|
+
* with the one-time token the registry hands back after approval.
|
|
83
|
+
*/
|
|
84
|
+
webAuth?: WebAuthOptions;
|
|
85
|
+
fetchImpl?: typeof fetch;
|
|
86
|
+
}): Promise<{
|
|
87
|
+
name: string;
|
|
88
|
+
version: string;
|
|
89
|
+
status: number;
|
|
90
|
+
latestTag: LatestTagOutcome;
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* One registry write (`PUT` of a JSON body) answered with the second factor the
|
|
94
|
+
* caller holds: a one-time password, or npm's web flow (the write asks for it, a
|
|
95
|
+
* 401 names the approval URL, `announce` shows it, and the write runs once more
|
|
96
|
+
* with the token the approval issues). The final response is returned unread.
|
|
97
|
+
*/
|
|
98
|
+
export declare function writeWithSecondFactor(options: {
|
|
99
|
+
runtime: RuntimeRef;
|
|
100
|
+
url: string;
|
|
101
|
+
body: string;
|
|
102
|
+
token: string;
|
|
103
|
+
otp?: string;
|
|
104
|
+
webAuth?: WebAuthOptions;
|
|
105
|
+
fetchImpl: typeof fetch;
|
|
106
|
+
}): Promise<Response>;
|
|
107
|
+
/**
|
|
108
|
+
* npm's web second factor. `session` is the `npm-session` id npm's own client sends on
|
|
109
|
+
* every request of one command; the challenge PUT and the `doneUrl` poll carry the same one.
|
|
110
|
+
*/
|
|
111
|
+
export type WebAuthOptions = {
|
|
112
|
+
announce: (authUrl: string) => void | Promise<void>;
|
|
113
|
+
session: string;
|
|
114
|
+
timeoutMs?: number;
|
|
115
|
+
/** Ask for a fresh approval each time one expires unanswered, instead of failing the write. */
|
|
116
|
+
retryOnTimeout?: boolean;
|
|
117
|
+
};
|
|
118
|
+
/** What a non-`latest` publish did to `latest`: moved with the version, left alone, or not read (so not moved). */
|
|
119
|
+
export type LatestTagOutcome = {
|
|
120
|
+
state: 'moved' | 'unchanged';
|
|
121
|
+
} | {
|
|
122
|
+
state: 'unread';
|
|
123
|
+
failure: ReturnType<typeof valueFreeFailure>;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Whether `published`, released on a tag other than `latest`, displaces the
|
|
127
|
+
* package's current `latest`. Prereleases (`1.0.0-rc.*`, etc.) are published on
|
|
128
|
+
* `rc` only and never displace `latest`. A stable release displaces `latest`
|
|
129
|
+
* when `latest` is absent (or not a version) or when `latest` is an older
|
|
130
|
+
* prerelease (`gt(published, latest)`). A stable published on another tag never
|
|
131
|
+
* displaces an existing stable `latest`. The publish PUT and the train's latest
|
|
132
|
+
* reconcile share this rule.
|
|
133
|
+
*/
|
|
134
|
+
export declare function latestDisplacedBy(latest: string | undefined, published: string): boolean;
|
|
135
|
+
/** The package's current dist-tags; empty for a package the registry does not hold yet. */
|
|
136
|
+
export declare function readDistTags(options: {
|
|
137
|
+
registry: string;
|
|
138
|
+
token: string;
|
|
139
|
+
name: string;
|
|
140
|
+
fetchImpl: typeof fetch;
|
|
141
|
+
}): Promise<Record<string, string>>;
|
|
142
|
+
//# sourceMappingURL=put-attested-packument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"put-attested-packument.d.ts","sourceRoot":"","sources":["../../../src/cli/npm/put-attested-packument.ts"],"names":[],"mappings":"AAQA,OAAO,EAAgC,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AACnG,OAAO,EAAsC,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAW5G;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAUnH;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,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