From 9591c251e93045f42c830d4dd78bfb5967685af2 Mon Sep 17 00:00:00 2001 From: Knotty Wyvern Date: Wed, 28 Oct 2026 02:14:19 -0700 Subject: [PATCH] List the folder grant, terminal, and plugin service modules in the host reference --- docs/plugin-host.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/plugin-host.md b/docs/plugin-host.md index c8da4b0..e574f3d 100644 --- a/docs/plugin-host.md +++ b/docs/plugin-host.md @@ -201,7 +201,9 @@ The other windows load every enabled plugin. A smaller command set for them woul | --- | --- | | `src-tauri/src/plugins.rs` | Package checks, discovery, installation, updates, persistence, removal, leases, settings, and assets | | `src-tauri/src/plugin_sources.rs` | Gitea link parsing and release downloads | -| `src-tauri/src/backgrounds.rs` | Background folder and image commands | +| `src-tauri/src/backgrounds.rs` | Background folder and image commands. Deprecated for plugins: use folder grants | +| `src-tauri/src/folders.rs` | Folder grants for `api.files`: the picker, stored grants, listing, reads, and settings files beside the images | +| `src-tauri/src/pty.rs` | Terminal sessions for `api.pty`. A session with an IPC channel gets raw output bytes; a session without one gets the older window events | | `src/lib/plugins/sdk.ts` | The public package API types | | `src/lib/plugins/externalSession.ts` | Activation, API checks, contributions, mounts, and shutdown | | `src/lib/plugins/external.ts` | Native state sync, module loading, scans, views, tabs, and document types | @@ -211,6 +213,8 @@ The other windows load every enabled plugin. A smaller command set for them woul | `src/lib/plugins/PluginSettings.svelte` | Plugin configuration pages in Settings | | `src/lib/plugins/PluginTools.svelte` / `PluginEditor.svelte` | Dialog views and editor views | | `src/lib/plugins/backgrounds.ts` | Background frames | +| `src/lib/plugins/nativeServices.ts` | The host side of `api.pty` and `api.files`. It binds the plugin ID; the plugin never sends it | +| `src/lib/plugins/services.ts` | `api.services`: services that one plugin offers to another in the same window | | `src/lib/completion/` | The [completion API](completion.md) | | `scripts/packagePlugin.mjs` | The packager for plugin authors | @@ -225,7 +229,7 @@ To make it without a release ZIP, run `node scripts/build.mjs --no-package` in t Unit tests: ```powershell -node --experimental-strip-types --test tests/unit/plugins/plugins.spec.ts tests/unit/plugins/externalPlugins.spec.ts tests/unit/plugins/pluginPackaging.spec.ts tests/unit/plugins/pluginHostExtensions.spec.ts tests/unit/plugins/pluginDocuments.spec.ts tests/unit/plugins/pluginAccess.spec.ts tests/unit/plugins/completion.spec.ts tests/unit/plugins/windowCapabilities.spec.ts tests/unit/theme/backgrounds.spec.ts +node --experimental-strip-types --test tests/unit/plugins/plugins.spec.ts tests/unit/plugins/externalPlugins.spec.ts tests/unit/plugins/pluginPackaging.spec.ts tests/unit/plugins/pluginHostExtensions.spec.ts tests/unit/plugins/pluginDocuments.spec.ts tests/unit/plugins/pluginAccess.spec.ts tests/unit/plugins/completion.spec.ts tests/unit/plugins/windowCapabilities.spec.ts tests/unit/plugins/pluginNativeApis.spec.ts tests/unit/theme/backgrounds.spec.ts ``` Native tests use real temporary files and archives: