You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa1c2ee
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -238,6 +241,7 @@ Writing, testing, and publishing a plugin all happen in **your own repository**.
238
241
| Learn from existing plugins |[Example plugins](#example-plugins)|
239
242
| See what API-01–44 offer today, the version of each capability and protocol, and what Core and the Lithe desktop client support |[Plugin reference](reference/README.md)|
240
243
| Look up the exact meaning of a field |[Plugin contract](#plugin-contract)|
244
+
| Propose a public API extension for a plugin |[API PR guide (Chinese)](guides/plugin-api-pr-guide.zh-CN.md)|
241
245
| Change the contract, guides, or SDKs and verify locally |[Contributing and maintenance](#contributing-and-maintenance)|
242
246
243
247
### What a plugin is
@@ -277,12 +281,12 @@ When you need run, test, or build tool integration, read the [build, run, and te
277
281
| --- | --- | --- |
278
282
|`schemaVersion`|`0`| The manifest file format |
279
283
|`pluginAPIVersion`|`0`| The plugin API version; Lithe uses it to decide whether it can read your manifest |
280
-
|`requires`|`0` for each capability you use | Which capabilities your plugin uses; Lithe offers the plugin for installation only where it supports them |
284
+
|`requires`|The lowest existing version that covers each capability you use | Which capabilities your plugin uses; Lithe offers the plugin for installation only where it supports them |
281
285
|`version`| Your choice | Your plugin's own version |
282
286
283
287
`requires` must list **exactly** the capabilities you use: leaving one out or listing one extra gets the manifest rejected. For example, a plugin that only uses declarative build systems writes `"requires": { "buildSystems": 0 }` and nothing more.
284
288
285
-
A capability may get a new version later. One change adds a new version to exactly one capability, and a plugin that does not use it keeps writing `0`and stays installable. For what each capability covers, Core's support table, and whether the Lithe desktop client declares it, see [Capability and protocol versions](reference/capabilities-and-versions.md#capability-versions-requires); a plugin that needs a capability the Lithe desktop client does not declare is not offered for installation there.
289
+
Keep existing capability versions and select the lowest that covers the actual use; declare `1` or `2` when its behavior is needed rather than forcing every value to `0`. Reuse API-01–44 and extend the appropriate domain compatibly. Tool-specific requirements must not raise any system API version; even a public change must first show why a compatible extension is insufficient. See the [API PR guide (Chinese)](guides/plugin-api-pr-guide.zh-CN.md). For what each capability covers, Core's support table, and whether the Lithe desktop client declares it, see [Capability and protocol versions](reference/capabilities-and-versions.md#capability-versions-requires); a plugin that needs a capability the Lithe desktop client does not declare is not offered for installation there.
286
290
287
291
### Validate plugin.json in your editor
288
292
@@ -414,6 +418,8 @@ For questions or suggestions about the contract, [open an issue in the Core repo
414
418
415
419
### Contributing and maintenance
416
420
421
+
Before extending a public plugin API, read the [API PR guide (Chinese)](guides/plugin-api-pr-guide.zh-CN.md): domain reuse, version restrictions, compatibility and release order, useful unified logs with redaction, error-code uniqueness, and support in all four official SDKs in the same PR. New examples may follow later.
422
+
417
423
A PR that changes the contract, guides, reference, or SDKs goes to the [Core repository](https://github.com/Lithe-IDEA/Lithe-core-rust), in the same PR as the matching Rust Core change. Run the commands below at the **root of the Core repository**; CI runs them from `.github/workflows/plugins-verify.yml` at the repository root on every change that touches `shared/plugins/` or `rust/`.
0 commit comments