The manifest¶
The manifest is the plugin field inside your plugin's package.json. There is no separate manifest file. It carries three fields: main, renderer, and access.
Full annotated shape¶
{
"name": "@acme/my-plugin",
"version": "0.1.0",
"engines": { "lore": ">=0.9.0-0 <1.0.0" },
"dependencies": {
// Resolved from the workspace while the SDK is not on npm.
"@lore-vcs/desktop-plugins-sdk": "workspace:^"
},
"plugin": {
// Backend entry: CJS, must default-export a definePluginMain() result.
"main": "dist/main.js",
// Renderer entry: ESM, must default-export a definePluginRenderer() result.
// Optional: omit if your plugin has no UI contributions.
"renderer": "dist/renderer.js",
// Opt-in grants for bridge surfaces. See access-grants.md.
"access": [
"data:repository.current",
"events:branches.updated",
"call:repository.users"
]
}
}
Field notes¶
mainmust point to a file that exists after build. The host callsrequire(main)and expects a default export produced bydefinePluginMain().rendereris loaded by the host's renderer process via dynamic import. It must default-export adefinePluginRenderer()result. Omit it if your plugin has no slot contributions or pages.accessis checked at every bridge call. A surface you didn't grant throwsGrantDeniedon first use. Malformed grants fail the plugin at load time. See Access grants.engines.loreis a required semver constraint on the host version. The host compares it against the app version usingsemver.satisfieswithincludePrerelease: true. A missingengines.lorefails manifest parsing. A valid range that does not match the host version records the plugin with an error and skips activation.lore-plugin buildandlore-plugin packrefuse a value that is not a valid semver range before writing anything, and the Plugins screen refuses a zip whose range does not match the running app, showing the reason on the file's row.peerDependencieslists anything the host supplies rather than your bundle, notably@epicgames/eds-react. The renderer build externalizes a fixed set of packages (react,react/jsx-runtime,react-dom,react-dom/client, the SDK entry points, and@epicgames/eds-react), and the host resolves them through its import map at runtime. Listing them underdependencieswould wrongly imply your plugin ships its own copy. Pair each one with adevDependencyat the same range so your package still typechecks and tests standalone.- Output paths.
lore-plugin buildwrites the main tier todist/main.jsand the renderer entry todist/renderer.js. It refuses to build whenplugin.mainorplugin.rendererpoint anywhere else, or whenrendereris declared and there is nosrc/renderer.tsorsrc/renderer.tsx. See Build, pack, and install a plugin. - Unknown fields. The host rejects any other key under
plugin. The oldcontributesandactivationEventsfields are not supported; usereg.provide()in the renderer andreg.activateEagerly()in the backend instead.
Contributions are registered at runtime¶
Contributions (slot components and pages) are registered imperatively in your renderer's register() function via reg.provide(). The manifest carries main, renderer, and access, and nothing else.
This gives you two properties:
- Type-checked at registration.
reg.provide(tag, component)checks the component's props against the slot's declared prop interface at compile time. - Static until disposal. There is no dynamic contribution API. A contribution whose visibility depends on runtime state should always be registered and render conditionally from data it subscribes to. Renderer slots and pages covers the data-plane pattern in detail.
// renderer.ts
export default definePluginRenderer<MyContract>(() => ({
register(reg) {
// Type-safe: BranchActionChip's props must match the slot's declared interface.
reg.provide("branch-row.actions", BranchActionChip, { mode: "append" });
},
}));
Example: @lore/branch-explorer¶
@lore/branch-explorer is the plugin that ships with Lore Desktop as the default Branches tab view. This is its manifest, with build-only dependencies omitted:
{
"name": "@lore/branch-explorer",
"version": "0.1.0",
"engines": {
"lore": ">=0.9.0-0 <1.0.0"
},
"peerDependencies": {
"@epicgames/eds-react": "^3.12.0"
},
"devDependencies": {
"@epicgames/eds-react": "^3.12.0"
},
"plugin": {
"main": "dist/main.js",
"renderer": "dist/renderer.js",
"access": [
"data:app.language",
"data:repository.branches",
"data:repository.archivedBranches",
"data:repository.currentRevision",
"data:repository.revisions",
"call:repository.create",
"call:repository.users",
"call:repository.refreshBranches",
"call:repository.switch",
"call:repository.archive",
"call:repository.restore",
"call:repository.merge",
"call:repository.syncToRevision",
"call:repository.fetchRevisions",
"call:repository.revisionHistory"
]
}
}
It declares fifteen grants across two surface types: five data: grants for read-only subscriptions (host UI language, branches, archived branches, current revision, revisions) and ten call: grants for mutating operations (create, switch, archive, restore, merge, sync) and queries (refresh, fetch revisions, revision history). This is typical for a full-featured tab that both reads and writes repository state.
data:app.language is the one non-repository.* read. It is the host's UI language and locale.
The manifest declares what your plugin needs. The next page explains how the host enforces those declarations at runtime.