Repository navigation
fix(toolchain): aggregate identical short-ID definitions and ignore empty system scan roots - #228
Merged
Conversation
This was referenced Nov 29, 2026
xiaoyumuxi
marked this pull request as ready for review
November 29, 2026 12:05
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 3 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
This was referenced Nov 29, 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.
摘要
关联桌面端 PR:1lck/Lithe-IDEA#2526(Draft)
关联 AI 插件 PR:Lithe-IDEA/lithe-ai-plugins#8(Draft)
相同工具短 ID 自动聚合(
toolchains.registry/toolchains.discoveryPlan)kind、category、displayName、scope、executableLayouts、discovery、probe、priority)完全一致时,自动聚合成一条共享工具定义,并以排序后的首个插件 ID 作为pluginID,多插件声明时额外返回排序后的pluginIDs;conflicts拒绝并跳过自动解析,不提升toolDefinitions能力版本。空的已观测系统扫描目录不误报
unsafePathhost:system自动发现或无 provider 的外部目录校验检查到某个已存在的根目录(如存在但无目标工具的~/.local)时,若当前平台适用的全部executableLayouts均明确观测为missing,则返回notFound而非unsafePath;host:system自动扫描结果遇到notFound时直接跳过,避免无目标工具的候选目录覆盖正常检测结果或误报“路径不安全或超出允许目录”;checked_installation)、未观测的目录、路径越界/符号链接逃逸以及存在但非可执行的文件仍保持unsafePath/UNSAFE。契约与文档
shared/plugins/contract/v1/toolchains/README.md说明共享短 ID 的聚合规则与pluginIDs字段。shared/plugins/reference/protocol-changelog.md。验证
cargo fmt --manifest-path rust/Cargo.toml --checkcargo test --manifest-path rust/Cargo.toml -p lithe-toolchain -p lithe-core toolchain(112 passed, 0 failed)cargo test --manifest-path rust/Cargo.toml -p lithe-toolchain -p lithe-plugin-manifestcargo clippy --manifest-path rust/Cargo.toml -p lithe-toolchain -p lithe-core --all-targets -- -D warningsscripts/rust-core/verify-rust-core-comments.sh toolchainnode scripts/rust-core/verify-platform-tests.mjsnode shared/plugins/scripts/verify-docs.mjs