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
A marketplace is a JSON index that lists plugins and the release archives of each version. Hosts fetch, cache, and download; Rust Core's plugins.marketplace.* commands decide whether an index is valid, whether a version can be installed on the current platform, and which permissions and programs the install review lists, so every host shows the same catalog and the same review.
Outside API-01–44 (an installation and packaging contract); see the API catalog
Trust
See Package trust; community packages use vendor.signatureRequirement: "none"
Lithe desktop
Passes the capabilities it declares as hostCapabilities to validateIndex and installReview. See Host status
Official SDKs
Not SDK-related
Index and availability rules
Rule
Details
Index schemaVersion
Must be 0; any other value rejects the whole index (plugin.index.schemaUnsupported)
Entry pluginAPIVersion
Required; only 0 can be available, and any other value makes that version unavailable (plugin.index.apiUnsupported) without invalidating the index
Entry requires
Required, at least one entry, equal to the package manifest's requires; a capability ID or version the contract does not define is allowed but the version is never available. A host therefore knows before downloading whether it can run it
Host capability table
validateIndex offers a version only when the host and this Core build both support every entry of its requires; without hostCapabilities it offers none. A plugin that uses no build systems is therefore still offered to a host that cannot run them
Platform identifiers
The known ones are darwin-arm64, darwin-x64, windows-arm64, and windows-x64; other well-formed identifiers may appear and simply never match
Sources
Source
Location
Rules
Official
Plugins/marketplace/index.json in the Lithe repository
A read-only copy ships with the application for offline use; refreshing fetches https://raw.githubusercontent.com/Lithe-IDEA/Lithe-IDEA/HEAD/Plugins/marketplace/index.json
A preset community source treated as third-party in every respect (community trust, dev.lithe IDs refused); enabled by default and removable, and the host remembers the removal instead of adding it back
Third-party
Added by the user
resolveSource turns what the user pasted into the index URL to fetch; see the table below
User input
Result
An https index URL
Used as is, with the # fragment removed
https://github.com/<owner>/<repo>
lithe-plugin-index.json at the root of the default branch (HEAD)
…/blob/<ref>/<path>
The matching raw file
Plain http, embedded credentials, other GitHub pages
plugin.source.invalid
raw.githubusercontent.com caches a branch URL for minutes, so a just-merged index can look unchanged. For a GitHub-hosted index without a query, resolveSource also returns revision: { repository: { owner, name }, ref }, the branch or tag the URL follows: HEAD, the first path segment, or refs/heads/<name> / refs/tags/<name>. It is null for other sources and for a URL already at a full commit. A host may look the ref's current commit up with the GitHub latestCommit operation and call resolveSource again with commit (a full SHA-1 or SHA-256, otherwise plugin.source.commitInvalid); the answer then adds pinned: { commit, indexURL, recommendationsURL }, the same files at that commit, or null when nothing can be pinned. The host fetches the pinned URLs and falls back to the unpinned ones when the lookup or the fetch fails. indexURL stays the source's identity: the host records and compares it, never the pinned URL. A branch whose name contains / is only pinned when written as refs/heads/<name>.
Fetched indexes are cached in platform cache or Application Support storage, never inside the installation.
Index entries
Field
Rules
id
Plugin ID; must equal id in the package's plugin.json
name, author, description, license
Display metadata; must not be empty
localizedDescriptions
Optional translations of description, keyed by language tag such as zh-Hans; hosts pick the interface language and fall back to description
repository
https://github.com/<owner>/<repo> that owns the plugin's releases and issue tracker
homepage
Optional https URL
tags
Optional single words, lowercased and sorted by Core
icon
Optional raw.githubusercontent.com file of the same repository
versions[]
version, pluginAPIVersion, requires, releaseDate (YYYY-MM-DD), and downloads[]
downloads[]
platforms (for example darwin-arm64, windows-x64), downloadURL, and the archive's lowercase hex sha256; a platform may appear in at most one download of a version
A downloadURL must be a .zip GitHub Release asset of the entry's own repository (https://github.com/<owner>/<repo>/releases/download/<tag>/<asset>.zip, owner and repository compared case-insensitively), so an index cannot point a plugin at another project's release.
Validation and availability
validateIndex takes {index, sourceKind: "official" | "thirdParty", platform, hostCapabilities?}. A malformed index root or a schemaVersion other than 0 rejects the whole index; otherwise it returns {plugins, rejected}:
Output
Contents
rejected
Refused entries in index order with their error: malformed entries plugin.index.invalid; an official-namespace ID from a third-party source plugin.index.officialNamespace; a repeated ID keeps the first listing and refuses later ones with plugin.index.duplicate
plugins
Sorted by ID; each entry is normalized, lists versions newest first (each with its own requires), and carries platforms, latestVersion, latestReleaseDate, and availability
The newest version with this platform's archive that the host can run: pluginAPIVersion0, and every capability in its requires declared by the host at the version it names
No version lists this platform; hosts show "not supported on " instead of an install action
Trust and install review
Install route
Flow
Official
An entry is official only when it comes from the official source and its package passes the Lithe publisher signature
Community marketplace
Entries from third-party sources: check the archive against the index SHA-256 (plugin.archive.checksumMismatch) → validate the declaration and package → installReview → show the review → install after the user confirms. The index checksum proves a match to that index's bytes, not an authenticated publisher
Community local disk
A user-selected ZIP or unpacked directory has no index or repository: take a private snapshot first, then validate and review the snapshot with the same Core command; a local checksum is never shown as a repository match
installReview takes {manifest, expectedID?, expectedVersion?, approvedPrograms?, hostCapabilities?} and returns {id, version, permissions, programs, newPrograms}. An ID or version that differs from the index entry returns plugin.package.mismatch; a package that requires a capability version missing from hostCapabilities returns plugin.api.unsupported. programs lists everything the host may start for the plugin, sorted by kind, language, and tool:
A VCS provider process, with vcs, vcsTool, and mayUseNetwork
runtime
A runtime the host discovers and passes to a language server, build provider, or VCS provider
run, test
Run and test commands with their argument templates
projectGenerator
A command step of a project generator; files and archive steps start no program
Each entry carries every field that decides what actually runs, so an update that only changes arguments, argument templates, or the validation probe is a new program. Hosts show all permissions and the complete program list, and persist each approved program as canonical JSON without dropping fields; a display may use readable labels but must keep all canonical content, with the full JSON for any kind it cannot describe completely.
Case
Needs user confirmation
Local disk: first install, update, reinstall, same-version replacement
Always, even when programs and permissions are unchanged; an empty newPrograms never waives it
Marketplace: first install, no previous approval, or nonempty newPrograms
Yes
Marketplace: update with no new programs
May reuse the recorded approval
When several sources list the same ID, the user chooses the source at install time and later updates come only from it. A local disk installation is never a marketplace source or an automatic update subscription. A confirmation always shows the complete current review; installReview only describes and compares, and grants no approval.
Host status
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
5 entries: a Zig plugin with two versions, an official-namespace plugin (one version with pluginAPIVersion 99), a plugin with only pluginAPIVersion 99, an Elixir plugin with three versions, and a duplicate Zig entry
7 validateIndex cases: the official source without a host capability table, a third-party source listing the official namespace, a Windows platform picking its own archive, a host that runs language servers but not build systems, a host with build systems but no build providers keeping the language-only version, a host without language servers offered no language plugin, and a capability Core cannot validate never being offered
19 installReview cases: first install, an unchanged update, argument or probe changes needing new approval, a package that does not match its entry, an unsigned official-namespace package, and the capability requirements of build plugins