Skip to content

ClassIsland 最低版本降至 2.0.0.0 - #15

Open
opencode-agent[bot] wants to merge 1 commit into
masterfrom
opencode/issue9-20260901124628
Open

ClassIsland 最低版本降至 2.0.0.0#15
opencode-agent[bot] wants to merge 1 commit into
masterfrom
opencode/issue9-20260901124628

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Sep 1, 2026

Copy link
Copy Markdown

已处理 Issue:ClassIsland 端联动插件要求的宿主版本过高

根因

SecAgent 在识别 ClassIsland 安装时,把宿主最低版本硬编码为 2.1.1.0src/classisland.tsMIN_CLASSISLAND_VERSION)。版本低于 2.1.1.0 的 ClassIsland(例如 2.0.x)会被标记为 compatible: false,OOBE 向导会阻止安装联动插件,并提示"所选 ClassIsland 版本低于 2.1.1.0"。

修改内容

文件 改动
src/classisland.ts MIN_CLASSISLAND_VERSION"2.1.1.0" 下调为 "2.0.0.0",使 2.0.0.0 及以上版本均视为兼容
src/renderer/src/components/OobeWizard.tsx 错误提示文案同步改为"所选 ClassIsland 版本低于 2.0.0.0"
src/classisland.test.ts 更新最低版本测试为 2.0.0.0;将"过旧版本"测试数据改为 1.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

New%20session%20-%202026-09-01T12%3A46%3A27.561Z
opencode session  |  github run

将 MIN_CLASSISLAND_VERSION 从 2.1.1.0 下调到 2.0.0.0,使 2.0.x 的
ClassIsland 也能被识别为兼容并可安装 SecAgent 联动插件。同步更新
OOBE 向导的错误提示与相关测试断言。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClassIsland 端联动插件要求的宿主版本过高

0 participants