Repository navigation
fix(plugins): 修复 macOS mise 工具链插件无法安装 - #1661
Merged
Merged
Conversation
xiaoyumuxi
marked this pull request as ready for review
November 2, 2026 15:10
Lithe Review结论: ❓ 审查未完成 已由服务器取消。可以重新评论 |
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.
最新 AutoBuild 已包含 #1581 的 macOS 只读工具链查询,但
PluginManifest.hostCapabilities没有登记对应能力,mise 0.2.1 因此仍在插件市场显示“不支持 / 需要更新 Lithe”。本 PR 单独补齐现有查询能力的准入,避免依赖 #1558 的整批 Maven 迁移。改动
toolDefinitions: 1、toolchainProviders: 1和executableResolution: 2,市场筛选、安装审查与清单加载继续共用同一能力表。.toolchains启用模块,并在组合根登记声明式工厂,避免安装后被emptyPlugin或missingModuleFactory拒绝。有后端的提供方继续使用原 backend 模块。范围
这是安装准入的初步修复。只开放已经实现的 macOS 只读发现与查询;保存固定值、Build/Run/LSP 自动消费所选工具链、Windows 原生查询均未在本 PR 实现。mise 仍需要可用的本机 mise 程序及已启用的工具定义插件,不把允许安装当作完整工具链迁移完成。
验证
ToolchainPluginAdmissionTests、MacToolchainDiscoveryTests、MacPluginBackendSessionsTests、ToolchainSettingsLoaderTests。新增准入用例分别为 4 ms、6 ms;已生成逐项 HTML/JUnit 报告。unsupported,新表下返回available;完整清单及安装审查通过。litheToolchains协商、查询、停止和销毁;当前验证环境没有 mise,真实查询返回miseNotFound,未验证实际安装版本列表或应用内完整工作流。验证进程已清理。git diff --check通过。本地测试入口:
./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh \ --report .artifacts/test-stability/toolchain-admission.json -- \ --filter 'ToolchainPluginAdmissionTests|MacToolchainDiscoveryTests|MacPluginBackendSessionsTests|ToolchainSettingsLoaderTests'契约 README 有更新:合并后须在 lithe-plugin-docs 执行
node scripts/contract.mjs sync --revision <合并后的 preview commit>并提交同步。本 PR 未更改插件后端协议或 SDK。