本页把插件会碰到的所有版本号放在一起:pluginAPIVersion、清单格式、各项能力、进程协议和文档格式。各系列从 0 开始,已有 1、2 等版本按下表和目标宿主的实际支持选择;不要一律填 0。 规范以 contract/v1/README.md 的 Versioning、Capabilities、Host capabilities 和 Publishing 为准;本页与契约不一致时以契约为准,并请到 Lithe-core-rust 的 Issues 反馈。
Core 列以本仓库 main 上的 Core 源码为准(capabilities.rs 的 SUPPORTED_CAPABILITIES,plugin-manifest/src/lib.rs 的 SUPPORTED_PLUGIN_API_VERSIONS);Lithe 桌面端列以桌面端的声明与说明为准。Core 能校验不等于宿主能运行:宿主未声明的能力不会提供给插件,市场按实际声明筛选版本。
| 版本号 | 写在哪里 | 谁检查 | 不满足时 |
|---|---|---|---|
插件 API 版本 pluginAPIVersion |
plugin.json |
Core | plugin.api.unsupported,field 为 pluginAPIVersion |
能力版本 requires.<能力> |
plugin.json(必填) |
Core 的支持表,再和宿主的 hostCapabilities 取交集 |
plugin.api.unsupported,field 为 requires.<能力>;市场不提供这个插件版本 |
进程协议版本 experimental.lithe* |
不写进清单;进程启动时在 LSP initialize 里协商 |
宿主给出版本列表,后端从中选一个 | 该协议不启用,例如不向这个进程发构建请求 |
| 文档格式版本 | 各文档自己的 schemaVersion 或 version 字段 |
Core | 解析失败 |
能力版本决定能不能安装;协议版本决定进程启动后能说什么。进程协议没有独立的版本,它的版本就是拥有它的能力的版本,宿主给出的列表来自 Core 对该能力的支持表。
以后的变化遵循契约的规则:
- 先在 API-01–44 所属领域复用和兼容扩展。插件、语言服务器、构建工具等特有需求不得提升任何系统 API 版本;公共、非特有的变化也只有在兼容扩展无法安全表达时才可提出升版,见 API PR 提交指南。
- 确需引入新版本时,只涉及拥有公共变化的版本,清单段与所属协议保持一致;其他插件继续选择原来所需的已有版本,不回退或删除已有的
1、2等版本。 - 已发布的能力版本不改变含义,宿主一直支持它。
- 插件只声明自己用到的能力,每个能力取能覆盖它用法的最低版本。没用到新内容就提高版本,只会让旧宿主装不上。
- 把插件改到新的能力版本必须发新的插件版本;市场索引保留上一个旧要求的版本,旧宿主仍有版本可装。
- 支持某个版本的宿主先发布,声明它的插件后发布。
| 版本 | 内容 | Core | Lithe 桌面端 | 详见 |
|---|---|---|---|---|
pluginAPIVersion 0 |
基础字段:schemaVersion、id、displayName、version、vendor、permissions、activationEvents、requires、requiresTools;同时是 litheLogging 的版本。其他取值一律被拒绝 |
✅ | ✅ | 清单与打包、Versioning |
schemaVersion 0 |
plugin.json 的文件格式;其他取值是 plugin.schema.unsupported |
✅ | ✅ | plugin-manifest.schema.json |
每一行是一个能力。requires 必须恰好列出清单用到的能力:漏一个或多列一个都是 plugin.manifest.invalid;每个能力的值是能覆盖插件实际用法的已有最低版本,按下表选择 0、1、2 等取值。启动进程(Process start)和可执行文件解析(Executable resolution)属于基础契约,不是能力;写 requires.serverProcess 会像未知能力一样被拒绝。
| 版本 | 内容 | Core | Lithe 桌面端 | 详见 |
|---|---|---|---|---|
languages 0 |
languages[]:语言 ID、文件扩展名,以及包内 TextMate grammar 与 configuration;宿主从包里读取并在编辑器里应用,不启动进程 |
✅ | ✅ | 语言 |
packageTrust 0 |
vendor.bundledSignatureRequirement:随宿主发布的发布者签名插件副本按来源信任 |
✅ | 未声明 | 包信任、Trust |
languageServers 0 |
languageServers[](启动字段按启动进程),包括workspaceConfiguration、indexingExclusions和插件自有服务器的会话字段 |
✅ | ✅¹ | 语言、Language servers |
languageServers 1 |
在 0 之上加 languageServers[].executesProjectCode:声明 false 的服务器可以在未信任的工作区启动;不写时按 true,只在信任后启动 |
✅ | 配套宿主接入后声明 | 工作区信任、Language servers |
executionProviders 0 |
executionProviders[]:用声明的命令运行和发现测试 |
✅ | 未声明 | 语言、Execution providers |
settings 0 |
settings[]、settingActions[] 与 settingRegions[](设置页上的搜索关键词和插件视图),含放置位置、作用域、生效方式、页面按钮 |
✅ | ✅¹ | 插件设置、Plugin settings |
sourceSettings 0 |
真实配置来源表单、编译器页、私有暂存与显式保存 | ✅ | ✅ | Source-backed settings editors |
sourceSettings 1 |
在 0 之上加:模块列表布局 sidebar(来源可用 parent 嵌套)、字段 section(标签页或小标题)、有序类型化条目列表 entryList(添加菜单、文件/目录选择器、可选项、按条目的属性列) |
✅ | ✅ | Entry lists |
ui 0 |
ui:文本、包内网页和插件视图的工具窗口、设置区域里的插件视图、命令,以及不打开工具窗口的后端命令;视图函数的结果由 Core 命令 plugins.ui.applyResult 校验,形状见 plugin-ui.schema.json |
✅ | ✅¹ | 界面 |
buildSystems 0 |
不带 provider 的 buildSystems[]:检测、选项、项目模型、任务、运行入口、测试、诊断、依赖、同步和声明式项目准备 |
✅ | ✅¹ | 声明式构建系统 |
buildSystems 1 |
新增 命令式测试发现,复用声明的构建工具和测试选择器 | ✅ | 待宿主声明 | 声明式构建系统 |
buildSystems 2 |
构建提供者的应用运行声明可使用 debug.configurationType,包括按源文件发现的入口 |
✅ | 待宿主接入 | 构建提供者 |
buildProviders 0 |
buildSystems[].provider:构建提供者,可以是自有进程或共享语言服务器;说 litheBuild,包含任务执行、测试执行与发现、运行准备、原生调试准备、原生配置、内联测试报告、语义测试选择器、类型化运行选项和注册表连接调试 |
✅ | ✅¹ | 构建提供者 |
buildProviders 1 |
在 0 之上加:运行声明 entrypoints: true(入口运行,不需要目标),提供者用 lithe/build/runEntrypoints 回答一个源文件里可运行的入口,宿主把它保存为运行配置并按入口启动 |
✅ | ✅ | Run entrypoints |
buildModelInputs 0 |
buildSystems[].modelSharing 与 modelInputs:已启用工作区插件之间共享的只读模型输入(可选) |
✅ | 未声明 | 构建提供者 |
runConfigurationTypes 0 |
buildSystems[].runConfigurationTypes:插件声明的运行配置类型(如 Go Build、Go Test),宿主按声明的字段画编辑器,Core 用 build.runConfigurationPlan 把保存的配置展开成命令行;buildSystems[].run[] 也可通过 configurationType 与 values 把模型发现的目标物化为同一声明类型的生成配置(共用分组、图标、表单与启动计划);所有运行配置共用“允许多个实例”开关 |
✅ | ✅¹ | Run configuration types |
beforeLaunchTasks 0 |
buildSystems[].beforeLaunchTasks:插件声明的启动前任务(如“运行 Go 命令”),列在运行配置“启动前”的“添加新任务”菜单里;宿主按声明的字段画任务表单,Core 用 runConfig.checkBeforeLaunchTask 校验值、build.beforeLaunchTaskPlan 在拥有这个步骤列表的配置的工作目录里展开命令行 |
✅ | ✅ | Before-launch tasks |
vcsProviders 0 |
vcsProviders[];说 litheVcs |
✅ | ✅¹ | 版本控制提供者 |
debugAdapters 0 |
debugAdapters[]:独立适配器、语言服务器内的适配器、远程附加、参数和环境变量、features 与 defaults |
✅ | ✅ | 调试适配器 |
managedRuntimes 0 |
固定归档、插件后端资格检查、跨版本缓存与安装前准备;权限 runtimes.install |
✅ | ✅ | Managed runtimes |
managedRuntimes 1 |
在 0 基础上允许每个平台归档声明最多 8 个 HTTPS mirrors 镜像地址,不改变 cacheKey |
✅ | 配套宿主接入后声明 | Managed runtimes |
commandInstallers 0 |
commandInstallers[]:用插件已依赖的工具安装 systemCommand 启动缺的裸命令,装到 Lithe 管理的目录(managed)或工具默认位置(toolDefault),用户确认后才运行 |
✅ | ✅ | 工具链 |
commandInstallers 1 |
在 0 基础上新增下载安装:download 固定上游版本和每个平台的 HTTPS 归档(SHA-256、zip/tar.gz、可选镜像和 stripPrefix),宿主下载、校验、解压到 Lithe 管理的目录,用户确认版本和地址后才下载;没有当前平台归档的安装不提供 |
✅ | 配套宿主接入后声明 | 工具链 |
outputLinkMatchers 0 |
outputLinkMatchers[]:插件声明的匹配规则让 Run 和测试控制台的输出出现链接;Core 负责匹配,resolve 函数在点击时才调用 |
✅ | ✅ | 语言 |
projectGenerators 0 |
projectGenerators[]:新建项目窗口里的条目,含 tool 字段 |
✅ | ✅ | 项目生成器 |
backend 0 |
backend:插件自己的长驻进程,带或不带页面启动,按权限提供宿主服务,说 litheFunctions |
✅ | ✅¹ | 插件后端与插件函数 |
toolDefinitions 0 |
toolDefinitions[]:工具身份、布局、发现和四层候选 |
✅ | ✅¹ | 工具链 |
toolDefinitions 1 |
在 0 之上加:工具定义的 category(设置页「工具链」里的分组)和 audience(plugin 表示插件自用的运行时,单独放在最后一组),只影响显示位置 |
✅ | 未声明 | Settings list |
toolchainProviders 0 |
toolchainProviders[]:提供者声明和按权限校验应答;说 litheToolchains |
✅ | ✅ | 工具链 |
toolchainProviders 1 |
权限和 authority 错误改为独立号码 -32082、-32083,稳定字符串码不变;版本 0 保留旧码 |
✅ | 未声明 | 工具链 |
pluginFunctions 0 |
清单顶层 pluginFunctions:导出的函数(exports)和要调用的其他插件函数(calls);不授予任何清单权限,调用经 Core 中转 |
✅ | ✅¹ | 插件后端与插件函数 |
keymapImportProviders 0 |
keymapImportProviders[]:独立的快捷键导入提供者;说 litheKeymapImport |
✅ | 未声明 | 快捷键导入 |
¹ 桌面端声明了这个能力,但其中有些部分还没有界面:对应的部分没有按钮、菜单或窗口,插件照常安装,也不会因此失败。尚未呈现的部分以桌面端源码里 Declared() 上方的注释为准(pluginhost.go):
- 插件的
foldingRange提供者未路由;语言服务器的诊断、补全、悬停、签名帮助、代码操作、内嵌提示、定义、引用、重命名、格式化、文档符号、文档链接和语义高亮均已呈现,{kind: "tool"}启动按工作区工具链解析。 systemCommand启动的命令查找只读PATH和插件已安装的受管命令目录;依赖项目工具链或用户覆盖的启动应使用tool启动。- 构建提供者的模型输入、原生配置、内联测试报告和运行期调试;构建系统的实例选项和任务准备。
- 插件声明的运行配置类型只能运行,不能调试。
- 不属于任何工具窗口的
ui命令。 - VCS 提供者的逐行追溯(annotation)、文件历史、文件操作、元数据监听、认证、历史提交差异、项目树与编辑器行号栏状态,以及
lithe/vcs/execution控制台输出。 - 后端宿主服务:包含 API-06–08 Core 与桌面改动的构建在窗口附着后提供本地磁盘
workspace/readDirectory、stat、readFile、watch、findFiles、findText;远程工作区明确拒绝,旧构建不提供。preview/openHTML尚未注册,请求这些权限的插件被拒绝。workspace/getHostPaths也尚未注册,supports返回 false;它和listContexts共用workspace.metadata,所以声明该权限的插件不会因此被拒绝,见远程工作区。运行期以lithe/host/getCapabilities的返回为准,见 API 总表。
这些协议在进程启动时协商,不写进清单。宿主在 initialize 的 capabilities.experimental.<协议> 里给出 { "versions": [0] },后端回答 { "version": 0 }。回答了宿主没给出的版本,或格式不对,该协议整个不启用。每个协议的版本就是拥有它的能力的版本。
| 版本 | 内容 | Core | Lithe 桌面端 | 详见 |
|---|---|---|---|---|
litheFunctions 0(backend) |
插件函数:注册、撤回、调用、结果、进度、取消;宿主服务 lithe/host/*(凭据、工作区上下文与能力发现、宿主通知、公共文档/文件/窗口方法、插件自有原生终端、独立编辑器动作、编辑器语言功能 Provider、运行与调试会话、语言服务器方法、内容提供者);跨插件调用 functions/providers、functions/invoke。提供给插件拥有的会话 |
✅ | ✅¹ | Plugin functions |
litheBuild 0(buildProviders) |
lithe/build/*:模型与依赖、任务执行、测试执行与发现、运行准备、原生调试准备、只读模型输入、原生配置、内联测试报告、语义测试选择器、类型化运行选项、注册表连接调试。提供给构建提供者 |
✅ | ✅¹ | Build providers |
litheBuild 1(buildProviders) |
在 0 之上加 lithe/build/runEntrypoints:按源文件找运行入口 |
✅ | ✅ | Run entrypoints |
litheVcs 0(vcsProviders) |
VCS 提供者的能力和请求(lithe/vcs/*)。提供给 VCS 提供者 |
✅ | ✅¹ | VCS providers |
litheToolchains 0、1(toolchainProviders) |
toolchains/query;后端从声明的提供者中选出子集。提供给声明了工具链提供者的插件会话 |
✅ | 版本 0 |
Provider backend negotiation |
litheKeymapImport 0(keymapImportProviders) |
后端从声明的提供者中选出要启用的子集;lithe/keymap/import。提供给声明了 keymapImportProviders 的插件会话 |
✅ | 未声明 | Shortcut import |
litheLogging 0(pluginAPIVersion) |
结构化诊断通知 lithe/log;官方 SDK 要求宿主提供它,否则拒绝初始化。提供给每个插件拥有的进程 |
✅ | ✅ | Structured diagnostics |
litheFunctions的宿主服务不靠版本号区分:后端调用lithe/host/getCapabilities得到宿主此刻注册了哪些方法,并受权限约束。新增宿主方法、通知或可选字段不需要新版本,见 Extending the host services。- 构建提供者(
litheBuild)里宿主不呈现的部分按上面的脚注¹处理:后端可以实现,宿主不会调用。 - 插件私有函数不需要清单字段,增删它们不改变任何版本。
| 版本 | 内容 | Core | Lithe 桌面端 | 详见 |
|---|---|---|---|---|
市场索引 schemaVersion 0 |
市场来源的索引文件 | ✅ | ✅ | plugin-index.schema.json、插件市场 |
构建模型 litheBuildModel、依赖树 litheDependencies、测试结果 litheTestResults、测试发现 litheTestDiscovery 的 version 0 |
规范构建文档 | ✅ | ✅¹ | Model and outputs、Test discovery |
原生构建配置 litheBuildConfiguration、litheConfigurationEdit 的 version 0 |
基于真实来源的原生配置文档 | ✅ | 尚未呈现¹ | Optional native configuration |
modelInputs 快照的 version 0 |
共享给其他工作区插件的只读模型输入 | ✅ | 未声明(buildModelInputs) |
Optional read-only model inputs |
plugins.editorActions.decode 请求的 version 0 |
Core 命令的请求版本;必填,Core 只接受 0 |
✅ | 尚未呈现¹ | Independent editor actions |
插件网页桥 window.lithe.version 0 |
包内网页可见的桥版本(bridgeVersion) |
✅ | ✅ | Web content |
启动计划里的 backend.version |
取清单的 requires.backend,即 0 |
✅ | ✅ | Plugin backend |
导出或调用的插件函数的 version(1 到 1000)不是契约版本:它归导出该函数的插件所有。
Node.js SDK 0.5.0、Java SDK 0.5.0、Rust SDK 0.4.0 和还没发布的 Go SDK 说的是版本 0 的协议;main 上的 Node.js 和 Java SDK 源码另外支持 litheBuild 1(lithe/build/runEntrypoints),main 上的 Rust SDK 源码新增了 litheBuild 0 和 1,都回答宿主提供的最新版本,随下一次 SDK 发布提供;各 SDK 封装哪些协议见契约的 Official backend SDK 和各自的 Node.js、Java、Rust、Go README。Node.js、Rust 的发布入口在 Lithe-core-rust 的 Releases;Java SDK 按获取说明固定 Core commit 引入源码;Go SDK 不放 Releases,用 go get 按模块标签 shared/plugins/sdk/go/v<版本> 获取。新插件优先用 Rust 或 Go SDK,理由见插件开发总览。
This page puts every version number a plugin meets in one place: pluginAPIVersion, the manifest format, the capabilities, the process protocols, and the document formats. Each series starts at 0; choose existing 1, 2, or later entries from the table and the target host's actual support rather than forcing every value to 0. The normative text is Versioning, Capabilities, Host capabilities, and Publishing in contract/v1/README.md. Where this page disagrees with the contract, the contract wins; please report it in the Lithe-core-rust issues.
The Core column follows the Core source on this repository's main (SUPPORTED_CAPABILITIES in capabilities.rs, SUPPORTED_PLUGIN_API_VERSIONS in plugin-manifest/src/lib.rs); the Lithe desktop column follows the desktop client's declarations and notes. Validating a capability is not running it: the marketplace offers only versions whose requirements the host declares.
| Version | Where it is written | Who checks it | When it is not met |
|---|---|---|---|
Plugin API version pluginAPIVersion |
plugin.json |
Core | plugin.api.unsupported with field: "pluginAPIVersion" |
Capability version requires.<capability> |
plugin.json (required) |
Core's support table, intersected with the host's hostCapabilities |
plugin.api.unsupported with field: "requires.<capability>"; the marketplace does not offer that plugin version |
Process protocol version experimental.lithe* |
Not in the manifest; negotiated in LSP initialize when the process starts |
The host offers a list, the backend picks one | The protocol is not enabled, for example no build request goes to that process |
| Document format version | The document's own schemaVersion or version field |
Core | Decoding fails |
A capability version decides whether a plugin installs; a protocol version decides what a running process can say. A process protocol has no version of its own: its version is that of the capability that owns it, and the host's offer comes from Core's support table for that capability.
Future changes follow the contract's rules:
- Reuse and compatibly extend the appropriate API-01–44 domain first. A requirement specific to a plugin, language server, or build tool must not raise any system API version. Even a public, non-specific change may propose a new version only when compatible extensions cannot express it safely; see the API PR guide (Chinese).
- A necessary new version affects only the owner of that public change, with its manifest section and protocol kept together. Other plugins retain the existing versions they need; existing
1,2, or later versions are not reset or removed. - A released capability version never changes meaning, and hosts keep supporting it.
- A plugin declares only the capabilities it uses, each at the lowest version that covers its use. Raising one without using what it adds only cuts off older hosts.
- Moving a plugin to a new capability version needs a new plugin version; the index keeps the last version with the previous requirements so older hosts still have one to install.
- A host release that supports a version ships before any plugin that declares it.
| Version | Content | Core | Lithe desktop | See |
|---|---|---|---|---|
pluginAPIVersion 0 |
The base fields: schemaVersion, id, displayName, version, vendor, permissions, activationEvents, requires, requiresTools; also the version of litheLogging. Any other value is refused |
✅ | ✅ | Manifest and packaging, Versioning |
schemaVersion 0 |
The file format of plugin.json; any other value is plugin.schema.unsupported |
✅ | ✅ | plugin-manifest.schema.json |
Each row is one capability. requires lists exactly the capabilities a manifest uses: leaving one out or listing an unused one is plugin.manifest.invalid; each value is the lowest existing version that covers the plugin's actual use, selected from the 0, 1, 2, or later entries below. Process start and Executable resolution belong to the base contract and are not capabilities; requires.serverProcess is refused like any unknown capability.
| Version | Content | Core | Lithe desktop | See |
|---|---|---|---|---|
languages 0 |
languages[]: language IDs, file extensions, and packaged TextMate grammar and configuration; the host reads them from the package and applies them in the editor without starting a process |
✅ | ✅ | Languages |
packageTrust 0 |
vendor.bundledSignatureRequirement: origin-scoped trust for a host-sealed bundled copy of a publisher-signed plugin |
✅ | Not declared | Package trust, Trust |
languageServers 0 |
languageServers[] (launch fields as in Process start), including workspaceConfiguration, indexingExclusions and the session fields for a plugin's own server |
✅ | ✅¹ | Languages, Language servers |
languageServers 1 |
Extends 0 with languageServers[].executesProjectCode: a server that declares false starts in an untrusted workspace; absent means true, so it starts only after trust |
✅ | Declared with companion host integration | Workspace trust, Language servers |
executionProviders 0 |
executionProviders[]: run and discover tests through the declared commands |
✅ | Not declared | Languages, Execution providers |
settings 0 |
settings[], settingActions[], and settingRegions[] (search keywords and plugin views on settings pages), with placement, scope, effect, and page buttons |
✅ | ✅¹ | Plugin settings, Plugin settings |
sourceSettings 0 |
Native source forms, compiler pages, private staging and explicit Save | ✅ | ✅ | Source-backed settings editors |
sourceSettings 1 |
Adds to 0: the sidebar module-list layout with sources nested by parent, field sections shown as tabs or subheadings, and ordered typed entryLists with an add menu, file and folder pickers, offered choices and per-entry attribute columns |
✅ | ✅ | Entry lists |
ui 0 |
ui: text, web, and plugin view tool windows, plugin views in settings regions, commands, and backend-only commands without a tool window; the Core command plugins.ui.applyResult checks view function results, shaped as in plugin-ui.schema.json |
✅ | ✅¹ | UI |
buildSystems 0 |
buildSystems[] without provider: detection, options, project model, tasks, run entries, tests, diagnostics, dependencies, sync, and declarative preparation |
✅ | ✅¹ | Declarative build systems |
buildSystems 1 |
Adds command test discovery using the declared build tool and the existing test selectors | ✅ | Pending host declaration | Declarative build systems |
buildSystems 2 |
Allows build provider application runs to declare debug.configurationType, including source entrypoints |
✅ | Pending host integration | Build providers |
buildProviders 0 |
buildSystems[].provider: build providers, in their own process or a shared language server; they speak litheBuild, which covers task execution, test execution and discovery, run preparation, native debug preparation, native configuration, inline test reports, semantic test selectors, typed run options, and registry connection debugging |
✅ | ✅¹ | Build providers |
buildProviders 1 |
Adds to 0: run declarations with entrypoints: true (entrypoint runs, without a target); the provider answers lithe/build/runEntrypoints with the runnable entrypoints of one source file, which the host saves as run configurations and starts |
✅ | ✅ | Run entrypoints |
buildModelInputs 0 |
buildSystems[].modelSharing and modelInputs: optional read-only model inputs shared between enabled workspace plugins |
✅ | Not declared | Build providers |
runConfigurationTypes 0 |
buildSystems[].runConfigurationTypes: run configuration types a plugin declares (such as Go Build and Go Test); the host draws the editor from the declared fields and Core expands a saved configuration into a command line with build.runConfigurationPlan; buildSystems[].run[] may also specify configurationType and values so discovered targets materialize generated configurations of a declared type; every run configuration shares the Allow multiple instances switch |
✅ | ✅¹ | Run configuration types |
beforeLaunchTasks 0 |
buildSystems[].beforeLaunchTasks: before-launch tasks a plugin declares (such as Run Go Command), listed in the Add New Task menu of a run configuration's Before Launch list; the host draws the task's form from the declared fields, Core checks the values with runConfig.checkBeforeLaunchTask and expands the command line with build.beforeLaunchTaskPlan in the working directory of the configuration whose list names the step |
✅ | ✅ | Before-launch tasks |
vcsProviders 0 |
vcsProviders[]; they speak litheVcs |
✅ | ✅¹ | VCS providers |
debugAdapters 0 |
debugAdapters[]: standalone adapters, adapters inside a language server, remote attach, arguments and environment, features and defaults |
✅ | ✅ | Debug adapters |
managedRuntimes 0 |
Pinned archives, plugin-owned qualification, version-independent cache and install preflight; permission runtimes.install |
✅ | ✅ | Managed runtimes |
managedRuntimes 1 |
Extends 0 with up to 8 optional HTTPS mirrors URLs per platform artifact without changing cacheKey |
✅ | Declared with companion host integration | Managed runtimes |
commandInstallers 0 |
commandInstallers[]: install a bare command a systemCommand launch lacks with a tool the plugin already requires, into a directory Lithe manages (managed) or the tool's default location (toolDefault), only after the user confirms |
✅ | ✅ | Toolchains |
commandInstallers 1 |
Extends 0 with download installers: download pins an upstream version and an HTTPS archive per platform (SHA-256, zip/tar.gz, optional mirrors and stripPrefix); the host downloads, checks and extracts it into a directory Lithe manages, only after the user confirms the version and URL; an installer without an archive for the platform is not offered |
✅ | Declared with companion host integration | Toolchains |
outputLinkMatchers 0 |
outputLinkMatchers[]: plugin-declared patterns that turn Run and Test console output into links; Core does the matching, and the resolve function is called only on click |
✅ | ✅ | Languages |
projectGenerators 0 |
projectGenerators[]: entries of the New Project window, including tool fields |
✅ | ✅ | Project generators |
backend 0 |
backend: the plugin's own long-lived process, started with or without a page, serving the host services its permissions grant and speaking litheFunctions |
✅ | ✅¹ | Plugin backend and plugin functions |
toolDefinitions 0 |
toolDefinitions[]: tool identities, layouts, discovery, and four-layer candidates |
✅ | ✅¹ | Toolchains |
toolDefinitions 1 |
Adds to 0: a definition's category (its group in the settings page's Toolchains list) and audience (plugin for a runtime a plugin runs for itself, shown in its own last group); display placement only |
✅ | Not declared | Settings list |
toolchainProviders 0 |
toolchainProviders[]: provider declarations and permission-bound answer validation; they speak litheToolchains |
✅ | ✅ | Toolchains |
toolchainProviders 1 |
Distinct permission and authority error numbers -32082 and -32083, with unchanged stable string codes; version 0 retains the legacy numbers |
✅ | Not declared | Toolchains |
pluginFunctions 0 |
The manifest's top-level pluginFunctions: the functions the plugin exports (exports) and the functions of other plugins it calls (calls); grants no manifest permission, and Core relays the calls |
✅ | ✅¹ | Plugin backend and plugin functions |
keymapImportProviders 0 |
keymapImportProviders[]: independent shortcut import providers; they speak litheKeymapImport |
✅ | Not declared | Shortcut import |
¹ The desktop client declares this capability, but some of its parts have no surface yet: the missing part has no button, menu, or window, and the plugin installs and does not fail because of it. The notes above Declared() in the desktop source are authoritative for what is not presented (pluginhost.go):
- For language servers: a plugin's
foldingRangeprovider is not routed; diagnostics, completion, hover, signature help, code actions, inlay hints, definition, references, rename, formatting, document symbols, document links, and semantic tokens are presented, and{kind: "tool"}launches resolve through the workspace toolchain. - Command lookup for
systemCommandlaunches readsPATHand the plugin's installed command directories only; a launch that depends on a project toolchain or a user override must use atoollaunch. - For build providers: model inputs, native configuration, inline test reports, and runtime debugging; for build systems: instance options and task preparations.
- Run configuration types a plugin declares run but cannot be debugged.
uicommands that belong to no tool window.- For VCS providers: annotation, file history, file operations, metadata watching, authentication, history entry diffs, status in the project tree and the editor gutter, and
lithe/vcs/executionconsole output. - Backend host services: builds containing both API-06–08 Core and desktop changes provide local disk
workspace/readDirectory,stat,readFile,watch,findFiles, andfindTextonce a window attaches. Remote workspaces are refused and older builds do not provide these methods.preview/openHTMLis not registered, so a plugin that asks for one of those permissions is refused.workspace/getHostPathsis not registered either, sosupportsis false for it; it sharesworkspace.metadatawithlistContexts, so a plugin that declares that permission is not refused for it, see remote workspaces. At runtime, the reply oflithe/host/getCapabilitiesis authoritative; see the API catalog.
These protocols are negotiated when a process starts and never appear in the manifest. The host offers { "versions": [0] } under capabilities.experimental.<protocol> in initialize; the backend answers { "version": 0 }. An answer with a version the host did not offer, or a malformed answer, leaves the whole protocol disabled. A protocol's version is the version of the capability that owns it.
| Version | Content | Core | Lithe desktop | See |
|---|---|---|---|---|
litheFunctions 0 (backend) |
Plugin functions: register, withdraw, invoke, results, progress, cancellation; the lithe/host/* host services (credentials, workspace contexts and capability discovery, host notifications, public document, file, and window methods, plugin-owned native terminals, independent editor actions, editor language-feature providers, run and debug sessions, language server methods, content providers); cross-plugin calls functions/providers and functions/invoke. Offered to plugin-owned sessions |
✅ | ✅¹ | Plugin functions |
litheBuild 0 (buildProviders) |
lithe/build/*: model and dependencies, task execution, test execution and discovery, run preparation, native debug preparation, read-only model inputs, native configuration, inline test reports, semantic test selectors, typed run options, registry connection debugging. Offered to build providers |
✅ | ✅¹ | Build providers |
litheBuild 1 (buildProviders) |
Adds lithe/build/runEntrypoints to 0: the run entrypoints of a source file |
✅ | ✅ | Run entrypoints |
litheVcs 0 (vcsProviders) |
VCS provider capabilities and requests (lithe/vcs/*). Offered to VCS providers |
✅ | ✅¹ | VCS providers |
litheToolchains 0, 1 (toolchainProviders) |
toolchains/query; the backend selects a subset of its declared providers. Offered to plugin sessions that declare toolchain providers |
✅ | Version 0 |
Provider backend negotiation |
litheKeymapImport 0 (keymapImportProviders) |
The backend selects a subset of its declared providers; lithe/keymap/import. Offered to plugin sessions with declared keymapImportProviders |
✅ | Not declared | Shortcut import |
litheLogging 0 (pluginAPIVersion) |
Structured diagnostic notification lithe/log; the official SDKs require the host to offer it and refuse to initialize otherwise. Offered to every plugin-owned process |
✅ | ✅ | Structured diagnostics |
- The host services of
litheFunctionsare not told apart by a version: a backend callslithe/host/getCapabilitiesto learn which methods the host has registered right now, bound by its permissions. A new host method, notification, or optional field needs no new version; see Extending the host services. - Parts of
litheBuildthat the host does not present are handled as in footnote¹ above: a backend may implement them, and the host never calls them. - A plugin-private function needs no manifest field, so adding or removing one changes no version.
| Version | Content | Core | Lithe desktop | See |
|---|---|---|---|---|
Marketplace index schemaVersion 0 |
The index file of a marketplace source | ✅ | ✅ | plugin-index.schema.json, Marketplace |
version 0 of the build model litheBuildModel, dependency tree litheDependencies, test results litheTestResults, and test discovery litheTestDiscovery |
Canonical build documents | ✅ | ✅¹ | Model and outputs, Test discovery |
version 0 of the native build configuration litheBuildConfiguration and litheConfigurationEdit |
Source-backed native configuration documents | ✅ | Not presented yet¹ | Optional native configuration |
version 0 of the modelInputs snapshot |
Read-only model inputs shared with other workspace plugins | ✅ | Not declared (buildModelInputs) |
Optional read-only model inputs |
version 0 of the plugins.editorActions.decode request |
The request version of a Core command; required, and Core accepts only 0 |
✅ | Not presented yet¹ | Independent editor actions |
Plugin web bridge window.lithe.version 0 |
The bridge version package web content sees (bridgeVersion) |
✅ | ✅ | Web content |
backend.version in a launch plan |
Taken from the manifest's requires.backend, that is 0 |
✅ | ✅ | Plugin backend |
The version of an exported or called plugin function (1 to 1000) is not a contract version: the plugin that exports the function owns it.
Node.js SDK 0.5.0, Java SDK 0.5.0, Rust SDK 0.4.0, and the unreleased Go SDK speak the version 0 protocols; the Node.js and Java SDK sources on main also speak litheBuild 1 (lithe/build/runEntrypoints), and the Rust SDK source on main adds litheBuild 0 and 1; each answers the newest version the host offers, which the next SDK release ships; which protocols each SDK wraps is in the contract's Official backend SDK and in the Node.js, Java, Rust, and Go READMEs. Node.js and Rust use the Lithe-core-rust Releases page; Java uses sources from a pinned Core commit; the Go SDK is not on Releases and is fetched with go get by module tag shared/plugins/sdk/go/v<version>. New plugins should prefer the Rust or Go SDK; see the plugin overview for why.