feat(cloud-connection): @objectstack/cloud-connection — open runtime-side cloud client (ADR-0008 Phase 2)#1748
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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>
os-zhuang
force-pushed
the
feat/cloud-connection-package
branch
from
June 12, 2026 02:18
6e405dc to
767455c
Compare
| 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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 不含任何计划政策)objectos-runtime当前 canonical(领先于 Phase 4 删除前的历史副本);cloud 侧下一个 PR 切 re-export、删平行实现(依赖方向反转,延续 ADR-0006 去重)验证
🤖 Generated with Claude Code