Repository navigation
feat(marketplace): add workspace plugin recommendation contract and command - #130
Merged
Merged
Conversation
This was referenced Nov 20, 2026
1lck
marked this pull request as ready for review
November 20, 2026 09:04
5 tasks done
xiaoyumuxi
added a commit
that referenced
this pull request
Nov 20, 2026
* fix(toolchain): 外部安装的多入口链接保留布局里的文件名 rustup 把 ~/.cargo/bin/cargo、rust-analyzer 链接到自身,按启动时的名字决定运行哪个工具。 Core 校验外部安装后返回规范路径,把 cargo 解析成 rustup,版本探针运行的是 rustup, cargo 因此永远找不到。 布局文件链接到另一个文件名时,返回规范主目录下的布局路径;链接目标的类型、可执行位和 不越出主目录、不进入工作区的检查不变。同名链接(版本管理器别名等)仍返回规范路径。 顺带把已合入的 #112、#127、#128、#130、#133 从协议更新记录的“待合入”移到时间线。 * docs(plugins): 协议更新记录登记 #135
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.
Closes / Related: 1lck/Lithe-IDEA#2228
Summary
Add workspace-based plugin marketplace recommendations across contract v1,
lithe-plugin-marketplace, andlithe-corewhile preserving strict backward compatibility with<= 0.8.10desktop clients (lithe-plugin-index.jsonremains unchanged).Changes
shared/plugins/contract/v1/)plugin-recommendations.schema.json(schemaVersion: 0) definingrecommendations[]entries withpluginID,markers,extensions, andcoveredBy.fixtures/marketplace/source-urls.jsonsoresolveSourceresponses also includerecommendationsURL.fixtures/marketplace/recommendations.jsonandfixtures/marketplace/recommendations-cases.jsonusing synthetic fixture plugin IDs (io.example.*/dev.lithe.fixture.*).plugins.marketplace.recommendForWorkspacecommand, andplugin.recommendations.*rejection codes inshared/plugins/contract/v1/README.mdandrust/contracts/rust-core-api.md.shared/plugins/reference/protocol-changelog.md.lithe-plugin-marketplace(rust/crates/plugin-marketplace/src/lib.rs)resolve_sourcewithrecommendationsURLderived alongsideindexURL(lithe-plugin-recommendations.json).recommend_for_workspace&recommend_for_workspace_command("plugins.marketplace.recommendForWorkspace"): validates index & companion catalog schemas, matches basenamemarkers(exact on Unix, ASCII case-insensitive on Windows) andextensions(ASCII case-insensitive), filters installed / dismissed /coveredBy-satisfied / unavailable / unsupported plugins, deduplicates across catalogs, sorts marker matches first then alphabetically by name/ID, and isolates malformed catalogs/entries intorejected.lithe-coreprotocol & tests (rust/crates/core/)PluginsCommand::MarketplaceRecommendForWorkspace("plugins.marketplace.recommendForWorkspace") inprotocol/command.rsandruntime/dispatcher/plugins.rs.tests/marketplace_plugins.rs.Verification
cargo fmt --manifest-path rust/Cargo.toml --all --check./scripts/rust-core/verify-rust-core-comments.sh plugin-marketplace corenode shared/plugins/scripts/verify-docs.mjsnode scripts/rust-core/verify-platform-tests.mjsnode scripts/rust-core/affected-crates.mjscargo clippy --manifest-path rust/Cargo.toml -p lithe-plugin-marketplace -p lithe-core --all-targets --all-features -- -D warningsenv -u GIT_EDITOR cargo test --manifest-path rust/Cargo.toml -p lithe-plugin-marketplace -p lithe-core(871 lib unit tests + 35 integration tests passed, 0 failed)