@vendure/cloud 0.0.0 → 0.3.0
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 +42 -7
- package/dist/cli/arguments.d.ts +5 -0
- package/dist/cli/arguments.d.ts.map +1 -0
- package/dist/cli/arguments.js +57 -0
- package/dist/cli/arguments.js.map +1 -0
- package/dist/cli/command.d.ts +26 -0
- package/dist/cli/command.d.ts.map +1 -0
- package/dist/cli/command.js +84 -0
- package/dist/cli/command.js.map +1 -0
- package/dist/cli/commands/deployment/arguments.d.ts +3 -0
- package/dist/cli/commands/deployment/arguments.d.ts.map +1 -0
- package/dist/cli/commands/deployment/arguments.js +13 -0
- package/dist/cli/commands/deployment/arguments.js.map +1 -0
- package/dist/cli/commands/deployment/build-logs.d.ts +3 -0
- package/dist/cli/commands/deployment/build-logs.d.ts.map +1 -0
- package/dist/cli/commands/deployment/build-logs.js +98 -0
- package/dist/cli/commands/deployment/build-logs.js.map +1 -0
- package/dist/cli/commands/deployment/deploy.d.ts +3 -0
- package/dist/cli/commands/deployment/deploy.d.ts.map +1 -0
- package/dist/cli/commands/deployment/deploy.js +306 -0
- package/dist/cli/commands/deployment/deploy.js.map +1 -0
- package/dist/cli/commands/deployment/index.d.ts +3 -0
- package/dist/cli/commands/deployment/index.d.ts.map +1 -0
- package/dist/cli/commands/deployment/index.js +177 -0
- package/dist/cli/commands/deployment/index.js.map +1 -0
- package/dist/cli/commands/deployment/list.d.ts +3 -0
- package/dist/cli/commands/deployment/list.d.ts.map +1 -0
- package/dist/cli/commands/deployment/list.js +77 -0
- package/dist/cli/commands/deployment/list.js.map +1 -0
- package/dist/cli/commands/deployment/logs.d.ts +3 -0
- package/dist/cli/commands/deployment/logs.d.ts.map +1 -0
- package/dist/cli/commands/deployment/logs.js +88 -0
- package/dist/cli/commands/deployment/logs.js.map +1 -0
- package/dist/cli/commands/deployment/options.d.ts +11 -0
- package/dist/cli/commands/deployment/options.d.ts.map +1 -0
- package/dist/cli/commands/deployment/options.js +37 -0
- package/dist/cli/commands/deployment/options.js.map +1 -0
- package/dist/cli/commands/deployment/plan-format.d.ts +8 -0
- package/dist/cli/commands/deployment/plan-format.d.ts.map +1 -0
- package/dist/cli/commands/deployment/plan-format.js +25 -0
- package/dist/cli/commands/deployment/plan-format.js.map +1 -0
- package/dist/cli/commands/deployment/plan.d.ts +3 -0
- package/dist/cli/commands/deployment/plan.d.ts.map +1 -0
- package/dist/cli/commands/deployment/plan.js +54 -0
- package/dist/cli/commands/deployment/plan.js.map +1 -0
- package/dist/cli/commands/deployment/rollback.d.ts +3 -0
- package/dist/cli/commands/deployment/rollback.d.ts.map +1 -0
- package/dist/cli/commands/deployment/rollback.js +97 -0
- package/dist/cli/commands/deployment/rollback.js.map +1 -0
- package/dist/cli/commands/deployment/shared.d.ts +5 -0
- package/dist/cli/commands/deployment/shared.d.ts.map +1 -0
- package/dist/cli/commands/deployment/shared.js +23 -0
- package/dist/cli/commands/deployment/shared.js.map +1 -0
- package/dist/cli/commands/deployment/show.d.ts +3 -0
- package/dist/cli/commands/deployment/show.d.ts.map +1 -0
- package/dist/cli/commands/deployment/show.js +71 -0
- package/dist/cli/commands/deployment/show.js.map +1 -0
- package/dist/cli/commands/deployment/source.d.ts +14 -0
- package/dist/cli/commands/deployment/source.d.ts.map +1 -0
- package/dist/cli/commands/deployment/source.js +19 -0
- package/dist/cli/commands/deployment/source.js.map +1 -0
- package/dist/cli/commands/deployment/status.d.ts +3 -0
- package/dist/cli/commands/deployment/status.d.ts.map +1 -0
- package/dist/cli/commands/deployment/status.js +59 -0
- package/dist/cli/commands/deployment/status.js.map +1 -0
- package/dist/cli/commands/deployment/teardown.d.ts +3 -0
- package/dist/cli/commands/deployment/teardown.d.ts.map +1 -0
- package/dist/cli/commands/deployment/teardown.js +178 -0
- package/dist/cli/commands/deployment/teardown.js.map +1 -0
- package/dist/cli/commands/identity-context/context.d.ts +3 -0
- package/dist/cli/commands/identity-context/context.d.ts.map +1 -0
- package/dist/cli/commands/identity-context/context.js +47 -0
- package/dist/cli/commands/identity-context/context.js.map +1 -0
- package/dist/cli/commands/identity-context/index.d.ts +2 -0
- package/dist/cli/commands/identity-context/index.d.ts.map +1 -0
- package/dist/cli/commands/identity-context/index.js +94 -0
- package/dist/cli/commands/identity-context/index.js.map +1 -0
- package/dist/cli/commands/identity-context/keys.d.ts +5 -0
- package/dist/cli/commands/identity-context/keys.d.ts.map +1 -0
- package/dist/cli/commands/identity-context/keys.js +52 -0
- package/dist/cli/commands/identity-context/keys.js.map +1 -0
- package/dist/cli/commands/identity-context/login.d.ts +2 -0
- package/dist/cli/commands/identity-context/login.d.ts.map +1 -0
- package/dist/cli/commands/identity-context/login.js +158 -0
- package/dist/cli/commands/identity-context/login.js.map +1 -0
- package/dist/cli/commands/identity-context/logout.d.ts +2 -0
- package/dist/cli/commands/identity-context/logout.d.ts.map +1 -0
- package/dist/cli/commands/identity-context/logout.js +12 -0
- package/dist/cli/commands/identity-context/logout.js.map +1 -0
- package/dist/cli/commands/identity-context/org-switch.d.ts +3 -0
- package/dist/cli/commands/identity-context/org-switch.d.ts.map +1 -0
- package/dist/cli/commands/identity-context/org-switch.js +71 -0
- package/dist/cli/commands/identity-context/org-switch.js.map +1 -0
- package/dist/cli/commands/identity-context/use.d.ts +3 -0
- package/dist/cli/commands/identity-context/use.d.ts.map +1 -0
- package/dist/cli/commands/identity-context/use.js +23 -0
- package/dist/cli/commands/identity-context/use.js.map +1 -0
- package/dist/cli/commands/identity-context/whoami.d.ts +3 -0
- package/dist/cli/commands/identity-context/whoami.d.ts.map +1 -0
- package/dist/cli/commands/identity-context/whoami.js +80 -0
- package/dist/cli/commands/identity-context/whoami.js.map +1 -0
- package/dist/cli/commands/index.d.ts +4 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +67 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/project-config/config/build-fields.d.ts +4 -0
- package/dist/cli/commands/project-config/config/build-fields.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/build-fields.js +16 -0
- package/dist/cli/commands/project-config/config/build-fields.js.map +1 -0
- package/dist/cli/commands/project-config/config/build.d.ts +4 -0
- package/dist/cli/commands/project-config/config/build.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/build.js +46 -0
- package/dist/cli/commands/project-config/config/build.js.map +1 -0
- package/dist/cli/commands/project-config/config/desired-state.d.ts +4 -0
- package/dist/cli/commands/project-config/config/desired-state.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/desired-state.js +34 -0
- package/dist/cli/commands/project-config/config/desired-state.js.map +1 -0
- package/dist/cli/commands/project-config/config/index.d.ts +2 -0
- package/dist/cli/commands/project-config/config/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/index.js +177 -0
- package/dist/cli/commands/project-config/config/index.js.map +1 -0
- package/dist/cli/commands/project-config/config/runtime.d.ts +3 -0
- package/dist/cli/commands/project-config/config/runtime.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/runtime.js +38 -0
- package/dist/cli/commands/project-config/config/runtime.js.map +1 -0
- package/dist/cli/commands/project-config/config/search.d.ts +3 -0
- package/dist/cli/commands/project-config/config/search.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/search.js +54 -0
- package/dist/cli/commands/project-config/config/search.js.map +1 -0
- package/dist/cli/commands/project-config/config/set.d.ts +2 -0
- package/dist/cli/commands/project-config/config/set.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/set.js +14 -0
- package/dist/cli/commands/project-config/config/set.js.map +1 -0
- package/dist/cli/commands/project-config/config/show.d.ts +6 -0
- package/dist/cli/commands/project-config/config/show.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/show.js +33 -0
- package/dist/cli/commands/project-config/config/show.js.map +1 -0
- package/dist/cli/commands/project-config/env/add.d.ts +3 -0
- package/dist/cli/commands/project-config/env/add.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/add.js +22 -0
- package/dist/cli/commands/project-config/env/add.js.map +1 -0
- package/dist/cli/commands/project-config/env/get.d.ts +3 -0
- package/dist/cli/commands/project-config/env/get.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/get.js +12 -0
- package/dist/cli/commands/project-config/env/get.js.map +1 -0
- package/dist/cli/commands/project-config/env/import.d.ts +3 -0
- package/dist/cli/commands/project-config/env/import.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/import.js +45 -0
- package/dist/cli/commands/project-config/env/import.js.map +1 -0
- package/dist/cli/commands/project-config/env/index.d.ts +2 -0
- package/dist/cli/commands/project-config/env/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/index.js +103 -0
- package/dist/cli/commands/project-config/env/index.js.map +1 -0
- package/dist/cli/commands/project-config/env/list.d.ts +3 -0
- package/dist/cli/commands/project-config/env/list.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/list.js +25 -0
- package/dist/cli/commands/project-config/env/list.js.map +1 -0
- package/dist/cli/commands/project-config/env/metadata-options.d.ts +9 -0
- package/dist/cli/commands/project-config/env/metadata-options.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/metadata-options.js +32 -0
- package/dist/cli/commands/project-config/env/metadata-options.js.map +1 -0
- package/dist/cli/commands/project-config/env/pull.d.ts +3 -0
- package/dist/cli/commands/project-config/env/pull.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/pull.js +50 -0
- package/dist/cli/commands/project-config/env/pull.js.map +1 -0
- package/dist/cli/commands/project-config/env/read-value.d.ts +3 -0
- package/dist/cli/commands/project-config/env/read-value.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/read-value.js +20 -0
- package/dist/cli/commands/project-config/env/read-value.js.map +1 -0
- package/dist/cli/commands/project-config/env/rm.d.ts +3 -0
- package/dist/cli/commands/project-config/env/rm.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/rm.js +23 -0
- package/dist/cli/commands/project-config/env/rm.js.map +1 -0
- package/dist/cli/commands/project-config/env/run.d.ts +3 -0
- package/dist/cli/commands/project-config/env/run.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/run.js +28 -0
- package/dist/cli/commands/project-config/env/run.js.map +1 -0
- package/dist/cli/commands/project-config/env/update.d.ts +3 -0
- package/dist/cli/commands/project-config/env/update.d.ts.map +1 -0
- package/dist/cli/commands/project-config/env/update.js +32 -0
- package/dist/cli/commands/project-config/env/update.js.map +1 -0
- package/dist/cli/commands/project-config/environment/create.d.ts +3 -0
- package/dist/cli/commands/project-config/environment/create.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/create.js +33 -0
- package/dist/cli/commands/project-config/environment/create.js.map +1 -0
- package/dist/cli/commands/project-config/environment/delete.d.ts +3 -0
- package/dist/cli/commands/project-config/environment/delete.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/delete.js +42 -0
- package/dist/cli/commands/project-config/environment/delete.js.map +1 -0
- package/dist/cli/commands/project-config/environment/find.d.ts +7 -0
- package/dist/cli/commands/project-config/environment/find.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/find.js +18 -0
- package/dist/cli/commands/project-config/environment/find.js.map +1 -0
- package/dist/cli/commands/project-config/environment/index.d.ts +2 -0
- package/dist/cli/commands/project-config/environment/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/index.js +76 -0
- package/dist/cli/commands/project-config/environment/index.js.map +1 -0
- package/dist/cli/commands/project-config/environment/initial-superadmin.d.ts +3 -0
- package/dist/cli/commands/project-config/environment/initial-superadmin.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/initial-superadmin.js +13 -0
- package/dist/cli/commands/project-config/environment/initial-superadmin.js.map +1 -0
- package/dist/cli/commands/project-config/environment/list.d.ts +3 -0
- package/dist/cli/commands/project-config/environment/list.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/list.js +23 -0
- package/dist/cli/commands/project-config/environment/list.js.map +1 -0
- package/dist/cli/commands/project-config/environment/show.d.ts +3 -0
- package/dist/cli/commands/project-config/environment/show.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/show.js +30 -0
- package/dist/cli/commands/project-config/environment/show.js.map +1 -0
- package/dist/cli/commands/project-config/environment/update.d.ts +3 -0
- package/dist/cli/commands/project-config/environment/update.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/update.js +19 -0
- package/dist/cli/commands/project-config/environment/update.js.map +1 -0
- package/dist/cli/commands/project-config/index.d.ts +3 -0
- package/dist/cli/commands/project-config/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/index.js +27 -0
- package/dist/cli/commands/project-config/index.js.map +1 -0
- package/dist/cli/commands/project-config/init/build-detection.d.ts +11 -0
- package/dist/cli/commands/project-config/init/build-detection.d.ts.map +1 -0
- package/dist/cli/commands/project-config/init/build-detection.js +113 -0
- package/dist/cli/commands/project-config/init/build-detection.js.map +1 -0
- package/dist/cli/commands/project-config/init/index.d.ts +2 -0
- package/dist/cli/commands/project-config/init/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/init/index.js +48 -0
- package/dist/cli/commands/project-config/init/index.js.map +1 -0
- package/dist/cli/commands/project-config/init/init.d.ts +14 -0
- package/dist/cli/commands/project-config/init/init.d.ts.map +1 -0
- package/dist/cli/commands/project-config/init/init.js +367 -0
- package/dist/cli/commands/project-config/init/init.js.map +1 -0
- package/dist/cli/commands/project-config/options.d.ts +10 -0
- package/dist/cli/commands/project-config/options.d.ts.map +1 -0
- package/dist/cli/commands/project-config/options.js +80 -0
- package/dist/cli/commands/project-config/options.js.map +1 -0
- package/dist/cli/commands/project-config/project/create.d.ts +3 -0
- package/dist/cli/commands/project-config/project/create.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/create.js +20 -0
- package/dist/cli/commands/project-config/project/create.js.map +1 -0
- package/dist/cli/commands/project-config/project/delete.d.ts +3 -0
- package/dist/cli/commands/project-config/project/delete.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/delete.js +28 -0
- package/dist/cli/commands/project-config/project/delete.js.map +1 -0
- package/dist/cli/commands/project-config/project/index.d.ts +2 -0
- package/dist/cli/commands/project-config/project/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/index.js +88 -0
- package/dist/cli/commands/project-config/project/index.js.map +1 -0
- package/dist/cli/commands/project-config/project/link.d.ts +3 -0
- package/dist/cli/commands/project-config/project/link.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/link.js +45 -0
- package/dist/cli/commands/project-config/project/link.js.map +1 -0
- package/dist/cli/commands/project-config/project/list.d.ts +3 -0
- package/dist/cli/commands/project-config/project/list.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/list.js +15 -0
- package/dist/cli/commands/project-config/project/list.js.map +1 -0
- package/dist/cli/commands/project-config/project/show.d.ts +3 -0
- package/dist/cli/commands/project-config/project/show.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/show.js +33 -0
- package/dist/cli/commands/project-config/project/show.js.map +1 -0
- package/dist/cli/commands/project-config/project/unlink.d.ts +3 -0
- package/dist/cli/commands/project-config/project/unlink.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/unlink.js +21 -0
- package/dist/cli/commands/project-config/project/unlink.js.map +1 -0
- package/dist/cli/commands/project-config/project/update.d.ts +3 -0
- package/dist/cli/commands/project-config/project/update.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/update.js +18 -0
- package/dist/cli/commands/project-config/project/update.js.map +1 -0
- package/dist/cli/commands/project-config/source/connect.d.ts +15 -0
- package/dist/cli/commands/project-config/source/connect.d.ts.map +1 -0
- package/dist/cli/commands/project-config/source/connect.js +208 -0
- package/dist/cli/commands/project-config/source/connect.js.map +1 -0
- package/dist/cli/commands/project-config/source/disconnect.d.ts +3 -0
- package/dist/cli/commands/project-config/source/disconnect.d.ts.map +1 -0
- package/dist/cli/commands/project-config/source/disconnect.js +27 -0
- package/dist/cli/commands/project-config/source/disconnect.js.map +1 -0
- package/dist/cli/commands/project-config/source/index.d.ts +2 -0
- package/dist/cli/commands/project-config/source/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/source/index.js +74 -0
- package/dist/cli/commands/project-config/source/index.js.map +1 -0
- package/dist/cli/commands/project-config/source/map.d.ts +3 -0
- package/dist/cli/commands/project-config/source/map.d.ts.map +1 -0
- package/dist/cli/commands/project-config/source/map.js +93 -0
- package/dist/cli/commands/project-config/source/map.js.map +1 -0
- package/dist/cli/commands/project-config/source/repos.d.ts +3 -0
- package/dist/cli/commands/project-config/source/repos.d.ts.map +1 -0
- package/dist/cli/commands/project-config/source/repos.js +18 -0
- package/dist/cli/commands/project-config/source/repos.js.map +1 -0
- package/dist/cli/commands/project-config/source/status.d.ts +3 -0
- package/dist/cli/commands/project-config/source/status.d.ts.map +1 -0
- package/dist/cli/commands/project-config/source/status.js +72 -0
- package/dist/cli/commands/project-config/source/status.js.map +1 -0
- package/dist/cli/commands/runtime-data/backup.d.ts +5 -0
- package/dist/cli/commands/runtime-data/backup.d.ts.map +1 -0
- package/dist/cli/commands/runtime-data/backup.js +107 -0
- package/dist/cli/commands/runtime-data/backup.js.map +1 -0
- package/dist/cli/commands/runtime-data/index.d.ts +2 -0
- package/dist/cli/commands/runtime-data/index.d.ts.map +1 -0
- package/dist/cli/commands/runtime-data/index.js +206 -0
- package/dist/cli/commands/runtime-data/index.js.map +1 -0
- package/dist/cli/commands/runtime-data/resource.d.ts +11 -0
- package/dist/cli/commands/runtime-data/resource.d.ts.map +1 -0
- package/dist/cli/commands/runtime-data/resource.js +147 -0
- package/dist/cli/commands/runtime-data/resource.js.map +1 -0
- package/dist/cli/commands/runtime-data/restore.d.ts +3 -0
- package/dist/cli/commands/runtime-data/restore.d.ts.map +1 -0
- package/dist/cli/commands/runtime-data/restore.js +119 -0
- package/dist/cli/commands/runtime-data/restore.js.map +1 -0
- package/dist/cli/commands/runtime-data/seeds.d.ts +6 -0
- package/dist/cli/commands/runtime-data/seeds.d.ts.map +1 -0
- package/dist/cli/commands/runtime-data/seeds.js +213 -0
- package/dist/cli/commands/runtime-data/seeds.js.map +1 -0
- package/dist/cli/commands/runtime-data/tunnel.d.ts +16 -0
- package/dist/cli/commands/runtime-data/tunnel.d.ts.map +1 -0
- package/dist/cli/commands/runtime-data/tunnel.js +249 -0
- package/dist/cli/commands/runtime-data/tunnel.js.map +1 -0
- package/dist/cli/host-arguments.d.ts +7 -0
- package/dist/cli/host-arguments.d.ts.map +1 -0
- package/dist/cli/host-arguments.js +46 -0
- package/dist/cli/host-arguments.js.map +1 -0
- package/dist/cli/host-nodes.d.ts +30 -0
- package/dist/cli/host-nodes.d.ts.map +1 -0
- package/dist/cli/host-nodes.js +17 -0
- package/dist/cli/host-nodes.js.map +1 -0
- package/dist/cli/index.d.ts +29 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +60 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/lib/api-client.d.ts +19 -0
- package/dist/cli/lib/api-client.d.ts.map +1 -0
- package/dist/cli/lib/api-client.js +111 -0
- package/dist/cli/lib/api-client.js.map +1 -0
- package/dist/cli/lib/auth.d.ts +132 -0
- package/dist/cli/lib/auth.d.ts.map +1 -0
- package/dist/cli/lib/auth.js +505 -0
- package/dist/cli/lib/auth.js.map +1 -0
- package/dist/cli/lib/config.d.ts +7 -0
- package/dist/cli/lib/config.d.ts.map +1 -0
- package/dist/cli/lib/config.js +11 -0
- package/dist/cli/lib/config.js.map +1 -0
- package/dist/cli/lib/context.d.ts +10 -0
- package/dist/cli/lib/context.d.ts.map +1 -0
- package/dist/cli/lib/context.js +42 -0
- package/dist/cli/lib/context.js.map +1 -0
- package/dist/cli/lib/contract/build-settings.d.ts +36 -0
- package/dist/cli/lib/contract/build-settings.d.ts.map +1 -0
- package/dist/cli/lib/contract/build-settings.js +73 -0
- package/dist/cli/lib/contract/build-settings.js.map +1 -0
- package/dist/cli/lib/contract/database.d.ts +47 -0
- package/dist/cli/lib/contract/database.d.ts.map +1 -0
- package/dist/cli/lib/contract/database.js +29 -0
- package/dist/cli/lib/contract/database.js.map +1 -0
- package/dist/cli/lib/contract/deployment-resource-labels.d.ts +11 -0
- package/dist/cli/lib/contract/deployment-resource-labels.d.ts.map +1 -0
- package/dist/cli/lib/contract/deployment-resource-labels.js +80 -0
- package/dist/cli/lib/contract/deployment-resource-labels.js.map +1 -0
- package/dist/cli/lib/contract/deployments.d.ts +128 -0
- package/dist/cli/lib/contract/deployments.d.ts.map +1 -0
- package/dist/cli/lib/contract/deployments.js +46 -0
- package/dist/cli/lib/contract/deployments.js.map +1 -0
- package/dist/cli/lib/contract/desired-state.d.ts +104 -0
- package/dist/cli/lib/contract/desired-state.d.ts.map +1 -0
- package/dist/cli/lib/contract/desired-state.js +171 -0
- package/dist/cli/lib/contract/desired-state.js.map +1 -0
- package/dist/cli/lib/contract/foreign-credentials.d.ts +49 -0
- package/dist/cli/lib/contract/foreign-credentials.d.ts.map +1 -0
- package/dist/cli/lib/contract/foreign-credentials.js +71 -0
- package/dist/cli/lib/contract/foreign-credentials.js.map +1 -0
- package/dist/cli/lib/contract/logs.d.ts +44 -0
- package/dist/cli/lib/contract/logs.d.ts.map +1 -0
- package/dist/cli/lib/contract/logs.js +66 -0
- package/dist/cli/lib/contract/logs.js.map +1 -0
- package/dist/cli/lib/contract/projects.d.ts +31 -0
- package/dist/cli/lib/contract/projects.d.ts.map +1 -0
- package/dist/cli/lib/contract/projects.js +9 -0
- package/dist/cli/lib/contract/projects.js.map +1 -0
- package/dist/cli/lib/contract/public-error-details.d.ts +4 -0
- package/dist/cli/lib/contract/public-error-details.d.ts.map +1 -0
- package/dist/cli/lib/contract/public-error-details.js +248 -0
- package/dist/cli/lib/contract/public-error-details.js.map +1 -0
- package/dist/cli/lib/contract/runtime-operations.d.ts +87 -0
- package/dist/cli/lib/contract/runtime-operations.d.ts.map +1 -0
- package/dist/cli/lib/contract/runtime-operations.js +67 -0
- package/dist/cli/lib/contract/runtime-operations.js.map +1 -0
- package/dist/cli/lib/contract/seeds.d.ts +31 -0
- package/dist/cli/lib/contract/seeds.d.ts.map +1 -0
- package/dist/cli/lib/contract/seeds.js +43 -0
- package/dist/cli/lib/contract/seeds.js.map +1 -0
- package/dist/cli/lib/contract/source-repository.d.ts +73 -0
- package/dist/cli/lib/contract/source-repository.d.ts.map +1 -0
- package/dist/cli/lib/contract/source-repository.js +31 -0
- package/dist/cli/lib/contract/source-repository.js.map +1 -0
- package/dist/cli/lib/contract/wire-types.d.ts +47 -0
- package/dist/cli/lib/contract/wire-types.d.ts.map +1 -0
- package/dist/cli/lib/contract/wire-types.js +13 -0
- package/dist/cli/lib/contract/wire-types.js.map +1 -0
- package/dist/cli/lib/contract/wire-values.d.ts +6 -0
- package/dist/cli/lib/contract/wire-values.d.ts.map +1 -0
- package/dist/cli/lib/contract/wire-values.js +21 -0
- package/dist/cli/lib/contract/wire-values.js.map +1 -0
- package/dist/cli/lib/dotenv.d.ts +2 -0
- package/dist/cli/lib/dotenv.d.ts.map +1 -0
- package/dist/cli/lib/dotenv.js +28 -0
- package/dist/cli/lib/dotenv.js.map +1 -0
- package/dist/cli/lib/env-file.d.ts +2 -0
- package/dist/cli/lib/env-file.d.ts.map +1 -0
- package/dist/cli/lib/env-file.js +26 -0
- package/dist/cli/lib/env-file.js.map +1 -0
- package/dist/cli/lib/env-preflight.d.ts +24 -0
- package/dist/cli/lib/env-preflight.d.ts.map +1 -0
- package/dist/cli/lib/env-preflight.js +265 -0
- package/dist/cli/lib/env-preflight.js.map +1 -0
- package/dist/cli/lib/error-output.d.ts +3 -0
- package/dist/cli/lib/error-output.d.ts.map +1 -0
- package/dist/cli/lib/error-output.js +2 -0
- package/dist/cli/lib/error-output.js.map +1 -0
- package/dist/cli/lib/errors.d.ts +37 -0
- package/dist/cli/lib/errors.d.ts.map +1 -0
- package/dist/cli/lib/errors.js +147 -0
- package/dist/cli/lib/errors.js.map +1 -0
- package/dist/cli/lib/file-lock.d.ts +23 -0
- package/dist/cli/lib/file-lock.d.ts.map +1 -0
- package/dist/cli/lib/file-lock.js +121 -0
- package/dist/cli/lib/file-lock.js.map +1 -0
- package/dist/cli/lib/format.d.ts +6 -0
- package/dist/cli/lib/format.d.ts.map +1 -0
- package/dist/cli/lib/format.js +44 -0
- package/dist/cli/lib/format.js.map +1 -0
- package/dist/cli/lib/id-prefix.d.ts +6 -0
- package/dist/cli/lib/id-prefix.d.ts.map +1 -0
- package/dist/cli/lib/id-prefix.js +18 -0
- package/dist/cli/lib/id-prefix.js.map +1 -0
- package/dist/cli/lib/invocation.d.ts +6 -0
- package/dist/cli/lib/invocation.d.ts.map +1 -0
- package/dist/cli/lib/invocation.js +34 -0
- package/dist/cli/lib/invocation.js.map +1 -0
- package/dist/cli/lib/log-stream.d.ts +7 -0
- package/dist/cli/lib/log-stream.d.ts.map +1 -0
- package/dist/cli/lib/log-stream.js +179 -0
- package/dist/cli/lib/log-stream.js.map +1 -0
- package/dist/cli/lib/logger.d.ts +5 -0
- package/dist/cli/lib/logger.d.ts.map +1 -0
- package/dist/cli/lib/logger.js +52 -0
- package/dist/cli/lib/logger.js.map +1 -0
- package/dist/cli/lib/open-browser.d.ts +2 -0
- package/dist/cli/lib/open-browser.d.ts.map +1 -0
- package/dist/cli/lib/open-browser.js +8 -0
- package/dist/cli/lib/open-browser.js.map +1 -0
- package/dist/cli/lib/organization.d.ts +3 -0
- package/dist/cli/lib/organization.d.ts.map +1 -0
- package/dist/cli/lib/organization.js +20 -0
- package/dist/cli/lib/organization.js.map +1 -0
- package/dist/cli/lib/project-link.d.ts +12 -0
- package/dist/cli/lib/project-link.d.ts.map +1 -0
- package/dist/cli/lib/project-link.js +69 -0
- package/dist/cli/lib/project-link.js.map +1 -0
- package/dist/cli/lib/resolve.d.ts +20 -0
- package/dist/cli/lib/resolve.d.ts.map +1 -0
- package/dist/cli/lib/resolve.js +88 -0
- package/dist/cli/lib/resolve.js.map +1 -0
- package/dist/cli/lib/sleep.d.ts +2 -0
- package/dist/cli/lib/sleep.d.ts.map +1 -0
- package/dist/cli/lib/sleep.js +4 -0
- package/dist/cli/lib/sleep.js.map +1 -0
- package/dist/cli/lib/slug.d.ts +3 -0
- package/dist/cli/lib/slug.d.ts.map +1 -0
- package/dist/cli/lib/slug.js +13 -0
- package/dist/cli/lib/slug.js.map +1 -0
- package/dist/cli/lib/source-repository-link.d.ts +5 -0
- package/dist/cli/lib/source-repository-link.d.ts.map +1 -0
- package/dist/cli/lib/source-repository-link.js +28 -0
- package/dist/cli/lib/source-repository-link.js.map +1 -0
- package/dist/cli/lib/types.d.ts +58 -0
- package/dist/cli/lib/types.d.ts.map +1 -0
- package/dist/cli/lib/types.js +10 -0
- package/dist/cli/lib/types.js.map +1 -0
- package/dist/cli/root-options.d.ts +14 -0
- package/dist/cli/root-options.d.ts.map +1 -0
- package/dist/cli/root-options.js +53 -0
- package/dist/cli/root-options.js.map +1 -0
- package/dist/cli-plugin.d.ts +22 -0
- package/dist/cli-plugin.d.ts.map +1 -0
- package/dist/cli-plugin.js +30 -0
- package/dist/cli-plugin.js.map +1 -0
- package/dist/cloud-config-module.d.ts +3 -0
- package/dist/cloud-config-module.d.ts.map +1 -0
- package/dist/cloud-config-module.js +16 -0
- package/dist/cloud-config-module.js.map +1 -0
- package/dist/dev/cli-host.d.ts +3 -0
- package/dist/dev/cli-host.d.ts.map +1 -0
- package/dist/dev/cli-host.js +72 -0
- package/dist/dev/cli-host.js.map +1 -0
- package/dist/dev/dev-command.d.ts +7 -0
- package/dist/dev/dev-command.d.ts.map +1 -0
- package/dist/dev/dev-command.js +122 -0
- package/dist/dev/dev-command.js.map +1 -0
- package/dist/dev/dev-config.d.ts +4 -0
- package/dist/dev/dev-config.d.ts.map +1 -0
- package/dist/dev/dev-config.js +28 -0
- package/dist/dev/dev-config.js.map +1 -0
- package/dist/dev/dev-migrate.d.ts +2 -0
- package/dist/dev/dev-migrate.d.ts.map +1 -0
- package/dist/dev/dev-migrate.js +17 -0
- package/dist/dev/dev-migrate.js.map +1 -0
- package/dist/dev/dev-process.d.ts +2 -0
- package/dist/dev/dev-process.d.ts.map +1 -0
- package/dist/dev/dev-process.js +14 -0
- package/dist/dev/dev-process.js.map +1 -0
- package/dist/dev/dev-server.d.ts +2 -0
- package/dist/dev/dev-server.d.ts.map +1 -0
- package/dist/dev/dev-server.js +15 -0
- package/dist/dev/dev-server.js.map +1 -0
- package/dist/dev/dev-worker.d.ts +2 -0
- package/dist/dev/dev-worker.d.ts.map +1 -0
- package/dist/dev/dev-worker.js +11 -0
- package/dist/dev/dev-worker.js.map +1 -0
- package/dist/dev/local-services.d.ts +23 -0
- package/dist/dev/local-services.d.ts.map +1 -0
- package/dist/dev/local-services.js +288 -0
- package/dist/dev/local-services.js.map +1 -0
- package/dist/dev/project-layout.d.ts +11 -0
- package/dist/dev/project-layout.d.ts.map +1 -0
- package/dist/dev/project-layout.js +89 -0
- package/dist/dev/project-layout.js.map +1 -0
- package/dist/entrypoint.js +3 -12
- package/dist/entrypoint.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/local-asset-server.d.ts +4 -0
- package/dist/local-asset-server.d.ts.map +1 -0
- package/dist/local-asset-server.js +24 -0
- package/dist/local-asset-server.js.map +1 -0
- package/dist/local-cache-plugin.d.ts +5 -0
- package/dist/local-cache-plugin.d.ts.map +1 -0
- package/dist/local-cache-plugin.js +68 -0
- package/dist/local-cache-plugin.js.map +1 -0
- package/dist/local-cache.d.ts +17 -0
- package/dist/local-cache.d.ts.map +1 -0
- package/dist/local-cache.js +144 -0
- package/dist/local-cache.js.map +1 -0
- package/dist/local-dashboard-plugin.d.ts +9 -0
- package/dist/local-dashboard-plugin.d.ts.map +1 -0
- package/dist/local-dashboard-plugin.js +37 -0
- package/dist/local-dashboard-plugin.js.map +1 -0
- package/dist/local-database.d.ts +15 -0
- package/dist/local-database.d.ts.map +1 -0
- package/dist/local-database.js +64 -0
- package/dist/local-database.js.map +1 -0
- package/dist/local-runtime.d.ts +15 -2
- package/dist/local-runtime.d.ts.map +1 -1
- package/dist/local-runtime.js +145 -28
- package/dist/local-runtime.js.map +1 -1
- package/package.json +65 -7
package/README.md
CHANGED
|
@@ -16,15 +16,50 @@ from `src/index.ts`.
|
|
|
16
16
|
|
|
17
17
|
## Local development
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
This package declares a Vendure CLI plugin in `package.json#vendure.cliPlugin`, which a project
|
|
20
|
+
turns on once with `vendure plugins add @vendure/cloud`. The plugin extends the `dev` command
|
|
21
|
+
through the host's ordered command-extension API rather than replacing it, so Core keeps supervising
|
|
22
|
+
the processes and a wrapper another plugin already applied still runs. What it adds before calling
|
|
23
|
+
the next action is the two servers below, the migration chain, and the two entry points Core would
|
|
24
|
+
otherwise have looked for in the customer's repository — which a Cloud Config application does not
|
|
25
|
+
have (ADR-0043). `test/dev-e2e/run.sh` drives all of that from a registry install.
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
`vendure dev` provisions the local PostgreSQL database and the local Valkey cache, and runs the
|
|
28
|
+
included runner against them. The runner itself provisions nothing: `composeLocalConfig` takes each
|
|
29
|
+
connection as `LocalRuntimeOptions.database` and `LocalRuntimeOptions.cache`, or reads
|
|
30
|
+
`VENDURE_LOCAL_DATABASE_URL` and `VENDURE_LOCAL_CACHE_URL` when it was started as a child process,
|
|
31
|
+
and refuses to compose without either.
|
|
32
|
+
|
|
33
|
+
It supplies one substitute for every capability in the shared inventory `@vendure/cloud-config`
|
|
34
|
+
holds: PostgreSQL, a Valkey the server and the worker share, the job queue inside the database, the
|
|
35
|
+
default scheduler, the upstream Dashboard plugin against a Vite development server, and the upstream
|
|
36
|
+
asset server against a project-local directory. It prints a startup warning naming each of them.
|
|
37
|
+
|
|
38
|
+
The cache is a Valkey rather than `DefaultCachePlugin` because that plugin declares `CacheItem` and
|
|
39
|
+
`CacheTag`, and a customer's migrations are generated from this composition: two tables the managed
|
|
40
|
+
runtime never reads would reach their deployed database (CLO-645).
|
|
41
|
+
`packages/cloud-runtime/test/entity-set.test.ts` compares the two entity sets whole, with nothing
|
|
42
|
+
exempted on either side. The protocol work is Vendure's own `RedisCacheStrategy`; the platform's
|
|
43
|
+
`PlatformCacheStrategy` is not reused, because everything it adds over that one — a SigV4 IAM token
|
|
44
|
+
per connection, mandatory TLS, an RBAC-user key prefix — is production infrastructure, and
|
|
45
|
+
`@vendure-cloud/cloud-runtime` is private and downstream of this package.
|
|
46
|
+
|
|
47
|
+
The database is PostgreSQL because a deployed VC Environment runs one (ADR-0020) and TypeORM emits
|
|
48
|
+
DDL for the engine it is connected to: a local runtime on another engine produces migrations the
|
|
49
|
+
deployed database cannot apply. `composeLocalConfig` also holds `synchronize: false` and the
|
|
50
|
+
declared migration chain, so a migration generated against it is a diff against what those
|
|
51
|
+
migrations built.
|
|
52
|
+
|
|
53
|
+
`runLocalMigrations` is the local `migrate` run mode. It runs the chain the Cloud Config declares
|
|
54
|
+
and creates nothing outside it, and refuses with `NoDeclaredMigrationsError` when there is no chain
|
|
55
|
+
— a project created by Vendure's own tooling ships a schema-creating initial migration, and one
|
|
56
|
+
without any has no schema this runtime is willing to invent.
|
|
57
|
+
`test/migration-chain.integration.test.ts` builds an empty database from a generated initial
|
|
58
|
+
migration and then carries a second one through to a deployed-shaped database.
|
|
24
59
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
60
|
+
Install `pg`, `ioredis` and `@vendure/dashboard` as development dependencies. All three are
|
|
61
|
+
intentionally absent from deployed images, and none is reached until a local configuration is
|
|
62
|
+
composed, so an application that never composes one pays nothing for them.
|
|
28
63
|
|
|
29
64
|
If `VC_ENVIRONMENT_ID` is present, the local runner refuses to boot. A managed process must use the
|
|
30
65
|
private platform entrypoint and cannot silently fall back to a local database.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CloudCommandInput } from "./command.js";
|
|
2
|
+
export declare function readSingleValue(value: unknown, label: string): string | undefined;
|
|
3
|
+
export declare function requiredArgument(args: CloudCommandInput["args"], index: number, name: string): string;
|
|
4
|
+
export declare function variadicArgument(args: CloudCommandInput["args"], index: number, name: string): readonly string[];
|
|
5
|
+
//# sourceMappingURL=arguments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arguments.d.ts","sourceRoot":"","sources":["../../src/cli/arguments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AA0BtD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMjF;AAID,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAC/B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,MAAM,CAMR;AAQD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAC/B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,SAAS,MAAM,EAAE,CASnB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Turns a declared position into the value a call site needs.
|
|
2
|
+
//
|
|
3
|
+
// The positional readers take `CloudCommandInput["args"]` itself rather than a restatement of its
|
|
4
|
+
// element union. A narrower copy stays assignable *from* nothing, so widening the union breaks
|
|
5
|
+
// every call site while the helper — the one place that reads a position — reports nothing.
|
|
6
|
+
//
|
|
7
|
+
// They live beside `command.ts` and take their type from `./command.js` rather than through
|
|
8
|
+
// `./index.js`, so a module that declares commands can import them without pulling the foundation
|
|
9
|
+
// into the plugin's static graph. `test/cli-published-surface.test.ts` counts a type-only import
|
|
10
|
+
// the same as any other.
|
|
11
|
+
//
|
|
12
|
+
// `readSingleValue` is here rather than in a command family because a family's own copy of it is
|
|
13
|
+
// what the hosted CLI grew three of: the same refusal, worded three ways, guarding the same thing.
|
|
14
|
+
// What differs between the call sites is what an absent value means, so each keeps its own wrapper
|
|
15
|
+
// and none keeps its own check.
|
|
16
|
+
// One value where the declaration said one value, whether it came from a position or an option.
|
|
17
|
+
//
|
|
18
|
+
// A collected vector reaching a call site that declared a single value means the declaration and
|
|
19
|
+
// the reader have drifted apart. It is refused rather than coerced, because a `string[]`
|
|
20
|
+
// interpolated into a URL or a sentence becomes `npm,test`, which reads like a real identifier.
|
|
21
|
+
//
|
|
22
|
+
// The label is the caller's, so the message keeps naming the thing the customer typed: `<name>` for
|
|
23
|
+
// a required position, `[name]` for an optional one, `--flag` for an option.
|
|
24
|
+
export function readSingleValue(value, label) {
|
|
25
|
+
if (value === undefined)
|
|
26
|
+
return undefined;
|
|
27
|
+
if (typeof value !== "string") {
|
|
28
|
+
throw new Error(`${label} takes a single value.`);
|
|
29
|
+
}
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
// A position the command declared as `<name>`. Commander refuses a missing required argument
|
|
33
|
+
// before the action runs, so the value is there; what is missing is a type that says so.
|
|
34
|
+
export function requiredArgument(args, index, name) {
|
|
35
|
+
const value = readSingleValue(args[index], `Argument <${name}>`);
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
throw new Error(`Missing required argument <${name}>.`);
|
|
38
|
+
}
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
// A position the command declared as variadic — a name ending in `...`, which the host registers as
|
|
42
|
+
// `<name...>` or `[name...]`. It occupies one position and holds the whole collected vector.
|
|
43
|
+
//
|
|
44
|
+
// The vector is returned as it came, empty included: empty is a real answer for an optional
|
|
45
|
+
// `[name...]`, and only the caller knows what to do with it. A required `<name...>` cannot arrive
|
|
46
|
+
// empty, because Commander refuses that before the action runs.
|
|
47
|
+
export function variadicArgument(args, index, name) {
|
|
48
|
+
const value = args[index];
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
throw new Error(`Missing required argument <${name}...>.`);
|
|
51
|
+
}
|
|
52
|
+
if (typeof value === "string") {
|
|
53
|
+
throw new Error(`Argument <${name}...> takes a list of values.`);
|
|
54
|
+
}
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=arguments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arguments.js","sourceRoot":"","sources":["../../src/cli/arguments.ts"],"names":[],"mappings":"AAEA,8DAA8D;AAC9D,EAAE;AACF,kGAAkG;AAClG,+FAA+F;AAC/F,4FAA4F;AAC5F,EAAE;AACF,4FAA4F;AAC5F,kGAAkG;AAClG,iGAAiG;AACjG,yBAAyB;AACzB,EAAE;AACF,iGAAiG;AACjG,mGAAmG;AACnG,mGAAmG;AACnG,gCAAgC;AAEhC,gGAAgG;AAChG,EAAE;AACF,iGAAiG;AACjG,yFAAyF;AACzF,gGAAgG;AAChG,EAAE;AACF,oGAAoG;AACpG,6EAA6E;AAC7E,MAAM,UAAU,eAAe,CAAC,KAAc,EAAE,KAAa;IAC3D,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,wBAAwB,CAAC,CAAC;IACpD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,6FAA6F;AAC7F,yFAAyF;AACzF,MAAM,UAAU,gBAAgB,CAC9B,IAA+B,EAC/B,KAAa,EACb,IAAY;IAEZ,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,aAAa,IAAI,GAAG,CAAC,CAAC;IACjE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,8BAA8B,IAAI,IAAI,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,oGAAoG;AACpG,6FAA6F;AAC7F,EAAE;AACF,4FAA4F;AAC5F,kGAAkG;AAClG,gEAAgE;AAChE,MAAM,UAAU,gBAAgB,CAC9B,IAA+B,EAC/B,KAAa,EACb,IAAY;IAEZ,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,8BAA8B,IAAI,OAAO,CAAC,CAAC;IAC7D,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,aAAa,IAAI,8BAA8B,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CloudCommand, CloudCommandArgument, CloudCommandGroupNode, CloudCommandNode, CloudCommandOption } from "./host-nodes.js";
|
|
2
|
+
import { type GlobalOptions } from "./root-options.js";
|
|
3
|
+
export type { CloudCommand, CloudCommandAction, CloudCommandArgument, CloudCommandGroupNode, CloudCommandNode, CloudCommandOption, } from "./host-nodes.js";
|
|
4
|
+
export interface CloudCommandInput {
|
|
5
|
+
args: readonly (string | readonly string[] | undefined)[];
|
|
6
|
+
options: Record<string, unknown>;
|
|
7
|
+
globals: GlobalOptions;
|
|
8
|
+
commandPath: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
export type CloudCommandRun = (input: CloudCommandInput) => Promise<void | number>;
|
|
11
|
+
export interface CloudCommandDefinition {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
arguments?: CloudCommandArgument[];
|
|
15
|
+
options?: CloudCommandOption[];
|
|
16
|
+
run: CloudCommandRun;
|
|
17
|
+
}
|
|
18
|
+
export interface CloudCommandGroup {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
options?: CloudCommandOption[];
|
|
22
|
+
subcommands: CloudCommandNode[];
|
|
23
|
+
}
|
|
24
|
+
export declare function defineCloudCommand(definition: CloudCommandDefinition): CloudCommand;
|
|
25
|
+
export declare function defineCloudCommandGroup(group: CloudCommandGroup): CloudCommandGroupNode;
|
|
26
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AY,CAmCnF;AAID,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,iBAAiB,GAAG,qBAAqB,CAEvF"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { readCommandContext, readCommandOptions } from "./host-arguments.js";
|
|
2
|
+
import { readGlobalOptions } from "./root-options.js";
|
|
3
|
+
// Turns a hosted Cloud command into a node the Vendure CLI host can register.
|
|
4
|
+
//
|
|
5
|
+
// Everything a command family would otherwise repeat lives here: reading the shared selectors,
|
|
6
|
+
// turning a thrown error into the message a customer sees, and answering with an exit code instead
|
|
7
|
+
// of ending the process. The last part is the one worth stating — the host calls `process.exit`
|
|
8
|
+
// with whatever an action returns, and a command that exited itself would take that decision away
|
|
9
|
+
// from the host part-way through the run.
|
|
10
|
+
//
|
|
11
|
+
// `run` should reach its implementation through `await import(...)`. The host loads this plugin
|
|
12
|
+
// with a synchronous `require` on every `vendure` invocation, including the ones that have nothing
|
|
13
|
+
// to do with Cloud, so a command family that imports its implementation statically puts that cost
|
|
14
|
+
// on `vendure build`. `test/cli-published-surface.test.ts` is what holds that line.
|
|
15
|
+
export function defineCloudCommand(definition) {
|
|
16
|
+
const { run, ...declaration } = definition;
|
|
17
|
+
return {
|
|
18
|
+
...declaration,
|
|
19
|
+
// biome-ignore lint/suspicious/noConfusingVoidType: matches the host's `CliCommandAction`.
|
|
20
|
+
action: async (...args) => {
|
|
21
|
+
// Set before the work starts so the failure path can still honour `--json` when it was read,
|
|
22
|
+
// and fall back to the terminal when the run failed before that point.
|
|
23
|
+
let globals = {};
|
|
24
|
+
// Reading the host's arguments is inside the try, not before it. `readCommandContext` and
|
|
25
|
+
// `readCommandOptions` both throw when the tail they expect is not there, which is exactly
|
|
26
|
+
// what a host whose calling convention has moved would produce. Left outside, either one
|
|
27
|
+
// would escape the exit-code contract that every command family here depends on.
|
|
28
|
+
try {
|
|
29
|
+
// Before anything reads `process.env`: `getApiUrl` and `resolveCredential` both do, and the
|
|
30
|
+
// host does not load a project's `.env` for a plugin command the way `vcloud` does.
|
|
31
|
+
(await import("./lib/env-file.js")).loadProjectEnvFile();
|
|
32
|
+
const context = readCommandContext(args);
|
|
33
|
+
const options = readCommandOptions(args);
|
|
34
|
+
globals = readGlobalOptions({
|
|
35
|
+
inheritedOptions: context.inheritedOptions,
|
|
36
|
+
options,
|
|
37
|
+
});
|
|
38
|
+
return await run({
|
|
39
|
+
args: positionalArguments(args, declaration.arguments?.length ?? 0),
|
|
40
|
+
options,
|
|
41
|
+
globals,
|
|
42
|
+
commandPath: context.commandPath,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
const { reportCommandError } = await import("./lib/errors.js");
|
|
47
|
+
return reportCommandError(error, { json: globals.json });
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
// A group has no action of its own; the host refuses one that declares both. It exists so a family
|
|
53
|
+
// can nest its commands, and so an option shared by only that family is declared in one place.
|
|
54
|
+
export function defineCloudCommandGroup(group) {
|
|
55
|
+
return group;
|
|
56
|
+
}
|
|
57
|
+
// The host appends its own three values after everything Commander supplies, so the positional
|
|
58
|
+
// arguments are what is left at the front. Counted from the declaration rather than sliced from
|
|
59
|
+
// the end, because an optional argument the customer omitted is still passed, as `undefined`.
|
|
60
|
+
function positionalArguments(args, declared) {
|
|
61
|
+
return args.slice(0, declared).map(readPositional);
|
|
62
|
+
}
|
|
63
|
+
// One declared position, in the shape `CloudCommandInput.args` describes. Anything that is neither
|
|
64
|
+
// of those shapes reads as an argument that was not supplied, which is what an omitted optional one
|
|
65
|
+
// already was.
|
|
66
|
+
//
|
|
67
|
+
// The vector is copied rather than passed through, because the array Commander supplies is the one
|
|
68
|
+
// it goes on holding. A command that sorted or spliced its own arguments would otherwise be editing
|
|
69
|
+
// the host's state part-way through the run.
|
|
70
|
+
function readPositional(value) {
|
|
71
|
+
if (typeof value === "string")
|
|
72
|
+
return value;
|
|
73
|
+
if (!Array.isArray(value))
|
|
74
|
+
return undefined;
|
|
75
|
+
const entries = value;
|
|
76
|
+
const collected = [];
|
|
77
|
+
for (const entry of entries) {
|
|
78
|
+
if (typeof entry !== "string")
|
|
79
|
+
return undefined;
|
|
80
|
+
collected.push(entry);
|
|
81
|
+
}
|
|
82
|
+
return collected;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/cli/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAQ7E,OAAO,EAAsB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AA+D1E,8EAA8E;AAC9E,EAAE;AACF,+FAA+F;AAC/F,mGAAmG;AACnG,gGAAgG;AAChG,kGAAkG;AAClG,0CAA0C;AAC1C,EAAE;AACF,gGAAgG;AAChG,mGAAmG;AACnG,kGAAkG;AAClG,oFAAoF;AACpF,MAAM,UAAU,kBAAkB,CAAC,UAAkC;IACnE,MAAM,EAAE,GAAG,EAAE,GAAG,WAAW,EAAE,GAAG,UAAU,CAAC;IAC3C,OAAO;QACL,GAAG,WAAW;QACd,2FAA2F;QAC3F,MAAM,EAAE,KAAK,EAAE,GAAG,IAAe,EAA0B,EAAE;YAC3D,6FAA6F;YAC7F,uEAAuE;YACvE,IAAI,OAAO,GAAkB,EAAE,CAAC;YAChC,0FAA0F;YAC1F,2FAA2F;YAC3F,yFAAyF;YACzF,iFAAiF;YACjF,IAAI,CAAC;gBACH,4FAA4F;gBAC5F,oFAAoF;gBACpF,CAAC,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;gBACzD,MAAM,OAAO,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;gBACzC,MAAM,OAAO,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;gBACzC,OAAO,GAAG,iBAAiB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EAAE,CAAC;QAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAC;QAChD,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arguments.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deployment/arguments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAU1D,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAC/B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAEpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { readSingleValue } from "../../arguments.js";
|
|
2
|
+
// Reads a positional argument this family declared as optional.
|
|
3
|
+
//
|
|
4
|
+
// Every positional here is optional — `rollback`, `deployment show` and `deployment logs` each take
|
|
5
|
+
// a deployment ID or fall back to a lookup — so an absent value is the ordinary case rather than
|
|
6
|
+
// the error it is for `requiredArgument`.
|
|
7
|
+
//
|
|
8
|
+
// The parameter is `CloudCommandInput["args"]` itself, because a narrower restatement of it stays
|
|
9
|
+
// assignable and so goes stale without failing here, which is the one place that reads a position.
|
|
10
|
+
export function optionalArgument(args, index, name) {
|
|
11
|
+
return readSingleValue(args[index], `Argument [${name}]`);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=arguments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arguments.js","sourceRoot":"","sources":["../../../../src/cli/commands/deployment/arguments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,gEAAgE;AAChE,EAAE;AACF,oGAAoG;AACpG,iGAAiG;AACjG,0CAA0C;AAC1C,EAAE;AACF,kGAAkG;AAClG,mGAAmG;AACnG,MAAM,UAAU,gBAAgB,CAC9B,IAA+B,EAC/B,KAAa,EACb,IAAY;IAEZ,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,aAAa,IAAI,GAAG,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-logs.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deployment/build-logs.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,iBAAiB,EAOvB,MAAM,gBAAgB,CAAC;AASxB,wBAAsB,mBAAmB,CAAC,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,GACR,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA6CjD"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as prompts from "@clack/prompts";
|
|
2
|
+
import { cloudInvocation, createAuthenticatedClient, resolveEnvironment, } from "../../index.js";
|
|
3
|
+
import { consumeLogStream, printLogLine } from "../../lib/log-stream.js";
|
|
4
|
+
import { optionalArgument } from "./arguments.js";
|
|
5
|
+
import { readBooleanOption, readStringOption } from "./options.js";
|
|
6
|
+
import { DEPLOYMENT_PAGE_SIZE, resolveDeploymentId } from "./shared.js";
|
|
7
|
+
const BUILD_LOG_PAGE_SIZE = 1_000;
|
|
8
|
+
export async function deploymentBuildLogs({ args, options, globals, }) {
|
|
9
|
+
if (globals.json) {
|
|
10
|
+
throw new Error("Build Step Logs are text output and do not support --json.");
|
|
11
|
+
}
|
|
12
|
+
const deploymentId = optionalArgument(args, 0, "deployment-id");
|
|
13
|
+
const follow = readBooleanOption(options.follow);
|
|
14
|
+
const lines = parseLineCount(readStringOption(options.lines, "--lines"));
|
|
15
|
+
const client = createAuthenticatedClient(globals);
|
|
16
|
+
const resolvedDeploymentId = deploymentId
|
|
17
|
+
? await resolveDeploymentId(client, globals, deploymentId)
|
|
18
|
+
: await findLatestBuildDeploymentId(client, globals);
|
|
19
|
+
if (follow) {
|
|
20
|
+
const query = new URLSearchParams({ lines: String(lines) });
|
|
21
|
+
const interrupted = await consumeLogStream(client, `/deployments/${encodeURIComponent(resolvedDeploymentId)}/build-logs/stream?${query}`, { expectTerminalFrame: true });
|
|
22
|
+
return interrupted ? 130 : undefined;
|
|
23
|
+
}
|
|
24
|
+
let cursor;
|
|
25
|
+
let itemCount = 0;
|
|
26
|
+
do {
|
|
27
|
+
const query = new URLSearchParams({ limit: String(BUILD_LOG_PAGE_SIZE) });
|
|
28
|
+
if (cursor)
|
|
29
|
+
query.set("cursor", cursor);
|
|
30
|
+
const page = await client.get(`/deployments/${encodeURIComponent(resolvedDeploymentId)}/build-logs?${query}`);
|
|
31
|
+
if (page.status !== "AVAILABLE") {
|
|
32
|
+
printUnavailable(page.status, resolvedDeploymentId);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
for (const entry of page.items) {
|
|
36
|
+
printLogLine(entry);
|
|
37
|
+
itemCount += 1;
|
|
38
|
+
}
|
|
39
|
+
cursor = page.nextCursor ?? undefined;
|
|
40
|
+
} while (cursor);
|
|
41
|
+
if (itemCount === 0) {
|
|
42
|
+
prompts.log.warn("No Build Step Log output is available yet.");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
async function findLatestBuildDeploymentId(client, options) {
|
|
46
|
+
const { environment } = await resolveEnvironment(options);
|
|
47
|
+
let offset = 0;
|
|
48
|
+
while (true) {
|
|
49
|
+
const query = new URLSearchParams({
|
|
50
|
+
environmentId: environment.id,
|
|
51
|
+
limit: String(DEPLOYMENT_PAGE_SIZE),
|
|
52
|
+
offset: String(offset),
|
|
53
|
+
});
|
|
54
|
+
const page = await client.get(`/deployments?${query}`);
|
|
55
|
+
const match = page.items.find((deployment) => deployment.hasBuildStep ?? deployment.applicationSource === "SOURCE_BUILD");
|
|
56
|
+
if (match)
|
|
57
|
+
return match.id;
|
|
58
|
+
offset += page.items.length;
|
|
59
|
+
if (offset >= page.total || page.items.length === 0)
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
throw new Error(`No deployment with a Build Step Log found for VC Environment "${environment.slug}". Run \`${cloudInvocation()} deploy\` first or pass a deployment ID.`);
|
|
63
|
+
}
|
|
64
|
+
function parseLineCount(value) {
|
|
65
|
+
const lines = value === undefined ? Number.NaN : Number.parseInt(value, 10);
|
|
66
|
+
if (!Number.isInteger(lines) || lines < 1 || lines > 1_000) {
|
|
67
|
+
throw new Error("--lines must be an integer between 1 and 1000.");
|
|
68
|
+
}
|
|
69
|
+
return lines;
|
|
70
|
+
}
|
|
71
|
+
// The default branch matters as much as the cases. The status comes from a control plane that may
|
|
72
|
+
// be newer than this client, so a status added after a release would otherwise print nothing and
|
|
73
|
+
// exit zero, which reads as an empty log rather than as a client too old to explain the answer.
|
|
74
|
+
function printUnavailable(status, deploymentId) {
|
|
75
|
+
switch (status) {
|
|
76
|
+
case "NOT_STARTED":
|
|
77
|
+
prompts.log.info("The Build Step has not started yet. Re-run with --follow to wait.");
|
|
78
|
+
return;
|
|
79
|
+
case "NO_BUILD_STEP":
|
|
80
|
+
prompts.log.info(`VC Deployment ${deploymentId} has no Build Step Log.`);
|
|
81
|
+
return;
|
|
82
|
+
case "NO_OUTPUT":
|
|
83
|
+
prompts.log.warn(`The Build Step produced no output. Run \`${cloudInvocation()} deployment show\` for why it failed.`);
|
|
84
|
+
return;
|
|
85
|
+
case "EXPIRED":
|
|
86
|
+
prompts.log.warn("This Build Step Log has expired after the 30-day retention window.");
|
|
87
|
+
return;
|
|
88
|
+
case "AVAILABLE":
|
|
89
|
+
return;
|
|
90
|
+
default:
|
|
91
|
+
// Names no package to update. The same code runs under `vendure`, where the artifact is
|
|
92
|
+
// `@vendure/cloud`, and under `vcloud`, where it is `@vendure/cloud-cli`, so any install
|
|
93
|
+
// command here is wrong on one of the two surfaces.
|
|
94
|
+
prompts.log.warn(`Vendure Cloud reported this Build Step Log as "${status}", which this version of the CLI does not recognise. Update the CLI to see it explained.`);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=build-logs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-logs.js","sourceRoot":"","sources":["../../../../src/cli/commands/deployment/build-logs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAML,eAAe,EACf,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAExE,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAElC,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,GACW;IAClB,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,CAAC;IACD,MAAM,YAAY,GAAG,gBAAgB,CAAC,IAAI,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,cAAc,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;IAEzE,MAAM,MAAM,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAClD,MAAM,oBAAoB,GAAG,YAAY;QACvC,CAAC,CAAC,MAAM,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC;QAC1D,CAAC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