Skip to content

Commit fa33446

Browse files
authored
docs(plugins): 桌面端已声明 beforeLaunchTasks(1lck/Lithe-IDEA#2169),宿主链接改指 main (#100)
能力对照、API 总表和声明式构建页改为桌面端自 1lck/Lithe-IDEA#2169 起声明 beforeLaunchTasks 0, 写明“添加新任务”菜单、任务表单和包内 SVG 图标的呈现范围。 指向 1lck/Lithe-IDEA preview 分支的链接改指 main(preview 已停用); rust-core-api.md 里指向宿主仓库旧契约副本的链接改为本仓库的相对链接。
1 parent 2ddfae7 commit fa33446

19 files changed

Lines changed: 45 additions & 45 deletions

‎rust/contracts/application-boundary.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The application boundary describes product behavior that the desktop clients
44
consume through the C ABI. It does not describe widgets, threads, processes,
55
or operating-system APIs. It defines the cross-platform contract; current
6-
product scope and setup are documented in [`README.md`](https://github.com/1lck/Lithe-IDEA/blob/preview/README.md); the
6+
product scope and setup are documented in [`README.md`](https://github.com/1lck/Lithe-IDEA/blob/main/README.md); the
77
verification scripts are the executable source of boundary checks.
88

99
## Data Rules
@@ -35,14 +35,14 @@ and [the inert fixture](../fixtures/plugins/settings-sources.json).
3535

3636
## Shared built-in translations
3737

38-
[Shared i18n](https://github.com/1lck/Lithe-IDEA/blob/preview/shared/i18n/README.md) owns migrated semantic keys, typed named parameters,
38+
[Shared i18n](https://github.com/1lck/Lithe-IDEA/blob/main/shared/i18n/README.md) owns migrated semantic keys, typed named parameters,
3939
locale registration, platform scopes and documented platform wording overrides.
4040
Build-time generation supplies native macOS string tables and the Windows catalog;
4141
no runtime JSON loading, package download or write to installed resources occurs.
4242
The locale registry preserves each platform's persisted identifiers and default
4343
language. Explicit fallback chains resolve shared entries during generation;
4444
all existing platform catalogs and presentation-owned bilingual copy use this source. Translation coverage is not a
45-
capability claim. [Format fixtures](https://github.com/1lck/Lithe-IDEA/blob/preview/shared/i18n/fixtures/format-v1.json) bind generation
45+
capability claim. [Format fixtures](https://github.com/1lck/Lithe-IDEA/blob/main/shared/i18n/fixtures/format-v1.json) bind generation
4646
to native positional formatting, literal percent signs and unmodified argument data.
4747

4848
## Feature Contracts
@@ -277,7 +277,7 @@ server advertises them during initialize or dynamic registration. The shared
277277
core owns JSON-RPC state, stdio, process lifecycle, and normalized results;
278278
platform adapters own executable and provider-resource discovery. Detailed
279279
invariants are documented in
280-
[`.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).
280+
[`.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).
281281

282282
Session lifecycle is a single discriminated state, never a set of booleans.
283283
Capability negotiation is separately `unknown` or `known`; a known capability

‎rust/contracts/rust-core-api.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ total attempts. The AskPass C ABI is called only in the child app's early helper
12151215
mode. Credential answers are never copied into events or settings.
12161216

12171217
See `rust/fixtures/git/{fetch-plan,execution-events,execution-policy}-v1.json`
1218-
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).
1218+
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).
12191219

12201220
The additive `lithe_core_execute_json_with_events(request, callback, context)`
12211221
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.
52535253
| `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[<index>]`, 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`. |
52545254
| `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 }` |
52555255
| `build.checkToolVersion` | `{ runtime?, output }` | `version`: `{ satisfied, version? }`; `runtime` checks that runtime dependency instead of the tool |
5256-
| `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) |
5256+
| `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) |
52575257
| `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 }` |
52585258
| `build.configurationPlan` | plan fields and optional host-selected `tool` | `plan.provider` for `lithe/build/configuration`; no mutation, project or output-file parameters |
52595259
| `build.decodeConfiguration` | `{ result }` | `configuration`: bounded `litheBuildConfiguration` v1 native sources/fields; see the plugin contract |

‎rust/contracts/vcs-provider-v1.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> Core accepts the `vcsProviders` manifest capability and the commands below.
55
> A host that advertises `vcsProviders` 0 starts providers for the roots it detects.
66
> The decision record is
7-
> [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);
7+
> [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);
88
> example data is in [`rust/fixtures/vcs/model-v1.json`](../fixtures/vcs/model-v1.json)
99
> and [`plugins/v1/fixtures/vcs/vcs-provider.plugin.json`](../../shared/plugins/contract/v1/fixtures/vcs/vcs-provider.plugin.json).
1010

‎shared/plugins/guides/build-tool-integration.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LSP 服务器负责语言分析,构建工具负责项目导入、编译、依
1313
> 但不能在桌面端安装和运行。要在桌面端运行固定命令或构建任务,用第 5 节的构建系统。
1414
> 桌面端的 Build 窗口检测构建实例、加载提供者模型、解析可执行文件候选并运行命令任务和提供者任务;构建提供者的运行准备、测试、
1515
> 调试准备、模型输入、原生配置、内联测试报告、运行时调试,以及构建系统的实例选项和任务准备尚未呈现。
16-
> 完整声明和说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go)
16+
> 完整声明和说明见 [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go)
1717
> 中 `Declared()` 上方的注释,各能力的对照见[能力与协议版本对照](../reference/capabilities-and-versions.md)。
1818
> 对本文有疑问,请到 [Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈。
1919
@@ -231,7 +231,7 @@ Finish the [LSP plugin lifecycle tutorial](lsp-plugin-lifecycle.md) first, then
231231
> To run a fixed command or a build task on the desktop, use the build system of section 5.
232232
> 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,
233233
> debug preparation, model inputs, native configuration, inline test reports, runtime debugging, and build-system instance options and task preparations are not presented yet.
234-
> 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);
234+
> 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);
235235
> for a per-capability comparison see the [capability and protocol versions](../reference/capabilities-and-versions.md).
236236
> Questions about this guide go to [Lithe-core-rust Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues).
237237

‎shared/plugins/guides/debug-adapter-plugin.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[发布社区插件](https://github.com/Lithe-IDEA/Lithe-store/blob/main/docs/publishing.md)。
1414

1515
> **宿主支持。** 调试适配器由 Lithe 桌面端实现,支持 stdio 和插件语言服务器内的回环 TCP 两种传输。宿主提供哪些能力,以
16-
> 桌面端的[能力声明](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go)(`Declared()` 上方注释)为准;
16+
> 桌面端的[能力声明](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go)(`Declared()` 上方注释)为准;
1717
> 能力版本见[版本说明](../reference/capabilities-and-versions.md)。
1818
1919
### 1. 插件和宿主各自负责什么
@@ -212,7 +212,7 @@ The normative field definitions are in the [contract](../contract/v1/README.md#d
212212
[Publishing community plugins](https://github.com/Lithe-IDEA/Lithe-store/blob/main/docs/publishing.md).
213213

214214
> **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
215-
> [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).
215+
> [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).
216216
217217
### 1. What the plugin and the host each own
218218

‎shared/plugins/guides/lsp-plugin-lifecycle.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
本文和契约、SDK 一样放在 Core 仓库的 `shared/plugins/` 下,只有这一份来源,随 Core 的同一次改动更新;
1313
你不需要克隆 Lithe 主仓库。清单字段、版本和错误码以[插件契约](../contract/v1/README.md)为准;
14-
宿主能运行什么,以 Lithe 桌面端的[声明与说明](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go)
14+
宿主能运行什么,以 Lithe 桌面端的[声明与说明](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go)
1515
(`Declared()` 及其上方的注释)为准。目前唯一的宿主是 Lithe 桌面端,下文的“宿主”都指它。对本文有疑问,请到
1616
[Lithe-core-rust 的 Issues](https://github.com/Lithe-IDEA/Lithe-core-rust/issues) 反馈。
1717

@@ -493,7 +493,7 @@ installation and activation, daily operation, shutdown, upgrade, and uninstall.
493493

494494
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
495495
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);
496-
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)
496+
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)
497497
(`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
498498
[Lithe-core-rust](https://github.com/Lithe-IDEA/Lithe-core-rust/issues).
499499

‎shared/plugins/guides/native-build-workflows.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
这些入口都属于 `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)为准。
1010

1111
> **宿主支持。** Lithe 桌面端声明 `buildSystems` 和 `buildProviders`:构建窗口发现构建实例、加载提供者模型、解析可执行文件候选并运行任务。构建提供者的运行准备、测试、调试准备、model inputs、原生配置、内联测试报告和运行时调试,桌面端尚未呈现,见
12-
> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释。下文的入口因此由 Core 与 SDK 的端到端测试验证,插件作者在桌面端界面里暂时看不到测试、运行和调试这几类入口的效果。
12+
> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释。下文的入口因此由 Core 与 SDK 的端到端测试验证,插件作者在桌面端界面里暂时看不到测试、运行和调试这几类入口的效果。
1313
1414
### 选择入口
1515

@@ -107,7 +107,7 @@ A plugin can provide only a workspace backend and create no web page. Users buil
107107
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.
108108

109109
> **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
110-
> [`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.
110+
> [`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.
111111
112112
### Choosing an entry point
113113

‎shared/plugins/guides/plugin-backend-workspace.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
字段与错误码的权威定义在[契约](../contract/v1/README.md#backend-lifecycle-and-workspace-contexts),这里只讲怎么用、为什么这样设计。
1010

1111
> **宿主支持。** Lithe 桌面端声明 `backend` 和 `pluginFunctions`(版本都是 `0`),所以本篇的函数协议、宿主服务和跨插件调用都在桌面端运行。宿主只授予它实现了的服务:一次会话能调用哪些方法,以运行时 `lithe/host/getCapabilities` 的 `services` 为准,不要按文档假定(第 5 节、第 10 节)。桌面端的声明和说明见
12-
> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释。
12+
> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go) 中 `Declared()` 上方的注释。
1313
> 三个官方 SDK 都实现了本篇的协议:Node.js SDK 0.5.0、Java SDK 0.5.0 和 Rust SDK 0.4.0
1414
> (见各自 README 的 Host services:[Node.js](../sdk/node/README.md#host-services)、[Java](../sdk/java/README.md#host-services)、
1515
> [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
332332
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.
333333

334334
> **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
335-
> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/preview/desktop/internal/pluginhost/pluginhost.go).
335+
> [`pluginhost.go`](https://github.com/1lck/Lithe-IDEA/blob/main/desktop/internal/pluginhost/pluginhost.go).
336336
> 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
337337
> (see Host services in each README: [Node.js](../sdk/node/README.md#host-services), [Java](../sdk/java/README.md#host-services),
338338
> [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),

0 commit comments

Comments
 (0)