Repository navigation
feat(index): 收录 mise 工具链提供方 0.2.1 预发布插件 - #33
Merged
Merged
Conversation
0.2.1 修复真实 Lithe 读不到答复的问题:Lithe 发出的 toolchains/query 请求 ID 是十进制字符串,后端现在用对应的数字作答。0.2.0 保留。
FxRayHughes
marked this pull request as ready for review
November 2, 2026 08:03
Collaborator
|
你这个能跑起来么,可以给我看看设置的效果么 |
Contributor
Author
|
@xiaoyumuxi 能跑起来,下面是在 Lithe 里实际运行的截图。 运行环境:Lithe 最新 preview( 示例项目:
整个过程没有在 Lithe 里手动添加任何 JDK 路径。 1. 设置 → 运行环境:项目根目录自动识别为 JDK 17.0.2,版本文件是 2. 子目录
|
xiaoyumuxi
approved these changes
Nov 2, 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.






改动类型
插件
io.github.fxrayhughes.misemise-0.2.1-darwin.zip,SHA-256635366955e73f64ef6a821e3af9bee043c8c1ac871e6a44ddc3d43aae4823755mise-0.2.0-darwin.zip,SHA-2562b088c02aec5707b78e3da4de82ad45a8d22e8c8010a8a01afa26947b8561f82darwin-arm64与darwin-x64(universal 二进制)。插件介绍
mise 是常用的多语言版本管理器。装了这个插件后,Lithe 会自动知道:
mise.toml、.tool-versions(以及.java-version、.nvmrc、.python-version、.sdkmanrc等兼容文件),子目录可以有自己的版本。~/.config/mise/config.toml。这些结果出现在 设置 → 构建、执行、部署 → 运行环境 / 环境来源。修改版本文件后 Lithe 会自动重新读取,不需要手动刷新。
工作方式:
bin/mise-provider(Rust)回答toolchains/query。哪个工具用哪个版本、能不能用,仍由 Lithe 按工具定义校验后决定。mise ls、mise bin-paths(默认设MISE_OFFLINE=1),不会安装、下载或mise trust任何东西。mise 路径(留空自动查找~/.local/bin/mise、Homebrew 和 PATH)和离线查询(默认开启)。backend.launch、toolchains.provide;requires:backend: 2、serverProcess: 1、settings: 2、toolchainProviders: 1(逐项复制自包内plugin.json)。说明
lithe-plugin-index.json:按 id 字母序插入,0.2.1在前、0.2.0在后。toolchainProviders宿主能力还没进入稳定版 Lithe(声明在 Lithe-IDEA #1558),所以 Release 标为 pre-release,track-releases不会自动追踪,按docs/publishing.md手工收录。描述里已写明需要 Lithe preview 开发版;稳定版会提示“需要更新 Lithe”,不会装出坏插件。等宿主能力进入稳定版后,插件仓库会发正式版本,之后由 bot 自动追踪。toolchains.decodeReply按数字 ID 匹配答复;0.2.1 用对应的数字作答,修复了界面上“mise 未回答:无法读取答复”(插件 PR:Answer Lithe's string query IDs with numbers (0.2.1) FxRayHughes/lithe-plugin-mise#2)。0.2.0 保留,不改它的downloadURL/sha256。toolchainSources能力最终没有进入 Lithe(之前的 feat(index): 收录 mise 0.1.0(需要 toolchainSources 宿主能力) #32 已关闭)。ced89b3的 raw 文件;标签里的tool让它在 README 总览里归入“工具”。README 总览由sync-readme工作流在合并后重新生成。mise.toml),sub目录显示 JDK 21(.tool-versions),全局默认 25;把mise.toml改成 21 后界面自动更新,改回 17 后恢复。自检
plugin.json的vendor.signatureRequirement为"none",ID 不在dev.lithe.*node scripts/validate-index.mjs --verify-archives(10 个插件通过,mise@0.2.1、mise@0.2.0已下载校验),node --test scripts/store.test.mjs46 个通过plugin.json中声明,并在仓库 README 中说明(包内只有bin/mise-provider,它调用用户电脑上的mise)downloadURL/sha256,没有删除历史版本