feat(runtime)!: remove multi-tenant runtime — framework is single-environment only#1600
Merged
Merged
Conversation
BREAKING CHANGE: the multi-tenant ObjectOS runtime moves out of the open-source framework to the cloud distribution (@objectstack/objectos-runtime). The framework now supports only the SINGLE-environment local runtime. Removed from @objectstack/runtime: createObjectOSStack, KernelManager (impl), ArtifactApiClient, FileArtifactApiClient, ArtifactEnvironmentRegistry, ArtifactKernelFactory, AuthProxyPlugin, the capability loader, the per-environment owner/org seeds, and platform-SSO. Kept (the local `os serve` console needs them): RuntimeConfigPlugin (now plan-agnostic again), MarketplaceProxyPlugin, MarketplaceInstallLocalPlugin, resolveCloudUrl/DEFAULT_CLOUD_URL. Also kept as pure interface contracts so a host runtime can accept an externally-supplied multi-tenant kernel router: EnvironmentDriverRegistry and a minimal KernelManager (getOrCreate) — the http-dispatcher's optional `kernelManager` seam now types against these. Why: cloud business / multi-tenant routing must not live in the open-source framework, and evolving cloud policy must never require a framework change (see the reverted #1598). The cloud side already consumes the relocated code from @objectstack/objectos-runtime; apps/objectos + apps/cloud no longer import any multi-tenant symbol from @objectstack/runtime. runtime build (ESM+CJS+DTS) green; 138 runtime tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
把多租户 ObjectOS 运行时整体移出开源 framework,迁到 cloud 私有发行包
@objectstack/objectos-runtime。framework 自此只支持单环境本地运行时。动机
cloud 业务/多租户路由不应存在于开源 framework;演进 cloud 策略绝不应要求改 framework(参见已 revert 的 #1598——按 plan 门控 aiStudio 本应在 cloud)。
删除(@objectstack/runtime 不再导出)
createObjectOSStack、KernelManager(实现)、ArtifactApiClient、FileArtifactApiClient、ArtifactEnvironmentRegistry、ArtifactKernelFactory、AuthProxyPlugin、capability-loader、per-env owner/org seeds、platform-SSO。保留(本地
os serve控制台需要)RuntimeConfigPlugin(已恢复为 plan-agnostic)、MarketplaceProxyPlugin、MarketplaceInstallLocalPlugin、resolveCloudUrl/DEFAULT_CLOUD_URL。另保留纯接口契约供宿主运行时接入外部多租户路由:
EnvironmentDriverRegistry+ 最小KernelManager(getOrCreate)——http-dispatcher 的可选kernelManagerseam 现在类型指向它们。验证
@objectstack/runtime引任何多租户符号(改用@objectstack/objectos-runtime/@objectstack/service-cloud)。合并顺序(重要)
@objectstack/objectos-runtime+ 接线)。bump-framework钉到本 PR 的 SHA → cloud 在瘦身后的 framework 上构建。外部使用者若依赖多租户 API:迁移到 cloud 发行版。CLI
os serve(单环境)不受影响。