Skip to content

feat(cli,showcase): ADR-0008 Phase 3 — os package install + marketplace in the open single-env example#1755

Merged
os-zhuang merged 1 commit into
mainfrom
feat/adr-0008-phase3-showcase-cli2
Jun 12, 2026
Merged

feat(cli,showcase): ADR-0008 Phase 3 — os package install + marketplace in the open single-env example#1755
os-zhuang merged 1 commit into
mainfrom
feat/adr-0008-phase3-showcase-cli2

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

ADR-0008 Phase 3(framework 侧)

1. os package install(新 CLI 命令)

  • catalog 模式:os package install com.acme.crm [--version] —— 目标运行时从它配置的 catalog 解析并装进自己内核
  • 气隙模式:os package install ./dist/objectstack.json —— 编译产物 inline 上送,零 catalog 依赖
  • 对目标运行时 better-auth 登录(--email/--password;带 Origin 头过 CSRF)

2. app-showcase 接市场(开源单环境参考 wiring)

  • 显式 wire @objectstack/cloud-connection(proxy + install-local + cloud-connection + runtime-config);OS_CLOUD_URL=off 可关

E2E 验证(本地真栈)

  • ✅ CLI catalog 模式:从本地控制面装入 com.local.sample@1.0.0
  • ✅ CLI 气隙模式:inline artifact 装入 local.airgap.demo@0.0.1
  • ✅ 浏览器:showcase /_console 市场页 —— 目录渲染 + Installed v1.0.0 徽章 + Installed (2) 列表
  • ✅ runtime/config 开源默认(无 plan 政策钩子)印证开闭边界

注:lockfile 的 showcase importer 已随 #1751/#1754 在 main(共享 checkout 时序),本 PR 不再改 lockfile。
后续(cloud 侧另 PR):catalog manifest 端点按 manifest_id 解析 + 匿名限流。

🤖 Generated with Claude Code

…ce in the open single-env example

- New `os package install <manifest-id|artifact.json>` CLI command:
  catalog mode (runtime resolves from its configured catalog) and
  air-gapped inline mode (compiled artifact sent in-body, no catalog).
  Signs in to the TARGET runtime via better-auth (--email/--password,
  Origin header for the CSRF check).
- app-showcase wires @objectstack/cloud-connection explicitly (proxy +
  install-local + cloud-connection + runtime-config) — the reference
  wiring for an open single-environment deployment with a marketplace.
  OS_CLOUD_URL=off disables; air-gapped installs keep working.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Error Error Jun 12, 2026 2:59am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tooling size/m and removed documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tooling labels Jun 12, 2026
@os-zhuang
os-zhuang merged commit 59c2d32 into main Jun 12, 2026
5 of 11 checks passed
@os-zhuang
os-zhuang deleted the feat/adr-0008-phase3-showcase-cli2 branch June 12, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant