Skip to content

docs(release): 发布说明列出插件需要的新宿主能力 - #2245

Merged
xiaoyumuxi merged 1 commit into
mainfrom
docs/release-notes-plugin-capabilities
Nov 20, 2026
Merged

xiaoyumuxi merged 1 commit into
mainfrom
docs/release-notes-plugin-capabilities

Conversation

@xiaoyumuxi

Copy link
Copy Markdown
Collaborator

关联 Issue / Linked issue

  • Refs release: prepare desktop-v0.8.12 #2244(desktop-v0.8.12 发版 PR,第一个按这条规则写“插件需要的新宿主能力”的版本;无独立 Issue,规则由维护者在准备 0.8.12 时提出)

PR 类型 / Type

  • feat:新功能或用户可见的改进
  • fix:缺陷修复
  • docs:文档、Agent Note、Skill 等规则文件
  • release:稳定版发布准备

改动说明 / What changes

背景 / Why

很多宿主能力都是因为插件需要才加的,例如 commandInstallers 能力版本 1 就是为 Rust Support 按需下载 CodeLLDB 加的。插件声明了新的能力版本后,旧版 Lithe 会拒绝安装这个插件。以前发布说明不写这层关系,有两个问题:

  • 用户看不出哪个插件版本需要升级 Lithe;
  • 以后也追溯不到某项能力当初是为哪个插件加的。

维护者要求以后每次发版都写清“插件仓库 + 插件版本 + 所需的新能力”。

改动 / Changes

  • .agents/skills/release-lithe/SKILL.md
    • 新增一节“Trace the host capabilities that plugins need”,按四步追溯:
      1. 读上一版 tag 和目标提交的 PINNED_CORE_REVISION,在 Core 里 diff capabilities.rs 的 SUPPORTED_CAPABILITIES,读 protocol-changelog.md 这段时间新增的宿主方法和通知;只算桌面端在目标提交里也实现了的。
      2. 从添加它的 Core 和桌面 PR 找到需要它的插件,再用插件 plugin.json 的 requires(或后端调用)确认,取第一个需要它的插件版本。
      3. 每个插件版本写一条:仓库链接、插件名与版本(预发布或未发布要注明)、能力及版本号或宿主方法、用途、还依赖本版的哪个修复。条目前面写一句旧版 Lithe 会怎样。
      4. 没有插件需要的能力不写;这一类没有内容时,中英文都省略。
    • “Use the bilingual structure”的分类顺序加入 #### 🔌 插件需要的新宿主能力 和 #### 🔌 New host capabilities that plugins need,排在“修复”之后。
    • “Validate before publishing”加一条检查:本版为插件新增的每项能力都有对应条目。
  • docs/releases/TEMPLATE.md:开头注释的分类顺序加入这一类,并指向 Skill;中英文各加这一类的占位条目。

不在本 PR 范围内 / Out of scope

  • 不改 scripts/release/notes/validate-stable-release-notes.mjs,也不加 CI 检查。这一类可以为空,没法自动判断该不该有,由发版时按 Skill 核对。
  • 不回补以前版本的发布说明。

类型专属:docs

  • 只改文档、Agent Note、Skill、入口文件等,没有产品代码的行为变化
  • [N/A] 长期决策、取舍和约束写在 .agents/notes/:这是发版操作规则,真源是 release-lithe Skill,没有新增 Note
  • 规则只在真源(Skill、Note)里写一份,入口文件只留指针:模板只留一句指向 Skill 的注释和占位条目
  • 文中的路径、命令、链接已核对真实存在:scripts/desktop/build-desktop-core.sh 的 PINNED_CORE_REVISION、Core 的 rust/crates/plugin-model/src/capabilities.rs(SUPPORTED_CAPABILITIES)和 shared/plugins/reference/protocol-changelog.md 都在 Core main 上
  • [N/A] 涉及插件契约或宿主方法的:只引用契约文件,不修改

范围检查 / Scope checks

功能矩阵 / Feature matrix

  • 没有更新矩阵的,理由:只改发版规则和模板,没有功能变化,附加 matrix-exempt 标签。

插件归属 / Plugin ownership

N/A:不改宿主代码、测试或插件资料。

UI 验证 / UI evidence

N/A:没有界面变化。

统一日志系统 / Structured logging

N/A。

界面文案 / i18n

N/A:发布说明不走 shared/i18n/。

逻辑归属 / Logic placement

N/A。

性能与内存 / Performance and memory

N/A。

设置 / Settings

N/A。

插件契约 / Plugin contract

N/A:不改契约、能力版本或宿主方法。

发行包与资源 / Bundle and resources

N/A。

无用代码与重构 / Dead code and refactoring

  • 没有变成无用的内容。
  • 没有发现需要建单的既有问题。

验证 / Verification

命令或操作 平台 结果
node scripts/release/notes/validate-stable-release-notes.mjs docs/releases/v0.8.11.md macOS 通过,旧格式不受影响
在 #2244 的 docs/releases/v0.8.12.md 上按新规则写这一类,再跑同一个校验 macOS 通过
按第 1 步对比 desktop-v0.8.11(Core 4ef9d9e)与 #2244(Core 43e3f27)的 capabilities.rs macOS 只有 commandInstallers 从 [0] 变为 [0, 1],对上 Rust Support 0.1.0 的 requires.commandInstallers: 1

未能执行的检查和原因: 无。

提交前确认 / Final checks

  • 分支从最新的 main 创建;目标分支:feat、fix、docs 为 main,release 以发布流程要求为准
  • 以 Draft 提交,本地验证通过后才标记 ready
  • 没有无关改动,没有提交 .build/、target/、dist/、.artifacts/ 等产物,没有凭据、个人路径和未脱敏的日志或截图
  • 本次构建、测试或预览启动的 Lithe 应用和子进程已全部关闭,没有进程残留

@xiaoyumuxi xiaoyumuxi added the matrix-exempt Reviewed non-user-visible refactor; skips platform feature matrix update label Nov 20, 2026
@ghfind-review ghfind-review Bot added the review: high ghfind author score; see https://ghfind.com label Nov 20, 2026
@xiaoyumuxi xiaoyumuxi mentioned this pull request Nov 20, 2026
15 of 18 tasks
@xiaoyumuxi
xiaoyumuxi marked this pull request as ready for review November 20, 2026 16:56
@xiaoyumuxi
xiaoyumuxi merged commit 200893d into main Nov 20, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

matrix-exempt Reviewed non-user-visible refactor; skips platform feature matrix update review: high ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant