@vendure/cloud 0.3.2 → 0.5.0-dev.20261014172655.g652e750
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/README.md +50 -11
- package/dist/cli/arguments.d.ts.map +1 -1
- package/dist/cli/arguments.js +9 -31
- package/dist/cli/arguments.js.map +1 -1
- package/dist/cli/command.d.ts.map +1 -1
- package/dist/cli/command.js +13 -30
- package/dist/cli/command.js.map +1 -1
- package/dist/cli/commands/deployment/arguments.d.ts.map +1 -1
- package/dist/cli/commands/deployment/arguments.js +1 -8
- package/dist/cli/commands/deployment/arguments.js.map +1 -1
- package/dist/cli/commands/deployment/build-logs.d.ts.map +1 -1
- package/dist/cli/commands/deployment/build-logs.js +14 -25
- package/dist/cli/commands/deployment/build-logs.js.map +1 -1
- package/dist/cli/commands/deployment/deploy.d.ts.map +1 -1
- package/dist/cli/commands/deployment/deploy.js +108 -95
- package/dist/cli/commands/deployment/deploy.js.map +1 -1
- package/dist/cli/commands/deployment/index.d.ts.map +1 -1
- package/dist/cli/commands/deployment/index.js +66 -53
- package/dist/cli/commands/deployment/index.js.map +1 -1
- package/dist/cli/commands/deployment/list.d.ts.map +1 -1
- package/dist/cli/commands/deployment/list.js +5 -5
- package/dist/cli/commands/deployment/list.js.map +1 -1
- package/dist/cli/commands/deployment/log-export.d.ts +13 -0
- package/dist/cli/commands/deployment/log-export.d.ts.map +1 -0
- package/dist/cli/commands/deployment/log-export.js +120 -0
- package/dist/cli/commands/deployment/log-export.js.map +1 -0
- package/dist/cli/commands/deployment/log-query-output.d.ts +13 -0
- package/dist/cli/commands/deployment/log-query-output.d.ts.map +1 -0
- package/dist/cli/commands/deployment/log-query-output.js +92 -0
- package/dist/cli/commands/deployment/log-query-output.js.map +1 -0
- package/dist/cli/commands/deployment/logs.d.ts +1 -0
- package/dist/cli/commands/deployment/logs.d.ts.map +1 -1
- package/dist/cli/commands/deployment/logs.js +331 -73
- package/dist/cli/commands/deployment/logs.js.map +1 -1
- package/dist/cli/commands/deployment/options.d.ts +2 -6
- package/dist/cli/commands/deployment/options.d.ts.map +1 -1
- package/dist/cli/commands/deployment/options.js +18 -15
- package/dist/cli/commands/deployment/options.js.map +1 -1
- package/dist/cli/commands/deployment/plan-format.d.ts.map +1 -1
- package/dist/cli/commands/deployment/plan-format.js +2 -2
- package/dist/cli/commands/deployment/plan-format.js.map +1 -1
- package/dist/cli/commands/deployment/plan.d.ts +1 -1
- package/dist/cli/commands/deployment/plan.d.ts.map +1 -1
- package/dist/cli/commands/deployment/plan.js +11 -14
- package/dist/cli/commands/deployment/plan.js.map +1 -1
- package/dist/cli/commands/deployment/recovery.d.ts +9 -0
- package/dist/cli/commands/deployment/recovery.d.ts.map +1 -0
- package/dist/cli/commands/deployment/recovery.js +76 -0
- package/dist/cli/commands/deployment/recovery.js.map +1 -0
- package/dist/cli/commands/deployment/rollback.d.ts.map +1 -1
- package/dist/cli/commands/deployment/rollback.js +61 -10
- package/dist/cli/commands/deployment/rollback.js.map +1 -1
- package/dist/cli/commands/deployment/shared.d.ts.map +1 -1
- package/dist/cli/commands/deployment/shared.js +4 -7
- package/dist/cli/commands/deployment/shared.js.map +1 -1
- package/dist/cli/commands/deployment/show.d.ts.map +1 -1
- package/dist/cli/commands/deployment/show.js +19 -9
- package/dist/cli/commands/deployment/show.js.map +1 -1
- package/dist/cli/commands/deployment/source.d.ts +1 -12
- package/dist/cli/commands/deployment/source.d.ts.map +1 -1
- package/dist/cli/commands/deployment/source.js +6 -14
- package/dist/cli/commands/deployment/source.js.map +1 -1
- package/dist/cli/commands/deployment/status.d.ts.map +1 -1
- package/dist/cli/commands/deployment/status.js +30 -29
- package/dist/cli/commands/deployment/status.js.map +1 -1
- package/dist/cli/commands/deployment/teardown.d.ts.map +1 -1
- package/dist/cli/commands/deployment/teardown.js +28 -26
- package/dist/cli/commands/deployment/teardown.js.map +1 -1
- package/dist/cli/commands/identity-context/context.d.ts.map +1 -1
- package/dist/cli/commands/identity-context/context.js +3 -4
- package/dist/cli/commands/identity-context/context.js.map +1 -1
- package/dist/cli/commands/identity-context/index.d.ts.map +1 -1
- package/dist/cli/commands/identity-context/index.js +16 -50
- package/dist/cli/commands/identity-context/index.js.map +1 -1
- package/dist/cli/commands/identity-context/keys.d.ts.map +1 -1
- package/dist/cli/commands/identity-context/keys.js +19 -20
- package/dist/cli/commands/identity-context/keys.js.map +1 -1
- package/dist/cli/commands/identity-context/use.d.ts.map +1 -1
- package/dist/cli/commands/identity-context/use.js +3 -4
- package/dist/cli/commands/identity-context/use.js.map +1 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +9 -21
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/project-config/config/build-fields.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/build-fields.js +2 -3
- package/dist/cli/commands/project-config/config/build-fields.js.map +1 -1
- package/dist/cli/commands/project-config/config/build.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/build.js +8 -9
- package/dist/cli/commands/project-config/config/build.js.map +1 -1
- package/dist/cli/commands/project-config/config/desired-state.d.ts +1 -1
- package/dist/cli/commands/project-config/config/desired-state.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/desired-state.js +12 -13
- package/dist/cli/commands/project-config/config/desired-state.js.map +1 -1
- package/dist/cli/commands/project-config/config/email/domain.d.ts +5 -0
- package/dist/cli/commands/project-config/config/email/domain.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/email/domain.js +83 -0
- package/dist/cli/commands/project-config/config/email/domain.js.map +1 -0
- package/dist/cli/commands/project-config/config/email/events.d.ts +4 -0
- package/dist/cli/commands/project-config/config/email/events.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/email/events.js +55 -0
- package/dist/cli/commands/project-config/config/email/events.js.map +1 -0
- package/dist/cli/commands/project-config/config/email/index.d.ts +2 -0
- package/dist/cli/commands/project-config/config/email/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/email/index.js +107 -0
- package/dist/cli/commands/project-config/config/email/index.js.map +1 -0
- package/dist/cli/commands/project-config/config/email/test-sending.d.ts +4 -0
- package/dist/cli/commands/project-config/config/email/test-sending.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/email/test-sending.js +69 -0
- package/dist/cli/commands/project-config/config/email/test-sending.js.map +1 -0
- package/dist/cli/commands/project-config/config/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/index.js +16 -13
- package/dist/cli/commands/project-config/config/index.js.map +1 -1
- package/dist/cli/commands/project-config/config/runtime.d.ts +2 -1
- package/dist/cli/commands/project-config/config/runtime.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/runtime.js +33 -30
- package/dist/cli/commands/project-config/config/runtime.js.map +1 -1
- package/dist/cli/commands/project-config/config/set.js +3 -3
- package/dist/cli/commands/project-config/config/set.js.map +1 -1
- package/dist/cli/commands/project-config/config/show.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/show.js +7 -7
- package/dist/cli/commands/project-config/config/show.js.map +1 -1
- package/dist/cli/commands/project-config/env/add.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/add.js +4 -3
- package/dist/cli/commands/project-config/env/add.js.map +1 -1
- package/dist/cli/commands/project-config/env/get.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/get.js +7 -2
- package/dist/cli/commands/project-config/env/get.js.map +1 -1
- package/dist/cli/commands/project-config/env/import.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/import.js +15 -8
- package/dist/cli/commands/project-config/env/import.js.map +1 -1
- package/dist/cli/commands/project-config/env/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/index.js +13 -8
- package/dist/cli/commands/project-config/env/index.js.map +1 -1
- package/dist/cli/commands/project-config/env/list.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/list.js +29 -8
- package/dist/cli/commands/project-config/env/list.js.map +1 -1
- package/dist/cli/commands/project-config/env/metadata-options.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/metadata-options.js +0 -1
- package/dist/cli/commands/project-config/env/metadata-options.js.map +1 -1
- package/dist/cli/commands/project-config/env/pull.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/pull.js +22 -8
- package/dist/cli/commands/project-config/env/pull.js.map +1 -1
- package/dist/cli/commands/project-config/env/read-value.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/read-value.js +8 -4
- package/dist/cli/commands/project-config/env/read-value.js.map +1 -1
- package/dist/cli/commands/project-config/env/rm.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/rm.js +4 -3
- package/dist/cli/commands/project-config/env/rm.js.map +1 -1
- package/dist/cli/commands/project-config/env/run.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/run.js +9 -8
- package/dist/cli/commands/project-config/env/run.js.map +1 -1
- package/dist/cli/commands/project-config/env/update.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/update.js +4 -3
- package/dist/cli/commands/project-config/env/update.js.map +1 -1
- package/dist/cli/commands/project-config/environment/create.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/create.js +5 -6
- package/dist/cli/commands/project-config/environment/create.js.map +1 -1
- package/dist/cli/commands/project-config/environment/delete.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/delete.js +6 -6
- package/dist/cli/commands/project-config/environment/delete.js.map +1 -1
- package/dist/cli/commands/project-config/environment/find.js +3 -3
- package/dist/cli/commands/project-config/environment/find.js.map +1 -1
- package/dist/cli/commands/project-config/environment/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/index.js +18 -6
- package/dist/cli/commands/project-config/environment/index.js.map +1 -1
- package/dist/cli/commands/project-config/environment/initial-superadmin.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/initial-superadmin.js +4 -5
- package/dist/cli/commands/project-config/environment/initial-superadmin.js.map +1 -1
- package/dist/cli/commands/project-config/environment/list.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/list.js +5 -5
- package/dist/cli/commands/project-config/environment/list.js.map +1 -1
- package/dist/cli/commands/project-config/environment/regions.d.ts +6 -0
- package/dist/cli/commands/project-config/environment/regions.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/regions.js +22 -0
- package/dist/cli/commands/project-config/environment/regions.js.map +1 -0
- package/dist/cli/commands/project-config/environment/show.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/show.js +3 -4
- package/dist/cli/commands/project-config/environment/show.js.map +1 -1
- package/dist/cli/commands/project-config/environment/update.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/update.js +3 -4
- package/dist/cli/commands/project-config/environment/update.js.map +1 -1
- package/dist/cli/commands/project-config/index.js +5 -5
- package/dist/cli/commands/project-config/index.js.map +1 -1
- package/dist/cli/commands/project-config/init/build-detection.d.ts.map +1 -1
- package/dist/cli/commands/project-config/init/build-detection.js +4 -4
- package/dist/cli/commands/project-config/init/build-detection.js.map +1 -1
- package/dist/cli/commands/project-config/init/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/init/index.js +4 -5
- package/dist/cli/commands/project-config/init/index.js.map +1 -1
- package/dist/cli/commands/project-config/init/init.d.ts.map +1 -1
- package/dist/cli/commands/project-config/init/init.js +39 -20
- package/dist/cli/commands/project-config/init/init.js.map +1 -1
- package/dist/cli/commands/project-config/options.d.ts.map +1 -1
- package/dist/cli/commands/project-config/options.js +9 -14
- package/dist/cli/commands/project-config/options.js.map +1 -1
- package/dist/cli/commands/project-config/project/create.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/create.js +3 -3
- package/dist/cli/commands/project-config/project/create.js.map +1 -1
- package/dist/cli/commands/project-config/project/delete.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/delete.js +4 -5
- package/dist/cli/commands/project-config/project/delete.js.map +1 -1
- package/dist/cli/commands/project-config/project/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/index.js +4 -5
- package/dist/cli/commands/project-config/project/index.js.map +1 -1
- package/dist/cli/commands/project-config/project/link.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/link.js +4 -4
- package/dist/cli/commands/project-config/project/link.js.map +1 -1
- package/dist/cli/commands/project-config/project/list.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/list.js +12 -5
- package/dist/cli/commands/project-config/project/list.js.map +1 -1
- package/dist/cli/commands/project-config/project/show.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/show.js +16 -7
- package/dist/cli/commands/project-config/project/show.js.map +1 -1
- package/dist/cli/commands/project-config/project/subscription-state.d.ts +5 -0
- package/dist/cli/commands/project-config/project/subscription-state.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/subscription-state.js +54 -0
- package/dist/cli/commands/project-config/project/subscription-state.js.map +1 -0
- package/dist/cli/commands/project-config/project/unlink.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/unlink.js +2 -3
- package/dist/cli/commands/project-config/project/unlink.js.map +1 -1
- package/dist/cli/commands/project-config/project/update.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/update.js +3 -4
- package/dist/cli/commands/project-config/project/update.js.map +1 -1
- package/dist/cli/commands/project-config/source/connect.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/connect.js +27 -29
- package/dist/cli/commands/project-config/source/connect.js.map +1 -1
- package/dist/cli/commands/project-config/source/disconnect.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/disconnect.js +4 -4
- package/dist/cli/commands/project-config/source/disconnect.js.map +1 -1
- package/dist/cli/commands/project-config/source/index.js +7 -7
- package/dist/cli/commands/project-config/source/index.js.map +1 -1
- package/dist/cli/commands/project-config/source/map.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/map.js +14 -18
- package/dist/cli/commands/project-config/source/map.js.map +1 -1
- package/dist/cli/commands/project-config/source/repos.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/repos.js +5 -5
- package/dist/cli/commands/project-config/source/repos.js.map +1 -1
- package/dist/cli/commands/project-config/source/status.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/status.js +66 -21
- package/dist/cli/commands/project-config/source/status.js.map +1 -1
- package/dist/cli/commands/runtime-data/backup.d.ts +1 -0
- package/dist/cli/commands/runtime-data/backup.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/backup.js +56 -22
- package/dist/cli/commands/runtime-data/backup.js.map +1 -1
- package/dist/cli/commands/runtime-data/index.d.ts +1 -0
- package/dist/cli/commands/runtime-data/index.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/index.js +54 -33
- package/dist/cli/commands/runtime-data/index.js.map +1 -1
- package/dist/cli/commands/runtime-data/resource.d.ts +1 -0
- package/dist/cli/commands/runtime-data/resource.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/resource.js +52 -32
- package/dist/cli/commands/runtime-data/resource.js.map +1 -1
- package/dist/cli/commands/runtime-data/restore.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/restore.js +52 -37
- package/dist/cli/commands/runtime-data/restore.js.map +1 -1
- package/dist/cli/commands/runtime-data/seeds.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/seeds.js +24 -26
- package/dist/cli/commands/runtime-data/seeds.js.map +1 -1
- package/dist/cli/commands/runtime-data/tunnel.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/tunnel.js +33 -43
- package/dist/cli/commands/runtime-data/tunnel.js.map +1 -1
- package/dist/cli/host-arguments.d.ts.map +1 -1
- package/dist/cli/host-arguments.js +10 -18
- package/dist/cli/host-arguments.js.map +1 -1
- package/dist/cli/host-nodes.js +1 -1
- package/dist/cli/host-nodes.js.map +1 -1
- package/dist/cli/index.d.ts +17 -10
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +27 -28
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/lib/api-client.d.ts +10 -5
- package/dist/cli/lib/api-client.d.ts.map +1 -1
- package/dist/cli/lib/api-client.js +23 -42
- package/dist/cli/lib/api-client.js.map +1 -1
- package/dist/cli/lib/auth.d.ts +4 -126
- package/dist/cli/lib/auth.d.ts.map +1 -1
- package/dist/cli/lib/auth.js +8 -495
- package/dist/cli/lib/auth.js.map +1 -1
- package/dist/cli/lib/cli-login.d.ts +12 -0
- package/dist/cli/lib/cli-login.d.ts.map +1 -0
- package/dist/cli/lib/cli-login.js +155 -0
- package/dist/cli/lib/cli-login.js.map +1 -0
- package/dist/cli/lib/cloud-api-url.d.ts +2 -0
- package/dist/cli/lib/cloud-api-url.d.ts.map +1 -0
- package/dist/cli/lib/cloud-api-url.js +3 -0
- package/dist/cli/lib/cloud-api-url.js.map +1 -0
- package/dist/cli/lib/commit.d.ts +4 -0
- package/dist/cli/lib/commit.d.ts.map +1 -0
- package/dist/cli/lib/commit.js +21 -0
- package/dist/cli/lib/commit.js.map +1 -0
- package/dist/cli/lib/config-revisions.d.ts +9 -0
- package/dist/cli/lib/config-revisions.d.ts.map +1 -0
- package/dist/cli/lib/config-revisions.js +52 -0
- package/dist/cli/lib/config-revisions.js.map +1 -0
- package/dist/cli/lib/config.d.ts +0 -4
- package/dist/cli/lib/config.d.ts.map +1 -1
- package/dist/cli/lib/config.js +3 -5
- package/dist/cli/lib/config.js.map +1 -1
- package/dist/cli/lib/console-pairing.d.ts +2 -0
- package/dist/cli/lib/console-pairing.d.ts.map +1 -0
- package/dist/cli/lib/console-pairing.js +58 -0
- package/dist/cli/lib/console-pairing.js.map +1 -0
- package/dist/cli/lib/contract/backup-schedule-reasons.d.ts +4 -0
- package/dist/cli/lib/contract/backup-schedule-reasons.d.ts.map +1 -0
- package/dist/cli/lib/contract/backup-schedule-reasons.js +13 -0
- package/dist/cli/lib/contract/backup-schedule-reasons.js.map +1 -0
- package/dist/cli/lib/contract/build-settings.d.ts +1 -1
- package/dist/cli/lib/contract/build-settings.d.ts.map +1 -1
- package/dist/cli/lib/contract/build-settings.js +12 -18
- package/dist/cli/lib/contract/build-settings.js.map +1 -1
- package/dist/cli/lib/contract/database.d.ts +19 -0
- package/dist/cli/lib/contract/database.d.ts.map +1 -1
- package/dist/cli/lib/contract/database.js +7 -13
- package/dist/cli/lib/contract/database.js.map +1 -1
- package/dist/cli/lib/contract/deployment-resource-labels.d.ts.map +1 -1
- package/dist/cli/lib/contract/deployment-resource-labels.js +2 -6
- package/dist/cli/lib/contract/deployment-resource-labels.js.map +1 -1
- package/dist/cli/lib/contract/deployments.d.ts +14 -0
- package/dist/cli/lib/contract/deployments.d.ts.map +1 -1
- package/dist/cli/lib/contract/deployments.js +54 -24
- package/dist/cli/lib/contract/deployments.js.map +1 -1
- package/dist/cli/lib/contract/desired-state.d.ts +6 -6
- package/dist/cli/lib/contract/desired-state.d.ts.map +1 -1
- package/dist/cli/lib/contract/desired-state.js +52 -55
- package/dist/cli/lib/contract/desired-state.js.map +1 -1
- package/dist/cli/lib/contract/env-vars.d.ts +37 -0
- package/dist/cli/lib/contract/env-vars.d.ts.map +1 -0
- package/dist/cli/lib/contract/env-vars.js +6 -0
- package/dist/cli/lib/contract/env-vars.js.map +1 -0
- package/dist/cli/lib/contract/foreign-credentials.d.ts +14 -25
- package/dist/cli/lib/contract/foreign-credentials.d.ts.map +1 -1
- package/dist/cli/lib/contract/foreign-credentials.js +19 -30
- package/dist/cli/lib/contract/foreign-credentials.js.map +1 -1
- package/dist/cli/lib/contract/logs.d.ts +120 -0
- package/dist/cli/lib/contract/logs.d.ts.map +1 -1
- package/dist/cli/lib/contract/logs.js +113 -16
- package/dist/cli/lib/contract/logs.js.map +1 -1
- package/dist/cli/lib/contract/managed-email.d.ts +57 -0
- package/dist/cli/lib/contract/managed-email.d.ts.map +1 -0
- package/dist/cli/lib/contract/managed-email.js +20 -0
- package/dist/cli/lib/contract/managed-email.js.map +1 -0
- package/dist/cli/lib/contract/permission-denied.d.ts +16 -0
- package/dist/cli/lib/contract/permission-denied.d.ts.map +1 -0
- package/dist/cli/lib/contract/permission-denied.js +20 -0
- package/dist/cli/lib/contract/permission-denied.js.map +1 -0
- package/dist/cli/lib/contract/projects.d.ts +6 -0
- package/dist/cli/lib/contract/projects.d.ts.map +1 -1
- package/dist/cli/lib/contract/projects.js +2 -3
- package/dist/cli/lib/contract/projects.js.map +1 -1
- package/dist/cli/lib/contract/public-error-details.d.ts.map +1 -1
- package/dist/cli/lib/contract/public-error-details.js +28 -43
- package/dist/cli/lib/contract/public-error-details.js.map +1 -1
- package/dist/cli/lib/contract/regions.d.ts +11 -0
- package/dist/cli/lib/contract/regions.d.ts.map +1 -0
- package/dist/cli/lib/contract/regions.js +7 -0
- package/dist/cli/lib/contract/regions.js.map +1 -0
- package/dist/cli/lib/contract/runtime-operations.d.ts +0 -1
- package/dist/cli/lib/contract/runtime-operations.d.ts.map +1 -1
- package/dist/cli/lib/contract/runtime-operations.js +11 -21
- package/dist/cli/lib/contract/runtime-operations.js.map +1 -1
- package/dist/cli/lib/contract/seeds.d.ts.map +1 -1
- package/dist/cli/lib/contract/seeds.js +12 -21
- package/dist/cli/lib/contract/seeds.js.map +1 -1
- package/dist/cli/lib/contract/source-disconnect-reasons.d.ts +4 -0
- package/dist/cli/lib/contract/source-disconnect-reasons.d.ts.map +1 -0
- package/dist/cli/lib/contract/source-disconnect-reasons.js +23 -0
- package/dist/cli/lib/contract/source-disconnect-reasons.js.map +1 -0
- package/dist/cli/lib/contract/source-repository.d.ts +1 -1
- package/dist/cli/lib/contract/source-repository.d.ts.map +1 -1
- package/dist/cli/lib/contract/source-repository.js +6 -9
- package/dist/cli/lib/contract/source-repository.js.map +1 -1
- package/dist/cli/lib/contract/wire-types.d.ts.map +1 -1
- package/dist/cli/lib/contract/wire-types.js +3 -8
- package/dist/cli/lib/contract/wire-types.js.map +1 -1
- package/dist/cli/lib/contract/wire-values.d.ts.map +1 -1
- package/dist/cli/lib/contract/wire-values.js +2 -3
- package/dist/cli/lib/contract/wire-values.js.map +1 -1
- package/dist/cli/lib/dotenv.d.ts +6 -0
- package/dist/cli/lib/dotenv.d.ts.map +1 -1
- package/dist/cli/lib/dotenv.js +62 -20
- package/dist/cli/lib/dotenv.js.map +1 -1
- package/dist/cli/lib/env-file.d.ts.map +1 -1
- package/dist/cli/lib/env-file.js +5 -11
- package/dist/cli/lib/env-file.js.map +1 -1
- package/dist/cli/lib/env-preflight.d.ts +6 -1
- package/dist/cli/lib/env-preflight.d.ts.map +1 -1
- package/dist/cli/lib/env-preflight.js +91 -63
- package/dist/cli/lib/env-preflight.js.map +1 -1
- package/dist/cli/lib/errors.d.ts +17 -19
- package/dist/cli/lib/errors.d.ts.map +1 -1
- package/dist/cli/lib/errors.js +47 -60
- package/dist/cli/lib/errors.js.map +1 -1
- package/dist/cli/lib/format.d.ts.map +1 -1
- package/dist/cli/lib/format.js +3 -5
- package/dist/cli/lib/format.js.map +1 -1
- package/dist/cli/lib/invocation.d.ts +4 -5
- package/dist/cli/lib/invocation.d.ts.map +1 -1
- package/dist/cli/lib/invocation.js +5 -33
- package/dist/cli/lib/invocation.js.map +1 -1
- package/dist/cli/lib/log-stream.d.ts.map +1 -1
- package/dist/cli/lib/log-stream.js +15 -23
- package/dist/cli/lib/log-stream.js.map +1 -1
- package/dist/cli/lib/logger.d.ts.map +1 -1
- package/dist/cli/lib/logger.js +7 -12
- package/dist/cli/lib/logger.js.map +1 -1
- package/dist/cli/lib/organization.d.ts.map +1 -1
- package/dist/cli/lib/organization.js +5 -13
- package/dist/cli/lib/organization.js.map +1 -1
- package/dist/cli/lib/platform-address.d.ts +3 -0
- package/dist/cli/lib/platform-address.d.ts.map +1 -0
- package/dist/cli/lib/platform-address.js +7 -0
- package/dist/cli/lib/platform-address.js.map +1 -0
- package/dist/cli/lib/project-link.d.ts.map +1 -1
- package/dist/cli/lib/project-link.js +2 -4
- package/dist/cli/lib/project-link.js.map +1 -1
- package/dist/cli/lib/resolve.d.ts +2 -6
- package/dist/cli/lib/resolve.d.ts.map +1 -1
- package/dist/cli/lib/resolve.js +35 -34
- package/dist/cli/lib/resolve.js.map +1 -1
- package/dist/cli/lib/source-repository-link.d.ts.map +1 -1
- package/dist/cli/lib/source-repository-link.js +6 -9
- package/dist/cli/lib/source-repository-link.js.map +1 -1
- package/dist/cli/lib/terminal-output.d.ts +12 -0
- package/dist/cli/lib/terminal-output.d.ts.map +1 -0
- package/dist/cli/lib/terminal-output.js +69 -0
- package/dist/cli/lib/terminal-output.js.map +1 -0
- package/dist/cli/lib/types.d.ts +3 -7
- package/dist/cli/lib/types.d.ts.map +1 -1
- package/dist/cli/lib/types.js.map +1 -1
- package/dist/cli/lib/utf8.d.ts +2 -0
- package/dist/cli/lib/utf8.d.ts.map +1 -0
- package/dist/cli/lib/utf8.js +12 -0
- package/dist/cli/lib/utf8.js.map +1 -0
- package/dist/cli/root-options.d.ts.map +1 -1
- package/dist/cli/root-options.js +11 -14
- package/dist/cli/root-options.js.map +1 -1
- package/dist/cli-plugin.d.ts.map +1 -1
- package/dist/cli-plugin.js +2 -6
- package/dist/cli-plugin.js.map +1 -1
- package/dist/cloud-config-module.js +2 -2
- package/dist/cloud-config-module.js.map +1 -1
- package/dist/dev/cli-host.d.ts.map +1 -1
- package/dist/dev/cli-host.js +16 -19
- package/dist/dev/cli-host.js.map +1 -1
- package/dist/dev/dashboard-vite-config.d.ts +1 -0
- package/dist/dev/dashboard-vite-config.d.ts.map +1 -1
- package/dist/dev/dashboard-vite-config.js +26 -6
- package/dist/dev/dashboard-vite-config.js.map +1 -1
- package/dist/dev/dev-command.d.ts.map +1 -1
- package/dist/dev/dev-command.js +76 -39
- package/dist/dev/dev-command.js.map +1 -1
- package/dist/dev/dev-config.d.ts +3 -0
- package/dist/dev/dev-config.d.ts.map +1 -1
- package/dist/dev/dev-config.js +43 -13
- package/dist/dev/dev-config.js.map +1 -1
- package/dist/dev/dev-migrate.js +7 -9
- package/dist/dev/dev-migrate.js.map +1 -1
- package/dist/dev/dev-process.d.ts.map +1 -1
- package/dist/dev/dev-process.js +6 -10
- package/dist/dev/dev-process.js.map +1 -1
- package/dist/dev/dev-server.js +7 -6
- package/dist/dev/dev-server.js.map +1 -1
- package/dist/dev/dev-worker.js +5 -2
- package/dist/dev/dev-worker.js.map +1 -1
- package/dist/dev/local-services.d.ts.map +1 -1
- package/dist/dev/local-services.js +152 -106
- package/dist/dev/local-services.js.map +1 -1
- package/dist/dev/project-layout.d.ts.map +1 -1
- package/dist/dev/project-layout.js +12 -17
- package/dist/dev/project-layout.js.map +1 -1
- package/dist/dev/project-plugin-scope.d.ts +2 -0
- package/dist/dev/project-plugin-scope.d.ts.map +1 -0
- package/dist/dev/project-plugin-scope.js +38 -0
- package/dist/dev/project-plugin-scope.js.map +1 -0
- package/dist/entrypoint.js +2 -0
- package/dist/entrypoint.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/local-asset-server.d.ts.map +1 -1
- package/dist/local-asset-server.js +7 -13
- package/dist/local-asset-server.js.map +1 -1
- package/dist/local-cache-plugin.d.ts.map +1 -1
- package/dist/local-cache-plugin.js +20 -28
- package/dist/local-cache-plugin.js.map +1 -1
- package/dist/local-cache.d.ts.map +1 -1
- package/dist/local-cache.js +40 -55
- package/dist/local-cache.js.map +1 -1
- package/dist/local-core.d.ts +2 -0
- package/dist/local-core.d.ts.map +1 -0
- package/dist/local-core.js +13 -0
- package/dist/local-core.js.map +1 -0
- package/dist/local-dashboard-plugin.d.ts.map +1 -1
- package/dist/local-dashboard-plugin.js +6 -11
- package/dist/local-dashboard-plugin.js.map +1 -1
- package/dist/local-database.d.ts.map +1 -1
- package/dist/local-database.js +20 -23
- package/dist/local-database.js.map +1 -1
- package/dist/local-durable-execution-plugin.d.ts +15 -0
- package/dist/local-durable-execution-plugin.d.ts.map +1 -0
- package/dist/local-durable-execution-plugin.js +305 -0
- package/dist/local-durable-execution-plugin.js.map +1 -0
- package/dist/local-runtime-guard.d.ts +2 -0
- package/dist/local-runtime-guard.d.ts.map +1 -1
- package/dist/local-runtime-guard.js +40 -3
- package/dist/local-runtime-guard.js.map +1 -1
- package/dist/local-runtime.d.ts.map +1 -1
- package/dist/local-runtime.js +53 -43
- package/dist/local-runtime.js.map +1 -1
- package/package.json +20 -14
- package/dist/cli/commands/identity-context/login.d.ts +0 -2
- package/dist/cli/commands/identity-context/login.d.ts.map +0 -1
- package/dist/cli/commands/identity-context/login.js +0 -158
- package/dist/cli/commands/identity-context/login.js.map +0 -1
- package/dist/cli/commands/identity-context/logout.d.ts +0 -2
- package/dist/cli/commands/identity-context/logout.d.ts.map +0 -1
- package/dist/cli/commands/identity-context/logout.js +0 -12
- package/dist/cli/commands/identity-context/logout.js.map +0 -1
- package/dist/cli/commands/identity-context/org-switch.d.ts +0 -3
- package/dist/cli/commands/identity-context/org-switch.d.ts.map +0 -1
- package/dist/cli/commands/identity-context/org-switch.js +0 -71
- package/dist/cli/commands/identity-context/org-switch.js.map +0 -1
- package/dist/cli/commands/identity-context/whoami.d.ts +0 -3
- package/dist/cli/commands/identity-context/whoami.d.ts.map +0 -1
- package/dist/cli/commands/identity-context/whoami.js +0 -80
- package/dist/cli/commands/identity-context/whoami.js.map +0 -1
- package/dist/cli/lib/file-lock.d.ts +0 -23
- package/dist/cli/lib/file-lock.d.ts.map +0 -1
- package/dist/cli/lib/file-lock.js +0 -121
- package/dist/cli/lib/file-lock.js.map +0 -1
|
@@ -2,24 +2,20 @@
|
|
|
2
2
|
// for why this package cannot import it, and `test/cli-contract-parity.test.ts` for what keeps the
|
|
3
3
|
// two answering the same.
|
|
4
4
|
//
|
|
5
|
-
// The write half stays
|
|
6
|
-
// `
|
|
7
|
-
//
|
|
5
|
+
// The write half stays in the control plane: `trustedPublicErrorDetails`,
|
|
6
|
+
// `providerPublicErrorDetails` and `statusTokenPublicErrorDetails` record errors, and the CLI does
|
|
7
|
+
// not.
|
|
8
8
|
//
|
|
9
|
-
// The `PublicErrorDetails` brand is not mirrored
|
|
10
|
-
//
|
|
11
|
-
// separately declared brands would also be distinct types that never unify, which is worse than
|
|
12
|
-
// not having one.
|
|
9
|
+
// The `PublicErrorDetails` brand is not mirrored. It marks a value safe to persist, a claim only
|
|
10
|
+
// the writer can make, and two separately declared brands would never unify.
|
|
13
11
|
import { formatDeploymentResourceLabel, } from "./deployment-resource-labels.js";
|
|
14
|
-
// Signatures of raw infrastructure-provider prose: a versioned provider API
|
|
15
|
-
//
|
|
12
|
+
// Signatures of raw infrastructure-provider prose: a versioned provider API path, a retired
|
|
13
|
+
// provider's name, or its API host.
|
|
16
14
|
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
// alternative would echo those rows verbatim instead of describing them.
|
|
22
|
-
// Detection is internal; the scrubbed OUTPUT never names a provider.
|
|
15
|
+
// A denylist. `formatUserFacingErrorDetails` runs on read over every persisted `errorDetails` row,
|
|
16
|
+
// and rows written before the execution backend was removed (CLO-294) still contain the retired
|
|
17
|
+
// name. Dropping the alternative echoes those rows verbatim. The scrubbed output never names a
|
|
18
|
+
// provider.
|
|
23
19
|
const PROVIDER_DETAIL_RE = /\/v\d+\/(?:teams|projects|orgs|accounts)\/|\bNorthflank\b|https?:\/\/api\.northflank\.com/i;
|
|
24
20
|
const SAFE_PROVIDER_MESSAGES = [
|
|
25
21
|
/^(?:volume )?(?:is )?(?:still )?(?:attached|in use)\.?$/i,
|
|
@@ -28,9 +24,8 @@ const SAFE_PROVIDER_MESSAGES = [
|
|
|
28
24
|
/^(?:name )?already exists\.?$/i,
|
|
29
25
|
/^project-level quota exceeded\.?$/i,
|
|
30
26
|
];
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
// dropping one only lets an old stored error line through unscrubbed.
|
|
27
|
+
// A denylist: a listed kind is relabelled instead of echoed. Retired kinds stay, because dropping
|
|
28
|
+
// one lets an old stored error line through unscrubbed.
|
|
34
29
|
const KNOWN_RESOURCE_KINDS = new Set([
|
|
35
30
|
"Addon",
|
|
36
31
|
"Condition",
|
|
@@ -46,8 +41,8 @@ const KNOWN_RESOURCE_KINDS = new Set([
|
|
|
46
41
|
"Volume",
|
|
47
42
|
"Workflow",
|
|
48
43
|
]);
|
|
49
|
-
// Only unambiguous generated refs belong here.
|
|
50
|
-
//
|
|
44
|
+
// Only unambiguous generated refs belong here. "database" and "server" may be ordinary
|
|
45
|
+
// application-error prefixes.
|
|
51
46
|
const KNOWN_RESOURCE_REF_LABELS = {
|
|
52
47
|
migrationRun: "Migration job",
|
|
53
48
|
searchSecrets: "Search",
|
|
@@ -68,8 +63,7 @@ function formatUserFacingErrorLine(rawLine, context) {
|
|
|
68
63
|
const line = rawLine.trim();
|
|
69
64
|
if (!line)
|
|
70
65
|
return rawLine;
|
|
71
|
-
// The vendor alternative is the shape the removed teardown path
|
|
72
|
-
// persisted; the neutral one is what a replacement backend would write.
|
|
66
|
+
// The vendor alternative is the shape the removed teardown path persisted.
|
|
73
67
|
if (/^Timed out waiting for deleted (?:Northflank|provider) resources to disappear\b/i.test(line)) {
|
|
74
68
|
return "Timed out waiting for deleted resources to disappear.";
|
|
75
69
|
}
|
|
@@ -121,11 +115,9 @@ function labelForResourceRef(ref) {
|
|
|
121
115
|
}
|
|
122
116
|
return null;
|
|
123
117
|
}
|
|
124
|
-
// Rollout vocabulary from the removed orchestrator.
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
// `formatUserFacingErrorDetails` runs on READ. Without the branch the prose
|
|
128
|
-
// matches no scrubber and is echoed verbatim, third-party noun included.
|
|
118
|
+
// Rollout vocabulary from the removed orchestrator. Stored `deployments` and `teardowns` rows still
|
|
119
|
+
// contain these lines and `formatUserFacingErrorDetails` runs on read. Without this branch the
|
|
120
|
+
// prose is echoed verbatim, third-party noun included.
|
|
129
121
|
function formatDeploymentRolloutLine(line) {
|
|
130
122
|
if (/^Template run exceeded timeout\b/i.test(line)) {
|
|
131
123
|
return "Deployment rollout timed out; cleanup was requested.";
|
|
@@ -135,9 +127,8 @@ function formatDeploymentRolloutLine(line) {
|
|
|
135
127
|
return null;
|
|
136
128
|
}
|
|
137
129
|
function formatErrorMessage(message, context) {
|
|
138
|
-
// `NF: ` is a prefix only the removed writer produced
|
|
139
|
-
//
|
|
140
|
-
// on the default-deny path instead of echoing arbitrary provider prose.
|
|
130
|
+
// `NF: ` is a prefix only the removed writer produced. The branch keeps already-persisted rows on
|
|
131
|
+
// the default-deny path instead of echoing provider prose.
|
|
141
132
|
const withoutPrefix = message.replace(/^NF:\s*/i, "").trim();
|
|
142
133
|
if (withoutPrefix !== message.trim())
|
|
143
134
|
return scrubProviderMessage(withoutPrefix, context);
|
|
@@ -208,22 +199,16 @@ function findNestedErrorMessage(value) {
|
|
|
208
199
|
}
|
|
209
200
|
return null;
|
|
210
201
|
}
|
|
211
|
-
// Default-deny. Provider prose is untrusted: unless it matches
|
|
212
|
-
//
|
|
202
|
+
// Default-deny. Provider prose is untrusted: unless it matches a vetted, id-free phrase, it is
|
|
203
|
+
// described instead of echoed.
|
|
213
204
|
function scrubProviderMessage(message, context) {
|
|
214
|
-
// Retired rollout shapes
|
|
215
|
-
// these reach here nested inside a stored provider body or behind the `NF:`
|
|
205
|
+
// Retired rollout shapes reach here nested inside a stored provider body or behind the `NF:`
|
|
216
206
|
// prefix, where the line-level branch above never sees them.
|
|
217
207
|
//
|
|
218
|
-
//
|
|
219
|
-
//
|
|
220
|
-
// is
|
|
221
|
-
//
|
|
222
|
-
// through to the default-deny below and reads "Provider request failed" — and
|
|
223
|
-
// the advice it carried ("push an image") is not actionable while there is no
|
|
224
|
-
// build backend to produce one (CLO-347). A stored row from before the
|
|
225
|
-
// decommission gets the generic wording rather than an instruction the
|
|
226
|
-
// customer cannot follow. Restore the branch with the build pipeline.
|
|
208
|
+
// The removed template engine's `Payload validation failed after resolving inputs.
|
|
209
|
+
// "deployment.external.imagePath" is required.` has no branch. Nothing leaks without one, and its
|
|
210
|
+
// advice to push an image is not actionable without a build backend (CLO-347). Such a row reads
|
|
211
|
+
// "Provider request failed". Restore the branch with the build pipeline.
|
|
227
212
|
if (/^template cleanup failed\.?$/i.test(message))
|
|
228
213
|
return "cleanup failed";
|
|
229
214
|
if (/\btemplate run\b.*\b(?:failed|failure|error|timed out)\b/i.test(message)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-error-details.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/public-error-details.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,mGAAmG;AACnG,0BAA0B;AAC1B,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"public-error-details.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/public-error-details.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,mGAAmG;AACnG,0BAA0B;AAC1B,EAAE;AACF,0EAA0E;AAC1E,mGAAmG;AACnG,OAAO;AACP,EAAE;AACF,iGAAiG;AACjG,6EAA6E;AAE7E,OAAO,EAEL,6BAA6B,GAC9B,MAAM,iCAAiC,CAAC;AAEzC,4FAA4F;AAC5F,oCAAoC;AACpC,EAAE;AACF,mGAAmG;AACnG,gGAAgG;AAChG,+FAA+F;AAC/F,YAAY;AACZ,MAAM,kBAAkB,GACtB,4FAA4F,CAAC;AAC/F,MAAM,sBAAsB,GAAG;IAC7B,0DAA0D;IAC1D,yEAAyE;IACzE,8BAA8B;IAC9B,gCAAgC;IAChC,oCAAoC;CACrC,CAAC;AAEF,kGAAkG;AAClG,wDAAwD;AACxD,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC;IACnC,OAAO;IACP,WAAW;IACX,mBAAmB;IACnB,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,SAAS;IACT,aAAa;IACb,WAAW;IACX,UAAU;IACV,mBAAmB;IACnB,QAAQ;IACR,UAAU;CACX,CAAC,CAAC;AAEH,uFAAuF;AACvF,8BAA8B;AAC9B,MAAM,yBAAyB,GAA2B;IACxD,YAAY,EAAE,eAAe;IAC7B,aAAa,EAAE,QAAQ;IACvB,YAAY,EAAE,aAAa;IAC3B,WAAW,EAAE,uBAAuB;CACrC,CAAC;AAEF,MAAM,UAAU,4BAA4B,CAC1C,KAAa,EACb,OAAwC;IAExC,MAAM,OAAO,GAAG,KA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AA2B,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC/D,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAAE,OAAO,QAAQ,CAAC;IACtF,OAAO,yBAAyB,CAAC;AACnC,CAAC;AAED,SAAS,2BAA2B,CAClC,OAAe,EACf,OAAwC;IAExC,IAAI,CAAC,OAAO;QAAE,OAAO,OAAO,CAAC;IAC7B,MAAM,oBAAoB,GAAG,GAAG,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IACjF,OAAO,OAAO;SACX,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,GAAG,CAAC,EAAE,UAAU,CAAC;SAC7F,OAAO,CAAC,IAAI,MAAM,CAAC,MAAM,YAAY,CAAC,oBAAoB,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,aAAa,CAAC,CAAC;AAC5F,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,OAAO,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { VcRegion } from "./desired-state.js";
|
|
2
|
+
export interface RegionLocation {
|
|
3
|
+
country: string;
|
|
4
|
+
continent: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SupportedRegionResponse {
|
|
7
|
+
region: VcRegion;
|
|
8
|
+
location: RegionLocation;
|
|
9
|
+
available: boolean;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=regions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/regions.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,QAAQ,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Mirrors the supported-region catalog shapes from `@vendure-cloud/api-types`'s `index.ts`. See
|
|
2
|
+
// ./README.md for why this package cannot import them, including as types.
|
|
3
|
+
//
|
|
4
|
+
// `VcRegion` is declared in `desired-state.ts`, as the runtime schema `environment create` parses
|
|
5
|
+
// `--region` with.
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=regions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regions.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/regions.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,2EAA2E;AAC3E,EAAE;AACF,kGAAkG;AAClG,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-operations.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/runtime-operations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime-operations.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/runtime-operations.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEnE,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEvE,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CA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AM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,aAAa,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,sBAAsB,CAAC;QAC/B,MAAM,EAAE,sBAAsB,CAAC;QAC/B,OAAO,EAAE,2BAA2B,CAAC;QACrC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B,GAAG,IAAI,CAAC;CACV"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
// Mirrors the half of `@vendure-cloud/api-types`'s `runtime-operations.ts` that the hosted runtime
|
|
2
2
|
// commands read. See ./README.md for why this package cannot import it, including as types.
|
|
3
|
-
//
|
|
4
3
|
// `test/cli-contract-drift.test.ts` compares these declarations with the originals as text, and
|
|
5
4
|
// `test/cli-contract-parity.test.ts` runs the values and guards against the real ones.
|
|
6
5
|
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
// runtime. `RuntimeOperationAction` and `RuntimeOperationStatus` keep the object form because call
|
|
11
|
-
// sites read their members by name.
|
|
12
|
-
//
|
|
13
|
-
// The write half is not here. Nothing in the CLI records a runtime operation; it starts one and
|
|
14
|
-
// reads what came back.
|
|
6
|
+
// Service state, activity and service result outcome are a `const` array plus a derived type so the
|
|
7
|
+
// parity suite can compare their members at runtime. `RuntimeOperationAction` and
|
|
8
|
+
// `RuntimeOperationStatus` keep the object form because call sites read their members by name.
|
|
15
9
|
export const RuntimeOperationAction = {
|
|
16
10
|
STOP: "STOP",
|
|
17
11
|
START: "START",
|
|
@@ -25,9 +19,8 @@ export const RuntimeOperationStatus = {
|
|
|
25
19
|
FAILED: "FAILED",
|
|
26
20
|
};
|
|
27
21
|
export const RUNTIME_SERVICE_STATES = ["NOT_PROVISIONED", "STARTED", "STOPPED", "UNKNOWN"];
|
|
28
|
-
// Whether a started runtime service has a task running at this instant
|
|
29
|
-
//
|
|
30
|
-
// is `STARTED`.
|
|
22
|
+
// Whether a started runtime service has a task running at this instant. Meaningful only while VC
|
|
23
|
+
// Runtime State is `STARTED` (ADR-0029).
|
|
31
24
|
export const RUNTIME_ACTIVITIES = ["AWAKE", "ASLEEP"];
|
|
32
25
|
export const RUNTIME_SERVICE_RESULT_OUTCOMES = [
|
|
33
26
|
"IN_PROGRESS",
|
|
@@ -35,9 +28,8 @@ export const RUNTIME_SERVICE_RESULT_OUTCOMES = [
|
|
|
35
28
|
"NO_CHANGE",
|
|
36
29
|
"FAILED",
|
|
37
30
|
];
|
|
38
|
-
// Statuses after which an operation never changes again.
|
|
39
|
-
//
|
|
40
|
-
// a hand-kept copy silently keeps polling forever when a status is added.
|
|
31
|
+
// Statuses after which an operation never changes again. A hand-kept copy keeps polling forever
|
|
32
|
+
// when a status is added.
|
|
41
33
|
export const TERMINAL_RUNTIME_OPERATION_STATUSES = [
|
|
42
34
|
RuntimeOperationStatus.SUCCEEDED,
|
|
43
35
|
RuntimeOperationStatus.PARTIAL,
|
|
@@ -46,13 +38,11 @@ export const TERMINAL_RUNTIME_OPERATION_STATUSES = [
|
|
|
46
38
|
export function isTerminalRuntimeOperationStatus(status) {
|
|
47
39
|
return TERMINAL_RUNTIME_OPERATION_STATUSES.includes(status);
|
|
48
40
|
}
|
|
49
|
-
// A resource whose operation died between the pre-flight checkpoint and the
|
|
50
|
-
//
|
|
51
|
-
// restart with no known result, so no surface may report it as either.
|
|
41
|
+
// A resource whose operation died between the pre-flight checkpoint and the provider's answer. It
|
|
42
|
+
// is a restart with no known result, so no surface may report it as failed or succeeded.
|
|
52
43
|
export const RUNTIME_OPERATION_INTERRUPTED_REASON = "Resource operation was interrupted with an unknown outcome.";
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
// is still legitimately running.
|
|
44
|
+
// The server allows five minutes per resource, so a shorter follow time abandons work that is still
|
|
45
|
+
// running.
|
|
56
46
|
export const RUNTIME_OPERATION_TIMEOUT_MS = 15 * 60_000;
|
|
57
47
|
export const RUNTIME_SERVICE_KEYS = ["server", "worker"];
|
|
58
48
|
export const RUNTIME_RESOURCE_KEYS = ["server", "worker", "database", "redis"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-operations.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/runtime-operations.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,4FAA4F;AAC5F,
|
|
1
|
+
{"version":3,"file":"runtime-operations.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/runtime-operations.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,4FAA4F;AAC5F,gGAAgG;AAChG,uFAAuF;AACvF,EAAE;AACF,oGAAoG;AACpG,kFAAkF;AAClF,+FAA+F;AAI/F,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACV,CAAC;AAIX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAIX,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAGpG,iGAAiG;AACjG,yCAAyC;AACzC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU,CAAC;AAG/D,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,aAAa;IACb,WAAW;IACX,WAAW;IACX,QAAQ;CACA,CAAC;AAGX,gGAAgG;AAChG,0BAA0B;AAC1B,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,sBAAsB,CAAC,SAAS;IAChC,sBAAsB,CAAC,OAAO;IAC9B,sBAAsB,CAAC,MAAM;CACrB,CAAC;AAEX,MAAM,UAAU,gCAAgC,CAAC,MAAc;IAC7D,OAAQ,mCAAyD,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACrF,CAAC;AAED,kGAAkG;AAClG,yFAAyF;AACzF,MAAM,CAAC,MAAM,oCAAoC,GAC/C,6DAA6D,CAAC;AAEhE,oGAAoG;AACpG,WAAW;AACX,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,MAAM,CAAC;AAExD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAGlE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAU,CAAC;AAexF,MAAM,UAAU,qBAAqB,CAAC,MAA6B;IACjE,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,MAAM,CAAC,QAAQ,CAAC;QAAE,OAAO,MAAM,CAAC,QAAQ,CAAC;IACzF,IAAI,MAAM,CAAC,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;QACjF,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seeds.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/seeds.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"seeds.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/seeds.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB,qBAAqB,CAAC;AAKpD,eAAO,MAAM,+BAA+B,kBAAkB,CAAC;AAC/D,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,mBAAmB,4CAA6C,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,oBAAoB,CAAC;IAE7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,IAAI,CAAC;CACf;AAGD,eAAO,MAAM,qBAAqB,QAA+B,CAAC;AAElE,eAAO,MAAM,qBAAqB,aAK2D,CAAC;AAM9F,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGtD"}
|
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
// Mirrors the named-seed wire contract: the constants and shapes from `@vendure-cloud/api-types`'s
|
|
2
2
|
// `index.ts`, and the seed-name rule from `@vendure-cloud/environment-state`. See ./README.md for
|
|
3
3
|
// why this package cannot import either, including as types.
|
|
4
|
-
//
|
|
5
4
|
// `SeedApplyStatus.errorDetails` is typed `string` where the original carries the
|
|
6
5
|
// `PublicErrorDetails` brand, for the reason ./README.md gives.
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
// rather than from the module that declares the command tree. `test/cli-published-surface.test.ts`
|
|
10
|
-
// fails if loading the CLI plugin reaches `zod`.
|
|
6
|
+
// This file imports `zod`, so a command loads it inside its `run` through `await import(...)`.
|
|
7
|
+
// `test/cli-published-surface.test.ts` fails if loading the CLI plugin reaches `zod`.
|
|
11
8
|
import { z } from "zod";
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
// must send the exact same Content-Type or the signed request is rejected.
|
|
9
|
+
// The presigned upload URL is signed with this type; a PUT with a different Content-Type is
|
|
10
|
+
// rejected.
|
|
15
11
|
export const SEED_CONTENT_TYPE = "application/gzip";
|
|
16
|
-
// The presigned upload URL is
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
// with HTTP 412, which is what `seed push` renders as a name already taken.
|
|
12
|
+
// The presigned upload URL is signed with this conditional-write header, so the client PUT must
|
|
13
|
+
// echo it. Storage rejects an existing object with HTTP 412, which `seed push` renders as a name
|
|
14
|
+
// already taken.
|
|
20
15
|
export const SEED_UPLOAD_PRECONDITION_HEADER = "if-none-match";
|
|
21
16
|
export const SEED_UPLOAD_PRECONDITION_VALUE = "*";
|
|
22
17
|
export const SEED_APPLY_STATUSES = ["pending", "success", "failure"];
|
|
23
|
-
// The shared "lowercase, hyphen-separated identifier" shape
|
|
24
|
-
// not one use, so it can back regions, env slugs and seed refs without any of them
|
|
25
|
-
// pretending to be a region.
|
|
18
|
+
// The shared "lowercase, hyphen-separated identifier" shape for regions, env slugs and seed refs.
|
|
26
19
|
export const VC_IDENTIFIER_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
27
20
|
export const seedArtifactRefSchema = z
|
|
28
21
|
.string()
|
|
@@ -30,12 +23,10 @@ export const seedArtifactRefSchema = z
|
|
|
30
23
|
.min(1)
|
|
31
24
|
.max(63)
|
|
32
25
|
.regex(VC_IDENTIFIER_PATTERN, "Seed ref must be a lowercase, hyphen-separated identifier.");
|
|
33
|
-
// A seed name is
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
// name the caller thinks they used. Require the value to already be canonical
|
|
38
|
-
// (parse succeeds AND produced no change) so validation and the value used agree.
|
|
26
|
+
// A seed name is a seed artifact ref; `push`/`rm`/`apply` validate names against this (CLO-219).
|
|
27
|
+
// The schema `.trim()`s, so " x " would parse to a different string than the caller passed and the
|
|
28
|
+
// object key would not match. Require the value to be canonical already (parse succeeds with no
|
|
29
|
+
// change).
|
|
39
30
|
export function isValidSeedName(value) {
|
|
40
31
|
const parsed = seedArtifactRefSchema.safeParse(value);
|
|
41
32
|
return parsed.success && parsed.data === value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seeds.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/seeds.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,kGAAkG;AAClG,6DAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"seeds.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/seeds.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,kGAAkG;AAClG,6DAA6D;AAC7D,kFAAkF;AAClF,gEAAgE;AAChE,+FAA+F;AAC/F,sFAAsF;AAEtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4FAA4F;AAC5F,YAAY;AACZ,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEpD,gGAAgG;AAChG,iGAAiG;AACjG,iBAAiB;AACjB,MAAM,CAAC,MAAM,+BAA+B,GAAG,eAAe,CAAC;AAC/D,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAoBlD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAe9E,kGAAkG;AAClG,MAAM,CAAC,MAAM,qBAAqB,GAAG,4BAA4B,CAAC;AAElE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,EAAE;KACR,IAAI,EAAE;KACN,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CAAC,qBAAqB,EAAE,4DAA4D,CAAC,CAAC;AAE9F,iGAAiG;AACjG,mGAAmG;AACnG,gGAAgG;AAChG,WAAW;AACX,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,MAAM,MAAM,GAAG,qBAAqB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACtD,OAAO,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SourceDisconnectReason } from "./source-repository.js";
|
|
2
|
+
export declare const SOURCE_DISCONNECT_REASON_DESCRIPTIONS: Record<SourceDisconnectReason, string>;
|
|
3
|
+
export declare function describeDisconnectReason(reason: SourceDisconnectReason | null): string;
|
|
4
|
+
//# sourceMappingURL=source-disconnect-reasons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-disconnect-reasons.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/source-disconnect-reasons.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAUrE,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAUxF,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,GAAG,MAAM,CAKtF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// What each disconnect reason means to the reader and what they can do. On their own, three of the
|
|
2
|
+
// five codes mislead: INSTALLATION_DELETED reads as a repository being deleted, and
|
|
3
|
+
// INSTALLATION_MOVED and INSTALLATION_REMOVED read as each other.
|
|
4
|
+
// Customer-facing copy names Vendure Cloud and not the source provider.
|
|
5
|
+
// The INSTALLATION_MOVED rule, that a source account serves one organization at a time, is in
|
|
6
|
+
// `docs/content/troubleshooting.mdx`.
|
|
7
|
+
// Sentences are past tense because nothing revisits a disconnected link, so a present-tense
|
|
8
|
+
// sentence would keep asserting something that stopped being true.
|
|
9
|
+
export const SOURCE_DISCONNECT_REASON_DESCRIPTIONS = {
|
|
10
|
+
REPOSITORY_ACCESS_REMOVED: "The source connection stopped including this repository. Grant it access again to restore deploys.",
|
|
11
|
+
REPOSITORY_DELETED: "This repository no longer exists at the source provider.",
|
|
12
|
+
INSTALLATION_DELETED: "The Vendure Cloud app was uninstalled from this source account. Reconnect the source to restore deploys.",
|
|
13
|
+
INSTALLATION_MOVED: "This repository was connected to a different Vendure Cloud organization. Try reconnecting: it succeeds once that organization has removed its own source connection.",
|
|
14
|
+
INSTALLATION_REMOVED: "The source connection was removed from this organization. Reconnect the source to restore deploys.",
|
|
15
|
+
};
|
|
16
|
+
export function describeDisconnectReason(reason) {
|
|
17
|
+
if (reason === null)
|
|
18
|
+
return "No reason was recorded.";
|
|
19
|
+
// A control plane ahead of this reader can send a reason with no sentence here; print the code.
|
|
20
|
+
const description = SOURCE_DISCONNECT_REASON_DESCRIPTIONS[reason];
|
|
21
|
+
return description ?? `${reason}.`;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=source-disconnect-reasons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-disconnect-reasons.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/source-disconnect-reasons.ts"],"names":[],"mappings":"AAIA,mGAAmG;AACnG,oFAAoF;AACpF,kEAAkE;AAClE,wEAAwE;AACxE,8FAA8F;AAC9F,sCAAsC;AACtC,4FAA4F;AAC5F,mEAAmE;AACnE,MAAM,CAAC,MAAM,qCAAqC,GAA2C;IAC3F,yBAAyB,EACvB,oGAAoG;IACtG,kBAAkB,EAAE,0DAA0D;IAC9E,oBAAoB,EAClB,0GAA0G;IAC5G,kBAAkB,EAChB,sKAAsK;IACxK,oBAAoB,EAClB,oGAAoG;CACvG,CAAC;AAEF,MAAM,UAAU,wBAAwB,CAAC,MAAqC;IAC5E,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,yBAAyB,CAAC;IACtD,gGAAgG;IAChG,MAAM,WAAW,GAAuB,qCAAqC,CAAC,MAAM,CAAC,CAAC;IACtF,OAAO,WAAW,IAAI,GAAG,MAAM,GAAG,CAAC;AACrC,CAAC"}
|
|
@@ -6,7 +6,7 @@ export declare const SOURCE_TRIGGER_STATUSES: readonly ["SUCCESS", "FAILED", "QU
|
|
|
6
6
|
export type SourceTriggerStatus = (typeof SOURCE_TRIGGER_STATUSES)[number];
|
|
7
7
|
export declare const SOURCE_TRIGGER_REASONS: readonly ["PUSH", "ACTIVE_DEPLOYMENT", "DISCONNECTED", "PRE_DEPLOY_FAILED", "GITHUB_UNAVAILABLE", "DEPLOYMENT_CREATED"];
|
|
8
8
|
export type SourceTriggerReason = (typeof SOURCE_TRIGGER_REASONS)[number];
|
|
9
|
-
export declare const SOURCE_DISCONNECT_REASONS: readonly ["REPOSITORY_ACCESS_REMOVED", "REPOSITORY_DELETED", "INSTALLATION_DELETED", "INSTALLATION_REMOVED"];
|
|
9
|
+
export declare const SOURCE_DISCONNECT_REASONS: readonly ["REPOSITORY_ACCESS_REMOVED", "REPOSITORY_DELETED", "INSTALLATION_DELETED", "INSTALLATION_MOVED", "INSTALLATION_REMOVED"];
|
|
10
10
|
export type SourceDisconnectReason = (typeof SOURCE_DISCONNECT_REASONS)[number];
|
|
11
11
|
export interface SourceRepositorySummary {
|
|
12
12
|
githubRepositoryId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-repository.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/source-repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"source-repository.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/source-repository.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,+BAA+B,qCAAsC,CAAC;AACnF,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1F,eAAO,MAAM,8BAA8B,iCAAkC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,8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index.ts`. See ./README.md for why this package cannot import them,
|
|
3
3
|
// including as types.
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
// Each vocabulary is a `const` array plus a derived type where the original is a bare union, so a
|
|
11
|
-
// call site can enumerate the members and `test/cli-contract-parity.test.ts` can hold the derived
|
|
12
|
-
// type up against the real one.
|
|
4
|
+
// `deploy` and `deploy --source` render a branch mapping and a manual trigger result; the `source`
|
|
5
|
+
// and `init` flows read the whole install conversation. Request bodies stay in
|
|
6
|
+
// `@vendure-cloud/api-types` with the control plane that validates them.
|
|
7
|
+
// Each vocabulary is a `const` array plus a derived type so a call site can enumerate the members
|
|
8
|
+
// and `test/cli-contract-parity.test.ts` can compare the derived type with the real one.
|
|
13
9
|
export const SOURCE_REPOSITORY_LINK_STATUSES = ["ACTIVE", "DISCONNECTED"];
|
|
14
10
|
export const SOURCE_BRANCH_MAPPING_STATUSES = ["ACTIVE", "INACTIVE"];
|
|
15
11
|
export const SOURCE_TRIGGER_STATUSES = ["SUCCESS", "FAILED", "QUEUED"];
|
|
@@ -25,6 +21,7 @@ export const SOURCE_DISCONNECT_REASONS = [
|
|
|
25
21
|
"REPOSITORY_ACCESS_REMOVED",
|
|
26
22
|
"REPOSITORY_DELETED",
|
|
27
23
|
"INSTALLATION_DELETED",
|
|
24
|
+
"INSTALLATION_MOVED",
|
|
28
25
|
"INSTALLATION_REMOVED",
|
|
29
26
|
];
|
|
30
27
|
export const VCS_LINK_SESSION_STATUSES = ["PENDING", "COMPLETED", "EXPIRED"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-repository.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/source-repository.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oGAAoG;AACpG,sBAAsB;AACtB,
|
|
1
|
+
{"version":3,"file":"source-repository.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/source-repository.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oGAAoG;AACpG,sBAAsB;AACtB,mGAAmG;AACnG,+EAA+E;AAC/E,yEAAyE;AACzE,kGAAkG;AAClG,yFAAyF;AAEzF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAU,CAAC;AAGnF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAU,CAAC;AAG9E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAGhF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM;IACN,mBAAmB;IACnB,cAAc;IACd,mBAAmB;IACnB,oBAAoB;IACpB,oBAAoB;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,2BAA2B;IAC3B,oBAAoB;IACpB,sBAAsB;IACtB,oBAAoB;IACpB,sBAAsB;CACd,CAAC;AAsDX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,CAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-types.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/wire-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wire-types.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/wire-types.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,YAAY,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG,SAAS,GAAG,YAAY,CAAC;AAE/E,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC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CACnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
// Mirrors the response shapes from `@vendure-cloud/api-types` and `@vendure-cloud/environment-state`
|
|
2
2
|
// that the CLI foundation reads. See ./README.md for why this package cannot import them, including
|
|
3
3
|
// as types.
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// Types are erased, so nothing here survives to runtime for a test to compare. The guard is instead
|
|
9
|
-
// a compile-time one: `test/cli-contract-parity.test.ts` asserts each of these is exactly the type
|
|
10
|
-
// the real package declares, so a field or union member added upstream fails `typecheck` rather than
|
|
11
|
-
// becoming a value the CLI's own type says cannot happen.
|
|
4
|
+
// Every type here is reachable from `src/cli/index.ts`; a family never imports this file directly.
|
|
5
|
+
// `test/cli-contract-parity.test.ts` asserts at compile time that each type is exactly the real
|
|
6
|
+
// one, so an upstream field or union member fails `typecheck`.
|
|
12
7
|
export {};
|
|
13
8
|
//# sourceMappingURL=wire-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-types.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/wire-types.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,oGAAoG;AACpG,YAAY;AACZ,
|
|
1
|
+
{"version":3,"file":"wire-types.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/wire-types.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,oGAAoG;AACpG,YAAY;AACZ,mGAAmG;AACnG,gGAAgG;AAChG,+DAA+D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-values.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/wire-values.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAEjD,eAAO,MAAM,+BAA+B,QAA2B,CAAC;AACxE,eAAO,MAAM,4BAA4B,QAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"wire-values.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/wire-values.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,+BAA+B,IAAI,CAAC;AAEjD,eAAO,MAAM,+BAA+B,QAA2B,CAAC;AACxE,eAAO,MAAM,4BAA4B,QAAkB,CAAC;AAI5D,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKrD"}
|
|
@@ -6,9 +6,8 @@ export const DEPLOYMENT_ID_PREFIX_MIN_LENGTH = 8;
|
|
|
6
6
|
// A 36-character value is a full UUID and must bypass prefix resolution.
|
|
7
7
|
export const DEPLOYMENT_ID_PREFIX_MAX_LENGTH = DEPLOYMENT_ID_LENGTH - 1;
|
|
8
8
|
export const DEPLOYMENT_ID_PREFIX_PATTERN = /^[0-9a-f-]+$/i;
|
|
9
|
-
// Decimal (SI) units
|
|
10
|
-
//
|
|
11
|
-
// "9536.7 MB" on one surface and "10.0 GB" on the other.
|
|
9
|
+
// Decimal (SI) units, matching the dashboard. Binary units made a 10 GB backup read as "9536.7 MB"
|
|
10
|
+
// on the CLI and "10.0 GB" on the dashboard.
|
|
12
11
|
export function formatBytes(sizeBytes) {
|
|
13
12
|
if (sizeBytes >= 1_000_000_000)
|
|
14
13
|
return `${(sizeBytes / 1_000_000_000).toFixed(1)} GB`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire-values.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/wire-values.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,wEAAwE;AACxE,gFAAgF;AAEhF,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC;AACjD,yEAAyE;AACzE,MAAM,CAAC,MAAM,+BAA+B,GAAG,oBAAoB,GAAG,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"wire-values.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/wire-values.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,wEAAwE;AACxE,gFAAgF;AAEhF,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AACvC,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC;AACjD,yEAAyE;AACzE,MAAM,CAAC,MAAM,+BAA+B,GAAG,oBAAoB,GAAG,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,eAAe,CAAC;AAE5D,mGAAmG;AACnG,6CAA6C;AAC7C,MAAM,UAAU,WAAW,CAAC,SAAiB;IAC3C,IAAI,SAAS,IAAI,aAAa;QAAE,OAAO,GAAG,CAAC,SAAS,GAAG,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IACtF,IAAI,SAAS,IAAI,SAAS;QAAE,OAAO,GAAG,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9E,IAAI,SAAS,IAAI,KAAK;QAAE,OAAO,GAAG,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IACtE,OAAO,GAAG,SAAS,IAAI,CAAC;AAC1B,CAAC"}
|
package/dist/cli/lib/dotenv.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
export declare class DotEnvSyntaxError extends Error {
|
|
2
|
+
readonly line: number;
|
|
3
|
+
readonly key?: string | undefined;
|
|
4
|
+
constructor(line: number, key?: string | undefined);
|
|
5
|
+
}
|
|
1
6
|
export declare function parseDotEnv(content: string): Record<string, string>;
|
|
7
|
+
export declare function formatDotEnvAssignment(key: string, value: string): string | undefined;
|
|
2
8
|
//# sourceMappingURL=dotenv.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dotenv.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/dotenv.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dotenv.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/dotenv.ts"],"names":[],"mappings":"AAWA,qBAAa,iBAAkB,SAAQ,KAAK;IAExC,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM;gBADZ,IAAI,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,MAAM,YAAA;CAQxB;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0BnE;AAKD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAcrF"}
|