@vibesdotdev/infra-deploy 0.0.2 → 1.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +76 -12
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts +48 -35
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js +31 -21
- package/dist/cli/alerts/infra-alerts-create.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts +26 -27
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js +11 -11
- package/dist/cli/alerts/infra-alerts-delete.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts +2 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js +15 -14
- package/dist/cli/alerts/infra-alerts-list.cli-command.impl.js.map +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js +1 -1
- package/dist/cli/alerts/infra-alerts.cli-group.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts +24 -17
- package/dist/cli/audit/infra-audit.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js +8 -3
- package/dist/cli/audit/infra-audit.cli-command.descriptor.js.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts +164 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/audit/infra-audit.cli-command.impl.js +557 -76
- package/dist/cli/audit/infra-audit.cli-command.impl.js.map +1 -1
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts +49 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js +60 -0
- package/dist/cli/db/infra-db.cli-command.descriptor.js.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts +30 -0
- package/dist/cli/db/infra-db.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/db/infra-db.cli-command.impl.js +167 -0
- package/dist/cli/db/infra-db.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts +6 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js +53 -0
- package/dist/cli/dns/infra-dns-activate.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js +50 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts +12 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js +70 -0
- package/dist/cli/dns/infra-dns-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts +32 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js +39 -0
- package/dist/cli/dns/infra-dns-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts +17 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js +66 -0
- package/dist/cli/dns/infra-dns-list.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts +58 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js +72 -0
- package/dist/cli/dns/infra-dns-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js +110 -0
- package/dist/cli/dns/infra-dns-set.cli-command.impl.js.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts +41 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js +47 -0
- package/dist/cli/dns/infra-dns.cli-group.descriptor.js.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts +24 -0
- package/dist/cli/dns/resolve-dns-provider.d.ts.map +1 -0
- package/dist/cli/dns/resolve-dns-provider.js +62 -0
- package/dist/cli/dns/resolve-dns-provider.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts +37 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js +45 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts +15 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-delete.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts +29 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js +35 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts +19 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js +73 -0
- package/dist/cli/edge-tls/infra-edge-tls-list.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js +50 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts +16 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js +81 -0
- package/dist/cli/edge-tls/infra-edge-tls-set-zone-default.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts +40 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js +49 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts +14 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js +78 -0
- package/dist/cli/edge-tls/infra-edge-tls-set.cli-command.impl.js.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js +12 -0
- package/dist/cli/edge-tls/infra-edge-tls.cli-group.descriptor.js.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts +25 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.d.ts.map +1 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js +74 -0
- package/dist/cli/edge-tls/resolve-edge-tls-provider.js.map +1 -0
- package/dist/cli/infra-deploy.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/infra-deploy.cli-group.descriptor.js +1 -1
- package/dist/cli/infra-deploy.cli-group.descriptor.js.map +1 -1
- package/dist/cli/infra.cli-group.descriptor.d.ts +7 -7
- package/dist/cli/infra.cli-group.descriptor.js +1 -1
- package/dist/cli/infra.cli-group.descriptor.js.map +1 -1
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts +26 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.descriptor.js.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts +18 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js +204 -0
- package/dist/cli/inventory/infra-inventory.cli-command.impl.js.map +1 -0
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts +40 -30
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js +7 -3
- package/dist/cli/list/infra-deploy.list.cli-command.descriptor.js.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts +35 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js +202 -20
- package/dist/cli/list/infra-deploy.list.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts +113 -35
- package/dist/cli/logs/infra-logs.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js +87 -3
- package/dist/cli/logs/infra-logs.cli-command.descriptor.js.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts +61 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/logs/infra-logs.cli-command.impl.js +1160 -111
- package/dist/cli/logs/infra-logs.cli-command.impl.js.map +1 -1
- package/dist/cli/logs/stream-worker-tail.d.ts +7 -2
- package/dist/cli/logs/stream-worker-tail.d.ts.map +1 -1
- package/dist/cli/logs/stream-worker-tail.js +280 -113
- package/dist/cli/logs/stream-worker-tail.js.map +1 -1
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts +62 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js +79 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.descriptor.js.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts +8 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js +105 -0
- package/dist/cli/migrate/infra-deploy.migrate.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts +34 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js +42 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts +13 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js +82 -0
- package/dist/cli/npm/infra-npm-mirror.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts +80 -23
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js +48 -16
- package/dist/cli/npm/infra-npm-publish.cli-command.descriptor.js.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts +47 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js +532 -351
- package/dist/cli/npm/infra-npm-publish.cli-command.impl.js.map +1 -1
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts +28 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js +34 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.descriptor.js.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts +12 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js +134 -0
- package/dist/cli/npm/infra-npm-reconcile-latest.cli-command.impl.js.map +1 -0
- package/dist/cli/npm/infra-npm.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js +1 -1
- package/dist/cli/npm/infra-npm.cli-group.descriptor.js.map +1 -1
- package/dist/cli/npm/mirror-registry-artifacts.d.ts +64 -0
- package/dist/cli/npm/mirror-registry-artifacts.d.ts.map +1 -0
- package/dist/cli/npm/mirror-registry-artifacts.js +114 -0
- package/dist/cli/npm/mirror-registry-artifacts.js.map +1 -0
- package/dist/cli/npm/publish/command-options.d.ts +24 -0
- package/dist/cli/npm/publish/command-options.d.ts.map +1 -0
- package/dist/cli/npm/publish/command-options.js +85 -0
- package/dist/cli/npm/publish/command-options.js.map +1 -0
- package/dist/cli/npm/publish/concurrency.d.ts +19 -0
- package/dist/cli/npm/publish/concurrency.d.ts.map +1 -0
- package/dist/cli/npm/publish/concurrency.js +60 -0
- package/dist/cli/npm/publish/concurrency.js.map +1 -0
- package/dist/cli/npm/publish/consumer-smoke.d.ts +83 -0
- package/dist/cli/npm/publish/consumer-smoke.d.ts.map +1 -0
- package/dist/cli/npm/publish/consumer-smoke.js +371 -0
- package/dist/cli/npm/publish/consumer-smoke.js.map +1 -0
- package/dist/cli/npm/publish/consumer-surfaces.d.ts +81 -0
- package/dist/cli/npm/publish/consumer-surfaces.d.ts.map +1 -0
- package/dist/cli/npm/publish/consumer-surfaces.js +199 -0
- package/dist/cli/npm/publish/consumer-surfaces.js.map +1 -0
- package/dist/cli/npm/publish/external-requirements.d.ts +171 -0
- package/dist/cli/npm/publish/external-requirements.d.ts.map +1 -0
- package/dist/cli/npm/publish/external-requirements.js +365 -0
- package/dist/cli/npm/publish/external-requirements.js.map +1 -0
- package/dist/cli/npm/publish/forge-source-identity.d.ts +64 -0
- package/dist/cli/npm/publish/forge-source-identity.d.ts.map +1 -0
- package/dist/cli/npm/publish/forge-source-identity.js +201 -0
- package/dist/cli/npm/publish/forge-source-identity.js.map +1 -0
- package/dist/cli/npm/publish/fs-paths.d.ts +25 -0
- package/dist/cli/npm/publish/fs-paths.d.ts.map +1 -0
- package/dist/cli/npm/publish/fs-paths.js +87 -0
- package/dist/cli/npm/publish/fs-paths.js.map +1 -0
- package/dist/cli/npm/publish/lease-preflight-answer.d.ts +17 -0
- package/dist/cli/npm/publish/lease-preflight-answer.d.ts.map +1 -0
- package/dist/cli/npm/publish/lease-preflight-answer.js +35 -0
- package/dist/cli/npm/publish/lease-preflight-answer.js.map +1 -0
- package/dist/cli/npm/publish/lease-preflight.d.ts +92 -0
- package/dist/cli/npm/publish/lease-preflight.d.ts.map +1 -0
- package/dist/cli/npm/publish/lease-preflight.js +205 -0
- package/dist/cli/npm/publish/lease-preflight.js.map +1 -0
- package/dist/cli/npm/publish/managed-lease.d.ts +110 -0
- package/dist/cli/npm/publish/managed-lease.d.ts.map +1 -0
- package/dist/cli/npm/publish/managed-lease.js +191 -0
- package/dist/cli/npm/publish/managed-lease.js.map +1 -0
- package/dist/cli/npm/publish/npm-exec.d.ts +148 -0
- package/dist/cli/npm/publish/npm-exec.d.ts.map +1 -0
- package/dist/cli/npm/publish/npm-exec.js +311 -0
- package/dist/cli/npm/publish/npm-exec.js.map +1 -0
- package/dist/cli/npm/publish/package-artifact.d.ts +107 -0
- package/dist/cli/npm/publish/package-artifact.d.ts.map +1 -0
- package/dist/cli/npm/publish/package-artifact.js +418 -0
- package/dist/cli/npm/publish/package-artifact.js.map +1 -0
- package/dist/cli/npm/publish/platform-registry.d.ts +76 -0
- package/dist/cli/npm/publish/platform-registry.d.ts.map +1 -0
- package/dist/cli/npm/publish/platform-registry.js +324 -0
- package/dist/cli/npm/publish/platform-registry.js.map +1 -0
- package/dist/cli/npm/publish/proof-external-closure.d.ts +139 -0
- package/dist/cli/npm/publish/proof-external-closure.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-external-closure.js +339 -0
- package/dist/cli/npm/publish/proof-external-closure.js.map +1 -0
- package/dist/cli/npm/publish/proof-installed-graph.d.ts +26 -0
- package/dist/cli/npm/publish/proof-installed-graph.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-installed-graph.js +229 -0
- package/dist/cli/npm/publish/proof-installed-graph.js.map +1 -0
- package/dist/cli/npm/publish/proof-registry.d.ts +74 -0
- package/dist/cli/npm/publish/proof-registry.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-registry.js +335 -0
- package/dist/cli/npm/publish/proof-registry.js.map +1 -0
- package/dist/cli/npm/publish/proof-source-credentials.d.ts +42 -0
- package/dist/cli/npm/publish/proof-source-credentials.d.ts.map +1 -0
- package/dist/cli/npm/publish/proof-source-credentials.js +129 -0
- package/dist/cli/npm/publish/proof-source-credentials.js.map +1 -0
- package/dist/cli/npm/publish/publish-package.d.ts +66 -0
- package/dist/cli/npm/publish/publish-package.d.ts.map +1 -0
- package/dist/cli/npm/publish/publish-package.js +544 -0
- package/dist/cli/npm/publish/publish-package.js.map +1 -0
- package/dist/cli/npm/publish/publisher-manifest.d.ts +173 -0
- package/dist/cli/npm/publish/publisher-manifest.d.ts.map +1 -0
- package/dist/cli/npm/publish/publisher-manifest.js +79 -0
- package/dist/cli/npm/publish/publisher-manifest.js.map +1 -0
- package/dist/cli/npm/publish/rc-major-exception.d.ts +20 -0
- package/dist/cli/npm/publish/rc-major-exception.d.ts.map +1 -0
- package/dist/cli/npm/publish/rc-major-exception.js +46 -0
- package/dist/cli/npm/publish/rc-major-exception.js.map +1 -0
- package/dist/cli/npm/publish/registry-availability.d.ts +150 -0
- package/dist/cli/npm/publish/registry-availability.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-availability.js +570 -0
- package/dist/cli/npm/publish/registry-availability.js.map +1 -0
- package/dist/cli/npm/publish/registry-credentials.d.ts +108 -0
- package/dist/cli/npm/publish/registry-credentials.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-credentials.js +290 -0
- package/dist/cli/npm/publish/registry-credentials.js.map +1 -0
- package/dist/cli/npm/publish/registry-reads.d.ts +42 -0
- package/dist/cli/npm/publish/registry-reads.d.ts.map +1 -0
- package/dist/cli/npm/publish/registry-reads.js +164 -0
- package/dist/cli/npm/publish/registry-reads.js.map +1 -0
- package/dist/cli/npm/publish/release-build.d.ts +46 -0
- package/dist/cli/npm/publish/release-build.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-build.js +140 -0
- package/dist/cli/npm/publish/release-build.js.map +1 -0
- package/dist/cli/npm/publish/release-consumer-proof.d.ts +70 -0
- package/dist/cli/npm/publish/release-consumer-proof.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-consumer-proof.js +397 -0
- package/dist/cli/npm/publish/release-consumer-proof.js.map +1 -0
- package/dist/cli/npm/publish/release-executor.d.ts +46 -0
- package/dist/cli/npm/publish/release-executor.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-executor.js +181 -0
- package/dist/cli/npm/publish/release-executor.js.map +1 -0
- package/dist/cli/npm/publish/release-grants.client.impl.d.ts +10 -0
- package/dist/cli/npm/publish/release-grants.client.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-grants.client.impl.js +63 -0
- package/dist/cli/npm/publish/release-grants.client.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.client.d.ts +39 -0
- package/dist/cli/npm/publish/release-jobs.client.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.client.js +124 -0
- package/dist/cli/npm/publish/release-jobs.client.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts +20 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.js +82 -0
- package/dist/cli/npm/publish/release-jobs.consumer.plugin.js.map +1 -0
- package/dist/cli/npm/publish/release-jobs.impl.d.ts +15 -0
- package/dist/cli/npm/publish/release-jobs.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-jobs.impl.js +42 -0
- package/dist/cli/npm/publish/release-jobs.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-lock.d.ts +143 -0
- package/dist/cli/npm/publish/release-lock.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-lock.js +371 -0
- package/dist/cli/npm/publish/release-lock.js.map +1 -0
- package/dist/cli/npm/publish/release-phases.d.ts +93 -0
- package/dist/cli/npm/publish/release-phases.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-phases.js +175 -0
- package/dist/cli/npm/publish/release-phases.js.map +1 -0
- package/dist/cli/npm/publish/release-plan.d.ts +65 -0
- package/dist/cli/npm/publish/release-plan.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-plan.js +178 -0
- package/dist/cli/npm/publish/release-plan.js.map +1 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.d.ts +16 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.js +71 -0
- package/dist/cli/npm/publish/release-preflight.job.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-publish.job.impl.d.ts +18 -0
- package/dist/cli/npm/publish/release-publish.job.impl.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-publish.job.impl.js +295 -0
- package/dist/cli/npm/publish/release-publish.job.impl.js.map +1 -0
- package/dist/cli/npm/publish/release-workspace.d.ts +95 -0
- package/dist/cli/npm/publish/release-workspace.d.ts.map +1 -0
- package/dist/cli/npm/publish/release-workspace.js +243 -0
- package/dist/cli/npm/publish/release-workspace.js.map +1 -0
- package/dist/cli/npm/publish/sensitive-temp.d.ts +90 -0
- package/dist/cli/npm/publish/sensitive-temp.d.ts.map +1 -0
- package/dist/cli/npm/publish/sensitive-temp.js +351 -0
- package/dist/cli/npm/publish/sensitive-temp.js.map +1 -0
- package/dist/cli/npm/publish/source-snapshot.d.ts +91 -0
- package/dist/cli/npm/publish/source-snapshot.d.ts.map +1 -0
- package/dist/cli/npm/publish/source-snapshot.js +245 -0
- package/dist/cli/npm/publish/source-snapshot.js.map +1 -0
- package/dist/cli/npm/publish/types.d.ts +69 -0
- package/dist/cli/npm/publish/types.d.ts.map +1 -0
- package/dist/cli/npm/publish/types.js +2 -0
- package/dist/cli/npm/publish/types.js.map +1 -0
- package/dist/cli/npm/publish/workspace-discovery.d.ts +48 -0
- package/dist/cli/npm/publish/workspace-discovery.d.ts.map +1 -0
- package/dist/cli/npm/publish/workspace-discovery.js +313 -0
- package/dist/cli/npm/publish/workspace-discovery.js.map +1 -0
- package/dist/cli/npm/put-attested-packument.d.ts +96 -0
- package/dist/cli/npm/put-attested-packument.d.ts.map +1 -0
- package/dist/cli/npm/put-attested-packument.js +240 -0
- package/dist/cli/npm/put-attested-packument.js.map +1 -0
- package/dist/cli/npm/reconcile-latest.d.ts +55 -0
- package/dist/cli/npm/reconcile-latest.d.ts.map +1 -0
- package/dist/cli/npm/reconcile-latest.js +59 -0
- package/dist/cli/npm/reconcile-latest.js.map +1 -0
- package/dist/cli/observability/blind-spots.d.ts +10 -0
- package/dist/cli/observability/blind-spots.d.ts.map +1 -0
- package/dist/cli/observability/blind-spots.js +19 -0
- package/dist/cli/observability/blind-spots.js.map +1 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts +6 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js +75 -0
- package/dist/cli/observability/infra-observability-exports-list.cli-command.impl.js.map +1 -0
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts +42 -21
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js +3 -3
- package/dist/cli/observability/infra-observability-set.cli-command.descriptor.js.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts +3 -2
- package/dist/cli/observability/infra-observability-set.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js +14 -14
- package/dist/cli/observability/infra-observability-set.cli-command.impl.js.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts +25 -17
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.descriptor.js.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts +2 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js +30 -23
- package/dist/cli/observability/infra-observability-status.cli-command.impl.js.map +1 -1
- package/dist/cli/observability/infra-observability.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js +1 -1
- package/dist/cli/observability/infra-observability.cli-group.descriptor.js.map +1 -1
- package/dist/cli/plugin.d.ts +3 -0
- package/dist/cli/plugin.d.ts.map +1 -0
- package/dist/cli/plugin.js +45 -0
- package/dist/cli/plugin.js.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts +38 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js +43 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.descriptor.js.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts +117 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js +678 -0
- package/dist/cli/readiness/infra-deploy.readiness.cli-command.impl.js.map +1 -0
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts +37 -23
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js +7 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.js.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts +2 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js +100 -25
- package/dist/cli/regenerate/infra-deploy.regenerate.cli-command.impl.js.map +1 -1
- package/dist/cli/release/cli/latest-manifest.d.ts +148 -0
- package/dist/cli/release/cli/latest-manifest.d.ts.map +1 -0
- package/dist/cli/release/cli/latest-manifest.js +152 -0
- package/dist/cli/release/cli/latest-manifest.js.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts +41 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js +49 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.descriptor.js.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts +16 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js +52 -0
- package/dist/cli/rollback/infra-deploy.rollback.cli-command.impl.js.map +1 -0
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts +19 -17
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.descriptor.js.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts +2 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js +21 -15
- package/dist/cli/rum/infra-rum-status.cli-command.impl.js.map +1 -1
- package/dist/cli/rum/infra-rum.cli-group.descriptor.d.ts +8 -8
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js +1 -1
- package/dist/cli/rum/infra-rum.cli-group.descriptor.js.map +1 -1
- package/dist/cli/run/deploy-smoke.d.ts +57 -0
- package/dist/cli/run/deploy-smoke.d.ts.map +1 -0
- package/dist/cli/run/deploy-smoke.js +251 -0
- package/dist/cli/run/deploy-smoke.js.map +1 -0
- package/dist/cli/run/deployment-marker.d.ts +74 -0
- package/dist/cli/run/deployment-marker.d.ts.map +1 -0
- package/dist/cli/run/deployment-marker.js +237 -0
- package/dist/cli/run/deployment-marker.js.map +1 -0
- package/dist/cli/run/deployment-provider.d.ts +56 -0
- package/dist/cli/run/deployment-provider.d.ts.map +1 -0
- package/dist/cli/run/deployment-provider.js +295 -0
- package/dist/cli/run/deployment-provider.js.map +1 -0
- package/dist/cli/run/deployment-run-ledger.d.ts +72 -0
- package/dist/cli/run/deployment-run-ledger.d.ts.map +1 -0
- package/dist/cli/run/deployment-run-ledger.js +164 -0
- package/dist/cli/run/deployment-run-ledger.js.map +1 -0
- package/dist/cli/run/git-source-identity.d.ts +21 -0
- package/dist/cli/run/git-source-identity.d.ts.map +1 -0
- package/dist/cli/run/git-source-identity.js +73 -0
- package/dist/cli/run/git-source-identity.js.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts +403 -0
- package/dist/cli/run/immutable-deployment-release.program.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-release.program.js +589 -0
- package/dist/cli/run/immutable-deployment-release.program.js.map +1 -0
- package/dist/cli/run/immutable-deployment-workspace.d.ts +39 -0
- package/dist/cli/run/immutable-deployment-workspace.d.ts.map +1 -0
- package/dist/cli/run/immutable-deployment-workspace.js +525 -0
- package/dist/cli/run/immutable-deployment-workspace.js.map +1 -0
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts +80 -23
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.d.ts.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js +50 -8
- package/dist/cli/run/infra-deploy.run.cli-command.descriptor.js.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts +46 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.d.ts.map +1 -1
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js +464 -226
- package/dist/cli/run/infra-deploy.run.cli-command.impl.js.map +1 -1
- package/dist/cli/shared/build-workspace-artifacts.d.ts +147 -0
- package/dist/cli/shared/build-workspace-artifacts.d.ts.map +1 -0
- package/dist/cli/shared/build-workspace-artifacts.js +2013 -0
- package/dist/cli/shared/build-workspace-artifacts.js.map +1 -0
- package/dist/cli/shared/credential-source.d.ts +3 -0
- package/dist/cli/shared/credential-source.d.ts.map +1 -0
- package/dist/cli/shared/credential-source.js +19 -0
- package/dist/cli/shared/credential-source.js.map +1 -0
- package/dist/cli/shared/discover-deployments.d.ts +46 -5
- package/dist/cli/shared/discover-deployments.d.ts.map +1 -1
- package/dist/cli/shared/discover-deployments.js +167 -41
- package/dist/cli/shared/discover-deployments.js.map +1 -1
- package/dist/cli/shared/infer-apex-zone.d.ts +18 -0
- package/dist/cli/shared/infer-apex-zone.d.ts.map +1 -0
- package/dist/cli/shared/infer-apex-zone.js +75 -0
- package/dist/cli/shared/infer-apex-zone.js.map +1 -0
- package/dist/cli/shared/option-strings.d.ts +2 -0
- package/dist/cli/shared/option-strings.d.ts.map +1 -0
- package/dist/cli/shared/option-strings.js +13 -0
- package/dist/cli/shared/option-strings.js.map +1 -0
- package/dist/cli/shared/repository-collection.d.ts +42 -0
- package/dist/cli/shared/repository-collection.d.ts.map +1 -0
- package/dist/cli/shared/repository-collection.js +111 -0
- package/dist/cli/shared/repository-collection.js.map +1 -0
- package/dist/cli/shared/runtime-execution.d.ts +78 -0
- package/dist/cli/shared/runtime-execution.d.ts.map +1 -0
- package/dist/cli/shared/runtime-execution.js +182 -0
- package/dist/cli/shared/runtime-execution.js.map +1 -0
- package/dist/cli/shared/workspace-artifact-lock.d.ts +17 -0
- package/dist/cli/shared/workspace-artifact-lock.d.ts.map +1 -0
- package/dist/cli/shared/workspace-artifact-lock.js +37 -0
- package/dist/cli/shared/workspace-artifact-lock.js.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts +238 -0
- package/dist/cli/workers/doks-worker-runtime.d.ts.map +1 -0
- package/dist/cli/workers/doks-worker-runtime.js +410 -0
- package/dist/cli/workers/doks-worker-runtime.js.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts +28 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js +28 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.js +75 -0
- package/dist/cli/workers/infra-workers-apply.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts +31 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js +32 -0
- package/dist/cli/workers/infra-workers-build.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.js +67 -0
- package/dist/cli/workers/infra-workers-build.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts +48 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js +60 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.descriptor.js.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts +6 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.js +74 -0
- package/dist/cli/workers/infra-workers-logs.cli-command.impl.js.map +1 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts +12 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.d.ts.map +1 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.js +12 -0
- package/dist/cli/workers/infra-workers.cli-group.descriptor.js.map +1 -0
- package/dist/config-loader.d.ts +60 -13
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/config-loader.js +371 -104
- package/dist/config-loader.js.map +1 -1
- package/dist/declared-provider.d.ts +27 -0
- package/dist/declared-provider.d.ts.map +1 -0
- package/dist/declared-provider.js +46 -0
- package/dist/declared-provider.js.map +1 -0
- package/dist/deployment-collisions.d.ts +55 -0
- package/dist/deployment-collisions.d.ts.map +1 -0
- package/dist/deployment-collisions.js +70 -0
- package/dist/deployment-collisions.js.map +1 -0
- package/dist/deployment-environment.d.ts +57 -0
- package/dist/deployment-environment.d.ts.map +1 -0
- package/dist/deployment-environment.js +198 -0
- package/dist/deployment-environment.js.map +1 -0
- package/dist/deployment-settings.d.ts +27 -0
- package/dist/deployment-settings.d.ts.map +1 -0
- package/dist/deployment-settings.js +52 -0
- package/dist/deployment-settings.js.map +1 -0
- package/dist/deployment.config.descriptor.d.ts +59 -0
- package/dist/deployment.config.descriptor.d.ts.map +1 -0
- package/dist/deployment.config.descriptor.js +54 -0
- package/dist/deployment.config.descriptor.js.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts +29 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.d.ts.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js +35 -0
- package/dist/descriptors/observability/infra-observability-exports-list.cli-command.descriptor.js.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts +12 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.d.ts.map +1 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js +12 -0
- package/dist/descriptors/observability/infra-observability-exports.cli-group.descriptor.js.map +1 -0
- package/dist/index.d.ts +11 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/infra-deploy.plugin.d.ts +2 -2
- package/dist/infra-deploy.plugin.d.ts.map +1 -1
- package/dist/infra-deploy.plugin.js +63 -20
- package/dist/infra-deploy.plugin.js.map +1 -1
- package/dist/logger.d.ts +10 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +11 -0
- package/dist/logger.js.map +1 -0
- package/dist/migrations/migrate-workspace.d.ts +21 -0
- package/dist/migrations/migrate-workspace.d.ts.map +1 -0
- package/dist/migrations/migrate-workspace.js +83 -0
- package/dist/migrations/migrate-workspace.js.map +1 -0
- package/dist/migrations/run-migrate.d.ts +15 -0
- package/dist/migrations/run-migrate.d.ts.map +1 -0
- package/dist/migrations/run-migrate.js +314 -0
- package/dist/migrations/run-migrate.js.map +1 -0
- package/dist/regenerate.d.ts +52 -30
- package/dist/regenerate.d.ts.map +1 -1
- package/dist/regenerate.js +176 -148
- package/dist/regenerate.js.map +1 -1
- package/dist/runtime-execution.d.ts +5 -0
- package/dist/runtime-execution.d.ts.map +1 -0
- package/dist/runtime-execution.js +12 -0
- package/dist/runtime-execution.js.map +1 -0
- package/dist/schemas/migrate.d.ts +110 -0
- package/dist/schemas/migrate.d.ts.map +1 -0
- package/dist/schemas/migrate.js +55 -0
- package/dist/schemas/migrate.js.map +1 -0
- package/dist/schemas/proof-registry.d.ts +25 -0
- package/dist/schemas/proof-registry.d.ts.map +1 -0
- package/dist/schemas/proof-registry.js +24 -0
- package/dist/schemas/proof-registry.js.map +1 -0
- package/dist/schemas/release-grants.d.ts +7 -0
- package/dist/schemas/release-grants.d.ts.map +1 -0
- package/dist/schemas/release-grants.js +6 -0
- package/dist/schemas/release-grants.js.map +1 -0
- package/dist/schemas/release-jobs.d.ts +444 -0
- package/dist/schemas/release-jobs.d.ts.map +1 -0
- package/dist/schemas/release-jobs.js +204 -0
- package/dist/schemas/release-jobs.js.map +1 -0
- package/dist/schemas/service-release.d.ts +15 -0
- package/dist/schemas/service-release.d.ts.map +1 -0
- package/dist/schemas/service-release.js +13 -0
- package/dist/schemas/service-release.js.map +1 -0
- package/dist/schemas/worker-logs.d.ts +42 -0
- package/dist/schemas/worker-logs.d.ts.map +1 -0
- package/dist/schemas/worker-logs.js +29 -0
- package/dist/schemas/worker-logs.js.map +1 -0
- package/dist/storage/deployment-runs.schema.d.ts +199 -0
- package/dist/storage/deployment-runs.schema.d.ts.map +1 -0
- package/dist/storage/deployment-runs.schema.js +61 -0
- package/dist/storage/deployment-runs.schema.js.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts +4 -0
- package/dist/storage/deployment-runs.storage.descriptor.d.ts.map +1 -0
- package/dist/storage/deployment-runs.storage.descriptor.js +36 -0
- package/dist/storage/deployment-runs.storage.descriptor.js.map +1 -0
- package/package.json +107 -38
- package/src/cli/alerts/infra-alerts-create.cli-command.descriptor.ts +0 -61
- package/src/cli/alerts/infra-alerts-create.cli-command.impl.ts +0 -131
- package/src/cli/alerts/infra-alerts-delete.cli-command.descriptor.ts +0 -36
- package/src/cli/alerts/infra-alerts-delete.cli-command.impl.ts +0 -75
- package/src/cli/alerts/infra-alerts-list.cli-command.descriptor.ts +0 -27
- package/src/cli/alerts/infra-alerts-list.cli-command.impl.ts +0 -88
- package/src/cli/alerts/infra-alerts.cli-group.descriptor.ts +0 -12
- package/src/cli/audit/infra-audit.cli-command.descriptor.ts +0 -28
- package/src/cli/audit/infra-audit.cli-command.impl.ts +0 -293
- package/src/cli/infra-deploy.cli-group.descriptor.ts +0 -12
- package/src/cli/infra.cli-group.descriptor.ts +0 -11
- package/src/cli/list/infra-deploy.list.cli-command.descriptor.ts +0 -29
- package/src/cli/list/infra-deploy.list.cli-command.impl.ts +0 -125
- package/src/cli/logs/infra-logs.cli-command.descriptor.ts +0 -65
- package/src/cli/logs/infra-logs.cli-command.impl.ts +0 -354
- package/src/cli/logs/stream-worker-tail.ts +0 -202
- package/src/cli/npm/infra-npm-publish.cli-command.descriptor.ts +0 -75
- package/src/cli/npm/infra-npm-publish.cli-command.impl.ts +0 -474
- package/src/cli/npm/infra-npm.cli-group.descriptor.ts +0 -12
- package/src/cli/observability/infra-observability-set.cli-command.descriptor.ts +0 -57
- package/src/cli/observability/infra-observability-set.cli-command.impl.ts +0 -173
- package/src/cli/observability/infra-observability-status.cli-command.descriptor.ts +0 -35
- package/src/cli/observability/infra-observability-status.cli-command.impl.ts +0 -124
- package/src/cli/observability/infra-observability.cli-group.descriptor.ts +0 -12
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.descriptor.ts +0 -36
- package/src/cli/regenerate/infra-deploy.regenerate.cli-command.impl.ts +0 -103
- package/src/cli/rum/infra-rum-status.cli-command.descriptor.ts +0 -27
- package/src/cli/rum/infra-rum-status.cli-command.impl.ts +0 -112
- package/src/cli/rum/infra-rum.cli-group.descriptor.ts +0 -12
- package/src/cli/run/infra-deploy.run.cli-command.descriptor.ts +0 -49
- package/src/cli/run/infra-deploy.run.cli-command.impl.ts +0 -330
- package/src/cli/shared/discover-deployments.ts +0 -127
- package/src/config-loader.ts +0 -179
- package/src/index.ts +0 -11
- package/src/infra-deploy.plugin.ts +0 -83
- package/src/regenerate.ts +0 -230
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
2
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
import { isCanonicalNpmPackageName, } from "@vibesdotdev/registry";
|
|
5
|
+
import { rcompare, satisfies, valid, validRange } from "semver";
|
|
6
|
+
import { mapWithConcurrencyUntilFirstFailure } from "./concurrency.js";
|
|
7
|
+
import { isolatedNpmPackEnv, runNpm, versionSpec, writeTempNpmrc, } from "./npm-exec.js";
|
|
8
|
+
import { buildReleaseConsumerSourceRegistry, readProofArtifactManifest, registryForProofPackage, } from "./proof-registry.js";
|
|
9
|
+
import { inspectRegistryReleaseAvailability, REGISTRY_AVAILABILITY_CONCURRENCY, } from "./registry-availability.js";
|
|
10
|
+
import { npmListPublishedVersions } from "./registry-reads.js";
|
|
11
|
+
import { normalizeRegistryUrl, registryServiceOrigin, } from "./registry-credentials.js";
|
|
12
|
+
import { cleanupSensitiveTempRoot, createReleaseTempRoot, SENSITIVE_TEMP_ROOT_PREFIXES, } from "./sensitive-temp.js";
|
|
13
|
+
import { parseWorkspaceRootManifest, } from "./publisher-manifest.js";
|
|
14
|
+
/**
|
|
15
|
+
* Throw unless an installed/fetched package is the requirement's package and satisfies its selector.
|
|
16
|
+
*/
|
|
17
|
+
export function assertExternalPackageSelector(options) {
|
|
18
|
+
const reference = registryExternalReference(options);
|
|
19
|
+
if (options.resolvedName !== reference.packageName ||
|
|
20
|
+
!npmRegistryVersionSatisfiesSelector(options.resolvedVersion, reference.selector)) {
|
|
21
|
+
throw new Error(`Offline release proof selector conflict: ${options.from} -> ${options.name}@${options.selector} resolved to ${options.resolvedName ?? "unknown"}@${options.resolvedVersion}`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/** npm's selector semantics, including `*` accepting any valid version. */
|
|
25
|
+
export function npmRegistryVersionSatisfiesSelector(version, selector) {
|
|
26
|
+
return (satisfies(version, selector) ||
|
|
27
|
+
(selector.trim() === "*" && valid(version) !== null));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Parse a requirement's selector (range or `npm:` alias) into the package it fetches.
|
|
31
|
+
*/
|
|
32
|
+
export function registryExternalReference(options) {
|
|
33
|
+
if (!isCanonicalNpmPackageName(options.name)) {
|
|
34
|
+
throw new Error(`Offline release proof requires a canonical npm package name: ${options.from} -> ${options.name}@${options.selector}`);
|
|
35
|
+
}
|
|
36
|
+
if (options.selector.trim() && validRange(options.selector)) {
|
|
37
|
+
return {
|
|
38
|
+
packageName: options.name,
|
|
39
|
+
selector: options.selector,
|
|
40
|
+
dependencySelector: options.selector,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (options.selector.startsWith("npm:")) {
|
|
44
|
+
const targetSpec = options.selector.slice("npm:".length);
|
|
45
|
+
const slash = targetSpec.startsWith("@") ? targetSpec.indexOf("/") : -1;
|
|
46
|
+
const separator = targetSpec.startsWith("@")
|
|
47
|
+
? slash >= 0
|
|
48
|
+
? targetSpec.indexOf("@", slash + 1)
|
|
49
|
+
: -1
|
|
50
|
+
: targetSpec.lastIndexOf("@");
|
|
51
|
+
const packageName = separator > 0 ? targetSpec.slice(0, separator) : "";
|
|
52
|
+
const selector = separator > 0 ? targetSpec.slice(separator + 1) : "";
|
|
53
|
+
if (isCanonicalNpmPackageName(packageName) &&
|
|
54
|
+
selector.trim() &&
|
|
55
|
+
validRange(selector)) {
|
|
56
|
+
return {
|
|
57
|
+
packageName,
|
|
58
|
+
selector,
|
|
59
|
+
dependencySelector: options.selector,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
throw new Error(`Offline release proof requires a semver Registry selector or npm alias: ${options.from} -> ${options.name}@${options.selector}`);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Throw unless the requirement has a canonical name and a supported selector.
|
|
67
|
+
*/
|
|
68
|
+
export function assertRegistryExternalSelector(options) {
|
|
69
|
+
registryExternalReference(options);
|
|
70
|
+
}
|
|
71
|
+
/** `npm pack` one external requirement into `downloadDir` from `registry`. */
|
|
72
|
+
export async function runRegistryExternalPack(options, runner = runNpm) {
|
|
73
|
+
const reference = registryExternalReference(options);
|
|
74
|
+
const args = [
|
|
75
|
+
"pack",
|
|
76
|
+
versionSpec(reference.packageName, reference.selector),
|
|
77
|
+
"--json",
|
|
78
|
+
"--ignore-scripts",
|
|
79
|
+
"--pack-destination",
|
|
80
|
+
options.downloadDir,
|
|
81
|
+
"--registry",
|
|
82
|
+
options.registry,
|
|
83
|
+
];
|
|
84
|
+
return {
|
|
85
|
+
args,
|
|
86
|
+
result: await runner(options.execution, args, {
|
|
87
|
+
runtime: options.runtime,
|
|
88
|
+
cwd: options.proofRoot,
|
|
89
|
+
env: options.env,
|
|
90
|
+
quiet: true,
|
|
91
|
+
allowFailure: true,
|
|
92
|
+
redactValues: options.redactValues,
|
|
93
|
+
}),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Every planned external requirement must be satisfiable by the registry
|
|
98
|
+
* BEFORE anything packs or publishes: a release that records unsatisfiable
|
|
99
|
+
* externals ships uninstallable-in-isolation packages. The planner is pure,
|
|
100
|
+
* so this is the publish flow's own gate (previously externals were only
|
|
101
|
+
* exercised inside the full offline consumer proof).
|
|
102
|
+
*/
|
|
103
|
+
export async function assertExternalRequirementsSatisfiable(options) {
|
|
104
|
+
const misses = [];
|
|
105
|
+
const seen = new Map();
|
|
106
|
+
const resolutions = [];
|
|
107
|
+
for (const requirement of options.requirements) {
|
|
108
|
+
const effective = effectiveExternalSelector(options.rootOverrides, requirement.name, requirement.selector);
|
|
109
|
+
// An npm alias (`npm:<target>@<range>`) is judged against its target
|
|
110
|
+
// package's published versions and range, never the alias name.
|
|
111
|
+
const reference = registryExternalReference({
|
|
112
|
+
from: requirement.from,
|
|
113
|
+
name: requirement.name,
|
|
114
|
+
selector: effective,
|
|
115
|
+
});
|
|
116
|
+
let versions = seen.get(reference.packageName);
|
|
117
|
+
if (versions === undefined) {
|
|
118
|
+
versions = await options.listVersions(requirement, effective);
|
|
119
|
+
seen.set(reference.packageName, versions);
|
|
120
|
+
}
|
|
121
|
+
if (versions === null) {
|
|
122
|
+
misses.push({
|
|
123
|
+
...requirement,
|
|
124
|
+
effectiveSelector: effective,
|
|
125
|
+
reason: "unreadable",
|
|
126
|
+
});
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
const version = versions
|
|
130
|
+
.filter((candidate) => valid(candidate))
|
|
131
|
+
.filter((candidate) => npmRegistryVersionSatisfiesSelector(candidate, reference.selector))
|
|
132
|
+
.sort(rcompare)[0];
|
|
133
|
+
if (!version) {
|
|
134
|
+
misses.push({
|
|
135
|
+
...requirement,
|
|
136
|
+
effectiveSelector: effective,
|
|
137
|
+
reason: "no-matching-version",
|
|
138
|
+
});
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
resolutions.push({ requirement, effectiveSelector: effective, version });
|
|
142
|
+
}
|
|
143
|
+
if (misses.length === 0)
|
|
144
|
+
return resolutions;
|
|
145
|
+
const lines = misses.map((miss) => ` ${miss.from} -> ${miss.name}@${miss.effectiveSelector}` +
|
|
146
|
+
(miss.reason === "unreadable"
|
|
147
|
+
? " (registry returned no versions: unpublished)"
|
|
148
|
+
: " (no published version satisfies the selector)"));
|
|
149
|
+
throw new Error("Registry cannot satisfy external requirements; publishing would ship " +
|
|
150
|
+
"uninstallable-in-isolation packages. Publish the owning packages first " +
|
|
151
|
+
"(or fix the selectors/overrides):\n" +
|
|
152
|
+
lines.join("\n"));
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Workspace-source requirements are release inputs, not implicit outputs. Seal
|
|
156
|
+
* the exact compatible Registry artifact before any build or remote mutation so
|
|
157
|
+
* the later consumer proof cannot resolve a different range winner.
|
|
158
|
+
*
|
|
159
|
+
* Each distinct Registry coordinate is sealed once, however many requirements
|
|
160
|
+
* resolve to it, and coordinates are sealed concurrently, each through its own
|
|
161
|
+
* availability temp root. A package name fixes its Registry, so distinct
|
|
162
|
+
* coordinates are distinct name@version pairs and never fetch the same
|
|
163
|
+
* tarball. Sealed inputs keep requirement order, and a failure is the one the
|
|
164
|
+
* first failing requirement hits.
|
|
165
|
+
*/
|
|
166
|
+
export async function sealWorkspaceRegistryInputs(options) {
|
|
167
|
+
const buildPackageByName = new Map(options.buildPackages.map((buildPackage) => [buildPackage.name, buildPackage]));
|
|
168
|
+
const sealingByCoordinate = new Map();
|
|
169
|
+
const inputArtifactDir = (await getRuntimePath(options.runtime)).join(options.artifactDir, "workspace-inputs");
|
|
170
|
+
const workspaceResolutions = options.resolutions.filter((resolution) => resolution.requirement.source === "workspace");
|
|
171
|
+
// A required edge's input must be this source's content; an optional peer or proof peer only
|
|
172
|
+
// needs the newest published version on its line (see `REQUIRED_INPUT_EDGES`).
|
|
173
|
+
const requiredInputs = new Set(workspaceResolutions
|
|
174
|
+
.filter((resolution) => REQUIRED_INPUT_EDGES.has(resolution.requirement.kind))
|
|
175
|
+
.map((resolution) => `${resolution.requirement.name}\0${resolution.version}`));
|
|
176
|
+
return mapWithConcurrencyUntilFirstFailure(workspaceResolutions, REGISTRY_AVAILABILITY_CONCURRENCY, async (resolution) => {
|
|
177
|
+
const buildPackage = buildPackageByName.get(resolution.requirement.name);
|
|
178
|
+
if (!buildPackage) {
|
|
179
|
+
throw new Error(`Registry release lost workspace input ${resolution.requirement.name} from its source build closure`);
|
|
180
|
+
}
|
|
181
|
+
const lookup = resolveRegistryExternalLookup({
|
|
182
|
+
requirement: resolution.requirement,
|
|
183
|
+
effectiveSelector: resolution.effectiveSelector,
|
|
184
|
+
sourceRegistry: options.sourceRegistry,
|
|
185
|
+
});
|
|
186
|
+
if (lookup.packageName !== resolution.requirement.name) {
|
|
187
|
+
throw new Error(`Workspace Registry input ${resolution.requirement.name} cannot resolve through package alias ${lookup.packageName}`);
|
|
188
|
+
}
|
|
189
|
+
const coordinate = `${lookup.registry}\0${lookup.packageName}\0${resolution.version}`;
|
|
190
|
+
let sealing = sealingByCoordinate.get(coordinate);
|
|
191
|
+
if (!sealing) {
|
|
192
|
+
sealing = sealWorkspaceRegistryInput({
|
|
193
|
+
resolution,
|
|
194
|
+
requireSourceMatch: requiredInputs.has(`${resolution.requirement.name}\0${resolution.version}`),
|
|
195
|
+
target: {
|
|
196
|
+
...buildPackage,
|
|
197
|
+
version: resolution.version,
|
|
198
|
+
registry: lookup.registry,
|
|
199
|
+
roles: ["runtime"],
|
|
200
|
+
},
|
|
201
|
+
inputArtifactDir,
|
|
202
|
+
expectedGitHeads: options.expectedGitHeads,
|
|
203
|
+
workspaceRoot: options.workspaceRoot,
|
|
204
|
+
scope: options.scope,
|
|
205
|
+
readCredential: options.readCredential,
|
|
206
|
+
execution: options.execution,
|
|
207
|
+
runtime: options.runtime,
|
|
208
|
+
});
|
|
209
|
+
sealingByCoordinate.set(coordinate, sealing);
|
|
210
|
+
}
|
|
211
|
+
return { ...resolution, ...(await sealing) };
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* The edges whose workspace input must be the dependent's source content: a dependency and a
|
|
216
|
+
* non-optional peer, present whenever the dependent loads. An optional peer or a proof profile's
|
|
217
|
+
* optional peer is not a hard requirement (a consumer installs whatever the Registry serves), and a
|
|
218
|
+
* devDependency never reaches a consumer, so those take the newest published version unchecked:
|
|
219
|
+
* testing reaches tui only optionally while tui requires testing, so testing publishes first.
|
|
220
|
+
*/
|
|
221
|
+
const REQUIRED_INPUT_EDGES = new Set(["dependency", "peer-dependency"]);
|
|
222
|
+
/** Seal one Registry coordinate: its exact published artifact, reused as-is. */
|
|
223
|
+
async function sealWorkspaceRegistryInput(options) {
|
|
224
|
+
const { resolution, target } = options;
|
|
225
|
+
const availability = await inspectRegistryReleaseAvailability({
|
|
226
|
+
targets: [target],
|
|
227
|
+
expectedGitHeads: options.expectedGitHeads,
|
|
228
|
+
versioning: "exact",
|
|
229
|
+
// A required edge is built against this input's source, so its sealed artifact must be that content.
|
|
230
|
+
requireSourceMatch: options.requireSourceMatch,
|
|
231
|
+
artifactDir: options.inputArtifactDir,
|
|
232
|
+
workspaceRoot: options.workspaceRoot,
|
|
233
|
+
scope: options.scope,
|
|
234
|
+
readCredential: options.readCredential,
|
|
235
|
+
execution: options.execution,
|
|
236
|
+
runtime: options.runtime,
|
|
237
|
+
});
|
|
238
|
+
if (availability.publish.length > 0) {
|
|
239
|
+
throw new Error(`Workspace Registry input ${resolution.requirement.name}@${resolution.effectiveSelector} ` +
|
|
240
|
+
`resolved to ${resolution.version}, but that exact artifact is unavailable. ` +
|
|
241
|
+
"It is a Registry input, not an implicit publish output.");
|
|
242
|
+
}
|
|
243
|
+
const reused = availability.reuse.get(target.name);
|
|
244
|
+
if (!reused?.tarball || !reused.artifactIntegrity) {
|
|
245
|
+
throw new Error(`Registry input seal lost exact artifact evidence for ${target.name}@${target.version}`);
|
|
246
|
+
}
|
|
247
|
+
const manifest = await readProofArtifactManifest(options.execution, options.runtime, reused.tarball);
|
|
248
|
+
if (manifest.name !== target.name || manifest.version !== target.version) {
|
|
249
|
+
throw new Error(`Registry input seal expected ${target.name}@${target.version}, artifact contains ${manifest.name}@${manifest.version}`);
|
|
250
|
+
}
|
|
251
|
+
return {
|
|
252
|
+
version: target.version,
|
|
253
|
+
registry: target.registry,
|
|
254
|
+
integrity: reused.artifactIntegrity,
|
|
255
|
+
repository: target.workspaceProvenance.repository,
|
|
256
|
+
gitHead: reused.gitHead,
|
|
257
|
+
tarball: reused.tarball,
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* The root `overrides` selector for `name` when set, else the declared selector.
|
|
262
|
+
*/
|
|
263
|
+
export function effectiveExternalSelector(overrides, name, declaredSelector) {
|
|
264
|
+
const parsed = z.string().safeParse(overrides[name]);
|
|
265
|
+
return parsed.success && parsed.data.trim()
|
|
266
|
+
? parsed.data
|
|
267
|
+
: declaredSelector;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* The package an external requirement fetches and the source registry it comes from.
|
|
271
|
+
*/
|
|
272
|
+
export function resolveRegistryExternalLookup(options) {
|
|
273
|
+
const reference = registryExternalReference({
|
|
274
|
+
...options.requirement,
|
|
275
|
+
selector: options.effectiveSelector,
|
|
276
|
+
});
|
|
277
|
+
return {
|
|
278
|
+
packageName: reference.packageName,
|
|
279
|
+
registry: registryForProofPackage(reference.packageName, options.sourceRegistry),
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Prove every external requirement of `releasePlan` has a published version
|
|
284
|
+
* satisfying its (root-overridden) selector, reading each source registry with
|
|
285
|
+
* the release read token from an owned temporary npm environment.
|
|
286
|
+
*/
|
|
287
|
+
export async function resolveReleaseExternalRequirements(options) {
|
|
288
|
+
if (options.releasePlan.externalRequirements.length === 0)
|
|
289
|
+
return [];
|
|
290
|
+
const sourceRegistry = buildReleaseConsumerSourceRegistry({
|
|
291
|
+
targets: options.sourceTargets,
|
|
292
|
+
});
|
|
293
|
+
const paths = await getRuntimePath(options.runtime);
|
|
294
|
+
const workspaceFiles = await resolveFileSystemAdapter(options.runtime);
|
|
295
|
+
const rootPublishManifest = parseWorkspaceRootManifest(JSON.parse(z.string().parse(await workspaceFiles.readFile(paths.join(options.workspaceRoot, "package.json"), "utf8"))));
|
|
296
|
+
const readTempRoot = await createReleaseTempRoot(options.runtime, options.workspaceRoot, SENSITIVE_TEMP_ROOT_PREFIXES.availability);
|
|
297
|
+
const hostFiles = await resolveFileSystemAdapter(options.runtime, { binding: false });
|
|
298
|
+
const readHomeDir = paths.join(readTempRoot, "home");
|
|
299
|
+
const readCacheDir = paths.join(readTempRoot, "cache");
|
|
300
|
+
const readNpmrcPath = paths.join(readTempRoot, "npmrc");
|
|
301
|
+
const readRedact = options.readToken ? [options.readToken] : [];
|
|
302
|
+
try {
|
|
303
|
+
await hostFiles.mkdir(readHomeDir, { recursive: true });
|
|
304
|
+
await hostFiles.mkdir(readCacheDir, { recursive: true });
|
|
305
|
+
await hostFiles.writeFile(paths.join(readTempRoot, "package.json"), '{"private":true}\n');
|
|
306
|
+
await writeTempNpmrc({
|
|
307
|
+
runtime: options.runtime,
|
|
308
|
+
path: readNpmrcPath,
|
|
309
|
+
registry: normalizeRegistryUrl(options.sourceTargets[0]?.registry ?? await registryServiceOrigin(options.runtime)),
|
|
310
|
+
scope: options.scope,
|
|
311
|
+
token: options.readToken,
|
|
312
|
+
homeDir: readHomeDir,
|
|
313
|
+
});
|
|
314
|
+
const readEnv = isolatedNpmPackEnv({
|
|
315
|
+
homeDir: readHomeDir,
|
|
316
|
+
cacheDir: readCacheDir,
|
|
317
|
+
npmrcPath: readNpmrcPath,
|
|
318
|
+
});
|
|
319
|
+
return await assertExternalRequirementsSatisfiable({
|
|
320
|
+
requirements: options.releasePlan.externalRequirements,
|
|
321
|
+
rootOverrides: rootPublishManifest.overrides ?? {},
|
|
322
|
+
listVersions: (requirement, effectiveSelector) => {
|
|
323
|
+
const lookup = resolveRegistryExternalLookup({
|
|
324
|
+
requirement,
|
|
325
|
+
effectiveSelector,
|
|
326
|
+
sourceRegistry,
|
|
327
|
+
});
|
|
328
|
+
return npmListPublishedVersions({
|
|
329
|
+
name: lookup.packageName,
|
|
330
|
+
registry: lookup.registry,
|
|
331
|
+
cwd: readTempRoot,
|
|
332
|
+
env: readEnv,
|
|
333
|
+
execution: options.execution,
|
|
334
|
+
runtime: options.runtime,
|
|
335
|
+
redactValues: readRedact,
|
|
336
|
+
});
|
|
337
|
+
},
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
finally {
|
|
341
|
+
await cleanupSensitiveTempRoot({
|
|
342
|
+
runtime: options.runtime,
|
|
343
|
+
root: readTempRoot,
|
|
344
|
+
npmrcPath: readNpmrcPath,
|
|
345
|
+
workspaceRoot: options.workspaceRoot,
|
|
346
|
+
expectedPrefix: SENSITIVE_TEMP_ROOT_PREFIXES.availability,
|
|
347
|
+
redactValues: readRedact,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* The version each workspace package's `workspace:` selectors are rewritten to: its source version,
|
|
353
|
+
* else the sealed Registry input a dependent was proven against (an internal dependency outside the
|
|
354
|
+
* release), else the version this release assigns it. A dependency outside the release keeping its
|
|
355
|
+
* source version shipped `^<stale source version>`, which `latest` could satisfy with older content.
|
|
356
|
+
*/
|
|
357
|
+
export function workspaceSelectorVersions(options) {
|
|
358
|
+
const versions = new Map(options.sourceVersions);
|
|
359
|
+
for (const input of options.sealedWorkspaceInputs)
|
|
360
|
+
versions.set(input.requirement.name, input.version);
|
|
361
|
+
for (const [name, assignment] of options.assignments)
|
|
362
|
+
versions.set(name, assignment.version);
|
|
363
|
+
return versions;
|
|
364
|
+
}
|
|
365
|
+
//# sourceMappingURL=external-requirements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-requirements.js","sourceRoot":"","sources":["../../../../src/cli/npm/publish/external-requirements.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EACL,yBAAyB,GAG1B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,kBAAkB,EAClB,MAAM,EAEN,WAAW,EACX,cAAc,GACf,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,kCAAkC,E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AAE,UAAU;SACzB,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAIzC;IACC,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACjD,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,qBAAqB;QAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACvG,KAAK,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,OAAO,CAAC,WAAW;QAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC7F,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forge source identity: canonical repository URLs, which repository owns each
|
|
3
|
+
* package directory, and the Registry provenance a package publishes with.
|
|
4
|
+
*/
|
|
5
|
+
import type { ChildEnvRuntime } from "../../shared/runtime-execution.ts";
|
|
6
|
+
import type { RegistryReleaseWorkspacePackage } from "@vibesdotdev/registry";
|
|
7
|
+
import type { RuntimeExecution } from "@vibesdotdev/kernel/execution";
|
|
8
|
+
import type { PackageJson, RegistryForgeSourceIdentity, RegistryWorkspaceProvenance } from "./types.ts";
|
|
9
|
+
/** A manifest's repository URL, from either the string or object form. */
|
|
10
|
+
export declare function repositoryUrl(pkg: Pick<PackageJson, "repository">): string | undefined;
|
|
11
|
+
export declare function canonicalForgeRepositoryIdentity(value: string): {
|
|
12
|
+
repository: string;
|
|
13
|
+
repositoryRef: string;
|
|
14
|
+
};
|
|
15
|
+
/** Registry authority and published metadata share the canonical SSH source identity. */
|
|
16
|
+
export declare function forgeRegistryRepositoryUrl(value: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* The Git repository root that owns `packageDir` within the registered workspace.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveRegistryOwningRepositoryRoot(options: {
|
|
21
|
+
registeredWorkspaceRoot: string;
|
|
22
|
+
packageDir: string;
|
|
23
|
+
execution: RuntimeExecution;
|
|
24
|
+
/** The runtime child environments are composed from. */
|
|
25
|
+
runtime: ChildEnvRuntime;
|
|
26
|
+
}): Promise<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The owning Git repository root of each package directory within the
|
|
29
|
+
* registered workspace. Git answers ownership (`git rev-parse
|
|
30
|
+
* --show-toplevel` in the package directory, once per distinct directory);
|
|
31
|
+
* nothing walks the filesystem for a `.git` marker. A package whose
|
|
32
|
+
* repository lies outside the registered workspace is refused.
|
|
33
|
+
*/
|
|
34
|
+
export declare function resolveRegistryOwningRepositoryRoots(options: {
|
|
35
|
+
registeredWorkspaceRoot: string;
|
|
36
|
+
packageDirs: readonly string[];
|
|
37
|
+
execution: RuntimeExecution;
|
|
38
|
+
/** The runtime child environments are composed from. */
|
|
39
|
+
runtime: ChildEnvRuntime;
|
|
40
|
+
}): Promise<Map<string, string>>;
|
|
41
|
+
/**
|
|
42
|
+
* A source root's canonical Forge repository (from its `forge` remote) and repository id.
|
|
43
|
+
*/
|
|
44
|
+
export declare function resolveRegistryForgeSourceIdentity(options: {
|
|
45
|
+
sourceRoot: string;
|
|
46
|
+
execution: RuntimeExecution;
|
|
47
|
+
/** The runtime child environments are composed from. */
|
|
48
|
+
runtime: ChildEnvRuntime;
|
|
49
|
+
resolveRepositoryId(repositoryRef: string): Promise<string>;
|
|
50
|
+
}): Promise<RegistryForgeSourceIdentity>;
|
|
51
|
+
/**
|
|
52
|
+
* The Registry provenance (repository, id, directory) a package publishes with,
|
|
53
|
+
* rejecting manifest claims that contradict its owning Forge repository.
|
|
54
|
+
*/
|
|
55
|
+
export declare function resolveRegistryWorkspaceProvenance(options: {
|
|
56
|
+
/** The runtime whose logger reports a repository claim it could not read as a Forge identity. */
|
|
57
|
+
runtime: ChildEnvRuntime;
|
|
58
|
+
workspaceRoot: string;
|
|
59
|
+
packageDir: string;
|
|
60
|
+
workspace: ReadonlyMap<string, RegistryReleaseWorkspacePackage>;
|
|
61
|
+
forgeRepository: string;
|
|
62
|
+
forgeRepositoryId: string;
|
|
63
|
+
}): Promise<RegistryWorkspaceProvenance>;
|
|
64
|
+
//# sourceMappingURL=forge-source-identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forge-source-identity.d.ts","sourceRoot":"","sources":["../../../../src/cli/npm/publish/forge-source-identity.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIzE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAKtE,OAAO,KAAK,EACV,WAAW,EACX,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,YAAY,CAAC;AAEpB,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,MAAM,GAAG,SAAS,CAKtF;AAwCD,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM;;;EAQ7D;AAED,yFAAyF;AACzF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED;;GAEG;AACH,wBAAsB,mCAAmC,CAAC,OAAO,EAAE;IACjE,uBAAuB,EAAE,MAAM,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,wDAAwD;IACxD,OAAO,EAAE,eAAe,CAAC;CAC1B,GAAG,OAAO,CAAC,MAAM,CAAC,CASlB;AAED;;;;;;GAMG;AACH,wBAAsB,oCAAoC,CAAC,OAAO,EAAE;IAClE,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,wDAAwD;IACxD,OAAO,EAAE,eAAe,CAAC;CAC1B,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAwD/B;AAED;;GAEG;AACH,wBAAsB,kCAAkC,CAAC,OAAO,EAAE;IAChE,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,wDAAwD;IACxD,OAAO,EAAE,eAAe,CAAC;IACzB,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7D,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAgCvC;AAED;;;GAGG;AACH,wBAAsB,kCAAkC,CAAC,OAAO,EAAE;IAChE,iGAAiG;IACjG,OAAO,EAAE,eAAe,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC;IAChE,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CA0DvC"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { GIT_CHILD_ENV } from "@vibesdotdev/git-operations/core";
|
|
2
|
+
import { realpathChecked, resolveFileSystemAdapter } from "@vibesdotdev/filesystem";
|
|
3
|
+
import { getRuntimePath } from "@vibesdotdev/paths";
|
|
4
|
+
import { CapabilityError } from "@vibesdotdev/kernel";
|
|
5
|
+
import { z } from "zod/v4";
|
|
6
|
+
import { runRuntimeCommand } from "../../shared/runtime-execution.js";
|
|
7
|
+
import { mapWithConcurrency } from "./concurrency.js";
|
|
8
|
+
/** A manifest's repository URL, from either the string or object form. */
|
|
9
|
+
export function repositoryUrl(pkg) {
|
|
10
|
+
const text = z.string().safeParse(pkg.repository);
|
|
11
|
+
if (text.success)
|
|
12
|
+
return text.data;
|
|
13
|
+
const record = z.object({ url: z.string().optional() }).safeParse(pkg.repository);
|
|
14
|
+
return record.success ? record.data.url : undefined;
|
|
15
|
+
}
|
|
16
|
+
function normalizeRepository(value) {
|
|
17
|
+
return value
|
|
18
|
+
.replace(/^git\+/, "")
|
|
19
|
+
.replace(/\.git$/, "")
|
|
20
|
+
.replace(/\/$/, "");
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The canonical SSH clone URL and `owner/name` ref of a Forge repository URL.
|
|
24
|
+
*/
|
|
25
|
+
function readForgeRepositoryIdentity(value) {
|
|
26
|
+
const normalized = value.trim().replace(/^git\+/, "");
|
|
27
|
+
let host = "";
|
|
28
|
+
let path = "";
|
|
29
|
+
const url = URL.parse(normalized);
|
|
30
|
+
if (url) {
|
|
31
|
+
host = url.hostname;
|
|
32
|
+
path = url.pathname;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
const scp = normalized.match(/^(?:[^@\s]+@)?([^:\s]+):(.+)$/);
|
|
36
|
+
if (scp) {
|
|
37
|
+
host = scp[1] ?? "";
|
|
38
|
+
path = scp[2] ?? "";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const repositoryRef = path
|
|
42
|
+
.replace(/^\//, "")
|
|
43
|
+
.replace(/\.git$/, "")
|
|
44
|
+
.replace(/\/$/, "");
|
|
45
|
+
if (host !== "git.vibes.dev" || !/^[^/\s]+\/[^/\s]+$/.test(repositoryRef)) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
repository: `ssh://git@git.vibes.dev/${repositoryRef}.git`,
|
|
50
|
+
repositoryRef,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function canonicalForgeRepositoryIdentity(value) {
|
|
54
|
+
const identity = readForgeRepositoryIdentity(value);
|
|
55
|
+
if (!identity)
|
|
56
|
+
throw new CapabilityError("Registry release requires a canonical Forge remote.", "INVALID_INPUT", { reason: "registry-forge-remote-invalid" });
|
|
57
|
+
return identity;
|
|
58
|
+
}
|
|
59
|
+
/** Registry authority and published metadata share the canonical SSH source identity. */
|
|
60
|
+
export function forgeRegistryRepositoryUrl(value) {
|
|
61
|
+
return canonicalForgeRepositoryIdentity(value).repository;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The Git repository root that owns `packageDir` within the registered workspace.
|
|
65
|
+
*/
|
|
66
|
+
export async function resolveRegistryOwningRepositoryRoot(options) {
|
|
67
|
+
return (await resolveRegistryOwningRepositoryRoots({
|
|
68
|
+
registeredWorkspaceRoot: options.registeredWorkspaceRoot,
|
|
69
|
+
packageDirs: [options.packageDir],
|
|
70
|
+
execution: options.execution,
|
|
71
|
+
runtime: options.runtime,
|
|
72
|
+
})).get(options.packageDir);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The owning Git repository root of each package directory within the
|
|
76
|
+
* registered workspace. Git answers ownership (`git rev-parse
|
|
77
|
+
* --show-toplevel` in the package directory, once per distinct directory);
|
|
78
|
+
* nothing walks the filesystem for a `.git` marker. A package whose
|
|
79
|
+
* repository lies outside the registered workspace is refused.
|
|
80
|
+
*/
|
|
81
|
+
export async function resolveRegistryOwningRepositoryRoots(options) {
|
|
82
|
+
const files = await resolveFileSystemAdapter(options.runtime, { binding: false });
|
|
83
|
+
const paths = await getRuntimePath(options.runtime);
|
|
84
|
+
const registeredWorkspaceRoot = await realpathChecked(files, options.registeredWorkspaceRoot);
|
|
85
|
+
const within = (path) => {
|
|
86
|
+
const position = paths.relative(registeredWorkspaceRoot, path);
|
|
87
|
+
return (position !== ".." &&
|
|
88
|
+
!position.startsWith("../") &&
|
|
89
|
+
!position.startsWith("..\\") &&
|
|
90
|
+
!paths.isAbsolute(position));
|
|
91
|
+
};
|
|
92
|
+
const canonicalDirs = new Map();
|
|
93
|
+
for (const packageDir of options.packageDirs) {
|
|
94
|
+
const canonical = await realpathChecked(files, packageDir);
|
|
95
|
+
if (!within(canonical)) {
|
|
96
|
+
throw new Error(`Registry package is outside the registered workspace: ${packageDir}`);
|
|
97
|
+
}
|
|
98
|
+
canonicalDirs.set(packageDir, canonical);
|
|
99
|
+
}
|
|
100
|
+
const uniqueDirs = [...new Set(canonicalDirs.values())].sort();
|
|
101
|
+
const ownerEntries = await mapWithConcurrency(uniqueDirs, 8, async (dir) => {
|
|
102
|
+
const result = await runRuntimeCommand({
|
|
103
|
+
runtime: options.runtime,
|
|
104
|
+
execution: options.execution,
|
|
105
|
+
command: "git",
|
|
106
|
+
inheritEnv: GIT_CHILD_ENV,
|
|
107
|
+
args: ["rev-parse", "--show-toplevel"],
|
|
108
|
+
cwd: dir,
|
|
109
|
+
});
|
|
110
|
+
if (result.code !== 0 || !result.stdout.trim()) {
|
|
111
|
+
// Git's own diagnostic is the cause; a path and Git's error carry no remote values.
|
|
112
|
+
throw new Error(`Cannot resolve owning Git repository for ${dir}: git rev-parse exited ${result.code}: ${result.stderr.trim() || "no output"}`);
|
|
113
|
+
}
|
|
114
|
+
const sourceRoot = await realpathChecked(files, result.stdout.trim());
|
|
115
|
+
if (!within(sourceRoot)) {
|
|
116
|
+
throw new Error(`Owning Git repository ${sourceRoot} of ${dir} is outside the registered workspace ${registeredWorkspaceRoot}`);
|
|
117
|
+
}
|
|
118
|
+
return [dir, sourceRoot];
|
|
119
|
+
});
|
|
120
|
+
const owners = new Map(ownerEntries);
|
|
121
|
+
return new Map([...canonicalDirs].map(([packageDir, canonical]) => [packageDir, owners.get(canonical)]));
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* A source root's canonical Forge repository (from its `forge` remote) and repository id.
|
|
125
|
+
*/
|
|
126
|
+
export async function resolveRegistryForgeSourceIdentity(options) {
|
|
127
|
+
const remote = await runRuntimeCommand({
|
|
128
|
+
runtime: options.runtime,
|
|
129
|
+
execution: options.execution,
|
|
130
|
+
command: "git",
|
|
131
|
+
inheritEnv: GIT_CHILD_ENV,
|
|
132
|
+
args: ["remote", "get-url", "forge"],
|
|
133
|
+
cwd: options.sourceRoot,
|
|
134
|
+
});
|
|
135
|
+
if (remote.code !== 0 || !remote.stdout.trim()) {
|
|
136
|
+
throw new Error(`Cannot resolve canonical Forge repository identity for ${options.sourceRoot}`);
|
|
137
|
+
}
|
|
138
|
+
const canonical = canonicalForgeRepositoryIdentity(remote.stdout.trim());
|
|
139
|
+
const repositoryId = await options.resolveRepositoryId(canonical.repositoryRef);
|
|
140
|
+
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(repositoryId)) {
|
|
141
|
+
throw new Error(`Forge returned an invalid repository id for ${canonical.repositoryRef}`);
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
sourceRoot: options.sourceRoot,
|
|
145
|
+
repository: canonical.repository,
|
|
146
|
+
repositoryId,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The Registry provenance (repository, id, directory) a package publishes with,
|
|
151
|
+
* rejecting manifest claims that contradict its owning Forge repository.
|
|
152
|
+
*/
|
|
153
|
+
export async function resolveRegistryWorkspaceProvenance(options) {
|
|
154
|
+
const paths = await getRuntimePath(options.runtime);
|
|
155
|
+
const isCanonicalMirror = (claimed, canonical) => {
|
|
156
|
+
const normalizedClaim = normalizeRepository(claimed);
|
|
157
|
+
const normalizedCanonical = normalizeRepository(canonical);
|
|
158
|
+
if (normalizedClaim === normalizedCanonical)
|
|
159
|
+
return true;
|
|
160
|
+
const canonicalPath = readForgeRepositoryIdentity(normalizedCanonical)?.repositoryRef;
|
|
161
|
+
const claimedForgePath = readForgeRepositoryIdentity(normalizedClaim)?.repositoryRef;
|
|
162
|
+
if (canonicalPath && claimedForgePath && canonicalPath === claimedForgePath)
|
|
163
|
+
return true;
|
|
164
|
+
// GitHub is the declared backup mirror for this Forge workspace. Accept
|
|
165
|
+
// only the exact owner/name identity; staged provenance remains canonical.
|
|
166
|
+
const claimedPath = normalizedClaim.match(/^(?:https?:\/\/|ssh:\/\/|git@)github\.com[/:](.+)$/)?.[1];
|
|
167
|
+
return Boolean(canonicalPath && claimedPath && canonicalPath === claimedPath);
|
|
168
|
+
};
|
|
169
|
+
const identity = {
|
|
170
|
+
repository: canonicalForgeRepositoryIdentity(options.forgeRepository)
|
|
171
|
+
.repository,
|
|
172
|
+
repositoryId: options.forgeRepositoryId,
|
|
173
|
+
};
|
|
174
|
+
const relativeDirectory = paths
|
|
175
|
+
.relative(options.workspaceRoot, options.packageDir)
|
|
176
|
+
.replaceAll("\\", "/");
|
|
177
|
+
if (relativeDirectory === ".." ||
|
|
178
|
+
relativeDirectory.startsWith("../") ||
|
|
179
|
+
relativeDirectory.startsWith("..\\") ||
|
|
180
|
+
paths.isAbsolute(relativeDirectory))
|
|
181
|
+
throw new Error(`Registry package is outside the Forge workspace: ${options.packageDir}`);
|
|
182
|
+
const directory = relativeDirectory || ".";
|
|
183
|
+
const target = [...options.workspace.values()].find((entry) => entry.directory === options.packageDir)?.manifest;
|
|
184
|
+
const claimedRepository = target ? repositoryUrl(target) : undefined;
|
|
185
|
+
const claimedId = target?.vibes?.registry?.repositoryId;
|
|
186
|
+
const claimedDirectory = target?.vibes?.registry?.directory;
|
|
187
|
+
if (claimedRepository &&
|
|
188
|
+
!isCanonicalMirror(claimedRepository, identity.repository)) {
|
|
189
|
+
const claimedOwner = readForgeRepositoryIdentity(claimedRepository)?.repositoryRef.split("/")[0];
|
|
190
|
+
const checkoutOwner = readForgeRepositoryIdentity(identity.repository)?.repositoryRef.split("/")[0];
|
|
191
|
+
const sameOwner = Boolean(claimedOwner && claimedOwner === checkoutOwner);
|
|
192
|
+
if (!sameOwner)
|
|
193
|
+
throw new Error(`Registry repository claim mismatch for ${directory}`);
|
|
194
|
+
}
|
|
195
|
+
if (claimedId && claimedId !== identity.repositoryId)
|
|
196
|
+
throw new Error(`Registry repositoryId claim mismatch for ${directory}`);
|
|
197
|
+
if (claimedDirectory && claimedDirectory !== directory)
|
|
198
|
+
throw new Error(`Registry directory claim mismatch for ${directory}`);
|
|
199
|
+
return { ...identity, directory };
|
|
200
|
+
}
|
|
201
|
+
//# sourceMappingURL=forge-source-identity.js.map
|