You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "testikun (via GitHub)" <gi...@apache.org> on 2026/09/01 02:15:45 UTC

Re: [I] feat(computer-use): create platform abstraction layer for cross-platform backends [maka]

testikun commented on issue #3896:
URL: https://github.com/apache/maka/issues/3896#issuecomment-5487763564

   > *This was generated by AI during triage.*\n\nI would like to work on this issue.\n\nI reviewed the current implementation before claiming it. Maka already has a platform-neutral  seam in ; the missing piece is the platform-selection boundary, not another runtime tool interface. The TypeScript backend is primarily a  transport/lifecycle adapter, while the native Accessibility, ScreenCaptureKit, and seatbelt behavior lives in the executor. I will keep that existing separation rather than duplicate it.\n\n### Proposed implementation\n\n1. **Make backend selection platform-driven and explicit**\n   - Introduce a small platform/backend factory in .\n   - Move the current Darwin-only  construction and pinned-binary checks behind the Darwin adapter.\n   - Keep selection fail-closed when the platform, executable, digest, or construction prerequisites are unavailable.\n\n2. **Add an explicit unsupported-platform adapter**\n   - Linux and Windows will return a typed unavailable/unsupporte
 d result and an empty tool set.\n   - They will not be added to  and will not advertise Computer Use capability before a real executor exists.\n   - No platform-specific binary download, fallback pointer input, or permission bypass will be introduced.\n\n3. **Keep Desktop integration unchanged except for guards**\n   - macOS-only TCC, screen-lock, overlay, and PIP behavior remains behind optional hooks.\n   - Desktop must not instantiate or probe native Computer Use dependencies on unsupported platforms.\n\n4. **Regression coverage**\n   - Inject the platform in selector tests instead of mutating .\n   - Cover Darwin selection with a pinned digest, missing/invalid binary inputs, constructor failure, Linux/Windows fail-closed selection, and lifecycle disposal.\n   - Verify that unsupported platforms expose no model-facing Computer Use tools and that the existing  protocol path is unchanged.\n\n### Scope boundary\n\nThis first PR will establish the abstraction and safe stubs only. It 
 will not claim Linux or Windows Computer Use support, add a second executor, change Runtime authorization, or modify the model-facing action contract. Real Linux and Windows implementations can land later behind the same seam once platform evidence and signed executors exist.\n\n### 中文摘要\n\n我想认领这个 issue。当前代码已经有平台无关的  接口,缺少的是  层清晰的平台选择边界,而不是再造一套 Runtime 工具接口。第一阶段会把现有 macOS  选择逻辑收敛到 Darwin adapter,并为 Linux/Windows 提供明确的不可用 stub;不宣称支持新平台,也不引入未签名的 fallback。\n\n测试会覆盖 macOS 完整性校验、缺少或错误 digest、构造失败、Linux/Windows fail-closed、无 Computer Use 工具泄漏以及生命周期释放。不会修改  协议、Runtime 授权语义或模型侧 action contract。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org