diff --git a/rust/contracts/application-boundary.md b/rust/contracts/application-boundary.md index ba07bf9a..1add9d4f 100644 --- a/rust/contracts/application-boundary.md +++ b/rust/contracts/application-boundary.md @@ -3,7 +3,7 @@ The application boundary describes product behavior that the desktop clients consume through the C ABI. It does not describe widgets, threads, processes, or operating-system APIs. It defines the cross-platform contract; current -product scope and setup are documented in [`README.md`](https://github.com/1lck/Lithe-IDEA/blob/preview/README.md); the +product scope and setup are documented in [`README.md`](https://github.com/1lck/Lithe-IDEA/blob/main/README.md); the verification scripts are the executable source of boundary checks. ## Data Rules @@ -35,14 +35,14 @@ and [the inert fixture](../fixtures/plugins/settings-sources.json). ## Shared built-in translations -[Shared i18n](https://github.com/1lck/Lithe-IDEA/blob/preview/shared/i18n/README.md) owns migrated semantic keys, typed named parameters, +[Shared i18n](https://github.com/1lck/Lithe-IDEA/blob/main/shared/i18n/README.md) owns migrated semantic keys, typed named parameters, locale registration, platform scopes and documented platform wording overrides. Build-time generation supplies native macOS string tables and the Windows catalog; no runtime JSON loading, package download or write to installed resources occurs. The locale registry preserves each platform's persisted identifiers and default language. Explicit fallback chains resolve shared entries during generation; all existing platform catalogs and presentation-owned bilingual copy use this source. Translation coverage is not a -capability claim. [Format fixtures](https://github.com/1lck/Lithe-IDEA/blob/preview/shared/i18n/fixtures/format-v1.json) bind generation +capability claim. [Format fixtures](https://github.com/1lck/Lithe-IDEA/blob/main/shared/i18n/fixtures/format-v1.json) bind generation to native positional formatting, literal percent signs and unmodified argument data. ## Feature Contracts @@ -277,7 +277,7 @@ server advertises them during initialize or dynamic registration. The shared core owns JSON-RPC state, stdio, process lifecycle, and normalized results; platform adapters own executable and provider-resource discovery. Detailed invariants are documented in -[`.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md`](https://github.com/1lck/Lithe-IDEA/blob/preview/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md). +[`.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md`](https://github.com/1lck/Lithe-IDEA/blob/main/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md). Session lifecycle is a single discriminated state, never a set of booleans. Capability negotiation is separately `unknown` or `known`; a known capability diff --git a/rust/contracts/rust-core-api.md b/rust/contracts/rust-core-api.md index e7d270ba..8983559a 100644 --- a/rust/contracts/rust-core-api.md +++ b/rust/contracts/rust-core-api.md @@ -1215,7 +1215,7 @@ total attempts. The AskPass C ABI is called only in the child app's early helper mode. Credential answers are never copied into events or settings. See `rust/fixtures/git/{fetch-plan,execution-events,execution-policy}-v1.json` -and [Git execution and project console](https://github.com/1lck/Lithe-IDEA/blob/preview/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md). +and [Git execution and project console](https://github.com/1lck/Lithe-IDEA/blob/main/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md). The additive `lithe_core_execute_json_with_events(request, callback, context)` C ABI and Rust `execute_json_with_events` API deliver sanitized Git diagnostics @@ -5253,7 +5253,7 @@ and the directories are absolute host paths used only as substitution text. | `build.editIgnoredPaths` | `{ document, local, patterns: [pattern] \| null }`, without a manifest; `patterns` is required | `edit: { local, ignoredPaths: { patterns, source } }`: the local document with its `ignoredPaths` replaced, or removed for `null` so the team list or the default applies again; `[]` is kept as an explicit choice to ignore nothing. A pattern uses `.gitignore` syntax relative to the workspace root and names directories only: as in one ignore file the last matching pattern decides, `!pattern` keeps a directory even if Git ignores it (the shared scan policy's caches and build outputs stay pruned), a pattern with a `/` before its end is anchored at the root and any other matches a directory name at any depth. At most 256 patterns of at most 1024 bytes; an empty or whitespace-padded entry, a comment, a lone `!`, a control character or an unparsable glob rejects with `plugin.build.invalidIgnoredPath` at `ignoredPaths[]`, the first entry not accepted (`ignoredPaths` when they cannot be compiled together). The team document is only read; an unusable list stored in either document makes it `plugin.build.invalidOptionsDocument`. Platforms publish the local document as for `build.editStoredOption`. | | `build.invocationPlan` | `{ root, platform: "macos" \| "linux" \| "windows" }` | `invocation`: `{ buildSystemID, root, executables, environmentInputs, runtimeDependencies, version, minimumVersion }` with project-file paths joined to `root`; every runtime dependency with a known probe, host-managed ones included, carries `version: { arguments }` | | `build.checkToolVersion` | `{ runtime?, output }` | `version`: `{ satisfied, version? }`; `runtime` checks that runtime dependency instead of the tool | -| `build.resolveModelInputs` | `{revision, sources: [{manifest, instances: [{buildSystemID, root, state, model?, options?}]}]}` from installed enabled current-workspace sources | `modelInputs`: version 1 public snapshot with exact optional producer slots, state, normalized projects/targets/content roots, configuration fingerprint and explicitly shared options; no tasks/run/settings/private functions; see the [plugin contract](https://github.com/1lck/Lithe-IDEA/blob/preview/shared/plugins/contract/v1/README.md#optional-read-only-model-inputs) | +| `build.resolveModelInputs` | `{revision, sources: [{manifest, instances: [{buildSystemID, root, state, model?, options?}]}]}` from installed enabled current-workspace sources | `modelInputs`: version 1 public snapshot with exact optional producer slots, state, normalized projects/targets/content roots, configuration fingerprint and explicitly shared options; no tasks/run/settings/private functions; see the [plugin contract](../../shared/plugins/contract/v1/README.md#optional-read-only-model-inputs) | | `build.resolveOptions` | `{ options?, inheritedOptions?, selectedChoices?, modelValues?, modelDefaults?, modelExcludePrefixes?, modelSelection? }` | `options`: `{ options: [{ id, displayName, kind, scope?, value, selectedChoices?, source, choices: [{ value, title?, fromModel?, custom?, defaultActive? }], allowCustom }], dropped, fingerprint }` | | `build.configurationPlan` | plan fields and optional host-selected `tool` | `plan.provider` for `lithe/build/configuration`; no mutation, project or output-file parameters | | `build.decodeConfiguration` | `{ result }` | `configuration`: bounded `litheBuildConfiguration` v1 native sources/fields; see the plugin contract | diff --git a/rust/contracts/vcs-provider-v1.md b/rust/contracts/vcs-provider-v1.md index aad2a099..619a0df7 100644 --- a/rust/contracts/vcs-provider-v1.md +++ b/rust/contracts/vcs-provider-v1.md @@ -4,7 +4,7 @@ > Core accepts the `vcsProviders` manifest capability and the commands below. > A host that advertises `vcsProviders` 0 starts providers for the roots it detects. > The decision record is -> [Unified VCS model and providers](https://github.com/1lck/Lithe-IDEA/blob/preview/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md); +> [Unified VCS model and providers](https://github.com/1lck/Lithe-IDEA/blob/main/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md); > example data is in [`rust/fixtures/vcs/model-v1.json`](../fixtures/vcs/model-v1.json) > and [`plugins/v1/fixtures/vcs/vcs-provider.plugin.json`](../../shared/plugins/contract/v1/fixtures/vcs/vcs-provider.plugin.json). diff --git a/shared/plugins/guides/build-tool-integration.md b/shared/plugins/guides/build-tool-integration.md index e94add22..b27e9a3f 100644 --- a/shared/plugins/guides/build-tool-integration.md +++ b/shared/plugins/guides/build-tool-integration.md @@ -13,7 +13,7 @@ LSP 服务器负责语言分析,构建工具负责项目导入、编译、依 > 但不能在桌面端安装和运行。要在桌面端运行固定命令或构建任务,用第 5 节的构建系统。 > 桌面端的 Build 窗口检测构建实例、加载提供者模型、解析可执行文件候选并运行命令任务和提供者任务;构建提供者的运行准备、测试、 > 调试准备、模型输入、原生配置、内联测试报告、运行时调试,以及构建系统的实例选项和任务准备尚未呈现。 -> 完整声明和说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) +> 完整声明和说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) > 中 `Declared()` 上方的注释,各能力的对照见[能力与协议版本对照](../reference/capabilities-and-versions.md)。 > 对本文有疑问,请到 [Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈。 @@ -231,7 +231,7 @@ Finish the [LSP plugin lifecycle tutorial](lsp-plugin-lifecycle.md) first, then > To run a fixed command or a build task on the desktop, use the build system of section 5. > The desktop's Build window detects build instances, loads provider models, resolves executable candidates, and runs command tasks and provider tasks; build-provider run preparation, tests, > debug preparation, model inputs, native configuration, inline test reports, runtime debugging, and build-system instance options and task preparations are not presented yet. -> The full declarations and notes are in the comment above `Declared()` in [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go); +> The full declarations and notes are in the comment above `Declared()` in [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go); > for a per-capability comparison see the [capability and protocol versions](../reference/capabilities-and-versions.md). > Questions about this guide go to [Lithe-core-rust Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues). diff --git a/shared/plugins/guides/debug-adapter-plugin.md b/shared/plugins/guides/debug-adapter-plugin.md index c9adbf61..c705bd6b 100644 --- a/shared/plugins/guides/debug-adapter-plugin.md +++ b/shared/plugins/guides/debug-adapter-plugin.md @@ -13,7 +13,7 @@ [发布社区插件](https://github.com/Lithe-IDEA/Lithe-store/blob/main/docs/publishing.md)。 > **宿主支持。** 调试适配器由 Lithe 桌面端实现,支持 stdio 和插件语言服务器内的回环 TCP 两种传输。宿主提供哪些能力,以 -> 桌面端的[能力声明](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go)(`Declared()` 上方注释)为准; +> 桌面端的[能力声明](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go)(`Declared()` 上方注释)为准; > 能力版本见[版本说明](../reference/capabilities-and-versions.md)。 ### 1. 插件和宿主各自负责什么 @@ -212,7 +212,7 @@ The normative field definitions are in the [contract](../contract/v1/README.md#d [Publishing community plugins](https://github.com/Lithe-IDEA/Lithe-store/blob/main/docs/publishing.md). > **Host support.** Debug adapters are implemented by the Lithe desktop app, over stdio and over loopback TCP inside a plugin's language server. Which capabilities the host offers is decided by its -> [capability declaration](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) (the comment above `Declared()`); for capability versions, see the [version notes](../reference/capabilities-and-versions.md). +> [capability declaration](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) (the comment above `Declared()`); for capability versions, see the [version notes](../reference/capabilities-and-versions.md). ### 1. What the plugin and the host each own diff --git a/shared/plugins/guides/lsp-plugin-lifecycle.md b/shared/plugins/guides/lsp-plugin-lifecycle.md index 117d9f0f..04043a25 100644 --- a/shared/plugins/guides/lsp-plugin-lifecycle.md +++ b/shared/plugins/guides/lsp-plugin-lifecycle.md @@ -11,7 +11,7 @@ 本文和契约、SDK 一样放在 Core 仓库的 `shared/plugins/` 下,只有这一份来源,随 Core 的同一次改动更新; 你不需要克隆 Lithe 主仓库。清单字段、版本和错误码以[插件契约](../contract/v1/README.md)为准; -宿主能运行什么,以 Lithe 桌面端的[声明与说明](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) +宿主能运行什么,以 Lithe 桌面端的[声明与说明](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) (`Declared()` 及其上方的注释)为准。目前唯一的宿主是 Lithe 桌面端,下文的“宿主”都指它。对本文有疑问,请到 [Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈。 @@ -493,7 +493,7 @@ installation and activation, daily operation, shutdown, upgrade, and uninstall. This page lives in `shared/plugins/` of the Core repository, next to the contract and the SDKs. It has one source and changes in the same change as Core; you do not need to clone the Lithe repository. Manifest fields, versions, and error codes follow the [plugin contract](../contract/v1/README.md); -what the host can run follows the Lithe desktop's [declaration and its comment](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) +what the host can run follows the Lithe desktop's [declaration and its comment](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) (`Declared()` and the comment above it). The only host today is the Lithe desktop, and "the host" below means it. For questions about this page, open an issue in [Lithe-core-rust](https://github.com/Lithe-IDEA/Lithe-core-rust/issues). diff --git a/shared/plugins/guides/native-build-workflows.md b/shared/plugins/guides/native-build-workflows.md index 5fbdd238..87ffc183 100644 --- a/shared/plugins/guides/native-build-workflows.md +++ b/shared/plugins/guides/native-build-workflows.md @@ -9,7 +9,7 @@ 这些入口都属于 `buildProviders`(版本 `0`):清单要求 `requires.buildProviders: 0`,进程协议 `litheBuild` 的版本就是 `buildProviders` 的版本。Node.js SDK 0.5.0 和 Java SDK 0.5.0 实现了全部入口;Rust SDK 0.4.0 没有构建提供者接口。能力定义见[构建提供者](../reference/domains/build-providers.md),字段和错误码以[契约](../contract/v1/README.md#build-providers)为准。 > **宿主支持。** Lithe 桌面端声明 `buildSystems` 和 `buildProviders`:构建窗口发现构建实例、加载提供者模型、解析可执行文件候选并运行任务。构建提供者的运行准备、测试、调试准备、model inputs、原生配置、内联测试报告和运行时调试,桌面端尚未呈现,见 -> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释。下文的入口因此由 Core 与 SDK 的端到端测试验证,插件作者在桌面端界面里暂时看不到测试、运行和调试这几类入口的效果。 +> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释。下文的入口因此由 Core 与 SDK 的端到端测试验证,插件作者在桌面端界面里暂时看不到测试、运行和调试这几类入口的效果。 ### 选择入口 @@ -107,7 +107,7 @@ A plugin can provide only a workspace backend and create no web page. Users buil These entry points all belong to `buildProviders` (version `0`): the manifest requires `requires.buildProviders: 0`, and the version of the `litheBuild` process protocol is the version of `buildProviders`. Node.js SDK 0.5.0 and Java SDK 0.5.0 implement every entry point; Rust SDK 0.4.0 has no build-provider interface. For the capability see [Build providers](../reference/domains/build-providers.md); the [contract](../contract/v1/README.md#build-providers) is normative for fields and error codes. > **Host support.** The Lithe desktop declares `buildSystems` and `buildProviders`: the Build window detects build instances, loads provider models, resolves executable candidates, and runs tasks. Build-provider run preparation, tests, debug preparation, model inputs, native configuration, inline test reports, and runtime debugging are not presented on the desktop yet; see the comment above `Declared()` in -> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go). The entry points below are therefore verified by the Core and SDK end-to-end tests, and a plugin author cannot yet see the effect of the test, run, and debug entry points in the desktop UI. +> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go). The entry points below are therefore verified by the Core and SDK end-to-end tests, and a plugin author cannot yet see the effect of the test, run, and debug entry points in the desktop UI. ### Choosing an entry point diff --git a/shared/plugins/guides/plugin-backend-workspace.md b/shared/plugins/guides/plugin-backend-workspace.md index 33894389..cb901a01 100644 --- a/shared/plugins/guides/plugin-backend-workspace.md +++ b/shared/plugins/guides/plugin-backend-workspace.md @@ -9,7 +9,7 @@ 字段与错误码的权威定义在[契约](../contract/v1/README.md#backend-lifecycle-and-workspace-contexts),这里只讲怎么用、为什么这样设计。 > **宿主支持。** Lithe 桌面端声明 `backend` 和 `pluginFunctions`(版本都是 `0`),所以本篇的函数协议、宿主服务和跨插件调用都在桌面端运行。宿主只授予它实现了的服务:一次会话能调用哪些方法,以运行时 `lithe/host/getCapabilities` 的 `services` 为准,不要按文档假定(第 5 节、第 10 节)。桌面端的声明和说明见 -> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释。 +> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释。 > 三个官方 SDK 都实现了本篇的协议:Node.js SDK 0.5.0、Java SDK 0.5.0 和 Rust SDK 0.4.0 > (见各自 README 的 Host services:[Node.js](../sdk/node/README.md#host-services)、[Java](../sdk/java/README.md#host-services)、 > [Rust](../sdk/rust/README.md#host-services);发布页:[sdk-node-v0.5.0](https://github.com/Lithe-IDEA/Lithe-core-rust/releases/tag/sdk-node-v0.5.0)、 @@ -332,7 +332,7 @@ This guide is for authors writing a plugin backend (`backend`): start without a The [contract](../contract/v1/README.md#backend-lifecycle-and-workspace-contexts) is normative for fields and error codes; this guide covers how to use them and why they are designed this way. > **Host support.** The Lithe desktop declares `backend` and `pluginFunctions` (both version `0`), so the function protocol, host services, and cross-plugin calls in this guide run there. The host grants only the services it implements: which methods a session can call is decided by `services` in the run-time `lithe/host/getCapabilities` answer, so do not assume it from this document (sections 5 and 10). The desktop's declarations and notes are in the comment above `Declared()` in -> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go). +> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go). > All three official SDKs implement the protocol in this guide: Node.js SDK 0.5.0, Java SDK 0.5.0, and Rust SDK 0.4.0 > (see Host services in each README: [Node.js](../sdk/node/README.md#host-services), [Java](../sdk/java/README.md#host-services), > [Rust](../sdk/rust/README.md#host-services); release pages: [sdk-node-v0.5.0](https://github.com/Lithe-IDEA/Lithe-core-rust/releases/tag/sdk-node-v0.5.0), diff --git a/shared/plugins/reference/api-catalog.md b/shared/plugins/reference/api-catalog.md index 8b26958b..5ed50ea4 100644 --- a/shared/plugins/reference/api-catalog.md +++ b/shared/plugins/reference/api-catalog.md @@ -4,7 +4,7 @@ ## 中文 -Lithe 的插件公共 API 按 [API 实施计划](https://github.com/1lck/Lithe-IDEA/blob/preview/docs/development/macos-plugin-api-plan.md)统一编号为 API-01 到 API-44。本页列出每个编号**现在能用什么**、**还没有什么**,并把能用的部分链接到契约章节和功能页。参数、返回值、错误码以 [`contract/v1/README.md`](../contract/v1/README.md) 为准;版本号见[能力与协议版本对照](capabilities-and-versions.md)。内容以本仓库 `main` 上的契约和 Core 源码为准。 +Lithe 的插件公共 API 按 [API 实施计划](https://github.com/1lck/Lithe-IDEA/blob/main/docs/development/macos-plugin-api-plan.md)统一编号为 API-01 到 API-44。本页列出每个编号**现在能用什么**、**还没有什么**,并把能用的部分链接到契约章节和功能页。参数、返回值、错误码以 [`contract/v1/README.md`](../contract/v1/README.md) 为准;版本号见[能力与协议版本对照](capabilities-and-versions.md)。内容以本仓库 `main` 上的契约和 Core 源码为准。 读这张表前先知道三件事: @@ -50,7 +50,7 @@ Lithe 的插件公共 API 按 [API 实施计划](https://github.com/1lck/Lithe-I | API-24 | 终端 | 部分完成 | [插件自有原生终端](../contract/v1/README.md#plugin-owned-native-terminals) `terminal/create`、`show`、`close`、`reopen`、`dispose`、`onExit`(本机工作区) | 向终端发送文本、读取终端输出 | [插件后端](domains/backend.md) | | API-25 | 语言、语法、LSP | 部分完成 | [语言](../contract/v1/README.md#languages)与[语言服务器](../contract/v1/README.md#language-servers);[`languages` 的包内 Monarch 语法和编辑器配置](../contract/v1/README.md#grammars-and-editor-configuration);[编辑器语言功能 Provider `editor/registerProviders`](../contract/v1/README.md#editor-language-feature-providers),把 `definition`、`hover`、`completion`、`codeLens`、`foldingRange`、`semanticTokens`、`documentLink` 这 7 种类型绑定到普通插件函数,语言服务器优先、插件结果只补充;插件自有的语言服务器会话:[`languageServers` 的会话声明](../contract/v1/README.md#plugin-owned-sessions)给出后端可用的请求、命令、转发通知,[`languageServer/request`、`notify`、`setStatus`](../contract/v1/README.md#language-server-host-methods) 与 `languageServer/didChangeState`、`languageServer/didReceiveNotification` 两个通知,会话策略由 Core 执行;[`launch.kind: "backend"`](../contract/v1/README.md#backend-resolved-launch) 由插件后端决定启动方式 | 符号、格式化、重命名、Code Action、签名帮助、内联提示、运行期传入 JSON 动态注册高亮;远程工作区中由后端决定启动方式的服务器 | [语言](domains/languages.md)、[编辑器](domains/editor.md) | | API-27 | 编辑器动作、主题、装饰 | 部分完成 | [独立编辑器动作 `editor/registerActions`](../contract/v1/README.md#independent-editor-actions),绑定普通函数和文件范围,不依赖 LSP、构建或运行;支持行首多图标、至多 4 个 `alternatives`、点击结果的 `reveal` | 主题、代码片段、其他装饰 | [编辑器](domains/editor.md) | -| API-29 | 构建、任务、测试、运行准备 | 部分完成 | [`buildSystems`](../contract/v1/README.md#build-systems)、[`buildProviders`](../contract/v1/README.md#build-providers)、[`buildModelInputs`](../contract/v1/README.md#optional-read-only-model-inputs)、[`runConfigurationTypes`](../contract/v1/README.md#run-configuration-types)、[`beforeLaunchTasks`](../contract/v1/README.md#before-launch-tasks) | 开发指南还不完整;Lithe 桌面端未声明 `buildModelInputs` 和 `beforeLaunchTasks`;`runConfigurationTypes` 自 [1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148) 起声明,插件类型只能运行、不能调试 | [声明式构建](domains/build-systems.md)、[构建提供者](domains/build-providers.md) | +| API-29 | 构建、任务、测试、运行准备 | 部分完成 | [`buildSystems`](../contract/v1/README.md#build-systems)、[`buildProviders`](../contract/v1/README.md#build-providers)、[`buildModelInputs`](../contract/v1/README.md#optional-read-only-model-inputs)、[`runConfigurationTypes`](../contract/v1/README.md#run-configuration-types)、[`beforeLaunchTasks`](../contract/v1/README.md#before-launch-tasks) | 开发指南还不完整;Lithe 桌面端未声明 `buildModelInputs`;`runConfigurationTypes` 自 [1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148) 起声明,插件类型只能运行、不能调试;`beforeLaunchTasks` 自 [1lck/Lithe-IDEA#2169](https://github.com/1lck/Lithe-IDEA/pull/2169) 起声明 | [声明式构建](domains/build-systems.md)、[构建提供者](domains/build-providers.md) | | API-30 | 调试适配器 | 部分完成 | [`debugAdapters`](../contract/v1/README.md#debug-adapters) 与宿主的 DAP 会话;[`features`、`defaults`](../contract/v1/README.md#adapter-features-and-defaults)(热代码替换、步进过滤器);后端发起的 [`debug/start`](../contract/v1/README.md#run-and-debug-sessions)(权限 `debug.start`) | 后端只能在本插件自己声明的适配器上启动会话,不能使用其他插件的适配器 | [调试适配器](domains/debug-adapters.md) | | API-31 | VCS 提供者 | 既有能力 | [`vcsProviders`](../contract/v1/README.md#vcs-providers) | 不含内置 Git 的公共读取(见 API-42);Lithe 桌面端未声明 `vcsProviders` | [VCS](domains/vcs.md) | | API-33 | 项目生成器 | 既有能力 | [`projectGenerators`](../contract/v1/README.md#project-generators) | — | [项目生成器](domains/project-generators.md) | @@ -82,7 +82,7 @@ Lithe 的插件公共 API 按 [API 实施计划](https://github.com/1lck/Lithe-I 后端向宿主发送的请求,前缀都是 `lithe/host/`,下表省略前缀。一个 API 编号下可以有多个方法,每个方法单独一行,按 API 编号排列。 -- **“API”列是规划编号**,来自 [API 实施计划](https://github.com/1lck/Lithe-IDEA/blob/preview/docs/development/macos-plugin-api-plan.md),和“协议”列的 `litheFunctions` 版本、清单里的能力版本分开记录。同一个 API 的方法可以分几个 PR 陆续加入;向后兼容地新增方法不升协议版本(见契约 [Extending the host services](../contract/v1/README.md#extending-the-host-services))。每个方法哪天、由哪个 PR 首次加入,见[插件协议更新记录](protocol-changelog.md#宿主方法按-api-编号)。 +- **“API”列是规划编号**,来自 [API 实施计划](https://github.com/1lck/Lithe-IDEA/blob/main/docs/development/macos-plugin-api-plan.md),和“协议”列的 `litheFunctions` 版本、清单里的能力版本分开记录。同一个 API 的方法可以分几个 PR 陆续加入;向后兼容地新增方法不升协议版本(见契约 [Extending the host services](../contract/v1/README.md#extending-the-host-services))。每个方法哪天、由哪个 PR 首次加入,见[插件协议更新记录](protocol-changelog.md#宿主方法按-api-编号)。 - **“协议”列**是方法所属的 `litheFunctions` 版本,现在都是 0。除 `getCapabilities`、`subscriptions/dispose`、`workspace/listContexts`、`credentials/*`、`run/stop`、`functions/providers` 外,其余方法都要带 `context: {contextID, generation}`。`functions/*` 只对声明了至少一个 `calls` 的后端开放;三个官方 SDK 都已封装 `functions/providers` 和 `functions/invoke`。 - **“权限”列**:每个权限都要求清单声明 `backend`(`requires.backend` 为 0),否则安装时拒绝。`functions/*` 没有清单权限,由清单 `pluginFunctions` 段的 `calls` 是否声明了该函数决定。另有两条前置条件:`debug.start` 还要求已声明的 `debugAdapters` 条目;`languageServer.request` 只在某个语言服务器列出 `requestMethods` 或 `forwardNotifications` 时才能声明。 @@ -176,7 +176,7 @@ Lithe 的插件公共 API 按 [API 实施计划](https://github.com/1lck/Lithe-I ## English -Lithe numbers its public plugin APIs API-01 to API-44 in the [API implementation plan](https://github.com/1lck/Lithe-IDEA/blob/preview/docs/development/macos-plugin-api-plan.md). This page lists, for each ID, **what is usable now** and **what is still missing**, and links the usable parts to contract sections and domain pages. [`contract/v1/README.md`](../contract/v1/README.md) is normative for params, results, and error codes; versions are in [Capability and protocol versions](capabilities-and-versions.md). It follows the contract and Core source on this repository's `main`. +Lithe numbers its public plugin APIs API-01 to API-44 in the [API implementation plan](https://github.com/1lck/Lithe-IDEA/blob/main/docs/development/macos-plugin-api-plan.md). This page lists, for each ID, **what is usable now** and **what is still missing**, and links the usable parts to contract sections and domain pages. [`contract/v1/README.md`](../contract/v1/README.md) is normative for params, results, and error codes; versions are in [Capability and protocol versions](capabilities-and-versions.md). It follows the contract and Core source on this repository's `main`. Three things to know before reading the tables: @@ -222,7 +222,7 @@ Status meanings: | API-24 | Terminals | Partial | [Plugin-owned native terminals](../contract/v1/README.md#plugin-owned-native-terminals) `terminal/create`, `show`, `close`, `reopen`, `dispose`, `onExit` (local workspaces) | Sending text to a terminal, reading its output | [Plugin backend](domains/backend.md) | | API-25 | Languages, grammars, LSP | Partial | [Languages](../contract/v1/README.md#languages) and [language servers](../contract/v1/README.md#language-servers); [packaged Monarch grammars and editor configuration in `languages`](../contract/v1/README.md#grammars-and-editor-configuration); [editor language-feature providers `editor/registerProviders`](../contract/v1/README.md#editor-language-feature-providers), binding 7 types (`definition`, `hover`, `completion`, `codeLens`, `foldingRange`, `semanticTokens`, `documentLink`) to ordinary plugin functions, where the language server answers first and plugin results only add; plugin-owned language server sessions: [the session declaration of `languageServers`](../contract/v1/README.md#plugin-owned-sessions) lists the requests, commands, and forwarded notifications a backend may use, with [`languageServer/request`, `notify`, `setStatus`](../contract/v1/README.md#language-server-host-methods) and the `languageServer/didChangeState` and `languageServer/didReceiveNotification` notifications, and Core enforces the session policy; [`launch.kind: "backend"`](../contract/v1/README.md#backend-resolved-launch) lets the plugin backend decide how the server starts | Symbols, formatting, rename, code actions, signature help, inlay hints, dynamic registration of highlighting from JSON passed at runtime; servers whose launch the backend decides in remote workspaces | [Languages](domains/languages.md), [Editor](domains/editor.md) | | API-27 | Editor actions, themes, decorations | Partial | [Independent editor actions `editor/registerActions`](../contract/v1/README.md#independent-editor-actions), binding ordinary functions to file ranges without LSP, build, or run; several icons at a line start, up to 4 `alternatives`, and a `reveal` in the click result | Themes, snippets, other decorations | [Editor](domains/editor.md) | -| API-29 | Build, tasks, tests, run preparation | Partial | [`buildSystems`](../contract/v1/README.md#build-systems), [`buildProviders`](../contract/v1/README.md#build-providers), [`buildModelInputs`](../contract/v1/README.md#optional-read-only-model-inputs), [`runConfigurationTypes`](../contract/v1/README.md#run-configuration-types), [`beforeLaunchTasks`](../contract/v1/README.md#before-launch-tasks) | The developer guides are incomplete; the Lithe desktop client does not declare `buildModelInputs` or `beforeLaunchTasks`; it declares `runConfigurationTypes` since [1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148), and runs plugin types without debugging them | [Build systems](domains/build-systems.md), [Build providers](domains/build-providers.md) | +| API-29 | Build, tasks, tests, run preparation | Partial | [`buildSystems`](../contract/v1/README.md#build-systems), [`buildProviders`](../contract/v1/README.md#build-providers), [`buildModelInputs`](../contract/v1/README.md#optional-read-only-model-inputs), [`runConfigurationTypes`](../contract/v1/README.md#run-configuration-types), [`beforeLaunchTasks`](../contract/v1/README.md#before-launch-tasks) | The developer guides are incomplete; the Lithe desktop client does not declare `buildModelInputs`; it declares `runConfigurationTypes` since [1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148) and runs plugin types without debugging them, and it declares `beforeLaunchTasks` since [1lck/Lithe-IDEA#2169](https://github.com/1lck/Lithe-IDEA/pull/2169) | [Build systems](domains/build-systems.md), [Build providers](domains/build-providers.md) | | API-30 | Debug adapters | Partial | [`debugAdapters`](../contract/v1/README.md#debug-adapters) and the host's DAP sessions; [`features` and `defaults`](../contract/v1/README.md#adapter-features-and-defaults) (hot code replace, step filters); backend-started [`debug/start`](../contract/v1/README.md#run-and-debug-sessions) (permission `debug.start`) | A backend can start sessions only on adapters its own plugin declares, not on another plugin's adapters | [Debug adapters](domains/debug-adapters.md) | | API-31 | VCS providers | Existing | [`vcsProviders`](../contract/v1/README.md#vcs-providers) | Public reads of built-in Git are not included (see API-42); the Lithe desktop client does not declare `vcsProviders` | [VCS](domains/vcs.md) | | API-33 | Project generators | Existing | [`projectGenerators`](../contract/v1/README.md#project-generators) | — | [Project generators](domains/project-generators.md) | @@ -254,7 +254,7 @@ The manifest, marketplace, package trust, and shortcut import are installation a Requests a backend sends to the host, all prefixed `lithe/host/`; the tables omit the prefix. One API ID can cover several methods; each method has its own row, ordered by API ID. -- **The “API” column holds planning IDs** from the [API implementation plan](https://github.com/1lck/Lithe-IDEA/blob/preview/docs/development/macos-plugin-api-plan.md). They are recorded separately from the `litheFunctions` version in the “Protocol” column and from manifest capability versions. The methods of one API can arrive over several PRs, and adding a backward-compatible method does not bump the protocol version (see [Extending the host services](../contract/v1/README.md#extending-the-host-services) in the contract). The date and PR that first added each method are in the [protocol changelog](protocol-changelog.md#宿主方法按-api-编号) (Chinese only). +- **The “API” column holds planning IDs** from the [API implementation plan](https://github.com/1lck/Lithe-IDEA/blob/main/docs/development/macos-plugin-api-plan.md). They are recorded separately from the `litheFunctions` version in the “Protocol” column and from manifest capability versions. The methods of one API can arrive over several PRs, and adding a backward-compatible method does not bump the protocol version (see [Extending the host services](../contract/v1/README.md#extending-the-host-services) in the contract). The date and PR that first added each method are in the [protocol changelog](protocol-changelog.md#宿主方法按-api-编号) (Chinese only). - **The “Protocol” column** is the `litheFunctions` version the method belongs to, and is 0 for every method today. Apart from `getCapabilities`, `subscriptions/dispose`, `workspace/listContexts`, `credentials/*`, `run/stop`, and `functions/providers`, every method takes `context: {contextID, generation}`. `functions/*` is open only to a backend whose plugin declares at least one `calls` entry; the three official SDKs all wrap `functions/providers` and `functions/invoke`. - **The “Permission” column**: every permission requires the manifest to declare `backend` (`requires.backend` is 0), or installation refuses it. `functions/*` has no manifest permission; whether the manifest's `pluginFunctions` section lists the function under `calls` decides. Two more preconditions: `debug.start` also requires a declared `debugAdapters` entry, and `languageServer.request` can be declared only when a language server lists `requestMethods` or `forwardNotifications`. diff --git a/shared/plugins/reference/capabilities-and-versions.md b/shared/plugins/reference/capabilities-and-versions.md index 8cb22cc5..2922fca2 100644 --- a/shared/plugins/reference/capabilities-and-versions.md +++ b/shared/plugins/reference/capabilities-and-versions.md @@ -53,7 +53,7 @@ Core 列以本仓库 `main` 上的 Core 源码为准([`capabilities.rs`](https | `buildProviders` `1` | 在 `0` 之上加:运行声明 `entrypoints: true`(入口运行,不需要目标),提供者用 `lithe/build/runEntrypoints` 回答一个源文件里可运行的入口,宿主把它保存为运行配置并按入口启动 | ✅ | ✅ | [Run entrypoints](../contract/v1/README.md#run-entrypoints-buildproviders-1) | | `buildModelInputs` `0` | `buildSystems[].modelSharing` 与 `modelInputs`:[已启用工作区插件之间共享的只读模型输入](../contract/v1/README.md#optional-read-only-model-inputs)(可选) | ✅ | 未声明 | [构建提供者](domains/build-providers.md) | | `runConfigurationTypes` `0` | `buildSystems[].runConfigurationTypes`:插件声明的运行配置类型(如 Go Build、Go Test),宿主按声明的字段画编辑器,Core 用 `build.runConfigurationPlan` 把保存的配置展开成命令行;所有运行配置共用“允许多个实例”开关 | ✅ | ✅¹ | [Run configuration types](../contract/v1/README.md#run-configuration-types) | -| `beforeLaunchTasks` `0` | `buildSystems[].beforeLaunchTasks`:插件声明的启动前任务(如“运行 Go 命令”),列在运行配置“启动前”的“添加新任务”菜单里;宿主按声明的字段画任务表单,Core 用 `runConfig.checkBeforeLaunchTask` 校验值、`build.beforeLaunchTaskPlan` 在拥有这个步骤列表的配置的工作目录里展开命令行 | ✅ | 未声明 | [Before-launch tasks](../contract/v1/README.md#before-launch-tasks) | +| `beforeLaunchTasks` `0` | `buildSystems[].beforeLaunchTasks`:插件声明的启动前任务(如“运行 Go 命令”),列在运行配置“启动前”的“添加新任务”菜单里;宿主按声明的字段画任务表单,Core 用 `runConfig.checkBeforeLaunchTask` 校验值、`build.beforeLaunchTaskPlan` 在拥有这个步骤列表的配置的工作目录里展开命令行 | ✅ | ✅ | [Before-launch tasks](../contract/v1/README.md#before-launch-tasks) | | `vcsProviders` `0` | [`vcsProviders[]`](../contract/v1/README.md#vcs-providers);说 `litheVcs` | ✅ | ✅¹ | [版本控制提供者](domains/vcs.md) | | `debugAdapters` `0` | [`debugAdapters[]`](../contract/v1/README.md#debug-adapters):独立适配器、语言服务器内的适配器、[远程附加](../contract/v1/README.md#remote-attach)、参数和环境变量、[`features` 与 `defaults`](../contract/v1/README.md#adapter-features-and-defaults) | ✅ | ✅ | [调试适配器](domains/debug-adapters.md) | | `managedRuntimes` `0` | 固定归档、插件后端资格检查、跨版本缓存与安装前准备;权限 `runtimes.install` | ✅ | 配套宿主接入后声明 | [Managed runtimes](../contract/v1/README.md#managed-runtimes) | @@ -167,7 +167,7 @@ Each row is one capability. `requires` lists **exactly** the capabilities a mani | `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](../contract/v1/README.md#run-entrypoints-buildproviders-1) | | `buildModelInputs` `0` | `buildSystems[].modelSharing` and `modelInputs`: [optional read-only model inputs](../contract/v1/README.md#optional-read-only-model-inputs) shared between enabled workspace plugins | ✅ | Not declared | [Build providers](domains/build-providers.md) | | `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`; every run configuration shares the Allow multiple instances switch | ✅ | ✅¹ | [Run configuration types](../contract/v1/README.md#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 | ✅ | Not declared | [Before-launch tasks](../contract/v1/README.md#before-launch-tasks) | +| `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](../contract/v1/README.md#before-launch-tasks) | | `vcsProviders` `0` | [`vcsProviders[]`](../contract/v1/README.md#vcs-providers); they speak `litheVcs` | ✅ | ✅¹ | [VCS providers](domains/vcs.md) | | `debugAdapters` `0` | [`debugAdapters[]`](../contract/v1/README.md#debug-adapters): standalone adapters, adapters inside a language server, [remote attach](../contract/v1/README.md#remote-attach), arguments and environment, [`features` and `defaults`](../contract/v1/README.md#adapter-features-and-defaults) | ✅ | ✅ | [Debug adapters](domains/debug-adapters.md) | | `managedRuntimes` `0` | Pinned archives, plugin-owned qualification, version-independent cache and install preflight; permission `runtimes.install` | ✅ | Declared with companion host integration | [Managed runtimes](../contract/v1/README.md#managed-runtimes) | diff --git a/shared/plugins/reference/domains/backend.md b/shared/plugins/reference/domains/backend.md index 94bf3bfc..4ba0513d 100644 --- a/shared/plugins/reference/domains/backend.md +++ b/shared/plugins/reference/domains/backend.md @@ -9,7 +9,7 @@ > **宿主支持。** Lithe 桌面端声明 `backend` 和 `pluginFunctions`(版本都是 `0`)。一次会话能调用哪些宿主方法,以运行时 `lithe/host/getCapabilities` 返回的 `services` 为准,不要按本页假定。 > 桌面端的 `Declared()` 注释列出了已注册的后端宿主服务:工作区上下文(`workspace/listContexts`、`getContext`、`getFolders` 和 `workspace/didChangeContexts`)、`subscriptions/dispose`、`languageServer/*`、跨插件调用中转、`credentials/*`、`documents/list` 与 `getSnapshot`、`editor/getActive`、`getSelections`、`open`、`reveal`、`insertText`、`replaceSelections`、`applyEdits`、`window/*`、`browser/openExternal`(只接受 HTTP(S) 地址)、`terminal/*` 和 `documents/registerContentProvider`;与窗口绑定的方法在窗口附着后才注册。 > 工作区文件与搜索(`workspace/readDirectory`、`stat`、`readFile`、`watch`、`findFiles`、`findText`)、`preview/openHTML`、`editor/registerActions` 和 `editor/registerProviders` 没有注册,申请对应权限的插件会被拒绝。Run 与调试会话方法(`run/start`、`run/stop`、`debug/start`)是否可用,同样以 `getCapabilities` 为准。 -> 说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释;各能力的对照见[能力与协议版本对照](../capabilities-and-versions.md)。 +> 说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释;各能力的对照见[能力与协议版本对照](../capabilities-and-versions.md)。 > 对契约有疑问,请到 [Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈。 | 项目 | 内容 | @@ -229,7 +229,7 @@ A plugin backend is the plugin's own long-lived process. It runs what a web page > **Host support.** The Lithe desktop declares `backend` and `pluginFunctions` (both version `0`). Which host methods a session may call is decided by `services` in the run-time `lithe/host/getCapabilities` answer; do not assume it from this page. > The comment above `Declared()` in the desktop lists the backend host services it registers: workspace contexts (`workspace/listContexts`, `getContext`, `getFolders`, and `workspace/didChangeContexts`), `subscriptions/dispose`, `languageServer/*`, the cross-plugin call relay, `credentials/*`, `documents/list` and `getSnapshot`, `editor/getActive`, `getSelections`, `open`, `reveal`, `insertText`, `replaceSelections`, `applyEdits`, `window/*`, `browser/openExternal` (HTTP(S) addresses only), `terminal/*`, and `documents/registerContentProvider`; methods bound to a window are registered once the window attaches. > Workspace files and search (`workspace/readDirectory`, `stat`, `readFile`, `watch`, `findFiles`, `findText`), `preview/openHTML`, `editor/registerActions`, and `editor/registerProviders` are not registered, and a plugin that asks for those permissions is refused. Whether the Run and debug session methods (`run/start`, `run/stop`, `debug/start`) are available is likewise decided by `getCapabilities`. -> See the comment above `Declared()` in [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go); for a per-capability comparison see the [capability and protocol versions](../capabilities-and-versions.md). +> See the comment above `Declared()` in [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go); for a per-capability comparison see the [capability and protocol versions](../capabilities-and-versions.md). > Questions about the contract go to [Lithe-core-rust Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues). | Item | Value | diff --git a/shared/plugins/reference/domains/build-providers.md b/shared/plugins/reference/domains/build-providers.md index 4c0835b0..0d0ab61a 100644 --- a/shared/plugins/reference/domains/build-providers.md +++ b/shared/plugins/reference/domains/build-providers.md @@ -8,7 +8,7 @@ > **宿主支持。** Lithe 桌面端声明 `buildSystems` 和 `buildProviders`(版本都是 `0`),不声明 `buildModelInputs`:`requires` 里有它的插件(只读模型输入的生产者和消费者)不会被提供安装。构建窗口发现构建实例、加载提供者模型、解析可执行文件候选并运行命令任务和提供者任务。 > 构建提供者的运行准备、测试、调试准备、模型输入、原生配置、内联测试报告和运行时调试,桌面端尚未呈现;`Declared()` 上方的同一段注释还写到构建窗口会准备应用目标,具体以该注释为准。 -> 宿主只呈现它实现的功能,提供者不得依赖宿主一定会调用其中任何一个。说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go);各能力的对照见[能力与协议版本对照](../capabilities-and-versions.md#能力版本requires)。 +> 宿主只呈现它实现的功能,提供者不得依赖宿主一定会调用其中任何一个。说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go);各能力的对照见[能力与协议版本对照](../capabilities-and-versions.md#能力版本requires)。 > 对契约有疑问,请到 [Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈。 | 项目 | 内容 | @@ -128,7 +128,7 @@ Some build tools expose their project model only through their own API (the Grad > **Host support.** The Lithe desktop declares `buildSystems` and `buildProviders` (both version `0`) and does not declare `buildModelInputs`: a plugin whose `requires` lists it (a producer or consumer of read-only model inputs) is not offered for install. The Build window detects build instances, loads provider models, resolves executable candidates, and runs command tasks and provider tasks. > Build-provider run preparation, tests, debug preparation, model inputs, native configuration, inline test reports, and runtime debugging are not presented on the desktop yet; the same comment above `Declared()` also says the Build window prepares application targets, so read that comment for the current state. -> A host presents the features it implements, and a provider must not depend on a host calling any of them. See [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go); for a per-capability comparison see the [capability and protocol versions](../capabilities-and-versions.md#capability-versions-requires). +> A host presents the features it implements, and a provider must not depend on a host calling any of them. See [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go); for a per-capability comparison see the [capability and protocol versions](../capabilities-and-versions.md#capability-versions-requires). > Questions about the contract go to [Lithe-core-rust Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues). | Item | Value | diff --git a/shared/plugins/reference/domains/build-systems.md b/shared/plugins/reference/domains/build-systems.md index 780eb948..b835ecaf 100644 --- a/shared/plugins/reference/domains/build-systems.md +++ b/shared/plugins/reference/domains/build-systems.md @@ -6,9 +6,9 @@ `buildSystems` 用数据描述一个项目级构建工具(Cargo、Go、Gradle、Maven 等):怎么识别项目根目录、找哪个可执行文件、怎么得到项目模型、有哪些任务和运行入口、哪些文件变化要重新同步。所有构建工具共用同一套模型和命令:Core 校验声明、检测实例、解码模型、展开每一条命令行,宿主只执行 Core 规划好的进程并把输出交回。所以社区插件加一个构建工具不需要改宿主,宿主代码也不按构建系统 ID 分支。模型需要程序计算时,再加一个[构建提供者](build-providers.md)。 -> **宿主支持。** Lithe 桌面端声明 `buildSystems` 和 `buildProviders`(版本都是 `0`):构建窗口发现构建实例、加载提供者模型、解析 Core 返回的有序可执行文件候选,并运行命令任务和提供者任务。桌面端也声明 `runConfigurationTypes` `0`([1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148)):运行/调试配置对话框在内置类型之后列出插件类型,按 Core 描述的表单和插件翻译编辑,存到 `.lithe/run/plugin/<插件 ID>.toml`,按 Core 为检测到的实例规划的命令运行;插件类型不能调试。桌面端还没有声明 `beforeLaunchTasks` `0`,声明它的插件暂时不会被提供安装。桌面端不声明 `buildModelInputs`、`executionProviders` 和 `toolchainProviders`:`requires` 里有其中任何一个的插件不会被提供安装,所以 `modelSharing` 和 `modelInputs` 在桌面端用不上。 +> **宿主支持。** Lithe 桌面端声明 `buildSystems` 和 `buildProviders`(版本都是 `0`):构建窗口发现构建实例、加载提供者模型、解析 Core 返回的有序可执行文件候选,并运行命令任务和提供者任务。桌面端也声明 `runConfigurationTypes` `0`([1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148)):运行/调试配置对话框在内置类型之后列出插件类型,按 Core 描述的表单和插件翻译编辑,存到 `.lithe/run/plugin/<插件 ID>.toml`,按 Core 为检测到的实例规划的命令运行;插件类型不能调试。桌面端也声明 `beforeLaunchTasks` `0`([1lck/Lithe-IDEA#2169](https://github.com/1lck/Lithe-IDEA/pull/2169)):每个运行配置“启动前”列表的“添加新任务”菜单在“运行另一个配置”之后列出插件任务,按 Core 描述的表单和插件翻译编辑,在配置启动前按 Core 为检测到的实例规划的命令运行。运行配置类型和任务的包内 SVG 图标显示在菜单和列表里,PNG 图标暂时显示宿主图标。桌面端不声明 `buildModelInputs`、`executionProviders` 和 `toolchainProviders`:`requires` 里有其中任何一个的插件不会被提供安装,所以 `modelSharing` 和 `modelInputs` 在桌面端用不上。 > 构建系统的实例级选项(`scope: "instance"`)和项目任务的 `preparation`,桌面端尚未呈现:插件照常安装,这部分没有界面,也不会被调用。构建提供者的运行准备、测试、调试准备、模型输入、原生配置、内联测试报告和运行时调试同样尚未呈现,见[构建提供者](build-providers.md)。 -> 宿主只呈现它实现的功能,插件不得依赖宿主一定会调用其中任何一个。该注释还写到系统命令的工具发现目前只读 `PATH`,依赖项目工具链或用户覆盖的计划会被拒绝,它是否也约束可执行文件候选里的 `setting` 和 `toolchain` 来源,注释没有说明;依赖这两种来源前,先在桌面端实际试一遍。说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go);各能力的对照见[能力与协议版本对照](../capabilities-and-versions.md#能力版本requires)。 +> 宿主只呈现它实现的功能,插件不得依赖宿主一定会调用其中任何一个。该注释还写到系统命令的工具发现目前只读 `PATH`,依赖项目工具链或用户覆盖的计划会被拒绝,它是否也约束可执行文件候选里的 `setting` 和 `toolchain` 来源,注释没有说明;依赖这两种来源前,先在桌面端实际试一遍。说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go);各能力的对照见[能力与协议版本对照](../capabilities-and-versions.md#能力版本requires)。 > 对契约有疑问,请到 [Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈。 | 项目 | 内容 | @@ -107,9 +107,9 @@ `buildSystems` describes a project-level build tool (Cargo, Go, Gradle, Maven, …) as data: how to recognize a project root, which executable to use, how to get the project model, which tasks and run entries exist, and which file changes require a re-sync. Every build tool shares the same model and commands: Core validates the declaration, detects instances, decodes the model, and expands every command line; the host only runs the processes Core planned and passes their output back. A community plugin therefore adds a build tool without any host change, and no host code branches on a build-system ID. When the model must be computed by a program, add a [build provider](build-providers.md). -> **Host support.** The Lithe desktop declares `buildSystems` and `buildProviders` (both version `0`): the Build window detects build instances, loads provider models, resolves the ordered executable candidates Core returns, and runs command and provider tasks. It also declares `runConfigurationTypes` `0` ([1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148)): the Run/Debug Configurations dialog lists plugin types after the built-in ones, edits them with the form Core describes in the plugin's translation, saves them to `.lithe/run/plugin/.toml`, and runs them with the command Core plans for the detected instance; a plugin type has no debugger. The desktop does not declare `beforeLaunchTasks` `0` yet, so a plugin that declares it is not offered for installation. The desktop does not declare `buildModelInputs`, `executionProviders` or `toolchainProviders`: a plugin whose `requires` lists any of them is not offered for installation, so `modelSharing` and `modelInputs` are unusable there. +> **Host support.** The Lithe desktop declares `buildSystems` and `buildProviders` (both version `0`): the Build window detects build instances, loads provider models, resolves the ordered executable candidates Core returns, and runs command and provider tasks. It also declares `runConfigurationTypes` `0` ([1lck/Lithe-IDEA#2148](https://github.com/1lck/Lithe-IDEA/pull/2148)): the Run/Debug Configurations dialog lists plugin types after the built-in ones, edits them with the form Core describes in the plugin's translation, saves them to `.lithe/run/plugin/.toml`, and runs them with the command Core plans for the detected instance; a plugin type has no debugger. It also declares `beforeLaunchTasks` `0` ([1lck/Lithe-IDEA#2169](https://github.com/1lck/Lithe-IDEA/pull/2169)): the Add New Task menu of every configuration's Before Launch list offers plugin tasks after Run Another Configuration, edits them with the form Core describes in the plugin's translation, and runs them before the configuration starts with the command Core plans for the detected instance. Run configuration types and tasks show their package SVG icons in the menus and lists; a PNG icon shows the host icon for now. The desktop does not declare `buildModelInputs`, `executionProviders` or `toolchainProviders`: a plugin whose `requires` lists any of them is not offered for installation, so `modelSharing` and `modelInputs` are unusable there. > Build-system instance options (`scope: "instance"`) and project-task `preparation` are not presented on the desktop yet: the plugin installs, and that part has no surface and is never called. Build-provider run preparation, tests, debug preparation, model inputs, native configuration, inline test reports and runtime debug are not presented either; see [Build providers](build-providers.md). -> A host presents the features it implements; a plugin must not depend on a host calling any of them. The same comment says tool discovery for system commands reads `PATH` only and that a plan depending on a project toolchain or a user override is refused. It does not say whether that also limits the `setting` and `toolchain` sources of executable candidates, so try those two on the desktop before relying on them. See [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go); the per-capability comparison is in [Capabilities and protocol versions](../capabilities-and-versions.md#capability-versions-requires). +> A host presents the features it implements; a plugin must not depend on a host calling any of them. The same comment says tool discovery for system commands reads `PATH` only and that a plan depending on a project toolchain or a user override is refused. It does not say whether that also limits the `setting` and `toolchain` sources of executable candidates, so try those two on the desktop before relying on them. See [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go); the per-capability comparison is in [Capabilities and protocol versions](../capabilities-and-versions.md#capability-versions-requires). > Questions about the contract go to [Lithe-core-rust Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues). | Item | Value | diff --git a/shared/plugins/reference/domains/debug-adapters.md b/shared/plugins/reference/domains/debug-adapters.md index 796a2d82..fd39cffd 100644 --- a/shared/plugins/reference/domains/debug-adapters.md +++ b/shared/plugins/reference/domains/debug-adapters.md @@ -104,7 +104,7 @@ Core 只把 `localhost`、`127.0.0.0/8`、`::1` 判为本机;其他主机都 | 宿主 | 现状 | | --- | --- | -| Lithe 桌面端 | 声明 `debugAdapters`:stdio 适配器,以及通过本机回环 TCP 连接插件语言服务器里的适配器;`launch` 和 `attach`(远程主机在用户确认后)、参数和环境绑定、`features` 和 `defaults`。后端发起的 `debug/start`、`run/start` 属于宿主服务,由后端通过 `getCapabilities` 在运行时发现,不在能力表里。构建提供者的原生调试准备和运行时调试在桌面端尚未呈现。细节见[桌面端源码](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) | +| Lithe 桌面端 | 声明 `debugAdapters`:stdio 适配器,以及通过本机回环 TCP 连接插件语言服务器里的适配器;`launch` 和 `attach`(远程主机在用户确认后)、参数和环境绑定、`features` 和 `defaults`。后端发起的 `debug/start`、`run/start` 属于宿主服务,由后端通过 `getCapabilities` 在运行时发现,不在能力表里。构建提供者的原生调试准备和运行时调试在桌面端尚未呈现。细节见[桌面端源码](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) | ### 契约章节 @@ -243,7 +243,7 @@ The other rules of `run/start`, `run/stop`, and `run/didExit` are in [Plugin bac | Host | Status | | --- | --- | -| Lithe desktop | Declares `debugAdapters`: stdio adapters and adapters inside the plugin's language server over loopback TCP; `launch` and `attach` (a remote host after the user confirms it), argument and environment bindings, `features`, and `defaults`. The backend-started `debug/start` and `run/start` are host services a backend discovers at runtime through `getCapabilities`, not through the capability table. A build provider's native debug preparation and runtime debug are not presented on the desktop yet. Details are in the [desktop source](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) | +| Lithe desktop | Declares `debugAdapters`: stdio adapters and adapters inside the plugin's language server over loopback TCP; `launch` and `attach` (a remote host after the user confirms it), argument and environment bindings, `features`, and `defaults`. The backend-started `debug/start` and `run/start` are host services a backend discovers at runtime through `getCapabilities`, not through the capability table. A build provider's native debug preparation and runtime debug are not presented on the desktop yet. Details are in the [desktop source](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) | ### Contract sections diff --git a/shared/plugins/reference/domains/editor.md b/shared/plugins/reference/domains/editor.md index 902f646b..8b2c02cd 100644 --- a/shared/plugins/reference/domains/editor.md +++ b/shared/plugins/reference/domains/editor.md @@ -61,7 +61,7 @@ | 宿主 | 现状 | | --- | --- | -| Lithe 桌面端 | 声明 `backend`。后端能调用的方法以 `getCapabilities` 的返回为准,它只列出权限允许、且宿主注册了处理器的方法。桌面端提供文档、编辑器读写和打开定位、`browser/openExternal`(仅 HTTP 和 HTTPS)、内容 Provider、编辑器动作和语言功能 Provider;不提供 `preview/openHTML`。能力清单见[桌面端源码](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) | +| Lithe 桌面端 | 声明 `backend`。后端能调用的方法以 `getCapabilities` 的返回为准,它只列出权限允许、且宿主注册了处理器的方法。桌面端提供文档、编辑器读写和打开定位、`browser/openExternal`(仅 HTTP 和 HTTPS)、内容 Provider、编辑器动作和语言功能 Provider;不提供 `preview/openHTML`。能力清单见[桌面端源码](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) | ### 契约章节 @@ -150,7 +150,7 @@ A language server may hand out documents that have no file (such as the decompil | Host | Status | | --- | --- | -| Lithe desktop | Declares `backend`. The methods a backend can call are whatever `getCapabilities` returns, which lists only methods the permissions allow and the host has registered a handler for. The desktop provides documents, editor reads and edits, open and reveal, `browser/openExternal` (HTTP and HTTPS only), content providers, editor actions, and language-feature providers; it does not provide `preview/openHTML`. The capability list is in the [desktop source](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) | +| Lithe desktop | Declares `backend`. The methods a backend can call are whatever `getCapabilities` returns, which lists only methods the permissions allow and the host has registered a handler for. The desktop provides documents, editor reads and edits, open and reveal, `browser/openExternal` (HTTP and HTTPS only), content providers, editor actions, and language-feature providers; it does not provide `preview/openHTML`. The capability list is in the [desktop source](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) | ### Contract sections diff --git a/shared/plugins/reference/domains/manifest.md b/shared/plugins/reference/domains/manifest.md index 709d0e25..6dd66f9c 100644 --- a/shared/plugins/reference/domains/manifest.md +++ b/shared/plugins/reference/domains/manifest.md @@ -49,7 +49,7 @@ Lithe 桌面端声明下列能力,版本都是 `0`:`backend`、`buildProvide 桌面端**未声明** `buildModelInputs`、`executionProviders`、`keymapImportProviders`、`packageTrust`、`toolchainProviders`、`vcsProviders`。需要这些能力的插件在安装审查时以 `plugin.api.unsupported` 被拒绝,不会被提供安装。 -声明了能力不等于每个功能都可见。桌面端已呈现和未呈现的细节见 [`desktop/internal/pluginhost/pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释,各功能页也会注明。 +声明了能力不等于每个功能都可见。桌面端已呈现和未呈现的细节见 [`desktop/internal/pluginhost/pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释,各功能页也会注明。 ### 权限与激活事件 @@ -161,7 +161,7 @@ The Lithe desktop host declares these capabilities, each at version `0`: `backen The desktop host does **not** declare `buildModelInputs`, `executionProviders`, `keymapImportProviders`, `packageTrust`, `toolchainProviders`, or `vcsProviders`. A plugin that needs one of them is refused at install review with `plugin.api.unsupported` and is not offered for installation. -Declaring a capability does not mean every feature of it is visible. What the desktop host presents and what it does not is described in the comment above `Declared()` in [`desktop/internal/pluginhost/pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go), and each domain page says so where it matters. +Declaring a capability does not mean every feature of it is visible. What the desktop host presents and what it does not is described in the comment above `Declared()` in [`desktop/internal/pluginhost/pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go), and each domain page says so where it matters. ### Permissions and activation events diff --git a/shared/plugins/reference/domains/marketplace.md b/shared/plugins/reference/domains/marketplace.md index caf4c3e5..58e8f36e 100644 --- a/shared/plugins/reference/domains/marketplace.md +++ b/shared/plugins/reference/domains/marketplace.md @@ -109,7 +109,7 @@ | 宿主 | 现状 | | --- | --- | -| Lithe 桌面端 | 预置 Lithe Store 为第三方来源;调用 `validateIndex` 和 `installReview` 时传入自己声明的能力,所以需要它没有声明的能力(`buildModelInputs`、`executionProviders`、`keymapImportProviders`、`packageTrust`、`toolchainProviders`、`vcsProviders`)的插件版本不会被提供安装。能力清单见[桌面端源码](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) | +| Lithe 桌面端 | 预置 Lithe Store 为第三方来源;调用 `validateIndex` 和 `installReview` 时传入自己声明的能力,所以需要它没有声明的能力(`buildModelInputs`、`executionProviders`、`keymapImportProviders`、`packageTrust`、`toolchainProviders`、`vcsProviders`)的插件版本不会被提供安装。能力清单见[桌面端源码](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) | ### 契约章节 @@ -246,7 +246,7 @@ When several sources list the same ID, the user chooses the source at install ti | Host | Status | | --- | --- | -| Lithe desktop | Presets Lithe Store as a third-party source and passes the capabilities it declares to `validateIndex` and `installReview`, so a plugin version that needs a capability it does not declare (`buildModelInputs`, `executionProviders`, `keymapImportProviders`, `packageTrust`, `toolchainProviders`, `vcsProviders`) is not offered for installation. The capability list is in the [desktop source](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) | +| Lithe desktop | Presets Lithe Store as a third-party source and passes the capabilities it declares to `validateIndex` and `installReview`, so a plugin version that needs a capability it does not declare (`buildModelInputs`, `executionProviders`, `keymapImportProviders`, `packageTrust`, `toolchainProviders`, `vcsProviders`) is not offered for installation. The capability list is in the [desktop source](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) | ### Contract sections diff --git a/shared/plugins/reference/domains/package-trust.md b/shared/plugins/reference/domains/package-trust.md index 7fcea875..c9599a7d 100644 --- a/shared/plugins/reference/domains/package-trust.md +++ b/shared/plugins/reference/domains/package-trust.md @@ -78,7 +78,7 @@ file== # 每个文件一行,按路径排序 | 宿主 | 现状 | | --- | --- | -| Lithe 桌面端 | 未声明 `packageTrust`。要求它的插件(例如带 `vendor.bundledSignatureRequirement` 的官方副本)不会被提供安装,`validate` 和 `installReview` 也拒绝它们。其他宿主能力见桌面端的[能力清单](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) | +| Lithe 桌面端 | 未声明 `packageTrust`。要求它的插件(例如带 `vendor.bundledSignatureRequirement` 的官方副本)不会被提供安装,`validate` 和 `installReview` 也拒绝它们。其他宿主能力见桌面端的[能力清单](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) | ### 契约章节 @@ -179,7 +179,7 @@ file== # one line per file, sorted by path | Host | Status | | --- | --- | -| Lithe desktop | Does not declare `packageTrust`. Plugins that require it (for example an official copy with `vendor.bundledSignatureRequirement`) are not offered for installation, and `validate` and `installReview` refuse them. The rest of the host's capabilities are listed in the desktop [capability list](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) | +| Lithe desktop | Does not declare `packageTrust`. Plugins that require it (for example an official copy with `vendor.bundledSignatureRequirement`) are not offered for installation, and `validate` and `installReview` refuse them. The rest of the host's capabilities are listed in the desktop [capability list](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) | ### Contract sections diff --git a/shared/plugins/reference/domains/project-generators.md b/shared/plugins/reference/domains/project-generators.md index 0f5b5bd4..1d42b4c9 100644 --- a/shared/plugins/reference/domains/project-generators.md +++ b/shared/plugins/reference/domains/project-generators.md @@ -7,7 +7,7 @@ 插件可以在宿主的"新建项目"窗口里加入口:某种语言的普通项目,或框架、脚手架生成器。窗口归宿主:入口列表和搜索、项目名称和位置、"创建 Git 仓库"选项、空项目、"创建"按钮。生成器只声明自己的字段、结果需要的语言和构建系统、生成项目的步骤。Core 计算表单和生成计划,宿主执行,宿主代码不按生成器 ID 分支。 > **宿主支持。** Lithe 桌面端声明 `projectGenerators`(版本 `0`):新建项目窗口列出生成器、通过 Core 计算它们的表单、用共享的工具发现为 `tool` 字段列出安装,并在暂存目录里执行生成计划。宿主源码 `Declared()` 上方注释的"尚未呈现"清单里没有项目生成器。 -> 对契约有疑问,请到 [Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈;说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go)。 +> 对契约有疑问,请到 [Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈;说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go)。 | 项目 | 内容 | | --- | --- | @@ -91,7 +91,7 @@ A plugin can add entries to the host's New Project window: a plain project of a language, or a framework or scaffolding generator. The window belongs to the host: the entry list and its search, the project name and location, the "create Git repository" option, the empty project, and the Create button. A generator declares only its own fields, the languages and build systems the result needs, and the steps that produce it. Core computes the form and the generation plan, the host executes it, and no host code branches on a generator ID. > **Host support.** The Lithe desktop declares `projectGenerators` (version `0`): the New Project window lists generators, evaluates their forms through Core, lists installations for `tool` fields through the shared tool discovery, and runs the generation plan in a staging directory. The "not presented yet" list in the comment above `Declared()` in the host source does not include project generators. -> Questions about the contract go to [Lithe-core-rust Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues); see [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) for the host's own description. +> Questions about the contract go to [Lithe-core-rust Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues); see [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) for the host's own description. | Item | Value | | --- | --- |