Skip to content

feat(cloud-connection): @objectstack/cloud-connection — open runtime-side cloud client (ADR-0008 Phase 2)#1748

Merged
os-zhuang merged 2 commits into
mainfrom
feat/cloud-connection-package
Jun 12, 2026
Merged

feat(cloud-connection): @objectstack/cloud-connection — open runtime-side cloud client (ADR-0008 Phase 2)#1748
os-zhuang merged 2 commits into
mainfrom
feat/cloud-connection-package

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

ADR-0008 Phase 2(开源搬家,framework 侧)

新开源包 @objectstack/cloud-connection(cloud 仓 ADR-0008 D1/D2):运行时连接控制面的客户端。

  • MarketplaceProxyPlugin(匿名公开目录浏览)+ MarketplaceInstallLocalPlugin(装进本运行时)
  • CloudConnectionPlugin(/api/v1/cloud-connection/*:status、RFC 8628 设备码 bind、org 目录、installed 视图、控制面安装;多租户/单环境双模式)
  • RuntimeConfigPlugin:resolvePlanFeatures 政策注入缝 —— plan entitlements 留宿主(开放机制、闭合智能;framework 不含任何计划政策)
  • 源 = cloud objectos-runtime 当前 canonical(领先于 Phase 4 删除前的历史副本);cloud 侧下一个 PR 切 re-export、删平行实现(依赖方向反转,延续 ADR-0006 去重)
  • 已加入 changesets fixed 版本线 + changeset(minor)

验证

  • 包构建绿(ESM/CJS/DTS),3 个测试文件 25/25 过(proxy browse-only、public-url、cloud-connection 双模式)
  • 不改任何现有包;CLI 不自动注入(维持 ADR-0006 Phase 4 语义,宿主显式 wire)

🤖 Generated with Claude Code

@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 Canceled Canceled Jun 12, 2026 2:21am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tests tooling size/xl labels Jun 12, 2026
os-zhuang and others added 2 commits June 12, 2026 07:17
…cloud control plane (ADR-0008 Phase 2)

@objectstack/cloud-connection carries the canonical marketplace browse
proxy, install-local, the /api/v1/cloud-connection/* surface (status,
RFC 8628 device-code bind, org catalog, installed views, control-plane
install), and RuntimeConfigPlugin with a resolvePlanFeatures policy seam
(plan entitlements stay host-side, per open-mechanism-closed-intelligence).

Sources are the cloud distribution's current canonical copies; the cloud
repo's @objectstack/objectos-runtime switches to re-exports next.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
return '';
}
const picked = raw || DEFAULT_CLOUD_URL;
return picked.replace(/\/+$/, '');
// Persist flag flip
try {
entry.withSampleData = true;
writeFileSync(file, JSON.stringify(entry, null, 2), 'utf8');
// Flip flag so UI reflects the empty baseline
try {
entry.withSampleData = false;
writeFileSync(file, JSON.stringify(entry, null, 2), 'utf8');
if (!raw || lower === 'off' || lower === 'none' || lower === 'disabled' || lower === 'false') {
return '';
}
return raw.replace(/\/+$/, '');
};
try {
mkdirSync(this.storageDir, { recursive: true });
writeFileSync(join(this.storageDir, safeFilename(manifestId)), JSON.stringify(entry, null, 2), 'utf8');
if (seededSummary.seeded.mode === 'inline' && (seededSummary.seeded.inserted ?? 0) + (seededSummary.seeded.updated ?? 0) > 0) {
entry.withSampleData = true;
try {
writeFileSync(join(this.storageDir, safeFilename(manifestId)), JSON.stringify(entry, null, 2), 'utf8');
@os-zhuang
os-zhuang merged commit 998c4e4 into main Jun 12, 2026
12 of 13 checks passed
@os-zhuang
os-zhuang deleted the feat/cloud-connection-package branch June 12, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/xl tests tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants