Skip to content

feat(server): marketplace + Console SPA deps for self-host runtime (ADR-0020 T1)#27

Merged
xuyushun441-sys merged 1 commit into
mainfrom
feat/objectos-self-host-runtime
Jun 23, 2026
Merged

feat(server): marketplace + Console SPA deps for self-host runtime (ADR-0020 T1)#27
xuyushun441-sys merged 1 commit into
mainfrom
feat/objectos-self-host-runtime

Conversation

@xuyushun441-sys

Copy link
Copy Markdown
Contributor

ADR-0020 T1 — grow @objectos/server into the open-source self-host runtime

Makes apps/objectos a complete open-source self-host runtime distribution (marketplace client + Console SPA), per ADR-0020.

What changed

  • apps/objectos/package.json — pin two deps so the distribution explicitly carries them:
    • @objectstack/console@^10.2.0 — the /_console/ SPA
    • @objectstack/cloud-connection@^10.2.0 — marketplace browse/install + cloud-connection + runtime-config
  • apps/objectos/objectstack.config.ts — doc-only note (config stays a bare standalone stack).

Key finding (why no explicit plugin wiring)

The objectstack CLI already auto-provisions the full self-host runtime on top of any standalone stack — every entry point (Docker, dev, and the ObjectOS One desktop via one.mjs) routes through objectstack serve, which injects the marketplace + cloud-connection + runtime-config plugins from @objectstack/cloud-connection (gated on resolveCloudUrl(); OS_CLOUD_URL=off → fully offline) and serves the @objectstack/console SPA at /_console/. Wiring those plugins explicitly in objectstack.config.ts would double-mount, so it's intentionally omitted (documented in the config; would only be needed if a future framework drops the CLI auto-injection — ADR-0006 Phase 4).

Note: the original T1 spec said add @object-ui/console@^7.0.0; that package is no longer consulted by the CLI (canonical name is @objectstack/console, major must match the CLI). Corrected to @objectstack/console@^10.2.0.

Verification

  • type-check clean.
  • Online (default cloud URL): /_console/ SPA renders in a real browser (React mounts, zero console errors) · /api/v1/marketplace/packages returns the live catalog · /api/v1/runtime/config served.
  • Offline (OS_CLOUD_URL=off): marketplace/cloud-connection/runtime-config unmounted, SPA still served, zero outbound cloud calls.
  • Desktop (apps/objectos-one + one.mjs) untouched — kept per ADR-0020.

🤖 Generated with Claude Code

…t runtime (ADR-0020 T1)

Make @objectos/server a complete open-source self-host runtime distribution by
pinning the Console SPA and marketplace client as explicit dependencies:

  - @objectstack/console          ^10.2.0  — the /_console/ SPA
  - @objectstack/cloud-connection ^10.2.0  — marketplace browse/install,
    cloud-connection, runtime-config

The objectstack CLI already auto-provisions both on top of the standalone stack
for every entry point (Docker, dev, and the ObjectOS One desktop — all route
through `objectstack serve`): it injects the marketplace + cloud-connection +
runtime-config plugins from @objectstack/cloud-connection (gated on
resolveCloudUrl(); OS_CLOUD_URL=off -> fully offline) and serves the
@objectstack/console SPA at /_console/. So objectstack.config.ts stays a bare
standalone stack; a doc note records why explicit wiring is omitted (it would
double-mount) and the ADR-0006 Phase 4 caveat.

Verified: online -> SPA renders in-browser (no console errors) + marketplace API
returns the live catalog + runtime-config served; offline (OS_CLOUD_URL=off) ->
marketplace plugins unmounted, SPA still served, zero outbound cloud calls.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xuyushun441-sys xuyushun441-sys merged commit e8199e4 into main Jun 23, 2026
1 check passed
@xuyushun441-sys xuyushun441-sys deleted the feat/objectos-self-host-runtime branch June 23, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants