feat(computer): 内置 PI 后端并适配三大桌面平台 - #1064
Open
TFboy1 wants to merge 1 commit into
Open
Conversation
Collaborator
|
@TFboy1 增加以下逻辑:如果用户选择开启 Less Computer,则在下载时弹出提示框,询问用户是否下载。关闭 Less Computer 时提供两个选项:卸载并关闭,或不卸载并保留数据。为确保不出现上述问题,需要增加一套独立的下载后端,即单独的下载机制。对于不使用 Less Computer 的用户,可以不下载该部分内容。然后将其解耦,以类似解耦的方式进行下载。同时为解耦后的部分单独增加仓库,我待会新建仓库,你待会把 PR 提上来,我拉下来之后会有一个单独的仓库,用于使用 Less Computer 构建版本,并让用户通过这个单独的仓库去拉取。 |
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.
摘要
为 Less Computer 内置 PI SDK、独立 Node.js 和原生 Computer 工具。用户安装 OpenLess 后,启用 Less Computer 并配置模型凭据,即可通过 PI 查看和操作桌面,无需另装 PI、Node.js 或 Python。
修复 / 新增 / 改进
pi-bundled后端,支持流式结果、取消、超时、实例内续聊及明确的完成状态。兼容
测试计划
npm --prefix pi-backend test:12 项通过,覆盖真实 PI SDK 对接本地模拟模型服务、截图回传、取消与超时。cargo test -p openless-computer:11 项测试通过;完成 5 项无桌面副作用的 CLI 检查。node --test scripts/prepare-pi-backend.test.mjs:4 项通过,覆盖平台映射、摘要校验、清理边界和运行资源保留。npm run build、Windows release 编译、NSIS 安装包生成及内置后端--health/--capabilities均通过。origin/beta的git merge-tree --write-tree检查无冲突,git diff --check通过。测试源码位于
openless-all/app/pi-backend/test/backend.test.mjs、openless-all/app/scripts/prepare-pi-backend.test.mjs和 Rust crates 内。成功构建记录为本地windows-pi-bundle-final.log、pi-core-tests.log、core-whisper-final.log(日志未入库)。使用和构建说明见docs/less-computer-pi.md。