Add workspace links, restore tabs, and update project guides
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
# Documentation archive
|
||||
|
||||
[User guide](../user-guide.md) · [Development](../development.md) · [Release history](../releases.md)
|
||||
[User guide](../user-guide.md) · [Development](../development.md)
|
||||
|
||||
These records preserve past checks, decisions, and proposals. They do not define current behavior or authorize planned work.
|
||||
|
||||
| Record | Purpose |
|
||||
| --- | --- |
|
||||
| [Linux validation, October 14–15](linux-validation-2026-10.md) | Native builds, desktop smoke checks, Debian/AppImage packages, and test limits for 0.1.34 |
|
||||
| [Plugin release trial, October 5](plugin-release-trial-2026-10-05.md) | Simulated Gitea downloads, native installation, and repeat steps |
|
||||
| [Kanban review, October 8](kanban-review-2026-10-08.md) | Scope, assignments, checks, and the 0.1.13 test builds |
|
||||
| [Kanban changes, October 8](kanban-changes-2026-10-08.md) | Editor, settings, browser, and plugin changes |
|
||||
| [Kanban follow-up, October 8](kanban-followup-2026-10-08.md) | Menu, theme, and Git graph checks |
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
# Linux validation records: October 2026
|
||||
|
||||
[Documentation archive](README.md) · [Linux development](../linux.md) · [Linux installation](../installation.md#install-on-linux)
|
||||
|
||||
These records preserve the October 14–15 checks for version 0.1.34.
|
||||
Results and outstanding work describe those test runs, not the current release.
|
||||
|
||||
## Validation record: 2026-10-14
|
||||
|
||||
Validated on `desk`: Ubuntu 26.04.1 LTS, x86_64, four CPUs, 7.2 GiB reported RAM,
|
||||
XFCE/X11, Linux 7.0.0-38-generic. The execution environment reports a container
|
||||
boundary and underlying KVM virtualization. This does not validate Ubuntu 24.04,
|
||||
Wayland, ARM, or another distribution.
|
||||
|
||||
Source: base commit `edef2520afc92f7896454bf94a8ea15bbf4e1684` plus the Linux
|
||||
readiness patch and the Browser window portability fix. The original transferred
|
||||
source archive had SHA-256
|
||||
`b16643bfc7a634e5a5d17a7c246e87d95a458c06fb8afb45899a28a460e03047`.
|
||||
The first native compile found a Windows-only `drag_and_drop(false)` call in
|
||||
`src-tauri/src/browser.rs`; it now uses the cross-platform
|
||||
`disable_drag_drop_handler()` API already used by the settings window.
|
||||
|
||||
Toolchain: Node.js 24.22.0, pnpm 10.34.7, Rust/Cargo 1.93.1, GLib 2.88.0,
|
||||
GTK 3.24.52, and WebKitGTK 4.1 version 2.52.6. Native builds used one job and
|
||||
`CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0` to conserve RAM and disk.
|
||||
|
||||
| Check | Recorded result |
|
||||
| --- | --- |
|
||||
| `pnpm install --frozen-lockfile` and `npm ci --prefix browser-runtime` | Passed |
|
||||
| `pnpm check` | Passed; zero errors and warnings |
|
||||
| `pnpm build` | Passed; bundle-size warnings remain |
|
||||
| `pnpm browser:check` and `pnpm browser:test` | Passed; 44 Browser unit tests |
|
||||
| Browser Linux packaging and `pnpm browser:stage` | Passed; x86_64 runtime staged |
|
||||
| `npm --prefix browser-runtime run test:packaged` | Passed; all 12 engine smoke checks, sandbox enabled |
|
||||
| `pnpm test` | 238 passed, one skipped, two test files failed because the Table Formulas package was absent |
|
||||
| `cargo test --manifest-path src-tauri/Cargo.toml --lib --locked --offline -j 1` | Passed after the portability fix; 92 passed, three ignored |
|
||||
| `pnpm tauri build --debug --no-bundle -- --locked --offline -j 1` | Passed; native debug executable, version 0.1.34 |
|
||||
| Tauri X11 launch | Visible 1400 by 900 window; rendered frontend verified with an internal capture |
|
||||
| Host Browser integration | Open Browser opened a Browser tab with address and profile controls; no webpage-navigation claim |
|
||||
|
||||
GUI checks used isolated task-local XDG settings/data directories, and the test
|
||||
processes were closed afterward. Virtual-GPU EGL/VAAPI warnings occurred; they did
|
||||
not prevent these smoke checks. No sandbox, security, swap, or permission workaround
|
||||
was used. Existing user settings and workspaces were not used.
|
||||
|
||||
No installer or release package was produced, versions were unchanged, and nothing
|
||||
was published. Remaining work includes supplying/building `RuneStone_Table_Formulas`
|
||||
and rerunning the full source suite, completing the [Linux desktop checks](../linux.md#desktop-checks), and
|
||||
validating Debian/AppImage installation and lifecycle behavior on the intended
|
||||
target distribution. These results do not establish full Linux support.
|
||||
|
||||
### Initial bounded release attempt
|
||||
|
||||
The normal release profile (`opt-level = 3`, full LTO, one codegen unit) was
|
||||
attempted with one Cargo job, locked/offline dependencies, and the already-tested
|
||||
frontend output. Before starting, desk had about 2.0 GiB available RAM, effectively
|
||||
full 4.0 GiB swap, and 4.1 GiB free disk. A temporary user service bounded the
|
||||
entire build to 1,677,721,600 bytes of RAM and no additional swap.
|
||||
|
||||
The release build reached the GTK Rust crate but exceeded that hard cap. The
|
||||
service recorded `Result=oom-kill`, `MemoryPeak=1677721600`, and zero swap use after
|
||||
14 minutes 47 seconds. Soft memory throttling was tried first; it caused repeated
|
||||
reclaim, so the soft threshold was removed while retaining the hard cap. No larger
|
||||
memory allowance was attempted. The temporary service was cleaned up; dependency
|
||||
and build caches were preserved. About 3.3 GiB disk remained afterward.
|
||||
|
||||
No optimized executable, Debian package, or AppImage was produced. AppImage
|
||||
bundling was not attempted because it needs the release executable. Package
|
||||
contents, generated dependency metadata, and installation lifecycle therefore
|
||||
remain unvalidated. `ldd` found no missing libraries for the previously tested
|
||||
debug host and staged Browser on desk. In addition to host libraries, the Browser
|
||||
needs NSPR/NSS, CUPS, and ALSA libraries; their Ubuntu 26.04 providers include
|
||||
`libnspr4`, `libnss3`, `libcups2t64`, and `libasound2t64`. Check the eventual package
|
||||
declares the appropriate runtime dependencies; the current machine having them
|
||||
installed does not prove that package metadata is complete.
|
||||
|
||||
The smallest next step is to free more RAM on desk, or use a host with more
|
||||
available memory, then retry the cached release build with a larger bounded
|
||||
allowance. Starting with at least 3 GiB available RAM provides more headroom but
|
||||
does not establish the required peak; measure it during the retry. Recheck disk
|
||||
before bundling. Existing debug-build and smoke-test results above still stand.
|
||||
|
||||
### Release package validation: 2026-10-15
|
||||
|
||||
After desk returned with more headroom, a fresh resource check found 4,956,172 KiB
|
||||
available RAM (about 4.73 GiB), nearly all 4 GiB swap free, and 47 GiB free disk.
|
||||
No finite inherited user-cgroup memory limit was found. The cached release build
|
||||
was retried with one job, a temporary 3.5 GiB memory cap, and no build-group swap.
|
||||
It completed successfully in 12 minutes 32 seconds, with 3.5 GiB peak group memory
|
||||
and no OOM event. The earlier failure establishes only that the chosen 1,600 MiB
|
||||
cap was insufficient; it does not establish that the 8 GB VM cannot build.
|
||||
|
||||
The initial Debian bundle declared only GTK and WebKitGTK. Added
|
||||
`src-tauri/tauri.linux.conf.json` to declare OpenSSL plus the Browser's NSS/NSPR and
|
||||
ALSA dependencies. The release executable requires GLIBC 2.39, so the Debian
|
||||
metadata also declares `libc6 (>= 2.39)`. Tauri retains its default GTK/WebKitGTK
|
||||
dependencies. Recheck symbol requirements when changing the compiler or build host;
|
||||
this floor is evidence from this build, not a permanent portability guarantee.
|
||||
The Debian package was regenerated and its final dependency metadata verified.
|
||||
|
||||
| Release check | Recorded result |
|
||||
| --- | --- |
|
||||
| Normal optimized release profile and Debian bundling | Passed, using locked/offline Cargo dependencies and the previously validated frontend |
|
||||
| Debian package | `RuneStone_0.1.34_amd64.deb`, package name `rune-stone`, version `0.1.34`, architecture `amd64` |
|
||||
| Debian package checksums, desktop entry, resources and permissions | Passed; host and Browser executables are executable, Browser resource directory is traversable, packaged checksums match |
|
||||
| Debian shared libraries on desk | All host and Browser libraries resolve |
|
||||
| Extracted Debian GUI smoke | Host rendered a visible window, launched its own packaged Browser executable, and rendered an HTTPS page |
|
||||
| AppImage bundling | Passed from the same optimized release executable; 2 minutes 18 seconds, about 1.6 GiB peak memory, no build-group swap |
|
||||
| Extracted AppImage GUI smoke | AppRun launched, bundled WebKitGTK child processes were used, its packaged Browser launched, and an HTTPS page rendered |
|
||||
|
||||
Both package tests used isolated task-local settings/data and closed their test
|
||||
processes afterward. AppImage's supported extraction route was used because the
|
||||
VM does not expose `/dev/fuse`; FUSE-mounted execution was not tested. Virtual-GPU
|
||||
acceleration warnings did not prevent rendering. Versions remain 0.1.34 under the
|
||||
explicit validation-build instruction. These are unsigned experimental artifacts,
|
||||
not published releases. Completed package files, metadata, test limits, and
|
||||
checksums are archived under `releases/0.1.34/` outside Git.
|
||||
|
||||
No app was installed system-wide and no existing user workspace/settings were
|
||||
used. Installation, same-version reinstall, upgrade, removal, the full desktop
|
||||
acceptance matrix, Ubuntu 24.04, Wayland, and other architectures remain untested.
|
||||
The Table Formulas external dependency remains absent. Native library resolution
|
||||
on desk and successful extraction smoke checks do not prove clean-machine package
|
||||
installation or compatibility with other distributions.
|
||||
The AppImage's bundled WebKitGTK and JavaScriptCoreGTK libraries require GLIBC
|
||||
2.43. The Debian executable's GLIBC 2.39 floor therefore does not describe the
|
||||
AppImage's minimum runtime. Treat this AppImage as an Ubuntu 26.04 validation
|
||||
artifact rather than a portable Ubuntu 24.04 build.
|
||||
@@ -0,0 +1,26 @@
|
||||
# Plugin release trial: October 5, 2026
|
||||
|
||||
[Documentation archive](README.md) · [Plugin host checks](../plugin-host.md#modules-and-checks)
|
||||
|
||||
This record describes a historical trial. It does not establish current release availability or live installation support.
|
||||
|
||||
The four local packages passed a simulated Gitea release download and isolated native installation on October 5, 2026.
|
||||
The test checked the installed hashes and kept all four plugins disabled.
|
||||
|
||||
| Plugin | Package version |
|
||||
| --- | --- |
|
||||
| Terminal | 0.1.0 |
|
||||
| Table Formulas | 0.1.0 |
|
||||
| PDF Viewer | 0.0.1 |
|
||||
| Project management | 0.2.3 |
|
||||
|
||||
The authenticated check of the personal Gitea server found no releases in these four repositories.
|
||||
That check did not test a live release installation or create releases or tags.
|
||||
It does not establish current release availability.
|
||||
|
||||
## Repeat the trial
|
||||
|
||||
Complete the [host setup](../development.md#run-from-source) first. Run the following command from the RuneStone repository root.
|
||||
To repeat the four-package trial, place exactly these four ZIPs in a folder and set `RUNESTONE_GIT_TRIAL_PACKAGES` to its absolute path.
|
||||
Then run `cargo test --manifest-path src-tauri/Cargo.toml --lib four_plugin_release_trial -- --ignored --nocapture`.
|
||||
For current native and browser checks, see the [plugin host reference](../plugin-host.md#modules-and-checks).
|
||||
+41
-3
@@ -104,10 +104,48 @@ Use [Tauri's signing guide](https://v2.tauri.app/distribute/sign/windows/) befor
|
||||
|
||||
These checks require a Windows test account or virtual machine. A successful build alone does not confirm them.
|
||||
|
||||
## Experimental platform packages
|
||||
## Build Linux packages
|
||||
|
||||
Linux and macOS packages remain unvalidated. Build on the target platform with the correct Browser runtime.
|
||||
Use the [Linux readiness guide](linux.md) for system packages, desktop checks, and Debian/AppImage commands.
|
||||
Prepare the Browser runtime and complete the [Linux development checks](linux.md) on the target processor architecture.
|
||||
Run the commands from the RuneStone repository root.
|
||||
The examples use the Tauri CLI from [package.json](../package.json) and [Linux bundle configuration](../src-tauri/tauri.linux.conf.json).
|
||||
|
||||
Choose the package format for the build. Each example produces a package in the output folder listed below:
|
||||
|
||||
```sh
|
||||
# Example: Debian package
|
||||
pnpm tauri build --bundles deb -- --locked
|
||||
|
||||
# Example: AppImage
|
||||
pnpm tauri build --bundles appimage -- --locked
|
||||
```
|
||||
|
||||
Do not use `pnpm build:installer` on Linux. That command selects the Windows installer.
|
||||
These direct Tauri commands do not manage the project release version or archive a
|
||||
release. Before making a distributable, select the next version using the
|
||||
[version policy](../AGENTS.md#versioning), keep all four version fields consistent,
|
||||
and restore them if packaging fails. Move completed packages into
|
||||
`releases/<version>/` together with checksums and the recorded source/test results;
|
||||
do not leave duplicate completed packages in the toolchain bundle directory.
|
||||
Packages appear under `src-tauri/target/release/bundle/deb/` or `src-tauri/target/release/bundle/appimage/`.
|
||||
|
||||
Use the [Linux installation procedure](installation.md#install-on-linux) when testing a Debian package.
|
||||
Test launch without development tools, same-version reinstall, upgrade, and removal on a separate test account.
|
||||
Reinstall and upgrade must preserve settings and workspace files. Removal must preserve workspaces outside the installation folder.
|
||||
|
||||
For shared packages, build on the oldest distribution you intend to support that supplies WebKitGTK 4.1.
|
||||
A package built on a newer system can require libraries unavailable on an older system.
|
||||
An AppImage does not remove this compatibility limit.
|
||||
See [Tauri's AppImage guidance](https://v2.tauri.app/distribute/appimage/) and [Debian packaging guidance](https://v2.tauri.app/distribute/debian/).
|
||||
|
||||
Call a distribution supported only after its native tests and package checks pass.
|
||||
Repeat the automated checks on a Linux runner before each Linux release.
|
||||
Keep the source commit, environment, results, and untested cases with each release.
|
||||
See the [October 2026 validation records](archive/linux-validation-2026-10.md) for earlier package checks and their limits.
|
||||
|
||||
## Experimental macOS packages
|
||||
|
||||
Build on macOS with the correct Browser runtime.
|
||||
|
||||
On macOS, a local application bundle can use:
|
||||
|
||||
|
||||
+35
-7
@@ -1,6 +1,6 @@
|
||||
# Development guide
|
||||
|
||||
[RuneStone](../README.md) · [Interface design](ui-design.md) · [Build and package](builds.md) · [Plugin development](plugins.md)
|
||||
[RuneStone](../README.md) · [Interface design](ui-design.md) · [Build and package](builds.md) · [Plugin development](plugin-development.md)
|
||||
|
||||
For task-based app help, use the [user guide](user-guide.md).
|
||||
Dated implementation records and proposals live in the [archive](archive/README.md).
|
||||
@@ -67,12 +67,37 @@ The interface uses Svelte 5, TypeScript, and Vite.
|
||||
CodeMirror handles live Markdown editing, Monaco handles source editing, and xterm handles terminals.
|
||||
Windows is the first target. The older WriterHost component remains unused.
|
||||
|
||||
Use the [Linux readiness guide](linux.md) for Linux setup, native tests, and package checks.
|
||||
Use the [Linux development guide](linux.md) for source prerequisites, Browser preparation, and native desktop checks.
|
||||
Use the [Linux package build guide](builds.md#build-linux-packages) for Debian and AppImage builds.
|
||||
|
||||
See the setup steps below to install dependencies and run the desktop app.
|
||||
See the [roadmap](roadmap.md) for goals and milestones. See the [product scope](product-scope.md) for capabilities and architecture constraints.
|
||||
See the [user guide](user-guide.md) for current behavior and limits.
|
||||
See the [interface design reference](ui-design.md) for shared controls, dimensions, and visual checks. Agent instructions live in [AGENTS.md](../AGENTS.md).
|
||||
See the [plugin guide](plugins.md) to build and install feature packages, use the API, and understand current plugin boundaries.
|
||||
Use the [plugin development reference](plugin-development.md) for build examples, package requirements, releases, and the API.
|
||||
Use the [plugin host reference](plugin-host.md) for installation internals, recovery, and host checks.
|
||||
|
||||
## Product boundaries
|
||||
|
||||
RuneStone keeps workspace documents as ordinary local files.
|
||||
Basic Markdown table editing and rendering belong in the core.
|
||||
Users must retain access to workspace files when plugins are disabled.
|
||||
Store workspace display order, pins, and bookmarks in `.runestone/`.
|
||||
Store installed plugins and retained plugin settings in application data. See [plugin storage](plugin-host.md#storage-and-recovery).
|
||||
Prefer a local Git clone. Do not use a live network share as the sync path.
|
||||
|
||||
Native file access, file watching, search, Git, and terminal services belong in Rust.
|
||||
The [plugin development reference](plugin-development.md) defines the supported package format and host API.
|
||||
The [built-in browser runtime](#built-in-browser-runtime) has its own architecture and setup requirements.
|
||||
|
||||
The following remain outside the product scope:
|
||||
|
||||
- A plugin marketplace
|
||||
- Obsidian or VS Code plugin compatibility
|
||||
- Cloud sync, live collaboration, or mobile
|
||||
- A debugger or a full IDE
|
||||
- Auto-commit on save
|
||||
|
||||
Track future work and roadmaps in RuneStone Project Management.
|
||||
|
||||
## Run from source
|
||||
|
||||
@@ -138,9 +163,10 @@ detected shell profile and check shell prompt integration.
|
||||
A browser can show the interface, but real folder access, file writes, and terminals require the desktop host.
|
||||
Use `pnpm tauri dev` for manual tests of those features.
|
||||
|
||||
Run `pnpm build:plugins` before tests that use Terminal or Table Formulas.
|
||||
Clone [RuneStone_Table_Formulas](https://git.knottywyvern.com/kwyvern-gitea/RuneStone_TableFormulas) beside RuneStone and install its dependencies first.
|
||||
Set `RUNESTONE_TABLE_FORMULAS_ROOT` if that checkout is elsewhere.
|
||||
Before tests that use plugin packages, build each required plugin with its own command.
|
||||
Use the [Table Formulas example](plugin-development.md#example-table-formulas) and the [Terminal example](plugin-development.md#example-terminal).
|
||||
`pnpm build:plugins` builds only Table Formulas.
|
||||
See the [plugin host checks](plugin-host.md#modules-and-checks) for compiled package paths and overrides.
|
||||
These tests load the compiled packages through the production module loader.
|
||||
The browser tests use the real interface with mocked desktop communication.
|
||||
They do not replace native desktop tests.
|
||||
@@ -202,3 +228,5 @@ Runtime compilation and staging do not produce a new RuneStone installer version
|
||||
The installer includes the staged runtime from `src-tauri/browser-engine`. Follow the project version policy when creating that installer.
|
||||
Use `scripts/browserInteraction.smoke.mjs` to check the host interface against a real runtime.
|
||||
Keep its results separate from the native Tauri window checks.
|
||||
|
||||
Browser startup obtains a session token for its window. Native requests check that token, and cleanup revokes it.
|
||||
|
||||
+4
-61
@@ -8,8 +8,6 @@
|
||||
| Linux, Intel/AMD 64-bit | Supplied experimental Debian installer. Installation lifecycle remains untested. |
|
||||
| macOS, Apple silicon | Supplied experimental DMG installer. Installation and desktop acceptance remain untested. |
|
||||
|
||||
No public download location is configured. Get a Windows, Linux, or macOS installer from the maintainer who supplied your test release.
|
||||
Linux and macOS do not yet have a fully validated installation or supported operating-system version range.
|
||||
The current macOS DMG targets Apple silicon only; Intel Macs are not covered.
|
||||
|
||||
## Install on Windows
|
||||
@@ -18,11 +16,8 @@ The current macOS DMG targets Apple silicon only; Intel Macs are not covered.
|
||||
2. Open the file.
|
||||
3. Complete setup.
|
||||
4. Open RuneStone from the Start menu.
|
||||
5. Use the folder button to open or create a workspace.
|
||||
|
||||
Setup installs RuneStone for your Windows account. Keep the default destination unless you need another location.
|
||||
You do not need a terminal or developer tools.
|
||||
If WebView2 is missing, setup downloads the runtime. Keep your internet connection active until setup finishes.
|
||||
|
||||
## Update or reinstall on Windows
|
||||
|
||||
@@ -36,12 +31,12 @@ You do not need to uninstall first. Setup preserves workspace files and settings
|
||||
|
||||
## Install on Linux
|
||||
|
||||
The experimental unsigned Debian package includes the app and its Browser runtime.
|
||||
The Debian package includes the app and its Browser runtime.
|
||||
The current `0.1.42` package targets Intel/AMD 64-bit (`amd64`), was built on
|
||||
Ubuntu 26.04.1 LTS, and requires GLIBC 2.39 or newer. Other distributions,
|
||||
architectures, and older Ubuntu versions have not been validated.
|
||||
|
||||
1. Get `RuneStone_<version>_amd64.deb` and its `SHA256SUMS` from the maintainer.
|
||||
1. Get `RuneStone_<version>_amd64.deb` and its `SHA256SUMS`.
|
||||
2. Save both files to Downloads and open Terminal in that folder.
|
||||
3. Verify the download, then install the package:
|
||||
|
||||
@@ -63,7 +58,7 @@ For an update, close RuneStone and run the install command with the newer file.
|
||||
Installation, reinstall, upgrade, removal, and workspace/settings preservation
|
||||
still need lifecycle testing; package-content checks alone do not establish them.
|
||||
|
||||
For source development, use the [Linux guide](linux.md), which contains the
|
||||
For source development, use the [Linux development guide](linux.md), which contains the
|
||||
prerequisites, Browser preparation, and native desktop checks.
|
||||
|
||||
## Install on macOS
|
||||
@@ -72,13 +67,9 @@ prerequisites, Browser preparation, and native desktop checks.
|
||||
2. Open the disk image and drag RuneStone into Applications.
|
||||
3. Eject the disk image.
|
||||
4. Open RuneStone from Applications.
|
||||
5. Use the folder button to open or create a workspace outside the application bundle.
|
||||
|
||||
The experimental 0.1.42 installer targets Apple silicon and includes its Browser runtime.
|
||||
You do not need a terminal or developer tools. The disk image and bundled signatures have been checked,
|
||||
but installation, desktop launch, Browser rendering, and update acceptance remain untested.
|
||||
The app has local ad hoc signatures, without Developer ID signing or Apple notarization.
|
||||
If macOS blocks opening it, check the installer source with the maintainer and report the exact message.
|
||||
You do not need a terminal or developer tools. The app has local ad hoc signatures, without Developer ID signing or Apple notarization.
|
||||
|
||||
## Update or reinstall on macOS
|
||||
|
||||
@@ -87,52 +78,4 @@ If macOS blocks opening it, check the installer source with the maintainer and r
|
||||
3. Drag RuneStone into Applications and confirm replacement of the existing app.
|
||||
4. Eject the disk image and open RuneStone from Applications.
|
||||
|
||||
Keep workspace folders outside the application bundle. You do not need to remove those folders or your user settings.
|
||||
|
||||
## Try the source on macOS
|
||||
|
||||
This route is also experimental. It does not establish Intel or Apple silicon support.
|
||||
|
||||
1. Install Node.js 24, pnpm 10, and stable Rust.
|
||||
2. Install Xcode Command Line Tools with `xcode-select --install`.
|
||||
3. Download or clone RuneStone into a macOS folder.
|
||||
4. Open Terminal in that folder and run the commands below.
|
||||
|
||||
```sh
|
||||
pnpm install --frozen-lockfile
|
||||
npm ci --prefix browser-runtime
|
||||
npm --prefix browser-runtime run package
|
||||
pnpm browser:stage
|
||||
pnpm tauri dev
|
||||
```
|
||||
|
||||
Tauri permits Command Line Tools for desktop development. See its [macOS prerequisites](https://v2.tauri.app/start/prerequisites/#macos).
|
||||
The supplied macOS installer is experimental; Developer ID signing and notarization remain unresolved.
|
||||
The bundled Browser runtime also needs a build for the target platform. A successful frontend build does not establish Browser support.
|
||||
See [experimental packaging](builds.md#experimental-platform-packages) before producing an application bundle.
|
||||
|
||||
## Remove RuneStone
|
||||
|
||||
On Windows, open Settings → Apps → Installed apps, select RuneStone, then select Uninstall.
|
||||
Windows 10 calls this list Apps & features.
|
||||
|
||||
On macOS, quit RuneStone and move it from Applications to the Trash.
|
||||
|
||||
Keep workspace folders outside the application folder. Removal leaves those separate folders in place.
|
||||
On Linux, close RuneStone and run `sudo apt remove rune-stone` to remove the Debian package.
|
||||
Linux removal remains untested. Keep workspaces outside application directories.
|
||||
An experimental source session stops with Ctrl+C in its terminal. It does not install a desktop package.
|
||||
|
||||
## Setup help
|
||||
|
||||
| Problem | Action |
|
||||
| --- | --- |
|
||||
| WebView2 download fails | Restore the internet connection, then run the installer again. |
|
||||
| Windows shows an unknown publisher | Local builds are unsigned. Check the file source with the maintainer. |
|
||||
| macOS blocks opening RuneStone | The experimental build is not Apple notarized. Check the installer source with the maintainer and report the exact message. |
|
||||
| A workspace will not open | Choose a folder that your account can access. |
|
||||
| Linux reports missing or incompatible dependencies | Check the package architecture and GLIBC requirement above. Keep the APT error text and ask the maintainer for a compatible build. |
|
||||
| A source build fails | Check the platform prerequisites and the [development help](development.md#development-help). |
|
||||
| A source launch lacks Browser support | Check whether the Browser runtime exists for that platform. |
|
||||
|
||||
The [user guide](user-guide.md#resolve-file-conflicts) covers document errors after launch.
|
||||
|
||||
+47
-216
@@ -1,17 +1,25 @@
|
||||
# Linux readiness
|
||||
# Linux development
|
||||
|
||||
[Complete Ubuntu setup commands](../README.md#linux-ubuntu-2404-lts-intelamd-64-bit) · [Developer guide](development.md)
|
||||
[Development guide](development.md) · [Linux installation and updates](installation.md#install-on-linux) · [Build Linux packages](builds.md#build-linux-packages)
|
||||
|
||||
Linux support is experimental. Limited native validation is recorded below;
|
||||
the complete desktop and installer acceptance checks remain outstanding.
|
||||
Voice typing is outside the Linux acceptance criteria.
|
||||
The initial target is Ubuntu 24.04 LTS, x86_64, with a local workspace and Bash.
|
||||
This is a validation target, not a claim of tested support. Record the actual host below;
|
||||
results on another distribution do not establish Ubuntu compatibility.
|
||||
This guide covers Linux source development, Browser preparation, and native desktop checks.
|
||||
To install a supplied RuneStone package, use [Installation and updates](installation.md#install-on-linux).
|
||||
Past build and test results are in the [Linux validation reference](archive/linux-validation-2026-10.md).
|
||||
|
||||
## 1. Record the target
|
||||
## Development prerequisites
|
||||
|
||||
Run these commands on the Linux box:
|
||||
Use a Linux source checkout with Node.js 24, pnpm 10, and a stable Rust toolchain.
|
||||
See the [shared development requirements](development.md#requirements) for repository setup.
|
||||
Use [Tauri's Linux prerequisites](https://v2.tauri.app/start/prerequisites/#linux) for native libraries, including GTK and WebKitGTK 4.1.
|
||||
The first build needs internet access for dependencies.
|
||||
|
||||
Open a terminal with Node.js, pnpm, and Cargo available on its PATH.
|
||||
If a command is missing, load the environment configured by its installer before you continue.
|
||||
Do not copy Windows `node_modules`, `src-tauri/target`, or `browser-engine` folders into Linux.
|
||||
|
||||
## Record the development environment
|
||||
|
||||
Run these commands in the Linux session used for native checks:
|
||||
|
||||
```sh
|
||||
cat /etc/os-release
|
||||
@@ -19,43 +27,14 @@ uname -m
|
||||
printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$XDG_SESSION_TYPE"
|
||||
```
|
||||
|
||||
Record the distribution, version, processor architecture, desktop, and session type with the test results.
|
||||
Record the distribution, version, processor architecture, desktop, and session type with the source commit and test results.
|
||||
Test the session you use first. Test both Wayland and X11 before claiming support for both.
|
||||
An Intel/AMD build does not establish ARM support.
|
||||
|
||||
## 2. Prepare the Linux build environment
|
||||
## Build and run from source
|
||||
|
||||
Use the [complete README setup](../README.md#linux-ubuntu-2404-lts-intelamd-64-bit) for a first Ubuntu 24.04 trial.
|
||||
It includes every tool installation command, source download, Browser preparation, and native launch.
|
||||
Close the app and press Ctrl+C before the checks below.
|
||||
Do not copy Windows `node_modules` or `src-tauri/target` folders into Linux.
|
||||
|
||||
The commands use the project's configured private clone address.
|
||||
Source access is required. No public source-download location is configured.
|
||||
The first build needs internet access for tools and dependencies.
|
||||
|
||||
### Command sources
|
||||
|
||||
The setup instructions were checked against these primary sources on October 15, 2026:
|
||||
|
||||
- [Tauri Linux prerequisites](https://v2.tauri.app/start/prerequisites/#linux): native development libraries and Rust installation.
|
||||
- [Node.js downloads](https://nodejs.org/en/download) and [nvm installation](https://github.com/nvm-sh/nvm#install--update-script): Node.js 24 and its per-user installer.
|
||||
- [pnpm 10 installation](https://pnpm.io/10.x/installation#using-npm): the npm installation method.
|
||||
- [Rust installation](https://rust-lang.github.io/rustup/installation/index.html): the Rust toolchain and account environment.
|
||||
- [Ubuntu 24.04 packages](https://packages.ubuntu.com/noble/): distribution package names, including the `t64` runtime libraries.
|
||||
|
||||
Browser commands come from `browser-runtime/package.json` and its packaging and staging scripts in this repository.
|
||||
The README commands were reviewed on Windows. They were not executed on a clean Ubuntu 24.04 system.
|
||||
|
||||
## 3. Check the source and open the app
|
||||
|
||||
Load the account tools and enter the source folder before these checks:
|
||||
|
||||
```sh
|
||||
. "$HOME/.nvm/nvm.sh"
|
||||
. "$HOME/.cargo/env"
|
||||
cd "$HOME/RuneStone"
|
||||
```
|
||||
Run the commands below from the RuneStone repository root in a graphical Linux session.
|
||||
Commands come from [package.json](../package.json) and [browser-runtime/package.json](../browser-runtime/package.json).
|
||||
|
||||
From the Linux checkout, install the project dependencies:
|
||||
|
||||
@@ -86,9 +65,13 @@ work around sandbox failures with `--no-sandbox` or by running RuneStone as root
|
||||
Test the Browser on the intended distro, including its user-namespace policy.
|
||||
The native host uses WebKitGTK and the Browser uses Electron; both need testing.
|
||||
|
||||
### Source checks
|
||||
|
||||
The full test suite needs the Table Formulas package.
|
||||
Clone `RuneStone_Table_Formulas` beside RuneStone and install its dependencies, as described in the [plugin guide](plugins.md).
|
||||
Then run these checks from RuneStone:
|
||||
Clone `RuneStone_Table_Formulas` beside RuneStone.
|
||||
Install its dependencies as described in the [Table Formulas build example](plugin-development.md#example-table-formulas).
|
||||
|
||||
`pnpm build:plugins` builds only Table Formulas. Run these checks from the RuneStone repository root:
|
||||
|
||||
```sh
|
||||
pnpm build:plugins
|
||||
@@ -98,21 +81,27 @@ pnpm build
|
||||
cargo test --manifest-path src-tauri/Cargo.toml --lib --locked
|
||||
```
|
||||
|
||||
### Development session
|
||||
|
||||
Run the desktop app in your graphical Linux session:
|
||||
|
||||
```sh
|
||||
pnpm tauri dev
|
||||
```
|
||||
|
||||
This command starts Vite and opens the native desktop app. Keep the terminal open during development.
|
||||
Save your work and press Ctrl+C in that terminal to stop the session.
|
||||
See the [daily workflow](development.md#daily-workflow) for source edits and rebuild behavior.
|
||||
|
||||
A successful build does not establish desktop compatibility.
|
||||
Browser tests use mocked desktop calls and Chromium. They do not test Linux file access or WebKitGTK behavior.
|
||||
|
||||
## 4. Complete the desktop checks
|
||||
## Desktop checks
|
||||
|
||||
Use a disposable workspace outside the installation folder.
|
||||
Record each result, the source commit, and any error message.
|
||||
The complete acceptance checks below remain unverified on Linux. The validation
|
||||
record distinguishes the limited smoke checks already completed.
|
||||
Use this checklist for native behavior after source changes. Voice typing is outside the Linux acceptance criteria.
|
||||
Keep each result separate from the [historical validation records](archive/linux-validation-2026-10.md).
|
||||
|
||||
| Area | Pass criteria |
|
||||
| --- | --- |
|
||||
@@ -126,183 +115,25 @@ record distinguishes the limited smoke checks already completed.
|
||||
| Terminal plugin | Install the Terminal ZIP. Bash starts in the workspace, accepts Unicode, resizes, and exits when its session closes. |
|
||||
| Settings | Change preferences, restart, and confirm persistence. Check separate workspace windows. |
|
||||
|
||||
Install the Terminal package separately as described in the [plugin guide](plugins.md).
|
||||
Build Terminal with the [Terminal example](plugin-development.md#example-terminal), then [install its ZIP](plugins.md#install-a-plugin).
|
||||
Check terminal profiles after a desktop launch too. A desktop launcher can have a different `PATH` from an interactive shell.
|
||||
|
||||
Current filename rules reject some names that Linux permits, including colons and backslashes.
|
||||
Use ordinary portable filenames for the first trial. Record unsupported names as a limitation.
|
||||
Use ordinary portable filenames for baseline checks. Record unsupported names as a limitation.
|
||||
Mounted network shares need separate tests because Linux mount paths do not reliably select the current polling fallback.
|
||||
Do not claim network workspace support from a local-disk test.
|
||||
|
||||
## 5. Build and test a package
|
||||
## Package builds
|
||||
|
||||
After the desktop checks pass, build on Linux for the target processor architecture.
|
||||
Choose the package format that matches the trial:
|
||||
Use [Build Linux packages](builds.md#build-linux-packages) for Debian and AppImage commands, release handling, and package checks.
|
||||
|
||||
```sh
|
||||
# Ubuntu or Debian
|
||||
pnpm tauri build --bundles deb -- --locked
|
||||
|
||||
# AppImage trial
|
||||
pnpm tauri build --bundles appimage -- --locked
|
||||
```
|
||||
|
||||
Do not use `pnpm build:installer` on Linux. That command selects the Windows installer.
|
||||
These direct Tauri commands do not manage the project release version or archive a
|
||||
release. Before making a distributable, select the next version using the
|
||||
[version policy](../AGENTS.md#versioning), keep all four version fields consistent,
|
||||
and restore them if packaging fails. Move completed packages into
|
||||
`releases/<version>/` together with checksums and the recorded source/test results;
|
||||
do not leave duplicate completed packages in the toolchain bundle directory.
|
||||
Packages appear under `src-tauri/target/release/bundle/deb/` or `src-tauri/target/release/bundle/appimage/`.
|
||||
|
||||
Install the Debian package with the distribution package manager, or make the AppImage executable and open it.
|
||||
Test launch without development tools, same-version reinstall, upgrade, and removal on a separate test account.
|
||||
Reinstall and upgrade must preserve settings and workspace files. Removal must preserve workspaces outside the installation folder.
|
||||
|
||||
For shared packages, build on the oldest distribution you intend to support that supplies WebKitGTK 4.1.
|
||||
A package built on a newer system can require libraries unavailable on an older system.
|
||||
An AppImage does not remove this compatibility limit.
|
||||
See [Tauri's AppImage guidance](https://v2.tauri.app/distribute/appimage/) and [Debian packaging guidance](https://v2.tauri.app/distribute/debian/).
|
||||
|
||||
Call a distribution supported only after its native tests and package checks pass.
|
||||
Repeat the automated checks on a Linux runner before each Linux release.
|
||||
No Linux automation is configured yet. Add it when the build host and target distribution are known.
|
||||
|
||||
## Setup help
|
||||
## Development help
|
||||
|
||||
| Problem | Action |
|
||||
| --- | --- |
|
||||
| `sudo` asks for a password | Type your Ubuntu account password, then press Enter. The terminal does not show the characters. |
|
||||
| Git cannot reach `10.0.0.5` | Connect to the maintainer's network, or request a reachable clone address. |
|
||||
| Git requests a username or password | Use repository credentials from the maintainer. Source access is separate from your Ubuntu account. |
|
||||
| `destination path 'RuneStone' already exists` | Keep that folder. For an existing checkout, use the later-launch commands in the README. |
|
||||
| `node`, `pnpm`, or `cargo` is not found | Use the later-launch block to load the account environment. Check that the earlier tool installation completed. |
|
||||
| A system package cannot be found | Check your Ubuntu version with `cat /etc/os-release`. This command list targets Ubuntu 24.04. |
|
||||
| The Browser runtime is missing | From the source folder, repeat `npm ci --prefix browser-runtime`, then its `package` command and `pnpm browser:stage`. |
|
||||
| Electron reports a sandbox or user-namespace error | Keep the sandbox enabled. Report the error and Ubuntu version to the maintainer. Do not run RuneStone as root. |
|
||||
| The first build stops | Keep the first error text and failed command. Report them with your Ubuntu version and available memory/disk space. |
|
||||
| Node.js, pnpm, or Cargo is missing | Load your toolchain environment and check the [development prerequisites](#development-prerequisites). |
|
||||
| The Browser runtime is missing | From the repository root, repeat the Browser dependency, package, and staging commands in [Build and run from source](#build-and-run-from-source). |
|
||||
| Electron reports a sandbox or user-namespace error | Keep the sandbox enabled. Record the error and distribution version. Run RuneStone as an ordinary desktop user. |
|
||||
| A build stops | Record the first error, failed command, distribution version, and available memory and disk space. |
|
||||
|
||||
Use the [validation checks](#4-complete-the-desktop-checks) after the first launch.
|
||||
|
||||
## Validation record: 2026-10-14
|
||||
|
||||
Validated on `desk`: Ubuntu 26.04.1 LTS, x86_64, four CPUs, 7.2 GiB reported RAM,
|
||||
XFCE/X11, Linux 7.0.0-38-generic. The execution environment reports a container
|
||||
boundary and underlying KVM virtualization. This does not validate Ubuntu 24.04,
|
||||
Wayland, ARM, or another distribution.
|
||||
|
||||
Source: base commit `edef2520afc92f7896454bf94a8ea15bbf4e1684` plus the Linux
|
||||
readiness patch and the Browser window portability fix. The original transferred
|
||||
source archive had SHA-256
|
||||
`b16643bfc7a634e5a5d17a7c246e87d95a458c06fb8afb45899a28a460e03047`.
|
||||
The first native compile found a Windows-only `drag_and_drop(false)` call in
|
||||
`src-tauri/src/browser.rs`; it now uses the cross-platform
|
||||
`disable_drag_drop_handler()` API already used by the settings window.
|
||||
|
||||
Toolchain: Node.js 24.22.0, pnpm 10.34.7, Rust/Cargo 1.93.1, GLib 2.88.0,
|
||||
GTK 3.24.52, and WebKitGTK 4.1 version 2.52.6. Native builds used one job and
|
||||
`CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0` to conserve RAM and disk.
|
||||
|
||||
| Check | Recorded result |
|
||||
| --- | --- |
|
||||
| `pnpm install --frozen-lockfile` and `npm ci --prefix browser-runtime` | Passed |
|
||||
| `pnpm check` | Passed; zero errors and warnings |
|
||||
| `pnpm build` | Passed; bundle-size warnings remain |
|
||||
| `pnpm browser:check` and `pnpm browser:test` | Passed; 44 Browser unit tests |
|
||||
| Browser Linux packaging and `pnpm browser:stage` | Passed; x86_64 runtime staged |
|
||||
| `npm --prefix browser-runtime run test:packaged` | Passed; all 12 engine smoke checks, sandbox enabled |
|
||||
| `pnpm test` | 238 passed, one skipped, two test files failed because the Table Formulas package was absent |
|
||||
| `cargo test --manifest-path src-tauri/Cargo.toml --lib --locked --offline -j 1` | Passed after the portability fix; 92 passed, three ignored |
|
||||
| `pnpm tauri build --debug --no-bundle -- --locked --offline -j 1` | Passed; native debug executable, version 0.1.34 |
|
||||
| Tauri X11 launch | Visible 1400 by 900 window; rendered frontend verified with an internal capture |
|
||||
| Host Browser integration | Open Browser opened a Browser tab with address and profile controls; no webpage-navigation claim |
|
||||
|
||||
GUI checks used isolated task-local XDG settings/data directories, and the test
|
||||
processes were closed afterward. Virtual-GPU EGL/VAAPI warnings occurred; they did
|
||||
not prevent these smoke checks. No sandbox, security, swap, or permission workaround
|
||||
was used. Existing user settings and workspaces were not used.
|
||||
|
||||
No installer or release package was produced, versions were unchanged, and nothing
|
||||
was published. Remaining work includes supplying/building `RuneStone_Table_Formulas`
|
||||
and rerunning the full source suite, completing the desktop checks above, and
|
||||
validating Debian/AppImage installation and lifecycle behavior on the intended
|
||||
target distribution. These results do not establish full Linux support.
|
||||
|
||||
### Initial bounded release attempt
|
||||
|
||||
The normal release profile (`opt-level = 3`, full LTO, one codegen unit) was
|
||||
attempted with one Cargo job, locked/offline dependencies, and the already-tested
|
||||
frontend output. Before starting, desk had about 2.0 GiB available RAM, effectively
|
||||
full 4.0 GiB swap, and 4.1 GiB free disk. A temporary user service bounded the
|
||||
entire build to 1,677,721,600 bytes of RAM and no additional swap.
|
||||
|
||||
The release build reached the GTK Rust crate but exceeded that hard cap. The
|
||||
service recorded `Result=oom-kill`, `MemoryPeak=1677721600`, and zero swap use after
|
||||
14 minutes 47 seconds. Soft memory throttling was tried first; it caused repeated
|
||||
reclaim, so the soft threshold was removed while retaining the hard cap. No larger
|
||||
memory allowance was attempted. The temporary service was cleaned up; dependency
|
||||
and build caches were preserved. About 3.3 GiB disk remained afterward.
|
||||
|
||||
No optimized executable, Debian package, or AppImage was produced. AppImage
|
||||
bundling was not attempted because it needs the release executable. Package
|
||||
contents, generated dependency metadata, and installation lifecycle therefore
|
||||
remain unvalidated. `ldd` found no missing libraries for the previously tested
|
||||
debug host and staged Browser on desk. In addition to host libraries, the Browser
|
||||
needs NSPR/NSS, CUPS, and ALSA libraries; their Ubuntu 26.04 providers include
|
||||
`libnspr4`, `libnss3`, `libcups2t64`, and `libasound2t64`. Check the eventual package
|
||||
declares the appropriate runtime dependencies; the current machine having them
|
||||
installed does not prove that package metadata is complete.
|
||||
|
||||
The smallest next step is to free more RAM on desk, or use a host with more
|
||||
available memory, then retry the cached release build with a larger bounded
|
||||
allowance. Starting with at least 3 GiB available RAM provides more headroom but
|
||||
does not establish the required peak; measure it during the retry. Recheck disk
|
||||
before bundling. Existing debug-build and smoke-test results above still stand.
|
||||
|
||||
### Release package validation: 2026-10-15
|
||||
|
||||
After desk returned with more headroom, a fresh resource check found 4,956,172 KiB
|
||||
available RAM (about 4.73 GiB), nearly all 4 GiB swap free, and 47 GiB free disk.
|
||||
No finite inherited user-cgroup memory limit was found. The cached release build
|
||||
was retried with one job, a temporary 3.5 GiB memory cap, and no build-group swap.
|
||||
It completed successfully in 12 minutes 32 seconds, with 3.5 GiB peak group memory
|
||||
and no OOM event. The earlier failure establishes only that the chosen 1,600 MiB
|
||||
cap was insufficient; it does not establish that the 8 GB VM cannot build.
|
||||
|
||||
The initial Debian bundle declared only GTK and WebKitGTK. Added
|
||||
`src-tauri/tauri.linux.conf.json` to declare OpenSSL plus the Browser's NSS/NSPR and
|
||||
ALSA dependencies. The release executable requires GLIBC 2.39, so the Debian
|
||||
metadata also declares `libc6 (>= 2.39)`. Tauri retains its default GTK/WebKitGTK
|
||||
dependencies. Recheck symbol requirements when changing the compiler or build host;
|
||||
this floor is evidence from this build, not a permanent portability guarantee.
|
||||
The Debian package was regenerated and its final dependency metadata verified.
|
||||
|
||||
| Release check | Recorded result |
|
||||
| --- | --- |
|
||||
| Normal optimized release profile and Debian bundling | Passed, using locked/offline Cargo dependencies and the previously validated frontend |
|
||||
| Debian package | `RuneStone_0.1.34_amd64.deb`, package name `rune-stone`, version `0.1.34`, architecture `amd64` |
|
||||
| Debian package checksums, desktop entry, resources and permissions | Passed; host and Browser executables are executable, Browser resource directory is traversable, packaged checksums match |
|
||||
| Debian shared libraries on desk | All host and Browser libraries resolve |
|
||||
| Extracted Debian GUI smoke | Host rendered a visible window, launched its own packaged Browser executable, and rendered an HTTPS page |
|
||||
| AppImage bundling | Passed from the same optimized release executable; 2 minutes 18 seconds, about 1.6 GiB peak memory, no build-group swap |
|
||||
| Extracted AppImage GUI smoke | AppRun launched, bundled WebKitGTK child processes were used, its packaged Browser launched, and an HTTPS page rendered |
|
||||
|
||||
Both package tests used isolated task-local settings/data and closed their test
|
||||
processes afterward. AppImage's supported extraction route was used because the
|
||||
VM does not expose `/dev/fuse`; FUSE-mounted execution was not tested. Virtual-GPU
|
||||
acceleration warnings did not prevent rendering. Versions remain 0.1.34 under the
|
||||
explicit validation-build instruction. These are unsigned experimental artifacts,
|
||||
not published releases. Completed package files, metadata, test limits, and
|
||||
checksums are archived under `releases/0.1.34/` outside Git.
|
||||
|
||||
No app was installed system-wide and no existing user workspace/settings were
|
||||
used. Installation, same-version reinstall, upgrade, removal, the full desktop
|
||||
acceptance matrix, Ubuntu 24.04, Wayland, and other architectures remain untested.
|
||||
The Table Formulas external dependency remains absent. Native library resolution
|
||||
on desk and successful extraction smoke checks do not prove clean-machine package
|
||||
installation or compatibility with other distributions.
|
||||
The AppImage's bundled WebKitGTK and JavaScriptCoreGTK libraries require GLIBC
|
||||
2.43. The Debian executable's GLIBC 2.39 floor therefore does not describe the
|
||||
AppImage's minimum runtime. Treat this AppImage as an Ubuntu 26.04 validation
|
||||
artifact rather than a portable Ubuntu 24.04 build.
|
||||
See [development help](development.md#development-help) for port conflicts, stale windows, and offline Cargo errors.
|
||||
|
||||
@@ -0,0 +1,458 @@
|
||||
# Plugin development reference
|
||||
|
||||
[Development](development.md) · [Install and manage plugins](plugins.md)
|
||||
|
||||
This reference is for authors who develop, package, and release RuneStone plugins.
|
||||
It covers the shared package contract, build examples, release requirements, and plugin APIs.
|
||||
For installation internals and host tests, use the [plugin host reference](plugin-host.md).
|
||||
For installation, updates, switches, and removal, use the [user guide for plugins](plugins.md).
|
||||
All plugins use the same package and installation system.
|
||||
|
||||
- [Package contract](#package-contract)
|
||||
- [Versioning](#versioning-for-plugin-authors-and-agents)
|
||||
- [Build and release a plugin](#build-and-release-a-plugin)
|
||||
- [Build examples](#build-examples)
|
||||
- [Publishing releases](#publishing-releases)
|
||||
- [Plugin API](#plugin-api)
|
||||
- [Git API](#git-api)
|
||||
- [Temporary background API](#temporary-background-api)
|
||||
|
||||
## Package contract
|
||||
|
||||
Place `plugin.json` at the root of the ZIP archive:
|
||||
|
||||
```json
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "org.example.hello",
|
||||
"name": "Hello",
|
||||
"author": "Example author",
|
||||
"description": "Open a small example view.",
|
||||
"version": "1.0.0",
|
||||
"apiVersion": 1,
|
||||
"entry": "main.js",
|
||||
"access": "full-app"
|
||||
}
|
||||
```
|
||||
|
||||
The package API is version 1. Its interface lives in `src/lib/plugins/sdk.ts`.
|
||||
RuneStone 0.1.5 adds optional `placement: "editor"` for views that belong beside documents.
|
||||
These views open in the editor area with a tab. Document tabs retain their buffers when users switch views.
|
||||
Closing the plugin tab or disabling the package disposes the view.
|
||||
The default placement is `"dialog"`, so existing packages keep their current behavior.
|
||||
Older hosts ignore the placement field. Plugins that require editor placement need RuneStone 0.1.5 or later.
|
||||
All packages use one API and the same installation, enable, disable, and removal lifecycle.
|
||||
Versions use three numeric parts with an optional lowercase hotfix suffix, such as `0.2.28a`.
|
||||
Schema and API versions must match the supported version exactly.
|
||||
The `runestone.*` prefix follows the same rules as other package IDs. It does not prove the publisher's identity.
|
||||
|
||||
Package names use ASCII letters, digits, dots, underscores, and hyphens, with forward slashes between directories.
|
||||
IDs use lowercase letters, digits, dots, and hyphens and start with a letter.
|
||||
Windows device names, parent traversal, absolute paths, links, junctions, and case-insensitive collisions are invalid.
|
||||
Limits are 5,000 entries, 100 MiB of expanded data, and 25 MiB per file.
|
||||
The manifest has a 64 KiB limit. The final installed path cannot exceed 240 characters.
|
||||
|
||||
The entry is one compiled `.js` or `.mjs` module. Bundle dependencies into it.
|
||||
Relative module imports cannot resolve from its Blob URL. Read packaged assets through the API instead.
|
||||
Raw TypeScript, Svelte source, native libraries, plugin dependencies, and automatic updates are unsupported.
|
||||
|
||||
## Versioning for plugin authors and agents
|
||||
|
||||
Follow the shared [RuneStone versioning policy](../AGENTS.md#versioning). RuneStone and its plugins keep independent version numbers under this policy.
|
||||
Use `zz.yy.xx` and keep routine implementation work in the current `zz.yy` series.
|
||||
|
||||
| Part | When to increase it |
|
||||
| --- | --- |
|
||||
| `xx` | Each new completed regular plugin ZIP build. Hotfixes increase the letter suffix. |
|
||||
| `yy` | A deliberate release ready for build testing, with user direction. Reset `xx` to zero. |
|
||||
| `zz` | A full release, with user direction. Reset `yy` and `xx` to zero. |
|
||||
|
||||
Keep the current version during source edits, fixes, improvements, documentation work, and automated checks.
|
||||
Set the next version when producing the ZIP. Intermediate compilation output does not count as a new build.
|
||||
If no build completes, restore the previous version fields. Failed attempts and retries do not consume version numbers.
|
||||
Report a new version as available only after its ZIP exists. Publishing an existing artifact does not increase its version.
|
||||
Passing automated checks alone does not authorize a `yy` or `zz` increase.
|
||||
A hotfix fixes one item or a narrowly scoped problem in an existing release.
|
||||
Use letters in the actual package version: `0.2.28` → `0.2.28a` → `0.2.28b`.
|
||||
Keep the numeric base for hotfix builds.
|
||||
Advance hotfix suffixes in this order: `a`, `b`, `c`, through `z`, then `aa`, `ab`, and later suffixes.
|
||||
The next regular build increases `xx` and removes the suffix: `0.2.28b` → `0.2.29`.
|
||||
Keep the package version, manifest version, build metadata, ZIP name, release notes, and tag consistent.
|
||||
For example, package version `0.2.28a` produces `runestone.pm-0.2.28a.zip` and uses tag `v0.2.28a`.
|
||||
The shared packager and updated native installer accept these suffixes. Older hosts with numeric-only validation reject suffixed packages.
|
||||
Do not substitute a numeric increment for a hotfix. Add suffix support or report a format blocker before building.
|
||||
Do not bypass validation or overwrite an existing release ZIP.
|
||||
|
||||
## Build and release a plugin
|
||||
|
||||
Use the same package contract for in-house and community plugins.
|
||||
The ZIP is the release file. Its `plugin.json` describes the contents and is not a separate installer.
|
||||
|
||||
```text
|
||||
org.example.hello-1.0.0.zip
|
||||
plugin.json
|
||||
main.js
|
||||
assets/
|
||||
README.md
|
||||
LICENSE
|
||||
```
|
||||
|
||||
The manifest and entry module are required. Assets, a README, and a license are optional package files.
|
||||
Include a README with the host requirement, purpose, install steps, and help contact.
|
||||
Keep JavaScript readable where practical. Avoid minification and obfuscation that make inspection harder.
|
||||
|
||||
1. Compile the plugin into a clean folder with `plugin.json`, its entry module, and the required assets.
|
||||
2. Run `pnpm package:plugin <compiled-folder> [output-folder]` from the RuneStone repository.
|
||||
3. Install the resulting ZIP in RuneStone and test its features, disable action, and uninstall action.
|
||||
4. Share that same ZIP through the [publishing procedure](#publishing-releases).
|
||||
|
||||
Use Node.js 24 or later for the packaging command. The default output folder is `releases/` in the project that contains the compiled folder.
|
||||
Keep plugin release ZIPs in that plugin project, including when the host calls the build.
|
||||
Explicit output folders are for temporary checks or staging. Move completed releases into the owning project's `releases/` folder.
|
||||
It checks the manifest, paths, entry module, and size limits before it writes `<id>-<version>.zip`.
|
||||
It includes every file in the input folder. Keep dependencies, credentials, and unrelated build files outside that folder.
|
||||
The output folder must be outside the input folder.
|
||||
The command rejects an existing ZIP with different contents. Identical contents reuse the existing file.
|
||||
Use the next build version for a changed release and preserve existing ZIPs.
|
||||
Repeated runs with unchanged input produce the same archive bytes.
|
||||
The native installer checks the package again before installation.
|
||||
|
||||
Other build tools can create the same ZIP layout. Do not add a parent folder above `plugin.json`.
|
||||
Do not tell users to load JSON, select a build folder, rename a new release, or install dependencies.
|
||||
Authors in other repositories can run `node <RuneStone-path>/scripts/packagePlugin.mjs <compiled-folder> <output-folder>`.
|
||||
|
||||
## Build examples
|
||||
|
||||
These examples are for plugin developers. To install an existing ZIP, use the [plugin installation guide](plugins.md#install-a-plugin).
|
||||
Complete the [source setup](development.md#run-from-source) before using host build commands.
|
||||
Each plugin has its own build command. Check that project's package scripts before building it.
|
||||
Apply the [versioning policy](#versioning-for-plugin-authors-and-agents) before producing a new release ZIP.
|
||||
|
||||
### Example: Table Formulas
|
||||
|
||||
Source: [Table Formulas repository](https://git.knottywyvern.com/kwyvern-gitea/RuneStone_TableFormulas).
|
||||
The host's [build script](../scripts/buildPlugins.mjs) defines this example.
|
||||
Despite its plural name, `pnpm build:plugins` builds only Table Formulas.
|
||||
|
||||
1. Clone the Table Formulas repository into `RuneStone_Table_Formulas` beside the RuneStone folder.
|
||||
2. In that plugin folder, run `pnpm install --frozen-lockfile`.
|
||||
3. In the RuneStone folder, run `pnpm build:plugins`.
|
||||
4. Install the resulting ZIP through [Settings → Plug-ins](plugins.md#install-a-plugin).
|
||||
|
||||
The ZIP is `../RuneStone_Table_Formulas/releases/runestone.table-formulas-<version>.zip`, relative to RuneStone.
|
||||
The host stages compiled files in `plugin-packages/table-formulas/` for inspection and tests.
|
||||
Set `RUNESTONE_TABLE_FORMULAS_ROOT` when the plugin checkout is elsewhere.
|
||||
The plugin also supports `pnpm package:plugin` from its own folder.
|
||||
Set `RUNESTONE_ROOT` there if its host checkout is elsewhere.
|
||||
|
||||
### Example: Terminal
|
||||
|
||||
Source: [Terminal repository](https://git.knottywyvern.com/kwyvern-gitea/RuneStone_Terminal).
|
||||
Its `package.json` and `scripts/build.mjs` define this example.
|
||||
|
||||
1. Clone the Terminal repository into `RuneStone_Terminal` beside the RuneStone folder.
|
||||
2. In that plugin folder, run `pnpm install --frozen-lockfile`.
|
||||
3. In the same folder, run `pnpm build`.
|
||||
4. Install the resulting ZIP through [Settings → Plug-ins](plugins.md#install-a-plugin).
|
||||
|
||||
The ZIP is `releases/runestone.terminal-<version>.zip`, relative to the Terminal folder.
|
||||
This build bundles its JavaScript dependencies and terminal styles.
|
||||
The host supplies native pseudo-terminal services. The plugin supplies the interface, shortcuts, and session controls.
|
||||
For session controls and appearance, use the [Terminal guide](guides/terminal.md).
|
||||
|
||||
### Example: Workspace overview
|
||||
|
||||
Source: the [Workspace overview fixture](../fixtures/plugins/workspace-overview/plugin.json) in this repository.
|
||||
This small example already contains a JavaScript entry module.
|
||||
|
||||
1. From the RuneStone folder, run `pnpm package:plugin fixtures/plugins/workspace-overview`.
|
||||
2. Install the resulting ZIP from the host's `releases/` folder.
|
||||
3. Choose **Install and enable**.
|
||||
4. Choose **Open tab or view → Workspace overview**.
|
||||
|
||||
You can also use **Commands → Show workspace overview**.
|
||||
This fixture belongs to the host. Release ZIPs for separate plugin projects stay in each plugin's own `releases/` folder.
|
||||
|
||||
The RuneStone installer does not include optional plugin packages.
|
||||
After source changes, build the affected package again and install its new ZIP.
|
||||
|
||||
## Publishing releases
|
||||
|
||||
These requirements apply to RuneStone plugins on any hosting service.
|
||||
The hosting service stores the release files. RuneStone defines the package format, version policy, and installation checks.
|
||||
Users can download a plugin ZIP from any service and install it through [Settings → Plug-ins](plugins.md#install-a-plugin).
|
||||
Installation directly from a repository link depends on RuneStone's support for that service.
|
||||
|
||||
### Release standard for plugin writers and agents
|
||||
|
||||
Apply the [shared versioning rules](#versioning-for-plugin-authors-and-agents) when producing a new ZIP.
|
||||
Use one plugin repository and one standard plugin ZIP per published release.
|
||||
This is a RuneStone release requirement, independent of the hosting service.
|
||||
No repository manifest or special branch layout is required.
|
||||
|
||||
1. Select the tested ZIP from the [shared build procedure](#build-and-release-a-plugin).
|
||||
2. Create a release tag that identifies the source commit used for that ZIP.
|
||||
3. Attach the tested `<id>-<version>.zip` and release notes to a release on your chosen service.
|
||||
4. Publish the release and share its download page or package link.
|
||||
5. Download the published ZIP and test its installation in RuneStone.
|
||||
|
||||
Use `v<version>` for ordinary release tags. Use a clearly named trial tag for temporary prereleases.
|
||||
Identify prereleases clearly on the release page and supply their explicit tags.
|
||||
Keep the manifest, package, metadata, filename, release notes, and tag consistent with the version policy.
|
||||
Each new regular ZIP advances the numeric build version. Each hotfix ZIP advances the lowercase letter suffix.
|
||||
Publishing an existing ZIP does not change its version. Keep published release files unchanged.
|
||||
Moving an unchanged release to another service does not require a new package or version.
|
||||
|
||||
The ZIP must contain `plugin.json` at its root, the compiled entry module, and all required assets and dependencies.
|
||||
Do not use a repository source archive as the plugin package.
|
||||
Keep the single plugin ZIP separate from any source archives that the service generates automatically.
|
||||
Other attachments, such as checksums and release notes, can accompany the plugin ZIP.
|
||||
|
||||
Keep release notes short. State the required RuneStone version, plugin version, changes, and known limits.
|
||||
Give users a link to the plugin ZIP and the [ZIP installation procedure](plugins.md#install-a-plugin).
|
||||
For a private release, users need permission to download the package.
|
||||
|
||||
Test local ZIP installation before publication.
|
||||
After publication, test download, review, disabled installation, enable, disable, and removal with the published ZIP.
|
||||
Check that cancellation leaves no installed package.
|
||||
Check that an existing plugin ID enters the reviewed update flow and retains its settings and enabled state.
|
||||
If RuneStone supports direct installation from that service, also test its repository link and explicit release tag.
|
||||
|
||||
### GitHub Releases
|
||||
|
||||
Attach the tested plugin ZIP to a GitHub release for its source tag.
|
||||
GitHub's automatic source archives do not replace the attached plugin package.
|
||||
See [GitHub's release instructions](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository) for publication steps.
|
||||
|
||||
Users download the attached ZIP and install it through **Settings → Plug-ins → Install plugin ZIP**.
|
||||
RuneStone does not yet support installation directly from a GitHub repository link.
|
||||
That feature requires a GitHub download adapter and tests.
|
||||
|
||||
### Gitea releases
|
||||
|
||||
Attach the same standard plugin ZIP to a Gitea release for its source tag.
|
||||
Users can download and install the ZIP, or use RuneStone's [experimental Gitea-link installation](plugins.md#install-from-a-gitea-link-experimental).
|
||||
|
||||
For direct installation, use a repository root link with an optional trailing `.git`.
|
||||
The Gitea server must run at the host root. Use an explicit tag for a prerelease trial.
|
||||
The latest-release route excludes drafts and prereleases. The downloader rejects drafts and releases without exactly one attached ZIP.
|
||||
Automatic source archives do not count as release attachments.
|
||||
Private repositories require read access to both the release metadata and the attachment.
|
||||
|
||||
Use HTTPS for remote releases. The metadata limit is 2 MiB, and the compressed ZIP limit is 100 MiB.
|
||||
The [package limits](#package-contract) also apply to extracted files.
|
||||
For credential handling, redirects, and staged file checks, see the [host download reference](plugin-host.md#gitea-downloads).
|
||||
|
||||
### Other hosting services
|
||||
|
||||
Publish the tested plugin ZIP and its release notes through your chosen service.
|
||||
Users download the ZIP, then use the same local installation procedure.
|
||||
RuneStone has no direct repository-link adapter for GitLab or other services.
|
||||
|
||||
## Plugin API
|
||||
|
||||
The current source adds an optional [completion API](completion.md) for local model providers and plugin-owned text fields.
|
||||
This capability is not present in the existing 0.1.7 installer.
|
||||
|
||||
The entry exports `activate(api)`. Activation can return a cleanup function or a promise for that function.
|
||||
The runtime limits activation and each cleanup callback to five seconds.
|
||||
A timeout reports an error and blocks successful cleanup until the app restarts.
|
||||
|
||||
```js
|
||||
export function activate(api) {
|
||||
api.registerView({
|
||||
id: "hello",
|
||||
title: "Hello",
|
||||
mount(container) {
|
||||
const text = document.createElement("p");
|
||||
text.textContent = "Hello from a RuneStone plugin.";
|
||||
container.append(text);
|
||||
return () => text.remove();
|
||||
}
|
||||
});
|
||||
api.registerCommand({
|
||||
id: "show-hello",
|
||||
title: "Show hello",
|
||||
run: () => api.openView("hello")
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
| API | Contract |
|
||||
| --- | --- |
|
||||
| `api.id` | The installed plugin ID |
|
||||
| `api.signal` | An abort signal triggered before shutdown |
|
||||
| `contribute(key, value)` | Register a typed terminal or table formula contribution |
|
||||
| `registerCommand({ id, title, run })` | Add a command to Commands in the toolbar |
|
||||
| `registerCommand({ category: "open", ... })` | Add a launch action to Open tab or view |
|
||||
| `registerView({ id, title, placement?, mount })` | Add a view in a dialog or the editor area |
|
||||
| `registerView({ settings: true, ... })` | Add a configuration page to Settings |
|
||||
| `registerView({ launcher: false, ... })` | Keep a dynamic view out of the launch menu |
|
||||
| `registerView({ navigation: true, icon?, ... })` | Add an icon button to the ribbon left of the navigation pane |
|
||||
| `registerDocumentType(type)` | Recognize document content, supply a navigation icon, and mount a document editor |
|
||||
| `openDocument(path)` | Open a recognized document in its own tab |
|
||||
| `renameDocument({ id, path }, name)` | Rename a recognized document and return its new workspace path. Optional API |
|
||||
| `openView(id)` | Open one of the plugin's registered views |
|
||||
| `openView(id, { split, relativeTo })` | Open an editor view beside another view. `split` accepts `right` or `down` |
|
||||
| `closeView(id)` | Close an editor view owned by this plugin. Optional API |
|
||||
| `registerView({ tabActions, find, pinned, ... })` | Supply tab actions, a Find handler, and the initial pin state |
|
||||
| `registerView({ tabDragData, ... })` | Supply transfer data for a tab. The callback receives its pin state |
|
||||
| `registerTabDrop(receive)` | Accept a tab from another window. Optional API |
|
||||
| `onDispose(callback)` | Register synchronous or asynchronous cleanup |
|
||||
| `workspace.list(path?)` | List a directory in this window's active workspace |
|
||||
| `workspace.listMarkdown()` | Return sorted visible Markdown paths in one native request. Optional API |
|
||||
| `workspace.read(path)` | Read a workspace text file |
|
||||
| `workspace.readMany(paths)` | Optional batched text read. Accept at most 64 paths and return a source or error for each path |
|
||||
| `workspace.readBytes(path)` | Read workspace bytes as a Uint8Array, with a 64 MiB limit. Requires the binary document host update |
|
||||
| `workspace.readOptional(path)` | Read text, or return null when the file is absent. Added in 0.1.6 |
|
||||
| `workspace.create(path, contents)` | Create complete text without replacing an existing file. Added in 0.1.6 |
|
||||
| `workspace.write(path, contents, expected)` | Save only if the file still matches the original text |
|
||||
| `workspace.subscribe(listener)` | Receive workspace change notifications. Returns a cleanup function |
|
||||
| `settings.read()` / `settings.write(value)` | Read or write retained JSON settings, with a 1 MiB limit |
|
||||
| `settings.subscribe(listener)` | Receive saved settings changes across windows. Optional API |
|
||||
| `assets.read(path)` | Read package bytes as a `Uint8Array` |
|
||||
|
||||
### Workspace reads
|
||||
|
||||
Check for `workspace.readMany` before calling it. Older hosts require individual reads.
|
||||
Each result contains `path` and either `source` or `error`. One failed file does not discard the remaining results.
|
||||
The native batch accepts at most 64 paths and 16 MiB of combined UTF-8 text.
|
||||
Workspace path checks and plugin shutdown checks apply to these reads.
|
||||
|
||||
### Commands, views, and settings
|
||||
|
||||
Command and view IDs must be unique within their respective plugin collections.
|
||||
Plugin commands can supply an optional `icon` from the shared action icon set in `src/lib/ui/actionIcons.ts`.
|
||||
Use a recognizable action icon, such as `skip-forward` or `pause`, for each command. Older hosts can ignore this field.
|
||||
Sidebar views belong in the left navigation. Views with a direct navigation button do not repeat in the plugin launch menu.
|
||||
Plugin configuration appears in Settings under the plugin name.
|
||||
Register a view with `settings: true` to add its configuration page.
|
||||
The host mounts that view inside Settings and removes it from the launch menu.
|
||||
Settings loads enabled plugins so their configuration pages remain available in the separate settings window.
|
||||
The host calls `mount(container, context)` with `context.surface` set to `"settings"` or `"view"`.
|
||||
Older hosts can omit the context argument.
|
||||
|
||||
The language setting applies to RuneStone's interface. The host does not translate plugin interfaces or supply a plugin translation API.
|
||||
Plugin authors can manage translations within their own packages.
|
||||
|
||||
The Open tab or view menu contains plugin views and commands with `category: "open"`.
|
||||
Other commands appear in Commands.
|
||||
Set `launcher: false` on dynamic views that already have tabs.
|
||||
Existing packages can omit these optional fields.
|
||||
|
||||
Plugins can call `settings.subscribe(listener)` to receive notifications when their saved settings change.
|
||||
The listener must read the new settings with `settings.read()`.
|
||||
Notifications cross window boundaries and contain only the plugin ID.
|
||||
The host removes subscriptions when the plugin stops.
|
||||
Plugins must ignore pending reads after shutdown and prevent older reads from replacing newer settings.
|
||||
|
||||
### Document types
|
||||
|
||||
Document type IDs must also be unique within their collection.
|
||||
Document types declare file extensions, an `identify` function, and a `mount` function.
|
||||
The identify function returns a stable document ID or null. Invalid documents remain available through the text editor.
|
||||
An optional creation action supplies complete file text. Creation never replaces an existing file.
|
||||
Each document opens in its own editor tab. Opening the same document focuses its existing tab.
|
||||
Closing one tab disposes only that mount. Disabling the plugin disposes all its mounts and removes its navigation entries.
|
||||
The host rejects plugin writes when a note has unsaved editor changes.
|
||||
These document APIs require the current host source. The earlier 0.1.6 installer does not include them.
|
||||
The optional API method `renameDocument({ id, path }, name)` renames a recognized document and returns its new workspace path.
|
||||
The host checks the document ID and plugin owner. It keeps the folder and extension, rejects name collisions, and updates open tabs.
|
||||
Names can contain dots. Hidden names and reserved filename characters are invalid.
|
||||
Unsaved text edits block plugin renames. This method requires the updated host source.
|
||||
Binary document types set `content: "binary"`. Text remains the default.
|
||||
For binary types, `identify(path, source)` receives an empty source string and recognizes the path without reading its contents.
|
||||
The mount reads bytes with `workspace.readBytes(path)` and reports invalid document data in its own view.
|
||||
This avoids UTF-8 conversion and full file reads while the file tree identifies binary documents.
|
||||
The native read command checks the active window's workspace boundary and rejects directories and files larger than 64 MiB.
|
||||
Binary document support requires the updated host source. The earlier 0.1.6 installer does not include it.
|
||||
Check for `api.workspace.readBytes` during activation and report a clear host update error when it is absent.
|
||||
|
||||
### Sidebar views and tab replacement
|
||||
|
||||
Navigation views with `placement: "sidebar"` appear beside Files, Search, and Bookmarks in the top header.
|
||||
Other navigation views appear as icon buttons in the ribbon left of the navigation pane.
|
||||
The optional view `icon` accepts `list`, `kanban`, or `puzzle`. The default is `puzzle`.
|
||||
Buttons show the view title in a tooltip on hover and keyboard focus.
|
||||
The ribbon remains available when the navigation pane is closed.
|
||||
|
||||
The optional `openFile(path)` method opens a workspace file.
|
||||
The optional `replaceView(currentId, nextId)` method changes the current tab while preserving its position and pin state.
|
||||
For document tabs, `replaceDocumentWithView(document, nextId)` supplies the same behavior.
|
||||
Both methods restrict the source and destination to the calling plugin.
|
||||
|
||||
### View launch defaults
|
||||
|
||||
Views can supply an optional `launch()` handler for entry through the plugin launcher or navigation button.
|
||||
The handler can select a default view with `api.openView(id)`.
|
||||
Explicit `api.openView` calls and restored tabs bypass the launch handler and retain their targets.
|
||||
Views without a handler open as before. Older hosts ignore this optional field.
|
||||
Example: [Project Management](../../RuneStone_Project_Management/development.md#workspace-default-board) uses this handler to open its fixed workspace default board.
|
||||
|
||||
### Cleanup and contributions
|
||||
|
||||
Views can return asynchronous cleanup. Closing a view and disabling its plugin share the same cleanup promise.
|
||||
Remove timers, listeners, and other resources in cleanup. Use the abort signal to stop pending work.
|
||||
The SDK rejects calls after shutdown starts, but it does not isolate JavaScript with full application access.
|
||||
Packages activate in every RuneStone window, including standalone terminal windows.
|
||||
|
||||
Contribution types live in `src/lib/plugins/contracts.ts`.
|
||||
Only one active package can own each contribution. The runtime removes contributions before cleanup starts.
|
||||
Terminal controls mount into a host element and return update, command, and disposal functions.
|
||||
The plugin must stop its mounted controls and native sessions in `onDispose` before cleanup completes.
|
||||
|
||||
## Git API
|
||||
|
||||
The optional `git` API supplies status, diff, stage, unstage, commit, and blame operations.
|
||||
The current host source also supplies `push()`, `pull()`, and `graph()`.
|
||||
These methods require an updated host and remain subject to plugin shutdown checks.
|
||||
The host returns structured history from `git.graph()`:
|
||||
|
||||
```js
|
||||
{ commits: [{ id, parents, refs, summary, author, date }] }
|
||||
```
|
||||
|
||||
The history contains at most 100 commits. Parent IDs can refer to commits outside that history.
|
||||
Example: the [Git plugin](../../RuneStone_Git/docs/usage.md#commit-graph) renders these commits and parent links as a graph.
|
||||
For the native service and test setup, see the [Git development guide](../../RuneStone_Git/docs/development.md).
|
||||
|
||||
## Temporary background API
|
||||
|
||||
RuneStone 0.1.25 adds optional `api.backgrounds` with `version: 1`.
|
||||
Example: [Background Slideshow](../../RuneStone_Background_Slideshow/docs/development.md#integration) publishes frames from local image folders.
|
||||
Example: [Project Management](../../RuneStone_Project_Management/development.md#pm-0229-slideshow-backgrounds) consumes frames for board backgrounds.
|
||||
|
||||
| Method | Contract |
|
||||
| --- | --- |
|
||||
| `chooseFolder()` | Open the native folder picker. Return an absolute path or null on cancellation. |
|
||||
| `defaultFolder()` | Optional. Create and return Pictures/RuneStone Backgrounds for new settings. |
|
||||
| `list(folder)` | List PNG, JPEG, GIF, and WebP filenames directly inside the folder. |
|
||||
| `read(folder, name)` | Read one raster image as bytes, with a 50 MiB limit. |
|
||||
| `set(target, frame)` | Apply a temporary frame. Pass null to remove this plugin's frame. |
|
||||
| `get(target)` | Read the active frame or null. |
|
||||
| `subscribe(listener)` | Receive the changed target. Return a cleanup function. |
|
||||
|
||||
Targets are `app`, `pm-all`, and `pm-board:<board UUID>`.
|
||||
A frame contains `url`, `overlay`, `position`, and `size`.
|
||||
It can also contain `previous` with those four fields and `transitionMs` from 0 to 5000.
|
||||
Renderers fade between these frames unless reduced motion is active. Keep both blob URLs valid until replacement or cleanup.
|
||||
Use a blob URL. The publishing plugin owns the URL and must release it after replacement or cleanup.
|
||||
Overlay ranges from -1 to 1. Negative values lighten the image, and positive values darken it.
|
||||
Position and size use the same choices as custom image settings.
|
||||
|
||||
Frames belong to the plugin activation in the current window. They do not change saved background settings.
|
||||
The last published frame wins. Removing it reveals an earlier active frame or the saved background.
|
||||
Disable removes the plugin's frames and subscriptions before cleanup.
|
||||
File access requires an active plugin lease. Pending reads fail after access is revoked.
|
||||
Image reads reject path traversal, linked files, unsupported formats, and oversized files.
|
||||
|
||||
Use the plugin settings API to share saved configuration across windows. Temporary frames remain local to each window.
|
||||
|
||||
### Per-image background settings
|
||||
|
||||
The optional background API adds `readImageSettings` and `writeImageSettings`.
|
||||
The sidecar file is `.runestone-backgrounds.json` beside the images, with schema 1, an `images` object, and a 1 MiB limit.
|
||||
Writes compare the previous file text to preserve external changes.
|
||||
Temporary frames can supply `blurredUrl`. Each target scales the foreground and blurred layer separately.
|
||||
The plugin owns all frame URLs and releases them after replacement or shutdown.
|
||||
See the [Slideshow image settings example](../../RuneStone_Background_Slideshow/docs/development.md#per-image-settings) for its storage and rendering behavior.
|
||||
@@ -0,0 +1,148 @@
|
||||
# Plugin host internals and checks
|
||||
|
||||
[Development](development.md) · [Plugin development](plugin-development.md) · [Install and manage plugins](plugins.md)
|
||||
|
||||
This reference is for developers who change RuneStone's plugin host.
|
||||
It covers package storage, installation and removal transactions, remote downloads, source modules, and checks.
|
||||
Plugin authors should use the [package and API reference](plugin-development.md).
|
||||
|
||||
- [Storage and recovery](#storage-and-recovery)
|
||||
- [Gitea downloads](#gitea-downloads)
|
||||
- [Modules and checks](#modules-and-checks)
|
||||
|
||||
## Storage and recovery
|
||||
|
||||
RuneStone resolves the root through Tauri's `app_data_dir()`. Settings shows the complete path.
|
||||
|
||||
```text
|
||||
<application-data>/
|
||||
plugins/<plugin-id>/
|
||||
plugin.json
|
||||
main.js
|
||||
assets/
|
||||
plugin-data/<plugin-id>/settings.json
|
||||
plugin-state.json
|
||||
plugin-staging/
|
||||
plugin-removals/
|
||||
```
|
||||
|
||||
Rust stores desired enable states in `plugin-state.json` and broadcasts changes to open windows.
|
||||
The browser preview has no installed plugins unless a smoke test supplies a desktop mock.
|
||||
|
||||
Startup, window focus, Refresh, and a five-second poll scan installed files.
|
||||
Changed packages stop running and require another enable decision. Missing packages are never restored automatically.
|
||||
Valid packages copied directly into the managed directory appear disabled.
|
||||
Staging directories never participate in plugin discovery.
|
||||
|
||||
Each reviewed candidate belongs to one window and expires after 30 minutes.
|
||||
Rust checks the source and staged content hashes before publishing a complete directory.
|
||||
An untracked destination blocks publication. Reviewed updates pin the installed package hash and retain a recovery journal.
|
||||
A crash cannot enable a partial installation.
|
||||
|
||||
Removal plans belong to one window and expire after five minutes.
|
||||
The backend accepts a single-use removal token when the user confirms deletion.
|
||||
A changed package requires a new confirmation.
|
||||
Runtime cleanup must complete in every window before the package moves into `plugin-removals/`.
|
||||
A persisted record identifies that directory and the original file hashes.
|
||||
Recovery deletes only unchanged remaining files from that confirmed transaction. It cannot target a newly installed copy.
|
||||
Install and removal operations share one native service and serialize their state changes.
|
||||
|
||||
### Installation and update transactions
|
||||
|
||||
RuneStone copies source packages without modifying them. The review shows author, version, source, destination, and access.
|
||||
Users can inspect the ZIP without extracting it for installation.
|
||||
The picker accepts at most 100 ZIPs. Folders and loose manifests are not installation inputs.
|
||||
Legacy `.runestone-plugin` archives use ZIP format and can be renamed to `.zip` for installation.
|
||||
Installed packages and saved settings do not need migration.
|
||||
|
||||
Scanning and installation do not execute code, install dependencies, or run scripts.
|
||||
Package metadata and hashes do not prove publisher identity. There is no permission sandbox or marketplace.
|
||||
An installed ID selects the update flow. Updates retain settings and the previous enabled state.
|
||||
Runtime cleanup must succeed in every window before replacement.
|
||||
An interrupted update restores the old package unless the new catalog entry committed.
|
||||
Each package succeeds or fails independently. A changed source requires a new review.
|
||||
Canceling the review removes temporary copies. Automatic repository scans remain future work.
|
||||
|
||||
### Removal behavior
|
||||
|
||||
The uninstall dialog initially focuses Cancel. Escape cancels removal.
|
||||
Each uninstall requires a new confirmation. Cancel preserves files and enabled state.
|
||||
Disable instead stops the plugin and retains its installed files.
|
||||
Confirmed removal deletes only the installed package after cleanup in every window.
|
||||
Source downloads, settings, generated data, and workspace documents remain intact.
|
||||
Loaded JavaScript can remain in memory until RuneStone closes, so the app requests a restart.
|
||||
Cleanup failure blocks deletion. Interrupted deletion shows Removal incomplete and permits Retry cleanup.
|
||||
Changed remaining files block further deletion. Reinstallation requires a new enable decision and can reuse retained settings.
|
||||
|
||||
## Gitea downloads
|
||||
|
||||
For publication on any service, use the [shared publishing guidance](plugin-development.md#publishing-releases).
|
||||
This section describes the current Gitea download adapter.
|
||||
|
||||
Gitea repository links now supply ZIP packages to the existing review and installation flow.
|
||||
This trial supports Gitea at the host root, including the personal Gitea server.
|
||||
GitHub and GitLab support remain future work. Their release APIs need separate tests.
|
||||
|
||||
Use the [Gitea installation procedure](plugins.md#install-from-a-gitea-link-experimental) to test a published package.
|
||||
For example, `https://git.knottywyvern.com/kwyvern-gitea/RuneStone_Terminal` is a repository root link.
|
||||
That link works for installation only when its selected release contains a plugin ZIP.
|
||||
|
||||
The link can end in `.git`. SSH links, branch links, source archives, and links with credentials are not installation inputs.
|
||||
Use an explicit tag for a prerelease trial. The latest-release route excludes drafts and prereleases.
|
||||
RuneStone clears the token after each request and when the form closes. It does not save the token.
|
||||
Use HTTPS. HTTP is available for trusted local servers, but it sends the token and package without encryption.
|
||||
Credentials go only to the original API origin. Redirects to another origin do not receive the token.
|
||||
A release attachment on another private host needs its own access method and is outside this trial.
|
||||
|
||||
The downloader reads release metadata, then downloads one attached ZIP.
|
||||
It does not clone the repository, compile code, install dependencies, or run scripts.
|
||||
Downloads have size limits, time limits, and a redirect limit.
|
||||
The metadata limit is 2 MiB. The compressed ZIP limit is 100 MiB.
|
||||
The [package limits](plugin-development.md#package-contract) still apply to the extracted files.
|
||||
HTTPS links cannot redirect or select an attachment over HTTP.
|
||||
|
||||
The review shows the repository, release tag, attachment link, manifest, and destination.
|
||||
It pins the downloaded content. Installation checks that the staged files still match the reviewed hash.
|
||||
Changing a remote release after review does not change the pending installation.
|
||||
The same duplicate-ID, enable, removal, and cleanup rules apply to local and remote packages.
|
||||
|
||||
## Modules and checks
|
||||
|
||||
| Module | Owns |
|
||||
| --- | --- |
|
||||
| `src-tauri/src/plugins.rs` | Discovery, validation, installation, persistence, removal plans, and cleanup acknowledgments |
|
||||
| `src/lib/plugins/PluginManager.svelte` | Package review, switches, and the uninstall dialog |
|
||||
| `src/lib/plugins/sdk.ts` | External package types |
|
||||
| `src/lib/plugins/externalSession.ts` | Activation, contributions, view disposal, and shutdown |
|
||||
| `src/lib/plugins/external.ts` | Native state synchronization and external module loading |
|
||||
| `src/lib/plugins/PluginTools.svelte` | External commands and views |
|
||||
| `src/lib/plugins/registry.ts` / `contracts.ts` | Shared feature contributions and their types |
|
||||
| `src/lib/plugins/TerminalSlot.svelte` | The host element for terminal controls |
|
||||
| `../RuneStone_Terminal/src/` | Terminal plugin source in its own repository |
|
||||
| `../RuneStone_Table_Formulas/` | Table Formulas source, unit tests, and package build |
|
||||
| `scripts/buildPlugins.mjs` | Table Formulas compilation and ZIP release in `../RuneStone_Table_Formulas/releases/` |
|
||||
| `scripts/packagePlugin.mjs` | Shared checks and ZIP creation for plugin authors |
|
||||
|
||||
Complete the [host source setup](development.md#run-from-source) and the [plugin build prerequisites](plugin-development.md#build-examples) first.
|
||||
Run host commands from the RuneStone repository root.
|
||||
Use the [development checks](development.md#checks) for type checks, unit tests, frontend compilation, and native tests.
|
||||
For Table Formulas, use its [build example](plugin-development.md#example-table-formulas).
|
||||
For Terminal, run `pnpm check`, `pnpm test`, and `pnpm build` in `RuneStone_Terminal`.
|
||||
Build Terminal before host browser tests. They read `../RuneStone_Terminal/dist/` by default.
|
||||
Set `RUNESTONE_TERMINAL_DIST` to use another compiled terminal folder.
|
||||
The Rust tests use real temporary files and archives. Browser tests mock desktop calls and exercise the real UI and module loader.
|
||||
Complete the [browser test setup](development.md#browser-smoke-tests), then run these checks from the RuneStone repository root:
|
||||
|
||||
```powershell
|
||||
node scripts/pluginInstall.smoke.mjs
|
||||
node scripts/plugins.smoke.mjs
|
||||
node scripts/settings.smoke.mjs
|
||||
cargo test --manifest-path src-tauri/Cargo.toml --lib plugin
|
||||
```
|
||||
|
||||
The installation smoke test covers the link form, download errors, token clearing, cancellation, focus, and disabled installation.
|
||||
Native tests cover URL parsing, release selection, redirects, credential boundaries, size limits, changed staging files, and invalid ZIPs.
|
||||
For the recorded four-package trial and its repeat command, see the [October 5 test record](archive/plugin-release-trial-2026-10-05.md).
|
||||
|
||||
Native plugin packages and restricted permissions remain future work.
|
||||
The core keeps basic Markdown tables, file editing, selection, sorting, and document access when optional features stop.
|
||||
@@ -1,32 +0,0 @@
|
||||
# Plugin names and source folders
|
||||
|
||||
Use these display names in Settings, manifests, help, and problem reports.
|
||||
Each checkout sits beside `RuneStone`, except the built-in Browser.
|
||||
|
||||
| Display name | Source folder | Stable plugin ID |
|
||||
| --- | --- | --- |
|
||||
| Browser (built in) | `RuneStone/browser-runtime` | `runestone.browser` (legacy) |
|
||||
| Background Slideshow | `RuneStone_Background_Slideshow` | `runestone.bg-slideshow` |
|
||||
| CSV Viewer | `RuneStone_CSV_Viewer` | `runestone.csv-viewer` |
|
||||
| Git | `RuneStone_Git` | `runestone.git` |
|
||||
| Local Autocomplete | `RuneStone_Local_Autocomplete` | `runestone.local-autocomplete` |
|
||||
| PDF Viewer | `RuneStone_PDF_Viewer` | `runestone.pdf-viewer` |
|
||||
| Project Management | `RuneStone_Project_Management` | `runestone.pm` |
|
||||
| Table Formulas | `RuneStone_Table_Formulas` | `runestone.table-formulas` |
|
||||
| Terminal | `RuneStone_Terminal` | `runestone.terminal` |
|
||||
|
||||
## Stable package and data names
|
||||
|
||||
Display names describe the plugins. Stable IDs connect installed packages to their settings and saved data.
|
||||
The packager uses each stable plugin ID and version for the ZIP filename.
|
||||
For example, Project Management uses `runestone.pm-<version>.zip`.
|
||||
Changing capitalization does not change plugin IDs, settings, or saved workspace data.
|
||||
|
||||
Project Management retains `.runestone/pm/`, `runestone_pm`, and its preview storage key.
|
||||
Existing view IDs and document IDs retain their names too.
|
||||
|
||||
Local folder names can differ from remote repository names.
|
||||
Keep existing remote URLs when a local checkout moves.
|
||||
Set `RUNESTONE_ROOT` when a plugin's packager needs a different host checkout.
|
||||
|
||||
The [plugin package reference](plugins.md) explains packaging and installation.
|
||||
+88
-532
@@ -1,563 +1,119 @@
|
||||
# Plugins
|
||||
# Install and manage plugins
|
||||
|
||||
[Back to development](development.md)
|
||||
[RuneStone](../README.md) · [User guide](user-guide.md)
|
||||
|
||||
RuneStone installs JavaScript plugins from local ZIP files and experimental Gitea release downloads.
|
||||
Open Settings → Plug-ins to install, enable, disable, or uninstall them.
|
||||
See [plugin names and source folders](plugin-names.md) for display names, stable IDs, and checkout locations.
|
||||
Terminal and Table Formulas use the same installed package system as all other plugins.
|
||||
|
||||
## Build and install the feature packages
|
||||
|
||||
1. Clone `RuneStone_Table_Formulas` beside RuneStone and run `pnpm install --frozen-lockfile` in that checkout.
|
||||
2. Run `pnpm build:plugins` from the RuneStone repository root for Table Formulas.
|
||||
3. In Settings → Plug-ins, choose Install plugin ZIP.
|
||||
4. Select the ZIP files in `../RuneStone_Table_Formulas/releases/`, then choose Install and enable.
|
||||
|
||||
The build creates `runestone.table-formulas-<version>.zip` in that plugin's `releases/` folder.
|
||||
Table Formulas is a development package in its [own repository](https://git.knottywyvern.com/kwyvern-gitea/RuneStone_TableFormulas).
|
||||
Set `RUNESTONE_TABLE_FORMULAS_ROOT` to use a different checkout location.
|
||||
That repository also supports `pnpm package:plugin`, with `RUNESTONE_ROOT` selecting the host packager.
|
||||
The folders beside them contain build output for inspection and tests.
|
||||
Use the ZIP files for installation and releases.
|
||||
|
||||
Terminal development lives in the separate [RuneStone_Terminal repository](https://git.knottywyvern.com/kwyvern-gitea/RuneStone_Terminal).
|
||||
In that repository, run `pnpm install --frozen-lockfile`, then `pnpm build`.
|
||||
Install `releases/runestone.terminal-<version>.zip` through the same plugin ZIP installer.
|
||||
The local source folder is `../RuneStone_Terminal/` when both repositories share a parent directory.
|
||||
|
||||
No plugin starts automatically in a fresh installation.
|
||||
The application build does not include these packages. Package builds include their JavaScript dependencies and terminal styles.
|
||||
Build them again after source changes, then select the new ZIP through Install plugin ZIP.
|
||||
The old bundled switches no longer apply. Existing terminal appearance settings remain available after installation.
|
||||
Formula source stays in Markdown files when the plugin is absent, disabled, or removed.
|
||||
Native pseudo-terminal services remain in the desktop host. The Terminal package supplies the interface, shortcuts, and session controls.
|
||||
Plugins add optional features such as Terminal, Table Formulas, Git, and PDF Viewer.
|
||||
Use **Settings → Plug-ins** to install, update, enable, disable, or uninstall them.
|
||||
The Browser is included with RuneStone and needs no plugin.
|
||||
|
||||
## Install a plugin
|
||||
|
||||
1. In Settings → Plug-ins, choose Install plugin ZIP.
|
||||
2. Select one or more `.zip` files, then review the packages.
|
||||
3. Choose Install to keep them disabled, or Install and enable to run them.
|
||||
Get the plugin's release ZIP. Keep the file compressed.
|
||||
Each ZIP installs one plugin. You can select up to 100 ZIPs at once.
|
||||
|
||||
Each ZIP contains one plugin, with `plugin.json` at its root.
|
||||
You can open the ZIP with an archive tool to read its manifest, JavaScript, and other files.
|
||||
You do not need to extract it before installation.
|
||||
The picker accepts at most 100 ZIP files at once.
|
||||
Folders and loose `plugin.json` files are not installation inputs.
|
||||
1. Open **Settings → Plug-ins**.
|
||||
2. Choose **Install plugin ZIP**.
|
||||
3. Select the ZIP files.
|
||||
4. Review each plugin's name, author, version, source, destination, and access level.
|
||||
5. Choose **Install and enable** to use the plugins, or **Install** to keep them disabled.
|
||||
|
||||
Earlier `.runestone-plugin` files already used ZIP format. Rename those files to `.zip` before installation.
|
||||
Installed plugins keep working. This change does not alter their files or saved settings.
|
||||
For example, a Terminal package uses the filename `runestone.terminal-<version>.zip`.
|
||||
The version in the filename identifies the release. Select the actual ZIP you received.
|
||||
Use the same steps for other plugins.
|
||||
|
||||
RuneStone copies packages into its per-user application data directory. It never modifies the selected source.
|
||||
The review shows the author, version, source, destination, and access level.
|
||||
Plugins run with RuneStone's application access. Enable only code you trust.
|
||||
The author field does not prove the publisher's identity. Plugins have no permission sandbox.
|
||||
|
||||
External plugins run with RuneStone's application access. Enable only code you trust.
|
||||
Package metadata and hashes do not verify a publisher's identity. This version has no permission sandbox or marketplace.
|
||||
Scanning and installation do not execute code, install dependencies, or run installation scripts.
|
||||
RuneStone copies the packages into its application data folder. It keeps your downloaded ZIPs unchanged.
|
||||
The review and installation steps do not run plugin code or installation scripts.
|
||||
Each package succeeds or fails separately. Check the result for any failed packages.
|
||||
|
||||
A package with an installed ID updates that plugin after review. Choose Apply packages to replace its files.
|
||||
The review shows the current and new versions. Updates keep plugin settings and the previous enabled state.
|
||||
RuneStone stops the plugin in every window and waits for cleanup before replacement. Cleanup failure blocks replacement.
|
||||
An interrupted update restores the old package unless the new catalog entry committed.
|
||||
Automatic repository scans remain future work.
|
||||
Each package succeeds or fails independently. The result identifies any failures.
|
||||
A changed source requires a new review. Cancelling the review removes its temporary copies.
|
||||
## Enable or disable a plugin
|
||||
|
||||
Try the example with `pnpm package:plugin fixtures/plugins/workspace-overview`.
|
||||
Install the resulting ZIP from `releases/`, then choose Install and enable.
|
||||
Use Open tab or view beside New tab to open Workspace overview.
|
||||
Use Commands in the toolbar to run Show workspace overview.
|
||||
Use the switch beside the plugin in **Settings → Plug-ins**.
|
||||
The **Enabled** or **Disabled** status shows your choice.
|
||||
That choice applies across RuneStone windows and persists after restart.
|
||||
No optional plugin starts automatically in a fresh installation.
|
||||
|
||||
## Uninstall with one confirmation
|
||||
Disabling stops the plugin and keeps its installed files, settings, and workspace documents.
|
||||
If RuneStone asks for a restart, close all RuneStone windows and open the app again.
|
||||
Some loaded code can remain in memory until the app closes.
|
||||
|
||||
1. Choose Uninstall on the plugin's row.
|
||||
2. Check its name, author, version, folder, and deletion message, then choose Uninstall and delete files.
|
||||
## Update a plugin
|
||||
|
||||
The dialog initially focuses Cancel. Escape cancels the uninstall flow.
|
||||
Cancel leaves the files and enabled state unchanged.
|
||||
Disable instead keeps every installed file and turns the plugin off.
|
||||
Each uninstall requires a new confirmation.
|
||||
1. Get the new release ZIP for the plugin.
|
||||
2. Open **Settings → Plug-ins → Install plugin ZIP**.
|
||||
3. Select the ZIP.
|
||||
4. Review the current and new versions.
|
||||
5. Choose **Apply packages**.
|
||||
|
||||
After confirmation, RuneStone disables the plugin in every window and waits for cleanup.
|
||||
It deletes only the installed package. Source downloads, plugin settings, generated data, and workspace documents remain intact.
|
||||
The app shows Restart required because already loaded JavaScript can remain in memory until RuneStone closes.
|
||||
RuneStone recognizes an update by the plugin ID.
|
||||
Updates keep the plugin's settings and its previous enabled or disabled state.
|
||||
RuneStone stops the plugin in every window before replacing its files.
|
||||
If cleanup fails, the update stops. Restart RuneStone before you try again.
|
||||
|
||||
Cleanup failure blocks deletion and keeps the installed files. Restart RuneStone before trying again.
|
||||
An interrupted file deletion shows Removal incomplete. Retry cleanup continues only that previously confirmed removal.
|
||||
Changed files in the removal directory block further deletion. Inspect the path named in the error before retrying.
|
||||
Reinstallation requires a new enable decision and can reuse retained settings.
|
||||
## Uninstall a plugin
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
installed("Installed plugin") --> confirm("Confirm file deletion")
|
||||
confirm --> cleanup("Stop in all windows")
|
||||
cleanup --> removed("Delete package; retain data")
|
||||
```
|
||||
1. Open **Settings → Plug-ins**.
|
||||
2. Choose **Uninstall** beside the plugin.
|
||||
3. Check the plugin details and deletion message.
|
||||
4. Choose **Uninstall and delete files**.
|
||||
|
||||
## Storage and recovery
|
||||
Uninstall removes the installed package after the plugin stops in every window.
|
||||
It keeps downloaded ZIPs, plugin settings, generated data, and workspace documents.
|
||||
For example, Table Formulas leaves formula source in your Markdown files.
|
||||
Installing the plugin again can reuse its retained settings, but you must choose whether to enable it.
|
||||
|
||||
RuneStone resolves the root through Tauri's `app_data_dir()`. Settings shows the complete path.
|
||||
**Cancel** leaves the plugin unchanged. **Disable instead** stops it and keeps the package installed.
|
||||
If RuneStone asks for a restart, close all RuneStone windows and open the app again.
|
||||
|
||||
```text
|
||||
<application-data>/
|
||||
plugins/<plugin-id>/
|
||||
plugin.json
|
||||
main.js
|
||||
assets/
|
||||
plugin-data/<plugin-id>/settings.json
|
||||
plugin-state.json
|
||||
plugin-staging/
|
||||
plugin-removals/
|
||||
```
|
||||
## Install from a Gitea link (experimental)
|
||||
|
||||
Rust stores desired enable states in `plugin-state.json` and broadcasts changes to open windows.
|
||||
The browser preview has no installed plugins unless a smoke test supplies a desktop mock.
|
||||
Use this route when the publisher supplies a Gitea repository link with a plugin ZIP attached to a release.
|
||||
GitHub and GitLab links are not supported.
|
||||
|
||||
Startup, window focus, Refresh, and a five-second poll scan installed files.
|
||||
Changed packages stop running and require another enable decision. Missing packages are never restored automatically.
|
||||
Valid packages copied directly into the managed directory appear disabled.
|
||||
Staging directories never participate in plugin discovery.
|
||||
1. Open **Settings → Plug-ins → Install from Git link**.
|
||||
2. Enter the repository root link supplied by the publisher.
|
||||
3. Enter a specific release tag, or leave it empty for the latest stable release.
|
||||
4. For a private repository, enter a Gitea token with repository read access.
|
||||
5. Choose **Review release**.
|
||||
|
||||
Each reviewed candidate belongs to one window and expires after 30 minutes.
|
||||
Rust checks the source and staged content hashes before publishing a complete directory.
|
||||
An untracked destination blocks publication. Reviewed updates pin the installed package hash and retain a recovery journal.
|
||||
A crash cannot enable a partial installation.
|
||||
Review the package, then choose **Install** or **Install and enable**.
|
||||
For an existing plugin, choose **Apply packages**.
|
||||
Use an explicit tag for a prerelease. A source archive or branch link cannot install a plugin.
|
||||
The release must contain exactly one attached plugin ZIP.
|
||||
|
||||
Removal plans belong to one window and expire after five minutes.
|
||||
The backend accepts a single-use removal token when the user confirms deletion.
|
||||
A changed package requires a new confirmation.
|
||||
Runtime cleanup must complete in every window before the package moves into `plugin-removals/`.
|
||||
A persisted record identifies that directory and the original file hashes.
|
||||
Recovery deletes only unchanged remaining files from that confirmed transaction. It cannot target a newly installed copy.
|
||||
Install and removal operations share one native service and serialize their state changes.
|
||||
Use HTTPS for a remote server. RuneStone clears the token after the request and does not save it.
|
||||
RuneStone downloads a package through this route. It does not clone or build the repository.
|
||||
|
||||
## Package contract
|
||||
## Feature guides
|
||||
|
||||
Place `plugin.json` at the root of the ZIP archive:
|
||||
Use these guides for plugin features after installation:
|
||||
|
||||
```json
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "org.example.hello",
|
||||
"name": "Hello",
|
||||
"author": "Example author",
|
||||
"description": "Open a small example view.",
|
||||
"version": "1.0.0",
|
||||
"apiVersion": 1,
|
||||
"entry": "main.js",
|
||||
"access": "full-app"
|
||||
}
|
||||
```
|
||||
- [Terminal sessions and shortcuts](guides/terminal.md)
|
||||
- [Git controls, push, pull, and history](../../RuneStone_Git/docs/usage.md)
|
||||
- [Background Slideshow images and board targets](../../RuneStone_Background_Slideshow/docs/usage.md)
|
||||
- [Local Autocomplete trial and settings](../../RuneStone_Local_Autocomplete/docs/trial-guide.md)
|
||||
- [Project Management tasks and boards](../../RuneStone_Project_Management/project-management.md)
|
||||
|
||||
The package API is version 1. Its interface lives in `src/lib/plugins/sdk.ts`.
|
||||
RuneStone 0.1.5 adds optional `placement: "editor"` for views that belong beside documents.
|
||||
These views open in the editor area with a tab. Document tabs retain their buffers when users switch views.
|
||||
Closing the plugin tab or disabling the package disposes the view.
|
||||
The default placement is `"dialog"`, so existing packages keep their current behavior.
|
||||
Older hosts ignore the placement field. Plugins that require editor placement need RuneStone 0.1.5 or later.
|
||||
All packages use one API and the same installation, enable, disable, and removal lifecycle.
|
||||
Versions use three numeric parts with an optional lowercase hotfix suffix, such as `0.2.28a`.
|
||||
Schema and API versions must match the supported version exactly.
|
||||
The `runestone.*` prefix follows the same rules as other package IDs. It does not prove the publisher's identity.
|
||||
Links outside this repository require the corresponding sibling source checkout.
|
||||
For the included browser, use the [built-in browser guide](user-guide.md#use-the-built-in-browser).
|
||||
|
||||
Package names use ASCII letters, digits, dots, underscores, and hyphens, with forward slashes between directories.
|
||||
IDs use lowercase letters, digits, dots, and hyphens and start with a letter.
|
||||
Windows device names, parent traversal, absolute paths, links, junctions, and case-insensitive collisions are invalid.
|
||||
Limits are 5,000 entries, 100 MiB of expanded data, and 25 MiB per file.
|
||||
The manifest has a 64 KiB limit. The final installed path cannot exceed 240 characters.
|
||||
## Plugin help
|
||||
|
||||
The entry is one compiled `.js` or `.mjs` module. Bundle dependencies into it.
|
||||
Relative module imports cannot resolve from its Blob URL. Read packaged assets through the API instead.
|
||||
Raw TypeScript, Svelte source, native libraries, plugin dependencies, and automatic updates are unsupported.
|
||||
|
||||
## Versioning for plugin authors and agents
|
||||
|
||||
Follow the shared [RuneStone versioning policy](../AGENTS.md#versioning). RuneStone and its plugins keep independent version numbers under this policy.
|
||||
Use `zz.yy.xx` and keep routine implementation work in the current `zz.yy` series.
|
||||
|
||||
| Part | When to increase it |
|
||||
| Problem | Action |
|
||||
| --- | --- |
|
||||
| `xx` | Each new completed regular plugin ZIP build. Hotfixes increase the letter suffix. |
|
||||
| `yy` | A deliberate release ready for build testing, with user direction. Reset `xx` to zero. |
|
||||
| `zz` | A full release, with user direction. Reset `yy` and `xx` to zero. |
|
||||
|
||||
Keep the current version during source edits, fixes, improvements, documentation work, and automated checks.
|
||||
Set the next version when producing the ZIP. Intermediate compilation output does not count as a new build.
|
||||
If no build completes, restore the previous version fields. Failed attempts and retries do not consume version numbers.
|
||||
Report a new version as available only after its ZIP exists. Publishing an existing artifact does not increase its version.
|
||||
Passing automated checks alone does not authorize a `yy` or `zz` increase.
|
||||
A hotfix fixes one item or a narrowly scoped problem in an existing release.
|
||||
Use letters in the actual package version: `0.2.28` → `0.2.28a` → `0.2.28b`.
|
||||
Keep the numeric base for hotfix builds.
|
||||
Advance hotfix suffixes in this order: `a`, `b`, `c`, through `z`, then `aa`, `ab`, and later suffixes.
|
||||
The next regular build increases `xx` and removes the suffix: `0.2.28b` → `0.2.29`.
|
||||
Keep the package version, manifest version, build metadata, ZIP name, release notes, and tag consistent.
|
||||
For example, package version `0.2.28a` produces `runestone.pm-0.2.28a.zip` and uses tag `v0.2.28a`.
|
||||
The shared packager and updated native installer accept these suffixes. Older hosts with numeric-only validation reject suffixed packages.
|
||||
Do not substitute a numeric increment for a hotfix. Add suffix support or report a format blocker before building.
|
||||
Do not bypass validation or overwrite an existing release ZIP.
|
||||
|
||||
## Build and release a plugin
|
||||
|
||||
Use the same package contract for in-house and community plugins.
|
||||
The ZIP is the release file. Its `plugin.json` describes the contents and is not a separate installer.
|
||||
|
||||
```text
|
||||
org.example.hello-1.0.0.zip
|
||||
plugin.json
|
||||
main.js
|
||||
assets/
|
||||
README.md
|
||||
LICENSE
|
||||
```
|
||||
|
||||
The manifest and entry module are required. Assets, a README, and a license are optional package files.
|
||||
Include a README with the host requirement, purpose, install steps, and help contact.
|
||||
Keep JavaScript readable where practical. Avoid minification and obfuscation that make inspection harder.
|
||||
|
||||
1. Compile the plugin into a clean folder with `plugin.json`, its entry module, and the required assets.
|
||||
2. Run `pnpm package:plugin <compiled-folder> [output-folder]` from the RuneStone repository.
|
||||
3. Install the resulting ZIP in RuneStone and test its features, disable action, and uninstall action.
|
||||
4. Share that same ZIP as the release file.
|
||||
|
||||
Use Node.js 24 or later for the packaging command. The default output folder is `releases/` in the project that contains the compiled folder.
|
||||
Keep plugin release ZIPs in that plugin project, including when the host calls the build.
|
||||
Explicit output folders are for temporary checks or staging. Move completed releases into the owning project's `releases/` folder.
|
||||
It checks the manifest, paths, entry module, and size limits before it writes `<id>-<version>.zip`.
|
||||
It includes every file in the input folder. Keep dependencies, credentials, and unrelated build files outside that folder.
|
||||
The output folder must be outside the input folder.
|
||||
The command can replace an existing ZIP with the same ID and version. Use the next build version and preserve existing ZIPs.
|
||||
Repeated runs with unchanged input produce the same archive bytes.
|
||||
The native installer checks the package again before installation.
|
||||
|
||||
Other build tools can create the same ZIP layout. Do not add a parent folder above `plugin.json`.
|
||||
Do not tell users to load JSON, select a build folder, rename a new release, or install dependencies.
|
||||
Authors in other repositories can run `node <RuneStone-path>/scripts/packagePlugin.mjs <compiled-folder> <output-folder>`.
|
||||
|
||||
## Experimental installation from a Gitea link
|
||||
|
||||
Gitea repository links now supply ZIP packages to the existing review and installation flow.
|
||||
This trial supports Gitea at the host root, including the personal Gitea server.
|
||||
GitHub and GitLab support remain future work. Their release APIs need separate tests.
|
||||
|
||||
1. In Settings → Plug-ins, choose Install from Git link.
|
||||
2. Enter the repository root link, such as `https://git.knottywyvern.com/kwyvern-gitea/RuneStone_Terminal`.
|
||||
3. Enter a release tag for a specific version, or leave it empty for the latest release.
|
||||
4. For a private repository, enter a Gitea access token with repository read access.
|
||||
5. Choose Review release, then choose Install or Install and enable after you review the package.
|
||||
|
||||
The link can end in `.git`. SSH links, branch links, source archives, and links with credentials are not installation inputs.
|
||||
Use an explicit tag for a prerelease trial. The [Gitea latest-release endpoint](https://docs.gitea.com/api/operations/repo-get-latest-release/) excludes drafts and prereleases.
|
||||
RuneStone clears the token after each request and when the form closes. It does not save the token.
|
||||
Use HTTPS. HTTP is available for trusted local servers, but it sends the token and package without encryption.
|
||||
Credentials go only to the original API origin. Redirects to another origin do not receive the token.
|
||||
A release attachment on another private host needs its own access method and is outside this trial.
|
||||
|
||||
The downloader reads release metadata, then downloads one attached ZIP.
|
||||
It does not clone the repository, compile code, install dependencies, or run scripts.
|
||||
Downloads have size limits, time limits, and a redirect limit.
|
||||
The metadata limit is 2 MiB. The compressed ZIP limit is 100 MiB.
|
||||
The existing package limits still apply to the extracted files.
|
||||
HTTPS links cannot redirect or select an attachment over HTTP.
|
||||
|
||||
The review shows the repository, release tag, attachment link, manifest, and destination.
|
||||
It pins the downloaded content. Installation checks that the staged files still match the reviewed hash.
|
||||
Changing a remote release after review does not change the pending installation.
|
||||
The same duplicate-ID, enable, removal, and cleanup rules apply to local and remote packages.
|
||||
|
||||
### Release standard for plugin writers and agents
|
||||
|
||||
Apply the [shared versioning rules](#versioning-for-plugin-authors-and-agents) before choosing a release version.
|
||||
|
||||
Use one plugin repository and one standard plugin ZIP per release for this trial.
|
||||
Keep the package contract above. No repository manifest or special branch layout is required.
|
||||
|
||||
1. Build the plugin from the source commit that you intend to tag.
|
||||
2. Run `pnpm package:plugin <compiled-folder> [output-folder]` from RuneStone.
|
||||
3. Attach the resulting `<id>-<version>.zip` to a Gitea release.
|
||||
4. Publish the release with a tag that identifies its source commit.
|
||||
5. Test its repository link and explicit tag in RuneStone.
|
||||
|
||||
Use `v<version>` for ordinary release tags. Use a clearly named trial tag for temporary prereleases.
|
||||
Keep the manifest version and package version equal. Keep published release files unchanged.
|
||||
Increase the version when building a new ZIP, before publication.
|
||||
Prerelease builds follow the same version policy. Each new regular ZIP gets the next numeric build version.
|
||||
Each hotfix ZIP gets the next letter suffix. Use an explicit trial tag for prereleases.
|
||||
|
||||
The ZIP must contain `plugin.json` at its root, the compiled entry module, and all required assets and dependencies.
|
||||
Do not attach a source ZIP as the plugin package. Gitea's automatic source archives do not count as release attachments.
|
||||
The installer rejects releases with no attached ZIP or more than one attached ZIP.
|
||||
Other attachments, such as checksums and release notes, can accompany the single ZIP.
|
||||
The installer rejects drafts. Private repositories require read access to the metadata and attachment.
|
||||
|
||||
Test local ZIP installation before publication. After publication, test download, review, disabled installation, enable, disable, and removal.
|
||||
Check that cancellation leaves no installed package. Check that an existing plugin ID blocks another installation.
|
||||
Keep release notes short. State the host requirement, plugin version, changes, and known limits.
|
||||
|
||||
### Trial checks
|
||||
|
||||
The four local packages passed a simulated Gitea release download and isolated native installation on October 5, 2026.
|
||||
The test checked the installed hashes and kept all four plugins disabled.
|
||||
|
||||
| Plugin | Package version |
|
||||
| --- | --- |
|
||||
| Terminal | 0.1.0 |
|
||||
| Table Formulas | 0.1.0 |
|
||||
| PDF Viewer | 0.0.1 |
|
||||
| Project management | 0.2.3 |
|
||||
|
||||
The authenticated check of the personal Gitea server found no releases in these four repositories.
|
||||
Live Gitea installation still needs published release attachments. No releases or tags were created during this check.
|
||||
The browser smoke test covers the link form, download errors, token clearing, cancellation, focus, and disabled installation.
|
||||
Native tests cover URL parsing, release selection, redirects, credential boundaries, size limits, changed staging files, and invalid ZIPs.
|
||||
|
||||
Run the focused native checks with `cargo test --manifest-path src-tauri/Cargo.toml --lib plugin`.
|
||||
To repeat the four-package trial, place exactly these four ZIPs in a folder and set `RUNESTONE_GIT_TRIAL_PACKAGES` to its absolute path.
|
||||
Then run `cargo test --manifest-path src-tauri/Cargo.toml --lib four_plugin_release_trial -- --ignored --nocapture`.
|
||||
Run `node scripts/pluginInstall.smoke.mjs` against the development server for the browser checks.
|
||||
|
||||
## Plugin API
|
||||
|
||||
The current source adds an optional [completion API](completion.md) for local model providers and plugin-owned text fields.
|
||||
This capability is not present in the existing 0.1.7 installer.
|
||||
|
||||
The entry exports `activate(api)`. Activation can return a cleanup function or a promise for that function.
|
||||
The runtime limits activation and each cleanup callback to five seconds.
|
||||
A timeout reports an error and blocks successful cleanup until the app restarts.
|
||||
|
||||
```js
|
||||
export function activate(api) {
|
||||
api.registerView({
|
||||
id: "hello",
|
||||
title: "Hello",
|
||||
mount(container) {
|
||||
const text = document.createElement("p");
|
||||
text.textContent = "Hello from a RuneStone plugin.";
|
||||
container.append(text);
|
||||
return () => text.remove();
|
||||
}
|
||||
});
|
||||
api.registerCommand({
|
||||
id: "show-hello",
|
||||
title: "Show hello",
|
||||
run: () => api.openView("hello")
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
| API | Contract |
|
||||
| --- | --- |
|
||||
| `api.id` | The installed plugin ID |
|
||||
| `api.signal` | An abort signal triggered before shutdown |
|
||||
| `contribute(key, value)` | Register a typed terminal or table formula contribution |
|
||||
| `registerCommand({ id, title, run })` | Add a command to Commands in the toolbar |
|
||||
| `registerCommand({ category: "open", ... })` | Add a launch action to Open tab or view |
|
||||
| `registerView({ id, title, placement?, mount })` | Add a view in a dialog or the editor area |
|
||||
| `registerView({ settings: true, ... })` | Add a configuration page to Settings |
|
||||
| `registerView({ launcher: false, ... })` | Keep a dynamic view out of the launch menu |
|
||||
| `registerView({ navigation: true, icon?, ... })` | Add an icon button to the ribbon left of the navigation pane |
|
||||
| `registerDocumentType(type)` | Recognize document content, supply a navigation icon, and mount a document editor |
|
||||
| `openDocument(path)` | Open a recognized document in its own tab |
|
||||
| `renameDocument({ id, path }, name)` | Rename a recognized document and return its new workspace path. Optional API |
|
||||
| `openView(id)` | Open one of the plugin's registered views |
|
||||
| `openView(id, { split, relativeTo })` | Open an editor view beside another view. `split` accepts `right` or `down` |
|
||||
| `closeView(id)` | Close an editor view owned by this plugin. Optional API |
|
||||
| `registerView({ tabActions, find, pinned, ... })` | Supply tab actions, a Find handler, and the initial pin state |
|
||||
| `registerView({ tabDragData, ... })` | Supply transfer data for a tab. The callback receives its pin state |
|
||||
| `registerTabDrop(receive)` | Accept a tab from another window. Optional API |
|
||||
| `onDispose(callback)` | Register synchronous or asynchronous cleanup |
|
||||
| `workspace.list(path?)` | List a directory in this window's active workspace |
|
||||
| `workspace.listMarkdown()` | Return sorted visible Markdown paths in one native request. Optional API |
|
||||
| `workspace.read(path)` | Read a workspace text file |
|
||||
| `workspace.readMany(paths)` | Optional batched text read. Accept at most 64 paths and return a source or error for each path |
|
||||
| `workspace.readBytes(path)` | Read workspace bytes as a Uint8Array, with a 64 MiB limit. Requires the binary document host update |
|
||||
| `workspace.readOptional(path)` | Read text, or return null when the file is absent. Added in 0.1.6 |
|
||||
| `workspace.create(path, contents)` | Create complete text without replacing an existing file. Added in 0.1.6 |
|
||||
| `workspace.write(path, contents, expected)` | Save only if the file still matches the original text |
|
||||
| `workspace.subscribe(listener)` | Receive workspace change notifications. Returns a cleanup function |
|
||||
| `settings.read()` / `settings.write(value)` | Read or write retained JSON settings, with a 1 MiB limit |
|
||||
| `settings.subscribe(listener)` | Receive saved settings changes across windows. Optional API |
|
||||
| `assets.read(path)` | Read package bytes as a `Uint8Array` |
|
||||
|
||||
Check for `workspace.readMany` before calling it. Older hosts require individual reads.
|
||||
Each result contains `path` and either `source` or `error`. One failed file does not discard the remaining results.
|
||||
The native batch accepts at most 64 paths and 16 MiB of combined UTF-8 text.
|
||||
Workspace path checks and plugin shutdown checks apply to these reads.
|
||||
|
||||
Command and view IDs must be unique within their respective plugin collections.
|
||||
Plugin commands can supply an optional `icon` from the shared action icon set in `src/lib/ui/actionIcons.ts`.
|
||||
Use a recognizable action icon, such as `skip-forward` or `pause`, for each command. Older hosts can ignore this field.
|
||||
Sidebar views belong in the left navigation. Views with a direct navigation button do not repeat in the plugin launch menu.
|
||||
Plugin configuration appears in Settings under the plugin name.
|
||||
Register a view with `settings: true` to add its configuration page.
|
||||
The host mounts that view inside Settings and removes it from the launch menu.
|
||||
Settings loads enabled plugins so their configuration pages remain available in the separate settings window.
|
||||
The host calls `mount(container, context)` with `context.surface` set to `"settings"` or `"view"`.
|
||||
Older hosts can omit the context argument.
|
||||
|
||||
The language setting applies to RuneStone's interface. The host does not translate plugin interfaces or supply a plugin translation API.
|
||||
Plugin authors can manage translations within their own packages.
|
||||
|
||||
Local Autocomplete keeps temporary reference text in its editor view because that text belongs to one window.
|
||||
Open Commands → Configure Local Autocomplete in that window to use reference text.
|
||||
|
||||
The Open tab or view menu contains plugin views and commands with `category: "open"`.
|
||||
Other commands appear in Commands.
|
||||
Set `launcher: false` on dynamic views that already have tabs.
|
||||
Existing packages can omit these optional fields.
|
||||
|
||||
Plugins can call `settings.subscribe(listener)` to receive notifications when their saved settings change.
|
||||
The listener must read the new settings with `settings.read()`.
|
||||
Notifications cross window boundaries and contain only the plugin ID.
|
||||
The host removes subscriptions when the plugin stops.
|
||||
Plugins must ignore pending reads after shutdown and prevent older reads from replacing newer settings.
|
||||
Local Autocomplete uses this subscription so changes in Settings apply to the editor window.
|
||||
|
||||
Document type IDs must also be unique within their collection.
|
||||
Document types declare file extensions, an `identify` function, and a `mount` function.
|
||||
The identify function returns a stable document ID or null. Invalid documents remain available through the text editor.
|
||||
An optional creation action supplies complete file text. Creation never replaces an existing file.
|
||||
Each document opens in its own editor tab. Opening the same document focuses its existing tab.
|
||||
Closing one tab disposes only that mount. Disabling the plugin disposes all its mounts and removes its navigation entries.
|
||||
The host rejects plugin writes when a note has unsaved editor changes.
|
||||
These document APIs require the current host source. The earlier 0.1.6 installer does not include them.
|
||||
The optional API method `renameDocument({ id, path }, name)` renames a recognized document and returns its new workspace path.
|
||||
The host checks the document ID and plugin owner. It keeps the folder and extension, rejects name collisions, and updates open tabs.
|
||||
Names can contain dots. Hidden names and reserved filename characters are invalid.
|
||||
Unsaved text edits block plugin renames. This method requires the updated host source.
|
||||
Binary document types set `content: "binary"`. Text remains the default.
|
||||
For binary types, `identify(path, source)` receives an empty source string and recognizes the path without reading its contents.
|
||||
The mount reads bytes with `workspace.readBytes(path)` and reports invalid document data in its own view.
|
||||
This avoids UTF-8 conversion and full file reads while the file tree identifies binary documents.
|
||||
The native read command checks the active window's workspace boundary and rejects directories and files larger than 64 MiB.
|
||||
Binary document support requires the updated host source. The earlier 0.1.6 installer does not include it.
|
||||
Check for `api.workspace.readBytes` during activation and report a clear host update error when it is absent.
|
||||
|
||||
Navigation views with `placement: "sidebar"` appear beside Files, Search, and Bookmarks in the top header.
|
||||
Other navigation views appear as icon buttons in the ribbon left of the navigation pane.
|
||||
The optional view `icon` accepts `list`, `kanban`, or `puzzle`. The default is `puzzle`.
|
||||
Buttons show the view title in a tooltip on hover and keyboard focus.
|
||||
The ribbon remains available when the navigation pane is closed.
|
||||
|
||||
Views can return asynchronous cleanup. Closing a view and disabling its plugin share the same cleanup promise.
|
||||
Remove timers, listeners, and other resources in cleanup. Use the abort signal to stop pending work.
|
||||
The SDK rejects calls after shutdown starts, but it does not isolate JavaScript with full application access.
|
||||
Packages activate in every RuneStone window, including standalone terminal windows.
|
||||
|
||||
Contribution types live in `src/lib/plugins/contracts.ts`.
|
||||
Only one active package can own each contribution. The runtime removes contributions before cleanup starts.
|
||||
Terminal controls mount into a host element and return update, command, and disposal functions.
|
||||
The plugin must stop its mounted controls and native sessions in `onDispose` before cleanup completes.
|
||||
|
||||
## Modules and checks
|
||||
|
||||
| Module | Owns |
|
||||
| --- | --- |
|
||||
| `src-tauri/src/plugins.rs` | Discovery, validation, installation, persistence, removal plans, and cleanup acknowledgments |
|
||||
| `src/lib/plugins/PluginManager.svelte` | Package review, switches, and the uninstall dialog |
|
||||
| `src/lib/plugins/sdk.ts` | External package types |
|
||||
| `src/lib/plugins/externalSession.ts` | Activation, contributions, view disposal, and shutdown |
|
||||
| `src/lib/plugins/external.ts` | Native state synchronization and external module loading |
|
||||
| `src/lib/plugins/PluginTools.svelte` | External commands and views |
|
||||
| `src/lib/plugins/registry.ts` / `contracts.ts` | Shared feature contributions and their types |
|
||||
| `src/lib/plugins/TerminalSlot.svelte` | The host element for terminal controls |
|
||||
| `../RuneStone_Terminal/src/` | Terminal plugin source in its own repository |
|
||||
| `../RuneStone_Table_Formulas/` | Table Formulas source, unit tests, and package build |
|
||||
| `scripts/buildPlugins.mjs` | Table Formulas compilation and ZIP release in `../RuneStone_Table_Formulas/releases/` |
|
||||
| `scripts/packagePlugin.mjs` | Shared checks and ZIP creation for plugin authors |
|
||||
|
||||
Run `pnpm build:plugins`, `pnpm check`, `pnpm test`, `pnpm build`, and `cargo test --manifest-path src-tauri/Cargo.toml --lib --offline`.
|
||||
Run `pnpm check`, `pnpm test`, and `pnpm build` in `RuneStone_Terminal` for terminal checks.
|
||||
Build Terminal before host browser tests. They read `../RuneStone_Terminal/dist/` by default.
|
||||
Set `RUNESTONE_TERMINAL_DIST` to use another compiled terminal folder.
|
||||
The Rust tests use real temporary files and archives. Browser tests mock desktop calls and exercise the real UI and module loader.
|
||||
Run `scripts/pluginInstall.smoke.mjs`, `scripts/plugins.smoke.mjs`, and `scripts/settings.smoke.mjs` against the development server.
|
||||
|
||||
Native plugin packages and restricted permissions remain future work.
|
||||
The core keeps basic Markdown tables, file editing, selection, sorting, and document access when optional features stop.
|
||||
|
||||
## Built-in browser
|
||||
|
||||
Browser now belongs to RuneStone. The installer includes its interface and native Chromium runtime.
|
||||
Users can open browser tabs, manage profiles in Settings, and use web bookmarks without a plugin ZIP.
|
||||
The existing browser data directory stays the same. Profiles, bookmarks, cookies, and settings remain available.
|
||||
An old Browser package can be removed from Settings. The host does not load it alongside the built-in browser.
|
||||
|
||||
The interface source lives in `src/lib/browser/`. The runtime source lives in `browser-runtime/`.
|
||||
Run `pnpm browser:stage` after packaging that runtime and before creating an installer.
|
||||
The main Tauri configuration includes `src-tauri/browser-engine/` as an installer resource.
|
||||
Browser startup obtains a session token for its window. Native requests check that token, and cleanup revokes it.
|
||||
|
||||
## Git and sidebar views
|
||||
|
||||
The Git plugin adds source control to the left pane. It supports file diffs, staging, unstaging, commits, and line history.
|
||||
Git must be installed, and the workspace must be the repository root. Linked worktrees are not supported yet.
|
||||
Commit hooks still run. A failed commit keeps the message and shows the error.
|
||||
|
||||
Plugins can register `placement: "sidebar"` views with a navigation icon.
|
||||
The optional `openFile(path)` method opens a workspace file.
|
||||
The optional `git` API supplies status, diff, stage, unstage, commit, and blame operations.
|
||||
The optional `replaceView(currentId, nextId)` method changes the current tab while preserving its position and pin state.
|
||||
For document tabs, `replaceDocumentWithView(document, nextId)` supplies the same behavior.
|
||||
Both methods restrict the source and destination to the calling plugin.
|
||||
|
||||
The Git plugin also supports push, fast-forward-only pull, and a collapsible graph of the latest 100 commits.
|
||||
Changes and Graph collapse independently. The graph shows branches, tags, commit IDs, authors, dates, and commit messages.
|
||||
Push and pull use the current branch's configured upstream and existing Git authentication.
|
||||
Pull stops when local changes or diverging commits prevent a fast-forward update. The plugin does not force-push or create an upstream automatically.
|
||||
|
||||
The optional Git API adds `push()`, `pull()`, and `graph()` in the current host source.
|
||||
These methods require an updated host and remain subject to plugin shutdown checks.
|
||||
|
||||
The Git graph uses graphical commit nodes and parent links. It shows forks, merges, branches, tags, commit IDs, authors, dates, and messages.
|
||||
The host returns structured history from `git.graph()`: `{ commits: [{ id, parents, refs, summary, author, date }] }`.
|
||||
The graph keeps the latest 100 commits. Dashed links mark parents outside that history.
|
||||
The updated Git package requires the matching host build. An older host shows an update message instead of a graph.
|
||||
|
||||
## Temporary background API
|
||||
|
||||
RuneStone 0.1.25 adds optional `api.backgrounds` with `version: 1`.
|
||||
Background Slideshow uses it for local image folders and temporary backgrounds.
|
||||
Project Management 0.2.29 uses it for board backgrounds.
|
||||
|
||||
| Method | Contract |
|
||||
| --- | --- |
|
||||
| `chooseFolder()` | Open the native folder picker. Return an absolute path or null on cancellation. |
|
||||
| `defaultFolder()` | Optional. Create and return Pictures/RuneStone Backgrounds for new settings. |
|
||||
| `list(folder)` | List PNG, JPEG, GIF, and WebP filenames directly inside the folder. |
|
||||
| `read(folder, name)` | Read one raster image as bytes, with a 50 MiB limit. |
|
||||
| `set(target, frame)` | Apply a temporary frame. Pass null to remove this plugin's frame. |
|
||||
| `get(target)` | Read the active frame or null. |
|
||||
| `subscribe(listener)` | Receive the changed target. Return a cleanup function. |
|
||||
|
||||
Targets are `app`, `pm-all`, and `pm-board:<board UUID>`.
|
||||
A frame contains `url`, `overlay`, `position`, and `size`.
|
||||
It can also contain `previous` with those four fields and `transitionMs` from 0 to 5000.
|
||||
Renderers fade between these frames unless reduced motion is active. Keep both blob URLs valid until replacement or cleanup.
|
||||
Use a blob URL. The publishing plugin owns the URL and must release it after replacement or cleanup.
|
||||
Overlay ranges from -1 to 1. Negative values lighten the image, and positive values darken it.
|
||||
Position and size use the same choices as custom image settings.
|
||||
|
||||
Frames belong to the plugin activation in the current window. They do not change saved background settings.
|
||||
The last published frame wins. Removing it reveals an earlier active frame or the saved background.
|
||||
Project Management checks a temporary board frame first, then `pm-all`, then the saved board image.
|
||||
Disable removes the plugin's frames and subscriptions before cleanup.
|
||||
File access requires an active plugin lease. Pending reads fail after access is revoked.
|
||||
Image reads reject path traversal, linked files, unsupported formats, and oversized files.
|
||||
|
||||
Each window keeps its own sequence. The plugin settings API shares folder and playback settings across windows.
|
||||
|
||||
|
||||
### Per-image background settings
|
||||
|
||||
Slideshow stores per-image fit, position, and overlay in .runestone-backgrounds.json beside the images. The sidecar uses schema 1 and an images object. Settings saves compare the previous file text to preserve external changes. The sidecar has a 1 MiB limit.
|
||||
Portrait images show the full image over a blurred cover layer by default. Each target scales the foreground and blurred layer separately. The image editor shows a preview and lets users save or reset an override. Global settings remain the fallback for other images.
|
||||
The optional background API adds readImageSettings and writeImageSettings. Temporary frames can supply blurredUrl. The plugin owns all frame URLs and releases them after replacement or shutdown.
|
||||
|
||||
### View launch defaults
|
||||
|
||||
Views can supply an optional `launch()` handler for entry through the plugin launcher or navigation button.
|
||||
The handler can select a default view with `api.openView(id)`.
|
||||
Explicit `api.openView` calls and restored tabs bypass the launch handler and retain their targets.
|
||||
Views without a handler open as before. Older hosts ignore this optional field.
|
||||
Project Management uses this handler for its fixed workspace default board.
|
||||
| The ZIP fails review | Read the reported error. Get a complete release ZIP from the plugin author. |
|
||||
| You received source code or a loose manifest | Get the release ZIP. Users do not need to build the plugin. |
|
||||
| The plugin is installed but unavailable | Check its switch and any error beside it in **Settings → Plug-ins**. |
|
||||
| Changed plugin files need another enable decision | Review the changed package before enabling it again. |
|
||||
| An update or uninstall reports a cleanup failure | Restart RuneStone, then repeat the action. |
|
||||
| The plugin shows **Removal incomplete** | Choose **Retry cleanup** to finish the confirmed removal. |
|
||||
| Retry cleanup reports changed files | Check the path in the error before retrying. |
|
||||
| A Gitea release has no usable package | Check the release tag and ask the publisher for a release with one attached plugin ZIP. |
|
||||
|
||||
Use **Show files** beside a plugin to inspect its installed folder.
|
||||
Include the plugin name, version, RuneStone version, and error text when you report a problem.
|
||||
|
||||
To create a plugin, use the [plugin development reference](plugin-development.md).
|
||||
It covers build examples, package requirements, releases, and the API.
|
||||
|
||||
@@ -1,122 +0,0 @@
|
||||
# Product scope
|
||||
|
||||
[Back to RuneStone](../README.md)
|
||||
|
||||
This reference preserves intended capabilities and design constraints. Some features already exist.
|
||||
See the [interface design reference](ui-design.md) for shared controls, dimensions, and visual checks.
|
||||
See the [roadmap](roadmap.md) for goals and milestones, and the [user guide](user-guide.md) for current behavior and limitations.
|
||||
|
||||
The core stays active while installed packages supply optional Terminal and Table Formulas features.
|
||||
External JavaScript packages can add commands and views. See the [plugin guide](plugins.md) for current boundaries.
|
||||
|
||||
## Workspace and files
|
||||
|
||||
- Open one folder as the workspace.
|
||||
- Keep notes, scripts, and images in the same tree.
|
||||
- Show workspace files without applying `.gitignore`, `.ignore`, or global Git exclusions.
|
||||
- Watch the folder for changes. Poll when the path is a network drive.
|
||||
- Prefer a local Git clone. Do not treat a live network share as the sync path.
|
||||
- Store display order, pins, and bookmarks in `.runestone/`. Store plugin packages and retained plugin settings in application data.
|
||||
- Open an existing Obsidian folder as files plus wiki links. Ignore `.obsidian`.
|
||||
|
||||
## Writer and IDE
|
||||
|
||||
- Use one editor engine for notes and code.
|
||||
- Switch chrome between Writer and IDE. Autodetect from the file type. Allow a per-file override.
|
||||
- Writer chrome uses wrapped text, a document preview, and image hover previews.
|
||||
- IDE chrome uses line numbers, a minimap, and a terminal dock.
|
||||
- Left-click a file in the navigation pane to open it in the current tab; middle-click to open it in a new tab. Tabs with unsaved edits stay open. Already-open files select their existing tab. Close a tab with the close control or the middle mouse button.
|
||||
- Support Markdown, Python, JavaScript, TypeScript, JSON, YAML, TOML, and shell at first.
|
||||
- Parse CommonMark, GFM tasks and tables, YAML frontmatter, wiki links, and tags.
|
||||
|
||||
## Navigator
|
||||
|
||||
- Show a left activity bar with Files, Search, and Bookmarks.
|
||||
- Click the active item again to hide the sidebar.
|
||||
- Right-click empty space to create a folder or a note.
|
||||
- Right-click a file for copy, bookmark, path copy, reveal, pin, rename, and delete.
|
||||
- Drag files and folders to move them or to set display order.
|
||||
- Save display order. Do not reorder inodes for sort.
|
||||
- Show a ribbon with new file, new folder, sort, and collapse all or expand all.
|
||||
|
||||
## Panes
|
||||
|
||||
- Show an outline of headings and symbols on the right. Allow collapse.
|
||||
- Show a minimap of the open buffer.
|
||||
- Open a terminal whose working directory is the workspace root.
|
||||
- Allow more than one terminal. Add a session and kill that session from a rail on the right of the dock.
|
||||
- Show a document preview that renders Markdown images.
|
||||
|
||||
## Plugins
|
||||
|
||||
Terminal and Table Formulas use the same installed package system as all other plugins.
|
||||
External JavaScript packages now support local installation, commands, views, retained settings, and removal with one confirmation.
|
||||
Users can enable or disable each plugin. A marketplace is outside the planned scope.
|
||||
Installation accepts standard ZIP packages and stores copies in the application data directory.
|
||||
Experimental Gitea repository links download one release ZIP into the same review flow.
|
||||
Local trials passed with four plugin packages. Live Gitea testing still needs published releases.
|
||||
GitHub and GitLab support remain future work.
|
||||
Uninstall requires one confirmation before RuneStone removes the installed plugin files.
|
||||
Cancel preserves the plugin. Removal keeps settings, source packages, and workspace documents.
|
||||
See the [installation and removal guide](plugins.md#uninstall-with-one-confirmation).
|
||||
|
||||
### Plugin to-do list
|
||||
|
||||
- [x] Standardize plugin releases and installation on readable ZIP packages.
|
||||
- [x] Add experimental Gitea release downloads and test the four plugin packages locally.
|
||||
- [ ] Complete the live Gitea release trial.
|
||||
- [x] Use one package system with API version checks, cleanup, saved preferences, and enable controls.
|
||||
- [x] Add external package loading, exact API compatibility checks, and retained plugin settings.
|
||||
- [x] Define an external API for commands, views, and workspace files.
|
||||
- [x] Require one confirmation before removing installed plugin files.
|
||||
- [ ] Add isolated execution and restricted permissions.
|
||||
- [x] Move terminal views, shortcuts, settings, and desktop API calls into an external plugin package.
|
||||
- [ ] Move native terminal services into a separate in-house package.
|
||||
- [x] Move formula evaluation, rendered results, and help controls into an external Table Formulas package.
|
||||
- [ ] Move the remaining spreadsheet operations into a separate in-house package.
|
||||
- [x] Add one Project Management plugin with connected Kanban, Gantt, and Calendar views.
|
||||
- [ ] Add a virtual tabletop system plugin.
|
||||
|
||||
Keep basic Markdown table editing and rendering in the core. Users must retain access to workspace files when plugins are disabled.
|
||||
Kanban, Gantt, and Calendar belong to one optional Project Management package with shared items.
|
||||
The Project Management plugin has a separate development project. See its [design and scope](../../RuneStone_Project_Management/project-management.md).
|
||||
|
||||
### Planned plugin lineup
|
||||
|
||||
No plugin starts automatically in a fresh installation. The planned lineup includes:
|
||||
|
||||
- Terminal. Workspace shells, sessions, and script execution.
|
||||
- Tables. Excel-like formulas and spreadsheet operations.
|
||||
- Git. Status, stage, commit, pull, push, log, and diff. Use the system `git` binary.
|
||||
- Sort. Per-folder order, pin, and hide. Flexplorer is a reference for behavior, not a source of code.
|
||||
|
||||
Planned plugins disabled by default:
|
||||
|
||||
- Project Management. Connected Kanban, Gantt, and Calendar views within one package.
|
||||
- Virtual tabletop. Tools for tabletop play within the workspace.
|
||||
- Graph. Draw wiki-link edges from the file index.
|
||||
- Canvas. Store `.canvas` files in JSON Canvas 1.0.
|
||||
- Browser. Open a page in an in-app webview. Block ads with EasyList and EasyPrivacy.
|
||||
|
||||
## Later work
|
||||
|
||||
- Background Git for people who do not want to run Git by hand. Timed commit, pull, and push. A history limit is not designed yet.
|
||||
- Extend the existing live Markdown preview. See the [user guide](user-guide.md) for current behavior.
|
||||
- Language servers for diagnostics and go-to-definition.
|
||||
- Wiki-link jump and backlinks from a rebuildable index.
|
||||
- A command palette for every command.
|
||||
|
||||
## Out of scope
|
||||
|
||||
- A plugin marketplace
|
||||
- Obsidian or VS Code plugin compatibility
|
||||
- Cloud sync, live collaboration, or mobile
|
||||
- A debugger or a full IDE
|
||||
- Auto-commit on save
|
||||
|
||||
## Architecture goals
|
||||
|
||||
Dark is the primary theme.
|
||||
|
||||
Privileged operations belong in Rust: disk access, file watching, search, Git, terminal sessions, and adblock matching.
|
||||
Git, terminal sessions, spreadsheet operations, and adblock matching belong to planned plugins.
|
||||
@@ -1,63 +0,0 @@
|
||||
# Product roadmap
|
||||
|
||||
[Back to RuneStone](../README.md)
|
||||
|
||||
**Goal:** Make RuneStone a dependable place to write, understand, and run a project
|
||||
while keeping its files portable and under the user's control.
|
||||
|
||||
## Direction
|
||||
|
||||
This is a proposed progression from the existing editor to a broader workspace.
|
||||
No release dates are assigned.
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
accTitle: RuneStone product direction
|
||||
accDescr: First make daily work dependable, then help users understand connected projects, then let users choose optional workflows.
|
||||
daily("1. Trust daily work<br/>Write, run, and resume")
|
||||
understand("2. Understand the project<br/>Follow ideas and code")
|
||||
adapt("3. Choose your workflow<br/>Add only the tools you need")
|
||||
daily --> understand --> adapt
|
||||
```
|
||||
|
||||
## 1. Trust daily work
|
||||
|
||||
**Objective:** Make RuneStone dependable enough to serve as the everyday home for notes and scripts.
|
||||
|
||||
The current editor, local files, autosave, and terminals provide the foundation.
|
||||
Session restoration and crash recovery would let users resume work after an interruption.
|
||||
|
||||
**Milestone:** A user can write a note, run its companion script, restart the app,
|
||||
and resume the workspace with recoverable edits.
|
||||
|
||||
## 2. Understand the project
|
||||
|
||||
**Objective:** Help users move from a question to the related notes and code without losing context.
|
||||
|
||||
Reliable note links and backlinks would connect explanations.
|
||||
Code navigation and diagnostics would help users understand the scripts those explanations describe.
|
||||
|
||||
**Milestone:** A user can follow a note to related material, locate a code definition,
|
||||
and identify a reported code problem within the workspace.
|
||||
|
||||
## 3. Choose your workflow
|
||||
|
||||
**Objective:** Support different ways of working while keeping the core editor simple.
|
||||
|
||||
Users can install, disable, and remove Terminal and Table Formulas while retaining access to their files.
|
||||
Separately packaged plugins can extend that choice to planning, tabletop play, and other workflows.
|
||||
Users can now install local packages and remove them through one confirmation while retaining their data.
|
||||
Restricted permissions and the remaining spreadsheet modules are still planned.
|
||||
|
||||
**Milestone:** A user can enable a packaged plugin, use it with workspace files,
|
||||
and disable it while retaining access to those files in the core editor.
|
||||
|
||||
Project Management plugin planning lives in the separate [Project Management roadmap](../../RuneStone_Project_Management/roadmap.md).
|
||||
|
||||
## Why this order?
|
||||
|
||||
Reliable daily work establishes trust. Better navigation then helps users understand larger projects.
|
||||
Optional workflows build on that foundation while preserving a focused core.
|
||||
|
||||
Detailed capabilities and boundaries live in the [product scope](product-scope.md).
|
||||
The [user guide](user-guide.md) describes what works today.
|
||||
+28
-4
@@ -12,6 +12,7 @@ Check its release notes if a control is missing.
|
||||
| Work with images, diagrams, or tables | [Document tools](guides/document-tools.md) |
|
||||
| Save a reusable note | [Templates](#use-note-templates) |
|
||||
| Change colors | [Appearance](guides/themes.md) |
|
||||
| Browse websites and manage browser profiles | [Built-in browser](#use-the-built-in-browser) |
|
||||
| Run commands or scripts | [Terminal guide](guides/terminal.md) |
|
||||
| Resolve a changed or missing file | [File conflicts](#resolve-file-conflicts) |
|
||||
|
||||
@@ -51,11 +52,19 @@ Writer edits preserve Markdown source, frontmatter, and Windows line endings.
|
||||
Read displays frontmatter in a collapsed Properties section.
|
||||
|
||||
Ctrl+click opens links in Writer and IDE mode. Workspace file links open a tab and retain the source document.
|
||||
Links to document sections scroll to the heading in Writer, IDE, Read, and Split views.
|
||||
Use a Markdown heading fragment, such as `#install-and-start`, after the file path or by itself for the current document.
|
||||
Read mode follows links with an ordinary click. Wiki links, note callouts, and Mermaid diagrams work in document views.
|
||||
Wiki links resolve note names across the workspace. Use a relative or workspace path when names repeat.
|
||||
The Backlinks section below the outline lists notes that link to the current note. Select an entry to open its source.
|
||||
Collapse the section to hide it. Use Rebuild note index to scan the workspace again.
|
||||
The index follows note changes and link edits. Markdown files remain readable without the index.
|
||||
Code blocks remain editable on the first click. Their Copy code button copies the body without the Markdown fences.
|
||||
|
||||
Click the note title in Writer to rename its file. Enter or leaving the field saves the name, and Escape cancels.
|
||||
The rename keeps the folder, Markdown extension, contents, and editing history.
|
||||
Press F2 in the file navigator to rename an item. File names select the stem and keep the extension outside the selection.
|
||||
Folder names select the complete name.
|
||||
|
||||
### Format text
|
||||
|
||||
@@ -93,9 +102,16 @@ Right-click a tab for Move tab left or Move tab right.
|
||||
With a tab focused, Alt+Shift+Left or Alt+Shift+Right moves it. Arrow keys, Home, and End select tabs.
|
||||
|
||||
Drag a tab outside the tab strip to move it into a new window.
|
||||
Drop a tab near another window's tab ribbon to add it at the end.
|
||||
Drop over an existing tab to choose its position.
|
||||
You can also right-click the tab and choose Open in new window.
|
||||
RuneStone transfers the current buffer, including unsaved text. It closes the source tab after the new window accepts the transfer.
|
||||
If the transfer fails or the source buffer changes before acceptance, the source tab remains open.
|
||||
Move a plugin tab between existing windows of the same workspace, or tear it into a new window.
|
||||
The source tab stays open if the destination cannot accept it or already contains the view.
|
||||
|
||||
A normal application restart restores document tabs in their saved order, with the active tab and pins.
|
||||
Missing or renamed files do not block the remaining tabs. RuneStone reads document contents from disk.
|
||||
|
||||
## Save your work
|
||||
|
||||
@@ -105,7 +121,7 @@ Settings → General accepts an interval from 1 to 300 seconds or turns auto-sav
|
||||
The interval changes when you leave the field. Restore defaults enables the five-second interval again.
|
||||
|
||||
Closing a dirty tab or desktop window asks before it discards edits or ends terminal sessions.
|
||||
Open tabs and unsaved buffers do not restore after an application restart.
|
||||
Unsaved buffers, terminal sessions, and plugin views without a document do not restore after restart. Crash recovery remains planned.
|
||||
|
||||
## Resolve file conflicts
|
||||
|
||||
@@ -135,6 +151,13 @@ No optional plugin starts automatically in a fresh installation. Enable choices
|
||||
Disabling Terminal ends its sessions. Disabling Table Formulas preserves formulas and basic table editing.
|
||||
Uninstall removes the installed package after confirmation and retains its settings and workspace documents.
|
||||
|
||||
## Use the built-in browser
|
||||
|
||||
The RuneStone installer includes the browser interface and its native Chromium runtime. No plugin ZIP is required.
|
||||
Use **New browser tab** to open a browser tab. Manage profiles in Settings and use web bookmarks to return to saved sites.
|
||||
The browser keeps the existing data directory, including profiles, bookmarks, cookies, and settings.
|
||||
You can uninstall an old Browser package through **Settings → Plug-ins**. The host does not load it alongside the built-in browser.
|
||||
|
||||
## Keyboard reference
|
||||
|
||||
These are the Windows/Linux shortcuts. macOS desktop behavior still needs native tests.
|
||||
@@ -156,10 +179,11 @@ The [Terminal guide](guides/terminal.md) lists plugin shortcuts.
|
||||
Press F1 or use the question mark beside the workspace selector for Help and about.
|
||||
It shows the app version, basic instructions, and shortcuts. Escape or the close button returns to the document.
|
||||
|
||||
Vault-wide wiki-link resolution, backlinks, and math rendering still need work.
|
||||
Language servers, restricted plugin permissions, persistent tabs after restart, and crash recovery remain planned.
|
||||
Math rendering still needs work.
|
||||
Crash recovery and restricted plugin permissions remain planned.
|
||||
Language-server support belongs to a future optional plugin because of its technical requirements.
|
||||
Git controls are available through the optional Git plugin. Git is no longer only a planned feature.
|
||||
Unsaved buffers and terminal sessions last only for the current application session.
|
||||
|
||||
For setup failures, use [installation help](installation.md#setup-help).
|
||||
For installation and update steps, use the [installation guide](installation.md).
|
||||
For a reproducible problem, record the app version, operating system, steps, expected result, and error text.
|
||||
|
||||
Reference in New Issue
Block a user