Commit c102de2
feat(cli): auto-wire marketplace from @objectstack/cloud-connection when a cloud URL resolves (#2009)
ADR-0006 Phase 4 removed the framework CLI's duplicate marketplace plugins
(they lived in @objectstack/runtime, duplicating the cloud distribution's
copies). ADR-0008 then open-sourced the canonical client into the Apache-2.0
@objectstack/cloud-connection package, so the CLI can wire it again without
crossing the open-core boundary — there is no longer a cloud-only copy to
duplicate.
objectstack serve/dev/start now mount MarketplaceProxyPlugin +
MarketplaceInstallLocalPlugin + the same-origin cloud-connection surface +
RuntimeConfigPlugin (single-env, installLocal: true) whenever resolveCloudUrl()
is truthy. OS_CLOUD_URL=off (or unset) mounts nothing, preserving the vanilla
marketplace-less objectstack dev. Skipped in runtime/host-kernel mode (the
cloud objectos-stack wires its own proxy on the host kernel — detected via
ObjectOSEnvironmentPlugin, mirroring the existing AuthPlugin guard).
Fixes objectstack start empty-boot, which advertised "boot an empty kernel
against your marketplace" but — having no config or artifact to carry the
wiring — actually mounted no marketplace at all. The plugins self-register
their Setup nav bundles, so Browse Marketplace + Installed Apps reappear
automatically.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent c854f92 commit c102de2
4 files changed
Lines changed: 72 additions & 11 deletions
File tree
- .changeset
- packages/cli
- src/commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | | - | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
1011 | 1013 | | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1022 | 1068 | | |
1023 | 1069 | | |
1024 | 1070 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments