ClassIsland 最低版本降至 2.0.0.0 - #15
Open
opencode-agent[bot] wants to merge 1 commit into
Open
Conversation
将 MIN_CLASSISLAND_VERSION 从 2.1.1.0 下调到 2.0.0.0,使 2.0.x 的 ClassIsland 也能被识别为兼容并可安装 SecAgent 联动插件。同步更新 OOBE 向导的错误提示与相关测试断言。
This was referenced Sep 1, 2026
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.
已处理 Issue:ClassIsland 端联动插件要求的宿主版本过高。
根因
SecAgent 在识别 ClassIsland 安装时,把宿主最低版本硬编码为
2.1.1.0(src/classisland.ts的MIN_CLASSISLAND_VERSION)。版本低于 2.1.1.0 的 ClassIsland(例如 2.0.x)会被标记为compatible: false,OOBE 向导会阻止安装联动插件,并提示"所选 ClassIsland 版本低于 2.1.1.0"。修改内容
src/classisland.tsMIN_CLASSISLAND_VERSION从"2.1.1.0"下调为"2.0.0.0",使 2.0.0.0 及以上版本均视为兼容src/renderer/src/components/OobeWizard.tsxsrc/classisland.test.ts1.9.0.0;新增断言确认2.0.4.0(即用户场景)现在被识别为兼容验证结果
npm run build:cli(tsc 全量编译,含 renderer)通过node --test dist/classisland.test.js:16/16 通过npm test(全量 129 项):128 通过、1 跳过(原有 skip)、0 失败已提交到分支
opencode/issue9-20260901124628,提交信息:支持 ClassIsland 2.0.0.0 及以上宿主版本安装联动插件。Closes #9
opencode session | github run