feat(runtime-host): add Desktop client foundation - #2134
Merged
Conversation
Member
Author
|
CI note: the remaining E2E failure is in the existing embedded Desktop composer-skill-invocation flow, where the second staged Skill chip did not appear within its timeout. This PR does not change that flow. The affected Runtime Host, Desktop workspace, typecheck, and aggregate test lanes all pass. |
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.
English
Summary
v0, so a Client can reject and retire a stale same-version Host before using incompatible semantics.Why
Desktop is the first M4 Client adapter. It needs a reliable initial-state/live boundary before its existing renderer-facing flows can move from the embedded Runtime to the Host. Wire version
v0alone cannot distinguish a pre-foundation Host from one that supports this boundary.Design
session.transcript.querycreates immutable, subscription-owned snapshots with bounded chunks, memory limits, idle expiry, and connection/session cleanup.Validation
npm test --workspace @maka/runtime-hostnpm test --workspace @maka/desktop(1,618 tests)npm test --workspace maka-agentnpm run format:checknpm run lintnpm run typechecknpm run build --workspace @maka/desktopPart of #2010.
简体中文
概要
v0的同时加入 compatibility epoch,使 Client 能在使用不兼容语义前识别并淘汰同版本的陈旧 Host。原因
Desktop 是第一个 M4 Client adapter。在现有 renderer-facing flow 从 embedded Runtime 迁移到 Host 前,需要先具备可靠的 initial-state/live 边界。仅靠 wire version
v0无法区分不具备该边界的旧 Host 与当前 Host。设计
session.transcript.query创建由 subscription 持有的 immutable snapshot,并限制 chunk、内存占用和空闲时间,同时在 connection/session 结束时完成清理。验证
npm test --workspace @maka/runtime-hostnpm test --workspace @maka/desktop(1,618 tests)npm test --workspace maka-agentnpm run format:checknpm run lintnpm run typechecknpm run build --workspace @maka/desktop#2010 的一部分。