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 be5d12d
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -332,7 +332,7 @@ A plugin that uses only language servers, run, and test needs no backend. When y
332
332
|[Rust](sdk/rust/README.md)| 0.4.0 | Rust 1.87+ |[`sdk-rust-v0.4.0`](https://github.com/Lithe-IDEA/Lithe-core-rust/releases/tag/sdk-rust-v0.4.0): `lithe-plugin-sdk-rust-0.4.0.crate` and `.sha256`| Pin the tag as a Git dependency (`Cargo.lock` records the commit), or unpack it as a `path` dependency; compile one backend executable per platform |
333
333
|[Go](sdk/go/README.md)| Unreleased | Go 1.27.4+ | Go module tags `shared/plugins/sdk/go/v<version>`, served by the Go module proxy with no Release assets; not tagged yet | Pin a tag or commit with `go get` (`go.sum` records the content hash); compile one backend executable per platform |
334
334
|[Node.js](sdk/node/README.md)| 0.5.0 | Node.js 20.3+ |[`sdk-node-v0.5.0`](https://github.com/Lithe-IDEA/Lithe-core-rust/releases/tag/sdk-node-v0.5.0): `lithe-plugin-sdk-node-0.5.0.tgz` and `.sha256`| Unpack it, copy `package/` into the plugin package, and import it by relative path |
335
-
|[Java](sdk/java/README.md)| 0.5.0 | Java 8+ |[`sdk-java-v0.5.0`](https://github.com/Lithe-IDEA/Lithe-core-rust/releases/tag/sdk-java-v0.5.0): `lithe-plugin-sdk-java-0.5.0.jar` and `.sha256`| Shade it into the backend JAR |
335
+
|[Java](sdk/java/README.md)| 0.5.0 (source version) | Java 8+ |No corresponding Release; [vendor sources from a pinned Core commit](sdk/java/README.md#getting-the-sdk)| Pin the commit and per-file SHA-256 in `sdk.lock.json`, then compile into the backend JAR |
336
336
337
337
The Rust Git dependency looks like this:
338
338
@@ -346,7 +346,7 @@ Add the Go SDK like this (until the first tag, name a commit of `main`; Go recor
346
346
go get github.com/Lithe-IDEA/Lithe-core-rust/shared/plugins/sdk/go@<tag or commit>
347
347
```
348
348
349
-
All SDK sources live under `sdk/` in this directory. The Node.js, Java, and Rust SDKs are published in the [Core repository's Releases](https://github.com/Lithe-IDEA/Lithe-core-rust/releases) (tags `sdk-node-v<version>`, `sdk-java-v<version>`, `sdk-rust-v<version>`), not on npm, Maven, or crates.io; the Go SDK is a Go module in a subdirectory of this repository, its versions are the tags `shared/plugins/sdk/go/v<version>`, and the Go module proxy and checksum database serve it. The Rust and Go SDKs implement only the plugin backend (`backend`): plugin functions and host services; write build backends with the Node.js or Java SDK and VCS backends with the Node.js SDK. Each SDK's README has a "What the Lithe desktop serves" section naming the protocols the Lithe desktop client provides; the version of each protocol is in [Process protocol versions](reference/capabilities-and-versions.md#process-protocol-versions). The versions above all speak the version `0` protocols; the retired `lithe-plugin-docs` repository published earlier SDKs that speak an older protocol, and the Lithe desktop client does not accept plugins written with them, so use only versions released from the Core repository.
349
+
All SDK sources live under `sdk/` in this directory. The Node.js and Rust SDK release location is the [Core repository's Releases](https://github.com/Lithe-IDEA/Lithe-core-rust/releases) (tags `sdk-node-v<version>` and `sdk-rust-v<version>`), not npm or crates.io; the Java SDK has no corresponding Release or Maven repository publication, so [vendor its sources from a pinned Core commit](sdk/java/README.md#getting-the-sdk); the Go SDK is a Go module in a subdirectory of this repository, its versions are the tags `shared/plugins/sdk/go/v<version>`, and the Go module proxy and checksum database serve it. The Rust and Go SDKs implement only the plugin backend (`backend`): plugin functions and host services; write build backends with the Node.js or Java SDK and VCS backends with the Node.js SDK. Each SDK's README has a "What the Lithe desktop serves" section naming the protocols the Lithe desktop client provides; the version of each protocol is in [Process protocol versions](reference/capabilities-and-versions.md#process-protocol-versions). The versions above all speak the version `0` protocols; the retired `lithe-plugin-docs` repository published earlier SDKs that speak an older protocol, and the Lithe desktop client does not accept plugins written with them, so use only SDKs from the Core repository.
350
350
351
351
Download SDKs and plugin backends at build time and verify against the SHA-256 (or Git commit, or `go.sum`) you pinned. An installed package has no `npm install` step. Large independent dependencies can declare [`managedRuntimes`](contract/v1/README.md#managed-runtimes): the host verifies and prepares them after approved installation, and complete cached sets work offline. Plugin launch scripts must not bypass this declaration or rewrite the package.
> [sdk-rust-v0.4.0](https://github.com/Lithe-IDEA/Lithe-core-rust/releases/tag/sdk-rust-v0.4.0)). With another language, handle the requests and notifications below yourself.
341
+
> [sdk-rust-v0.4.0](https://github.com/Lithe-IDEA/Lithe-core-rust/releases/tag/sdk-rust-v0.4.0); Java uses [sources from a pinned Core commit](../sdk/java/README.md#getting-the-sdk)). With another language, handle the requests and notifications below yourself.
344
342
> For how far Core and the desktop support each capability, see the [capability and protocol versions](../reference/capabilities-and-versions.md). Questions about the contract go to
@@ -104,7 +104,7 @@ Plugins use `litheLogging` 0 and `lithe/log` to send restricted operation facts.
104
104
105
105
The host must offer `capabilities.experimental.litheLogging.versions: [0]` in initialize, and the SDK replies with `capabilities.experimental.litheLogging.version: 0`. When the protocol is missing, the SDK refuses to initialize; it does not fall back to another logging path. A failure before initialization has negotiated logging is recorded only through the existing RPC error and the host's process lifecycle; the plugin must not send a log notification before negotiation.
106
106
107
-
The APIs in this guide are provided by Node.js SDK 0.5.0, Java SDK 0.5.0, Rust SDK 0.4.0, and the Go SDK. The first three have release tags `sdk-node-v0.5.0`, `sdk-java-v0.5.0`, and `sdk-rust-v0.4.0`; the Go SDK's versions are the module tags `shared/plugins/sdk/go/v<version>`, and none has been pushed yet. Pin the matching release tag and SHA-256 in your build inputs (for Go, `go.sum` pins it); do not depend on an absolute path on a development machine. These SDKs require the host to offer `litheLogging` 0; until a stable Lithe release offers it, mark the GitHub Release of a plugin built with these SDKs as a prerelease.
107
+
The APIs in this guide are provided by Node.js SDK 0.5.0, Java SDK 0.5.0, Rust SDK 0.4.0, and the Go SDK. Node.js and Rust have release tags `sdk-node-v0.5.0` and `sdk-rust-v0.4.0`; Java uses [sources from a pinned Core commit](../sdk/java/README.md#getting-the-sdk); the Go SDK's versions are the module tags `shared/plugins/sdk/go/v<version>`, and none has been pushed yet. Pin the matching release tag and SHA-256 in your build inputs (for Java sources, `sdk.lock.json` pins the Core commit and per-file hashes; for Go, `go.sum` pins it); do not depend on an absolute path on a development machine. These SDKs require the host to offer `litheLogging` 0; until a stable Lithe release offers it, mark the GitHub Release of a plugin built with these SDKs as a prerelease.
@@ -234,4 +234,4 @@ The `version` of an exported or called plugin function (1 to 1000) is not a cont
234
234
235
235
### Official SDKs
236
236
237
-
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](../contract/v1/README.md#official-backend-sdk) and in the [Node.js](../sdk/node/README.md), [Java](../sdk/java/README.md), [Rust](../sdk/rust/README.md), and [Go](../sdk/go/README.md) READMEs. Node.js, Java, and Rust downloads are on the [Lithe-core-rust Releases](https://github.com/Lithe-IDEA/Lithe-core-rust/releases) page; 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](../README.md) for why.
237
+
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](../contract/v1/README.md#official-backend-sdk) and in the [Node.js](../sdk/node/README.md), [Java](../sdk/java/README.md), [Rust](../sdk/rust/README.md), and [Go](../sdk/go/README.md) READMEs. Node.js and Rust use the [Lithe-core-rust Releases](https://github.com/Lithe-IDEA/Lithe-core-rust/releases) page; Java uses [sources from a pinned Core commit](../sdk/java/README.md#getting-the-sdk); 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](../README.md) for why.
0 commit comments