Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat(desktop): create Harper Desktop (#3324)

Elijah Potterf96274e2ec74
diff --git a/.github/workflows/just_checks.yml b/.github/workflows/just_checks.yml
index 595ffd204..f0e1dbae3 100644
--- a/.github/workflows/just_checks.yml
+++ b/.github/workflows/just_checks.yml
@@ -26,6 +26,8 @@ jobs:
test-chrome-plugin,
test-firefox-plugin,
test-obsidian,
+ check-desktop,
+ build-desktop-linux,
]
steps:
- uses: actions/checkout@v4
@@ -41,6 +43,15 @@ jobs:
node-version-file: ".node-version"
- name: Enable Corepack
run: corepack enable
+ - name: Install Tauri Linux dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y \
+ libayatana-appindicator3-dev \
+ librsvg2-dev \
+ libwebkit2gtk-4.1-dev \
+ libxdo-dev
+ sudo apt-get install -y libappindicator3-dev || true
- name: Rust Cache
uses: Swatinem/[email protected]
- uses: cargo-bins/cargo-binstall@main
@@ -48,5 +59,7 @@ jobs:
run: cargo binstall wasm-pack --force --no-confirm
- name: Install `cargo hack`
run: cargo binstall cargo-hack --force --no-confirm
+ - name: Install `tauri-cli`
+ run: cargo binstall tauri-cli --force --no-confirm
- name: Run `${{ matrix.task }}`
run: just ${{ matrix.task }}
diff --git a/AGENTS.md b/AGENTS.md
index f8334baa0..37b6c4e6a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -10,6 +10,9 @@ Use `packages/web/vite.config.ts` as the source of truth for documentation scope
If you're working on the Harper repository itself, please pay special attention to the `contributors/*` pages.
Importantly, all the tools available in this repository are available via `just`. To learn more, run `just --list`.
+Human coders should periodically review this file and manually migrate stable, human-facing guidance into the real documentation website under `packages/web` so it is available outside agent workflows.
+Agents should remind humans of this when possible.
+
## Read First
1. `packages/web/vite.config.ts`: Sidebar source of truth and canonical map of important docs routes.
@@ -93,15 +96,123 @@ Importantly, all the tools available in this repository are available via `just`
- `harper-wasm`: The WebAssembly build target that powers browser and JavaScript integrations such as `harper.js`.
- `packages/lint-framework`: A package containing the tooling necessary to read/write/highlight text on the web for the purpose of linting.
- `packages/components`: Shared Svelte component package used by web-facing packages.
+- `packages/harper-editor`: Shared Svelte editor package used by web-facing packages and Harper Desktop.
- `packages/web`: The Harper website, including documentation and a live demo that uses the `lint-framework`.
- `packages/harper.js`: The JavaScript package that uses `harper-wasm` to lint text from websites or Node.js processes.
- `packages/chrome-plugin`: The Harper Chrome Extension - uses the `lint-framework`. Also support Firefox.
- `packages/obsidian-plugin`
- `packages/wordpress-plugin`
- `packages/vscode-plugin`: The Harper Visual Studio Code plugin. Uses `harper-ls`.
+- `harper-desktop`: The Harper Desktop app. It is a Tauri v2 + SvelteKit SPA with an offline editor, settings UI, tray/service control, and native overlay highlighter.
There are of course projects in this repository not listed above. If relevant, feel free to poke around.
+## Harper Desktop
+
+### Commands
+
+- Use `pnpm` for frontend packages; `harper-desktop/package.json` pins `[email protected]`.
+- Dev app: `just dev-desktop` from repo root. It builds shared web packages, runs `cargo tauri dev`, and Tauri then runs `pnpm dev` on port `1420`.
+- Start the highlighter process directly: `just dev-desktop-highlighter` from repo root.
+- Frontend checks: `pnpm check` from `harper-desktop`.
+- Frontend build only: `pnpm build` from `harper-desktop`.
+- Full desktop checks: `just check-desktop` from repo root.
+- Rust checks: `cargo check -p harper-desktop --all-targets` from repo root.
+- Rust formatting/fix loop from repo root: `cargo fmt && cargo check -p harper-desktop --all-targets`.
+- Bundle builds match CI: `just build-desktop-linux` or `just build-desktop-macos`.
+- `just build-desktop-linux` builds deb/rpm/appimage bundles.
+- `just build-desktop-macos` builds app/dmg bundles.
+
+### Architecture
+
+- Harper Desktop lives under `harper-desktop` and is part of the root Cargo and pnpm workspaces.
+- It is a SvelteKit SPA inside Tauri v2.
+- SSR is disabled in `harper-desktop/src/routes/+layout.ts`.
+- `harper-desktop/svelte.config.js` uses `adapter-static` with `fallback: "index.html"`.
+- Main Rust entrypoint is `harper-desktop/src-tauri/src/main.rs`, which calls `harper_desktop_lib::run()`.
+- CLI behavior is in `harper-desktop/src-tauri/src/lib.rs`: no subcommand runs the normal Tauri app; `highlighter` runs the native overlay highlighter.
+- Tauri config lives in `harper-desktop/src-tauri/tauri.conf.json`.
+- Tauri capabilities live in `harper-desktop/src-tauri/capabilities/default.json`.
+- The main Svelte route is `harper-desktop/src/routes/+page.svelte`; it switches between the settings UI and editor UI.
+- The editor UI lives in `harper-desktop/src/lib/EditorView.svelte` and uses workspace dependencies on `harper.js` and `harper-editor`.
+- The settings UI lives under `harper-desktop/src/lib/settings/`.
+- Rust uses local workspace dependencies from `harper-desktop/src-tauri/Cargo.toml`, including `harper-core` and `harper-dictionary-wordlist`.
+- The Tauri app starts a tray/menu-bar controlled highlighter service on launch and can open editor/settings windows from the tray.
+- Editor and settings windows hide on close instead of exiting; quit is handled through the tray menu.
+
+### Highlighter Architecture
+
+- The highlighter is Rust/egui/winit code under `harper-desktop/src-tauri/src/highlighter/`.
+- `Highlighter` is the public entry point for the overlay system.
+- `Window` owns native window/GPU plumbing.
+- `WindowManager` owns the winit event loop, monitor windows, cursor hit-testing, and popup selection.
+- `RenderState` owns highlight rendering, popup drawing, markdown rendering cache, and popup action dispatch.
+- `RenderState` uses `ActionableLint` values from `harper-desktop/src-tauri/src/rect.rs`.
+- `ActionableLint` stores lint geometry, the Harper `Lint`, and source text needed for suggestion application and popup actions.
+- Suggestion popup actions currently include close, apply suggestion, ignore lint, add to dictionary, disable rule, and refresh config.
+- Popup hover text is implemented in `RenderState` button helpers.
+- The highlighter read interval is set in `run_highlighter()` with `with_read_interval(Duration::from_millis(16))`.
+
+### OS Integration
+
+- OS integration is behind `harper-desktop/src-tauri/src/os_broker.rs`.
+- macOS uses `harper-desktop/src-tauri/src/mac_broker.rs`.
+- non-macOS currently uses `NoopBroker`.
+- macOS highlighter focus handling depends on `MacBroker.last_focused`; clicking the overlay can make the highlighter process focused, so accessibility reads fall back to the last non-highlighter PID.
+- macOS integrations are bundle-ID based and controlled by persisted `Integration` entries.
+- Highlighter stdout is reserved for JSON-line IPC. Diagnostics in highlighter paths should use `eprintln!`, not `println!`.
+
+### IPC And App State
+
+- Tauri app state lives in `harper-desktop/src-tauri/src/config.rs`.
+- `Config` currently stores `mutable_dictionary: MutableDictionary`, `dialect: Dialect`, `ignored_lints: IgnoredLints`, `lint_config: FlatConfig`, and `integrations: Vec<Integration>`.
+- `Config::new()` uses `MutableDictionary::new()`, `Dialect::American`, `IgnoredLints::new()`, `FlatConfig::new_curated()`, and curated default integrations.
+- Config is persisted under the system config directory in a `harper-desktop` folder. Main settings are serialized to `config.json`; the mutable dictionary is stored separately as `dictionary.txt`.
+- `Config::load_from_system()` loads the serialized config and then hydrates the mutable dictionary with the selected dialect.
+- The Tauri app owns shared config as `Arc<Mutex<Config>>`.
+- `run_tauri()` loads persisted config, creates `HighlighterService`, starts the highlighter service, and creates the tray/menu-bar UI.
+- The highlighter process is spawned through `harper-desktop/src-tauri/src/highlighter_process.rs`.
+- IPC is implemented under `harper-desktop/src-tauri/src/communication/`.
+- IPC uses newline-delimited JSON over child stdin/stdout.
+- The Tauri app is the protocol server.
+- The highlighter process is the protocol client.
+- Protocol messages live in `harper-desktop/src-tauri/src/communication/message.rs`.
+- Supported requests include `GetLintConfig`, `GetDictionary`, `GetDialect`, `GetIgnoredLints`, `GetIntegrations`, `SetLintConfig`, `IgnoreLint`, `AddToDictionary`, `AddIntegration`, `RemoveIntegration`, and `SetIntegrationEnabled`.
+- Supported responses include `GetLintConfig`, `GetDictionary`, `GetDialect`, `GetIgnoredLints`, `GetIntegrations`, and `Ack`.
+- `IgnoredLints` is transferred as whole serialized state and merged server-side.
+- `AddToDictionary` sends only the word; Rust appends it with `DictWordMetadata::default()`.
+- The highlighter uses a Tokio current-thread runtime to call async IPC client methods from synchronous UI callbacks.
+- That runtime is bridge plumbing only; it is not used for linting or UI rendering.
+
+### Dictionary And Linting Gotchas
+
+- Keep dictionary construction centralized through `Config::dictionary_from_user_dictionary(user_dictionary: MutableDictionary) -> Arc<MergedDictionary>` and `Config::create_dictionary()`.
+- Keep linter construction centralized through `Config::create_linter()`.
+- The same merged dictionary source must be used for both `Document::new_markdown_default(text, &dictionary)` and `LintGroup::new_curated(dictionary, dialect)`.
+- Do not use `Document::new_markdown_default_curated(text)` in the main highlighter lint callback when user dictionary words should suppress spelling lints.
+- Harper spelling lint behavior depends on document token metadata, so a linter with the updated dictionary is not enough if the `Document` was built with the curated dictionary only.
+- `RenderState` may still use curated document construction for localized source extraction where dictionary membership does not matter.
+
+### Frontend Integration
+
+- Tauri commands in `harper-desktop/src-tauri/src/lib.rs` include `get_lint_config`, `get_dialect`, `set_dialect`, `set_lint_config`, `get_dictionary`, `set_dictionary`, `ignore_lint`, `add_to_dictionary`, `get_integrations`, `add_integration`, `remove_integration`, and `set_integration_enabled`.
+- JS helper lives in `harper-desktop/src/lib/client.ts`.
+- JS helper class is named `Client` and exposes static methods for lint config, dialect, dictionary, ignored lints, dictionary additions, and integrations.
+- `Client.ignoreLint(...)` uses Harper JS ignored-lints export data and invokes the Rust command.
+- `Client.addToDictionary(word)` sends only the word to Rust.
+- Vite's dev server must stay on port `1420`; `harper-desktop/vite.config.js` uses `strictPort: true` because Tauri expects that port.
+- Vite intentionally ignores `src-tauri/**` during frontend file watching.
+
+### Repo-Specific Gotchas
+
+- CI installs `wasm-pack`, `tauri-cli`, and `cargo-hack` with `cargo binstall`, then runs the relevant root `just` task.
+- Avoid mixing behavior fixes with structural refactors in the highlighter; popup/UI, IPC, dictionary behavior, config persistence, settings UI, and OS-coordinate fixes are easier to review separately.
+
+### Known Review Findings
+
+- Secondary-monitor highlighter coordinates may be wrong. Accessibility rectangles appear to be global screen coordinates, while each overlay window's egui origin is local to that monitor/window. Translate by monitor/window origin or render through one virtual-desktop-sized overlay.
+- macOS text range lookup may be wrong after emoji or other non-BMP characters. Harper spans are char-based, while macOS accessibility ranges are NSString/UTF-16 based. Convert spans before calling `AXBoundsForRangeParameterizedAttribute`.
+
## On Writing New Rules
When asked to write a new rule, keep these guidelines in mind:
diff --git a/Cargo.lock b/Cargo.lock
index 1dbb5052e..4dbb37dd9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,6 +2,53 @@
# It is not intended for manual editing.
version = 4
+[[package]]
+name = "ab_glyph"
+version = "0.2.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2"
+dependencies = [
+ "ab_glyph_rasterizer",
+ "owned_ttf_parser",
+]
+
+[[package]]
+name = "ab_glyph_rasterizer"
+version = "0.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
+
+[[package]]
+name = "accessibility"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ac9f33ffc1ef16eddb2451c03c983e56a5182ac760c3f2733da55ba8f48eac4"
+dependencies = [
+ "accessibility-sys",
+ "cocoa",
+ "core-foundation 0.10.1",
+ "objc",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "accessibility-sys"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46a6a8e90a1d8b96a48249e7c8f5b4058447bea8847280db7bfccb6dcab6b8e1"
+dependencies = [
+ "core-foundation-sys",
+]
+
+[[package]]
+name = "accesskit"
+version = "0.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5351dcebb14b579ccab05f288596b2ae097005be7ee50a7c3d4ca9d0d5a66f6a"
+dependencies = [
+ "uuid",
+]
+
[[package]]
name = "adler2"
version = "2.0.1"
@@ -15,6 +62,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
dependencies = [
"cfg-if",
+ "getrandom 0.3.4",
"once_cell",
"version_check",
"zerocopy",
@@ -29,6 +77,21 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "alloc-no-stdlib"
+version = "2.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
+
+[[package]]
+name = "alloc-stdlib"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"
+dependencies = [
+ "alloc-no-stdlib",
+]
+
[[package]]
name = "alloca"
version = "0.4.0"
@@ -50,13 +113,38 @@ version = "4.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17e913097e1a2124b46746c980134e8c954bc17a6a59bb3fde96f088d126dde6"
dependencies = [
- "cssparser",
- "html5ever",
+ "cssparser 0.35.0",
+ "html5ever 0.35.0",
"maplit",
- "tendril",
+ "tendril 0.4.3",
"url",
]
+[[package]]
+name = "android-activity"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd"
+dependencies = [
+ "android-properties",
+ "bitflags 2.11.0",
+ "cc",
+ "jni 0.22.4",
+ "libc",
+ "log",
+ "ndk",
+ "ndk-context",
+ "ndk-sys",
+ "num_enum",
+ "thiserror 2.0.18",
+]
+
+[[package]]
+name = "android-properties"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04"
+
[[package]]
name = "android_system_properties"
version = "0.1.5"
@@ -137,6 +225,26 @@ dependencies = [
"derive_arbitrary",
]
+[[package]]
+name = "arboard"
+version = "3.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0348a1c054491f4bfe6ab86a7b6ab1e44e45d899005de92f58b3df180b36ddaf"
+dependencies = [
+ "clipboard-win",
+ "image",
+ "log",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
+ "parking_lot",
+ "percent-encoding",
+ "windows-sys 0.60.2",
+ "x11rb",
+]
+
[[package]]
name = "ariadne"
version = "0.6.0"
@@ -147,19 +255,43 @@ dependencies = [
"yansi",
]
+[[package]]
+name = "arrayref"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
+
[[package]]
name = "arrayvec"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
+[[package]]
+name = "as-raw-xcb-connection"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
+
[[package]]
name = "ash"
version = "0.38.0+1.3.281"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"
dependencies = [
- "libloading",
+ "libloading 0.8.8",
+]
+
+[[package]]
+name = "async-broadcast"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
]
[[package]]
@@ -174,6 +306,136 @@ dependencies = [
"pin-project-lite",
]
+[[package]]
+name = "async-executor"
+version = "1.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "async-io"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
+dependencies = [
+ "autocfg",
+ "cfg-if",
+ "concurrent-queue",
+ "futures-io",
+ "futures-lite",
+ "parking",
+ "polling",
+ "rustix 1.1.4",
+ "slab",
+ "windows-sys 0.61.1",
+]
+
+[[package]]
+name = "async-lock"
+version = "3.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-process"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
+dependencies = [
+ "async-channel",
+ "async-io",
+ "async-lock",
+ "async-signal",
+ "async-task",
+ "blocking",
+ "cfg-if",
+ "event-listener",
+ "futures-lite",
+ "rustix 1.1.4",
+]
+
+[[package]]
+name = "async-recursion"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "async-signal"
+version = "0.2.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"
+dependencies = [
+ "async-io",
+ "async-lock",
+ "atomic-waker",
+ "cfg-if",
+ "futures-core",
+ "futures-io",
+ "rustix 1.1.4",
+ "signal-hook-registry",
+ "slab",
+ "windows-sys 0.61.1",
+]
+
+[[package]]
+name = "async-task"
+version = "4.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
+
+[[package]]
+name = "async-trait"
+version = "0.1.89"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "atk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b"
+dependencies = [
+ "atk-sys",
+ "glib",
+ "libc",
+]
+
+[[package]]
+name = "atk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
[[package]]
name = "atomic-waker"
version = "1.1.2"
@@ -186,12 +448,29 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "628d228f918ac3b82fe590352cc719d30664a0c13ca3a60266fe02c7132d480a"
+[[package]]
+name = "auto-launch"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1f012b8cc0c850f34117ec8252a44418f2e34a2cf501de89e29b241ae5f79471"
+dependencies = [
+ "dirs 4.0.0",
+ "thiserror 1.0.69",
+ "winreg 0.10.1",
+]
+
[[package]]
name = "autocfg"
version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
+[[package]]
+name = "base64"
+version = "0.21.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
+
[[package]]
name = "base64"
version = "0.22.1"
@@ -225,7 +504,7 @@ dependencies = [
"regex",
"rustc-hash 2.1.1",
"shlex",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -234,7 +513,16 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
dependencies = [
- "bit-vec",
+ "bit-vec 0.8.0",
+]
+
+[[package]]
+name = "bit-set"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34ddef2995421ab6a5c779542c81ee77c115206f4ad9d5a8e05f4ff49716a3dd"
+dependencies = [
+ "bit-vec 0.9.1",
]
[[package]]
@@ -243,6 +531,12 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
+[[package]]
+name = "bit-vec"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
+
[[package]]
name = "bitflags"
version = "1.3.2"
@@ -266,7 +560,7 @@ checksum = "56791e4bd64c99fc361e01008f45c984baa93f12a0957d1b3c51dd2c6baab453"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -284,6 +578,67 @@ dependencies = [
"generic-array",
]
+[[package]]
+name = "block2"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"
+dependencies = [
+ "objc2 0.5.2",
+]
+
+[[package]]
+name = "block2"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
+dependencies = [
+ "objc2 0.6.4",
+]
+
+[[package]]
+name = "blocking"
+version = "1.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21"
+dependencies = [
+ "async-channel",
+ "async-task",
+ "futures-io",
+ "futures-lite",
+ "piper",
+]
+
+[[package]]
+name = "brotli"
+version = "8.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560"
+dependencies = [
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+ "brotli-decompressor",
+]
+
+[[package]]
+name = "brotli-decompressor"
+version = "5.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03"
+dependencies = [
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+]
+
+[[package]]
+name = "bs58"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4"
+dependencies = [
+ "tinyvec",
+]
+
[[package]]
name = "bstr"
version = "1.12.0"
@@ -476,7 +831,7 @@ dependencies = [
"derive-new",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -673,7 +1028,7 @@ checksum = "f9abbd1bc6865053c427f7198e6af43bfdedc55ab791faed4fbd361d789575ff"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -682,11 +1037,20 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+[[package]]
+name = "byteorder-lite"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
+
[[package]]
name = "bytes"
version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
+dependencies = [
+ "serde",
+]
[[package]]
name = "cached"
@@ -713,7 +1077,7 @@ dependencies = [
"darling 0.20.11",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -723,30 +1087,148 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ade8366b8bd5ba243f0a58f036cc0ca8a2f069cff1a2351ef1cac6b083e16fc0"
[[package]]
-name = "candle-core"
-version = "0.9.1"
+name = "cairo-rs"
+version = "0.18.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a9f51e2ecf6efe9737af8f993433c839f956d2b6ed4fd2dd4a7c6d8b0fa667ff"
+checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"
dependencies = [
- "byteorder",
- "gemm 0.17.1",
- "half",
- "memmap2",
- "num-traits",
- "num_cpus",
- "rand 0.9.2",
- "rand_distr",
- "rayon",
- "safetensors 0.4.5",
+ "bitflags 2.11.0",
+ "cairo-sys-rs",
+ "glib",
+ "libc",
+ "once_cell",
"thiserror 1.0.69",
- "ug",
- "yoke 0.7.5",
- "zip 1.1.4",
]
[[package]]
-name = "caseless"
-version = "0.2.2"
+name = "cairo-sys-rs"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51"
+dependencies = [
+ "glib-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "calloop"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec"
+dependencies = [
+ "bitflags 2.11.0",
+ "log",
+ "polling",
+ "rustix 0.38.44",
+ "slab",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "calloop"
+version = "0.14.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4dbf9978365bac10f54d1d4b04f7ce4427e51f71d61f2fe15e3fed5166474df7"
+dependencies = [
+ "bitflags 2.11.0",
+ "polling",
+ "rustix 1.1.4",
+ "slab",
+ "tracing",
+]
+
+[[package]]
+name = "calloop-wayland-source"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
+dependencies = [
+ "calloop 0.13.0",
+ "rustix 0.38.44",
+ "wayland-backend",
+ "wayland-client",
+]
+
+[[package]]
+name = "calloop-wayland-source"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa"
+dependencies = [
+ "calloop 0.14.4",
+ "rustix 1.1.4",
+ "wayland-backend",
+ "wayland-client",
+]
+
+[[package]]
+name = "camino"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "candle-core"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9f51e2ecf6efe9737af8f993433c839f956d2b6ed4fd2dd4a7c6d8b0fa667ff"
+dependencies = [
+ "byteorder",
+ "gemm 0.17.1",
+ "half",
+ "memmap2",
+ "num-traits",
+ "num_cpus",
+ "rand 0.9.2",
+ "rand_distr",
+ "rayon",
+ "safetensors 0.4.5",
+ "thiserror 1.0.69",
+ "ug",
+ "yoke 0.7.5",
+ "zip 1.1.4",
+]
+
+[[package]]
+name = "cargo-platform"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "cargo_metadata"
+version = "0.19.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"
+dependencies = [
+ "camino",
+ "cargo-platform",
+ "semver",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.18",
+]
+
+[[package]]
+name = "cargo_toml"
+version = "0.22.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"
+dependencies = [
+ "serde",
+ "toml 0.9.2",
+]
+
+[[package]]
+name = "caseless"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b6fd507454086c8edfd769ca6ada439193cdb209c7681712ef6275cccbfe5d8"
dependencies = [
@@ -771,6 +1253,12 @@ dependencies = [
"shlex",
]
+[[package]]
+name = "cesu8"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
+
[[package]]
name = "cexpr"
version = "0.6.0"
@@ -780,6 +1268,27 @@ dependencies = [
"nom",
]
+[[package]]
+name = "cfb"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f"
+dependencies = [
+ "byteorder",
+ "fnv",
+ "uuid",
+]
+
+[[package]]
+name = "cfg-expr"
+version = "0.15.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"
+dependencies = [
+ "smallvec",
+ "target-lexicon",
+]
+
[[package]]
name = "cfg-if"
version = "1.0.1"
@@ -812,6 +1321,7 @@ dependencies = [
"iana-time-zone",
"js-sys",
"num-traits",
+ "serde",
"wasm-bindgen",
"windows-link 0.2.0",
]
@@ -851,14 +1361,14 @@ checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
dependencies = [
"glob",
"libc",
- "libloading",
+ "libloading 0.8.8",
]
[[package]]
name = "clap"
-version = "4.6.0"
+version = "4.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351"
+checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51"
dependencies = [
"clap_builder",
"clap_derive",
@@ -887,14 +1397,14 @@ dependencies = [
[[package]]
name = "clap_derive"
-version = "4.6.0"
+version = "4.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a"
+checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9"
dependencies = [
- "heck",
+ "heck 0.5.0",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -903,6 +1413,44 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
+[[package]]
+name = "clipboard-win"
+version = "5.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4"
+dependencies = [
+ "error-code",
+]
+
+[[package]]
+name = "cocoa"
+version = "0.26.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad36507aeb7e16159dfe68db81ccc27571c3ccd4b76fb2fb72fc59e7a4b1b64c"
+dependencies = [
+ "bitflags 2.11.0",
+ "block",
+ "cocoa-foundation",
+ "core-foundation 0.10.1",
+ "core-graphics 0.24.0",
+ "foreign-types",
+ "libc",
+ "objc",
+]
+
+[[package]]
+name = "cocoa-foundation"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "81411967c50ee9a1fc11365f8c585f863a22a9697c89239c452292c40ba79b0d"
+dependencies = [
+ "bitflags 2.11.0",
+ "block",
+ "core-foundation 0.10.1",
+ "core-graphics-types 0.2.0",
+ "objc",
+]
+
[[package]]
name = "codespan-reporting"
version = "0.12.0"
@@ -914,6 +1462,26 @@ dependencies = [
"unicode-width",
]
+[[package]]
+name = "codespan-reporting"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681"
+dependencies = [
+ "serde",
+ "termcolor",
+ "unicode-width",
+]
+
+[[package]]
+name = "color"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a18ef4657441fb193b65f34dc39b3781f0dfec23d3bd94d0eeb4e88cde421edb"
+dependencies = [
+ "bytemuck",
+]
+
[[package]]
name = "colorchoice"
version = "1.0.4"
@@ -929,6 +1497,16 @@ dependencies = [
"windows-sys 0.59.0",
]
+[[package]]
+name = "combine"
+version = "4.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"
+dependencies = [
+ "bytes",
+ "memchr",
+]
+
[[package]]
name = "comrak"
version = "0.39.1"
@@ -991,6 +1569,26 @@ dependencies = [
"unicode-segmentation",
]
+[[package]]
+name = "cookie"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"
+dependencies = [
+ "time",
+ "version_check",
+]
+
+[[package]]
+name = "core-foundation"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
[[package]]
name = "core-foundation"
version = "0.10.1"
@@ -1007,6 +1605,56 @@ version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+[[package]]
+name = "core-graphics"
+version = "0.23.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation 0.9.4",
+ "core-graphics-types 0.1.3",
+ "foreign-types",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics"
+version = "0.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"
+dependencies = [
+ "bitflags 2.11.0",
+ "core-foundation 0.10.1",
+ "core-graphics-types 0.2.0",
+ "foreign-types",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics"
+version = "0.25.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"
+dependencies = [
+ "bitflags 2.11.0",
+ "core-foundation 0.10.1",
+ "core-graphics-types 0.2.0",
+ "foreign-types",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics-types"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation 0.9.4",
+ "libc",
+]
+
[[package]]
name = "core-graphics-types"
version = "0.2.0"
@@ -1014,7 +1662,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
dependencies = [
"bitflags 2.11.0",
- "core-foundation",
+ "core-foundation 0.10.1",
"libc",
]
@@ -1143,7 +1791,20 @@ dependencies = [
"cssparser-macros",
"dtoa-short",
"itoa",
- "phf",
+ "phf 0.11.3",
+ "smallvec",
+]
+
+[[package]]
+name = "cssparser"
+version = "0.36.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"
+dependencies = [
+ "cssparser-macros",
+ "dtoa-short",
+ "itoa",
+ "phf 0.13.1",
"smallvec",
]
@@ -1154,7 +1815,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
dependencies = [
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -1178,6 +1839,22 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "ctor"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"
+dependencies = [
+ "ctor-proc-macro",
+ "dtor",
+]
+
+[[package]]
+name = "ctor-proc-macro"
+version = "0.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"
+
[[package]]
name = "cubecl"
version = "0.8.1"
@@ -1398,7 +2075,7 @@ dependencies = [
"prettyplease",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -1410,7 +2087,7 @@ dependencies = [
"darling 0.21.0",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -1559,7 +2236,7 @@ dependencies = [
"hashbrown 0.15.5",
"log",
"sanitize-filename",
- "wgpu",
+ "wgpu 26.0.1",
]
[[package]]
@@ -1568,9 +2245,15 @@ version = "0.17.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff0da1a70ec91e66731c1752deb9fda3044f1154fe4ceb5873e3f96ed34cafa3"
dependencies = [
- "libloading",
+ "libloading 0.8.8",
]
+[[package]]
+name = "cursor-icon"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f"
+
[[package]]
name = "darling"
version = "0.20.11"
@@ -1591,6 +2274,16 @@ dependencies = [
"darling_macro 0.21.0",
]
+[[package]]
+name = "darling"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"
+dependencies = [
+ "darling_core 0.23.0",
+ "darling_macro 0.23.0",
+]
+
[[package]]
name = "darling_core"
version = "0.20.11"
@@ -1602,7 +2295,7 @@ dependencies = [
"proc-macro2",
"quote",
"strsim",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -1616,7 +2309,20 @@ dependencies = [
"proc-macro2",
"quote",
"strsim",
- "syn",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"
+dependencies = [
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 2.0.117",
]
[[package]]
@@ -1627,7 +2333,7 @@ checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
dependencies = [
"darling_core 0.20.11",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -1638,7 +2344,18 @@ checksum = "e79f8e61677d5df9167cd85265f8e5f64b215cdea3fb55eebc3e622e44c7a146"
dependencies = [
"darling_core 0.21.0",
"quote",
- "syn",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"
+dependencies = [
+ "darling_core 0.23.0",
+ "quote",
+ "syn 2.0.117",
]
[[package]]
@@ -1662,12 +2379,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476"
[[package]]
-name = "deranged"
+name = "dbus"
+version = "0.9.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b942602992bb7acfd1f51c49811c58a610ef9181b6e66f3e519d79b540a3bf73"
+dependencies = [
+ "libc",
+ "libdbus-sys",
+ "windows-sys 0.61.1",
+]
+
+[[package]]
+name = "deranged"
version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587"
dependencies = [
"powerfmt",
+ "serde_core",
]
[[package]]
@@ -1678,7 +2407,7 @@ checksum = "2cdc8d50f426189eef89dac62fabfa0abb27d5cc008f25bf4156a0203325becc"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -1689,7 +2418,7 @@ checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -1718,7 +2447,7 @@ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
"unicode-xid",
]
@@ -1730,7 +2459,7 @@ checksum = "bda628edc44c4bb645fbe0f758797143e4e07926f7ebf4e9bdfbd3d2ce621df3"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
"unicode-xid",
]
@@ -1797,6 +2526,24 @@ dependencies = [
"windows-sys 0.61.1",
]
+[[package]]
+name = "dispatch"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
+
+[[package]]
+name = "dispatch2"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.6.2",
+ "libc",
+ "objc2 0.6.4",
+]
+
[[package]]
name = "displaydoc"
version = "0.2.5"
@@ -1805,7 +2552,39 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "dlib"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a"
+dependencies = [
+ "libloading 0.8.8",
+]
+
+[[package]]
+name = "dlopen2"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4"
+dependencies = [
+ "dlopen2_derive",
+ "libc",
+ "once_cell",
+ "winapi",
+]
+
+[[package]]
+name = "dlopen2_derive"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
]
[[package]]
@@ -1817,6 +2596,36 @@ dependencies = [
"litrs",
]
+[[package]]
+name = "dom_query"
+version = "0.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"
+dependencies = [
+ "bit-set 0.8.0",
+ "cssparser 0.36.0",
+ "foldhash 0.2.0",
+ "html5ever 0.38.0",
+ "precomputed-hash",
+ "selectors",
+ "tendril 0.5.0",
+]
+
+[[package]]
+name = "downcast-rs"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
+
+[[package]]
+name = "dpi"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
+dependencies = [
+ "serde",
+]
+
[[package]]
name = "dtoa"
version = "1.0.10"
@@ -1832,6 +2641,33 @@ dependencies = [
"dtoa",
]
+[[package]]
+name = "dtor"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"
+dependencies = [
+ "dtor-proc-macro",
+]
+
+[[package]]
+name = "dtor-proc-macro"
+version = "0.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"
+
+[[package]]
+name = "dunce"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+
[[package]]
name = "dyn-stack"
version = "0.10.0"
@@ -1851,6 +2687,16 @@ dependencies = [
"bytemuck",
]
+[[package]]
+name = "ecolor"
+version = "0.34.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "55f6cc0cb3b84a21232c468db972ebcddd34decbf1ff02cdebffd807c13bbd81"
+dependencies = [
+ "bytemuck",
+ "emath",
+]
+
[[package]]
name = "ecow"
version = "0.2.5"
@@ -1860,12 +2706,118 @@ dependencies = [
"serde",
]
+[[package]]
+name = "egui"
+version = "0.34.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3cbe28ac1a9c0761319aafb9ad37737720cc49d99c13a4a6b990768fa01ffe67"
+dependencies = [
+ "accesskit",
+ "ahash",
+ "bitflags 2.11.0",
+ "emath",
+ "epaint",
+ "log",
+ "nohash-hasher",
+ "profiling",
+ "smallvec",
+ "unicode-segmentation",
+]
+
+[[package]]
+name = "egui-wgpu"
+version = "0.34.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f311c0b9cdd8a38821ae6f245fbe6e1a3d7d157c77b7d22344f205b317232c8"
+dependencies = [
+ "ahash",
+ "bytemuck",
+ "document-features",
+ "egui",
+ "epaint",
+ "log",
+ "profiling",
+ "thiserror 2.0.18",
+ "type-map",
+ "web-time",
+ "wgpu 29.0.3",
+ "winit",
+]
+
+[[package]]
+name = "egui-winit"
+version = "0.34.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e8e97625c2fe0fadc8b92ec690fbf515e15e2efd67ca50e063ad3302ec8ee626"
+dependencies = [
+ "arboard",
+ "bytemuck",
+ "egui",
+ "log",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+ "objc2-ui-kit 0.3.2",
+ "profiling",
+ "raw-window-handle",
+ "smithay-clipboard",
+ "web-time",
+ "webbrowser",
+ "winit",
+]
+
+[[package]]
+name = "egui_commonmark"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "55df531ff51161b3c6212e0ee2166b370f150254bf4448a8a15c3d26fec87958"
+dependencies = [
+ "egui",
+ "egui_commonmark_backend",
+ "egui_extras",
+ "pulldown-cmark",
+]
+
+[[package]]
+name = "egui_commonmark_backend"
+version = "0.23.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe04399ca5a2196965833a2918e50400449721fd9350e31ae7d84d6690859437"
+dependencies = [
+ "egui",
+ "egui_extras",
+ "pulldown-cmark",
+]
+
+[[package]]
+name = "egui_extras"
+version = "0.34.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c609fc87f6c70ffd3afd679cbb294985096d2fc0be33e762ad5614bde4925bc"
+dependencies = [
+ "ahash",
+ "egui",
+ "enum-map",
+ "image",
+ "log",
+ "mime_guess2",
+ "profiling",
+]
+
[[package]]
name = "either"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
+[[package]]
+name = "emath"
+version = "0.34.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a74fbbf7501c430b89df62d102b6bfa02162faaf3e155512c677c9d20f5708d1"
+dependencies = [
+ "bytemuck",
+]
+
[[package]]
name = "embassy-futures"
version = "0.1.1"
@@ -1897,6 +2849,26 @@ dependencies = [
"document-features",
]
+[[package]]
+name = "embed-resource"
+version = "3.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c31a88c8d26de40ed18fe748c547845aa39de1db3afd958f8cb91579f3644bcb"
+dependencies = [
+ "cc",
+ "memchr",
+ "rustc_version",
+ "toml 1.1.2+spec-1.1.0",
+ "vswhom",
+ "winreg 0.55.0",
+]
+
+[[package]]
+name = "embed_plist"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
+
[[package]]
name = "embedded-hal"
version = "0.2.7"
@@ -1922,6 +2894,12 @@ dependencies = [
"embedded-hal 1.0.0",
]
+[[package]]
+name = "endi"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
+
[[package]]
name = "entities"
version = "1.0.1"
@@ -1934,10 +2912,30 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc"
dependencies = [
- "heck",
+ "heck 0.5.0",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "enum-map"
+version = "2.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6866f3bfdf8207509a033af1a75a7b08abda06bbaaeae6669323fd5a097df2e9"
+dependencies = [
+ "enum-map-derive",
+]
+
+[[package]]
+name = "enum-map-derive"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f282cfdfe92516eb26c2af8589c274c7c17681f5ecc03c18255fe741c6aa64eb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
]
[[package]]
@@ -1949,7 +2947,28 @@ dependencies = [
"once_cell",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "enumflags2"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
+dependencies = [
+ "enumflags2_derive",
+ "serde",
+]
+
+[[package]]
+name = "enumflags2_derive"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
]
[[package]]
@@ -1970,7 +2989,7 @@ dependencies = [
"darling 0.21.0",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -1993,12 +3012,51 @@ dependencies = [
"log",
]
+[[package]]
+name = "epaint"
+version = "0.34.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92b452e348c2758115288802ca25f86ee286ce2cfae6643711ce116662311310"
+dependencies = [
+ "ahash",
+ "bytemuck",
+ "ecolor",
+ "emath",
+ "epaint_default_fonts",
+ "font-types",
+ "log",
+ "nohash-hasher",
+ "parking_lot",
+ "profiling",
+ "self_cell",
+ "skrifa",
+ "smallvec",
+ "vello_cpu",
+]
+
+[[package]]
+name = "epaint_default_fonts"
+version = "0.34.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1644e25dbe3d663fd9c2a4181772c64b23361e377e550c10422ecc3a7de1c3c2"
+
[[package]]
name = "equivalent"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+[[package]]
+name = "erased-serde"
+version = "0.4.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
+dependencies = [
+ "serde",
+ "serde_core",
+ "typeid",
+]
+
[[package]]
name = "errno"
version = "0.3.13"
@@ -2009,6 +3067,21 @@ dependencies = [
"windows-sys 0.60.2",
]
+[[package]]
+name = "error-code"
+version = "3.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dea2df4cf52843e0452895c455a1a2cfbb842a1e7329671acf418fdc53ed4c59"
+
+[[package]]
+name = "euclid"
+version = "0.22.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06"
+dependencies = [
+ "num-traits",
+]
+
[[package]]
name = "event-listener"
version = "5.4.0"
@@ -2036,6 +3109,30 @@ version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
+[[package]]
+name = "fax"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a"
+
+[[package]]
+name = "fdeflate"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
+dependencies = [
+ "simd-adler32",
+]
+
+[[package]]
+name = "fearless_simd"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8fb2907d1f08b2b316b9223ced5b0e89d87028ba8deae9764741dba8ff7f3903"
+dependencies = [
+ "bytemuck",
+]
+
[[package]]
name = "fid-rs"
version = "0.2.0"
@@ -2045,6 +3142,16 @@ dependencies = [
"rayon",
]
+[[package]]
+name = "field-offset"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"
+dependencies = [
+ "memoffset",
+ "rustc_version",
+]
+
[[package]]
name = "filetime"
version = "0.2.26"
@@ -2128,6 +3235,15 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
+[[package]]
+name = "font-types"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b38ad915f6dadd993ced50848a8291a543bd41ca62bc10740d5e64e2ab4cfd7"
+dependencies = [
+ "bytemuck",
+]
+
[[package]]
name = "foreign-types"
version = "0.5.0"
@@ -2146,7 +3262,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -2249,7 +3365,7 @@ checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -2300,14 +3416,113 @@ dependencies = [
]
[[package]]
-name = "gemm"
-version = "0.17.1"
+name = "gdk"
+version = "0.18.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ab24cc62135b40090e31a76a9b2766a501979f3070fa27f689c27ec04377d32"
+checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691"
dependencies = [
- "dyn-stack 0.10.0",
- "gemm-c32 0.17.1",
- "gemm-c64 0.17.1",
+ "cairo-rs",
+ "gdk-pixbuf",
+ "gdk-sys",
+ "gio",
+ "glib",
+ "libc",
+ "pango",
+]
+
+[[package]]
+name = "gdk-pixbuf"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec"
+dependencies = [
+ "gdk-pixbuf-sys",
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+]
+
+[[package]]
+name = "gdk-pixbuf-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7"
+dependencies = [
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "gdk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7"
+dependencies = [
+ "cairo-sys-rs",
+ "gdk-pixbuf-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pango-sys",
+ "pkg-config",
+ "system-deps",
+]
+
+[[package]]
+name = "gdkwayland-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69"
+dependencies = [
+ "gdk-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pkg-config",
+ "system-deps",
+]
+
+[[package]]
+name = "gdkx11"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe"
+dependencies = [
+ "gdk",
+ "gdkx11-sys",
+ "gio",
+ "glib",
+ "libc",
+ "x11",
+]
+
+[[package]]
+name = "gdkx11-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d"
+dependencies = [
+ "gdk-sys",
+ "glib-sys",
+ "libc",
+ "system-deps",
+ "x11",
+]
+
+[[package]]
+name = "gemm"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ab24cc62135b40090e31a76a9b2766a501979f3070fa27f689c27ec04377d32"
+dependencies = [
+ "dyn-stack 0.10.0",
+ "gemm-c32 0.17.1",
+ "gemm-c64 0.17.1",
"gemm-common 0.17.1",
"gemm-f16 0.17.1",
"gemm-f32 0.17.1",
@@ -2546,6 +3761,16 @@ dependencies = [
"version_check",
]
+[[package]]
+name = "gethostname"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc257fdb4038301ce4b9cd1b3b51704509692bb3ff716a410cbd07925d9dae55"
+dependencies = [
+ "rustix 1.1.4",
+ "windows-targets 0.52.6",
+]
+
[[package]]
name = "getopts"
version = "0.2.23"
@@ -2596,6 +3821,38 @@ dependencies = [
"wasip3",
]
+[[package]]
+name = "gio"
+version = "0.18.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-util",
+ "gio-sys",
+ "glib",
+ "libc",
+ "once_cell",
+ "pin-project-lite",
+ "smallvec",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "gio-sys"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+ "winapi",
+]
+
[[package]]
name = "gl_generator"
version = "0.14.0"
@@ -2607,6 +3864,53 @@ dependencies = [
"xml-rs",
]
+[[package]]
+name = "glib"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"
+dependencies = [
+ "bitflags 2.11.0",
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-task",
+ "futures-util",
+ "gio-sys",
+ "glib-macros",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "memchr",
+ "once_cell",
+ "smallvec",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "glib-macros"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc"
+dependencies = [
+ "heck 0.4.1",
+ "proc-macro-crate 2.0.0",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "glib-sys"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898"
+dependencies = [
+ "libc",
+ "system-deps",
+]
+
[[package]]
name = "glob"
version = "0.3.2"
@@ -2638,6 +3942,18 @@ dependencies = [
"web-sys",
]
+[[package]]
+name = "glow"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29038e1c483364cc6bb3cf78feee1816002e127c331a1eec55a4d202b9e1adb5"
+dependencies = [
+ "js-sys",
+ "slotmap",
+ "wasm-bindgen",
+ "web-sys",
+]
+
[[package]]
name = "glutin_wgl_sys"
version = "0.6.1"
@@ -2647,6 +3963,17 @@ dependencies = [
"gl_generator",
]
+[[package]]
+name = "gobject-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44"
+dependencies = [
+ "glib-sys",
+ "libc",
+ "system-deps",
+]
+
[[package]]
name = "gpu-alloc"
version = "0.6.0"
@@ -2678,6 +4005,20 @@ dependencies = [
"windows 0.58.0",
]
+[[package]]
+name = "gpu-allocator"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795"
+dependencies = [
+ "ash",
+ "hashbrown 0.16.1",
+ "log",
+ "presser",
+ "thiserror 2.0.18",
+ "windows 0.62.1",
+]
+
[[package]]
name = "gpu-descriptor"
version = "0.3.2"
@@ -2698,6 +4039,58 @@ dependencies = [
"bitflags 2.11.0",
]
+[[package]]
+name = "gtk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a"
+dependencies = [
+ "atk",
+ "cairo-rs",
+ "field-offset",
+ "futures-channel",
+ "gdk",
+ "gdk-pixbuf",
+ "gio",
+ "glib",
+ "gtk-sys",
+ "gtk3-macros",
+ "libc",
+ "pango",
+ "pkg-config",
+]
+
+[[package]]
+name = "gtk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414"
+dependencies = [
+ "atk-sys",
+ "cairo-sys-rs",
+ "gdk-pixbuf-sys",
+ "gdk-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pango-sys",
+ "system-deps",
+]
+
+[[package]]
+name = "gtk3-macros"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d"
+dependencies = [
+ "proc-macro-crate 1.3.1",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "h2"
version = "0.4.12"
@@ -2710,7 +4103,7 @@ dependencies = [
"futures-core",
"futures-sink",
"http",
- "indexmap",
+ "indexmap 2.13.1",
"slab",
"tokio",
"tokio-util",
@@ -2858,6 +4251,36 @@ dependencies = [
"zip 8.6.0",
]
+[[package]]
+name = "harper-desktop"
+version = "0.1.0"
+dependencies = [
+ "accessibility",
+ "accessibility-sys",
+ "clap",
+ "core-foundation 0.10.1",
+ "core-graphics 0.25.0",
+ "dirs 6.0.0",
+ "egui",
+ "egui-wgpu",
+ "egui-winit",
+ "egui_commonmark",
+ "harper-core",
+ "harper-dictionary-wordlist",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "pollster",
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-build",
+ "tauri-plugin-autostart",
+ "tauri-plugin-opener",
+ "thiserror 2.0.18",
+ "tokio",
+ "winit",
+]
+
[[package]]
name = "harper-dictionary-wordlist"
version = "2.1.0"
@@ -2995,7 +4418,7 @@ name = "harper-thesaurus"
version = "2.1.0"
dependencies = [
"hashbrown 0.16.1",
- "indexmap",
+ "indexmap 2.13.1",
"itertools 0.14.0",
"ruzstd",
"zstd",
@@ -3050,6 +4473,12 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "hashbrown"
+version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
+
[[package]]
name = "hashbrown"
version = "0.13.2"
@@ -3090,6 +4519,12 @@ dependencies = [
"serde_core",
]
+[[package]]
+name = "heck"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
+
[[package]]
name = "heck"
version = "0.5.0"
@@ -3102,6 +4537,12 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
+[[package]]
+name = "hex"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+
[[package]]
name = "hexf-parse"
version = "0.2.1"
@@ -3115,10 +4556,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55d958c2f74b664487a2035fe1dadb032c48718a03b63f3ab0b8537db8549ed4"
dependencies = [
"log",
- "markup5ever",
+ "markup5ever 0.35.0",
"match_token",
]
+[[package]]
+name = "html5ever"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"
+dependencies = [
+ "log",
+ "markup5ever 0.38.0",
+]
+
[[package]]
name = "http"
version = "1.3.1"
@@ -3204,7 +4655,7 @@ version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c6995591a8f1380fcb4ba966a252a4b29188d51d2b89e3a252f5305be65aea8"
dependencies = [
- "base64",
+ "base64 0.22.1",
"bytes",
"futures-channel",
"futures-core",
@@ -3246,6 +4697,16 @@ dependencies = [
"cc",
]
+[[package]]
+name = "ico"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371"
+dependencies = [
+ "byteorder",
+ "png 0.17.16",
+]
+
[[package]]
name = "icu_collections"
version = "2.0.0"
@@ -3365,6 +4826,31 @@ dependencies = [
"icu_properties",
]
+[[package]]
+name = "image"
+version = "0.25.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104"
+dependencies = [
+ "bytemuck",
+ "byteorder-lite",
+ "moxcms",
+ "num-traits",
+ "png 0.18.1",
+ "tiff",
+]
+
+[[package]]
+name = "indexmap"
+version = "1.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
+dependencies = [
+ "autocfg",
+ "hashbrown 0.12.3",
+ "serde",
+]
+
[[package]]
name = "indexmap"
version = "2.13.1"
@@ -3378,20 +4864,19 @@ dependencies = [
]
[[package]]
-name = "ipnet"
-version = "2.11.0"
+name = "infer"
+version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
+checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7"
+dependencies = [
+ "cfb",
+]
[[package]]
-name = "iri-string"
-version = "0.7.8"
+name = "ipnet"
+version = "2.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2"
-dependencies = [
- "memchr",
- "serde",
-]
+checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
[[package]]
name = "is-docker"
@@ -3408,10 +4893,10 @@ version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d57a3e447e24c22647738e4607f1df1e0ec6f72e16182c4cd199f647cdfb0e4"
dependencies = [
- "heck",
+ "heck 0.5.0",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -3455,39 +4940,162 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
[[package]]
-name = "jni-sys"
-version = "0.3.0"
+name = "javascriptcore-rs"
+version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
+checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc"
+dependencies = [
+ "bitflags 1.3.2",
+ "glib",
+ "javascriptcore-rs-sys",
+]
[[package]]
-name = "jobserver"
-version = "0.1.34"
+name = "javascriptcore-rs-sys"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
+checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124"
dependencies = [
- "getrandom 0.3.4",
+ "glib-sys",
+ "gobject-sys",
"libc",
+ "system-deps",
]
[[package]]
-name = "js-sys"
-version = "0.3.83"
+name = "jni"
+version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "464a3709c7f55f1f721e5389aa6ea4e3bc6aba669353300af094b29ffbdde1d8"
+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
dependencies = [
- "once_cell",
- "wasm-bindgen",
+ "cesu8",
+ "cfg-if",
+ "combine",
+ "jni-sys 0.3.0",
+ "log",
+ "thiserror 1.0.69",
+ "walkdir",
+ "windows-sys 0.45.0",
]
[[package]]
-name = "khronos-egl"
-version = "6.0.0"
+name = "jni"
+version = "0.22.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
+checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498"
+dependencies = [
+ "cfg-if",
+ "combine",
+ "jni-macros",
+ "jni-sys 0.4.1",
+ "log",
+ "simd_cesu8",
+ "thiserror 2.0.18",
+ "walkdir",
+ "windows-link 0.2.0",
+]
+
+[[package]]
+name = "jni-macros"
+version = "0.22.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rustc_version",
+ "simd_cesu8",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
+
+[[package]]
+name = "jni-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
+dependencies = [
+ "jni-sys-macros",
+]
+
+[[package]]
+name = "jni-sys-macros"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
+dependencies = [
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "jobserver"
+version = "0.1.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
+dependencies = [
+ "getrandom 0.3.4",
+ "libc",
+]
+
+[[package]]
+name = "js-sys"
+version = "0.3.98"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08"
+dependencies = [
+ "cfg-if",
+ "futures-util",
+ "once_cell",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "json-patch"
+version = "3.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08"
+dependencies = [
+ "jsonptr",
+ "serde",
+ "serde_json",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "jsonptr"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70"
+dependencies = [
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "keyboard-types"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"
+dependencies = [
+ "bitflags 2.11.0",
+ "serde",
+ "unicode-segmentation",
+]
+
+[[package]]
+name = "khronos-egl"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
dependencies = [
"libc",
- "libloading",
+ "libloading 0.8.8",
"pkg-config",
]
@@ -3497,6 +5105,17 @@ version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
+[[package]]
+name = "kurbo"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7564e90fe3c0d5771e1f0bc95322b21baaeaa0d9213fa6a0b61c99f8b17b3bfb"
+dependencies = [
+ "arrayvec",
+ "euclid",
+ "smallvec",
+]
+
[[package]]
name = "lazy_static"
version = "1.5.0"
@@ -3518,12 +5137,45 @@ dependencies = [
"fst",
]
+[[package]]
+name = "libappindicator"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a"
+dependencies = [
+ "glib",
+ "gtk",
+ "gtk-sys",
+ "libappindicator-sys",
+ "log",
+]
+
+[[package]]
+name = "libappindicator-sys"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf"
+dependencies = [
+ "gtk-sys",
+ "libloading 0.7.4",
+ "once_cell",
+]
+
[[package]]
name = "libc"
version = "0.2.184"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af"
+[[package]]
+name = "libdbus-sys"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"
+dependencies = [
+ "pkg-config",
+]
+
[[package]]
name = "libfuzzer-sys"
version = "0.4.12"
@@ -3534,6 +5186,16 @@ dependencies = [
"cc",
]
+[[package]]
+name = "libloading"
+version = "0.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
+dependencies = [
+ "cfg-if",
+ "winapi",
+]
+
[[package]]
name = "libloading"
version = "0.8.8"
@@ -3579,7 +5241,7 @@ checksum = "360e552c93fa0e8152ab463bc4c4837fce76a225df11dfaeea66c313de5e61f7"
dependencies = [
"bitflags 2.11.0",
"libc",
- "redox_syscall",
+ "redox_syscall 0.5.17",
]
[[package]]
@@ -3591,6 +5253,18 @@ dependencies = [
"zlib-rs",
]
+[[package]]
+name = "linebender_resource_handle"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.4.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
+
[[package]]
name = "linux-raw-sys"
version = "0.12.1"
@@ -3620,9 +5294,9 @@ dependencies = [
[[package]]
name = "log"
-version = "0.4.28"
+version = "0.4.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
+checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
[[package]]
name = "louds-rs"
@@ -3692,7 +5366,7 @@ dependencies = [
"darling 0.20.11",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -3717,8 +5391,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "311fe69c934650f8f19652b3946075f0fc41ad8757dbb68f1ca14e7900ecc1c3"
dependencies = [
"log",
- "tendril",
- "web_atoms",
+ "tendril 0.4.3",
+ "web_atoms 0.1.3",
+]
+
+[[package]]
+name = "markup5ever"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862"
+dependencies = [
+ "log",
+ "tendril 0.5.0",
+ "web_atoms 0.2.4",
]
[[package]]
@@ -3729,7 +5414,7 @@ checksum = "ac84fd3f360fcc43dc5f5d186f02a94192761a080e8bc58621ad4d12296a58cf"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -3767,6 +5452,15 @@ dependencies = [
"stable_deref_trait",
]
+[[package]]
+name = "memoffset"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+dependencies = [
+ "autocfg",
+]
+
[[package]]
name = "metal"
version = "0.32.0"
@@ -3775,13 +5469,31 @@ checksum = "00c15a6f673ff72ddcc22394663290f870fb224c1bfce55734a75c414150e605"
dependencies = [
"bitflags 2.11.0",
"block",
- "core-graphics-types",
+ "core-graphics-types 0.2.0",
"foreign-types",
"log",
"objc",
"paste",
]
+[[package]]
+name = "mime"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
+
+[[package]]
+name = "mime_guess2"
+version = "2.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1706dc14a2e140dec0a7a07109d9a3d5890b81e85bd6c60b906b249a77adf0ca"
+dependencies = [
+ "mime",
+ "phf 0.11.3",
+ "phf_shared 0.11.3",
+ "unicase",
+]
+
[[package]]
name = "minimal-lexical"
version = "0.2.1"
@@ -3815,6 +5527,37 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a0b3262dc837d2513fe2ef31ff8461352ef932dcca31ba0c0abe33547cf6b9b"
+[[package]]
+name = "moxcms"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"
+dependencies = [
+ "num-traits",
+ "pxfm",
+]
+
+[[package]]
+name = "muda"
+version = "0.19.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ae8844f63b5b118e334e205585b8c5c17b984121dbdb179d44aeb087ffad3cb"
+dependencies = [
+ "crossbeam-channel",
+ "dpi",
+ "gtk",
+ "keyboard-types",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "once_cell",
+ "png 0.18.1",
+ "serde",
+ "thiserror 2.0.18",
+ "windows-sys 0.61.1",
+]
+
[[package]]
name = "naga"
version = "26.0.0"
@@ -3822,21 +5565,47 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "916cbc7cb27db60be930a4e2da243cf4bc39569195f22fd8ee419cd31d5b662c"
dependencies = [
"arrayvec",
- "bit-set",
+ "bit-set 0.8.0",
"bitflags 2.11.0",
"cfg-if",
"cfg_aliases",
- "codespan-reporting",
+ "codespan-reporting 0.12.0",
"half",
"hashbrown 0.15.5",
"hexf-parse",
- "indexmap",
+ "indexmap 2.13.1",
+ "libm",
+ "log",
+ "num-traits",
+ "once_cell",
+ "rustc-hash 1.1.0",
+ "spirv 0.3.0+sdk-1.3.268.0",
+ "thiserror 2.0.18",
+ "unicode-ident",
+]
+
+[[package]]
+name = "naga"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0dd91265cc2454558f659b3b4b9640f0ddb8cc6521277f166b8a8c181c898079"
+dependencies = [
+ "arrayvec",
+ "bit-set 0.9.1",
+ "bitflags 2.11.0",
+ "cfg-if",
+ "cfg_aliases",
+ "codespan-reporting 0.13.1",
+ "half",
+ "hashbrown 0.16.1",
+ "hexf-parse",
+ "indexmap 2.13.1",
"libm",
"log",
"num-traits",
"once_cell",
"rustc-hash 1.1.0",
- "spirv",
+ "spirv 0.4.0+sdk-1.4.341.0",
"thiserror 2.0.18",
"unicode-ident",
]
@@ -3872,13 +5641,34 @@ dependencies = [
"rayon",
]
+[[package]]
+name = "ndk"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
+dependencies = [
+ "bitflags 2.11.0",
+ "jni-sys 0.3.0",
+ "log",
+ "ndk-sys",
+ "num_enum",
+ "raw-window-handle",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "ndk-context"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+
[[package]]
name = "ndk-sys"
version = "0.6.0+11769913"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
dependencies = [
- "jni-sys",
+ "jni-sys 0.3.0",
]
[[package]]
@@ -3893,6 +5683,12 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df270209a7f04d62459240d890ecb792714d5db12c92937823574a09930276b4"
+[[package]]
+name = "nohash-hasher"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
+
[[package]]
name = "nom"
version = "7.1.3"
@@ -4028,10 +5824,10 @@ version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77e878c846a8abae00dd069496dbe8751b16ac1c3d6bd2a7283a938e8228f90d"
dependencies = [
- "proc-macro-crate",
+ "proc-macro-crate 3.3.0",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -4044,39 +5840,437 @@ dependencies = [
]
[[package]]
-name = "objc2-core-foundation"
-version = "0.3.2"
+name = "objc-sys"
+version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
+
+[[package]]
+name = "objc2"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804"
+dependencies = [
+ "objc-sys",
+ "objc2-encode",
+]
+
+[[package]]
+name = "objc2"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
+dependencies = [
+ "objc2-encode",
+ "objc2-exception-helper",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
dependencies = [
"bitflags 2.11.0",
+ "block2 0.5.1",
+ "libc",
+ "objc2 0.5.2",
+ "objc2-core-data 0.2.2",
+ "objc2-core-image 0.2.2",
+ "objc2-foundation 0.2.2",
+ "objc2-quartz-core 0.2.2",
]
[[package]]
-name = "objc2-io-kit"
+name = "objc2-app-kit"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.6.2",
"libc",
+ "objc2 0.6.4",
"objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
]
[[package]]
-name = "once_cell"
-version = "1.21.4"
+name = "objc2-cloud-kit"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-core-location 0.2.2",
+ "objc2-foundation 0.2.2",
+]
[[package]]
-name = "once_cell_polyfill"
-version = "1.70.1"
+name = "objc2-cloud-kit"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad"
+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
+dependencies = [
+ "bitflags 2.11.0",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
[[package]]
-name = "oorandom"
-version = "11.1.5"
+name = "objc2-contacts"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+dependencies = [
+ "bitflags 2.11.0",
+ "dispatch2",
+ "objc2 0.6.4",
+]
+
+[[package]]
+name = "objc2-core-graphics"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+dependencies = [
+ "bitflags 2.11.0",
+ "dispatch2",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-io-surface",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+ "objc2-metal 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-contacts",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-text"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
+dependencies = [
+ "bitflags 2.11.0",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+]
+
+[[package]]
+name = "objc2-encode"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+
+[[package]]
+name = "objc2-exception-helper"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "objc2-foundation"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "dispatch",
+ "libc",
+ "objc2 0.5.2",
+]
+
+[[package]]
+name = "objc2-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"
+dependencies = [
+ "libc",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-surface"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+dependencies = [
+ "bitflags 2.11.0",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-link-presentation"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-metal"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-metal"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+ "objc2-metal 0.2.2",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
+dependencies = [
+ "bitflags 2.11.0",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-metal 0.3.2",
+]
+
+[[package]]
+name = "objc2-symbols"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"
+dependencies = [
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-cloud-kit 0.2.2",
+ "objc2-core-data 0.2.2",
+ "objc2-core-image 0.2.2",
+ "objc2-core-location 0.2.2",
+ "objc2-foundation 0.2.2",
+ "objc2-link-presentation",
+ "objc2-quartz-core 0.2.2",
+ "objc2-symbols",
+ "objc2-uniform-type-identifiers",
+ "objc2-user-notifications 0.2.2",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-cloud-kit 0.3.2",
+ "objc2-core-data 0.3.2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-core-image 0.3.2",
+ "objc2-core-location 0.3.2",
+ "objc2-core-text",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "objc2-user-notifications 0.3.2",
+]
+
+[[package]]
+name = "objc2-uniform-type-identifiers"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "objc2 0.5.2",
+ "objc2-core-location 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-web-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+
+[[package]]
+name = "once_cell_polyfill"
+version = "1.70.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad"
+
+[[package]]
+name = "oorandom"
+version = "11.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
@@ -4086,6 +6280,7 @@ version = "5.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43bb73a7fa3799b198970490a51174027ba0d4ec504b03cd08caf513d40024bc"
dependencies = [
+ "dunce",
"is-wsl",
"libc",
"pathdiff",
@@ -4097,6 +6292,16 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+[[package]]
+name = "orbclient"
+version = "0.3.54"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a570f6bca41d29acb2139229a7c873ec99bc9a313bd10804081d89bfac8ff329"
+dependencies = [
+ "libc",
+ "libredox",
+]
+
[[package]]
name = "ordered-float"
version = "4.6.0"
@@ -4117,6 +6322,25 @@ dependencies = [
"serde",
]
+[[package]]
+name = "ordered-stream"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "owned_ttf_parser"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b"
+dependencies = [
+ "ttf-parser",
+]
+
[[package]]
name = "page_size"
version = "0.6.0"
@@ -4127,6 +6351,31 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "pango"
+version = "0.18.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4"
+dependencies = [
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+ "pango-sys",
+]
+
+[[package]]
+name = "pango-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
[[package]]
name = "parking"
version = "2.2.1"
@@ -4151,7 +6400,7 @@ checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
dependencies = [
"cfg-if",
"libc",
- "redox_syscall",
+ "redox_syscall 0.5.17",
"smallvec",
"windows-link 0.2.0",
]
@@ -4168,6 +6417,19 @@ version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
+[[package]]
+name = "peniko"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a2b6aadb221872732e87d465213e9be5af2849b0e8cc5300a8ba98fffa2e00a"
+dependencies = [
+ "bytemuck",
+ "color",
+ "kurbo",
+ "linebender_resource_handle",
+ "smallvec",
+]
+
[[package]]
name = "percent-encoding"
version = "2.3.1"
@@ -4181,7 +6443,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db"
dependencies = [
"fixedbitset",
- "indexmap",
+ "indexmap 2.13.1",
]
[[package]]
@@ -4190,8 +6452,19 @@ version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"
dependencies = [
- "phf_macros",
- "phf_shared",
+ "phf_macros 0.11.3",
+ "phf_shared 0.11.3",
+]
+
+[[package]]
+name = "phf"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
+dependencies = [
+ "phf_macros 0.13.1",
+ "phf_shared 0.13.1",
+ "serde",
]
[[package]]
@@ -4200,8 +6473,18 @@ version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a"
dependencies = [
- "phf_generator",
- "phf_shared",
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
+]
+
+[[package]]
+name = "phf_codegen"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
+dependencies = [
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
]
[[package]]
@@ -4210,21 +6493,45 @@ version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"
dependencies = [
- "phf_shared",
+ "phf_shared 0.11.3",
"rand 0.8.5",
]
+[[package]]
+name = "phf_generator"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
+dependencies = [
+ "fastrand",
+ "phf_shared 0.13.1",
+]
+
[[package]]
name = "phf_macros"
version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216"
dependencies = [
- "phf_generator",
- "phf_shared",
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "unicase",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
+dependencies = [
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -4234,6 +6541,36 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"
dependencies = [
"siphasher",
+ "unicase",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "pin-project"
+version = "1.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cbf0d9e68100b3a7989b4901972f265cd542e560a3a8a724e1e20322f4d06ce9"
+dependencies = [
+ "pin-project-internal",
+]
+
+[[package]]
+name = "pin-project-internal"
+version = "1.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a990e22f43e84855daf260dded30524ef4a9021cc7541c26540500a50b624389"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
]
[[package]]
@@ -4248,12 +6585,82 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
[[package]]
name = "pkg-config"
version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
+[[package]]
+name = "plist"
+version = "1.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "092791278e026273c1b65bbdcfbba3a300f2994c896bd01ab01da613c29c46f1"
+dependencies = [
+ "base64 0.22.1",
+ "indexmap 2.13.1",
+ "quick-xml",
+ "serde",
+ "time",
+]
+
+[[package]]
+name = "png"
+version = "0.17.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
+dependencies = [
+ "bitflags 1.3.2",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide",
+]
+
+[[package]]
+name = "png"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
+dependencies = [
+ "bitflags 2.11.0",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide",
+]
+
+[[package]]
+name = "polling"
+version = "3.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
+dependencies = [
+ "cfg-if",
+ "concurrent-queue",
+ "hermit-abi",
+ "pin-project-lite",
+ "rustix 1.1.4",
+ "windows-sys 0.61.1",
+]
+
+[[package]]
+name = "pollster"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
+
[[package]]
name = "portable-atomic"
version = "1.11.1"
@@ -4325,7 +6732,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff24dfcda44452b9816fff4cd4227e1bb73ff5a2f1bc1105aa92fb8565ce44d2"
dependencies = [
"proc-macro2",
- "syn",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "1.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
+dependencies = [
+ "once_cell",
+ "toml_edit 0.19.15",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8"
+dependencies = [
+ "toml_edit 0.20.7",
]
[[package]]
@@ -4334,7 +6760,31 @@ version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "edce586971a4dfaa28950c6f18ed55e0406c1ab88bbce2c6f6293a7aaba73d35"
dependencies = [
- "toml_edit",
+ "toml_edit 0.22.27",
+]
+
+[[package]]
+name = "proc-macro-error"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
+dependencies = [
+ "proc-macro-error-attr",
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro-error-attr"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "version_check",
]
[[package]]
@@ -4397,6 +6847,27 @@ dependencies = [
"version_check",
]
+[[package]]
+name = "pxfm"
+version = "0.1.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e0c5ccf5294c6ccd63a74f1565028353830a9c2f5eb0c682c355c471726a6e3f"
+
+[[package]]
+name = "quick-error"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
+
+[[package]]
+name = "quick-xml"
+version = "0.39.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e"
+dependencies = [
+ "memchr",
+]
+
[[package]]
name = "quickcheck"
version = "1.1.0"
@@ -4416,7 +6887,7 @@ checksum = "a9a28b8493dd664c8b171dd944da82d933f7d456b829bfb236738e1fe06c5ba4"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -4594,6 +7065,18 @@ version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+[[package]]
+name = "raw-window-metal"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40d213455a5f1dc59214213c7330e074ddf8114c9a42411eb890c767357ce135"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+]
+
[[package]]
name = "rawpointer"
version = "0.2.1"
@@ -4620,12 +7103,31 @@ dependencies = [
"crossbeam-utils",
]
+[[package]]
+name = "read-fonts"
+version = "0.37.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b634fabf032fab15307ffd272149b622260f55974d9fad689292a5d33df02e5"
+dependencies = [
+ "bytemuck",
+ "font-types",
+]
+
[[package]]
name = "reborrow"
version = "0.5.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03251193000f4bd3b042892be858ee50e8b3719f2b08e5833ac4353724632430"
+[[package]]
+name = "redox_syscall"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
+dependencies = [
+ "bitflags 1.3.2",
+]
+
[[package]]
name = "redox_syscall"
version = "0.5.17"
@@ -4641,20 +7143,40 @@ version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
dependencies = [
- "getrandom 0.2.16",
- "libredox",
- "thiserror 1.0.69",
+ "getrandom 0.2.16",
+ "libredox",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd6f9d3d47bdd2ad6945c5015a226ec6155d0bcdfd8f7cd29f86b71f8de99d2b"
+dependencies = [
+ "getrandom 0.2.16",
+ "libredox",
+ "thiserror 2.0.18",
+]
+
+[[package]]
+name = "ref-cast"
+version = "1.0.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d"
+dependencies = [
+ "ref-cast-impl",
]
[[package]]
-name = "redox_users"
-version = "0.5.0"
+name = "ref-cast-impl"
+version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd6f9d3d47bdd2ad6945c5015a226ec6155d0bcdfd8f7cd29f86b71f8de99d2b"
+checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da"
dependencies = [
- "getrandom 0.2.16",
- "libredox",
- "thiserror 2.0.18",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
]
[[package]]
@@ -4704,7 +7226,7 @@ version = "0.12.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d0946410b9f7b082a427e4ef5c8ff541a88b357bc6c637c40db3a68ac70a36f"
dependencies = [
- "base64",
+ "base64 0.22.1",
"bytes",
"futures-channel",
"futures-core",
@@ -4739,6 +7261,40 @@ dependencies = [
"webpki-roots",
]
+[[package]]
+name = "reqwest"
+version = "0.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62e0021ea2c22aed41653bc7e1419abb2c97e038ff2c33d0e1309e49a97deec0"
+dependencies = [
+ "base64 0.22.1",
+ "bytes",
+ "futures-core",
+ "futures-util",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "percent-encoding",
+ "pin-project-lite",
+ "serde",
+ "serde_json",
+ "sync_wrapper",
+ "tokio",
+ "tokio-util",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "wasm-streams",
+ "web-sys",
+]
+
[[package]]
name = "resolve-path"
version = "0.1.0"
@@ -4815,13 +7371,13 @@ checksum = "9c845311f0ff7951c5506121a9ad75aec44d083c31583b2ea5a30bcb0b0abba0"
dependencies = [
"cfg-if",
"glob",
- "proc-macro-crate",
+ "proc-macro-crate 3.3.0",
"proc-macro2",
"quote",
"regex",
"relative-path",
"rustc_version",
- "syn",
+ "syn 2.0.117",
"unicode-ident",
]
@@ -4846,6 +7402,19 @@ dependencies = [
"semver",
]
+[[package]]
+name = "rustix"
+version = "0.38.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
+dependencies = [
+ "bitflags 2.11.0",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.4.15",
+ "windows-sys 0.59.0",
+]
+
[[package]]
name = "rustix"
version = "1.1.4"
@@ -4855,7 +7424,7 @@ dependencies = [
"bitflags 2.11.0",
"errno",
"libc",
- "linux-raw-sys",
+ "linux-raw-sys 0.12.1",
"windows-sys 0.61.1",
]
@@ -4953,17 +7522,115 @@ dependencies = [
"regex",
]
+[[package]]
+name = "schemars"
+version = "0.8.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"
+dependencies = [
+ "dyn-clone",
+ "indexmap 1.9.3",
+ "schemars_derive",
+ "serde",
+ "serde_json",
+ "url",
+ "uuid",
+]
+
+[[package]]
+name = "schemars"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars_derive"
+version = "0.8.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde_derive_internals",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "scoped-tls"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
+
[[package]]
name = "scopeguard"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+[[package]]
+name = "sctk-adwaita"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec"
+dependencies = [
+ "ab_glyph",
+ "log",
+ "memmap2",
+ "smithay-client-toolkit 0.19.2",
+ "tiny-skia",
+]
+
+[[package]]
+name = "selectors"
+version = "0.36.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"
+dependencies = [
+ "bitflags 2.11.0",
+ "cssparser 0.36.0",
+ "derive_more 2.0.1",
+ "log",
+ "new_debug_unreachable",
+ "phf 0.13.1",
+ "phf_codegen 0.13.1",
+ "precomputed-hash",
+ "rustc-hash 2.1.1",
+ "servo_arc",
+ "smallvec",
+]
+
+[[package]]
+name = "self_cell"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b12e76d157a900eb52e81bc6e9f3069344290341720e9178cde2407113ac8d89"
+
[[package]]
name = "semver"
version = "1.0.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0"
+dependencies = [
+ "serde",
+]
[[package]]
name = "seq-macro"
@@ -4981,6 +7648,18 @@ dependencies = [
"serde_derive",
]
+[[package]]
+name = "serde-untagged"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"
+dependencies = [
+ "erased-serde",
+ "serde",
+ "serde_core",
+ "typeid",
+]
+
[[package]]
name = "serde-wasm-bindgen"
version = "0.6.5"
@@ -5019,7 +7698,18 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "serde_derive_internals"
+version = "0.29.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
]
[[package]]
@@ -5028,7 +7718,7 @@ version = "1.0.149"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
dependencies = [
- "indexmap",
+ "indexmap 2.13.1",
"itoa",
"memchr",
"serde",
@@ -5044,7 +7734,7 @@ checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -5058,11 +7748,11 @@ dependencies = [
[[package]]
name = "serde_spanned"
-version = "1.0.0"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40734c41988f7306bb04f0ecf60ec0f3f1caa34290e4e8ea471dcd3346483b83"
+checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
dependencies = [
- "serde",
+ "serde_core",
]
[[package]]
@@ -5077,6 +7767,69 @@ dependencies = [
"serde",
]
+[[package]]
+name = "serde_with"
+version = "3.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e72c1c2cb7b223fafb600a619537a871c2818583d619401b785e7c0b746ccde2"
+dependencies = [
+ "base64 0.22.1",
+ "bs58",
+ "chrono",
+ "hex",
+ "indexmap 1.9.3",
+ "indexmap 2.13.1",
+ "schemars 0.9.0",
+ "schemars 1.2.1",
+ "serde_core",
+ "serde_json",
+ "serde_with_macros",
+ "time",
+]
+
+[[package]]
+name = "serde_with_macros"
+version = "3.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b90c488738ecb4fb0262f41f43bc40efc5868d9fb744319ddf5f5317f417bfac"
+dependencies = [
+ "darling 0.23.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "serialize-to-javascript"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"
+dependencies = [
+ "serde",
+ "serde_json",
+ "serialize-to-javascript-impl",
+]
+
+[[package]]
+name = "serialize-to-javascript-impl"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "servo_arc"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"
+dependencies = [
+ "stable_deref_trait",
+]
+
[[package]]
name = "sha2"
version = "0.10.9"
@@ -5103,18 +7856,54 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
[[package]]
name = "simd-adler32"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
+[[package]]
+name = "simd_cesu8"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94f90157bb87cddf702797c5dadfa0be7d266cdf49e22da2fcaa32eff75b2c33"
+dependencies = [
+ "rustc_version",
+ "simdutf8",
+]
+
+[[package]]
+name = "simdutf8"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
+
[[package]]
name = "siphasher"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
+[[package]]
+name = "skrifa"
+version = "0.40.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7fbdfe3d2475fbd7ddd1f3e5cf8288a30eb3e5f95832829570cd88115a7434ac"
+dependencies = [
+ "bytemuck",
+ "read-fonts",
+]
+
[[package]]
name = "slab"
version = "0.4.11"
@@ -5125,38 +7914,158 @@ checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
name = "slotmap"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dbff4acf519f630b3a3ddcfaea6c06b42174d9a44bc70c620e9ed1649d58b82a"
+checksum = "dbff4acf519f630b3a3ddcfaea6c06b42174d9a44bc70c620e9ed1649d58b82a"
+dependencies = [
+ "version_check",
+]
+
+[[package]]
+name = "slug"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724"
+dependencies = [
+ "deunicode",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "smithay-client-toolkit"
+version = "0.19.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
+dependencies = [
+ "bitflags 2.11.0",
+ "calloop 0.13.0",
+ "calloop-wayland-source 0.3.0",
+ "cursor-icon",
+ "libc",
+ "log",
+ "memmap2",
+ "rustix 0.38.44",
+ "thiserror 1.0.69",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-csd-frame",
+ "wayland-cursor",
+ "wayland-protocols",
+ "wayland-protocols-wlr",
+ "wayland-scanner",
+ "xkeysym",
+]
+
+[[package]]
+name = "smithay-client-toolkit"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"
+dependencies = [
+ "bitflags 2.11.0",
+ "calloop 0.14.4",
+ "calloop-wayland-source 0.4.1",
+ "cursor-icon",
+ "libc",
+ "log",
+ "memmap2",
+ "rustix 1.1.4",
+ "thiserror 2.0.18",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-csd-frame",
+ "wayland-cursor",
+ "wayland-protocols",
+ "wayland-protocols-experimental",
+ "wayland-protocols-misc",
+ "wayland-protocols-wlr",
+ "wayland-scanner",
+ "xkeysym",
+]
+
+[[package]]
+name = "smithay-clipboard"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"
+dependencies = [
+ "libc",
+ "smithay-client-toolkit 0.20.0",
+ "wayland-backend",
+]
+
+[[package]]
+name = "smol_str"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "socket2"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
dependencies = [
- "version_check",
+ "libc",
+ "windows-sys 0.61.1",
]
[[package]]
-name = "slug"
-version = "0.1.6"
+name = "softbuffer"
+version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724"
+checksum = "18051cdd562e792cad055119e0cdb2cfc137e44e3987532e0f9659a77931bb08"
dependencies = [
- "deunicode",
+ "bytemuck",
+ "cfg_aliases",
+ "core-graphics 0.24.0",
+ "foreign-types",
+ "js-sys",
+ "log",
+ "objc2 0.5.2",
+ "objc2-foundation 0.2.2",
+ "objc2-quartz-core 0.2.2",
+ "raw-window-handle",
+ "redox_syscall 0.5.17",
"wasm-bindgen",
+ "web-sys",
+ "windows-sys 0.59.0",
]
[[package]]
-name = "smallvec"
-version = "1.15.1"
+name = "soup3"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
+checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f"
dependencies = [
- "serde",
+ "futures-channel",
+ "gio",
+ "glib",
+ "libc",
+ "soup3-sys",
]
[[package]]
-name = "socket2"
-version = "0.6.3"
+name = "soup3-sys"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
+checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27"
dependencies = [
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
"libc",
- "windows-sys 0.61.1",
+ "system-deps",
]
[[package]]
@@ -5178,6 +8087,15 @@ dependencies = [
"bitflags 2.11.0",
]
+[[package]]
+name = "spirv"
+version = "0.4.0+sdk-1.4.341.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9571ea910ebd84c86af4b3ed27f9dbdc6ad06f17c5f96146b2b671e2976744f"
+dependencies = [
+ "bitflags 2.11.0",
+]
+
[[package]]
name = "stable-vec"
version = "0.4.1"
@@ -5205,6 +8123,12 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b2231b7c3057d5e4ad0156fb3dc807d900806020c5ffa3ee6ff2c8c76fb8520"
+[[package]]
+name = "strict-num"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731"
+
[[package]]
name = "string_cache"
version = "0.8.9"
@@ -5213,19 +8137,43 @@ checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f"
dependencies = [
"new_debug_unreachable",
"parking_lot",
- "phf_shared",
+ "phf_shared 0.11.3",
"precomputed-hash",
"serde",
]
+[[package]]
+name = "string_cache"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
+dependencies = [
+ "new_debug_unreachable",
+ "parking_lot",
+ "phf_shared 0.13.1",
+ "precomputed-hash",
+]
+
[[package]]
name = "string_cache_codegen"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0"
dependencies = [
- "phf_generator",
- "phf_shared",
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
+ "proc-macro2",
+ "quote",
+]
+
+[[package]]
+name = "string_cache_codegen"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
+dependencies = [
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
"proc-macro2",
"quote",
]
@@ -5257,10 +8205,10 @@ version = "0.27.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7"
dependencies = [
- "heck",
+ "heck 0.5.0",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -5269,10 +8217,10 @@ version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664"
dependencies = [
- "heck",
+ "heck 0.5.0",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -5281,6 +8229,27 @@ version = "2.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
+[[package]]
+name = "swift-rs"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7"
+dependencies = [
+ "base64 0.21.7",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "syn"
+version = "1.0.109"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
+dependencies = [
+ "proc-macro2",
+ "unicode-ident",
+]
+
[[package]]
name = "syn"
version = "2.0.117"
@@ -5298,85 +8267,421 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
dependencies = [
- "futures-core",
+ "futures-core",
+]
+
+[[package]]
+name = "synstructure"
+version = "0.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "sysctl"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec7dddc5f0fee506baf8b9fdb989e242f17e4b11c61dfbb0635b705217199eea"
+dependencies = [
+ "bitflags 2.11.0",
+ "byteorder",
+ "enum-as-inner",
+ "libc",
+ "thiserror 1.0.69",
+ "walkdir",
+]
+
+[[package]]
+name = "sysctl"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01198a2debb237c62b6826ec7081082d951f46dbb64b0e8c7649a452230d1dfc"
+dependencies = [
+ "bitflags 2.11.0",
+ "byteorder",
+ "enum-as-inner",
+ "libc",
+ "thiserror 1.0.69",
+ "walkdir",
+]
+
+[[package]]
+name = "sysinfo"
+version = "0.36.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "252800745060e7b9ffb7b2badbd8b31cfa4aa2e61af879d0a3bf2a317c20217d"
+dependencies = [
+ "libc",
+ "memchr",
+ "ntapi",
+ "objc2-core-foundation",
+ "objc2-io-kit",
+ "windows 0.61.3",
+]
+
+[[package]]
+name = "sysinfo"
+version = "0.38.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92ab6a2f8bfe508deb3c6406578252e491d299cbbf3bc0529ecc3313aee4a52f"
+dependencies = [
+ "libc",
+ "memchr",
+ "ntapi",
+ "objc2-core-foundation",
+ "objc2-io-kit",
+ "windows 0.62.1",
+]
+
+[[package]]
+name = "system-deps"
+version = "6.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"
+dependencies = [
+ "cfg-expr",
+ "heck 0.5.0",
+ "pkg-config",
+ "toml 0.8.23",
+ "version-compare",
+]
+
+[[package]]
+name = "tao"
+version = "0.35.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a33f7f9e486ade65fcf1e45c440f9236c904f5c1002cdc7fc6ae582777345ce4"
+dependencies = [
+ "bitflags 2.11.0",
+ "block2 0.6.2",
+ "core-foundation 0.10.1",
+ "core-graphics 0.25.0",
+ "crossbeam-channel",
+ "dbus",
+ "dispatch2",
+ "dlopen2",
+ "dpi",
+ "gdkwayland-sys",
+ "gdkx11-sys",
+ "gtk",
+ "jni 0.21.1",
+ "libc",
+ "log",
+ "ndk",
+ "ndk-sys",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "objc2-ui-kit 0.3.2",
+ "once_cell",
+ "parking_lot",
+ "percent-encoding",
+ "raw-window-handle",
+ "tao-macros",
+ "unicode-segmentation",
+ "url",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
+ "windows-version",
+ "x11-dl",
+]
+
+[[package]]
+name = "tao-macros"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "tar"
+version = "0.4.45"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "22692a6476a21fa75fdfc11d452fda482af402c008cdbaf3476414e122040973"
+dependencies = [
+ "filetime",
+ "libc",
+ "xattr",
+]
+
+[[package]]
+name = "target-lexicon"
+version = "0.12.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
+
+[[package]]
+name = "tauri"
+version = "2.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b93bd86d231f0a8138f11a02a584769fe4b703dc36ae133d783228dbc4801405"
+dependencies = [
+ "anyhow",
+ "bytes",
+ "cookie",
+ "dirs 6.0.0",
+ "dunce",
+ "embed_plist",
+ "getrandom 0.3.4",
+ "glob",
+ "gtk",
+ "heck 0.5.0",
+ "http",
+ "image",
+ "jni 0.21.1",
+ "libc",
+ "log",
+ "mime",
+ "muda",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "objc2-ui-kit 0.3.2",
+ "objc2-web-kit",
+ "percent-encoding",
+ "plist",
+ "raw-window-handle",
+ "reqwest 0.13.3",
+ "serde",
+ "serde_json",
+ "serde_repr",
+ "serialize-to-javascript",
+ "swift-rs",
+ "tauri-build",
+ "tauri-macros",
+ "tauri-runtime",
+ "tauri-runtime-wry",
+ "tauri-utils",
+ "thiserror 2.0.18",
+ "tokio",
+ "tray-icon",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "window-vibrancy",
+ "windows 0.61.3",
+]
+
+[[package]]
+name = "tauri-build"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a318b234cc2dea65f575467bafcfb76286bce228ebc3778e337d61d03213007"
+dependencies = [
+ "anyhow",
+ "cargo_toml",
+ "dirs 6.0.0",
+ "glob",
+ "heck 0.5.0",
+ "json-patch",
+ "schemars 0.8.22",
+ "semver",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "tauri-winres",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-codegen"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6bd11644962add2549a60b7e7c6800f17d7020156e02f516021d8103e80cc528"
+dependencies = [
+ "base64 0.22.1",
+ "brotli",
+ "ico",
+ "json-patch",
+ "plist",
+ "png 0.17.16",
+ "proc-macro2",
+ "quote",
+ "semver",
+ "serde",
+ "serde_json",
+ "sha2",
+ "syn 2.0.117",
+ "tauri-utils",
+ "thiserror 2.0.18",
+ "time",
+ "url",
+ "uuid",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-macros"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fed9d3742a37a355d2e47c9af924e9fbc112abb76f9835d35d4780e318419502"
+dependencies = [
+ "heck 0.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "tauri-codegen",
+ "tauri-utils",
+]
+
+[[package]]
+name = "tauri-plugin"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eefb2c18e8a605c23edb48fc56bb77381199e1a1e7f6ff0c9b970afe7b3cb8ee"
+dependencies = [
+ "anyhow",
+ "glob",
+ "plist",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "walkdir",
]
[[package]]
-name = "synstructure"
-version = "0.13.2"
+name = "tauri-plugin-autostart"
+version = "2.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "459383cebc193cdd03d1ba4acc40f2c408a7abce419d64bdcd2d745bc2886f70"
dependencies = [
- "proc-macro2",
- "quote",
- "syn",
+ "auto-launch",
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-plugin",
+ "thiserror 2.0.18",
]
[[package]]
-name = "sysctl"
-version = "0.5.5"
+name = "tauri-plugin-opener"
+version = "2.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec7dddc5f0fee506baf8b9fdb989e242f17e4b11c61dfbb0635b705217199eea"
+checksum = "17e1bea14edce6b793a04e2417e3fd924b9bc4faae83cdee7d714156cceeed29"
dependencies = [
- "bitflags 2.11.0",
- "byteorder",
- "enum-as-inner",
- "libc",
- "thiserror 1.0.69",
- "walkdir",
+ "dunce",
+ "glob",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "open",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-plugin",
+ "thiserror 2.0.18",
+ "url",
+ "windows 0.61.3",
+ "zbus",
]
[[package]]
-name = "sysctl"
-version = "0.6.0"
+name = "tauri-runtime"
+version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01198a2debb237c62b6826ec7081082d951f46dbb64b0e8c7649a452230d1dfc"
+checksum = "8fef478ba1d2ac21c2d528740b24d0cb315e1e8b1111aae53fafac34804371fc"
dependencies = [
- "bitflags 2.11.0",
- "byteorder",
- "enum-as-inner",
- "libc",
- "thiserror 1.0.69",
- "walkdir",
+ "cookie",
+ "dpi",
+ "gtk",
+ "http",
+ "jni 0.21.1",
+ "objc2 0.6.4",
+ "objc2-ui-kit 0.3.2",
+ "objc2-web-kit",
+ "raw-window-handle",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "thiserror 2.0.18",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "windows 0.61.3",
]
[[package]]
-name = "sysinfo"
-version = "0.36.1"
+name = "tauri-runtime-wry"
+version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "252800745060e7b9ffb7b2badbd8b31cfa4aa2e61af879d0a3bf2a317c20217d"
+checksum = "a3989df2ae1c476404fe0a2e8ffc4cfbde97e51efd613c2bb5355fbc9ab52cf0"
dependencies = [
- "libc",
- "memchr",
- "ntapi",
- "objc2-core-foundation",
- "objc2-io-kit",
+ "gtk",
+ "http",
+ "jni 0.21.1",
+ "log",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "once_cell",
+ "percent-encoding",
+ "raw-window-handle",
+ "softbuffer",
+ "tao",
+ "tauri-runtime",
+ "tauri-utils",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
"windows 0.61.3",
+ "wry",
]
[[package]]
-name = "sysinfo"
-version = "0.38.4"
+name = "tauri-utils"
+version = "2.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92ab6a2f8bfe508deb3c6406578252e491d299cbbf3bc0529ecc3313aee4a52f"
+checksum = "d57200389a2f82b4b0a40ae29ca19b6978116e8f4d4e974c3234ce40c0ffbdec"
dependencies = [
- "libc",
+ "anyhow",
+ "brotli",
+ "cargo_metadata",
+ "ctor",
+ "dom_query",
+ "dunce",
+ "glob",
+ "http",
+ "infer",
+ "json-patch",
+ "log",
"memchr",
- "ntapi",
- "objc2-core-foundation",
- "objc2-io-kit",
- "windows 0.62.1",
+ "phf 0.13.1",
+ "plist",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "schemars 0.8.22",
+ "semver",
+ "serde",
+ "serde-untagged",
+ "serde_json",
+ "serde_with",
+ "swift-rs",
+ "thiserror 2.0.18",
+ "toml 0.9.2",
+ "url",
+ "urlpattern",
+ "uuid",
+ "walkdir",
]
[[package]]
-name = "tar"
-version = "0.4.45"
+name = "tauri-winres"
+version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22692a6476a21fa75fdfc11d452fda482af402c008cdbaf3476414e122040973"
+checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6"
dependencies = [
- "filetime",
- "libc",
- "xattr",
+ "dunce",
+ "embed-resource",
+ "toml 1.1.2+spec-1.1.0",
]
[[package]]
@@ -5388,7 +8693,7 @@ dependencies = [
"fastrand",
"getrandom 0.4.1",
"once_cell",
- "rustix",
+ "rustix 1.1.4",
"windows-sys 0.61.1",
]
@@ -5403,6 +8708,16 @@ dependencies = [
"utf-8",
]
+[[package]]
+name = "tendril"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4790fc369d5a530f4b544b094e31388b9b3a37c0f4652ade4505945f5660d24"
+dependencies = [
+ "new_debug_unreachable",
+ "utf-8",
+]
+
[[package]]
name = "termcolor"
version = "1.4.1"
@@ -5455,7 +8770,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -5466,7 +8781,7 @@ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -5487,6 +8802,20 @@ dependencies = [
"cfg-if",
]
+[[package]]
+name = "tiff"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52"
+dependencies = [
+ "fax",
+ "flate2",
+ "half",
+ "quick-error",
+ "weezl",
+ "zune-jpeg",
+]
+
[[package]]
name = "time"
version = "0.3.47"
@@ -5527,6 +8856,31 @@ dependencies = [
"crunchy",
]
+[[package]]
+name = "tiny-skia"
+version = "0.11.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab"
+dependencies = [
+ "arrayref",
+ "arrayvec",
+ "bytemuck",
+ "cfg-if",
+ "log",
+ "tiny-skia-path",
+]
+
+[[package]]
+name = "tiny-skia-path"
+version = "0.11.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93"
+dependencies = [
+ "arrayref",
+ "bytemuck",
+ "strict-num",
+]
+
[[package]]
name = "tinystr"
version = "0.8.1"
@@ -5564,14 +8918,16 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
-version = "1.52.1"
+version = "1.52.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b67dee974fe86fd92cc45b7a95fdd2f99a36a6d7b0d431a231178d3d670bbcc6"
+checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
dependencies = [
"bytes",
"libc",
"mio",
+ "parking_lot",
"pin-project-lite",
+ "signal-hook-registry",
"socket2",
"tokio-macros",
"windows-sys 0.61.1",
@@ -5585,7 +8941,7 @@ checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -5620,7 +8976,7 @@ dependencies = [
"serde",
"serde_spanned 0.6.9",
"toml_datetime 0.6.11",
- "toml_edit",
+ "toml_edit 0.22.27",
]
[[package]]
@@ -5629,13 +8985,28 @@ version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed0aee96c12fa71097902e0bb061a5e1ebd766a6636bb605ba401c45c1650eac"
dependencies = [
- "indexmap",
+ "indexmap 2.13.1",
"serde",
- "serde_spanned 1.0.0",
+ "serde_spanned 1.1.1",
"toml_datetime 0.7.0",
"toml_parser",
"toml_writer",
- "winnow",
+ "winnow 0.7.12",
+]
+
+[[package]]
+name = "toml"
+version = "1.1.2+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee"
+dependencies = [
+ "indexmap 2.13.1",
+ "serde_core",
+ "serde_spanned 1.1.1",
+ "toml_datetime 1.1.1+spec-1.1.0",
+ "toml_parser",
+ "toml_writer",
+ "winnow 1.0.2",
]
[[package]]
@@ -5656,27 +9027,58 @@ dependencies = [
"serde",
]
+[[package]]
+name = "toml_datetime"
+version = "1.1.1+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.19.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
+dependencies = [
+ "indexmap 2.13.1",
+ "toml_datetime 0.6.11",
+ "winnow 0.5.40",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.20.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81"
+dependencies = [
+ "indexmap 2.13.1",
+ "toml_datetime 0.6.11",
+ "winnow 0.5.40",
+]
+
[[package]]
name = "toml_edit"
version = "0.22.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
dependencies = [
- "indexmap",
+ "indexmap 2.13.1",
"serde",
"serde_spanned 0.6.9",
"toml_datetime 0.6.11",
"toml_write",
- "winnow",
+ "winnow 0.7.12",
]
[[package]]
name = "toml_parser"
-version = "1.0.1"
+version = "1.1.2+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97200572db069e74c512a14117b296ba0a80a30123fbbb5aa1f4a348f639ca30"
+checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526"
dependencies = [
- "winnow",
+ "winnow 1.0.2",
]
[[package]]
@@ -5687,9 +9089,9 @@ checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
[[package]]
name = "toml_writer"
-version = "1.0.2"
+version = "1.1.1+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcc842091f2def52017664b53082ecbbeb5c7731092bad69d2c63050401dfd64"
+checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db"
[[package]]
name = "tower"
@@ -5708,20 +9110,20 @@ dependencies = [
[[package]]
name = "tower-http"
-version = "0.6.6"
+version = "0.6.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"
+checksum = "68d6fdd9f81c2819c9a8b0e0cd91660e7746a8e6ea2ba7c6b2b057985f6bcb51"
dependencies = [
"bitflags 2.11.0",
"bytes",
"futures-util",
"http",
"http-body",
- "iri-string",
"pin-project-lite",
"tower",
"tower-layer",
"tower-service",
+ "url",
]
[[package]]
@@ -5778,7 +9180,7 @@ dependencies = [
"dirs 6.0.0",
"liblzma",
"regex",
- "reqwest",
+ "reqwest 0.12.24",
"serde",
"serde_json",
"sha2",
@@ -5807,7 +9209,7 @@ dependencies = [
"proc-macro2",
"quote",
"regex",
- "syn",
+ "syn 2.0.117",
"tracel-llvm-bundler",
"tracel-tblgen-rs",
"unindent",
@@ -5842,6 +9244,7 @@ version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
dependencies = [
+ "log",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
@@ -5867,7 +9270,7 @@ checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -5916,6 +9319,28 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "tray-icon"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "15edbb0d80583e85ee8df283410038e17314df5cba30da2087a54a85216c0773"
+dependencies = [
+ "crossbeam-channel",
+ "dirs 6.0.0",
+ "libappindicator",
+ "muda",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
+ "once_cell",
+ "png 0.18.1",
+ "serde",
+ "thiserror 2.0.18",
+ "windows-sys 0.61.1",
+]
+
[[package]]
name = "tree-sitter"
version = "0.25.10"
@@ -6242,6 +9667,12 @@ version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
+[[package]]
+name = "ttf-parser"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
+
[[package]]
name = "twox-hash"
version = "2.1.2"
@@ -6269,6 +9700,12 @@ version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e"
+[[package]]
+name = "typeid"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
+
[[package]]
name = "typenum"
version = "1.19.0"
@@ -6320,6 +9757,17 @@ dependencies = [
"unicode-math-class",
]
+[[package]]
+name = "uds_windows"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
+dependencies = [
+ "memoffset",
+ "tempfile",
+ "windows-sys 0.61.1",
+]
+
[[package]]
name = "ug"
version = "0.4.0"
@@ -6328,7 +9776,7 @@ checksum = "90b70b37e9074642bc5f60bb23247fd072a84314ca9e71cdf8527593406a0dd3"
dependencies = [
"gemm 0.18.2",
"half",
- "libloading",
+ "libloading 0.8.8",
"memmap2",
"num",
"num-traits",
@@ -6341,6 +9789,47 @@ dependencies = [
"yoke 0.7.5",
]
+[[package]]
+name = "unic-char-property"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221"
+dependencies = [
+ "unic-char-range",
+]
+
+[[package]]
+name = "unic-char-range"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc"
+
+[[package]]
+name = "unic-common"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc"
+
+[[package]]
+name = "unic-ucd-ident"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987"
+dependencies = [
+ "unic-char-property",
+ "unic-char-range",
+ "unic-ucd-version",
+]
+
+[[package]]
+name = "unic-ucd-version"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4"
+dependencies = [
+ "unic-common",
+]
+
[[package]]
name = "unicase"
version = "2.8.1"
@@ -6437,6 +9926,19 @@ dependencies = [
"form_urlencoded",
"idna",
"percent-encoding",
+ "serde",
+]
+
+[[package]]
+name = "urlpattern"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d"
+dependencies = [
+ "regex",
+ "serde",
+ "unic-ucd-ident",
+ "url",
]
[[package]]
@@ -6483,9 +9985,41 @@ checksum = "41b6d82be61465f97d42bd1d15bf20f3b0a3a0905018f38f9d6f6962055b0b5c"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "vello_common"
+version = "0.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bd1a4c633ce09e7d713df1a6e036644a125e15e0c169cfb5180ddf5836ca04b"
+dependencies = [
+ "bytemuck",
+ "fearless_simd",
+ "hashbrown 0.16.1",
+ "log",
+ "peniko",
+ "skrifa",
+ "smallvec",
+]
+
+[[package]]
+name = "vello_cpu"
+version = "0.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0162bfe48aabf6a9fdcd401b628c7d9f260c2cbabb343c70a65feba6f7849edc"
+dependencies = [
+ "bytemuck",
+ "hashbrown 0.16.1",
+ "vello_common",
]
+[[package]]
+name = "version-compare"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e"
+
[[package]]
name = "version_check"
version = "0.9.5"
@@ -6498,6 +10032,26 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"
+[[package]]
+name = "vswhom"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"
+dependencies = [
+ "libc",
+ "vswhom-sys",
+]
+
+[[package]]
+name = "vswhom-sys"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"
+dependencies = [
+ "cc",
+ "libc",
+]
+
[[package]]
name = "walkdir"
version = "2.5.0"
@@ -6543,9 +10097,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen"
-version = "0.2.106"
+version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0d759f433fa64a2d763d1340820e46e111a7a5ab75f993d1852d70b03dbb80fd"
+checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790"
dependencies = [
"cfg-if",
"once_cell",
@@ -6556,22 +10110,19 @@ dependencies = [
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.56"
+version = "0.4.71"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "836d9622d604feee9e5de25ac10e3ea5f2d65b41eac0d9ce72eb5deae707ce7c"
+checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8"
dependencies = [
- "cfg-if",
"js-sys",
- "once_cell",
"wasm-bindgen",
- "web-sys",
]
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.106"
+version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48cb0d2638f8baedbc542ed444afc0644a29166f1595371af4fecf8ce1e7eeb3"
+checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -6579,22 +10130,22 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.106"
+version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cefb59d5cd5f92d9dcf80e4683949f15ca4b511f4ac0a6e14d4e1ac60c6ecd40"
+checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2"
dependencies = [
"bumpalo",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.106"
+version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cbc538057e648b67f72a982e708d485b2efa771e1ac05fec311f9f63e5800db4"
+checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441"
dependencies = [
"unicode-ident",
]
@@ -6616,11 +10167,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
dependencies = [
"anyhow",
- "indexmap",
+ "indexmap 2.13.1",
"wasm-encoder",
"wasmparser",
]
+[[package]]
+name = "wasm-streams"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb"
+dependencies = [
+ "futures-util",
+ "js-sys",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
[[package]]
name = "wasmparser"
version = "0.244.0"
@@ -6629,15 +10193,150 @@ checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
dependencies = [
"bitflags 2.11.0",
"hashbrown 0.15.5",
- "indexmap",
+ "indexmap 2.13.1",
"semver",
]
+[[package]]
+name = "wayland-backend"
+version = "0.3.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2857dd20b54e916ec7253b3d6b4d5c4d7d4ca2c33c2e11c6c76a99bd8744755d"
+dependencies = [
+ "cc",
+ "downcast-rs",
+ "rustix 1.1.4",
+ "scoped-tls",
+ "smallvec",
+ "wayland-sys",
+]
+
+[[package]]
+name = "wayland-client"
+version = "0.31.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "645c7c96bb74690c3189b5c9cb4ca1627062bb23693a4fad9d8c3de958260144"
+dependencies = [
+ "bitflags 2.11.0",
+ "rustix 1.1.4",
+ "wayland-backend",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-csd-frame"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e"
+dependencies = [
+ "bitflags 2.11.0",
+ "cursor-icon",
+ "wayland-backend",
+]
+
+[[package]]
+name = "wayland-cursor"
+version = "0.31.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d"
+dependencies = [
+ "rustix 1.1.4",
+ "wayland-client",
+ "xcursor",
+]
+
+[[package]]
+name = "wayland-protocols"
+version = "0.32.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "563a85523cade2429938e790815fd7319062103b9f4a2dc806e9b53b95982d8f"
+dependencies = [
+ "bitflags 2.11.0",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-experimental"
+version = "20250721.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1"
+dependencies = [
+ "bitflags 2.11.0",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-misc"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8"
+dependencies = [
+ "bitflags 2.11.0",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-plasma"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91"
+dependencies = [
+ "bitflags 2.11.0",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-wlr"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234"
+dependencies = [
+ "bitflags 2.11.0",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-scanner"
+version = "0.31.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c324a910fd86ebdc364a3e61ec1f11737d3b1d6c273c0239ee8ff4bc0d24b4a"
+dependencies = [
+ "proc-macro2",
+ "quick-xml",
+ "quote",
+]
+
+[[package]]
+name = "wayland-sys"
+version = "0.31.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
+dependencies = [
+ "dlib",
+ "log",
+ "once_cell",
+ "pkg-config",
+]
+
[[package]]
name = "web-sys"
-version = "0.3.83"
+version = "0.3.98"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b32828d774c412041098d182a8b38b16ea816958e07cf40eec2bc080ae137ac"
+checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -6659,10 +10358,82 @@ version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57ffde1dc01240bdf9992e3205668b235e59421fd085e8a317ed98da0178d414"
dependencies = [
- "phf",
- "phf_codegen",
- "string_cache",
- "string_cache_codegen",
+ "phf 0.11.3",
+ "phf_codegen 0.11.3",
+ "string_cache 0.8.9",
+ "string_cache_codegen 0.5.4",
+]
+
+[[package]]
+name = "web_atoms"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7cff6eef815df1834fd250e3a2ff436044d82a9f1bc1980ca1dbdf07effc538"
+dependencies = [
+ "phf 0.13.1",
+ "phf_codegen 0.13.1",
+ "string_cache 0.9.0",
+ "string_cache_codegen 0.6.1",
+]
+
+[[package]]
+name = "webbrowser"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fc95580916af1e68ff6a7be07446fc5db73ebf71cf092de939bbf5f7e189f72"
+dependencies = [
+ "core-foundation 0.10.1",
+ "jni 0.22.4",
+ "log",
+ "ndk-context",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+ "url",
+ "web-sys",
+]
+
+[[package]]
+name = "webkit2gtk"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793"
+dependencies = [
+ "bitflags 1.3.2",
+ "cairo-rs",
+ "gdk",
+ "gdk-sys",
+ "gio",
+ "gio-sys",
+ "glib",
+ "glib-sys",
+ "gobject-sys",
+ "gtk",
+ "gtk-sys",
+ "javascriptcore-rs",
+ "libc",
+ "once_cell",
+ "soup3",
+ "webkit2gtk-sys",
+]
+
+[[package]]
+name = "webkit2gtk-sys"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5"
+dependencies = [
+ "bitflags 1.3.2",
+ "cairo-sys-rs",
+ "gdk-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "gtk-sys",
+ "javascriptcore-rs-sys",
+ "libc",
+ "pkg-config",
+ "soup3-sys",
+ "system-deps",
]
[[package]]
@@ -6674,6 +10445,48 @@ dependencies = [
"rustls-pki-types",
]
+[[package]]
+name = "webview2-com"
+version = "0.38.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a"
+dependencies = [
+ "webview2-com-macros",
+ "webview2-com-sys",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
+]
+
+[[package]]
+name = "webview2-com-macros"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "webview2-com-sys"
+version = "0.38.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c"
+dependencies = [
+ "thiserror 2.0.18",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
+]
+
+[[package]]
+name = "weezl"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
+
[[package]]
name = "wgpu"
version = "26.0.1"
@@ -6688,7 +10501,37 @@ dependencies = [
"hashbrown 0.15.5",
"js-sys",
"log",
- "naga",
+ "naga 26.0.0",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "smallvec",
+ "static_assertions",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "wgpu-core 26.0.1",
+ "wgpu-hal 26.0.6",
+ "wgpu-types 26.0.0",
+]
+
+[[package]]
+name = "wgpu"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb3feacc458f7bee8bc1737149b42b6c731aa461039a4264a67bb6681646b250"
+dependencies = [
+ "arrayvec",
+ "bitflags 2.11.0",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "log",
+ "naga 29.0.3",
"parking_lot",
"portable-atomic",
"profiling",
@@ -6698,9 +10541,9 @@ dependencies = [
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
- "wgpu-core",
- "wgpu-hal",
- "wgpu-types",
+ "wgpu-core 29.0.3",
+ "wgpu-hal 29.0.3",
+ "wgpu-types 29.0.3",
]
[[package]]
@@ -6710,15 +10553,47 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5f62f1053bd28c2268f42916f31588f81f64796e2ff91b81293515017ca8bd9"
dependencies = [
"arrayvec",
- "bit-set",
- "bit-vec",
+ "bit-set 0.8.0",
+ "bit-vec 0.8.0",
"bitflags 2.11.0",
"cfg_aliases",
"document-features",
"hashbrown 0.15.5",
- "indexmap",
+ "indexmap 2.13.1",
+ "log",
+ "naga 26.0.0",
+ "once_cell",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "rustc-hash 1.1.0",
+ "smallvec",
+ "thiserror 2.0.18",
+ "wgpu-core-deps-apple 26.0.0",
+ "wgpu-core-deps-emscripten 26.0.0",
+ "wgpu-core-deps-windows-linux-android 26.0.0",
+ "wgpu-hal 26.0.6",
+ "wgpu-types 26.0.0",
+]
+
+[[package]]
+name = "wgpu-core"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "02da3ad1b568337f25513b317870960ef87073ea0945502e44b864b67a8c77b7"
+dependencies = [
+ "arrayvec",
+ "bit-set 0.9.1",
+ "bit-vec 0.9.1",
+ "bitflags 2.11.0",
+ "bytemuck",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.16.1",
+ "indexmap 2.13.1",
"log",
- "naga",
+ "naga 29.0.3",
"once_cell",
"parking_lot",
"portable-atomic",
@@ -6727,11 +10602,13 @@ dependencies = [
"rustc-hash 1.1.0",
"smallvec",
"thiserror 2.0.18",
- "wgpu-core-deps-apple",
- "wgpu-core-deps-emscripten",
- "wgpu-core-deps-windows-linux-android",
- "wgpu-hal",
- "wgpu-types",
+ "wgpu-core-deps-apple 29.0.3",
+ "wgpu-core-deps-emscripten 29.0.3",
+ "wgpu-core-deps-wasm",
+ "wgpu-core-deps-windows-linux-android 29.0.3",
+ "wgpu-hal 29.0.3",
+ "wgpu-naga-bridge",
+ "wgpu-types 29.0.3",
]
[[package]]
@@ -6740,7 +10617,16 @@ version = "26.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18ae5fbde6a4cbebae38358aa73fcd6e0f15c6144b67ef5dc91ded0db125dbdf"
dependencies = [
- "wgpu-hal",
+ "wgpu-hal 26.0.6",
+]
+
+[[package]]
+name = "wgpu-core-deps-apple"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62e51b5447e144b3dbba4feb01f80f4fa21696fa0cd99afb2c3df1affd6fdb28"
+dependencies = [
+ "wgpu-hal 29.0.3",
]
[[package]]
@@ -6749,7 +10635,25 @@ version = "26.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7670e390f416006f746b4600fdd9136455e3627f5bd763abf9a65daa216dd2d"
dependencies = [
- "wgpu-hal",
+ "wgpu-hal 26.0.6",
+]
+
+[[package]]
+name = "wgpu-core-deps-emscripten"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3487cd6293a963bc5c0c0396f6a2192043c50003c07f4efdccbad3d90ec9d819"
+dependencies = [
+ "wgpu-hal 29.0.3",
+]
+
+[[package]]
+name = "wgpu-core-deps-wasm"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c2f2fb042f36920771deb0b966543c5751b18f3d327760ffc90f74e20b2dcd4"
+dependencies = [
+ "wgpu-hal 29.0.3",
]
[[package]]
@@ -6758,7 +10662,16 @@ version = "26.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "720a5cb9d12b3d337c15ff0e24d3e97ed11490ff3f7506e7f3d98c68fa5d6f14"
dependencies = [
- "wgpu-hal",
+ "wgpu-hal 26.0.6",
+]
+
+[[package]]
+name = "wgpu-core-deps-windows-linux-android"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bfb01076d0aa08b0ba9bd741e178b5cc440f5abe99d9581323a4c8b5d1a1916"
+dependencies = [
+ "wgpu-hal 29.0.3",
]
[[package]]
@@ -6770,43 +10683,107 @@ dependencies = [
"android_system_properties",
"arrayvec",
"ash",
- "bit-set",
+ "bit-set 0.8.0",
"bitflags 2.11.0",
"block",
"bytemuck",
"cfg-if",
"cfg_aliases",
- "core-graphics-types",
- "glow",
+ "core-graphics-types 0.2.0",
+ "glow 0.16.0",
"glutin_wgl_sys",
"gpu-alloc",
- "gpu-allocator",
+ "gpu-allocator 0.27.0",
"gpu-descriptor",
"hashbrown 0.15.5",
"js-sys",
"khronos-egl",
"libc",
- "libloading",
+ "libloading 0.8.8",
+ "log",
+ "metal",
+ "naga 26.0.0",
+ "ndk-sys",
+ "objc",
+ "ordered-float 4.6.0",
+ "parking_lot",
+ "portable-atomic",
+ "portable-atomic-util",
+ "profiling",
+ "range-alloc",
+ "raw-window-handle",
+ "renderdoc-sys",
+ "smallvec",
+ "thiserror 2.0.18",
+ "wasm-bindgen",
+ "web-sys",
+ "wgpu-types 26.0.0",
+ "windows 0.58.0",
+ "windows-core 0.58.0",
+]
+
+[[package]]
+name = "wgpu-hal"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "31f8e1a9e7a8512f276f7c62e018c7fa8d60954303fed2e5750114332049193f"
+dependencies = [
+ "android_system_properties",
+ "arrayvec",
+ "ash",
+ "bit-set 0.9.1",
+ "bitflags 2.11.0",
+ "block2 0.6.2",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "glow 0.17.0",
+ "glutin_wgl_sys",
+ "gpu-allocator 0.28.0",
+ "gpu-descriptor",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "khronos-egl",
+ "libc",
+ "libloading 0.8.8",
"log",
- "metal",
- "naga",
+ "naga 29.0.3",
"ndk-sys",
- "objc",
- "ordered-float 4.6.0",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-metal 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "once_cell",
+ "ordered-float 5.3.0",
"parking_lot",
"portable-atomic",
"portable-atomic-util",
"profiling",
"range-alloc",
"raw-window-handle",
+ "raw-window-metal",
"renderdoc-sys",
"smallvec",
"thiserror 2.0.18",
"wasm-bindgen",
+ "wayland-sys",
"web-sys",
- "wgpu-types",
- "windows 0.58.0",
- "windows-core 0.58.0",
+ "wgpu-naga-bridge",
+ "wgpu-types 29.0.3",
+ "windows 0.62.1",
+ "windows-core 0.62.1",
+ "windows-result 0.4.0",
+]
+
+[[package]]
+name = "wgpu-naga-bridge"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59c654c483f058800972c3645e95388a7eca31bf9fe1933bc20e036588a0be02"
+dependencies = [
+ "naga 29.0.3",
+ "wgpu-types 29.0.3",
]
[[package]]
@@ -6823,6 +10800,20 @@ dependencies = [
"web-sys",
]
+[[package]]
+name = "wgpu-types"
+version = "29.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9bcc31518a0e9735aefebedb5f7a9ef3ed1c42549c9f4c882fa9060ceaac639"
+dependencies = [
+ "bitflags 2.11.0",
+ "bytemuck",
+ "js-sys",
+ "log",
+ "raw-window-handle",
+ "web-sys",
+]
+
[[package]]
name = "winapi"
version = "0.3.9"
@@ -6854,6 +10845,21 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+[[package]]
+name = "window-vibrancy"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "raw-window-handle",
+ "windows-sys 0.59.0",
+ "windows-version",
+]
+
[[package]]
name = "windows"
version = "0.58.0"
@@ -6976,7 +10982,7 @@ checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -6987,7 +10993,7 @@ checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -6998,7 +11004,7 @@ checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -7009,7 +11015,7 @@ checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -7099,6 +11105,15 @@ dependencies = [
"windows-link 0.2.0",
]
+[[package]]
+name = "windows-sys"
+version = "0.45.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
+dependencies = [
+ "windows-targets 0.42.2",
+]
+
[[package]]
name = "windows-sys"
version = "0.52.0"
@@ -7135,6 +11150,21 @@ dependencies = [
"windows-link 0.2.0",
]
+[[package]]
+name = "windows-targets"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
+dependencies = [
+ "windows_aarch64_gnullvm 0.42.2",
+ "windows_aarch64_msvc 0.42.2",
+ "windows_i686_gnu 0.42.2",
+ "windows_i686_msvc 0.42.2",
+ "windows_x86_64_gnu 0.42.2",
+ "windows_x86_64_gnullvm 0.42.2",
+ "windows_x86_64_msvc 0.42.2",
+]
+
[[package]]
name = "windows-targets"
version = "0.52.6"
@@ -7186,6 +11216,21 @@ dependencies = [
"windows-link 0.2.0",
]
+[[package]]
+name = "windows-version"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "700dad7c058606087f6fdc1f88da5841e06da40334413c6cd4367b25ef26d24e"
+dependencies = [
+ "windows-link 0.2.0",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
+
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.6"
@@ -7198,6 +11243,12 @@ version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764"
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
+
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.6"
@@ -7210,6 +11261,12 @@ version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c"
+[[package]]
+name = "windows_i686_gnu"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
+
[[package]]
name = "windows_i686_gnu"
version = "0.52.6"
@@ -7234,6 +11291,12 @@ version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11"
+[[package]]
+name = "windows_i686_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
+
[[package]]
name = "windows_i686_msvc"
version = "0.52.6"
@@ -7246,6 +11309,12 @@ version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d"
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
+
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.6"
@@ -7258,6 +11327,12 @@ version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba"
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
+
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.6"
@@ -7270,6 +11345,12 @@ version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57"
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
+
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.6"
@@ -7282,6 +11363,67 @@ version = "0.53.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486"
+[[package]]
+name = "winit"
+version = "0.30.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d"
+dependencies = [
+ "ahash",
+ "android-activity",
+ "atomic-waker",
+ "bitflags 2.11.0",
+ "block2 0.5.1",
+ "bytemuck",
+ "calloop 0.13.0",
+ "cfg_aliases",
+ "concurrent-queue",
+ "core-foundation 0.9.4",
+ "core-graphics 0.23.2",
+ "cursor-icon",
+ "dpi",
+ "js-sys",
+ "libc",
+ "memmap2",
+ "ndk",
+ "objc2 0.5.2",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+ "objc2-ui-kit 0.2.2",
+ "orbclient",
+ "percent-encoding",
+ "pin-project",
+ "raw-window-handle",
+ "redox_syscall 0.4.1",
+ "rustix 0.38.44",
+ "sctk-adwaita",
+ "smithay-client-toolkit 0.19.2",
+ "smol_str",
+ "tracing",
+ "unicode-segmentation",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-protocols-plasma",
+ "web-sys",
+ "web-time",
+ "windows-sys 0.52.0",
+ "x11-dl",
+ "x11rb",
+ "xkbcommon-dl",
+]
+
+[[package]]
+name = "winnow"
+version = "0.5.40"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"
+dependencies = [
+ "memchr",
+]
+
[[package]]
name = "winnow"
version = "0.7.12"
@@ -7291,6 +11433,34 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "winnow"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ee1708bef14716a11bae175f579062d4554d95be2c6829f518df847b7b3fdd0"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winreg"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "winreg"
+version = "0.55.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97"
+dependencies = [
+ "cfg-if",
+ "windows-sys 0.59.0",
+]
+
[[package]]
name = "wit-bindgen"
version = "0.46.0"
@@ -7313,7 +11483,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
dependencies = [
"anyhow",
- "heck",
+ "heck 0.5.0",
"wit-parser",
]
@@ -7324,10 +11494,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
dependencies = [
"anyhow",
- "heck",
- "indexmap",
+ "heck 0.5.0",
+ "indexmap 2.13.1",
"prettyplease",
- "syn",
+ "syn 2.0.117",
"wasm-metadata",
"wit-bindgen-core",
"wit-component",
@@ -7343,7 +11513,7 @@ dependencies = [
"prettyplease",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
"wit-bindgen-core",
"wit-bindgen-rust",
]
@@ -7356,7 +11526,7 @@ checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
dependencies = [
"anyhow",
"bitflags 2.11.0",
- "indexmap",
+ "indexmap 2.13.1",
"log",
"serde",
"serde_derive",
@@ -7375,7 +11545,7 @@ checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
dependencies = [
"anyhow",
"id-arena",
- "indexmap",
+ "indexmap 2.13.1",
"log",
"semver",
"serde",
@@ -7391,6 +11561,92 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb"
+[[package]]
+name = "wry"
+version = "0.55.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514"
+dependencies = [
+ "base64 0.22.1",
+ "block2 0.6.2",
+ "cookie",
+ "crossbeam-channel",
+ "dirs 6.0.0",
+ "dom_query",
+ "dpi",
+ "dunce",
+ "gdkx11",
+ "gtk",
+ "http",
+ "javascriptcore-rs",
+ "jni 0.21.1",
+ "libc",
+ "ndk",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-ui-kit 0.3.2",
+ "objc2-web-kit",
+ "once_cell",
+ "percent-encoding",
+ "raw-window-handle",
+ "sha2",
+ "soup3",
+ "tao-macros",
+ "thiserror 2.0.18",
+ "url",
+ "webkit2gtk",
+ "webkit2gtk-sys",
+ "webview2-com",
+ "windows 0.61.3",
+ "windows-core 0.61.2",
+ "windows-version",
+ "x11-dl",
+]
+
+[[package]]
+name = "x11"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "x11-dl"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
+dependencies = [
+ "libc",
+ "once_cell",
+ "pkg-config",
+]
+
+[[package]]
+name = "x11rb"
+version = "0.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
+dependencies = [
+ "as-raw-xcb-connection",
+ "gethostname",
+ "libc",
+ "libloading 0.8.8",
+ "once_cell",
+ "rustix 1.1.4",
+ "x11rb-protocol",
+]
+
+[[package]]
+name = "x11rb-protocol"
+version = "0.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
+
[[package]]
name = "xattr"
version = "1.6.1"
@@ -7398,9 +11654,34 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
dependencies = [
"libc",
- "rustix",
+ "rustix 1.1.4",
+]
+
+[[package]]
+name = "xcursor"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bec9e4a500ca8864c5b47b8b482a73d62e4237670e5b5f1d6b9e3cae50f28f2b"
+
+[[package]]
+name = "xkbcommon-dl"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5"
+dependencies = [
+ "bitflags 2.11.0",
+ "dlib",
+ "log",
+ "once_cell",
+ "xkeysym",
]
+[[package]]
+name = "xkeysym"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56"
+
[[package]]
name = "xml-rs"
version = "0.8.27"
@@ -7445,7 +11726,7 @@ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
"synstructure",
]
@@ -7457,10 +11738,71 @@ checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
"synstructure",
]
+[[package]]
+name = "zbus"
+version = "5.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3bcbf15c8708d7fc1be0c993622e0a5cbd5e8b52bfa40afa4c3e0cd8d724ac1"
+dependencies = [
+ "async-broadcast",
+ "async-executor",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "async-recursion",
+ "async-task",
+ "async-trait",
+ "blocking",
+ "enumflags2",
+ "event-listener",
+ "futures-core",
+ "futures-lite",
+ "hex",
+ "libc",
+ "ordered-stream",
+ "rustix 1.1.4",
+ "serde",
+ "serde_repr",
+ "tracing",
+ "uds_windows",
+ "uuid",
+ "windows-sys 0.61.1",
+ "winnow 1.0.2",
+ "zbus_macros",
+ "zbus_names",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus_macros"
+version = "5.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51fa5406ad9175a8c825a931f8cf347116b531b3634fcb0b627c290f1f2516ff"
+dependencies = [
+ "proc-macro-crate 3.3.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "zbus_names",
+ "zvariant",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zbus_names"
+version = "4.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7074f3e50b894eac91750142016d30d0a89be8e67dbfd9704fb875825760e52d"
+dependencies = [
+ "serde",
+ "winnow 1.0.2",
+ "zvariant",
+]
+
[[package]]
name = "zerocopy"
version = "0.8.26"
@@ -7478,7 +11820,7 @@ checksum = "9ecf5b4cc5364572d7f4c329661bcc82724222973f2cab6f050a4e5c22f75181"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -7498,7 +11840,7 @@ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
"synstructure",
]
@@ -7538,7 +11880,7 @@ checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.117",
]
[[package]]
@@ -7551,7 +11893,7 @@ dependencies = [
"crc32fast",
"crossbeam-utils",
"displaydoc",
- "indexmap",
+ "indexmap 2.13.1",
"num_enum",
"thiserror 1.0.69",
]
@@ -7564,7 +11906,7 @@ checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b"
dependencies = [
"crc32fast",
"flate2",
- "indexmap",
+ "indexmap 2.13.1",
"memchr",
"typed-path",
"zopfli",
@@ -7621,3 +11963,58 @@ dependencies = [
"cc",
"pkg-config",
]
+
+[[package]]
+name = "zune-core"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb8a0807f7c01457d0379ba880ba6322660448ddebc890ce29bb64da71fb40f9"
+
+[[package]]
+name = "zune-jpeg"
+version = "0.5.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"
+dependencies = [
+ "zune-core",
+]
+
+[[package]]
+name = "zvariant"
+version = "5.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c1567a6ec68df868cbbfde844cfc6d81649fe5109a62b116b19fabd53e618ee"
+dependencies = [
+ "endi",
+ "enumflags2",
+ "serde",
+ "winnow 1.0.2",
+ "zvariant_derive",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_derive"
+version = "5.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7d5b780599bbde114e39d9a0799577fad1ced5105d38515745f7b3099d8ceda"
+dependencies = [
+ "proc-macro-crate 3.3.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_utils"
+version = "3.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d464f5733ffa07a3164d656f18533caace9d0638596721355d73256a410d691"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde",
+ "syn 2.0.117",
+ "winnow 1.0.2",
+]
diff --git a/Cargo.toml b/Cargo.toml
index d029cd736..a994ab908 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
[workspace]
-members = ["harper-cli", "harper-core", "harper-ls", "harper-comments", "harper-wasm", "harper-tree-sitter", "harper-html", "harper-literate-haskell", "harper-typst", "harper-stats", "harper-pos-utils", "harper-brill", "harper-ink", "harper-python", "harper-jjdescription", "harper-thesaurus", "harper-asciidoc", "fuzz", "harper-tex", "harper-dictionary-wordlist"]
+members = ["harper-cli", "harper-core", "harper-ls", "harper-comments", "harper-wasm", "harper-tree-sitter", "harper-html", "harper-literate-haskell", "harper-typst", "harper-stats", "harper-pos-utils", "harper-brill", "harper-ink", "harper-python", "harper-jjdescription", "harper-thesaurus", "harper-asciidoc", "fuzz", "harper-tex", "harper-desktop/src-tauri"]
resolver = "2"
[profile.test]
diff --git a/biome.json b/biome.json
index 07102f9ac..6833bad97 100644
--- a/biome.json
+++ b/biome.json
@@ -9,6 +9,7 @@
"ignoreUnknown": true,
"includes": [
"**/packages/**/*",
+ "**/harper-desktop/**/*",
"**/*.json",
"!**/test-results",
"!**/node_modules",
diff --git a/harper-desktop/.github/workflows/build_artifacts.yml b/harper-desktop/.github/workflows/build_artifacts.yml
new file mode 100644
index 000000000..3ae58537a
--- /dev/null
+++ b/harper-desktop/.github/workflows/build_artifacts.yml
@@ -0,0 +1,70 @@
+name: Build Artifacts
+
+on:
+ push:
+ branches: ["master"]
+ pull_request:
+ branches: ["master"]
+ merge_group:
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ build-artifacts:
+ runs-on: ${{ matrix.platform }}
+ name: ${{ matrix.platform }} - just ${{ matrix.task }}
+ strategy:
+ matrix:
+ include:
+ - platform: 'ubuntu-latest'
+ task: build-linux
+ artifact_name: linux-bundles
+ artifact_paths: |
+ src-tauri/target/release/bundle/deb
+ src-tauri/target/release/bundle/rpm
+ # - platform: 'ubuntu-latest'
+ # task: build-windows
+ # artifact_name: windows-bundles
+ # artifact_paths: |
+ # src-tauri/target/release/bundle/nsis
+ - platform: 'macos-latest'
+ task: build-macos
+ artifact_name: macos-bundles
+ artifact_paths: |
+ src-tauri/target/release/bundle/app
+ src-tauri/target/release/bundle/dmg
+ steps:
+ - uses: actions/checkout@v4
+ - uses: extractions/setup-just@v2
+ - name: Install pnpm
+ uses: pnpm/action-setup@v4
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
+ with:
+ components: rustfmt,clippy
+ - name: Install Node.js
+ uses: actions/setup-node@v4
+ - name: Enable Corepack
+ run: corepack enable
+ - name: Rust Cache
+ uses: Swatinem/[email protected]
+ - uses: cargo-bins/cargo-binstall@main
+ - name: Install APT packages
+ if: matrix.platform == 'ubuntu-latest'
+ run: sudo apt update && sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev nsis lld llvm -y
+ - name: Install `wasm-pack`
+ run: cargo binstall wasm-pack --force --no-confirm
+ - name: Install `cargo xwin`
+ run: cargo binstall cargo-xwin --force --no-confirm
+ - name: Install `cargo tauri`
+ run: cargo binstall tauri-cli --force --no-confirm
+ - name: Install `cargo hack`
+ run: cargo binstall cargo-hack --force --no-confirm
+ - name: Run `${{ matrix.task }}`
+ run: just ${{ matrix.task }}
+ - name: Upload build artifacts
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ matrix.artifact_name }}
+ path: ${{ matrix.artifact_paths }}
+ if-no-files-found: error
diff --git a/harper-desktop/.gitignore b/harper-desktop/.gitignore
new file mode 100644
index 000000000..6635cf554
--- /dev/null
+++ b/harper-desktop/.gitignore
@@ -0,0 +1,10 @@
+.DS_Store
+node_modules
+/build
+/.svelte-kit
+/package
+.env
+.env.*
+!.env.example
+vite.config.js.timestamp-*
+vite.config.ts.timestamp-*
diff --git a/harper-desktop/README.md b/harper-desktop/README.md
new file mode 100644
index 000000000..b24d88da8
--- /dev/null
+++ b/harper-desktop/README.md
@@ -0,0 +1,38 @@
+# Harper Desktop
+
+![A screenshot of the first version of Harper Desktop](./screenshot.png)
+
+> __NOTICE__: Documentation for Harper Desktop is incomplete. It will be updated on a "when we have time" basis.
+
+For context, see these posts:
+
+- [Build A Harper Desktop App](https://elijahpotter.dev/articles/building-a-harper-desktop-app)
+
+Right now, Harper Desktop does little more than serve as an offline editor for Markdown with the Harper grammar checker baked in.
+
+## Recommended IDE Setup
+
+[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer).
+
+## Building
+
+Most actions needed to work on this repository are available via [`just`](https://github.com/casey/just).
+Harper Desktop is part of the Harper monorepo and uses the root Cargo and pnpm workspaces.
+
+To launch a development version of Harper Desktop with live reload, run:
+
+```bash
+just dev-desktop
+```
+
+To check the frontend and Rust targets, run:
+
+```bash
+just check-desktop
+```
+
+To build Linux bundles, run:
+
+```bash
+just build-desktop-linux
+```
diff --git a/harper-desktop/package.json b/harper-desktop/package.json
new file mode 100644
index 000000000..bf49f5c58
--- /dev/null
+++ b/harper-desktop/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "harper-desktop",
+ "version": "0.1.0",
+ "description": "",
+ "type": "module",
+ "scripts": {
+ "dev": "vite dev",
+ "build": "vite build",
+ "preview": "vite preview",
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
+ "tauri": "tauri"
+ },
+ "license": "MIT",
+ "dependencies": {
+ "@tauri-apps/api": "^2",
+ "@tauri-apps/plugin-autostart": "^2.5.1",
+ "@tauri-apps/plugin-opener": "^2",
+ "harper-editor": "workspace:*",
+ "harper.js": "workspace:*"
+ },
+ "devDependencies": {
+ "@sveltejs/adapter-static": "^3.0.6",
+ "@sveltejs/kit": "^2.9.0",
+ "@sveltejs/vite-plugin-svelte": "^5.0.0",
+ "@tailwindcss/vite": "^4.2.2",
+ "@tauri-apps/cli": "^2",
+ "svelte": "^5.0.0",
+ "svelte-check": "^4.0.0",
+ "tailwindcss": "^4.2.2",
+ "typescript": "~5.6.2",
+ "vite": "^6.0.3",
+ "vite-plugin-top-level-await": "^1.5.0",
+ "vite-plugin-wasm": "^3.4.1"
+ },
+ "packageManager": "[email protected]+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
+}
diff --git a/harper-desktop/screenshot.png b/harper-desktop/screenshot.png
new file mode 100644
index 000000000..b2e14a5bd
Binary files /dev/null and b/harper-desktop/screenshot.png differ
diff --git a/harper-desktop/src-tauri/.gitignore b/harper-desktop/src-tauri/.gitignore
new file mode 100644
index 000000000..b21bd681d
--- /dev/null
+++ b/harper-desktop/src-tauri/.gitignore
@@ -0,0 +1,7 @@
+# Generated by Cargo
+# will have compiled files and executables
+/target/
+
+# Generated by Tauri
+# will have schema files for capabilities auto-completion
+/gen/schemas
diff --git a/harper-desktop/src-tauri/Cargo.toml b/harper-desktop/src-tauri/Cargo.toml
new file mode 100644
index 000000000..d208e1f94
--- /dev/null
+++ b/harper-desktop/src-tauri/Cargo.toml
@@ -0,0 +1,55 @@
+[package]
+name = "harper-desktop"
+version = "0.1.0"
+description = "A Tauri App"
+authors = ["you"]
+edition = "2024"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[lib]
+# The `_lib` suffix may seem redundant but it is necessary
+# to make the lib name unique and wouldn't conflict with the bin name.
+# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
+name = "harper_desktop_lib"
+crate-type = ["staticlib", "cdylib", "rlib"]
+
+[build-dependencies]
+tauri-build = { version = "=2.6.1", features = [] }
+
+[dependencies]
+tauri = { version = "=2.11.1", features = ["image-png", "tray-icon"] }
+tauri-plugin-opener = "=2.5.4"
+serde = { version = "1", features = ["derive"] }
+serde_json = "1"
+winit = "0.30.13"
+thiserror = "2.0.18"
+egui = "0.34.1"
+egui-winit = "0.34.1"
+egui-wgpu = { version = "0.34.1", features = ["winit"] }
+pollster = "0.4.0"
+clap = { version = "4.6.1", features = ["derive"] }
+dirs = "6.0.0"
+harper-core = { path = "../../harper-core" }
+harper-dictionary-wordlist = { path = "../../harper-dictionary-wordlist" }
+egui_commonmark = "0.23.0"
+tokio = { version = "1.52.2", features = ["full"] }
+
+[target.'cfg(target_os = "macos")'.dependencies]
+accessibility = "0.2.0"
+core-foundation = "0.10.1"
+objc2-app-kit = { version = "0.3.2", default-features = false, features = [
+ "std",
+ "libc",
+ "NSRunningApplication",
+] }
+objc2-foundation = { version = "0.3.2", default-features = false, features = [
+ "std",
+ "NSGeometry",
+ "objc2-core-foundation",
+] }
+accessibility-sys = "0.2.0"
+core-graphics = "0.25.0"
+
+[target.'cfg(any(target_os = "macos", windows, target_os = "linux"))'.dependencies]
+tauri-plugin-autostart = "2.5.1"
diff --git a/harper-desktop/src-tauri/build.rs b/harper-desktop/src-tauri/build.rs
new file mode 100644
index 000000000..d860e1e6a
--- /dev/null
+++ b/harper-desktop/src-tauri/build.rs
@@ -0,0 +1,3 @@
+fn main() {
+ tauri_build::build()
+}
diff --git a/harper-desktop/src-tauri/capabilities/default.json b/harper-desktop/src-tauri/capabilities/default.json
new file mode 100644
index 000000000..ceeb17826
--- /dev/null
+++ b/harper-desktop/src-tauri/capabilities/default.json
@@ -0,0 +1,13 @@
+{
+ "$schema": "../gen/schemas/desktop-schema.json",
+ "identifier": "default",
+ "description": "Capability for the main window",
+ "windows": ["main", "settings"],
+ "permissions": [
+ "core:default",
+ "opener:default",
+ "autostart:allow-enable",
+ "autostart:allow-disable",
+ "autostart:allow-is-enabled"
+ ]
+}
diff --git a/harper-desktop/src-tauri/icons/128x128.png b/harper-desktop/src-tauri/icons/128x128.png
new file mode 100644
index 000000000..6be5e50e9
Binary files /dev/null and b/harper-desktop/src-tauri/icons/128x128.png differ
diff --git a/harper-desktop/src-tauri/icons/[email protected] b/harper-desktop/src-tauri/icons/[email protected]
new file mode 100644
index 000000000..e81becee5
Binary files /dev/null and b/harper-desktop/src-tauri/icons/[email protected] differ
diff --git a/harper-desktop/src-tauri/icons/32x32.png b/harper-desktop/src-tauri/icons/32x32.png
new file mode 100644
index 000000000..a437dd517
Binary files /dev/null and b/harper-desktop/src-tauri/icons/32x32.png differ
diff --git a/harper-desktop/src-tauri/icons/Square107x107Logo.png b/harper-desktop/src-tauri/icons/Square107x107Logo.png
new file mode 100644
index 000000000..0ca4f2719
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square107x107Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/Square142x142Logo.png b/harper-desktop/src-tauri/icons/Square142x142Logo.png
new file mode 100644
index 000000000..b81f82039
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square142x142Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/Square150x150Logo.png b/harper-desktop/src-tauri/icons/Square150x150Logo.png
new file mode 100644
index 000000000..624c7bfba
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square150x150Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/Square284x284Logo.png b/harper-desktop/src-tauri/icons/Square284x284Logo.png
new file mode 100644
index 000000000..c021d2ba7
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square284x284Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/Square30x30Logo.png b/harper-desktop/src-tauri/icons/Square30x30Logo.png
new file mode 100644
index 000000000..621970023
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square30x30Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/Square310x310Logo.png b/harper-desktop/src-tauri/icons/Square310x310Logo.png
new file mode 100644
index 000000000..f9bc04839
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square310x310Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/Square44x44Logo.png b/harper-desktop/src-tauri/icons/Square44x44Logo.png
new file mode 100644
index 000000000..d5fbfb2ab
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square44x44Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/Square71x71Logo.png b/harper-desktop/src-tauri/icons/Square71x71Logo.png
new file mode 100644
index 000000000..63440d798
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square71x71Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/Square89x89Logo.png b/harper-desktop/src-tauri/icons/Square89x89Logo.png
new file mode 100644
index 000000000..f3f705af2
Binary files /dev/null and b/harper-desktop/src-tauri/icons/Square89x89Logo.png differ
diff --git a/harper-desktop/src-tauri/icons/StoreLogo.png b/harper-desktop/src-tauri/icons/StoreLogo.png
new file mode 100644
index 000000000..455638826
Binary files /dev/null and b/harper-desktop/src-tauri/icons/StoreLogo.png differ
diff --git a/harper-desktop/src-tauri/icons/icon.icns b/harper-desktop/src-tauri/icons/icon.icns
new file mode 100644
index 000000000..12a5bcee2
Binary files /dev/null and b/harper-desktop/src-tauri/icons/icon.icns differ
diff --git a/harper-desktop/src-tauri/icons/icon.ico b/harper-desktop/src-tauri/icons/icon.ico
new file mode 100644
index 000000000..b3636e4b2
Binary files /dev/null and b/harper-desktop/src-tauri/icons/icon.ico differ
diff --git a/harper-desktop/src-tauri/icons/icon.png b/harper-desktop/src-tauri/icons/icon.png
new file mode 100644
index 000000000..e1cd2619e
Binary files /dev/null and b/harper-desktop/src-tauri/icons/icon.png differ
diff --git a/harper-desktop/src-tauri/icons/menu-bar-icon.png b/harper-desktop/src-tauri/icons/menu-bar-icon.png
new file mode 100644
index 000000000..7f1cf285d
Binary files /dev/null and b/harper-desktop/src-tauri/icons/menu-bar-icon.png differ
diff --git a/harper-desktop/src-tauri/src/color.rs b/harper-desktop/src-tauri/src/color.rs
new file mode 100644
index 000000000..c6063de17
--- /dev/null
+++ b/harper-desktop/src-tauri/src/color.rs
@@ -0,0 +1,12 @@
+#[derive(Debug, Clone, Copy, PartialEq)]
+pub struct Color {
+ pub r: u8,
+ pub g: u8,
+ pub b: u8,
+}
+
+impl Color {
+ pub fn new(r: u8, g: u8, b: u8) -> Self {
+ Self { r, g, b }
+ }
+}
diff --git a/harper-desktop/src-tauri/src/communication/client.rs b/harper-desktop/src-tauri/src/communication/client.rs
new file mode 100644
index 000000000..3d52bdeb9
--- /dev/null
+++ b/harper-desktop/src-tauri/src/communication/client.rs
@@ -0,0 +1,163 @@
+use harper_core::{
+ Dialect, DictWordMetadata, IgnoredLints, linting::FlatConfig, spell::MutableDictionary,
+};
+use tokio::io::{AsyncBufReadExt, AsyncRead, AsyncWrite, BufReader, Stdin, Stdout};
+
+use super::error::ProtocolError;
+use super::framing::write_message;
+use super::message::{Request, Response};
+
+/// Highlighter-side protocol endpoint for requesting state from the Tauri server over async I/O.
+pub struct Client<R, W> {
+ reader: BufReader<R>,
+ writer: W,
+}
+
+impl<R, W> Client<R, W>
+where
+ R: AsyncRead + Unpin,
+ W: AsyncWrite + Unpin,
+{
+ pub fn new(reader: R, writer: W) -> Self {
+ Self {
+ reader: BufReader::new(reader),
+ writer,
+ }
+ }
+
+ pub async fn get_lint_config(&mut self) -> Result<FlatConfig, ProtocolError> {
+ match self.send_request(Request::GetLintConfig).await? {
+ Response::GetLintConfig { config } => Ok(config),
+ _ => Err(ProtocolError::UnexpectedResponse {
+ expected: "GetLintConfig",
+ }),
+ }
+ }
+
+ pub async fn get_dictionary(&mut self) -> Result<MutableDictionary, ProtocolError> {
+ match self.send_request(Request::GetDictionary).await? {
+ Response::GetDictionary { words } => {
+ let mut dictionary = MutableDictionary::new();
+ dictionary.extend_words(words.into_iter().map(|word| {
+ (
+ word.chars().collect::<Vec<_>>(),
+ DictWordMetadata::default(),
+ )
+ }));
+
+ Ok(dictionary)
+ }
+ _ => Err(ProtocolError::UnexpectedResponse {
+ expected: "GetDictionary",
+ }),
+ }
+ }
+
+ pub async fn get_dialect(&mut self) -> Result<Dialect, ProtocolError> {
+ match self.send_request(Request::GetDialect).await? {
+ Response::GetDialect { dialect } => Ok(dialect),
+ _ => Err(ProtocolError::UnexpectedResponse {
+ expected: "GetDialect",
+ }),
+ }
+ }
+
+ pub async fn get_ignored_lints(&mut self) -> Result<IgnoredLints, ProtocolError> {
+ match self.send_request(Request::GetIgnoredLints).await? {
+ Response::GetIgnoredLints { ignored_lints } => Ok(ignored_lints),
+ _ => Err(ProtocolError::UnexpectedResponse {
+ expected: "GetIgnoredLints",
+ }),
+ }
+ }
+
+ pub async fn get_integrations(
+ &mut self,
+ ) -> Result<Vec<crate::config::Integration>, ProtocolError> {
+ match self.send_request(Request::GetIntegrations).await? {
+ Response::GetIntegrations { integrations } => Ok(integrations),
+ _ => Err(ProtocolError::UnexpectedResponse {
+ expected: "GetIntegrations",
+ }),
+ }
+ }
+
+ pub async fn ignore_lint(&mut self, ignored_lints: &IgnoredLints) -> Result<(), ProtocolError> {
+ self.send_ack_request(Request::IgnoreLint {
+ ignored_lints: ignored_lints.clone(),
+ })
+ .await
+ }
+
+ pub async fn set_lint_config(&mut self, config: &FlatConfig) -> Result<(), ProtocolError> {
+ self.send_ack_request(Request::SetLintConfig {
+ config: config.clone(),
+ })
+ .await
+ }
+
+ pub async fn disable_rule(&mut self, rule_name: &str) -> Result<FlatConfig, ProtocolError> {
+ let mut config = self.get_lint_config().await?;
+ config.set_rule_enabled(rule_name, false);
+ self.set_lint_config(&config).await?;
+
+ Ok(config)
+ }
+
+ pub async fn add_to_dictionary(&mut self, word: &str) -> Result<(), ProtocolError> {
+ self.send_ack_request(Request::AddToDictionary {
+ word: word.to_string(),
+ })
+ .await
+ }
+
+ pub async fn add_integration(&mut self, bundle_id: &str) -> Result<(), ProtocolError> {
+ self.send_ack_request(Request::AddIntegration {
+ bundle_id: bundle_id.to_string(),
+ })
+ .await
+ }
+
+ pub async fn remove_integration(&mut self, bundle_id: &str) -> Result<(), ProtocolError> {
+ self.send_ack_request(Request::RemoveIntegration {
+ bundle_id: bundle_id.to_string(),
+ })
+ .await
+ }
+
+ pub async fn set_integration_enabled(
+ &mut self,
+ bundle_id: &str,
+ enabled: bool,
+ ) -> Result<(), ProtocolError> {
+ self.send_ack_request(Request::SetIntegrationEnabled {
+ bundle_id: bundle_id.to_string(),
+ enabled,
+ })
+ .await
+ }
+
+ async fn send_ack_request(&mut self, request: Request) -> Result<(), ProtocolError> {
+ match self.send_request(request).await? {
+ Response::Ack => Ok(()),
+ _ => Err(ProtocolError::UnexpectedResponse { expected: "Ack" }),
+ }
+ }
+
+ async fn send_request(&mut self, request: Request) -> Result<Response, ProtocolError> {
+ write_message(&mut self.writer, &request).await?;
+
+ let mut line = String::new();
+ if self.reader.read_line(&mut line).await? == 0 {
+ return Err(ProtocolError::UnexpectedEof);
+ }
+
+ Ok(serde_json::from_str(&line)?)
+ }
+}
+
+impl Client<Stdin, Stdout> {
+ pub fn current_process() -> Self {
+ Self::new(tokio::io::stdin(), tokio::io::stdout())
+ }
+}
diff --git a/harper-desktop/src-tauri/src/communication/error.rs b/harper-desktop/src-tauri/src/communication/error.rs
new file mode 100644
index 000000000..e22a2c179
--- /dev/null
+++ b/harper-desktop/src-tauri/src/communication/error.rs
@@ -0,0 +1,14 @@
+use thiserror::Error;
+
+/// Errors produced while framing, serializing, or exchanging protocol messages.
+#[derive(Debug, Error)]
+pub enum ProtocolError {
+ #[error("protocol io failed: {0}")]
+ Io(#[from] std::io::Error),
+ #[error("protocol JSON serialization failed: {0}")]
+ Json(#[from] serde_json::Error),
+ #[error("server closed the protocol stream before responding")]
+ UnexpectedEof,
+ #[error("unexpected response for {expected}")]
+ UnexpectedResponse { expected: &'static str },
+}
diff --git a/harper-desktop/src-tauri/src/communication/framing.rs b/harper-desktop/src-tauri/src/communication/framing.rs
new file mode 100644
index 000000000..2898a17b5
--- /dev/null
+++ b/harper-desktop/src-tauri/src/communication/framing.rs
@@ -0,0 +1,17 @@
+use serde::Serialize;
+use tokio::io::{AsyncWrite, AsyncWriteExt};
+
+use super::error::ProtocolError;
+
+pub(super) async fn write_message<W, T>(writer: &mut W, message: &T) -> Result<(), ProtocolError>
+where
+ W: AsyncWrite + Unpin,
+ T: Serialize,
+{
+ let encoded = serde_json::to_vec(message)?;
+ writer.write_all(&encoded).await?;
+ writer.write_all(b"\n").await?;
+ writer.flush().await?;
+
+ Ok(())
+}
diff --git a/harper-desktop/src-tauri/src/communication/message.rs b/harper-desktop/src-tauri/src/communication/message.rs
new file mode 100644
index 000000000..4e62d0f7d
--- /dev/null
+++ b/harper-desktop/src-tauri/src/communication/message.rs
@@ -0,0 +1,233 @@
+use crate::config::Integration;
+use harper_core::{Dialect, IgnoredLints, linting::FlatConfig};
+use serde::{Deserialize, Serialize};
+
+/// Canonical client-to-server protocol message sent by the highlighter process.
+#[derive(Debug, Clone, Serialize, Deserialize)]
+pub enum Request {
+ GetLintConfig,
+ GetDictionary,
+ GetDialect,
+ GetIgnoredLints,
+ GetIntegrations,
+ SetLintConfig { config: FlatConfig },
+ IgnoreLint { ignored_lints: IgnoredLints },
+ AddToDictionary { word: String },
+ AddIntegration { bundle_id: String },
+ RemoveIntegration { bundle_id: String },
+ SetIntegrationEnabled { bundle_id: String, enabled: bool },
+}
+
+/// Canonical server-to-client protocol message sent by the Tauri app.
+#[derive(Debug, Clone, Serialize, Deserialize)]
+pub enum Response {
+ GetLintConfig { config: FlatConfig },
+ GetDictionary { words: Vec<String> },
+ GetDialect { dialect: Dialect },
+ GetIgnoredLints { ignored_lints: IgnoredLints },
+ GetIntegrations { integrations: Vec<Integration> },
+ Ack,
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn request_serializes_as_json() {
+ let encoded = serde_json::to_string(&Request::GetLintConfig).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Request::GetLintConfig));
+ }
+
+ #[test]
+ fn ignore_lint_request_serializes_as_json() {
+ let request = Request::IgnoreLint {
+ ignored_lints: IgnoredLints::new(),
+ };
+ let encoded = serde_json::to_string(&request).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Request::IgnoreLint { .. }));
+ }
+
+ #[test]
+ fn get_dictionary_request_serializes_as_json() {
+ let encoded = serde_json::to_string(&Request::GetDictionary).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Request::GetDictionary));
+ }
+
+ #[test]
+ fn get_dialect_request_serializes_as_json() {
+ let encoded = serde_json::to_string(&Request::GetDialect).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Request::GetDialect));
+ }
+
+ #[test]
+ fn get_ignored_lints_request_serializes_as_json() {
+ let encoded = serde_json::to_string(&Request::GetIgnoredLints).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Request::GetIgnoredLints));
+ }
+
+ #[test]
+ fn get_integrations_request_serializes_as_json() {
+ let encoded = serde_json::to_string(&Request::GetIntegrations).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Request::GetIntegrations));
+ }
+
+ #[test]
+ fn set_lint_config_request_serializes_as_json() {
+ let request = Request::SetLintConfig {
+ config: FlatConfig::new_curated(),
+ };
+ let encoded = serde_json::to_string(&request).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Request::SetLintConfig { .. }));
+ }
+
+ #[test]
+ fn add_to_dictionary_request_serializes_as_json() {
+ let request = Request::AddToDictionary {
+ word: "blorple".to_string(),
+ };
+ let encoded = serde_json::to_string(&request).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(
+ decoded,
+ Request::AddToDictionary { word } if word == "blorple"
+ ));
+ }
+
+ #[test]
+ fn add_integration_request_serializes_as_json() {
+ let request = Request::AddIntegration {
+ bundle_id: "com.example.Editor".to_string(),
+ };
+ let encoded = serde_json::to_string(&request).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(
+ decoded,
+ Request::AddIntegration { bundle_id } if bundle_id == "com.example.Editor"
+ ));
+ }
+
+ #[test]
+ fn remove_integration_request_serializes_as_json() {
+ let request = Request::RemoveIntegration {
+ bundle_id: "com.example.Editor".to_string(),
+ };
+ let encoded = serde_json::to_string(&request).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(
+ decoded,
+ Request::RemoveIntegration { bundle_id } if bundle_id == "com.example.Editor"
+ ));
+ }
+
+ #[test]
+ fn set_integration_enabled_request_serializes_as_json() {
+ let request = Request::SetIntegrationEnabled {
+ bundle_id: "com.example.Editor".to_string(),
+ enabled: false,
+ };
+ let encoded = serde_json::to_string(&request).unwrap();
+ let decoded: Request = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(
+ decoded,
+ Request::SetIntegrationEnabled { bundle_id, enabled }
+ if bundle_id == "com.example.Editor" && !enabled
+ ));
+ }
+
+ #[test]
+ fn response_serializes_as_json() {
+ let response = Response::GetLintConfig {
+ config: FlatConfig::new_curated(),
+ };
+ let encoded = serde_json::to_string(&response).unwrap();
+ let decoded: Response = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Response::GetLintConfig { .. }));
+ }
+
+ #[test]
+ fn dictionary_response_serializes_as_json() {
+ let response = Response::GetDictionary {
+ words: vec!["blorple".to_string()],
+ };
+ let encoded = serde_json::to_string(&response).unwrap();
+ let decoded: Response = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Response::GetDictionary { words } if words == ["blorple"]));
+ }
+
+ #[test]
+ fn dialect_response_serializes_as_json() {
+ let response = Response::GetDialect {
+ dialect: Dialect::British,
+ };
+ let encoded = serde_json::to_string(&response).unwrap();
+ let decoded: Response = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(
+ decoded,
+ Response::GetDialect {
+ dialect: Dialect::British
+ }
+ ));
+ }
+
+ #[test]
+ fn ignored_lints_response_serializes_as_json() {
+ let response = Response::GetIgnoredLints {
+ ignored_lints: IgnoredLints::new(),
+ };
+ let encoded = serde_json::to_string(&response).unwrap();
+ let decoded: Response = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Response::GetIgnoredLints { .. }));
+ }
+
+ #[test]
+ fn integrations_response_serializes_as_json() {
+ let response = Response::GetIntegrations {
+ integrations: vec![Integration {
+ bundle_id: "com.example.Editor".to_string(),
+ enabled: true,
+ }],
+ };
+ let encoded = serde_json::to_string(&response).unwrap();
+ let decoded: Response = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(
+ decoded,
+ Response::GetIntegrations { integrations }
+ if integrations == vec![Integration {
+ bundle_id: "com.example.Editor".to_string(),
+ enabled: true,
+ }]
+ ));
+ }
+
+ #[test]
+ fn ack_response_serializes_as_json() {
+ let encoded = serde_json::to_string(&Response::Ack).unwrap();
+ let decoded: Response = serde_json::from_str(&encoded).unwrap();
+
+ assert!(matches!(decoded, Response::Ack));
+ }
+}
diff --git a/harper-desktop/src-tauri/src/communication/mod.rs b/harper-desktop/src-tauri/src/communication/mod.rs
new file mode 100644
index 000000000..4da75beb0
--- /dev/null
+++ b/harper-desktop/src-tauri/src/communication/mod.rs
@@ -0,0 +1,350 @@
+mod client;
+mod error;
+mod framing;
+mod message;
+mod server;
+
+pub use client::Client;
+pub use error::ProtocolError;
+pub use message::{Request, Response};
+pub use server::Server;
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use crate::config::Config;
+ use harper_core::{
+ Dialect, DictWordMetadata, Document, IgnoredLints, linting::FlatConfig, linting::Lint,
+ spell::Dictionary,
+ };
+ use std::sync::Arc;
+ use tokio::io::{duplex, empty, sink};
+ use tokio::sync::Mutex;
+
+ #[tokio::test]
+ async fn client_receives_lint_config_from_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let expected = FlatConfig::new_curated();
+ let mut config = Config::new();
+ config.lint_config = expected.clone();
+ let config = Arc::new(Mutex::new(config));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(server_request_reader, server_response_writer, config);
+
+ let (config, request) = tokio::join!(client.get_lint_config(), server.receive_request());
+
+ assert_eq!(config.unwrap(), expected);
+ assert!(matches!(request.unwrap(), Some(Request::GetLintConfig)));
+ }
+
+ #[tokio::test]
+ async fn client_receives_dictionary_from_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let mut config = Config::new();
+ config
+ .mutable_dictionary
+ .append_word_str("blorple", DictWordMetadata::default());
+ let config = Arc::new(Mutex::new(config));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(server_request_reader, server_response_writer, config);
+
+ let (dictionary, request) = tokio::join!(client.get_dictionary(), server.receive_request());
+
+ assert!(dictionary.unwrap().contains_word_str("blorple"));
+ assert!(matches!(request.unwrap(), Some(Request::GetDictionary)));
+ }
+
+ #[tokio::test]
+ async fn client_receives_dialect_from_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let mut config = Config::new();
+ config.dialect = Dialect::British;
+ let config = Arc::new(Mutex::new(config));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(server_request_reader, server_response_writer, config);
+
+ let (dialect, request) = tokio::join!(client.get_dialect(), server.receive_request());
+
+ assert_eq!(dialect.unwrap(), Dialect::British);
+ assert!(matches!(request.unwrap(), Some(Request::GetDialect)));
+ }
+
+ #[tokio::test]
+ async fn client_receives_ignored_lints_from_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let document = Document::new_markdown_default_curated("A test document.");
+ let lint = Lint::default();
+ let mut config = Config::new();
+ config.ignored_lints.ignore_lint(&lint, &document);
+ let config = Arc::new(Mutex::new(config));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(server_request_reader, server_response_writer, config);
+
+ let (ignored_lints, request) =
+ tokio::join!(client.get_ignored_lints(), server.receive_request());
+
+ assert!(ignored_lints.unwrap().is_ignored(&lint, &document));
+ assert!(matches!(request.unwrap(), Some(Request::GetIgnoredLints)));
+ }
+
+ #[tokio::test]
+ async fn client_receives_integrations_from_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let mut config = Config::new();
+ config.integrations = vec![crate::config::Integration {
+ bundle_id: "com.example.Editor".to_string(),
+ enabled: true,
+ }];
+ let config = Arc::new(Mutex::new(config));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(server_request_reader, server_response_writer, config);
+
+ let (integrations, request) =
+ tokio::join!(client.get_integrations(), server.receive_request());
+
+ assert_eq!(
+ integrations.unwrap(),
+ vec![crate::config::Integration {
+ bundle_id: "com.example.Editor".to_string(),
+ enabled: true,
+ }]
+ );
+ assert!(matches!(request.unwrap(), Some(Request::GetIntegrations)));
+ }
+
+ #[tokio::test]
+ async fn client_can_merge_ignored_lints_on_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let document = Document::new_markdown_default_curated("A test document.");
+ let lint = Lint::default();
+ let mut ignored_lints = IgnoredLints::new();
+ ignored_lints.ignore_lint(&lint, &document);
+ let config = Arc::new(Mutex::new(Config::new()));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(
+ server_request_reader,
+ server_response_writer,
+ config.clone(),
+ );
+
+ let (ack, request) =
+ tokio::join!(client.ignore_lint(&ignored_lints), server.receive_request());
+
+ assert!(ack.is_ok());
+ assert!(matches!(request.unwrap(), Some(Request::IgnoreLint { .. })));
+ assert!(
+ config
+ .lock()
+ .await
+ .ignored_lints
+ .is_ignored(&lint, &document)
+ );
+ }
+
+ #[tokio::test]
+ async fn client_can_set_lint_config_on_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let config = Arc::new(Mutex::new(Config::new()));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(
+ server_request_reader,
+ server_response_writer,
+ config.clone(),
+ );
+ let mut expected = FlatConfig::new_curated();
+ expected.set_rule_enabled("SpellCheck", false);
+
+ let (ack, request) =
+ tokio::join!(client.set_lint_config(&expected), server.receive_request());
+
+ assert!(ack.is_ok());
+ assert!(matches!(
+ request.unwrap(),
+ Some(Request::SetLintConfig { .. })
+ ));
+ assert_eq!(config.lock().await.lint_config, expected);
+ }
+
+ #[tokio::test]
+ async fn client_can_disable_rule_on_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let config = Arc::new(Mutex::new(Config::new()));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(
+ server_request_reader,
+ server_response_writer,
+ config.clone(),
+ );
+
+ let disable = client.disable_rule("SpellCheck");
+ let receive_requests = async {
+ let first = server.receive_request().await;
+ let second = server.receive_request().await;
+
+ (first, second)
+ };
+ let (disable, (first_request, second_request)) = tokio::join!(disable, receive_requests);
+
+ let updated = disable.unwrap();
+ assert!(!updated.is_rule_enabled("SpellCheck"));
+ assert!(matches!(
+ first_request.unwrap(),
+ Some(Request::GetLintConfig)
+ ));
+ assert!(matches!(
+ second_request.unwrap(),
+ Some(Request::SetLintConfig { .. })
+ ));
+ assert!(
+ !config
+ .lock()
+ .await
+ .lint_config
+ .is_rule_enabled("SpellCheck")
+ );
+ }
+
+ #[tokio::test]
+ async fn client_can_add_word_to_server_dictionary() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let config = Arc::new(Mutex::new(Config::new()));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(
+ server_request_reader,
+ server_response_writer,
+ config.clone(),
+ );
+
+ let (ack, request) = tokio::join!(
+ client.add_to_dictionary("blorple"),
+ server.receive_request()
+ );
+
+ assert!(ack.is_ok());
+ assert!(matches!(
+ request.unwrap(),
+ Some(Request::AddToDictionary { word }) if word == "blorple"
+ ));
+ assert!(
+ config
+ .lock()
+ .await
+ .mutable_dictionary
+ .contains_word_str("blorple")
+ );
+ }
+
+ #[tokio::test]
+ async fn client_can_add_integration_on_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let config = Arc::new(Mutex::new(Config::new()));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(
+ server_request_reader,
+ server_response_writer,
+ config.clone(),
+ );
+
+ let (ack, request) = tokio::join!(
+ client.add_integration("com.example.Editor"),
+ server.receive_request()
+ );
+
+ assert!(ack.is_ok());
+ assert!(matches!(
+ request.unwrap(),
+ Some(Request::AddIntegration { bundle_id }) if bundle_id == "com.example.Editor"
+ ));
+ assert!(
+ config
+ .lock()
+ .await
+ .is_integration_enabled("com.example.Editor")
+ );
+ }
+
+ #[tokio::test]
+ async fn client_can_remove_integration_on_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let mut config = Config::new();
+ config.add_integration("com.example.Editor".to_string());
+ let config = Arc::new(Mutex::new(config));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(
+ server_request_reader,
+ server_response_writer,
+ config.clone(),
+ );
+
+ let (ack, request) = tokio::join!(
+ client.remove_integration("com.example.Editor"),
+ server.receive_request()
+ );
+
+ assert!(ack.is_ok());
+ assert!(matches!(
+ request.unwrap(),
+ Some(Request::RemoveIntegration { bundle_id }) if bundle_id == "com.example.Editor"
+ ));
+ assert!(
+ !config
+ .lock()
+ .await
+ .integrations
+ .iter()
+ .any(|integration| integration.bundle_id == "com.example.Editor")
+ );
+ }
+
+ #[tokio::test]
+ async fn client_can_set_integration_enabled_on_server() {
+ let (client_request_writer, server_request_reader) = duplex(16_384);
+ let (server_response_writer, client_response_reader) = duplex(16_384);
+ let mut config = Config::new();
+ config.add_integration("com.example.Editor".to_string());
+ let config = Arc::new(Mutex::new(config));
+ let mut client = Client::new(client_response_reader, client_request_writer);
+ let mut server = Server::new(
+ server_request_reader,
+ server_response_writer,
+ config.clone(),
+ );
+
+ let (ack, request) = tokio::join!(
+ client.set_integration_enabled("com.example.Editor", false),
+ server.receive_request()
+ );
+
+ assert!(ack.is_ok());
+ assert!(matches!(
+ request.unwrap(),
+ Some(Request::SetIntegrationEnabled { bundle_id, enabled })
+ if bundle_id == "com.example.Editor" && !enabled
+ ));
+ assert!(
+ !config
+ .lock()
+ .await
+ .is_integration_enabled("com.example.Editor")
+ );
+ }
+
+ #[tokio::test]
+ async fn server_returns_none_on_eof() {
+ let config = Arc::new(Mutex::new(Config::new()));
+ let mut server = Server::new(empty(), sink(), config);
+
+ assert!(server.receive_request().await.unwrap().is_none());
+ }
+}
diff --git a/harper-desktop/src-tauri/src/communication/server.rs b/harper-desktop/src-tauri/src/communication/server.rs
new file mode 100644
index 000000000..7bd96b811
--- /dev/null
+++ b/harper-desktop/src-tauri/src/communication/server.rs
@@ -0,0 +1,132 @@
+use crate::config::Config;
+use harper_core::{DictWordMetadata, spell::Dictionary};
+use std::sync::Arc;
+use tokio::io::{AsyncBufReadExt, AsyncRead, AsyncWrite, BufReader};
+use tokio::sync::Mutex;
+
+use super::error::ProtocolError;
+use super::framing::write_message;
+use super::message::{Request, Response};
+
+/// Tauri-side protocol endpoint that owns shared state and responds to highlighter requests.
+pub struct Server<R, W> {
+ reader: BufReader<R>,
+ writer: W,
+ config: Arc<Mutex<Config>>,
+}
+
+impl<R, W> Server<R, W>
+where
+ R: AsyncRead + Unpin,
+ W: AsyncWrite + Unpin,
+{
+ pub fn new(reader: R, writer: W, config: Arc<Mutex<Config>>) -> Self {
+ Self {
+ reader: BufReader::new(reader),
+ writer,
+ config,
+ }
+ }
+
+ pub async fn receive_request(&mut self) -> Result<Option<Request>, ProtocolError> {
+ let mut line = String::new();
+ if self.reader.read_line(&mut line).await? == 0 {
+ return Ok(None);
+ }
+
+ let request = serde_json::from_str(&line)?;
+ let response = self.handle_request(&request).await;
+ write_message(&mut self.writer, &response).await?;
+
+ Ok(Some(request))
+ }
+
+ async fn handle_request(&self, request: &Request) -> Response {
+ match request {
+ Request::GetLintConfig => Response::GetLintConfig {
+ config: self.config.lock().await.lint_config.clone(),
+ },
+ Request::GetDictionary => Response::GetDictionary {
+ words: self
+ .config
+ .lock()
+ .await
+ .mutable_dictionary
+ .words_iter()
+ .map(|word| word.iter().collect())
+ .collect(),
+ },
+ Request::GetDialect => Response::GetDialect {
+ dialect: self.config.lock().await.dialect,
+ },
+ Request::GetIgnoredLints => Response::GetIgnoredLints {
+ ignored_lints: self.config.lock().await.ignored_lints.clone(),
+ },
+ Request::GetIntegrations => Response::GetIntegrations {
+ integrations: self.config.lock().await.integrations.clone(),
+ },
+ Request::SetLintConfig { config } => {
+ let mut stored_config = self.config.lock().await;
+ stored_config.lint_config = config.clone();
+
+ if let Err(error) = stored_config.save_to_system().await {
+ eprintln!("failed to save config: {error}");
+ }
+
+ Response::Ack
+ }
+ Request::IgnoreLint { ignored_lints } => {
+ let mut config = self.config.lock().await;
+ config.ignored_lints.append(ignored_lints.clone());
+
+ if let Err(error) = config.save_to_system().await {
+ eprintln!("failed to save config: {error}");
+ }
+
+ Response::Ack
+ }
+ Request::AddToDictionary { word } => {
+ let mut config = self.config.lock().await;
+ config
+ .mutable_dictionary
+ .append_word_str(word, DictWordMetadata::default());
+
+ if let Err(error) = config.save_to_system().await {
+ eprintln!("failed to save config: {error}");
+ }
+
+ Response::Ack
+ }
+ Request::AddIntegration { bundle_id } => {
+ let mut config = self.config.lock().await;
+ config.add_integration(bundle_id.clone());
+
+ if let Err(error) = config.save_to_system().await {
+ eprintln!("failed to save config: {error}");
+ }
+
+ Response::Ack
+ }
+ Request::RemoveIntegration { bundle_id } => {
+ let mut config = self.config.lock().await;
+ config.remove_integration(bundle_id);
+
+ if let Err(error) = config.save_to_system().await {
+ eprintln!("failed to save config: {error}");
+ }
+
+ Response::Ack
+ }
+ Request::SetIntegrationEnabled { bundle_id, enabled } => {
+ let mut config = self.config.lock().await;
+ config.set_integration_enabled(bundle_id, *enabled);
+
+ if let Err(error) = config.save_to_system().await {
+ eprintln!("failed to save config: {error}");
+ }
+
+ Response::Ack
+ }
+ }
+ }
+}
diff --git a/harper-desktop/src-tauri/src/config.rs b/harper-desktop/src-tauri/src/config.rs
new file mode 100644
index 000000000..3ce628ada
--- /dev/null
+++ b/harper-desktop/src-tauri/src/config.rs
@@ -0,0 +1,364 @@
+use harper_core::{
+ Dialect, IgnoredLints,
+ linting::{FlatConfig, LintGroup},
+ spell::{FstDictionary, MergedDictionary, MutableDictionary},
+};
+use harper_dictionary_wordlist::{load_dict, save_dict};
+use serde::{
+ Deserialize, Serialize,
+ de::{DeserializeOwned, Error},
+};
+use std::{fs, io, path::PathBuf, sync::Arc};
+use thiserror::Error;
+
+#[derive(Debug, Error)]
+pub enum ConfigError {
+ #[error("system config directory is unavailable")]
+ ConfigDirUnavailable,
+ #[error("failed to serialize or deserialize config")]
+ Serde(#[from] serde_json::Error),
+ #[error("failed to access config file")]
+ Io(#[from] io::Error),
+}
+
+/// User-controlled app state needed by Tauri commands and the highlighter process.
+pub struct Config {
+ pub mutable_dictionary: MutableDictionary,
+ pub dialect: Dialect,
+ pub ignored_lints: IgnoredLints,
+ pub lint_config: FlatConfig,
+ pub integrations: Vec<Integration>,
+}
+
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
+pub struct Integration {
+ pub bundle_id: String,
+ pub enabled: bool,
+}
+
+impl Config {
+ pub fn new() -> Self {
+ Self {
+ mutable_dictionary: MutableDictionary::new(),
+ dialect: Dialect::American,
+ ignored_lints: IgnoredLints::new(),
+ lint_config: FlatConfig::new_curated(),
+ integrations: Self::curated_integrations(),
+ }
+ }
+
+ pub fn curated_integrations() -> Vec<Integration> {
+ [
+ "com.apple.TextEdit",
+ "com.apple.mail",
+ "com.apple.MobileSMS",
+ "com.apple.Notes",
+ ]
+ .into_iter()
+ .map(|bundle_id| Integration {
+ bundle_id: bundle_id.to_string(),
+ enabled: true,
+ })
+ .collect()
+ }
+
+ pub fn is_integration_enabled(&self, bundle_id: &str) -> bool {
+ Self::is_integration_enabled_in(&self.integrations, bundle_id)
+ }
+
+ pub fn is_integration_enabled_in(integrations: &[Integration], bundle_id: &str) -> bool {
+ integrations
+ .iter()
+ .any(|integration| integration.bundle_id == bundle_id && integration.enabled)
+ }
+
+ pub fn add_integration(&mut self, bundle_id: String) {
+ let bundle_id = bundle_id.trim();
+ if bundle_id.is_empty()
+ || self
+ .integrations
+ .iter()
+ .any(|item| item.bundle_id == bundle_id)
+ {
+ return;
+ }
+
+ self.integrations.push(Integration {
+ bundle_id: bundle_id.to_string(),
+ enabled: true,
+ });
+ self.integrations
+ .sort_by(|a, b| a.bundle_id.cmp(&b.bundle_id));
+ }
+
+ pub fn remove_integration(&mut self, bundle_id: &str) {
+ self.integrations
+ .retain(|integration| integration.bundle_id != bundle_id);
+ }
+
+ pub fn set_integration_enabled(&mut self, bundle_id: &str, enabled: bool) {
+ if let Some(integration) = self
+ .integrations
+ .iter_mut()
+ .find(|integration| integration.bundle_id == bundle_id)
+ {
+ integration.enabled = enabled;
+ }
+ }
+
+ pub async fn save_to_system(&self) -> Result<(), ConfigError> {
+ let folder_path = Self::folder_path().ok_or(ConfigError::ConfigDirUnavailable)?;
+ let main_path = Self::main_path().ok_or(ConfigError::ConfigDirUnavailable)?;
+ let dictionary_path = Self::dictionary_path().ok_or(ConfigError::ConfigDirUnavailable)?;
+
+ fs::create_dir_all(folder_path)?;
+ fs::write(main_path, self.serialize_main()?)?;
+ save_dict(dictionary_path, &self.mutable_dictionary).await?;
+
+ Ok(())
+ }
+
+ pub async fn load_from_system() -> Result<Self, ConfigError> {
+ let main_path = Self::main_path().ok_or(ConfigError::ConfigDirUnavailable)?;
+ let dictionary_path = Self::dictionary_path().ok_or(ConfigError::ConfigDirUnavailable)?;
+ let serialized = fs::read_to_string(main_path)?;
+ let mut config = Self::deserialize_main(&serialized)?;
+ config.lint_config.fill_with_curated();
+ config.mutable_dictionary = load_dict(dictionary_path, config.dialect).await?;
+
+ Ok(config)
+ }
+
+ pub fn dictionary_from_user_dictionary(
+ user_dictionary: MutableDictionary,
+ ) -> Arc<MergedDictionary> {
+ let mut dictionary = MergedDictionary::new();
+ dictionary.add_dictionary(FstDictionary::curated());
+ dictionary.add_dictionary(Arc::new(user_dictionary));
+
+ Arc::new(dictionary)
+ }
+
+ pub fn create_dictionary(&self) -> Arc<MergedDictionary> {
+ Self::dictionary_from_user_dictionary(self.mutable_dictionary.clone())
+ }
+
+ pub fn create_linter(&self) -> LintGroup {
+ LintGroup::new_curated(self.create_dictionary(), self.dialect)
+ .with_lint_config(self.lint_config.clone())
+ }
+
+ #[allow(dead_code)]
+ fn folder_path() -> Option<PathBuf> {
+ dirs::config_dir().map(|path| path.join("harper-desktop"))
+ }
+
+ #[allow(dead_code)]
+ fn main_path() -> Option<PathBuf> {
+ Self::folder_path().map(|path| path.join("config.json"))
+ }
+
+ #[allow(dead_code)]
+ fn dictionary_path() -> Option<PathBuf> {
+ Self::folder_path().map(|path| path.join("dictionary.txt"))
+ }
+
+ #[allow(dead_code)]
+ fn serialize_main(&self) -> serde_json::Result<String> {
+ serde_json::to_string(&serde_json::json!({
+ "dialect": &self.dialect,
+ "ignored_lints": &self.ignored_lints,
+ "lint_config": &self.lint_config,
+ "integrations": &self.integrations,
+ }))
+ }
+
+ #[allow(dead_code)]
+ fn deserialize_main(serialized: &str) -> serde_json::Result<Self> {
+ let mut value = serde_json::from_str::<serde_json::Value>(serialized)?;
+ let object = value
+ .as_object_mut()
+ .ok_or_else(|| serde_json::Error::custom("config must be a JSON object"))?;
+
+ Ok(Self {
+ mutable_dictionary: MutableDictionary::new(),
+ dialect: deserialize_field(object, "dialect")?,
+ ignored_lints: deserialize_field(object, "ignored_lints")?,
+ lint_config: deserialize_field(object, "lint_config")?,
+ integrations: deserialize_optional_field(object, "integrations")?
+ .unwrap_or_else(Self::curated_integrations),
+ })
+ }
+}
+
+#[allow(dead_code)]
+fn deserialize_field<T>(
+ object: &mut serde_json::Map<String, serde_json::Value>,
+ field: &'static str,
+) -> serde_json::Result<T>
+where
+ T: DeserializeOwned,
+{
+ let value = object
+ .remove(field)
+ .ok_or_else(|| serde_json::Error::custom(format!("missing config field `{field}`")))?;
+
+ serde_json::from_value(value)
+}
+
+#[allow(dead_code)]
+fn deserialize_optional_field<T>(
+ object: &mut serde_json::Map<String, serde_json::Value>,
+ field: &'static str,
+) -> serde_json::Result<Option<T>>
+where
+ T: DeserializeOwned,
+{
+ let Some(value) = object.remove(field) else {
+ return Ok(None);
+ };
+
+ serde_json::from_value(value).map(Some)
+}
+
+impl Default for Config {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::{Config, Integration};
+ use harper_core::DictWordMetadata;
+
+ #[test]
+ fn serialize_main_excludes_dictionary_word_list() {
+ let mut config = Config::new();
+ config
+ .mutable_dictionary
+ .append_word_str("blorple", DictWordMetadata::default());
+
+ let serialized = config.serialize_main().unwrap();
+
+ assert!(!serialized.contains("mutable_dictionary"));
+ assert!(!serialized.contains("blorple"));
+ assert!(serialized.contains("dialect"));
+ assert!(serialized.contains("ignored_lints"));
+ assert!(serialized.contains("lint_config"));
+ assert!(serialized.contains("integrations"));
+ }
+
+ #[test]
+ fn deserialize_main_restores_main_serialized_fields() {
+ let mut config = Config::new();
+ config
+ .mutable_dictionary
+ .append_word_str("blorple", DictWordMetadata::default());
+ let serialized = config.serialize_main().unwrap();
+
+ let deserialized = Config::deserialize_main(&serialized).unwrap();
+
+ assert_eq!(deserialized.dialect, config.dialect);
+ assert_eq!(deserialized.lint_config, config.lint_config);
+ assert_eq!(deserialized.integrations, config.integrations);
+ assert_eq!(
+ serde_json::from_str::<serde_json::Value>(&deserialized.serialize_main().unwrap())
+ .unwrap(),
+ serde_json::from_str::<serde_json::Value>(&serialized).unwrap()
+ );
+ }
+
+ #[test]
+ fn new_uses_curated_integrations() {
+ let config = Config::new();
+
+ assert_eq!(config.integrations, Config::curated_integrations());
+ assert!(config.is_integration_enabled("com.apple.TextEdit"));
+ assert!(config.is_integration_enabled("com.apple.mail"));
+ assert!(config.is_integration_enabled("com.apple.MobileSMS"));
+ assert!(config.is_integration_enabled("com.apple.Notes"));
+ }
+
+ #[test]
+ fn deserialize_main_uses_curated_integrations_when_missing() {
+ let config = Config::new();
+ let mut value =
+ serde_json::from_str::<serde_json::Value>(&config.serialize_main().unwrap()).unwrap();
+ value.as_object_mut().unwrap().remove("integrations");
+
+ let deserialized = Config::deserialize_main(&value.to_string()).unwrap();
+
+ assert_eq!(deserialized.integrations, Config::curated_integrations());
+ }
+
+ #[test]
+ fn deserialize_main_preserves_integrations() {
+ let mut config = Config::new();
+ config.integrations = vec![Integration {
+ bundle_id: "com.example.Editor".to_string(),
+ enabled: false,
+ }];
+
+ let deserialized = Config::deserialize_main(&config.serialize_main().unwrap()).unwrap();
+
+ assert_eq!(
+ deserialized.integrations,
+ vec![Integration {
+ bundle_id: "com.example.Editor".to_string(),
+ enabled: false,
+ }]
+ );
+ }
+
+ #[test]
+ fn integration_helpers_add_remove_enable_and_check() {
+ let mut config = Config::new();
+
+ config.add_integration(" com.example.Editor ".to_string());
+ config.add_integration("com.example.Editor".to_string());
+ assert!(config.is_integration_enabled("com.example.Editor"));
+ assert_eq!(
+ config
+ .integrations
+ .iter()
+ .filter(|integration| integration.bundle_id == "com.example.Editor")
+ .count(),
+ 1
+ );
+
+ config.set_integration_enabled("com.example.Editor", false);
+ assert!(!config.is_integration_enabled("com.example.Editor"));
+
+ config.remove_integration("com.example.Editor");
+
+ assert!(
+ !config
+ .integrations
+ .iter()
+ .any(|integration| integration.bundle_id == "com.example.Editor")
+ );
+ }
+
+ #[test]
+ fn main_path_points_to_harper_desktop_config_file() {
+ let path = Config::main_path().unwrap();
+
+ assert_eq!(path.file_name().unwrap(), "config.json");
+ assert_eq!(
+ path.parent().unwrap().file_name().unwrap(),
+ "harper-desktop"
+ );
+ }
+
+ #[test]
+ fn dictionary_path_points_to_harper_desktop_dictionary_file() {
+ let path = Config::dictionary_path().unwrap();
+
+ assert_eq!(path.file_name().unwrap(), "dictionary.txt");
+ assert_eq!(
+ path.parent().unwrap().file_name().unwrap(),
+ "harper-desktop"
+ );
+ }
+}
diff --git a/harper-desktop/src-tauri/src/highlighter/error.rs b/harper-desktop/src-tauri/src/highlighter/error.rs
new file mode 100644
index 000000000..cae77b295
--- /dev/null
+++ b/harper-desktop/src-tauri/src/highlighter/error.rs
@@ -0,0 +1,14 @@
+use thiserror::Error;
+use winit::error::{EventLoopError, ExternalError, OsError};
+
+#[derive(Debug, Error)]
+pub enum Error {
+ #[error("highlighter event loop failed: {0}")]
+ EventLoop(#[from] EventLoopError),
+ #[error("highlighter window operation failed: {0}")]
+ External(#[from] ExternalError),
+ #[error("highlighter window creation failed: {0}")]
+ Window(#[from] OsError),
+ #[error("highlighter renderer failed: {0}")]
+ Renderer(#[from] egui_wgpu::WgpuError),
+}
diff --git a/harper-desktop/src-tauri/src/highlighter/mod.rs b/harper-desktop/src-tauri/src/highlighter/mod.rs
new file mode 100644
index 000000000..422f836ab
--- /dev/null
+++ b/harper-desktop/src-tauri/src/highlighter/mod.rs
@@ -0,0 +1,89 @@
+mod error;
+mod render_state;
+mod window;
+mod window_manager;
+
+use std::collections::BTreeMap;
+use std::time::Duration;
+
+pub use error::Error;
+use window_manager::{WindowManager, WindowManagerCallbacks, WindowManagerIntervals};
+
+use harper_core::{Document, linting::Lint};
+
+use crate::os_broker::{LintText, OsBroker};
+use crate::rect::ActionableLint;
+
+const DEFAULT_READ_INTERVAL: Duration = Duration::from_millis(100);
+
+type IgnoreLint = Box<dyn FnMut(&Lint, &Document)>;
+type AddToDictionary = Box<dyn FnMut(&str)>;
+type DisableRule = Box<dyn FnMut(&str)>;
+type RefreshConfig = Box<dyn FnMut()>;
+
+/// Public entry point for the screen highlighter system.
+///
+/// `Highlighter` owns the shared egui context and delegates native window/event-loop work to the
+/// window manager. Keeping this as the top-level type gives future callers one place to configure
+/// or update highlighter state without depending on the windowing implementation.
+pub struct Highlighter {
+ context: egui::Context,
+ window_manager: WindowManager,
+}
+
+impl Highlighter {
+ pub fn new(
+ os_broker: impl OsBroker + 'static,
+ lint_text: impl FnMut(&str) -> BTreeMap<String, Vec<Lint>> + 'static,
+ ignore_lint: impl FnMut(&Lint, &Document) + 'static,
+ add_to_dictionary: impl FnMut(&str) + 'static,
+ disable_rule: impl FnMut(&str) + 'static,
+ refresh_config: impl FnMut() + 'static,
+ ) -> Result<Self, Error> {
+ let context = egui::Context::default();
+ let lint_text: LintText = Box::new(lint_text);
+ let ignore_lint: IgnoreLint = Box::new(ignore_lint);
+ let add_to_dictionary: AddToDictionary = Box::new(add_to_dictionary);
+ let disable_rule: DisableRule = Box::new(disable_rule);
+ let refresh_config: RefreshConfig = Box::new(refresh_config);
+
+ Ok(Self {
+ window_manager: WindowManager::new(
+ context.clone(),
+ Box::new(os_broker),
+ WindowManagerCallbacks {
+ lint_text,
+ ignore_lint,
+ add_to_dictionary,
+ disable_rule,
+ refresh_config,
+ },
+ WindowManagerIntervals {
+ read: DEFAULT_READ_INTERVAL,
+ config_poll: Duration::from_secs(1),
+ },
+ )?,
+ context,
+ })
+ }
+
+ pub fn with_read_interval(mut self, read_interval: Duration) -> Self {
+ self.window_manager.set_read_interval(read_interval);
+ self
+ }
+
+ pub fn run_window_for_each_monitor(self) -> Result<(), Error> {
+ let Self {
+ context,
+ window_manager,
+ } = self;
+
+ drop(context);
+
+ window_manager.run_window_for_each_monitor()
+ }
+
+ pub fn set_rects(&mut self, rects: Vec<ActionableLint>) {
+ self.window_manager.set_rects(rects);
+ }
+}
diff --git a/harper-desktop/src-tauri/src/highlighter/render_state.rs b/harper-desktop/src-tauri/src/highlighter/render_state.rs
new file mode 100644
index 000000000..737f54650
--- /dev/null
+++ b/harper-desktop/src-tauri/src/highlighter/render_state.rs
@@ -0,0 +1,764 @@
+use egui_commonmark::{CommonMarkCache, CommonMarkViewer};
+use harper_core::{
+ Document,
+ linting::{Lint, LintKind, Suggestion},
+};
+
+use super::{AddToDictionary, DisableRule, IgnoreLint};
+use crate::{
+ lint_kind_color::lint_kind_color,
+ rect::{ActionableLint, Rect},
+};
+
+const CARD_WIDTH: f32 = 440.0;
+const CARD_HEIGHT: f32 = 178.0;
+const CARD_OFFSET_Y: f32 = 8.0;
+const HEADER_HEIGHT: f32 = 46.0;
+const FOOTER_HEIGHT: f32 = 43.0;
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum HitTarget {
+ Lint(usize),
+ Popup,
+ None,
+}
+
+enum LintCardAction {
+ Close,
+ ApplySuggestion(Suggestion),
+ IgnoreLint,
+ AddToDictionary,
+ DisableRule,
+}
+
+#[derive(Debug, Clone, Copy)]
+struct PopupStyle {
+ color: egui::Color32,
+ background: egui::Color32,
+ foreground: egui::Color32,
+}
+
+#[derive(Debug, Clone, Copy)]
+enum Glyph {
+ Close,
+ Settings,
+ Disable,
+ Plus,
+}
+
+/// Stores highlighter-specific drawing state and renders it into an egui frame.
+///
+/// `Window` owns the native window and GPU plumbing; `RenderState` owns the content we want to draw
+/// into that plumbing. This keeps future highlight rectangles, styling, and animation state out of
+/// the platform/rendering infrastructure.
+pub struct RenderState {
+ /// Lints with their screen-space bounds, used to draw all highlights and resolve hit tests.
+ rects: Vec<ActionableLint>,
+
+ /// Index of the lint whose suggestion popup is currently visible.
+ ///
+ /// `None` means no popup should be rendered.
+ highlighted_lint: Option<usize>,
+
+ /// Cache for markdown-rendered lint messages so popup redraws do not repeatedly rebuild markdown
+ /// resources from scratch.
+ markdown_cache: CommonMarkCache,
+
+ /// Called when the user dismisses a lint so app-level ignored-lint state can be updated.
+ ignore_lint: IgnoreLint,
+
+ /// Called when the user adds a spelling lint's source text to the local dictionary.
+ add_to_dictionary: AddToDictionary,
+
+ /// Called when the user disables the rule that produced the selected lint.
+ disable_rule: DisableRule,
+}
+
+impl RenderState {
+ /// Creates render state through `set_rects` so initial lint data gets the same stale-popup guard
+ /// used by later accessibility refreshes.
+ pub fn new(
+ rects: Vec<ActionableLint>,
+ ignore_lint: IgnoreLint,
+ add_to_dictionary: AddToDictionary,
+ disable_rule: DisableRule,
+ ) -> Self {
+ let mut state = Self {
+ rects: Vec::new(),
+ highlighted_lint: None,
+ markdown_cache: CommonMarkCache::default(),
+ ignore_lint,
+ add_to_dictionary,
+ disable_rule,
+ };
+ state.set_rects(rects);
+ state
+ }
+
+ /// Replaces the accessibility-derived lint geometry while preventing a popup from pointing at a
+ /// lint index that no longer exists after the latest read.
+ pub fn set_rects(&mut self, rects: Vec<ActionableLint>) {
+ self.rects = rects;
+
+ if self
+ .highlighted_lint
+ .is_some_and(|index| index >= self.rects.len())
+ {
+ self.highlighted_lint = None;
+ }
+ }
+
+ /// Updates which lint owns the suggestion popup without exposing render-state internals.
+ ///
+ /// Window/input code decides what the user interacted with, while `RenderState` owns the popup
+ /// selection. Filtering invalid indexes here keeps stale cursor state from selecting a lint that
+ /// disappeared after the latest accessibility read.
+ pub fn set_highlighted_lint(&mut self, highlighted_lint: Option<usize>) {
+ self.highlighted_lint = highlighted_lint.filter(|index| *index < self.rects.len());
+ }
+
+ /// Centralizes the close behavior so the popup close button only has to clear the selected lint.
+ pub fn close_popup(&mut self) {
+ self.highlighted_lint = None;
+ }
+
+ /// Finds the interactive highlighter region under a screen-space cursor position.
+ ///
+ /// Cursor polling lives outside the renderer, but hit-testing belongs next to the rectangles and
+ /// popup geometry being rendered so both paths use the same layout contract.
+ pub fn hit_target_at_pos(&self, pos: egui::Pos2) -> HitTarget {
+ if self.popup_rect().is_some_and(|rect| rect.contains(pos)) {
+ return HitTarget::Popup;
+ }
+
+ self.rects
+ .iter()
+ .position(|positioned_lint| rect_bounds(&positioned_lint.rect).contains(pos))
+ .map_or(HitTarget::None, HitTarget::Lint)
+ }
+
+ /// Computes popup hit-test bounds from our layout contract instead of waiting for egui to report
+ /// rendered bounds, which keeps hit-testing available before the next render pass completes.
+ pub fn popup_rect(&self) -> Option<egui::Rect> {
+ self.highlighted_lint
+ .and_then(|index| self.rects.get(index))
+ .map(|positioned_lint| popup_rect_for_lint(&positioned_lint.rect))
+ }
+
+ /// Draws highlights and the active popup from the same state used by hit-testing so visible
+ /// regions and clickable regions do not drift apart.
+ pub fn render(&mut self, ui: &mut egui::Ui) {
+ for positioned_lint in &self.rects {
+ draw_highlight(ui, &positioned_lint.rect, &positioned_lint.lint);
+ }
+
+ if let Some(index) = self.highlighted_lint
+ && let Some(positioned_lint) = self.rects.get(index)
+ {
+ let rect = positioned_lint.rect;
+ let lint = positioned_lint.lint.clone();
+ let source_text = positioned_lint.source_text.clone();
+
+ match render_lint_card(ui, &rect, &lint, &source_text, &mut self.markdown_cache) {
+ Some(LintCardAction::Close) => self.close_popup(),
+ Some(LintCardAction::ApplySuggestion(suggestion)) => {
+ if let Some(actionable_lint) = self.rects.get_mut(index) {
+ actionable_lint.apply_suggestion(suggestion);
+ }
+
+ self.close_popup();
+ }
+ Some(LintCardAction::IgnoreLint) => {
+ if let Some((lint, source_text)) =
+ self.rects.get(index).map(|actionable_lint| {
+ (
+ actionable_lint.lint.clone(),
+ actionable_lint.source_text.clone(),
+ )
+ })
+ {
+ let document = Document::new_markdown_default_curated(&source_text);
+ (self.ignore_lint)(&lint, &document);
+ }
+
+ self.close_popup();
+ }
+ Some(LintCardAction::AddToDictionary) => {
+ if let Some((lint, source_text)) =
+ self.rects.get(index).map(|actionable_lint| {
+ (
+ actionable_lint.lint.clone(),
+ actionable_lint.source_text.clone(),
+ )
+ })
+ {
+ let document = Document::new_markdown_default_curated(&source_text);
+ let word = lint.get_str(document.get_source());
+ (self.add_to_dictionary)(&word);
+ }
+
+ self.close_popup();
+ }
+ Some(LintCardAction::DisableRule) => {
+ if let Some(rule_name) = self
+ .rects
+ .get(index)
+ .map(|actionable_lint| actionable_lint.rule_name.clone())
+ {
+ (self.disable_rule)(&rule_name);
+ }
+
+ self.close_popup();
+ }
+ None => {}
+ }
+ }
+ }
+}
+
+/// Draws the always-visible lint marker without making the renderer responsible for popup state.
+fn draw_highlight(ui: &mut egui::Ui, rect: &Rect, lint: &Lint) {
+ let rect_bounds = rect_bounds(rect);
+ let color = lint_color(lint);
+ let [r, g, b, _] = color.to_array();
+ let fill_color = egui::Color32::from_rgba_unmultiplied(r, g, b, 24);
+ let underline_color = egui::Color32::from_rgba_unmultiplied(r, g, b, 255);
+ let underline_height = rect_bounds.height().min(2.0);
+
+ ui.painter().rect_filled(rect_bounds, 0.0, fill_color);
+ ui.painter().rect_filled(
+ egui::Rect::from_min_max(
+ egui::pos2(rect_bounds.left(), rect_bounds.bottom() - underline_height),
+ rect_bounds.right_bottom(),
+ ),
+ 0.0,
+ underline_color,
+ );
+}
+
+/// Renders the suggestion popup and returns whether the explicit close control was clicked.
+fn render_lint_card(
+ ui: &mut egui::Ui,
+ rect: &Rect,
+ lint: &Lint,
+ source_text: &str,
+ markdown_cache: &mut CommonMarkCache,
+) -> Option<LintCardAction> {
+ let popup_rect = popup_rect_for_lint(rect);
+
+ egui::Area::new(egui::Id::new("harper-lint-card"))
+ .order(egui::Order::Foreground)
+ .fixed_pos(popup_rect.min)
+ .show(ui.ctx(), |ui| {
+ let mut action = None;
+
+ egui::Frame::new()
+ .fill(hex(0xff, 0xfd, 0xfa))
+ .stroke(egui::Stroke::new(
+ 1.0,
+ egui::Color32::from_rgba_unmultiplied(0, 0, 0, 20),
+ ))
+ .corner_radius(egui::CornerRadius::same(12))
+ .inner_margin(egui::Margin::same(0))
+ .shadow(egui::Shadow {
+ offset: [0, 14],
+ blur: 32,
+ spread: 0,
+ color: egui::Color32::from_rgba_unmultiplied(20, 12, 2, 56),
+ })
+ .show(ui, |ui| {
+ ui.set_width(CARD_WIDTH);
+ ui.set_min_height(CARD_HEIGHT);
+ ui.set_max_height(CARD_HEIGHT);
+
+ render_popover_header(ui, lint, &mut action);
+ render_popover_body(ui, lint, markdown_cache, &mut action);
+ render_popover_footer(ui, lint, source_text, &mut action);
+ });
+ action
+ })
+ .inner
+}
+
+/// Renders the top bar from the prototype, including no-op utility icons and the real close action.
+fn render_popover_header(ui: &mut egui::Ui, lint: &Lint, action: &mut Option<LintCardAction>) {
+ let style = popup_style_for_lint_kind(lint.lint_kind);
+
+ egui::Frame::new()
+ .fill(blend(style.background, hex(0xff, 0xfd, 0xfa), 0.42))
+ .stroke(egui::Stroke::new(
+ 1.0,
+ egui::Color32::from_rgba_unmultiplied(0, 0, 0, 15),
+ ))
+ .corner_radius(egui::CornerRadius {
+ nw: 12,
+ ne: 12,
+ sw: 0,
+ se: 0,
+ })
+ .inner_margin(egui::Margin::symmetric(10, 10))
+ .show(ui, |ui| {
+ ui.set_width(CARD_WIDTH - 20.0);
+ ui.set_height(HEADER_HEIGHT - 20.0);
+ ui.horizontal(|ui| {
+ lint_kind_badge(ui, lint, style);
+ ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
+ if icon_button(ui, Glyph::Close, "Close this suggestion popup.").clicked() {
+ *action = Some(LintCardAction::Close);
+ }
+ icon_button(ui, Glyph::Settings, "Open Harper settings.");
+ if icon_button(ui, Glyph::Disable, "Disable this rule.").clicked() {
+ *action = Some(LintCardAction::DisableRule);
+ }
+ });
+ });
+ });
+}
+
+/// Renders the markdown explanation and horizontal suggestion chip row from the prototype body.
+fn render_popover_body(
+ ui: &mut egui::Ui,
+ lint: &Lint,
+ markdown_cache: &mut CommonMarkCache,
+ action: &mut Option<LintCardAction>,
+) {
+ egui::Frame::new()
+ .fill(hex(0xff, 0xfd, 0xfa))
+ .inner_margin(egui::Margin::symmetric(16, 12))
+ .show(ui, |ui| {
+ ui.set_width(CARD_WIDTH - 32.0);
+ ui.set_min_height(CARD_HEIGHT - HEADER_HEIGHT - FOOTER_HEIGHT - 24.0);
+ ui.spacing_mut().item_spacing = egui::vec2(8.0, 8.0);
+
+ render_lint_message(ui, markdown_cache, &lint.message);
+
+ if !lint.suggestions.is_empty() {
+ ui.add_space(6.0);
+ ui.horizontal_wrapped(|ui| {
+ ui.spacing_mut().item_spacing = egui::vec2(8.0, 8.0);
+
+ for (index, suggestion) in lint.suggestions.iter().enumerate() {
+ if suggestion_option(ui, lint.lint_kind, suggestion, index == 0).clicked() {
+ *action = Some(LintCardAction::ApplySuggestion(suggestion.clone()));
+ }
+ }
+ });
+ }
+ });
+}
+
+/// Renders the footer controls as visual stubs so the popup matches the target component before those
+/// actions have real behavior.
+fn render_popover_footer(
+ ui: &mut egui::Ui,
+ lint: &Lint,
+ source_text: &str,
+ action: &mut Option<LintCardAction>,
+) {
+ egui::Frame::new()
+ .fill(egui::Color32::from_rgba_unmultiplied(0, 0, 0, 5))
+ .stroke(egui::Stroke::new(
+ 1.0,
+ egui::Color32::from_rgba_unmultiplied(0, 0, 0, 15),
+ ))
+ .inner_margin(egui::Margin::symmetric(10, 8))
+ .show(ui, |ui| {
+ ui.set_width(CARD_WIDTH - 20.0);
+ ui.set_height(FOOTER_HEIGHT - 16.0);
+ ui.horizontal(|ui| {
+ if is_spelling_kind(lint.lint_kind) {
+ let source_chars = source_text.chars().collect::<Vec<_>>();
+ let word = lint.get_str(&source_chars);
+ if ghost_button(
+ ui,
+ Some(Glyph::Plus),
+ "Add to dictionary",
+ format!("Add \"{word}\" to your personal dictionary."),
+ )
+ .clicked()
+ {
+ *action = Some(LintCardAction::AddToDictionary);
+ }
+ }
+ ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
+ if ghost_button(ui, None, "Dismiss", "Ignore this suggestion").clicked() {
+ *action = Some(LintCardAction::IgnoreLint);
+ }
+ });
+ });
+ });
+}
+
+/// Renders Harper's markdown-formatted lint message in the popup instead of showing raw markdown
+/// markers to the user.
+fn render_lint_message(ui: &mut egui::Ui, cache: &mut CommonMarkCache, message: &str) {
+ ui.scope(|ui| {
+ ui.visuals_mut().code_bg_color = hex(0xf3, 0xf4, 0xf6);
+ ui.visuals_mut().extreme_bg_color = hex(0xf8, 0xfa, 0xfc);
+ ui.visuals_mut().override_text_color = Some(hex(0x37, 0x41, 0x51));
+ ui.visuals_mut().text_edit_bg_color = Some(hex(0xf8, 0xfa, 0xfc));
+ CommonMarkViewer::new()
+ .default_width(Some(ui.available_width() as usize))
+ .show(ui, cache, message);
+ });
+}
+
+/// Keeps the lint type visually attached to the popup without duplicating lint-kind formatting in
+/// the window manager.
+fn lint_kind_badge(ui: &mut egui::Ui, lint: &Lint, style: PopupStyle) {
+ egui::Frame::new()
+ .fill(style.background)
+ .corner_radius(egui::CornerRadius::same(20))
+ .inner_margin(egui::Margin::symmetric(8, 3))
+ .show(ui, |ui| {
+ ui.horizontal(|ui| {
+ ui.spacing_mut().item_spacing = egui::vec2(6.0, 0.0);
+ let (dot_rect, _) =
+ ui.allocate_exact_size(egui::vec2(6.0, 6.0), egui::Sense::hover());
+ ui.painter()
+ .circle_filled(dot_rect.center(), 3.0, style.color);
+ ui.label(
+ egui::RichText::new(lint.lint_kind.to_string().to_uppercase())
+ .strong()
+ .size(11.0)
+ .color(style.foreground),
+ );
+ });
+ });
+}
+
+/// Renders a suggestion as a compact button so later replacement behavior can attach to one place.
+fn suggestion_option(
+ ui: &mut egui::Ui,
+ lint_kind: LintKind,
+ suggestion: &Suggestion,
+ primary: bool,
+) -> egui::Response {
+ let lint_color = lint_kind_color32(lint_kind);
+ let fill = if primary {
+ lint_color
+ } else {
+ blend(lint_color, hex(0xff, 0xfd, 0xfa), 0.88)
+ };
+ let text_color = if primary {
+ hex(0xff, 0xfd, 0xfa)
+ } else {
+ hex(0x0a, 0x0a, 0x0a)
+ };
+ let stroke = if primary {
+ egui::Stroke::NONE
+ } else {
+ egui::Stroke::new(1.0, blend(lint_color, hex(0xff, 0xfd, 0xfa), 0.64))
+ };
+
+ ui.scope(|ui| {
+ ui.spacing_mut().button_padding = egui::vec2(16.0, 10.0);
+ let stroke_width = stroke.width;
+ ui.visuals_mut().widgets.inactive.expansion = 0.0;
+ ui.visuals_mut().widgets.hovered.expansion = 0.0;
+ ui.visuals_mut().widgets.active.expansion = 0.0;
+ ui.visuals_mut().widgets.inactive.bg_stroke.width = stroke_width;
+ ui.visuals_mut().widgets.hovered.bg_stroke.width = stroke_width;
+ ui.visuals_mut().widgets.active.bg_stroke.width = stroke_width;
+
+ let button = egui::Button::new(
+ egui::RichText::new(suggestion_text(suggestion))
+ .size(13.5)
+ .color(text_color),
+ )
+ .fill(fill)
+ .stroke(stroke)
+ .corner_radius(egui::CornerRadius::same(8))
+ .min_size(egui::vec2(0.0, 38.0));
+
+ hover_text(ui.add(button), suggestion_hover_text(suggestion))
+ })
+ .inner
+}
+
+/// Renders the prototype's square icon-only controls without coupling their visual treatment to any
+/// behavior beyond the response returned to the caller.
+fn icon_button(ui: &mut egui::Ui, glyph: Glyph, text: &str) -> egui::Response {
+ let (rect, response) = ui.allocate_exact_size(egui::vec2(26.0, 26.0), egui::Sense::click());
+ let background = if response.hovered() {
+ egui::Color32::from_rgba_unmultiplied(0, 0, 0, 15)
+ } else {
+ egui::Color32::TRANSPARENT
+ };
+ let color = if response.hovered() {
+ hex(0x00, 0x00, 0x00)
+ } else {
+ hex(0x6b, 0x72, 0x80)
+ };
+
+ ui.painter().rect_filled(rect, 6.0, background);
+ draw_glyph(ui, rect.shrink(6.0), glyph, color);
+
+ hover_text(response, text)
+}
+
+/// Renders footer controls as no-op buttons so future actions can be wired without changing layout.
+fn ghost_button(
+ ui: &mut egui::Ui,
+ glyph: Option<Glyph>,
+ label: &str,
+ text: impl Into<String>,
+) -> egui::Response {
+ let label = if glyph.is_some() {
+ format!("+ {label}")
+ } else {
+ label.to_string()
+ };
+
+ ui.scope(|ui| {
+ ui.spacing_mut().button_padding = egui::vec2(8.0, 6.0);
+ let response = ui.add(
+ egui::Button::new(
+ egui::RichText::new(label)
+ .size(12.0)
+ .color(hex(0x4b, 0x55, 0x63)),
+ )
+ .fill(egui::Color32::TRANSPARENT)
+ .stroke(egui::Stroke::NONE)
+ .corner_radius(egui::CornerRadius::same(6)),
+ );
+
+ hover_text(response, text)
+ })
+ .inner
+}
+
+/// Applies tooltip styling that visually belongs with the suggestion popup instead of egui defaults.
+fn hover_text(response: egui::Response, hover_text: impl Into<String>) -> egui::Response {
+ let hover_text = hover_text.into();
+
+ let mut tooltip = egui::Tooltip::for_enabled(&response);
+ tooltip.popup = tooltip.popup.frame(
+ egui::Frame::new()
+ .fill(hex(0xff, 0xfd, 0xfa))
+ .stroke(egui::Stroke::new(
+ 1.0,
+ egui::Color32::from_rgba_unmultiplied(0, 0, 0, 20),
+ ))
+ .corner_radius(egui::CornerRadius::same(8))
+ .inner_margin(egui::Margin::symmetric(8, 6))
+ .shadow(egui::Shadow {
+ offset: [0, 8],
+ blur: 18,
+ spread: 0,
+ color: egui::Color32::from_rgba_unmultiplied(20, 12, 2, 42),
+ }),
+ );
+ tooltip.show(|ui| {
+ ui.set_max_width(260.0);
+ ui.label(
+ egui::RichText::new(hover_text)
+ .size(12.0)
+ .color(hex(0x4b, 0x55, 0x63)),
+ );
+ });
+
+ response
+}
+
+/// Draws the small SVG-inspired line icons from the prototype using egui painter primitives.
+fn draw_glyph(ui: &egui::Ui, rect: egui::Rect, glyph: Glyph, color: egui::Color32) {
+ match glyph {
+ Glyph::Close => draw_close_icon(ui, rect, color),
+ Glyph::Settings => draw_settings_icon(ui, rect, color),
+ Glyph::Disable => draw_disable_icon(ui, rect, color),
+ Glyph::Plus => draw_plus_icon(ui, rect, color),
+ }
+}
+
+/// Draws the close glyph separately from button behavior so icon styling can change without touching
+/// the popup's interaction contract.
+fn draw_close_icon(ui: &egui::Ui, rect: egui::Rect, color: egui::Color32) {
+ let stroke = egui::Stroke::new(1.6, color);
+
+ ui.painter()
+ .line_segment([rect.left_top(), rect.right_bottom()], stroke);
+ ui.painter()
+ .line_segment([rect.right_top(), rect.left_bottom()], stroke);
+}
+
+fn draw_settings_icon(ui: &egui::Ui, rect: egui::Rect, color: egui::Color32) {
+ let stroke = egui::Stroke::new(1.5, color);
+ let center = rect.center();
+ let radius = rect.width().min(rect.height()) * 0.32;
+
+ ui.painter().circle_stroke(center, radius, stroke);
+ ui.painter().circle_stroke(center, radius * 0.38, stroke);
+
+ for angle in [0.0_f32, 60.0, 120.0, 180.0, 240.0, 300.0] {
+ let radians = angle.to_radians();
+ let dir = egui::vec2(radians.cos(), radians.sin());
+ ui.painter().line_segment(
+ [center + dir * radius, center + dir * (radius + 2.8)],
+ stroke,
+ );
+ }
+}
+
+fn draw_disable_icon(ui: &egui::Ui, rect: egui::Rect, color: egui::Color32) {
+ let stroke = egui::Stroke::new(1.5, color);
+
+ ui.painter().circle_stroke(
+ rect.center(),
+ rect.width().min(rect.height()) * 0.45,
+ stroke,
+ );
+ ui.painter()
+ .line_segment([rect.left_bottom(), rect.right_top()], stroke);
+}
+
+fn draw_plus_icon(ui: &egui::Ui, rect: egui::Rect, color: egui::Color32) {
+ let stroke = egui::Stroke::new(1.6, color);
+
+ ui.painter().line_segment(
+ [
+ egui::pos2(rect.center().x, rect.top()),
+ egui::pos2(rect.center().x, rect.bottom()),
+ ],
+ stroke,
+ );
+ ui.painter().line_segment(
+ [
+ egui::pos2(rect.left(), rect.center().y),
+ egui::pos2(rect.right(), rect.center().y),
+ ],
+ stroke,
+ );
+}
+
+fn is_spelling_kind(lint_kind: LintKind) -> bool {
+ match lint_kind {
+ LintKind::Eggcorn | LintKind::Malapropism | LintKind::Spelling | LintKind::Typo => true,
+ LintKind::Agreement
+ | LintKind::BoundaryError
+ | LintKind::Capitalization
+ | LintKind::Enhancement
+ | LintKind::Formatting
+ | LintKind::Grammar
+ | LintKind::Miscellaneous
+ | LintKind::Nonstandard
+ | LintKind::Punctuation
+ | LintKind::Readability
+ | LintKind::Redundancy
+ | LintKind::Regionalism
+ | LintKind::Repetition
+ | LintKind::Style
+ | LintKind::Usage
+ | LintKind::WordChoice => false,
+ }
+}
+
+fn popup_style_for_lint_kind(lint_kind: LintKind) -> PopupStyle {
+ let color = lint_kind_color32(lint_kind);
+
+ match lint_kind {
+ LintKind::Eggcorn | LintKind::Malapropism | LintKind::Spelling | LintKind::Typo => {
+ PopupStyle {
+ color,
+ background: hex(0xff, 0xee, 0xf2),
+ foreground: hex(0xbe, 0x12, 0x3c),
+ }
+ }
+ LintKind::Agreement
+ | LintKind::BoundaryError
+ | LintKind::Grammar
+ | LintKind::Repetition => PopupStyle {
+ color,
+ background: hex(0xff, 0xf7, 0xed),
+ foreground: hex(0xc2, 0x41, 0x0c),
+ },
+ LintKind::Capitalization => PopupStyle {
+ color,
+ background: hex(0xf3, 0xee, 0xff),
+ foreground: hex(0x5b, 0x21, 0xb6),
+ },
+ LintKind::Formatting | LintKind::Punctuation | LintKind::Readability => PopupStyle {
+ color,
+ background: hex(0xef, 0xf6, 0xff),
+ foreground: hex(0x1d, 0x4e, 0xd8),
+ },
+ LintKind::Enhancement
+ | LintKind::Miscellaneous
+ | LintKind::Nonstandard
+ | LintKind::Redundancy
+ | LintKind::Regionalism
+ | LintKind::Style
+ | LintKind::Usage
+ | LintKind::WordChoice => PopupStyle {
+ color,
+ background: hex(0xf3, 0xf4, 0xf6),
+ foreground: hex(0x37, 0x41, 0x51),
+ },
+ }
+}
+
+/// Converts Harper suggestion variants into button text.
+fn suggestion_text(suggestion: &Suggestion) -> String {
+ match suggestion {
+ Suggestion::ReplaceWith(chars) | Suggestion::InsertAfter(chars) => chars.iter().collect(),
+ Suggestion::Remove => "Remove".to_owned(),
+ }
+}
+
+fn suggestion_hover_text(suggestion: &Suggestion) -> String {
+ match suggestion {
+ Suggestion::Remove => "Remove".to_owned(),
+ Suggestion::ReplaceWith(chars) | Suggestion::InsertAfter(chars) => {
+ format!("Replace with \"{}\"", chars.iter().collect::<String>())
+ }
+ }
+}
+
+/// Converts accessibility rectangles into egui rectangles so rendering and hit-testing use the same
+/// screen-space geometry.
+fn rect_bounds(rect: &Rect) -> egui::Rect {
+ egui::Rect::from_min_size(
+ egui::pos2(rect.x as f32, rect.y as f32),
+ egui::vec2(rect.width as f32, rect.height as f32),
+ )
+}
+
+/// Defines popup geometry ahead of rendering so the transparent overlay can enable or disable native
+/// hit-testing based on our intended layout, not a previous frame's measured egui output.
+fn popup_rect_for_lint(rect: &Rect) -> egui::Rect {
+ egui::Rect::from_min_size(
+ egui::pos2(
+ rect.x as f32,
+ rect.y as f32 + rect.height as f32 + CARD_OFFSET_Y,
+ ),
+ egui::vec2(CARD_WIDTH, CARD_HEIGHT),
+ )
+}
+
+/// Maps Harper lint kinds to egui colors at the drawing boundary so shared color data stays UI-toolkit
+/// agnostic.
+fn lint_color(lint: &Lint) -> egui::Color32 {
+ lint_kind_color32(lint.lint_kind)
+}
+
+fn lint_kind_color32(lint_kind: LintKind) -> egui::Color32 {
+ let color = lint_kind_color(lint_kind);
+
+ egui::Color32::from_rgb(color.r, color.g, color.b)
+}
+
+fn hex(r: u8, g: u8, b: u8) -> egui::Color32 {
+ egui::Color32::from_rgb(r, g, b)
+}
+
+fn blend(from: egui::Color32, to: egui::Color32, to_weight: f32) -> egui::Color32 {
+ let from_weight = 1.0 - to_weight;
+ let [fr, fg, fb, _] = from.to_array();
+ let [tr, tg, tb, _] = to.to_array();
+
+ egui::Color32::from_rgb(
+ ((f32::from(fr) * from_weight) + (f32::from(tr) * to_weight)) as u8,
+ ((f32::from(fg) * from_weight) + (f32::from(tg) * to_weight)) as u8,
+ ((f32::from(fb) * from_weight) + (f32::from(tb) * to_weight)) as u8,
+ )
+}
diff --git a/harper-desktop/src-tauri/src/highlighter/window.rs b/harper-desktop/src-tauri/src/highlighter/window.rs
new file mode 100644
index 000000000..f03716658
--- /dev/null
+++ b/harper-desktop/src-tauri/src/highlighter/window.rs
@@ -0,0 +1,143 @@
+use std::num::NonZeroU32;
+use std::sync::Arc;
+
+use egui_wgpu::winit::Painter;
+use egui_wgpu::{RendererOptions, WgpuConfiguration, WgpuSetup};
+use winit::dpi::{PhysicalPosition, PhysicalSize};
+use winit::event::WindowEvent;
+use winit::event_loop::ActiveEventLoop;
+use winit::monitor::MonitorHandle;
+use winit::window::{Window as WinitWindow, WindowButtons, WindowId, WindowLevel};
+
+use super::Error;
+use super::render_state::RenderState;
+
+/// A transparent click-through overlay window for one monitor.
+///
+/// `Window` owns the native winit window plus egui/wgpu integration required to render into it. It
+/// deliberately does not own highlighter drawing decisions; those are supplied by `RenderState`
+/// during each redraw.
+pub struct Window {
+ inner: Arc<WinitWindow>,
+ egui_state: egui_winit::State,
+ painter: Painter,
+ viewport_id: egui::ViewportId,
+}
+
+impl Window {
+ pub async fn new(
+ event_loop: &ActiveEventLoop,
+ monitor: MonitorHandle,
+ context: egui::Context,
+ ) -> Result<Self, Error> {
+ let position = monitor.position();
+ let size = monitor.size();
+ let window = Arc::new(
+ event_loop.create_window(
+ WinitWindow::default_attributes()
+ .with_title("Harper")
+ .with_inner_size(size)
+ .with_position(position)
+ .with_resizable(false)
+ .with_enabled_buttons(WindowButtons::empty())
+ .with_decorations(false)
+ .with_transparent(true)
+ .with_window_level(WindowLevel::AlwaysOnTop)
+ .with_active(false),
+ )?,
+ );
+
+ window.set_outer_position(PhysicalPosition::new(position.x, position.y));
+ let _ = window.request_inner_size(PhysicalSize::new(size.width, size.height));
+ window.set_cursor_hittest(false)?;
+ let viewport_id = egui::ViewportId::from_hash_of(window.id());
+
+ let egui_state = egui_winit::State::new(
+ context.clone(),
+ viewport_id,
+ event_loop,
+ Some(window.scale_factor() as f32),
+ window.theme(),
+ None,
+ );
+
+ let mut painter = Painter::new(
+ context,
+ WgpuConfiguration {
+ wgpu_setup: WgpuSetup::from_display_handle(event_loop.owned_display_handle()),
+ ..Default::default()
+ },
+ true,
+ RendererOptions::default(),
+ )
+ .await;
+ painter
+ .set_window(viewport_id, Some(window.clone()))
+ .await?;
+ window.request_redraw();
+
+ Ok(Self {
+ inner: window,
+ egui_state,
+ painter,
+ viewport_id,
+ })
+ }
+
+ pub fn id(&self) -> WindowId {
+ self.inner.id()
+ }
+
+ pub fn request_redraw(&self) {
+ self.inner.request_redraw();
+ }
+
+ /// Controls whether the transparent overlay can receive pointer events.
+ ///
+ /// Highlight windows are click-through by default so the underlying app remains usable. The
+ /// window manager temporarily enables hit-testing when global cursor polling shows the pointer
+ /// is over an interactive highlight or popup.
+ pub fn set_cursor_hittest(&self, enabled: bool) -> Result<(), Error> {
+ self.inner.set_cursor_hittest(enabled)?;
+
+ Ok(())
+ }
+
+ pub fn handle_event(&mut self, event: &WindowEvent) {
+ let response = self.egui_state.on_window_event(&self.inner, event);
+
+ if response.repaint {
+ self.inner.request_redraw();
+ }
+
+ if let WindowEvent::Resized(size) = event
+ && let (Some(width), Some(height)) =
+ (NonZeroU32::new(size.width), NonZeroU32::new(size.height))
+ {
+ self.painter
+ .on_window_resized(self.viewport_id, width, height);
+ self.inner.request_redraw();
+ }
+ }
+
+ pub fn render(&mut self, render_state: &mut RenderState) {
+ let context = self.egui_state.egui_ctx().clone();
+ let input = self.egui_state.take_egui_input(&self.inner);
+ let output = context.run_ui(input, |ui| {
+ render_state.render(ui);
+ });
+
+ self.egui_state
+ .handle_platform_output(&self.inner, output.platform_output);
+
+ let clipped_primitives = context.tessellate(output.shapes, output.pixels_per_point);
+ self.painter.paint_and_update_textures(
+ self.viewport_id,
+ output.pixels_per_point,
+ [0.0, 0.0, 0.0, 0.0],
+ &clipped_primitives,
+ &output.textures_delta,
+ Vec::new(),
+ );
+ }
+}
diff --git a/harper-desktop/src-tauri/src/highlighter/window_manager.rs b/harper-desktop/src-tauri/src/highlighter/window_manager.rs
new file mode 100644
index 000000000..41b9ba9b7
--- /dev/null
+++ b/harper-desktop/src-tauri/src/highlighter/window_manager.rs
@@ -0,0 +1,303 @@
+use std::time::{Duration, Instant};
+
+use winit::application::ApplicationHandler;
+use winit::event::{ElementState, MouseButton, WindowEvent};
+use winit::event_loop::{ActiveEventLoop, ControlFlow, EventLoop};
+use winit::window::WindowId;
+
+use super::AddToDictionary;
+use super::DisableRule;
+use super::Error;
+use super::IgnoreLint;
+use super::RefreshConfig;
+use super::render_state::{HitTarget, RenderState};
+use super::window::Window;
+use crate::os_broker::{LintText, OsBroker};
+use crate::rect::ActionableLint;
+
+/// Owns the winit event loop and the overlay windows created for each monitor.
+///
+/// `WindowManager` is intentionally separate from `Highlighter` because winit event-loop ownership
+/// is a process-level concern. It also keeps monitor enumeration, native window lifecycle, and event
+/// dispatch out of the public highlighter API.
+pub struct WindowManager {
+ event_loop: EventLoop<()>,
+ context: egui::Context,
+ rects: Vec<ActionableLint>,
+ os_broker: Box<dyn OsBroker>,
+ lint_text: LintText,
+ ignore_lint: IgnoreLint,
+ add_to_dictionary: AddToDictionary,
+ disable_rule: DisableRule,
+ refresh_config: RefreshConfig,
+ read_interval: Duration,
+ config_poll_interval: Duration,
+}
+
+pub struct WindowManagerCallbacks {
+ pub lint_text: LintText,
+ pub ignore_lint: IgnoreLint,
+ pub add_to_dictionary: AddToDictionary,
+ pub disable_rule: DisableRule,
+ pub refresh_config: RefreshConfig,
+}
+
+pub struct WindowManagerIntervals {
+ pub read: Duration,
+ pub config_poll: Duration,
+}
+
+impl WindowManager {
+ /// Creates the event loop before windows exist because winit requires window creation to happen
+ /// from inside that loop's lifecycle callbacks.
+ pub fn new(
+ context: egui::Context,
+ os_broker: Box<dyn OsBroker>,
+ callbacks: WindowManagerCallbacks,
+ intervals: WindowManagerIntervals,
+ ) -> Result<Self, Error> {
+ Ok(Self {
+ event_loop: EventLoop::new()?,
+ context,
+ rects: Vec::new(),
+ os_broker,
+ lint_text: callbacks.lint_text,
+ ignore_lint: callbacks.ignore_lint,
+ add_to_dictionary: callbacks.add_to_dictionary,
+ disable_rule: callbacks.disable_rule,
+ refresh_config: callbacks.refresh_config,
+ read_interval: intervals.read,
+ config_poll_interval: intervals.config_poll,
+ })
+ }
+
+ /// Seeds externally supplied lint rectangles before the event loop takes ownership of rendering.
+ pub fn set_rects(&mut self, rects: Vec<ActionableLint>) {
+ self.rects = rects;
+ }
+
+ /// Lets callers tune OS polling without exposing the window-manager internals that schedule it.
+ pub fn set_read_interval(&mut self, read_interval: Duration) {
+ self.read_interval = read_interval;
+ }
+
+ /// Transfers ownership into winit's application handler because `run_app` owns the process-level
+ /// event loop until the overlay exits.
+ pub fn run_window_for_each_monitor(self) -> Result<(), Error> {
+ let mut app = WindowManagerApp::new(
+ self.context,
+ self.rects,
+ self.os_broker,
+ WindowManagerCallbacks {
+ lint_text: self.lint_text,
+ ignore_lint: self.ignore_lint,
+ add_to_dictionary: self.add_to_dictionary,
+ disable_rule: self.disable_rule,
+ refresh_config: self.refresh_config,
+ },
+ WindowManagerIntervals {
+ read: self.read_interval,
+ config_poll: self.config_poll_interval,
+ },
+ );
+
+ self.event_loop
+ .set_control_flow(ControlFlow::WaitUntil(Instant::now() + self.read_interval));
+ let result = self.event_loop.run_app(&mut app);
+
+ if let Some(error) = app.error {
+ return Err(error);
+ }
+
+ result.map_err(Error::from)
+ }
+}
+
+struct WindowManagerApp {
+ context: egui::Context,
+ windows: Vec<Window>,
+ render_state: RenderState,
+ os_broker: Box<dyn OsBroker>,
+ lint_text: LintText,
+ read_interval: Duration,
+ config_poll_interval: Duration,
+ last_read: Instant,
+ last_config_poll: Instant,
+ refresh_config: RefreshConfig,
+ hovered_lint: Option<usize>,
+ cursor_hittest_enabled: bool,
+ error: Option<Error>,
+}
+
+impl WindowManagerApp {
+ /// Builds the mutable application state consumed by winit callbacks after `WindowManager` gives
+ /// up direct control of the event loop.
+ fn new(
+ context: egui::Context,
+ rects: Vec<ActionableLint>,
+ os_broker: Box<dyn OsBroker>,
+ callbacks: WindowManagerCallbacks,
+ intervals: WindowManagerIntervals,
+ ) -> Self {
+ let read_interval = intervals.read;
+ Self {
+ context,
+ windows: Vec::new(),
+ render_state: RenderState::new(
+ rects,
+ callbacks.ignore_lint,
+ callbacks.add_to_dictionary,
+ callbacks.disable_rule,
+ ),
+ os_broker,
+ lint_text: callbacks.lint_text,
+ read_interval,
+ config_poll_interval: intervals.config_poll,
+ last_read: Instant::now() - read_interval,
+ last_config_poll: Instant::now(),
+ refresh_config: callbacks.refresh_config,
+ hovered_lint: None,
+ cursor_hittest_enabled: false,
+ error: None,
+ }
+ }
+
+ /// Refreshes lint geometry from the OS broker inside the event loop so repaint requests happen on
+ /// the same thread that owns the overlay windows.
+ fn read_rect_updates(&mut self) {
+ let rects = self.os_broker.get_boxes(self.lint_text.as_mut());
+ self.render_state.set_rects(rects);
+
+ for window in &self.windows {
+ window.request_redraw();
+ }
+ }
+
+ fn refresh_config(&mut self) {
+ (self.refresh_config)();
+ }
+
+ /// Toggles native click-through behavior based on the cursor's current interactive Harper target,
+ /// keeping editor clicks from being swallowed when the pointer is outside highlights and popups.
+ fn update_cursor_hittest(&mut self, event_loop: &ActiveEventLoop) {
+ let Some(cursor_pos) = self.os_broker.cursor_position() else {
+ return;
+ };
+
+ let hit_target = self.render_state.hit_target_at_pos(cursor_pos);
+ self.hovered_lint = match hit_target {
+ HitTarget::Lint(index) => Some(index),
+ HitTarget::Popup | HitTarget::None => None,
+ };
+
+ let should_enable_hittest = !matches!(hit_target, HitTarget::None);
+
+ if self.cursor_hittest_enabled == should_enable_hittest {
+ return;
+ }
+
+ for window in &self.windows {
+ if let Err(error) = window.set_cursor_hittest(should_enable_hittest) {
+ self.error = Some(error);
+ event_loop.exit();
+ return;
+ }
+ }
+
+ self.cursor_hittest_enabled = should_enable_hittest;
+ }
+
+ /// Opens or replaces the popup only when the actual click target is a lint, leaving popup clicks
+ /// for egui controls such as the close button.
+ fn select_hit_lint(&mut self) {
+ let Some(cursor_pos) = self.os_broker.cursor_position() else {
+ return;
+ };
+
+ let HitTarget::Lint(index) = self.render_state.hit_target_at_pos(cursor_pos) else {
+ return;
+ };
+
+ self.render_state.set_highlighted_lint(Some(index));
+
+ for window in &self.windows {
+ window.request_redraw();
+ }
+ }
+}
+
+impl ApplicationHandler for WindowManagerApp {
+ fn about_to_wait(&mut self, event_loop: &ActiveEventLoop) {
+ let now = Instant::now();
+
+ if now.duration_since(self.last_read) >= self.read_interval {
+ self.read_rect_updates();
+ self.last_read = now;
+ }
+
+ if now.duration_since(self.last_config_poll) >= self.config_poll_interval {
+ self.refresh_config();
+ self.last_config_poll = now;
+ }
+
+ self.update_cursor_hittest(event_loop);
+
+ let next_read = self.last_read + self.read_interval;
+ let next_config_poll = self.last_config_poll + self.config_poll_interval;
+ event_loop.set_control_flow(ControlFlow::WaitUntil(next_read.min(next_config_poll)));
+ }
+
+ fn resumed(&mut self, event_loop: &ActiveEventLoop) {
+ if !self.windows.is_empty() {
+ return;
+ }
+
+ for monitor in event_loop.available_monitors() {
+ match pollster::block_on(Window::new(event_loop, monitor, self.context.clone())) {
+ Ok(window) => self.windows.push(window),
+ Err(error) => {
+ self.error = Some(error);
+ event_loop.exit();
+ return;
+ }
+ }
+ }
+ }
+
+ fn window_event(
+ &mut self,
+ event_loop: &ActiveEventLoop,
+ window_id: WindowId,
+ event: WindowEvent,
+ ) {
+ let should_select_hit_lint = matches!(
+ &event,
+ WindowEvent::MouseInput {
+ state: ElementState::Pressed,
+ button: MouseButton::Left,
+ ..
+ }
+ );
+ let should_render = matches!(&event, WindowEvent::RedrawRequested);
+
+ if let Some(window) = self
+ .windows
+ .iter_mut()
+ .find(|window| window.id() == window_id)
+ {
+ window.handle_event(&event);
+
+ if should_render {
+ window.render(&mut self.render_state);
+ }
+ }
+
+ if should_select_hit_lint {
+ self.select_hit_lint();
+ }
+
+ if matches!(&event, WindowEvent::CloseRequested) {
+ event_loop.exit();
+ }
+ }
+}
diff --git a/harper-desktop/src-tauri/src/highlighter_process.rs b/harper-desktop/src-tauri/src/highlighter_process.rs
new file mode 100644
index 000000000..ceb6b04db
--- /dev/null
+++ b/harper-desktop/src-tauri/src/highlighter_process.rs
@@ -0,0 +1,62 @@
+use crate::communication::Server;
+use crate::config::Config;
+use std::io;
+use std::process::Stdio;
+use std::sync::Arc;
+use tokio::process::{Child, ChildStdin, ChildStdout, Command};
+use tokio::sync::Mutex;
+
+/// Owns the highlighter child process while the Tauri app is running.
+///
+/// This type exists so child-process cleanup is tied to Rust ownership: keeping it in scope keeps the
+/// highlighter alive, and controlled shutdown can terminate and reap the child before exit.
+pub struct HighlighterProcess {
+ child: Child,
+}
+
+impl HighlighterProcess {
+ /// Must be called from within a Tokio runtime
+ pub fn spawn() -> io::Result<Self> {
+ let child = Command::new(std::env::current_exe()?)
+ .arg("highlighter")
+ .stdin(Stdio::piped())
+ .stdout(Stdio::piped())
+ .spawn()?;
+
+ Ok(Self { child })
+ }
+
+ /// Builds the Tauri-side protocol server from the highlighter process stdio handles.
+ ///
+ /// This consumes the child stdio handles and can only succeed once per process.
+ pub fn create_server(
+ &mut self,
+ config: Arc<Mutex<Config>>,
+ ) -> io::Result<Server<ChildStdout, ChildStdin>> {
+ let stdout = self.child.stdout.take().ok_or_else(|| {
+ io::Error::new(
+ io::ErrorKind::BrokenPipe,
+ "highlighter stdout is unavailable",
+ )
+ })?;
+ let stdin = self.child.stdin.take().ok_or_else(|| {
+ io::Error::new(
+ io::ErrorKind::BrokenPipe,
+ "highlighter stdin is unavailable",
+ )
+ })?;
+
+ Ok(Server::new(stdout, stdin, config))
+ }
+
+ pub async fn terminate(&mut self) {
+ let _ = self.child.start_kill();
+ let _ = self.child.wait().await;
+ }
+}
+
+impl Drop for HighlighterProcess {
+ fn drop(&mut self) {
+ let _ = self.child.start_kill();
+ }
+}
diff --git a/harper-desktop/src-tauri/src/highlighter_service.rs b/harper-desktop/src-tauri/src/highlighter_service.rs
new file mode 100644
index 000000000..64b8ef9ad
--- /dev/null
+++ b/harper-desktop/src-tauri/src/highlighter_service.rs
@@ -0,0 +1,263 @@
+use crate::communication::Server;
+use crate::config::Config;
+use crate::highlighter_process::HighlighterProcess;
+use std::{
+ io,
+ sync::{Arc, Mutex as StdMutex},
+ thread::{self, JoinHandle},
+};
+use tokio::{
+ io::{AsyncRead, AsyncWrite},
+ runtime::Builder,
+ sync::{Mutex, oneshot},
+};
+
+/// Owns the optional highlighter worker for the Tauri app.
+///
+/// This service gives app and tray code a small start/stop/toggle API without exposing the worker
+/// thread, child process, or IPC server details.
+pub struct HighlighterService {
+ config: Arc<Mutex<Config>>,
+ worker: StdMutex<Option<HighlighterWorker>>,
+}
+
+impl HighlighterService {
+ /// Creates a service controller around shared app config.
+ ///
+ /// The service keeps the config so each newly started highlighter process serves IPC from the
+ /// same state used by Tauri commands.
+ pub fn new(config: Arc<Mutex<Config>>) -> Self {
+ Self {
+ config,
+ worker: StdMutex::new(None),
+ }
+ }
+
+ /// Starts the highlighter worker if it is not already running.
+ ///
+ /// This is idempotent so callers can request startup from app boot or tray actions without
+ /// risking duplicate child processes. Returns whether the service is running.
+ pub fn start(&self) -> io::Result<bool> {
+ self.reap_finished_worker();
+
+ let mut worker = self
+ .worker
+ .lock()
+ .expect("highlighter service lock poisoned");
+ if worker.is_some() {
+ return Ok(true);
+ }
+
+ *worker = Some(HighlighterWorker::spawn(self.config.clone())?);
+
+ Ok(true)
+ }
+
+ /// Stops the highlighter worker if one is running.
+ ///
+ /// This takes ownership of the current worker before shutting it down so future status checks see
+ /// the service as stopped immediately. Returns whether the service is running.
+ pub fn stop(&self) -> bool {
+ let worker = self
+ .worker
+ .lock()
+ .expect("highlighter service lock poisoned")
+ .take();
+
+ if let Some(mut worker) = worker {
+ worker.stop();
+ }
+
+ false
+ }
+
+ /// Starts or stops the worker based on the current state.
+ ///
+ /// The tray menu uses this as its single action for the highlighter service. Returns whether the
+ /// service is running after the toggle completes.
+ pub fn toggle(&self) -> io::Result<bool> {
+ if self.is_running() {
+ Ok(self.stop())
+ } else {
+ self.start()
+ }
+ }
+
+ /// Reports whether a live worker is currently owned by the service.
+ ///
+ /// This first reaps any worker whose thread has already exited so stale finished workers do not
+ /// appear as active. Returns whether the service is running.
+ pub fn is_running(&self) -> bool {
+ self.reap_finished_worker();
+
+ self.worker
+ .lock()
+ .expect("highlighter service lock poisoned")
+ .is_some()
+ }
+
+ /// Joins and removes a worker whose thread has already exited.
+ ///
+ /// The worker can finish without an explicit stop if the child highlighter exits or closes its
+ /// IPC pipe. Reaping keeps the service state accurate and prevents leaking join handles.
+ fn reap_finished_worker(&self) {
+ let worker = {
+ let mut worker = self
+ .worker
+ .lock()
+ .expect("highlighter service lock poisoned");
+ if worker.as_ref().is_some_and(HighlighterWorker::is_finished) {
+ worker.take()
+ } else {
+ None
+ }
+ };
+
+ if let Some(mut worker) = worker {
+ worker.stop();
+ }
+ }
+}
+
+impl Drop for HighlighterService {
+ /// Stops the worker when the Tauri-managed service is dropped.
+ ///
+ /// This ties child-process cleanup to service ownership during application shutdown.
+ fn drop(&mut self) {
+ let worker = self
+ .worker
+ .get_mut()
+ .expect("highlighter service lock poisoned");
+
+ if let Some(mut worker) = worker.take() {
+ worker.stop();
+ }
+ }
+}
+
+/// Runtime resources for one running highlighter service instance.
+///
+/// A worker owns the shutdown signal and OS thread that hosts the Tokio runtime, child highlighter
+/// process, and Tauri-side IPC server.
+struct HighlighterWorker {
+ shutdown_sender: Option<oneshot::Sender<()>>,
+ thread: Option<JoinHandle<()>>,
+}
+
+impl HighlighterWorker {
+ /// Spawns the service thread, child highlighter process, and IPC server.
+ ///
+ /// The startup channel makes this method synchronous from the caller's perspective: it only
+ /// returns success after the child process and server pipes are ready.
+ fn spawn(config: Arc<Mutex<Config>>) -> io::Result<Self> {
+ let (shutdown_sender, shutdown_receiver) = oneshot::channel();
+ let (startup_sender, startup_receiver) = std::sync::mpsc::sync_channel(1);
+
+ let thread = thread::Builder::new()
+ .name("harper-highlighter-service".to_string())
+ .spawn(move || {
+ let runtime = match Builder::new_current_thread().enable_all().build() {
+ Ok(runtime) => runtime,
+ Err(error) => {
+ let _ = startup_sender.send(Err(io::Error::other(error)));
+ return;
+ }
+ };
+
+ runtime.block_on(async move {
+ let mut highlighter_process = match HighlighterProcess::spawn() {
+ Ok(process) => process,
+ Err(error) => {
+ let _ = startup_sender.send(Err(error));
+ return;
+ }
+ };
+
+ let mut server = match highlighter_process.create_server(config) {
+ Ok(server) => server,
+ Err(error) => {
+ let _ = startup_sender.send(Err(error));
+ return;
+ }
+ };
+
+ let _ = startup_sender.send(Ok(()));
+ run_server_until_shutdown(&mut server, shutdown_receiver).await;
+ highlighter_process.terminate().await;
+ });
+ })?;
+
+ match startup_receiver.recv() {
+ Ok(Ok(())) => Ok(Self {
+ shutdown_sender: Some(shutdown_sender),
+ thread: Some(thread),
+ }),
+ Ok(Err(error)) => {
+ let _ = thread.join();
+ Err(error)
+ }
+ Err(_) => {
+ let _ = thread.join();
+ Err(io::Error::other(
+ "highlighter service exited before reporting startup status",
+ ))
+ }
+ }
+ }
+
+ /// Reports whether the worker thread has exited.
+ ///
+ /// The service uses this to lazily clean up workers that ended because the child process exited
+ /// or IPC reached EOF.
+ fn is_finished(&self) -> bool {
+ self.thread.as_ref().is_some_and(JoinHandle::is_finished)
+ }
+
+ /// Requests shutdown and joins the worker thread.
+ ///
+ /// Sending the shutdown signal lets the async server loop break before the worker terminates and
+ /// reaps the child process.
+ fn stop(&mut self) {
+ if let Some(shutdown_sender) = self.shutdown_sender.take() {
+ let _ = shutdown_sender.send(());
+ }
+
+ if let Some(thread) = self.thread.take()
+ && let Err(error) = thread.join()
+ {
+ eprintln!("highlighter service thread panicked: {error:?}");
+ }
+ }
+}
+
+impl Drop for HighlighterWorker {
+ /// Ensures a worker cannot be dropped while its thread and child process are still running.
+ fn drop(&mut self) {
+ self.stop();
+ }
+}
+
+/// Serves highlighter IPC requests until shutdown or child EOF.
+///
+/// This exists so the worker thread can race normal protocol handling against the service shutdown
+/// signal without making the highlighter process aware of tray-service state.
+async fn run_server_until_shutdown<R, W>(
+ server: &mut Server<R, W>,
+ mut shutdown_receiver: oneshot::Receiver<()>,
+) where
+ R: AsyncRead + Unpin,
+ W: AsyncWrite + Unpin,
+{
+ loop {
+ tokio::select! {
+ _ = &mut shutdown_receiver => break,
+ request = server.receive_request() => {
+ match request {
+ Ok(Some(_)) => {}
+ Ok(None) => break,
+ Err(error) => eprintln!("failed to receive highlighter request: {error}"),
+ }
+ }
+ }
+ }
+}
diff --git a/harper-desktop/src-tauri/src/lib.rs b/harper-desktop/src-tauri/src/lib.rs
new file mode 100644
index 000000000..88dbe46d1
--- /dev/null
+++ b/harper-desktop/src-tauri/src/lib.rs
@@ -0,0 +1,660 @@
+use self::highlighter::Highlighter;
+use self::highlighter_service::HighlighterService;
+use crate::communication::{Client, ProtocolError};
+use crate::config::{Config, Integration};
+use clap::{Parser, Subcommand};
+use harper_core::{
+ Dialect, DictWordMetadata, Document, IgnoredLints,
+ linting::{FlatConfig, Lint, LintGroup},
+ spell::{Dictionary, MutableDictionary},
+};
+use std::{cell::RefCell, rc::Rc, sync::Arc, time::Duration};
+use tauri::{
+ Manager, State, WebviewUrl, WebviewWindowBuilder, WindowEvent,
+ image::Image,
+ menu::{Menu, MenuItem, PredefinedMenuItem},
+ tray::{MouseButton, TrayIconBuilder, TrayIconEvent},
+};
+use tokio::{
+ io::{Stdin, Stdout},
+ runtime::{Builder, Runtime},
+ sync::Mutex,
+};
+
+pub mod color;
+pub mod communication;
+pub mod config;
+pub mod highlighter;
+pub mod highlighter_process;
+pub mod highlighter_service;
+pub mod lint_kind_color;
+mod os_broker;
+pub mod rect;
+
+#[cfg(target_os = "macos")]
+mod mac_broker;
+
+#[derive(Parser)]
+struct Args {
+ #[command(subcommand)]
+ command: Option<Command>,
+}
+
+#[derive(Subcommand)]
+enum Command {
+ Highlighter,
+}
+
+const EDITOR_WINDOW_LABEL: &str = "main";
+const SETTINGS_WINDOW_LABEL: &str = "settings";
+const TRAY_MENU_BAR_ID: &str = "harper-menu-bar";
+const TOGGLE_SERVICE_MENU_ID: &str = "toggle-service";
+const OPEN_EDITOR_MENU_ID: &str = "open-editor";
+const SETTINGS_MENU_ID: &str = "settings";
+const QUIT_MENU_ID: &str = "quit";
+
+struct TrayMenu {
+ menu: Menu<tauri::Wry>,
+ service_toggle: MenuItem<tauri::Wry>,
+}
+
+fn service_menu_text(is_running: bool) -> &'static str {
+ match is_running {
+ true => "Stop Harper Service",
+ false => "Start Harper Service",
+ }
+}
+
+fn service_status_color(is_running: bool) -> [u8; 4] {
+ match is_running {
+ true => [34, 197, 94, 255],
+ false => [239, 68, 68, 255],
+ }
+}
+
+fn menu_bar_icon(is_running: bool) -> tauri::Result<Image<'static>> {
+ let icon = Image::from_bytes(include_bytes!("../icons/menu-bar-icon.png"))?;
+ let width = icon.width();
+ let height = icon.height();
+ let mut rgba = icon.rgba().to_vec();
+
+ draw_status_line(&mut rgba, width, height, service_status_color(is_running));
+
+ Ok(Image::new_owned(rgba, width, height))
+}
+
+fn draw_status_line(rgba: &mut [u8], width: u32, height: u32, color: [u8; 4]) {
+ let line_height = (height.min(width) / 14).max(3);
+ let start_y = height.saturating_sub(line_height);
+
+ for y in start_y..height {
+ for x in 0..width {
+ let index = ((y * width + x) * 4) as usize;
+ rgba[index..index + 4].copy_from_slice(&color);
+ }
+ }
+}
+
+fn show_editor_window(app: &tauri::AppHandle) -> tauri::Result<()> {
+ if let Some(window) = app.get_webview_window(EDITOR_WINDOW_LABEL) {
+ window.show()?;
+ window.set_focus()?;
+ return Ok(());
+ }
+
+ let window = WebviewWindowBuilder::new(
+ app,
+ EDITOR_WINDOW_LABEL,
+ WebviewUrl::App("index.html".into()),
+ )
+ .title("harper-desktop")
+ .inner_size(800.0, 600.0)
+ .build()?;
+ window.set_focus()?;
+
+ Ok(())
+}
+
+fn show_settings_window(app: &tauri::AppHandle) -> tauri::Result<()> {
+ if let Some(window) = app.get_webview_window(SETTINGS_WINDOW_LABEL) {
+ window.show()?;
+ window.set_focus()?;
+ return Ok(());
+ }
+
+ WebviewWindowBuilder::new(
+ app,
+ SETTINGS_WINDOW_LABEL,
+ WebviewUrl::App("index.html".into()),
+ )
+ .title("Harper Settings")
+ .inner_size(920.0, 680.0)
+ .min_inner_size(780.0, 520.0)
+ .center()
+ .build()?;
+
+ Ok(())
+}
+
+fn tray_menu(app: &tauri::App, is_running: bool) -> tauri::Result<TrayMenu> {
+ let service_toggle = MenuItem::with_id(
+ app,
+ TOGGLE_SERVICE_MENU_ID,
+ service_menu_text(is_running),
+ true,
+ None::<&str>,
+ )?;
+ let open_editor =
+ MenuItem::with_id(app, OPEN_EDITOR_MENU_ID, "Open Editor", true, None::<&str>)?;
+ let separator = PredefinedMenuItem::separator(app)?;
+ let settings = MenuItem::with_id(app, SETTINGS_MENU_ID, "Settings", true, None::<&str>)?;
+ let quit = MenuItem::with_id(app, QUIT_MENU_ID, "Quit", true, None::<&str>)?;
+
+ let menu = Menu::with_items(
+ app,
+ &[&service_toggle, &open_editor, &separator, &settings, &quit],
+ )?;
+
+ Ok(TrayMenu {
+ menu,
+ service_toggle,
+ })
+}
+
+fn update_service_tray_state(
+ app: &tauri::AppHandle,
+ service_toggle: &MenuItem<tauri::Wry>,
+ is_running: bool,
+) -> tauri::Result<()> {
+ service_toggle.set_text(service_menu_text(is_running))?;
+
+ if let Some(tray) = app.tray_by_id(TRAY_MENU_BAR_ID) {
+ tray.set_icon(Some(menu_bar_icon(is_running)?))?;
+ }
+
+ Ok(())
+}
+
+fn should_hide_window_on_close(label: &str) -> bool {
+ label == EDITOR_WINDOW_LABEL || label == SETTINGS_WINDOW_LABEL
+}
+
+#[tauri::command]
+async fn get_lint_config(config: State<'_, Arc<Mutex<Config>>>) -> Result<FlatConfig, String> {
+ let mut lint_config = config.lock().await.lint_config.clone();
+ lint_config.fill_with_curated();
+
+ Ok(lint_config)
+}
+
+#[tauri::command]
+async fn get_dialect(config: State<'_, Arc<Mutex<Config>>>) -> Result<Dialect, String> {
+ Ok(config.lock().await.dialect)
+}
+
+#[tauri::command]
+async fn set_dialect(
+ dialect: Dialect,
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<(), String> {
+ let mut config = config.lock().await;
+ config.dialect = dialect;
+ config
+ .save_to_system()
+ .await
+ .map_err(|error| error.to_string())?;
+
+ Ok(())
+}
+
+#[tauri::command]
+async fn set_lint_config(
+ lint_config: FlatConfig,
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<(), String> {
+ let mut lint_config = lint_config;
+ lint_config.fill_with_curated();
+
+ let mut config = config.lock().await;
+ config.lint_config = lint_config;
+ config
+ .save_to_system()
+ .await
+ .map_err(|error| error.to_string())?;
+
+ Ok(())
+}
+
+#[tauri::command]
+async fn get_dictionary(config: State<'_, Arc<Mutex<Config>>>) -> Result<Vec<String>, String> {
+ let mut words = config
+ .lock()
+ .await
+ .mutable_dictionary
+ .words_iter()
+ .map(|word| word.iter().collect::<String>())
+ .collect::<Vec<_>>();
+ words.sort();
+
+ Ok(words)
+}
+
+#[tauri::command]
+async fn set_dictionary(
+ words: Vec<String>,
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<(), String> {
+ let mut dictionary = MutableDictionary::new();
+ dictionary.extend_words(words.into_iter().map(|word| {
+ (
+ word.chars().collect::<Vec<_>>(),
+ DictWordMetadata::default(),
+ )
+ }));
+
+ let mut config = config.lock().await;
+ config.mutable_dictionary = dictionary;
+ config
+ .save_to_system()
+ .await
+ .map_err(|error| error.to_string())?;
+
+ Ok(())
+}
+
+#[tauri::command]
+async fn ignore_lint(
+ ignored_lints: String,
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<(), String> {
+ let ignored_lints =
+ serde_json::from_str::<IgnoredLints>(&ignored_lints).map_err(|error| error.to_string())?;
+
+ let mut config = config.lock().await;
+ config.ignored_lints.append(ignored_lints);
+ config
+ .save_to_system()
+ .await
+ .map_err(|error| error.to_string())?;
+
+ Ok(())
+}
+
+#[tauri::command]
+async fn add_to_dictionary(
+ word: String,
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<(), String> {
+ let mut config = config.lock().await;
+ config
+ .mutable_dictionary
+ .append_word_str(&word, DictWordMetadata::default());
+ config
+ .save_to_system()
+ .await
+ .map_err(|error| error.to_string())?;
+
+ Ok(())
+}
+
+#[tauri::command]
+async fn get_integrations(
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<Vec<Integration>, String> {
+ Ok(config.lock().await.integrations.clone())
+}
+
+#[tauri::command]
+async fn add_integration(
+ bundle_id: String,
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<(), String> {
+ let mut config = config.lock().await;
+ config.add_integration(bundle_id);
+ config
+ .save_to_system()
+ .await
+ .map_err(|error| error.to_string())?;
+
+ Ok(())
+}
+
+#[tauri::command]
+async fn remove_integration(
+ bundle_id: String,
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<(), String> {
+ let mut config = config.lock().await;
+ config.remove_integration(&bundle_id);
+ config
+ .save_to_system()
+ .await
+ .map_err(|error| error.to_string())?;
+
+ Ok(())
+}
+
+#[tauri::command]
+async fn set_integration_enabled(
+ bundle_id: String,
+ enabled: bool,
+ config: State<'_, Arc<Mutex<Config>>>,
+) -> Result<(), String> {
+ let mut config = config.lock().await;
+ config.set_integration_enabled(&bundle_id, enabled);
+ config
+ .save_to_system()
+ .await
+ .map_err(|error| error.to_string())?;
+
+ Ok(())
+}
+
+#[cfg_attr(mobile, tauri::mobile_entry_point)]
+pub fn run() {
+ let args = Args::parse();
+
+ match args.command {
+ Some(Command::Highlighter) => run_highlighter(),
+ None => run_tauri(),
+ }
+}
+
+pub fn run_tauri() {
+ let config_runtime = Builder::new_current_thread()
+ .enable_all()
+ .build()
+ .expect("failed to build config runtime");
+ let config = match config_runtime.block_on(Config::load_from_system()) {
+ Ok(config) => config,
+ Err(error) => {
+ eprintln!("failed to load config, using defaults: {error}");
+ Config::new()
+ }
+ };
+ let config = Arc::new(Mutex::new(config));
+ let highlighter_service = HighlighterService::new(config.clone());
+
+ if let Err(error) = highlighter_service.start() {
+ eprintln!("failed to start highlighter service: {error}");
+ }
+
+ tauri::Builder::default()
+ .manage(config)
+ .manage(highlighter_service)
+ .plugin(tauri_plugin_autostart::init(
+ tauri_plugin_autostart::MacosLauncher::LaunchAgent,
+ None,
+ ))
+ .plugin(tauri_plugin_opener::init())
+ .invoke_handler(tauri::generate_handler![
+ get_lint_config,
+ get_dialect,
+ set_dialect,
+ set_lint_config,
+ get_dictionary,
+ set_dictionary,
+ ignore_lint,
+ add_to_dictionary,
+ get_integrations,
+ add_integration,
+ remove_integration,
+ set_integration_enabled,
+ ])
+ .on_window_event(|window, event| {
+ if should_hide_window_on_close(window.label())
+ && let WindowEvent::CloseRequested { api, .. } = event
+ {
+ api.prevent_close();
+
+ if let Err(error) = window.hide() {
+ eprintln!("failed to hide {} window: {error}", window.label());
+ }
+ }
+ })
+ .setup(|app| {
+ let is_service_running = app.state::<HighlighterService>().is_running();
+ let menu = tray_menu(app, is_service_running)?;
+ let service_toggle = menu.service_toggle.clone();
+
+ let tray = TrayIconBuilder::with_id(TRAY_MENU_BAR_ID)
+ .menu(&menu.menu)
+ .icon(menu_bar_icon(is_service_running)?)
+ .tooltip("Harper Desktop")
+ .show_menu_on_left_click(false)
+ .on_menu_event(move |app, event| match event.id().as_ref() {
+ TOGGLE_SERVICE_MENU_ID => match app.state::<HighlighterService>().toggle() {
+ Ok(status) => {
+ if let Err(error) =
+ update_service_tray_state(app, &service_toggle, status)
+ {
+ eprintln!("failed to update service tray state: {error}");
+ }
+ }
+ Err(error) => {
+ eprintln!("failed to toggle highlighter service: {error}");
+
+ let is_running = app.state::<HighlighterService>().is_running();
+ if let Err(error) =
+ update_service_tray_state(app, &service_toggle, is_running)
+ {
+ eprintln!("failed to update service tray state: {error}");
+ }
+ }
+ },
+ OPEN_EDITOR_MENU_ID => {
+ if let Err(error) = show_editor_window(app) {
+ eprintln!("failed to show editor window: {error}");
+ }
+ }
+ SETTINGS_MENU_ID => {
+ if let Err(error) = show_settings_window(app) {
+ eprintln!("failed to show settings window: {error}");
+ }
+ }
+ QUIT_MENU_ID => app.exit(0),
+ _ => {}
+ })
+ .on_tray_icon_event(|tray, event| {
+ if let TrayIconEvent::Click {
+ button: MouseButton::Left,
+ ..
+ } = event
+ {
+ let app = tray.app_handle().clone();
+
+ if let Err(error) = show_settings_window(&app) {
+ eprintln!("failed to show settings window: {error}");
+ }
+ }
+ });
+
+ tray.build(app)?;
+
+ Ok(())
+ })
+ .run(tauri::generate_context!())
+ .expect("error while running tauri application");
+}
+
+pub fn run_highlighter() {
+ let client = Rc::new(RefCell::new(Client::current_process()));
+ let sync_runtime = Rc::new(
+ Builder::new_current_thread()
+ .enable_all()
+ .build()
+ .expect("failed to build highlighter protocol runtime"),
+ );
+
+ let startup_config = fetch_highlighter_config(&mut client.borrow_mut(), &sync_runtime);
+
+ let startup_config = match startup_config {
+ Ok(config) => config,
+ Err(error) => {
+ eprintln!("failed to hydrate highlighter config, using defaults: {error}");
+ Config::new()
+ }
+ };
+
+ let startup_linter = startup_config.create_linter();
+ let ignored_lints = Rc::new(RefCell::new(startup_config.ignored_lints));
+ let user_dictionary = Rc::new(RefCell::new(startup_config.mutable_dictionary));
+ let dialect = Rc::new(RefCell::new(startup_config.dialect));
+ let integrations = Rc::new(RefCell::new(startup_config.integrations));
+ let linter = Rc::new(RefCell::new(startup_linter));
+
+ let lint_ignored_lints = ignored_lints.clone();
+ let lint_linter = linter.clone();
+ let lint_user_dictionary = user_dictionary.clone();
+
+ let ignore_client = client.clone();
+ let ignore_runtime = sync_runtime.clone();
+ let ignore_ignored_lints = ignored_lints.clone();
+
+ let dictionary_client = client.clone();
+ let dictionary_runtime = sync_runtime.clone();
+ let dictionary_user_dictionary = user_dictionary.clone();
+ let dictionary_linter = linter.clone();
+ let dictionary_dialect = dialect.clone();
+
+ let disable_client = client.clone();
+ let disable_runtime = sync_runtime.clone();
+ let disable_linter = linter.clone();
+
+ let refresh_client = client.clone();
+ let refresh_runtime = sync_runtime.clone();
+ let refresh_ignored_lints = ignored_lints.clone();
+ let refresh_user_dictionary = user_dictionary.clone();
+ let refresh_dialect = dialect.clone();
+ let refresh_integrations = integrations.clone();
+ let refresh_linter = linter.clone();
+
+ let lint_text = move |text: &str| {
+ let dictionary =
+ Config::dictionary_from_user_dictionary(lint_user_dictionary.borrow().clone());
+ let doc = Document::new_markdown_default(text, &dictionary);
+ let mut organized_lints = lint_linter.borrow_mut().organized_lints(&doc);
+
+ for lints in organized_lints.values_mut() {
+ lint_ignored_lints.borrow().remove_ignored(lints, &doc);
+ }
+
+ organized_lints
+ };
+
+ let ignore_lint = move |lint: &Lint, document: &Document| {
+ {
+ ignore_ignored_lints
+ .borrow_mut()
+ .ignore_lint(lint, document);
+ }
+
+ let snapshot = ignore_ignored_lints.borrow().clone();
+ if let Err(error) =
+ ignore_runtime.block_on(ignore_client.borrow_mut().ignore_lint(&snapshot))
+ {
+ eprintln!("failed to sync ignored lints: {error}");
+ }
+ };
+
+ let add_to_dictionary = move |word: &str| {
+ dictionary_user_dictionary
+ .borrow_mut()
+ .append_word_str(word, DictWordMetadata::default());
+
+ let lint_config = dictionary_linter.borrow().config.clone();
+ let config = Config {
+ mutable_dictionary: dictionary_user_dictionary.borrow().clone(),
+ dialect: *dictionary_dialect.borrow(),
+ ignored_lints: IgnoredLints::new(),
+ lint_config,
+ integrations: Vec::new(),
+ };
+ *dictionary_linter.borrow_mut() = config.create_linter();
+
+ if let Err(error) =
+ dictionary_runtime.block_on(dictionary_client.borrow_mut().add_to_dictionary(word))
+ {
+ eprintln!("failed to sync dictionary update: {error}");
+ }
+ };
+
+ let disable_rule = move |rule_name: &str| match disable_runtime
+ .block_on(disable_client.borrow_mut().disable_rule(rule_name))
+ {
+ Ok(config) => disable_linter.borrow_mut().config = config,
+ Err(error) => eprintln!("failed to disable rule {rule_name}: {error}"),
+ };
+
+ let refresh_config = move || match fetch_highlighter_config(
+ &mut refresh_client.borrow_mut(),
+ &refresh_runtime,
+ ) {
+ Ok(config) => apply_highlighter_config(
+ config,
+ &refresh_ignored_lints,
+ &refresh_user_dictionary,
+ &refresh_dialect,
+ &refresh_integrations,
+ &refresh_linter,
+ ),
+ Err(error) => eprintln!("failed to refresh highlighter config: {error}"),
+ };
+
+ #[cfg(target_os = "macos")]
+ let broker = mac_broker::MacBroker::new(integrations);
+
+ #[cfg(not(target_os = "macos"))]
+ let broker = os_broker::NoopBroker;
+
+ if let Err(error) = Highlighter::new(
+ broker,
+ lint_text,
+ ignore_lint,
+ add_to_dictionary,
+ disable_rule,
+ refresh_config,
+ )
+ .map(|highlighter| highlighter.with_read_interval(Duration::from_millis(16)))
+ .and_then(Highlighter::run_window_for_each_monitor)
+ {
+ eprintln!("failed to run highlighter: {error}");
+ }
+}
+
+fn fetch_highlighter_config(
+ client: &mut Client<Stdin, Stdout>,
+ runtime: &Runtime,
+) -> Result<Config, ProtocolError> {
+ runtime.block_on(async {
+ let dialect = client.get_dialect().await?;
+ let mutable_dictionary = client.get_dictionary().await?;
+ let ignored_lints = client.get_ignored_lints().await?;
+ let lint_config = client.get_lint_config().await?;
+ let integrations = client.get_integrations().await?;
+
+ Ok(Config {
+ dialect,
+ mutable_dictionary,
+ ignored_lints,
+ lint_config,
+ integrations,
+ })
+ })
+}
+
+fn apply_highlighter_config(
+ config: Config,
+ ignored_lints: &Rc<RefCell<IgnoredLints>>,
+ user_dictionary: &Rc<RefCell<MutableDictionary>>,
+ dialect: &Rc<RefCell<Dialect>>,
+ integrations: &Rc<RefCell<Vec<Integration>>>,
+ linter: &Rc<RefCell<LintGroup>>,
+) {
+ let linter_config = config.create_linter();
+ *ignored_lints.borrow_mut() = config.ignored_lints;
+ *user_dictionary.borrow_mut() = config.mutable_dictionary;
+ *dialect.borrow_mut() = config.dialect;
+ *integrations.borrow_mut() = config.integrations;
+ *linter.borrow_mut() = linter_config;
+}
diff --git a/harper-desktop/src-tauri/src/lint_kind_color.rs b/harper-desktop/src-tauri/src/lint_kind_color.rs
new file mode 100644
index 000000000..8dbf1e9ad
--- /dev/null
+++ b/harper-desktop/src-tauri/src/lint_kind_color.rs
@@ -0,0 +1,76 @@
+use harper_core::linting::LintKind;
+
+use crate::color::Color;
+
+pub const LINT_KINDS: [LintKind; 20] = [
+ LintKind::Agreement,
+ LintKind::BoundaryError,
+ LintKind::Capitalization,
+ LintKind::Eggcorn,
+ LintKind::Enhancement,
+ LintKind::Formatting,
+ LintKind::Grammar,
+ LintKind::Malapropism,
+ LintKind::Miscellaneous,
+ LintKind::Nonstandard,
+ LintKind::Punctuation,
+ LintKind::Readability,
+ LintKind::Redundancy,
+ LintKind::Regionalism,
+ LintKind::Repetition,
+ LintKind::Spelling,
+ LintKind::Style,
+ LintKind::Typo,
+ LintKind::Usage,
+ LintKind::WordChoice,
+];
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum TextColor {
+ Black,
+ White,
+}
+
+pub fn lint_kind_color(lint_kind: LintKind) -> Color {
+ match lint_kind {
+ LintKind::Agreement => Color::new(0x22, 0x8B, 0x22),
+ LintKind::BoundaryError => Color::new(0x8B, 0x45, 0x13),
+ LintKind::Capitalization => Color::new(0x54, 0x0D, 0x6E),
+ LintKind::Eggcorn => Color::new(0xFF, 0x8C, 0x00),
+ LintKind::Enhancement => Color::new(0x0E, 0xAD, 0x69),
+ LintKind::Formatting => Color::new(0x7D, 0x3C, 0x98),
+ LintKind::Grammar => Color::new(0x9B, 0x59, 0xB6),
+ LintKind::Malapropism => Color::new(0xC7, 0x15, 0x85),
+ LintKind::Miscellaneous => Color::new(0x3B, 0xCE, 0xAC),
+ LintKind::Nonstandard => Color::new(0x00, 0x8B, 0x8B),
+ LintKind::Punctuation => Color::new(0xD4, 0x85, 0x0F),
+ LintKind::Readability => Color::new(0x2E, 0x8B, 0x57),
+ LintKind::Redundancy => Color::new(0x46, 0x82, 0xB4),
+ LintKind::Regionalism => Color::new(0xC0, 0x61, 0xCB),
+ LintKind::Repetition => Color::new(0x00, 0xA6, 0x7C),
+ LintKind::Spelling => Color::new(0xEE, 0x42, 0x66),
+ LintKind::Style => Color::new(0xFF, 0xD2, 0x3F),
+ LintKind::Typo => Color::new(0xFF, 0x6B, 0x35),
+ LintKind::Usage => Color::new(0x1E, 0x90, 0xFF),
+ LintKind::WordChoice => Color::new(0x22, 0x8B, 0x22),
+ }
+}
+
+pub fn lint_kind_color_from_key(lint_kind_key: &str) -> Option<Color> {
+ LintKind::from_string_key(lint_kind_key).map(lint_kind_color)
+}
+
+pub fn lint_kind_text_color(lint_kind: LintKind) -> TextColor {
+ contrasting_text_color(lint_kind_color(lint_kind))
+}
+
+pub fn contrasting_text_color(color: Color) -> TextColor {
+ let luminance =
+ 0.299 * f64::from(color.r) + 0.587 * f64::from(color.g) + 0.114 * f64::from(color.b);
+
+ if luminance > 186.0 {
+ TextColor::Black
+ } else {
+ TextColor::White
+ }
+}
diff --git a/harper-desktop/src-tauri/src/mac_broker.rs b/harper-desktop/src-tauri/src/mac_broker.rs
new file mode 100644
index 000000000..4baf88e32
--- /dev/null
+++ b/harper-desktop/src-tauri/src/mac_broker.rs
@@ -0,0 +1,367 @@
+use accessibility::attribute::{AXAttribute, AXUIElementAttributes};
+use accessibility::ui_element::AXUIElement;
+use accessibility::{Error, TreeVisitor, TreeWalker, TreeWalkerFlow};
+use accessibility_sys::{
+ AXUIElementCopyAttributeValue, AXUIElementCopyParameterizedAttributeValue, AXUIElementGetPid,
+ AXValueCreate, AXValueGetType, AXValueGetValue, AXValueRef, error_string,
+ kAXBoundsForRangeParameterizedAttribute, kAXErrorIllegalArgument, kAXErrorNoValue,
+ kAXErrorParameterizedAttributeUnsupported, kAXErrorSuccess, kAXFocusedApplicationAttribute,
+ kAXPositionAttribute, kAXSizeAttribute, kAXValueTypeCFRange, kAXValueTypeCGPoint,
+ kAXValueTypeCGRect, kAXValueTypeCGSize, pid_t,
+};
+use core::{ffi::c_void, mem::MaybeUninit};
+use core_foundation::base::{CFRange, CFType, TCFType};
+use core_foundation::string::CFString;
+use core_graphics::event::CGEvent;
+use core_graphics::event_source::{CGEventSource, CGEventSourceStateID};
+use harper_core::linting::{Lint, Suggestion};
+use objc2_app_kit::NSRunningApplication;
+use objc2_foundation::{NSPoint, NSRect, NSSize};
+use std::{cell::RefCell, collections::BTreeMap, error::Error as StdError, ptr, rc::Rc};
+
+use crate::config::{Config, Integration};
+use crate::os_broker::OsBroker;
+use crate::rect::{ActionableLint, Rect};
+
+/// macOS implementation of the OS data the highlighter needs.
+///
+/// `MacBroker` owns focus memory because clicking the overlay can make the highlighter process the
+/// focused application. Remembering the last non-highlighter PID lets accessibility reads continue
+/// targeting the app the user was reviewing.
+pub struct MacBroker {
+ last_focused: Option<pid_t>,
+ integrations: Rc<RefCell<Vec<Integration>>>,
+}
+
+impl MacBroker {
+ pub fn new(integrations: Rc<RefCell<Vec<Integration>>>) -> Self {
+ Self {
+ last_focused: None,
+ integrations,
+ }
+ }
+
+ fn target_pid(&mut self) -> Result<Option<pid_t>, Box<dyn StdError>> {
+ let focused_pid = focused_window_pid()?;
+ let current_pid = std::process::id() as pid_t;
+
+ if focused_pid == current_pid {
+ Ok(self.last_focused)
+ } else {
+ self.last_focused = Some(focused_pid);
+ Ok(Some(focused_pid))
+ }
+ }
+}
+
+impl Default for MacBroker {
+ fn default() -> Self {
+ Self::new(Rc::new(RefCell::new(Config::curated_integrations())))
+ }
+}
+
+impl OsBroker for MacBroker {
+ fn get_boxes(
+ &mut self,
+ lint_text: &mut dyn FnMut(&str) -> BTreeMap<String, Vec<Lint>>,
+ ) -> Vec<ActionableLint> {
+ let pid = match self.target_pid() {
+ Ok(Some(pid)) => pid,
+ Ok(None) => return Vec::new(),
+ Err(err) => {
+ eprintln!("Unable to identify focused window: {err}");
+ return Vec::new();
+ }
+ };
+
+ if !is_pid_approved(pid, &self.integrations.borrow()) {
+ return Vec::new();
+ }
+
+ let el = AXUIElement::application(pid);
+
+ let walker = TreeWalker::new();
+ let collector = RectCollector::new(lint_text);
+
+ walker.walk(&el, &collector);
+
+ collector.unwrap_rects()
+ }
+
+ fn cursor_position(&self) -> Option<egui::Pos2> {
+ let source = CGEventSource::new(CGEventSourceStateID::CombinedSessionState).ok()?;
+ let event = CGEvent::new(source).ok()?;
+ let location = event.location();
+
+ Some(egui::pos2(location.x as f32, location.y as f32))
+ }
+}
+
+fn focused_window_pid() -> Result<pid_t, Box<dyn StdError>> {
+ let system = AXUIElement::system_wide();
+ let app = ax_element_attribute(&system, kAXFocusedApplicationAttribute)?;
+
+ let mut pid: pid_t = 0;
+ let err = unsafe { AXUIElementGetPid(app.as_concrete_TypeRef(), &mut pid) };
+
+ if err != kAXErrorSuccess {
+ return Err(format!("AXUIElementGetPid failed: {}", error_string(err)).into());
+ }
+
+ Ok(pid)
+}
+
+fn is_pid_approved(pid: pid_t, integrations: &[Integration]) -> bool {
+ let bundle_identifier = match bundle_identifier_for_pid(pid) {
+ Ok(Some(bundle_identifier)) => bundle_identifier,
+ Ok(None) => return false,
+ Err(error) => {
+ eprintln!("Unable to identify focused app bundle: {error}");
+ return false;
+ }
+ };
+
+ Config::is_integration_enabled_in(integrations, &bundle_identifier)
+}
+
+fn bundle_identifier_for_pid(pid: pid_t) -> Result<Option<String>, Box<dyn StdError>> {
+ let Some(app) = (unsafe { NSRunningApplication::runningApplicationWithProcessIdentifier(pid) })
+ else {
+ return Ok(None);
+ };
+ let Some(bundle_identifier) = (unsafe { app.bundleIdentifier() }) else {
+ return Ok(None);
+ };
+
+ Ok(Some(bundle_identifier.to_string()))
+}
+
+fn ax_element_attribute(
+ element: &AXUIElement,
+ name: &str,
+) -> Result<AXUIElement, Box<dyn StdError>> {
+ let attr = CFString::new(name);
+ let mut value = ptr::null();
+
+ let err = unsafe {
+ AXUIElementCopyAttributeValue(
+ element.as_concrete_TypeRef(),
+ attr.as_concrete_TypeRef(),
+ &mut value,
+ )
+ };
+
+ if err != kAXErrorSuccess {
+ return Err(format!(
+ "AXUIElementCopyAttributeValue failed: {}",
+ error_string(err)
+ )
+ .into());
+ }
+
+ if value.is_null() {
+ return Err(format!("AXUIElementCopyAttributeValue returned null for {name}").into());
+ }
+
+ Ok(unsafe { AXUIElement::wrap_under_create_rule(value as _) })
+}
+
+struct RectCollector<'a> {
+ rects: RefCell<Vec<ActionableLint>>,
+ lint_text: RefCell<&'a mut dyn FnMut(&str) -> BTreeMap<String, Vec<Lint>>>,
+}
+
+impl TreeVisitor for RectCollector<'_> {
+ fn enter_element(&self, element: &AXUIElement) -> TreeWalkerFlow {
+ if let Ok(value) = element.value()
+ && is_textarea(element)
+ {
+ let string =
+ unsafe { CFString::wrap_under_get_rule(value.as_CFTypeRef() as _).to_string() };
+
+ let mut rects = self.rects.borrow_mut();
+ let organized_lints = (self.lint_text.borrow_mut())(&string);
+
+ for (rule_name, lints) in organized_lints {
+ for lint in lints {
+ if let Ok(Some(rect)) = element_rect_for_text_range(
+ element,
+ lint.span.start as isize,
+ lint.span.len() as isize,
+ ) {
+ let element = element.clone();
+ let source_text = string.clone();
+ let suggestion_source_text = string.clone();
+ let suggestion_lint = lint.clone();
+
+ rects.push(ActionableLint::new(
+ rect,
+ rule_name.clone(),
+ lint,
+ source_text,
+ move |suggestion| {
+ apply_suggestion_to_element(
+ element,
+ suggestion_source_text,
+ suggestion_lint,
+ suggestion,
+ );
+ },
+ ));
+ }
+ }
+ }
+ }
+
+ TreeWalkerFlow::Continue
+ }
+ fn exit_element(&self, element: &AXUIElement) {}
+}
+
+impl<'a> RectCollector<'a> {
+ fn new(lint_text: &'a mut dyn FnMut(&str) -> BTreeMap<String, Vec<Lint>>) -> Self {
+ Self {
+ rects: RefCell::new(Vec::new()),
+ lint_text: RefCell::new(lint_text),
+ }
+ }
+
+ fn unwrap_rects(self) -> Vec<ActionableLint> {
+ self.rects.into_inner()
+ }
+}
+
+fn apply_suggestion_to_element(
+ element: AXUIElement,
+ source_text: String,
+ lint: Lint,
+ suggestion: Suggestion,
+) {
+ let mut chars = source_text.chars().collect::<Vec<_>>();
+ suggestion.apply(lint.span, &mut chars);
+ let updated = chars.into_iter().collect::<String>();
+ let value = CFString::new(&updated);
+
+ if let Err(error) = element.set_value(value.as_CFType()) {
+ eprintln!("Unable to apply suggestion: {error}");
+ }
+}
+
+fn is_textarea(el: &AXUIElement) -> bool {
+ if let Ok(role) = el.role()
+ && role == "AXTextArea"
+ {
+ return true;
+ }
+
+ false
+}
+
+fn ax_value<T>(element: &AXUIElement, name: &str, value_type: u32) -> Result<Option<T>, Error> {
+ let attr = AXAttribute::<CFType>::new(&CFString::new(name));
+ let value = element.attribute(&attr)?;
+ let mut out = MaybeUninit::<T>::uninit();
+
+ let ok = unsafe {
+ AXValueGetValue(
+ value.as_CFTypeRef() as AXValueRef,
+ value_type,
+ out.as_mut_ptr() as *mut c_void,
+ )
+ };
+
+ Ok(ok.then(|| unsafe { out.assume_init() }))
+}
+
+fn element_rect(element: &AXUIElement) -> Result<Option<Rect>, Error> {
+ let Some(position) = ax_value::<NSPoint>(element, kAXPositionAttribute, kAXValueTypeCGPoint)?
+ else {
+ return Ok(None);
+ };
+
+ let Some(size) = ax_value::<NSSize>(element, kAXSizeAttribute, kAXValueTypeCGSize)? else {
+ return Ok(None);
+ };
+
+ Ok(Some(Rect {
+ x: position.x,
+ y: position.y,
+ width: size.width,
+ height: size.height,
+ }))
+}
+
+fn element_rect_for_text_range(
+ element: &AXUIElement,
+ start_index: isize,
+ length: isize,
+) -> Result<Option<Rect>, Error> {
+ let range = CFRange {
+ location: start_index,
+ length,
+ };
+
+ let range_value_ref = unsafe {
+ AXValueCreate(
+ kAXValueTypeCFRange,
+ &range as *const CFRange as *const c_void,
+ )
+ };
+
+ if range_value_ref.is_null() {
+ return Err(Error::Ax(kAXErrorIllegalArgument));
+ }
+
+ let range_value = unsafe { CFType::wrap_under_create_rule(range_value_ref as _) };
+ let attr = CFString::new(kAXBoundsForRangeParameterizedAttribute);
+ let mut value = ptr::null();
+
+ let error = unsafe {
+ AXUIElementCopyParameterizedAttributeValue(
+ element.as_concrete_TypeRef(),
+ attr.as_concrete_TypeRef(),
+ range_value.as_CFTypeRef(),
+ &mut value,
+ )
+ };
+
+ match error {
+ kAXErrorSuccess => {}
+ kAXErrorNoValue | kAXErrorParameterizedAttributeUnsupported => return Ok(None),
+ error => return Err(Error::Ax(error)),
+ }
+
+ if value.is_null() {
+ return Ok(None);
+ }
+
+ let value = unsafe { CFType::wrap_under_create_rule(value) };
+ let ax_value = value.as_CFTypeRef() as AXValueRef;
+
+ if unsafe { AXValueGetType(ax_value) } != kAXValueTypeCGRect {
+ return Ok(None);
+ }
+
+ let mut rect = MaybeUninit::<NSRect>::uninit();
+
+ let ok = unsafe {
+ AXValueGetValue(
+ ax_value,
+ kAXValueTypeCGRect,
+ rect.as_mut_ptr() as *mut c_void,
+ )
+ };
+
+ if !ok {
+ return Ok(None);
+ }
+
+ let rect = unsafe { rect.assume_init() };
+
+ Ok(Some(Rect {
+ x: rect.origin.x,
+ y: rect.origin.y,
+ width: rect.size.width,
+ height: rect.size.height,
+ }))
+}
diff --git a/harper-desktop/src-tauri/src/main.rs b/harper-desktop/src-tauri/src/main.rs
new file mode 100644
index 000000000..4d5dc2c92
--- /dev/null
+++ b/harper-desktop/src-tauri/src/main.rs
@@ -0,0 +1,6 @@
+// Prevents additional console window on Windows in release, DO NOT REMOVE!!
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
+fn main() {
+ harper_desktop_lib::run()
+}
diff --git a/harper-desktop/src-tauri/src/os_broker.rs b/harper-desktop/src-tauri/src/os_broker.rs
new file mode 100644
index 000000000..766f40af2
--- /dev/null
+++ b/harper-desktop/src-tauri/src/os_broker.rs
@@ -0,0 +1,39 @@
+use harper_core::linting::Lint;
+use std::collections::BTreeMap;
+
+use crate::rect::ActionableLint;
+
+pub type LintText = Box<dyn FnMut(&str) -> BTreeMap<String, Vec<Lint>>>;
+
+/// Provides platform-specific state needed by the highlighter without coupling rendering to an OS.
+///
+/// The highlighter needs both accessibility-derived lint rectangles and global cursor position, but
+/// those APIs are platform-specific. This trait keeps the event loop and renderer independent from
+/// macOS accessibility and pointer APIs.
+pub trait OsBroker {
+ fn get_boxes(
+ &mut self,
+ lint_text: &mut dyn FnMut(&str) -> BTreeMap<String, Vec<Lint>>,
+ ) -> Vec<ActionableLint>;
+
+ fn cursor_position(&self) -> Option<egui::Pos2>;
+}
+
+/// No-op platform broker for targets that do not have an OS implementation yet.
+///
+/// This lets the highlighter compile on non-macOS platforms while making it explicit that there is
+/// currently no accessibility or cursor integration there.
+pub struct NoopBroker;
+
+impl OsBroker for NoopBroker {
+ fn get_boxes(
+ &mut self,
+ _lint_text: &mut dyn FnMut(&str) -> BTreeMap<String, Vec<Lint>>,
+ ) -> Vec<ActionableLint> {
+ Vec::new()
+ }
+
+ fn cursor_position(&self) -> Option<egui::Pos2> {
+ None
+ }
+}
diff --git a/harper-desktop/src-tauri/src/rect.rs b/harper-desktop/src-tauri/src/rect.rs
new file mode 100644
index 000000000..61327f96b
--- /dev/null
+++ b/harper-desktop/src-tauri/src/rect.rs
@@ -0,0 +1,95 @@
+use crate::color::Color;
+use harper_core::linting::{Lint, Suggestion};
+
+#[derive(Debug, Clone, Copy, PartialEq)]
+pub struct Rect {
+ pub x: f64,
+ pub y: f64,
+ pub width: f64,
+ pub height: f64,
+}
+
+impl Rect {
+ pub fn new(x: f64, y: f64, width: f64, height: f64) -> Self {
+ Self {
+ x,
+ y,
+ width,
+ height,
+ }
+ }
+}
+
+#[derive(Debug, Clone, Copy, PartialEq)]
+pub struct ColoredRect {
+ pub x: f64,
+ pub y: f64,
+ pub width: f64,
+ pub height: f64,
+ pub color: Color,
+}
+
+/// A Harper lint paired with the screen-space rectangle where it should be rendered.
+///
+/// Harper owns the lint details and accessibility owns the geometry; this type keeps both pieces
+/// together without duplicating lint fields into highlighter-specific strings.
+#[derive(Debug, Clone, PartialEq)]
+pub struct PositionedLint {
+ pub rect: Rect,
+ pub lint: Lint,
+}
+
+/// A Harper lint paired with geometry, source context, and an OS-specific suggestion action.
+///
+/// The highlighter owns rendering and interaction, but the OS broker is the only layer that knows how
+/// to mutate the underlying text element. Storing a one-shot callback here keeps those responsibilities
+/// connected without teaching rendering code about Accessibility APIs.
+pub struct ActionableLint {
+ pub rect: Rect,
+ pub rule_name: String,
+ pub lint: Lint,
+ pub source_text: String,
+ apply_suggestion: Option<Box<dyn FnOnce(Suggestion)>>,
+}
+
+impl PositionedLint {
+ pub fn new(rect: Rect, lint: Lint) -> Self {
+ Self { rect, lint }
+ }
+}
+
+impl ActionableLint {
+ pub fn new(
+ rect: Rect,
+ rule_name: String,
+ lint: Lint,
+ source_text: String,
+ apply_suggestion: impl FnOnce(Suggestion) + 'static,
+ ) -> Self {
+ Self {
+ rect,
+ rule_name,
+ lint,
+ source_text,
+ apply_suggestion: Some(Box::new(apply_suggestion)),
+ }
+ }
+
+ pub fn apply_suggestion(&mut self, suggestion: Suggestion) {
+ if let Some(apply_suggestion) = self.apply_suggestion.take() {
+ apply_suggestion(suggestion);
+ }
+ }
+}
+
+impl ColoredRect {
+ pub fn new(x: f64, y: f64, width: f64, height: f64, color: Color) -> Self {
+ Self {
+ x,
+ y,
+ width,
+ height,
+ color,
+ }
+ }
+}
diff --git a/harper-desktop/src-tauri/tauri.conf.json b/harper-desktop/src-tauri/tauri.conf.json
new file mode 100644
index 000000000..f823a9462
--- /dev/null
+++ b/harper-desktop/src-tauri/tauri.conf.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://schema.tauri.app/config/2",
+ "productName": "harper-desktop",
+ "version": "0.1.0",
+ "identifier": "com.elijahpotter.harper-desktop",
+ "build": {
+ "beforeDevCommand": "pnpm dev",
+ "devUrl": "http://localhost:1420",
+ "beforeBuildCommand": "pnpm build",
+ "frontendDist": "../build"
+ },
+ "app": {
+ "windows": [],
+ "security": {
+ "csp": null
+ }
+ },
+ "bundle": {
+ "active": true,
+ "targets": "all",
+ "icon": [
+ "icons/32x32.png",
+ "icons/128x128.png",
+ "icons/icon.icns",
+ "icons/icon.ico"
+ ]
+ }
+}
diff --git a/harper-desktop/src/app.css b/harper-desktop/src/app.css
new file mode 100644
index 000000000..c660ee276
--- /dev/null
+++ b/harper-desktop/src/app.css
@@ -0,0 +1,85 @@
+@import "tailwindcss";
+
+@layer base {
+ html,
+ body {
+ height: 100%;
+ margin: 0;
+ }
+
+ body {
+ overflow: hidden;
+ }
+}
+
+@layer components {
+ .settings-icon {
+ width: 16px;
+ height: 16px;
+ flex: 0 0 16px;
+ display: inline-block;
+ background: currentColor;
+ -webkit-mask: var(--settings-icon-url) center / contain no-repeat;
+ mask: var(--settings-icon-url) center / contain no-repeat;
+ }
+
+ .settings-icon.getting-started {
+ --settings-icon-url: url("/settings-icons/rocket.svg");
+ }
+
+ .settings-icon.general {
+ --settings-icon-url: url("/settings-icons/gear.svg");
+ }
+
+ .settings-icon.writing {
+ --settings-icon-url: url("/settings-icons/quill.svg");
+ }
+
+ .settings-icon.dictionary {
+ --settings-icon-url: url("/settings-icons/book.svg");
+ }
+
+ .settings-icon.shortcuts {
+ --settings-icon-url: url("/settings-icons/key.svg");
+ }
+
+ .settings-icon.rules {
+ --settings-icon-url: url("/settings-icons/checklist.svg");
+ }
+
+ .settings-icon.weirpacks {
+ --settings-icon-url: url("/settings-icons/package.svg");
+ }
+
+ .settings-icon.integrations {
+ --settings-icon-url: url("/settings-icons/grid.svg");
+ }
+
+ .settings-icon.about {
+ --settings-icon-url: url("/settings-icons/info.svg");
+ }
+
+ .settings-icon.icon-check {
+ --settings-icon-url: url("/settings-icons/check.svg");
+ }
+
+ .settings-icon.icon-package {
+ --settings-icon-url: url("/settings-icons/package.svg");
+ }
+
+ .settings-icon.icon-search {
+ --settings-icon-url: url("/settings-icons/search.svg");
+ }
+
+ .settings-icon.icon-trash {
+ --settings-icon-url: url("/settings-icons/trash.svg");
+ }
+
+ .settings-icon.icon-upload {
+ --settings-icon-url: url("/settings-icons/upload.svg");
+ }
+
+ .settings-icon.icon-x {
+ --settings-icon-url: url("/settings-icons/x.svg");
+ }
+}
diff --git a/harper-desktop/src/app.html b/harper-desktop/src/app.html
new file mode 100644
index 000000000..0757ac4f7
--- /dev/null
+++ b/harper-desktop/src/app.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <link rel="icon" href="%sveltekit.assets%/favicon.png" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>Harper Desktop</title>
+ %sveltekit.head%
+ </head>
+ <body data-sveltekit-preload-data="hover">
+ <div style="display: contents">%sveltekit.body%</div>
+ </body>
+</html>
diff --git a/harper-desktop/src/lib/EditorView.svelte b/harper-desktop/src/lib/EditorView.svelte
new file mode 100644
index 000000000..883f1f0ee
--- /dev/null
+++ b/harper-desktop/src/lib/EditorView.svelte
@@ -0,0 +1,29 @@
+<script lang="ts">
+import type { Linter } from 'harper.js';
+import { Editor } from 'harper-editor';
+import { onMount } from 'svelte';
+import 'harper-editor/style.css';
+
+let linter: Linter | null = null;
+
+onMount(() => {
+ void createLinter();
+});
+
+async function createLinter() {
+ const [{ WorkerLinter }, { slimBinaryInlined }] = await Promise.all([
+ import('harper.js'),
+ import('harper.js/slimBinaryInlined'),
+ ]);
+
+ const nextLinter = new WorkerLinter({ binary: slimBinaryInlined });
+ await nextLinter.setup();
+ linter = nextLinter;
+}
+</script>
+
+<div class="h-screen w-screen">
+ {#if linter}
+ <Editor {linter} />
+ {/if}
+</div>
diff --git a/harper-desktop/src/lib/client.ts b/harper-desktop/src/lib/client.ts
new file mode 100644
index 000000000..d001b3e8b
--- /dev/null
+++ b/harper-desktop/src/lib/client.ts
@@ -0,0 +1,156 @@
+import { invoke } from '@tauri-apps/api/core';
+import { disable, enable, isEnabled } from '@tauri-apps/plugin-autostart';
+import type {
+ Dialect,
+ Lint,
+ LintConfig,
+ Linter,
+ LocalLinter as LocalLinterType,
+ StructuredLintConfig,
+} from 'harper.js';
+
+type RustDialect = 'American' | 'British' | 'Australian' | 'Canadian' | 'Indian';
+
+const DialectValue = {
+ American: 0,
+ British: 1,
+ Australian: 2,
+ Canadian: 3,
+ Indian: 4,
+} as const;
+
+let configLinterPromise: Promise<LocalLinterType> | null = null;
+
+function getConfigLinter(): Promise<LocalLinterType> {
+ configLinterPromise ??= Promise.all([
+ import('harper.js'),
+ import('harper.js/slimBinaryInlined'),
+ ]).then(
+ ([{ LocalLinter }, { slimBinaryInlined }]) => new LocalLinter({ binary: slimBinaryInlined }),
+ );
+
+ return configLinterPromise;
+}
+
+export interface Integration {
+ bundle_id: string;
+ enabled: boolean;
+}
+
+export class Client {
+ static async getLintConfig(): Promise<LintConfig> {
+ return await invoke<LintConfig>('get_lint_config');
+ }
+
+ static async getDefaultLintConfig(): Promise<LintConfig> {
+ const configLinter = await getConfigLinter();
+
+ return JSON.parse(await configLinter.getDefaultLintConfigAsJSON()) as LintConfig;
+ }
+
+ static async getStructuredLintConfig(): Promise<StructuredLintConfig> {
+ const configLinter = await getConfigLinter();
+
+ await configLinter.setLintConfigWithJSON(JSON.stringify(await Client.getLintConfig()));
+
+ return JSON.parse(await configLinter.getStructuredLintConfigJSON()) as StructuredLintConfig;
+ }
+
+ static async getDialect(): Promise<Dialect> {
+ return rustDialectToDialect(await invoke<RustDialect>('get_dialect'));
+ }
+
+ static async setDialect(dialect: Dialect): Promise<void> {
+ await invoke('set_dialect', { dialect: dialectToRustDialect(dialect) });
+ }
+
+ static async getLaunchAtStartup(): Promise<boolean> {
+ return await isEnabled();
+ }
+
+ static async setLaunchAtStartup(enabled: boolean): Promise<void> {
+ if (enabled) {
+ await enable();
+ } else {
+ await disable();
+ }
+ }
+
+ static async setLintConfig(lintConfig: LintConfig): Promise<void> {
+ await invoke('set_lint_config', { lintConfig });
+ }
+
+ static async getDictionary(): Promise<string[]> {
+ return await invoke<string[]>('get_dictionary');
+ }
+
+ static async setDictionary(words: string[]): Promise<void> {
+ await invoke('set_dictionary', { words });
+ }
+
+ static async disableRule(ruleName: string): Promise<LintConfig> {
+ const lintConfig = await Client.getLintConfig();
+ lintConfig[ruleName] = false;
+
+ await Client.setLintConfig(lintConfig);
+
+ return lintConfig;
+ }
+
+ static async ignoreLint(linter: Linter, source: string, lint: Lint): Promise<void> {
+ await linter.ignoreLint(source, lint);
+ const ignoredLints = await linter.exportIgnoredLints();
+
+ await invoke('ignore_lint', { ignoredLints });
+ }
+
+ static async addToDictionary(word: string): Promise<void> {
+ await invoke('add_to_dictionary', { word });
+ }
+
+ static async getIntegrations(): Promise<Integration[]> {
+ return await invoke<Integration[]>('get_integrations');
+ }
+
+ static async addIntegration(bundleId: string): Promise<void> {
+ await invoke('add_integration', { bundleId });
+ }
+
+ static async removeIntegration(bundleId: string): Promise<void> {
+ await invoke('remove_integration', { bundleId });
+ }
+
+ static async setIntegrationEnabled(bundleId: string, enabled: boolean): Promise<void> {
+ await invoke('set_integration_enabled', { bundleId, enabled });
+ }
+}
+
+function rustDialectToDialect(dialect: RustDialect): Dialect {
+ switch (dialect) {
+ case 'British':
+ return DialectValue.British as Dialect;
+ case 'Australian':
+ return DialectValue.Australian as Dialect;
+ case 'Canadian':
+ return DialectValue.Canadian as Dialect;
+ case 'Indian':
+ return DialectValue.Indian as Dialect;
+ default:
+ return DialectValue.American as Dialect;
+ }
+}
+
+function dialectToRustDialect(dialect: Dialect): RustDialect {
+ switch (dialect) {
+ case DialectValue.British:
+ return 'British';
+ case DialectValue.Australian:
+ return 'Australian';
+ case DialectValue.Canadian:
+ return 'Canadian';
+ case DialectValue.Indian:
+ return 'Indian';
+ default:
+ return 'American';
+ }
+}
diff --git a/harper-desktop/src/lib/settings/SettingsApp.svelte b/harper-desktop/src/lib/settings/SettingsApp.svelte
new file mode 100644
index 000000000..f37d1e801
--- /dev/null
+++ b/harper-desktop/src/lib/settings/SettingsApp.svelte
@@ -0,0 +1,61 @@
+<script lang="ts">
+import SettingsSidebar from './SettingsSidebar.svelte';
+import './settings.css';
+import AboutPage from './pages/AboutPage.svelte';
+import DictionaryPage from './pages/DictionaryPage.svelte';
+import GeneralPage from './pages/GeneralPage.svelte';
+import GettingStartedPage from './pages/GettingStartedPage.svelte';
+import IntegrationsPage from './pages/IntegrationsPage.svelte';
+import RulesPage from './pages/RulesPage.svelte';
+import ShortcutsPage from './pages/ShortcutsPage.svelte';
+import WeirpacksPage from './pages/WeirpacksPage.svelte';
+import WritingPage from './pages/WritingPage.svelte';
+import type { SectionId } from './settings-data';
+
+let active: SectionId = 'getting-started';
+let contentEl: HTMLElement;
+
+const titleMap: Record<SectionId, string> = {
+ 'getting-started': 'Getting Started',
+ general: 'General',
+ writing: 'Writing',
+ dictionary: 'Dictionary',
+ shortcuts: 'Shortcuts',
+ rules: 'Rules',
+ weirpacks: 'Weirpacks',
+ integrations: 'Integrations',
+ about: 'About',
+};
+
+$: title = titleMap[active];
+
+$: if (contentEl && active) {
+ contentEl.scrollTop = 0;
+}
+</script>
+
+<div class="settings-shell">
+ <SettingsSidebar bind:active />
+
+ <main bind:this={contentEl} class="content" aria-label={title}>
+ {#if active === "getting-started"}
+ <GettingStartedPage />
+ {:else if active === "general"}
+ <GeneralPage />
+ {:else if active === "writing"}
+ <WritingPage />
+ {:else if active === "dictionary"}
+ <DictionaryPage />
+ {:else if active === "shortcuts"}
+ <ShortcutsPage />
+ {:else if active === "rules"}
+ <RulesPage />
+ {:else if active === "weirpacks"}
+ <WeirpacksPage />
+ {:else if active === "integrations"}
+ <IntegrationsPage />
+ {:else if active === "about"}
+ <AboutPage />
+ {/if}
+ </main>
+</div>
diff --git a/harper-desktop/src/lib/settings/SettingsSidebar.svelte b/harper-desktop/src/lib/settings/SettingsSidebar.svelte
new file mode 100644
index 000000000..7febefedf
--- /dev/null
+++ b/harper-desktop/src/lib/settings/SettingsSidebar.svelte
@@ -0,0 +1,135 @@
+<script lang="ts">
+import { FOOTER_NAV_ITEMS, MAIN_NAV_ITEMS, type SectionId } from './settings-data';
+
+export let active: SectionId;
+export let hasSetupAlert = false;
+</script>
+
+<nav class="sidebar" aria-label="Settings sections">
+ <div class="group">
+ {#each MAIN_NAV_ITEMS as item}
+ <button
+ type="button"
+ class:selected={active === item.id}
+ class="nav-item"
+ on:click={() => (active = item.id)}
+ >
+ <span class="tile" style={`--tile-gradient: ${item.gradient}`}>
+ <span class={`settings-icon ${item.id}`} aria-hidden="true"></span>
+ </span>
+ <span class="label">{item.label}</span>
+ {#if item.id === "getting-started" && hasSetupAlert}
+ <span class="alert" aria-label="Action needed"></span>
+ {/if}
+ </button>
+ {/each}
+ </div>
+
+ <div class="separator"></div>
+
+ <div class="group">
+ {#each FOOTER_NAV_ITEMS as item}
+ <button
+ type="button"
+ class:selected={active === item.id}
+ class="nav-item"
+ on:click={() => (active = item.id)}
+ >
+ <span class="tile" style={`--tile-gradient: ${item.gradient}`}>
+ <span class={`settings-icon ${item.id}`} aria-hidden="true"></span>
+ </span>
+ <span class="label">{item.label}</span>
+ </button>
+ {/each}
+ </div>
+</nav>
+
+<style>
+ .sidebar {
+ width: 190px;
+ flex: 0 0 190px;
+ background: var(--settings-bg-sidebar);
+ border-right: 0.5px solid var(--settings-line-strong);
+ display: flex;
+ flex-direction: column;
+ padding: 18px 8px 12px;
+ }
+
+ .group {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ }
+
+ .separator {
+ height: 1px;
+ margin: 14px 10px 12px;
+ background: var(--settings-line);
+ }
+
+ .nav-item {
+ width: 100%;
+ height: 30px;
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ border: 0;
+ border-radius: 6px;
+ padding: 0 10px;
+ background: transparent;
+ color: var(--settings-ink);
+ font: inherit;
+ font-size: 13px;
+ text-align: left;
+ cursor: default;
+ }
+
+ .nav-item:hover {
+ background: rgba(0, 0, 0, 0.045);
+ }
+
+ .nav-item.selected {
+ background: var(--settings-accent);
+ color: #fff;
+ }
+
+ .tile {
+ width: 22px;
+ height: 22px;
+ flex: 0 0 22px;
+ display: grid;
+ place-items: center;
+ border-radius: 6px;
+ background: var(--tile-gradient);
+ color: #fff;
+ box-shadow:
+ 0 1px 1px rgba(0, 0, 0, 0.08),
+ inset 0 0.5px 0 rgba(255, 255, 255, 0.35);
+ }
+
+ .tile :global(.settings-icon) {
+ transform: scale(0.78);
+ }
+
+ .label {
+ min-width: 0;
+ flex: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
+ .alert {
+ width: 7px;
+ height: 7px;
+ flex: 0 0 7px;
+ border-radius: 999px;
+ background: #d93920;
+ box-shadow: 0 0 0 2px rgba(217, 57, 32, 0.18);
+ }
+
+ .selected .alert {
+ background: #fff;
+ box-shadow: none;
+ }
+</style>
diff --git a/harper-desktop/src/lib/settings/components/AppPickerModal.svelte b/harper-desktop/src/lib/settings/components/AppPickerModal.svelte
new file mode 100644
index 000000000..7766bbd39
--- /dev/null
+++ b/harper-desktop/src/lib/settings/components/AppPickerModal.svelte
@@ -0,0 +1,73 @@
+<script lang="ts">
+export let bundleId = '';
+export let existingBundleIds: string[];
+export let isSaving = false;
+export let close: () => void;
+export let add: (bundleId: string) => void;
+
+$: trimmedBundleId = bundleId.trim();
+$: isDuplicate = existingBundleIds.includes(trimmedBundleId);
+$: canAdd = Boolean(trimmedBundleId) && !isDuplicate && !isSaving;
+
+function submit() {
+ if (canAdd) {
+ add(trimmedBundleId);
+ }
+}
+</script>
+
+<div
+ class="modal-backdrop"
+ role="button"
+ tabindex="0"
+ aria-label="Close application picker"
+ on:click={close}
+ on:keydown={(event) => {
+ if (event.key === "Escape" || event.key === "Enter" || event.key === " ") {
+ close();
+ }
+ }}
+>
+ <div
+ class="modal"
+ role="dialog"
+ tabindex="-1"
+ aria-label="Choose an application"
+ on:click|stopPropagation={() => {}}
+ on:keydown|stopPropagation={(event) => {
+ if (event.key === "Escape") {
+ close();
+ }
+ }}
+ >
+ <div class="modal-head">
+ <strong>Add application</strong>
+ <span>Enter the app bundle ID Harper should watch.</span>
+ </div>
+ <div class="modal-search">
+ <span class="settings-icon icon-search" aria-hidden="true"></span>
+ <input
+ type="text"
+ placeholder="com.apple.TextEdit"
+ bind:value={bundleId}
+ disabled={isSaving}
+ on:keydown={(event) => {
+ if (event.key === "Enter") {
+ submit();
+ }
+ }}
+ />
+ </div>
+ <div class="modal-list">
+ {#if isDuplicate}
+ <div class="empty">That application is already configured.</div>
+ {:else}
+ <div class="empty">Use the app's macOS bundle identifier. Example: com.apple.TextEdit</div>
+ {/if}
+ </div>
+ <div class="modal-actions">
+ <button class="button" type="button" on:click={close}>Cancel</button>
+ <button class="button primary" type="button" disabled={!canAdd} on:click={submit}>Add</button>
+ </div>
+ </div>
+</div>
diff --git a/harper-desktop/src/lib/settings/pages/AboutPage.svelte b/harper-desktop/src/lib/settings/pages/AboutPage.svelte
new file mode 100644
index 000000000..e9ec75bc1
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/AboutPage.svelte
@@ -0,0 +1,26 @@
+<script lang="ts">
+import { openUrl } from '@tauri-apps/plugin-opener';
+
+const SOURCE_URL = 'https://github.com/Automattic/harper';
+const ISSUE_URL = 'https://github.com/Automattic/harper/issues/new/choose';
+</script>
+
+<section class="about">
+ <div class="about-mark">H</div>
+ <h1>Harper for Mac</h1>
+ <p class="muted">Version 1.4.2 (build 2048)</p>
+ <p>
+ An open-source grammar checker that runs entirely on your device. No accounts, no
+ telemetry, no cloud.
+ </p>
+ <div class="actions-row center">
+ <button class="button" type="button" disabled title="Not wired yet">Release notes</button>
+ <button class="button" type="button" on:click={() => void openUrl(SOURCE_URL)}>Source on GitHub</button>
+ <button class="button" type="button" on:click={() => void openUrl(ISSUE_URL)}>Report an issue</button>
+ </div>
+ <div class="about-footer">
+ Harper is free software released under the Apache 2.0 license.
+ <br />
+ Copyright 2026 The Harper Contributors.
+ </div>
+ </section>
diff --git a/harper-desktop/src/lib/settings/pages/DictionaryPage.svelte b/harper-desktop/src/lib/settings/pages/DictionaryPage.svelte
new file mode 100644
index 000000000..03fba8a4b
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/DictionaryPage.svelte
@@ -0,0 +1,245 @@
+<script lang="ts">
+import { onMount } from 'svelte';
+import { Client } from '$lib/client';
+
+let dictionary: string[] = [];
+let newDictionaryWord = '';
+let dictionarySearch = '';
+let isDictionaryLoading = true;
+let isDictionarySaving = false;
+let dictionaryError = '';
+let importInput: HTMLInputElement;
+
+$: filteredWords = dictionary.filter((word: string) =>
+ word.toLowerCase().includes(dictionarySearch.trim().toLowerCase()),
+);
+
+onMount(() => {
+ void loadDictionary();
+
+ const refreshDictionary = () => {
+ if (!isDictionarySaving) {
+ void loadDictionary();
+ }
+ };
+
+ window.addEventListener('focus', refreshDictionary);
+
+ return () => {
+ window.removeEventListener('focus', refreshDictionary);
+ };
+});
+
+async function loadDictionary() {
+ isDictionaryLoading = true;
+ dictionaryError = '';
+
+ try {
+ dictionary = await Client.getDictionary();
+ } catch (error) {
+ dictionaryError = `Unable to load dictionary: ${error}`;
+ } finally {
+ isDictionaryLoading = false;
+ }
+}
+
+async function saveDictionary(nextDictionary: string[]) {
+ const previousDictionary = dictionary;
+
+ dictionary = nextDictionary;
+ isDictionarySaving = true;
+ dictionaryError = '';
+
+ try {
+ await Client.setDictionary(nextDictionary);
+ } catch (error) {
+ dictionary = previousDictionary;
+ dictionaryError = `Unable to save dictionary: ${error}`;
+ } finally {
+ isDictionarySaving = false;
+ }
+}
+
+function sortDictionary(words: string[]) {
+ return [...words].sort((a, b) => a.localeCompare(b));
+}
+
+function parseDictionaryText(text: string) {
+ return text
+ .split(/\r?\n/)
+ .map((word) => word.trim())
+ .filter(Boolean);
+}
+
+function mergeDictionaryWords(words: string[]) {
+ return sortDictionary([...new Set([...dictionary, ...words])]);
+}
+
+async function addDictionaryWord(inputWord: string) {
+ const word = inputWord.trim();
+
+ if (!word || dictionary.includes(word)) {
+ return;
+ }
+
+ const previousDictionary = dictionary;
+ dictionary = sortDictionary([...dictionary, word]);
+ isDictionarySaving = true;
+ dictionaryError = '';
+
+ try {
+ await Client.addToDictionary(word);
+ dictionary = await Client.getDictionary();
+ } catch (error) {
+ dictionary = previousDictionary;
+ dictionaryError = `Unable to add dictionary word: ${error}`;
+ } finally {
+ isDictionarySaving = false;
+ }
+}
+
+async function removeDictionaryWord(word: string) {
+ await saveDictionary(dictionary.filter((item) => item !== word));
+}
+
+async function clearDictionary() {
+ await saveDictionary([]);
+}
+
+async function importDictionary(event: Event) {
+ const input = event.currentTarget as HTMLInputElement;
+ const file = input.files?.[0];
+
+ if (!file) {
+ return;
+ }
+
+ try {
+ const importedWords = parseDictionaryText(await file.text());
+ await saveDictionary(mergeDictionaryWords(importedWords));
+ } catch (error) {
+ dictionaryError = `Unable to import dictionary: ${error}`;
+ } finally {
+ input.value = '';
+ }
+}
+
+function exportDictionary() {
+ try {
+ const blob = new Blob([`${dictionary.join('\n')}\n`], { type: 'text/plain;charset=utf-8' });
+ const url = URL.createObjectURL(blob);
+ const link = document.createElement('a');
+
+ link.href = url;
+ link.download = 'harper-dictionary.txt';
+ link.click();
+ URL.revokeObjectURL(url);
+ } catch (error) {
+ dictionaryError = `Unable to export dictionary: ${error}`;
+ }
+}
+
+async function submitDictionaryWord() {
+ const word = newDictionaryWord;
+ newDictionaryWord = '';
+ await addDictionaryWord(word);
+}
+</script>
+
+<section>
+ <div class="stanza">
+ <div class="eyebrow">User Dictionary</div>
+ <p class="section-copy">
+ Words and names Harper should never flag. This list syncs with Harper's local app config.
+ </p>
+
+ {#if isDictionaryLoading}
+ <p class="result-summary">Loading dictionary...</p>
+ {:else if dictionaryError}
+ <p class="result-summary">{dictionaryError}</p>
+ {:else if isDictionarySaving}
+ <p class="result-summary">Saving dictionary...</p>
+ {/if}
+
+ <div class="add-row">
+ <input
+ class="text-field"
+ type="text"
+ placeholder="Add a word..."
+ disabled={isDictionaryLoading || isDictionarySaving}
+ bind:value={newDictionaryWord}
+ on:keydown={(event) => event.key === "Enter" && submitDictionaryWord()}
+ />
+ <button
+ class="button primary"
+ type="button"
+ disabled={isDictionaryLoading || isDictionarySaving}
+ on:click={submitDictionaryWord}
+ >Add</button>
+ </div>
+
+ <div class="list-card">
+ <div class="search-strip">
+ <span class="settings-icon icon-search" aria-hidden="true"></span>
+ <input
+ type="text"
+ placeholder={`Search ${dictionary.length} words`}
+ bind:value={dictionarySearch}
+ />
+ <span>{filteredWords.length} of {dictionary.length}</span>
+ </div>
+
+ <div class="dictionary-list">
+ {#if filteredWords.length === 0}
+ <div class="empty">No matching words.</div>
+ {:else}
+ {#each filteredWords as word}
+ <div class="list-row">
+ <code>{word}</code>
+ <button
+ class="icon-button danger"
+ type="button"
+ disabled={isDictionaryLoading || isDictionarySaving}
+ aria-label={`Remove ${word}`}
+ on:click={() => removeDictionaryWord(word)}
+ >
+ <span class="settings-icon icon-x" aria-hidden="true"></span>
+ </button>
+ </div>
+ {/each}
+ {/if}
+ </div>
+ </div>
+
+ <div class="actions-row">
+ <input
+ bind:this={importInput}
+ type="file"
+ accept=".txt,.dic,text/plain"
+ hidden
+ on:change={importDictionary}
+ />
+ <button
+ class="button"
+ type="button"
+ disabled={isDictionaryLoading || isDictionarySaving}
+ on:click={() => importInput.click()}
+ >Import from file...</button>
+ <button
+ class="button"
+ type="button"
+ disabled={isDictionaryLoading || isDictionarySaving || dictionary.length === 0}
+ on:click={exportDictionary}
+ >Export dictionary</button>
+ <span class="spacer"></span>
+ <button
+ class="button danger"
+ type="button"
+ disabled={isDictionaryLoading || isDictionarySaving}
+ on:click={clearDictionary}
+ >
+ Clear all
+ </button>
+ </div>
+ </div>
+ </section>
diff --git a/harper-desktop/src/lib/settings/pages/GeneralPage.svelte b/harper-desktop/src/lib/settings/pages/GeneralPage.svelte
new file mode 100644
index 000000000..9ca8ee6de
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/GeneralPage.svelte
@@ -0,0 +1,264 @@
+<script lang="ts">
+import type { Dialect } from 'harper.js';
+import { onMount } from 'svelte';
+import { Client } from '$lib/client';
+import { DIALECT_OPTIONS } from '../settings-data';
+
+const DialectValue = {
+ American: 0,
+ British: 1,
+ Australian: 2,
+ Canadian: 3,
+ Indian: 4,
+} as const;
+
+let menuBar = true;
+let menuBarClick = 'open-settings';
+let launchAtStartup = false;
+let autoUpdate = true;
+let dialect = 'american';
+let isDialectLoading = true;
+let isDialectSaving = false;
+let dialectError = '';
+let isLaunchAtStartupLoading = true;
+let isLaunchAtStartupSaving = false;
+let launchAtStartupError = '';
+
+onMount(() => {
+ void loadDialect();
+ void loadLaunchAtStartup();
+
+ const refreshSettings = () => {
+ if (!isDialectSaving) {
+ void loadDialect();
+ }
+
+ if (!isLaunchAtStartupSaving) {
+ void loadLaunchAtStartup();
+ }
+ };
+
+ window.addEventListener('focus', refreshSettings);
+
+ return () => {
+ window.removeEventListener('focus', refreshSettings);
+ };
+});
+
+async function loadDialect() {
+ isDialectLoading = true;
+ dialectError = '';
+
+ try {
+ dialect = dialectToSettingsValue(await Client.getDialect());
+ } catch (error) {
+ dialectError = `Unable to load dialect: ${error}`;
+ } finally {
+ isDialectLoading = false;
+ }
+}
+
+async function setDialect(value: string) {
+ const previousDialect = dialect;
+
+ dialect = value;
+ isDialectSaving = true;
+ dialectError = '';
+
+ try {
+ await Client.setDialect(settingsValueToDialect(value));
+ } catch (error) {
+ dialect = previousDialect;
+ dialectError = `Unable to save dialect: ${error}`;
+ } finally {
+ isDialectSaving = false;
+ }
+}
+
+async function loadLaunchAtStartup() {
+ isLaunchAtStartupLoading = true;
+ launchAtStartupError = '';
+
+ try {
+ launchAtStartup = await Client.getLaunchAtStartup();
+ } catch (error) {
+ launchAtStartupError = `Unable to load startup setting: ${error}`;
+ } finally {
+ isLaunchAtStartupLoading = false;
+ }
+}
+
+async function setLaunchAtStartup(enabled: boolean) {
+ const previousLaunchAtStartup = launchAtStartup;
+
+ launchAtStartup = enabled;
+ isLaunchAtStartupSaving = true;
+ launchAtStartupError = '';
+
+ try {
+ await Client.setLaunchAtStartup(enabled);
+ } catch (error) {
+ launchAtStartup = previousLaunchAtStartup;
+ launchAtStartupError = `Unable to save startup setting: ${error}`;
+ } finally {
+ isLaunchAtStartupSaving = false;
+ }
+}
+
+function dialectToSettingsValue(dialect: Dialect): string {
+ switch (dialect) {
+ case DialectValue.British:
+ return 'british';
+ case DialectValue.Canadian:
+ return 'canadian';
+ case DialectValue.Australian:
+ return 'australian';
+ case DialectValue.Indian:
+ return 'indian';
+ default:
+ return 'american';
+ }
+}
+
+function settingsValueToDialect(value: string): Dialect {
+ switch (value) {
+ case 'british':
+ return DialectValue.British as Dialect;
+ case 'canadian':
+ return DialectValue.Canadian as Dialect;
+ case 'australian':
+ return DialectValue.Australian as Dialect;
+ case 'indian':
+ return DialectValue.Indian as Dialect;
+ default:
+ return DialectValue.American as Dialect;
+ }
+}
+</script>
+
+<section>
+ <div class="stanza">
+ <div class="eyebrow">General</div>
+ <div class="rows">
+ <div class="row top">
+ <div>
+ <strong>Keep Harper in the menu bar</strong>
+ <p>Shows the Harper icon so you can open settings without opening the main app.</p>
+ </div>
+ <button
+ class:checked={menuBar}
+ class="checkbox"
+ type="button"
+ role="checkbox"
+ disabled
+ title="Not wired yet"
+ aria-checked={menuBar}
+ >
+ {#if menuBar}<span class="settings-icon icon-check" aria-hidden="true"></span>{/if}
+ </button>
+ </div>
+
+ <div class="inline-row">
+ <label for="menu-bar-click">Click the icon to:</label>
+ <select
+ id="menu-bar-click"
+ class="select"
+ disabled
+ title="Not wired yet"
+ bind:value={menuBarClick}
+ >
+ <option value="open-settings">Open settings</option>
+ <option value="show-menu">Show a menu</option>
+ <option value="toggle-pause">Pause or resume</option>
+ <option value="quick-review">Open quick review</option>
+ </select>
+ </div>
+
+ <div class="row">
+ <div>
+ <strong>Launch Harper at startup</strong>
+ <p>Harper will start silently when you log in.</p>
+ </div>
+ <button
+ class:checked={launchAtStartup}
+ class="checkbox"
+ type="button"
+ role="checkbox"
+ disabled={isLaunchAtStartupLoading || isLaunchAtStartupSaving}
+ aria-checked={launchAtStartup}
+ on:click={() => setLaunchAtStartup(!launchAtStartup)}
+ >
+ {#if launchAtStartup}<span class="settings-icon icon-check" aria-hidden="true"></span>{/if}
+ </button>
+ </div>
+ {#if isLaunchAtStartupLoading}
+ <p class="result-summary">Loading startup setting...</p>
+ {:else if launchAtStartupError}
+ <p class="result-summary">{launchAtStartupError}</p>
+ {:else if isLaunchAtStartupSaving}
+ <p class="result-summary">Saving startup setting...</p>
+ {/if}
+
+ <div class="row top">
+ <div>
+ <strong>Automatically check for updates</strong>
+ <p>Harper will check for new versions weekly.</p>
+ </div>
+ <button
+ class:checked={autoUpdate}
+ class="checkbox"
+ type="button"
+ role="checkbox"
+ disabled
+ title="Not wired yet"
+ aria-checked={autoUpdate}
+ >
+ {#if autoUpdate}<span class="settings-icon icon-check" aria-hidden="true"></span>{/if}
+ </button>
+ </div>
+ </div>
+ </div>
+
+ <div class="divider"></div>
+
+ <div class="stanza">
+ <div class="eyebrow">Language</div>
+ <p class="section-copy">
+ Choose the dialect Harper uses to check spelling and grammar.
+ </p>
+ <div class="inline-row">
+ <label for="dialect">English dialect:</label>
+ <select
+ id="dialect"
+ class="select wide"
+ disabled={isDialectLoading || isDialectSaving}
+ bind:value={dialect}
+ on:change={(event) => setDialect(event.currentTarget.value)}
+ >
+ {#each DIALECT_OPTIONS as option}
+ <option value={option.value}>{option.label}</option>
+ {/each}
+ </select>
+ </div>
+ {#if isDialectLoading}
+ <p class="result-summary">Loading dialect...</p>
+ {:else if dialectError}
+ <p class="result-summary">{dialectError}</p>
+ {:else if isDialectSaving}
+ <p class="result-summary">Saving dialect...</p>
+ {/if}
+ </div>
+
+ <div class="divider"></div>
+
+ <div class="stanza">
+ <div class="eyebrow">Updates</div>
+ <div class="row top">
+ <div>
+ <strong>You're up to date</strong>
+ <p>Harper 1.4.2, released April 18, 2026.</p>
+ </div>
+ <button class="button" type="button" disabled title="Not wired yet">Check now</button>
+ </div>
+ </div>
+ </section>
diff --git a/harper-desktop/src/lib/settings/pages/GettingStartedPage.svelte b/harper-desktop/src/lib/settings/pages/GettingStartedPage.svelte
new file mode 100644
index 000000000..2d21bc882
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/GettingStartedPage.svelte
@@ -0,0 +1,165 @@
+<script lang="ts">
+import { createInitialSettingsState, type SettingsState } from '../settings-data';
+
+type SetupStep = {
+ id: 'accessibility' | 'integration' | 'test-drive';
+ title: string;
+ desc: string;
+ required: boolean;
+ done: boolean;
+ locked: boolean;
+ actionLabel: string;
+ actionVariant: 'default' | 'primary';
+ action: () => void;
+};
+
+let state: SettingsState = createInitialSettingsState();
+
+$: setupSteps = buildSetupSteps();
+$: setupCompletedCount = setupSteps.filter((step) => step.done).length;
+$: setupAllDone = setupSteps.every((step) => step.done);
+
+function updateSetup(patch: Partial<SettingsState['setup']>) {
+ state = { ...state, setup: { ...state.setup, ...patch } };
+}
+
+function enableTextEditForSetup() {
+ state = {
+ ...state,
+ integrations: { ...state.integrations, textedit: true },
+ setup: { ...state.setup, integration: 'selected' },
+ };
+}
+
+function buildSetupSteps(): SetupStep[] {
+ const accessibilityDone = state.setup.accessibility === 'granted';
+ const integrationDone = state.setup.integration === 'selected';
+ const testDriveDone = state.setup.testDrive === 'completed';
+
+ return [
+ {
+ id: 'accessibility',
+ title: 'Grant Accessibility permission',
+ desc: 'Open system settings and grant Harper access to the Accessibility system.',
+ required: true,
+ done: accessibilityDone,
+ locked: false,
+ actionLabel: accessibilityDone ? 'Granted' : 'Open System Settings',
+ actionVariant: accessibilityDone ? 'default' : 'primary',
+ action: () => updateSetup({ accessibility: 'granted' }),
+ },
+ {
+ id: 'integration',
+ title: 'Pick an app to test',
+ desc: 'Start with TextEdit, then add more apps from Integrations when you are ready.',
+ required: true,
+ done: integrationDone,
+ locked: !accessibilityDone,
+ actionLabel: integrationDone ? 'Manage' : 'Browse apps',
+ actionVariant: 'default',
+ action: enableTextEditForSetup,
+ },
+ {
+ id: 'test-drive',
+ title: 'Take a test drive',
+ desc: 'Open TextEdit, type "its not alot of fun", and watch Harper underline the mistakes.',
+ required: false,
+ done: testDriveDone,
+ locked: !accessibilityDone || !integrationDone,
+ actionLabel: testDriveDone ? 'Run again' : 'Launch TextEdit',
+ actionVariant: testDriveDone ? 'default' : 'primary',
+ action: () => updateSetup({ testDrive: 'completed' }),
+ },
+ ];
+}
+</script>
+
+<section>
+ {#if setupAllDone}
+ <div class="success-banner">
+ <div class="big-mark green">
+ <span class="settings-icon icon-check" aria-hidden="true"></span>
+ </div>
+ <div class="grow">
+ <h2>You're all set</h2>
+ <p>
+ Harper is ready to check writing in the apps you choose. You can revisit any section
+ from the sidebar.
+ </p>
+ </div>
+ <button class="button" type="button" on:click={() => updateSetup({ testDrive: "not_started" })}>
+ Walk through again
+ </button>
+ </div>
+ {:else}
+ {#if state.setup.accessibility !== "granted"}
+ <div class="warning-banner">
+ <div class="big-mark amber">!</div>
+ <div>
+ <strong>Harper is not checking anything yet</strong>
+ <p>Grant Accessibility permission so Harper can find text and surface suggestions.</p>
+ </div>
+ </div>
+ {/if}
+
+ <div class="hero-copy">
+ <div class="eyebrow">Getting started</div>
+ <h1>Let's get Harper up and running.</h1>
+ <div class="progress-row">
+ <div class="progress-track">
+ <div class="progress-fill" style={`width: ${(setupCompletedCount / setupSteps.length) * 100}%`}></div>
+ </div>
+ <span>{setupCompletedCount} of {setupSteps.length}</span>
+ </div>
+ </div>
+ {/if}
+
+ <div class="step-list">
+ {#each setupSteps as step, index}
+ <div class:done={step.done} class:locked={step.locked} class="step-row">
+ <div class="step-dot">
+ {#if step.done}
+ <span class="settings-icon icon-check" aria-hidden="true"></span>
+ {:else}
+ {index + 1}
+ {/if}
+ </div>
+ <div class="grow">
+ <div class="step-heading">
+ <strong>{step.title}</strong>
+ {#if !step.required && !step.done}
+ <span class="pill">Optional</span>
+ {/if}
+ </div>
+ <p>{step.desc}</p>
+
+ {#if step.id === "integration" && state.setup.accessibility === "granted" && state.setup.integration !== "selected"}
+ <div class="detected-app">
+ <div class="app-tile" style="--app-tint: #5a5f68">T</div>
+ <div class="grow">
+ <strong>TextEdit detected</strong>
+ <p>A good starter app for trying Harper.</p>
+ </div>
+ <button class="button primary" type="button" on:click={enableTextEditForSetup}>
+ Enable
+ </button>
+ </div>
+ {/if}
+ </div>
+ <button
+ class={`button ${step.actionVariant === "primary" ? "primary" : ""}`}
+ type="button"
+ disabled={step.locked}
+ on:click={step.action}
+ >
+ {step.actionLabel}
+ </button>
+ </div>
+ {/each}
+ </div>
+
+ <div class="note-strip">
+ <strong>On-device by default.</strong>
+ <span>Your writing stays on this Mac in this demo surface.</span>
+ </div>
+ </section>
diff --git a/harper-desktop/src/lib/settings/pages/IntegrationsPage.svelte b/harper-desktop/src/lib/settings/pages/IntegrationsPage.svelte
new file mode 100644
index 000000000..88d15fd87
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/IntegrationsPage.svelte
@@ -0,0 +1,230 @@
+<script lang="ts">
+import { onMount } from 'svelte';
+import { Client, type Integration } from '$lib/client';
+import AppPickerModal from '../components/AppPickerModal.svelte';
+
+interface IntegrationRow extends Integration {
+ name: string;
+}
+
+let integrations: Integration[] = [];
+let integrationsError = '';
+let isIntegrationsLoading = true;
+let isIntegrationsSaving = false;
+let appPickerOpen = false;
+let newBundleId = '';
+
+$: integrationApps = integrations.map(toIntegrationRow);
+$: existingBundleIds = integrations.map((integration) => integration.bundle_id);
+
+onMount(() => {
+ void loadIntegrations();
+});
+
+async function loadIntegrations() {
+ isIntegrationsLoading = true;
+ integrationsError = '';
+
+ try {
+ integrations = await Client.getIntegrations();
+ } catch (error) {
+ integrationsError = `Unable to load integrations: ${error}`;
+ } finally {
+ isIntegrationsLoading = false;
+ }
+}
+
+function toIntegrationRow(integration: Integration): IntegrationRow {
+ return {
+ ...integration,
+ name: integrationName(integration.bundle_id),
+ };
+}
+
+function integrationName(bundleId: string) {
+ return bundleId.split('.').at(-1) || bundleId;
+}
+
+async function setIntegrationEnabled(bundleId: string, enabled: boolean) {
+ const previousIntegrations = integrations;
+
+ integrations = integrations.map((integration) =>
+ integration.bundle_id === bundleId ? { ...integration, enabled } : integration,
+ );
+ isIntegrationsSaving = true;
+ integrationsError = '';
+
+ try {
+ await Client.setIntegrationEnabled(bundleId, enabled);
+ } catch (error) {
+ integrations = previousIntegrations;
+ integrationsError = `Unable to update integration: ${error}`;
+ } finally {
+ isIntegrationsSaving = false;
+ }
+}
+
+async function removeIntegration(bundleId: string) {
+ const previousIntegrations = integrations;
+
+ integrations = integrations.filter((integration) => integration.bundle_id !== bundleId);
+ isIntegrationsSaving = true;
+ integrationsError = '';
+
+ try {
+ await Client.removeIntegration(bundleId);
+ } catch (error) {
+ integrations = previousIntegrations;
+ integrationsError = `Unable to remove integration: ${error}`;
+ } finally {
+ isIntegrationsSaving = false;
+ }
+}
+
+async function addIntegration(bundleId: string) {
+ const trimmedBundleId = bundleId.trim();
+
+ if (
+ !trimmedBundleId ||
+ integrations.some((integration) => integration.bundle_id === trimmedBundleId)
+ ) {
+ return;
+ }
+
+ const previousIntegrations = integrations;
+
+ integrations = [...integrations, { bundle_id: trimmedBundleId, enabled: true }];
+ isIntegrationsSaving = true;
+ integrationsError = '';
+
+ try {
+ await Client.addIntegration(trimmedBundleId);
+ closeAppPicker();
+ } catch (error) {
+ integrations = previousIntegrations;
+ integrationsError = `Unable to add integration: ${error}`;
+ } finally {
+ isIntegrationsSaving = false;
+ }
+}
+
+function closeAppPicker() {
+ appPickerOpen = false;
+ newBundleId = '';
+}
+</script>
+
+<section>
+ <div class="stanza">
+ <div class="eyebrow">App integrations</div>
+ <div class="row top">
+ <div>
+ <strong>Watch everywhere</strong>
+ <p>Harper checks writing in any app that supports text input.</p>
+ </div>
+ <button
+ class="toggle"
+ type="button"
+ role="switch"
+ aria-checked="false"
+ aria-label="Toggle watch everywhere"
+ disabled
+ title="Not wired yet"
+ >
+ <span></span>
+ </button>
+ </div>
+ </div>
+
+ <div class="divider"></div>
+
+ <div class="stanza">
+ <div class="eyebrow">Selected apps</div>
+ <p class="section-copy">Harper will only watch the apps you enable here.</p>
+
+ {#if isIntegrationsLoading}
+ <p class="result-summary">Loading integrations...</p>
+ {:else if integrationsError}
+ <p class="result-summary">{integrationsError}</p>
+ {:else if isIntegrationsSaving}
+ <p class="result-summary">Saving integrations...</p>
+ {/if}
+
+ <div class="list-card">
+ {#if !isIntegrationsLoading && integrationApps.length === 0}
+ <div class="empty">No configured app integrations.</div>
+ {:else}
+ {#each integrationApps as app}
+ <div class="app-row">
+ <div class="app-tile" style="--app-tint: #6b6f78">{app.name[0]}</div>
+ <div class="grow">
+ <strong>{app.name}</strong>
+ <p>{app.bundle_id}</p>
+ </div>
+ <button
+ class="icon-button danger"
+ type="button"
+ disabled={isIntegrationsLoading || isIntegrationsSaving}
+ aria-label={`Remove ${app.name}`}
+ on:click={() => removeIntegration(app.bundle_id)}
+ >
+ <span class="settings-icon icon-trash" aria-hidden="true"></span>
+ </button>
+ <button
+ class:checked={app.enabled}
+ class="toggle"
+ type="button"
+ role="switch"
+ disabled={isIntegrationsLoading || isIntegrationsSaving}
+ aria-checked={app.enabled}
+ aria-label={`Toggle ${app.name}`}
+ on:click={() => setIntegrationEnabled(app.bundle_id, !app.enabled)}
+ >
+ <span></span>
+ </button>
+ </div>
+ {/each}
+ {/if}
+ </div>
+
+ <div class="actions-row">
+ <button
+ class="button"
+ type="button"
+ disabled={isIntegrationsLoading || isIntegrationsSaving}
+ on:click={() => (appPickerOpen = true)}
+ >Add application...</button>
+ <span class="muted">Choose any app from your Applications folder.</span>
+ </div>
+ </div>
+
+ <div class="divider"></div>
+
+ <div class="stanza">
+ <div class="eyebrow">New apps</div>
+ <div class="row top">
+ <div>
+ <strong>Enable new apps automatically</strong>
+ <p>When you launch a supported app for the first time, turn integration on by default.</p>
+ </div>
+ <button
+ class="checkbox"
+ type="button"
+ role="checkbox"
+ aria-checked="false"
+ disabled
+ title="Not wired yet"
+ ></button>
+ </div>
+ </div>
+</section>
+
+{#if appPickerOpen}
+ <AppPickerModal
+ bind:bundleId={newBundleId}
+ {existingBundleIds}
+ isSaving={isIntegrationsSaving}
+ close={closeAppPicker}
+ add={addIntegration}
+ />
+{/if}
diff --git a/harper-desktop/src/lib/settings/pages/RulesPage.svelte b/harper-desktop/src/lib/settings/pages/RulesPage.svelte
new file mode 100644
index 000000000..e37cda2c5
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/RulesPage.svelte
@@ -0,0 +1,417 @@
+<script lang="ts">
+import type { LintConfig, StructuredLintConfig, StructuredLintSetting } from 'harper.js';
+import { onMount } from 'svelte';
+import { Client } from '$lib/client';
+
+type RuleOverride = 'default' | 'on' | 'off';
+type RuleItem = { id: string; name: string; desc: string };
+type RuleGroup = { id: string; title: string; desc: string; rules: RuleItem[] };
+type MatchedRuleGroup = RuleGroup & { matchedRules: RuleItem[] };
+
+const defaultRuleOptions: { value: RuleOverride; label: string }[] = [
+ { value: 'default', label: 'Default' },
+ { value: 'on', label: 'Enabled' },
+ { value: 'off', label: 'Disabled' },
+];
+
+let lintConfig: LintConfig | null = null;
+let defaultLintConfig: LintConfig | null = null;
+let structuredLintConfig: StructuredLintConfig | null = null;
+let rules: Record<string, RuleOverride> = {};
+let rulesSearch = '';
+let expandedGroups: Record<string, boolean> = {};
+let isLintConfigLoading = true;
+let isLintConfigSaving = false;
+let lintConfigError = '';
+
+$: rulesQuery = rulesSearch.trim().toLowerCase();
+$: ruleGroups = structuredLintConfig ? ruleGroupsFromStructuredConfig(structuredLintConfig) : [];
+$: displayedRules = ruleGroups.flatMap((group) => group.rules);
+$: enabledRuleCount = displayedRules.filter((rule) => isRuleEnabled(rule)).length;
+$: customizedRuleCount = Object.values(rules).filter((value) => value !== 'default').length;
+$: filteredRuleGroups = getFilteredRuleGroups(ruleGroups, rulesQuery);
+
+onMount(() => {
+ void loadLintConfig();
+
+ const refreshLintConfig = () => {
+ if (!isLintConfigSaving) {
+ void loadLintConfig();
+ }
+ };
+
+ window.addEventListener('focus', refreshLintConfig);
+
+ return () => {
+ window.removeEventListener('focus', refreshLintConfig);
+ };
+});
+
+async function loadLintConfig() {
+ isLintConfigLoading = true;
+ lintConfigError = '';
+
+ const [fetchedLintConfig, fetchedDefaultLintConfig, fetchedStructuredLintConfig] =
+ await Promise.all([
+ Client.getLintConfig(),
+ Client.getDefaultLintConfig(),
+ Client.getStructuredLintConfig(),
+ ]);
+
+ lintConfig = fetchedLintConfig;
+ defaultLintConfig = fetchedDefaultLintConfig;
+ structuredLintConfig = fetchedStructuredLintConfig;
+ rules = rulesFromLintConfig(fetchedLintConfig, fetchedDefaultLintConfig);
+ isLintConfigLoading = false;
+}
+
+function rulesFromLintConfig(
+ config: LintConfig,
+ defaultConfig: LintConfig,
+): Record<string, RuleOverride> {
+ return Object.fromEntries(
+ Object.entries(config).map(([ruleId, value]) => [
+ ruleId,
+ value === defaultConfig[ruleId] ? 'default' : lintValueToRuleOverride(value),
+ ]),
+ );
+}
+
+function lintValueToRuleOverride(value: boolean | null | undefined): RuleOverride {
+ if (value === true) return 'on';
+ if (value === false) return 'off';
+ return 'default';
+}
+
+function ruleOverrideToLintValue(ruleId: string, value: RuleOverride): boolean {
+ if (value === 'on') return true;
+ if (value === 'off') return false;
+
+ return defaultLintConfig?.[ruleId] ?? false;
+}
+
+function ruleLabelFromKey(key: string) {
+ return key
+ .replace(/([a-z0-9])([A-Z])/g, '$1 $2')
+ .replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')
+ .trim();
+}
+
+function ruleGroupsFromStructuredConfig(config: StructuredLintConfig): RuleGroup[] {
+ const groups: RuleGroup[] = [];
+ const looseRules: RuleItem[] = [];
+
+ for (const setting of config.settings) {
+ if ('Group' in setting) {
+ groups.push(...groupsFromSetting(setting.Group));
+ } else {
+ looseRules.push(...rulesFromSetting(setting));
+ }
+ }
+
+ if (looseRules.length > 0) {
+ groups.push({
+ id: 'ungrouped-rules',
+ title: 'Ungrouped Rules',
+ desc: "Rules from the app's current lint configuration that are not assigned to a category.",
+ rules: looseRules,
+ });
+ }
+
+ return groups;
+}
+
+function groupsFromSetting(
+ group: Extract<StructuredLintSetting, { Group: unknown }>['Group'],
+): RuleGroup[] {
+ const groups: RuleGroup[] = [];
+ const rules: RuleItem[] = [];
+
+ for (const setting of group.child.settings) {
+ if ('Group' in setting) {
+ groups.push(...groupsFromSetting(setting.Group));
+ } else {
+ rules.push(...rulesFromSetting(setting));
+ }
+ }
+
+ if (rules.length > 0) {
+ groups.unshift({
+ id: `${groups.length}-${group.label}`,
+ title: group.label,
+ desc: group.description,
+ rules,
+ });
+ }
+
+ return groups;
+}
+
+function rulesFromSetting(setting: StructuredLintSetting): RuleItem[] {
+ if ('Bool' in setting) {
+ return [
+ {
+ id: setting.Bool.name,
+ name: setting.Bool.label ?? ruleLabelFromKey(setting.Bool.name),
+ desc: 'Harper rule from the curated rule catalog.',
+ },
+ ];
+ }
+
+ if ('OneOfMany' in setting) {
+ return setting.OneOfMany.names.map((name, index) => ({
+ id: name,
+ name: setting.OneOfMany.labels?.[index] ?? ruleLabelFromKey(name),
+ desc: 'Harper rule option from the curated rule catalog.',
+ }));
+ }
+
+ return [];
+}
+
+async function saveLintConfig(nextLintConfig: LintConfig, nextRules: Record<string, RuleOverride>) {
+ const previousLintConfig = lintConfig;
+ const previousRules = rules;
+
+ lintConfig = nextLintConfig;
+ rules = nextRules;
+ isLintConfigSaving = true;
+ lintConfigError = '';
+
+ try {
+ await Client.setLintConfig(nextLintConfig);
+ } catch (error) {
+ lintConfig = previousLintConfig;
+ rules = previousRules;
+ lintConfigError = `Unable to save lint config: ${error}`;
+ } finally {
+ isLintConfigSaving = false;
+ }
+}
+
+function setLintConfigRuleValue(config: LintConfig, ruleId: string, value: RuleOverride) {
+ config[ruleId] = ruleOverrideToLintValue(ruleId, value);
+}
+
+function getFilteredRuleGroups(ruleGroups: RuleGroup[], query: string): MatchedRuleGroup[] {
+ if (!query) {
+ return ruleGroups.map((group) => ({ ...group, matchedRules: group.rules }));
+ }
+
+ return ruleGroups
+ .map((group) => {
+ const groupMatches =
+ group.title.toLowerCase().includes(query) || group.desc.toLowerCase().includes(query);
+ const matchedRules = group.rules.filter(
+ (rule) =>
+ rule.name.toLowerCase().includes(query) || rule.desc.toLowerCase().includes(query),
+ );
+
+ if (groupMatches) {
+ return { ...group, matchedRules: group.rules };
+ }
+
+ if (matchedRules.length > 0) {
+ return { ...group, matchedRules };
+ }
+
+ return null;
+ })
+ .filter((group): group is MatchedRuleGroup => group !== null);
+}
+
+function getRuleValue(ruleId: string): RuleOverride {
+ return rules[ruleId] ?? 'default';
+}
+
+function isRuleEnabled(rule: RuleItem) {
+ return lintConfig?.[rule.id] ?? defaultLintConfig?.[rule.id] ?? false;
+}
+
+async function setRuleOverride(ruleId: string, value: RuleOverride) {
+ const nextRules = { ...rules };
+
+ nextRules[ruleId] = value;
+
+ if (!lintConfig) {
+ rules = nextRules;
+ return;
+ }
+
+ const nextLintConfig = { ...lintConfig };
+ setLintConfigRuleValue(nextLintConfig, ruleId, value);
+ await saveLintConfig(nextLintConfig, nextRules);
+}
+
+async function setGroupOverride(group: RuleGroup, value: RuleOverride) {
+ const nextRules = { ...rules };
+ const nextLintConfig = lintConfig ? { ...lintConfig } : null;
+
+ for (const rule of group.rules) {
+ nextRules[rule.id] = value;
+
+ if (nextLintConfig) {
+ setLintConfigRuleValue(nextLintConfig, rule.id, value);
+ }
+ }
+
+ if (!nextLintConfig) {
+ rules = nextRules;
+ return;
+ }
+
+ await saveLintConfig(nextLintConfig, nextRules);
+}
+
+function getGroupState(group: RuleGroup): RuleOverride | 'mixed' {
+ const values = group.rules.map((rule) => getRuleValue(rule.id));
+ const first = values[0];
+ return values.every((value) => value === first) ? first : 'mixed';
+}
+
+async function resetRules() {
+ if (!lintConfig) {
+ rules = {};
+ return;
+ }
+
+ const nextLintConfig = { ...lintConfig };
+
+ for (const rule of displayedRules) {
+ nextLintConfig[rule.id] = defaultLintConfig?.[rule.id] ?? false;
+ }
+
+ await saveLintConfig(
+ nextLintConfig,
+ rulesFromLintConfig(nextLintConfig, defaultLintConfig ?? {}),
+ );
+}
+
+async function disableRules() {
+ const nextRules = Object.fromEntries(
+ displayedRules.map((rule) => [rule.id, 'off' as RuleOverride]),
+ );
+
+ if (!lintConfig) {
+ rules = nextRules;
+ return;
+ }
+
+ const nextLintConfig = { ...lintConfig };
+
+ for (const rule of displayedRules) {
+ nextLintConfig[rule.id] = false;
+ }
+
+ await saveLintConfig(nextLintConfig, nextRules);
+}
+
+function toggleGroup(groupId: string) {
+ if (rulesQuery) return;
+ expandedGroups = { ...expandedGroups, [groupId]: !expandedGroups[groupId] };
+}
+</script>
+
+<section>
+ <div class="rules-heading">
+ <div class="eyebrow">Rules</div>
+ <h1>{displayedRules.length} rules, grouped by topic</h1>
+ <p>{enabledRuleCount} enabled, {customizedRuleCount} customized.</p>
+ </div>
+
+ {#if isLintConfigLoading}
+ <p class="result-summary">Loading lint config...</p>
+ {:else if lintConfigError}
+ <p class="result-summary">{lintConfigError}</p>
+ {:else if isLintConfigSaving}
+ <p class="result-summary">Saving lint config...</p>
+ {/if}
+
+ <div class="sticky-tools">
+ <div class="rule-search">
+ <span class="settings-icon icon-search" aria-hidden="true"></span>
+ <input type="text" placeholder="Search rules..." bind:value={rulesSearch} />
+ {#if rulesSearch}
+ <button class="icon-button" type="button" aria-label="Clear search" on:click={() => (rulesSearch = "")}>
+ <span class="settings-icon icon-x" aria-hidden="true"></span>
+ </button>
+ {/if}
+ </div>
+ <button class="button" type="button" disabled={isLintConfigLoading || isLintConfigSaving} on:click={resetRules}>
+ Reset to defaults
+ </button>
+ <button class="button" type="button" disabled={isLintConfigLoading || isLintConfigSaving} on:click={disableRules}>
+ Disable all
+ </button>
+ </div>
+
+ {#if rulesQuery}
+ <p class="result-summary">
+ {filteredRuleGroups.reduce((total, group) => total + group.matchedRules.length, 0)}
+ rules match "{rulesSearch}" across {filteredRuleGroups.length} groups.
+ </p>
+ {/if}
+
+ <div class="rule-groups">
+ {#each filteredRuleGroups as group}
+ {@const expanded = rulesQuery || expandedGroups[group.id]}
+ {@const groupState = getGroupState(group)}
+ <article class="rule-group">
+ <button class="group-head" type="button" on:click={() => toggleGroup(group.id)}>
+ <svg class:expanded class="chevron" viewBox="0 0 16 16" aria-hidden="true">
+ <path
+ fill-rule="evenodd"
+ d="M6.22 4.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06L8.94 8 6.22 5.28a.75.75 0 0 1 0-1.06Z"
+ clip-rule="evenodd"
+ />
+ </svg>
+ <span class="grow">
+ <strong>{group.title}</strong>
+ <p>{group.desc}</p>
+ <small>
+ {group.rules.length} rules, {group.rules.filter((rule) => isRuleEnabled(rule)).length}
+ enabled
+ </small>
+ </span>
+ <select
+ class="select compact"
+ disabled={isLintConfigLoading || isLintConfigSaving}
+ value={groupState === "mixed" ? "default" : groupState}
+ on:click|stopPropagation={() => {}}
+ on:change={(event) => setGroupOverride(group, event.currentTarget.value as RuleOverride)}
+ >
+ <option value="default">{groupState === "mixed" ? "Mixed" : "Default"}</option>
+ <option value="on">Enable all</option>
+ <option value="off">Disable all</option>
+ </select>
+ </button>
+
+ {#if expanded}
+ <div class="rules-list">
+ {#each group.matchedRules as rule}
+ <div class:customized={getRuleValue(rule.id) !== "default"} class="rule-row">
+ <div class="grow">
+ <strong>{rule.name}</strong>
+ {#if getRuleValue(rule.id) !== "default"}
+ <span class="pill amber">Customized</span>
+ {/if}
+ <p>{rule.desc}</p>
+ </div>
+ <select
+ class="select compact"
+ disabled={isLintConfigLoading || isLintConfigSaving}
+ value={getRuleValue(rule.id)}
+ on:change={(event) => setRuleOverride(rule.id, event.currentTarget.value as RuleOverride)}
+ >
+ {#each defaultRuleOptions as option}
+ <option value={option.value}>{option.label}</option>
+ {/each}
+ </select>
+ </div>
+ {/each}
+ </div>
+ {/if}
+ </article>
+ {/each}
+ </div>
+ </section>
diff --git a/harper-desktop/src/lib/settings/pages/ShortcutsPage.svelte b/harper-desktop/src/lib/settings/pages/ShortcutsPage.svelte
new file mode 100644
index 000000000..154d27860
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/ShortcutsPage.svelte
@@ -0,0 +1,81 @@
+<script lang="ts">
+const shortcutItems = [
+ { id: 'show-menu', label: 'Show Harper menu', keys: ['Shift', 'Cmd', 'H'] },
+ { id: 'quick-review', label: 'Open quick review', keys: ['Ctrl', 'Cmd', 'Space'] },
+ { id: 'accept-last', label: 'Apply last suggestion', keys: ['Ctrl', 'E'] },
+ { id: 'dismiss-last', label: 'Dismiss last suggestion', keys: ['Ctrl', 'D'] },
+ { id: 'toggle-pause', label: 'Pause or resume checking', keys: ['Ctrl', 'Shift', 'P'] },
+ { id: 'add-word', label: 'Add word to dictionary', keys: ['Ctrl', 'Shift', 'A'] },
+ { id: 'next-suggestion', label: 'Jump to next suggestion', keys: [] },
+];
+
+let globalShortcuts = true;
+let activationKey = 'off';
+</script>
+
+<section>
+ <div class="stanza">
+ <div class="eyebrow">Keyboard Shortcuts</div>
+ <p class="section-copy">
+ Global shortcuts work from anywhere on macOS. Click a shortcut to preview recording.
+ </p>
+
+ <div class="shortcut-list">
+ {#each shortcutItems as item}
+ <button class="shortcut-row" type="button" disabled title="Not wired yet">
+ <span>{item.label}</span>
+ {#if item.keys.length > 0}
+ <span class="kbd-group">
+ {#each item.keys as key}
+ <kbd>{key}</kbd>
+ {/each}
+ </span>
+ {:else}
+ <em>Click to record...</em>
+ {/if}
+ </button>
+ {/each}
+ </div>
+
+ <div class="row top">
+ <div>
+ <strong>Allow shortcuts while other apps are focused</strong>
+ <p>When off, Harper shortcuts only work while the Harper window is active.</p>
+ </div>
+ <button
+ class:checked={globalShortcuts}
+ class="checkbox"
+ type="button"
+ role="checkbox"
+ disabled
+ title="Not wired yet"
+ aria-checked={globalShortcuts}
+ >
+ {#if globalShortcuts}<span class="settings-icon icon-check" aria-hidden="true"></span>{/if}
+ </button>
+ </div>
+ </div>
+
+ <div class="divider"></div>
+
+ <div class="stanza">
+ <div class="eyebrow">Activation</div>
+ <div class="row top">
+ <div>
+ <strong>Activation key</strong>
+ <p>Require a modifier key to enable Harper checking in a window.</p>
+ </div>
+ <select
+ class="select"
+ disabled
+ title="Not wired yet"
+ bind:value={activationKey}
+ >
+ <option value="off">Off</option>
+ <option value="option">Option</option>
+ <option value="control">Control</option>
+ <option value="shift">Shift</option>
+ </select>
+ </div>
+ </div>
+ </section>
diff --git a/harper-desktop/src/lib/settings/pages/WeirpacksPage.svelte b/harper-desktop/src/lib/settings/pages/WeirpacksPage.svelte
new file mode 100644
index 000000000..2cc2e940d
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/WeirpacksPage.svelte
@@ -0,0 +1,161 @@
+<script lang="ts">
+import { createInitialSettingsState, type Weirpack } from '../settings-data';
+
+let weirpacks = createInitialSettingsState().weirpacks;
+
+let packDragState: 'idle' | 'dragging' = 'idle';
+let editingPackId: string | null = null;
+let editingPackName = '';
+
+$: enabledPackCount = weirpacks.filter((pack) => pack.enabled).length;
+$: enabledPackRules = weirpacks
+ .filter((pack) => pack.enabled)
+ .reduce((total, pack) => total + pack.ruleCount, 0);
+
+function updatePack(id: string, patch: Partial<Weirpack>) {
+ weirpacks = weirpacks.map((pack) => (pack.id === id ? { ...pack, ...patch } : pack));
+}
+
+function removePack(id: string) {
+ weirpacks = weirpacks.filter((pack) => pack.id !== id);
+}
+
+function formatSize(bytes: number) {
+ if (bytes < 1024) return `${bytes} B`;
+ if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
+ return `${(bytes / 1024 / 1024).toFixed(2)} MB`;
+}
+
+function formatDate(iso: string) {
+ return new Date(iso).toLocaleDateString(undefined, {
+ month: 'short',
+ day: 'numeric',
+ year: 'numeric',
+ });
+}
+
+function startRenamePack(pack: Weirpack) {
+ editingPackId = pack.id;
+ editingPackName = pack.name;
+}
+
+function commitRenamePack() {
+ if (!editingPackId) return;
+ const name = editingPackName.trim();
+
+ if (name) {
+ updatePack(editingPackId, { name });
+ }
+
+ editingPackId = null;
+ editingPackName = '';
+}
+</script>
+
+<section>
+ <div class="stanza">
+ <div class="eyebrow">Weirpacks</div>
+ <p class="section-copy">
+ Bundles of custom rules that can be layered on top of Harper's built-in checks.
+ </p>
+ <p class="result-summary">Weirpack installation is not wired yet.</p>
+
+ <label
+ class:dragging={packDragState === "dragging"}
+ class="drop-zone"
+ on:dragover={(event) => {
+ event.preventDefault();
+ packDragState = "dragging";
+ }}
+ on:dragleave={() => (packDragState = "idle")}
+ on:drop={(event) => {
+ event.preventDefault();
+ packDragState = "idle";
+ }}
+ >
+ <span class="big-mark purple">
+ <span class="settings-icon icon-upload" aria-hidden="true"></span>
+ </span>
+ <span class="grow">
+ <strong>{packDragState === "dragging" ? "Drop to install" : "Install a Weirpack"}</strong>
+ <p>Drag a .weirpack file here, or click to browse. Multiple files are OK.</p>
+ </span>
+ <span class="button primary">Choose file...</span>
+ <input
+ type="file"
+ accept=".weirpack,.json,.wpck"
+ multiple
+ disabled
+ />
+ </label>
+
+ <p class="muted">
+ {weirpacks.length} packs installed, {enabledPackCount} active, {enabledPackRules}
+ extra rules.
+ </p>
+ </div>
+
+ <div class="stanza">
+ <div class="eyebrow">Installed packs</div>
+ <div class="list-card">
+ {#each weirpacks as pack}
+ <div class:disabled={!pack.enabled} class="pack-row">
+ <div class="pack-icon">
+ <span class="settings-icon icon-package" aria-hidden="true"></span>
+ </div>
+ <div class="grow">
+ {#if editingPackId === pack.id}
+ <input
+ class="inline-edit"
+ type="text"
+ bind:value={editingPackName}
+ on:blur={commitRenamePack}
+ on:keydown={(event) => {
+ if (event.key === "Enter") commitRenamePack();
+ if (event.key === "Escape") {
+ editingPackId = null;
+ editingPackName = "";
+ }
+ }}
+ />
+ {:else}
+ <button class="pack-title" type="button" disabled title="Not wired yet" on:dblclick={() => startRenamePack(pack)}>
+ {pack.name}
+ </button>
+ {/if}
+ <p>
+ <code>{pack.filename}</code>
+ <span> - {pack.ruleCount} rules - {formatSize(pack.size)} - added {formatDate(pack.addedAt)}</span>
+ </p>
+ {#if pack.installState !== "installed"}
+ <span class={`status ${pack.installState}`}>{pack.installState}</span>
+ {/if}
+ </div>
+ <button
+ class="icon-button danger"
+ type="button"
+ disabled
+ title="Not wired yet"
+ aria-label={`Remove ${pack.name}`}
+ on:click={() => removePack(pack.id)}
+ >
+ <span class="settings-icon icon-trash" aria-hidden="true"></span>
+ </button>
+ <button
+ class:checked={pack.enabled}
+ class="toggle"
+ type="button"
+ role="switch"
+ disabled
+ title="Not wired yet"
+ aria-checked={pack.enabled}
+ aria-label={`Toggle ${pack.name}`}
+ on:click={() => updatePack(pack.id, { enabled: !pack.enabled })}
+ >
+ <span></span>
+ </button>
+ </div>
+ {/each}
+ </div>
+ </div>
+ </section>
diff --git a/harper-desktop/src/lib/settings/pages/WritingPage.svelte b/harper-desktop/src/lib/settings/pages/WritingPage.svelte
new file mode 100644
index 000000000..161261b08
--- /dev/null
+++ b/harper-desktop/src/lib/settings/pages/WritingPage.svelte
@@ -0,0 +1,66 @@
+<script lang="ts">
+let strictness = 'standard';
+let liveCheck = true;
+let respectCode = true;
+</script>
+
+<section>
+ <div class="stanza">
+ <div class="eyebrow">Grammar checking</div>
+ <p class="section-copy">
+ Tune how assertive Harper is. Lower strictness surfaces fewer suggestions.
+ </p>
+ <div class="rows">
+ <div class="inline-row">
+ <label for="strictness">Strictness:</label>
+ <select
+ id="strictness"
+ class="select"
+ disabled
+ title="Not wired yet"
+ bind:value={strictness}
+ >
+ <option value="relaxed">Relaxed</option>
+ <option value="standard">Standard</option>
+ <option value="strict">Strict</option>
+ </select>
+ </div>
+
+ <div class="row">
+ <div>
+ <strong>Check while I type</strong>
+ <p>Suggestions appear as you write.</p>
+ </div>
+ <button
+ class:checked={liveCheck}
+ class="checkbox"
+ type="button"
+ role="checkbox"
+ disabled
+ title="Not wired yet"
+ aria-checked={liveCheck}
+ >
+ {#if liveCheck}<span class="settings-icon icon-check" aria-hidden="true"></span>{/if}
+ </button>
+ </div>
+
+ <div class="row top">
+ <div>
+ <strong>Respect code blocks and quotes</strong>
+ <p>Harper skips fenced code, inline code, and block quotes when checking Markdown.</p>
+ </div>
+ <button
+ class:checked={respectCode}
+ class="checkbox"
+ type="button"
+ role="checkbox"
+ disabled
+ title="Not wired yet"
+ aria-checked={respectCode}
+ >
+ {#if respectCode}<span class="settings-icon icon-check" aria-hidden="true"></span>{/if}
+ </button>
+ </div>
+ </div>
+ </div>
+ </section>
diff --git a/harper-desktop/src/lib/settings/settings-data.ts b/harper-desktop/src/lib/settings/settings-data.ts
new file mode 100644
index 000000000..c6448eee9
--- /dev/null
+++ b/harper-desktop/src/lib/settings/settings-data.ts
@@ -0,0 +1,332 @@
+export type SectionId =
+ | 'getting-started'
+ | 'general'
+ | 'writing'
+ | 'dictionary'
+ | 'shortcuts'
+ | 'rules'
+ | 'weirpacks'
+ | 'integrations'
+ | 'about';
+
+export interface NavItem {
+ id: SectionId;
+ label: string;
+ gradient: string;
+}
+
+export const MAIN_NAV_ITEMS: NavItem[] = [
+ {
+ id: 'getting-started',
+ label: 'Getting Started',
+ gradient: 'linear-gradient(180deg, #f07a3a 0%, #c94614 100%)',
+ },
+ {
+ id: 'general',
+ label: 'General',
+ gradient: 'linear-gradient(180deg, #3e8cff 0%, #1a5dd9 100%)',
+ },
+ {
+ id: 'dictionary',
+ label: 'Dictionary',
+ gradient: 'linear-gradient(180deg, #f5a0c0 0%, #c75c9c 100%)',
+ },
+ {
+ id: 'rules',
+ label: 'Rules',
+ gradient: 'linear-gradient(180deg, #4cc28b 0%, #1f8f5c 100%)',
+ },
+ {
+ id: 'integrations',
+ label: 'Integrations',
+ gradient: 'linear-gradient(180deg, #6b6f78 0%, #3b3f48 100%)',
+ },
+];
+
+export const FOOTER_NAV_ITEMS: NavItem[] = [
+ {
+ id: 'about',
+ label: 'About',
+ gradient: 'linear-gradient(180deg, #8dd1ff 0%, #4aa2e0 100%)',
+ },
+];
+
+export type AccessibilityState = 'not_granted' | 'granted';
+export type IntegrationSetupState = 'not_selected' | 'selected';
+export type TestDriveState = 'not_started' | 'completed';
+
+export interface SetupState {
+ accessibility: AccessibilityState;
+ integration: IntegrationSetupState;
+ testDrive: TestDriveState;
+}
+
+export type RuleOverride = 'default' | 'on' | 'off' | 'require' | 'forbid';
+
+export interface RuleStateOption {
+ value: RuleOverride;
+ label: string;
+}
+
+export interface RuleItem {
+ id: string;
+ name: string;
+ desc: string;
+ states?: RuleStateOption[];
+}
+
+export interface RuleGroup {
+ id: string;
+ title: string;
+ desc: string;
+ rules: RuleItem[];
+}
+
+export interface Weirpack {
+ id: string;
+ name: string;
+ filename: string;
+ size: number;
+ enabled: boolean;
+ ruleCount: number;
+ addedAt: string;
+ installState: 'installed' | 'installing' | 'failed';
+}
+
+export interface AppIntegration {
+ id: string;
+ name: string;
+ kind: string;
+ tint: string;
+ note?: string;
+ custom?: boolean;
+}
+
+export interface SettingsState {
+ setup: SetupState;
+ menuBar: boolean;
+ menuBarClick: 'open-settings' | 'show-menu' | 'toggle-pause' | 'quick-review';
+ launchAtStartup: boolean;
+ autoUpdate: boolean;
+ dialect: string;
+ strictness: 'relaxed' | 'standard' | 'strict';
+ liveCheck: boolean;
+ respectCode: boolean;
+ dictionary: string[];
+ globalShortcuts: boolean;
+ activationKey: 'off' | 'option' | 'control' | 'shift';
+ rules: Record<string, RuleOverride>;
+ integrations: Record<string, boolean>;
+ watchEverywhere: boolean;
+ autoIntegrate: boolean;
+ customApps: AppIntegration[];
+ removedBuiltins: string[];
+ weirpacks: Weirpack[];
+}
+
+export const DIALECT_OPTIONS = [
+ { value: 'american', label: 'American English' },
+ { value: 'british', label: 'British English' },
+ { value: 'canadian', label: 'Canadian English' },
+ { value: 'australian', label: 'Australian English' },
+ { value: 'indian', label: 'Indian English' },
+];
+
+export const RULE_GROUPS: RuleGroup[] = [
+ {
+ id: 'proper-nouns',
+ title: 'Proper Nouns',
+ desc: 'Names of places, organizations, products, and brands that should keep standard capitalization.',
+ rules: [
+ {
+ id: 'pn-wordpress',
+ name: 'WordPress',
+ desc: 'Always written as "WordPress", not "Wordpress" or "wordpress".',
+ },
+ {
+ id: 'pn-macos',
+ name: 'macOS',
+ desc: 'Lowercase "m", uppercase "OS".',
+ },
+ {
+ id: 'pn-github',
+ name: 'GitHub',
+ desc: 'Capital "G" and "H".',
+ },
+ {
+ id: 'pn-openai',
+ name: 'OpenAI',
+ desc: 'One word, capital O and AI.',
+ },
+ ],
+ },
+ {
+ id: 'initialisms',
+ title: 'Initialisms',
+ desc: 'Abbreviated forms that should use expected letter casing or punctuation.',
+ rules: [
+ { id: 'in-api', name: 'API', desc: 'Always uppercase.' },
+ { id: 'in-url', name: 'URL', desc: 'Always uppercase.' },
+ { id: 'in-json', name: 'JSON', desc: 'Always uppercase.' },
+ { id: 'in-etc', name: 'etc.', desc: 'Lowercase with a trailing period.' },
+ ],
+ },
+ {
+ id: 'phrase-corrections',
+ title: 'Phrase Corrections',
+ desc: 'Common phrase-level fixes where a standard expression is preferred.',
+ rules: [
+ {
+ id: 'ph-could-of',
+ name: '"could of" -> "could have"',
+ desc: 'Use "could have", never "could of".',
+ },
+ {
+ id: 'ph-alot',
+ name: '"alot" -> "a lot"',
+ desc: '"A lot" is always two words.',
+ },
+ {
+ id: 'ph-in-order-to',
+ name: '"in order to" -> "to"',
+ desc: 'Usually "to" is sufficient.',
+ },
+ {
+ id: 'ph-utilize',
+ name: '"utilize" -> "use"',
+ desc: 'Prefer the shorter word.',
+ },
+ ],
+ },
+ {
+ id: 'punctuation',
+ title: 'Punctuation',
+ desc: 'Commas, periods, semicolons, and other marks.',
+ rules: [
+ {
+ id: 'pn-oxford',
+ name: 'Oxford comma',
+ desc: 'In a list of three or more, configure the comma before and/or.',
+ states: [
+ { value: 'default', label: 'Default' },
+ { value: 'require', label: 'Require' },
+ { value: 'forbid', label: 'Forbid' },
+ { value: 'off', label: 'Off' },
+ ],
+ },
+ {
+ id: 'pu-double-space',
+ name: 'Double space after period',
+ desc: 'Use only one space between sentences.',
+ },
+ {
+ id: 'pu-comma-splice',
+ name: 'Comma splice',
+ desc: 'Two independent clauses joined by only a comma.',
+ },
+ ],
+ },
+ {
+ id: 'clarity',
+ title: 'Clarity',
+ desc: 'Wordy, vague, or redundant constructions that can usually be tightened.',
+ rules: [
+ {
+ id: 'cl-wordy',
+ name: 'Wordy phrases',
+ desc: 'Tighten bloated expressions.',
+ },
+ {
+ id: 'cl-nominalization',
+ name: 'Nominalizations',
+ desc: '"Make an assessment" -> "assess".',
+ },
+ {
+ id: 'cl-very',
+ name: '"very" as intensifier',
+ desc: 'Prefer a stronger single word.',
+ },
+ ],
+ },
+];
+
+export const ALL_RULES = RULE_GROUPS.flatMap((group) =>
+ group.rules.map((rule) => ({ ...rule, groupId: group.id, groupTitle: group.title })),
+);
+
+export function createInitialSettingsState(): SettingsState {
+ return {
+ setup: {
+ accessibility: 'not_granted',
+ integration: 'not_selected',
+ testDrive: 'not_started',
+ },
+ menuBar: true,
+ menuBarClick: 'open-settings',
+ launchAtStartup: true,
+ autoUpdate: true,
+ dialect: 'american',
+ strictness: 'standard',
+ liveCheck: true,
+ respectCode: true,
+ dictionary: [
+ 'HAL',
+ 'Harper',
+ 'Automattic',
+ 'WordPress',
+ 'macOS',
+ 'kubernetes',
+ 'LLM',
+ 'OKR',
+ 'SQLite',
+ 'OAuth',
+ 'webhooks',
+ 'dogfooding',
+ ],
+ globalShortcuts: true,
+ activationKey: 'off',
+ rules: {},
+ integrations: {
+ textedit: false,
+ mail: false,
+ messages: false,
+ notes: false,
+ },
+ watchEverywhere: false,
+ autoIntegrate: false,
+ customApps: [],
+ removedBuiltins: [],
+ weirpacks: [
+ {
+ id: 'pack-001',
+ name: 'Internal Style Guide',
+ filename: 'automattic-style.weirpack',
+ size: 18420,
+ enabled: true,
+ ruleCount: 47,
+ addedAt: '2026-02-12T00:00:00Z',
+ installState: 'installed',
+ },
+ {
+ id: 'pack-002',
+ name: 'Plain English',
+ filename: 'plain-english.weirpack',
+ size: 9120,
+ enabled: true,
+ ruleCount: 23,
+ addedAt: '2026-03-04T00:00:00Z',
+ installState: 'installed',
+ },
+ {
+ id: 'pack-003',
+ name: 'Legalese Killer',
+ filename: 'legalese-killer.weirpack',
+ size: 31580,
+ enabled: false,
+ ruleCount: 62,
+ addedAt: '2026-04-18T00:00:00Z',
+ installState: 'installed',
+ },
+ ],
+ };
+}
diff --git a/harper-desktop/src/lib/settings/settings.css b/harper-desktop/src/lib/settings/settings.css
new file mode 100644
index 000000000..12fe7cf85
--- /dev/null
+++ b/harper-desktop/src/lib/settings/settings.css
@@ -0,0 +1,975 @@
+body.settings-view {
+ background: #fbfaf7;
+}
+
+* {
+ box-sizing: border-box;
+}
+
+.settings-shell {
+ --settings-amber: #b06a1b;
+ --settings-amber-soft: #d98b3a;
+ --settings-bg-window: #fbfaf7;
+ --settings-bg-sidebar: #f1ede5;
+ --settings-ink: #1c1a16;
+ --settings-ink-2: #4a463e;
+ --settings-ink-3: #807a6e;
+ --settings-ink-4: #ada79a;
+ --settings-line: rgba(28, 26, 22, 0.09);
+ --settings-line-strong: rgba(28, 26, 22, 0.14);
+ --settings-accent: #2a6bd8;
+ height: 100vh;
+ width: 100vw;
+ display: flex;
+ overflow: hidden;
+ background: var(--settings-bg-window);
+ color: var(--settings-ink);
+ font-family:
+ Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
+ font-size: 13px;
+ -webkit-font-smoothing: antialiased;
+}
+
+.content {
+ flex: 1;
+ overflow: auto;
+ padding: 36px 44px;
+}
+
+section {
+ max-width: 720px;
+}
+
+h1,
+h2,
+p {
+ margin: 0;
+}
+
+h1 {
+ font-size: 24px;
+ line-height: 1.2;
+ font-weight: 700;
+}
+
+h2 {
+ font-size: 16px;
+ line-height: 1.3;
+ font-weight: 700;
+}
+
+p {
+ color: var(--settings-ink-3);
+ line-height: 1.45;
+}
+
+button,
+input,
+select {
+ font: inherit;
+}
+
+button {
+ cursor: default;
+}
+
+.grow {
+ flex: 1;
+ min-width: 0;
+}
+
+.spacer {
+ flex: 1;
+}
+
+.eyebrow {
+ margin-bottom: 18px;
+ color: var(--settings-ink-3);
+ font-size: 11px;
+ font-weight: 700;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+}
+
+.hero-copy {
+ margin-bottom: 26px;
+}
+
+.hero-copy .eyebrow {
+ margin-bottom: 8px;
+ color: var(--settings-amber);
+ letter-spacing: 0.12em;
+}
+
+.progress-row,
+.actions-row,
+.step-heading {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+}
+
+.progress-row {
+ margin-top: 18px;
+ color: var(--settings-ink-3);
+ font-size: 12px;
+}
+
+.progress-track {
+ width: 260px;
+ height: 6px;
+ overflow: hidden;
+ border-radius: 999px;
+ background: rgba(0, 0, 0, 0.08);
+}
+
+.progress-fill {
+ height: 100%;
+ border-radius: inherit;
+ background: linear-gradient(90deg, #d98b3a 0%, #b06a1b 100%);
+ transition: width 160ms ease;
+}
+
+.warning-banner,
+.success-banner,
+.note-strip {
+ display: flex;
+ align-items: flex-start;
+ gap: 12px;
+ border-radius: 10px;
+}
+
+.warning-banner {
+ margin-bottom: 22px;
+ padding: 14px 18px;
+ border: 0.5px solid rgba(201, 70, 20, 0.3);
+ background: linear-gradient(180deg, #fff2ed 0%, #ffe4d6 100%);
+}
+
+.success-banner {
+ align-items: center;
+ margin-bottom: 26px;
+ padding: 24px 28px;
+ border: 0.5px solid rgba(30, 120, 70, 0.22);
+ background: linear-gradient(150deg, #e7f5ec 0%, #d5efdf 100%);
+}
+
+.big-mark {
+ width: 34px;
+ height: 34px;
+ flex: 0 0 34px;
+ display: grid;
+ place-items: center;
+ border-radius: 8px;
+ color: #fff;
+ font-weight: 700;
+}
+
+.big-mark.amber {
+ background: linear-gradient(180deg, #f07a3a 0%, #c94614 100%);
+}
+
+.big-mark.green {
+ background: linear-gradient(180deg, #3dbd6d 0%, #1f8f5c 100%);
+}
+
+.big-mark.purple {
+ background: linear-gradient(180deg, #b78cf6 0%, #7c3aed 100%);
+}
+
+.big-mark .settings-icon {
+ width: 20px;
+ height: 20px;
+ flex-basis: 20px;
+}
+
+.success-banner .big-mark .settings-icon {
+ width: 22px;
+ height: 22px;
+ flex-basis: 22px;
+}
+
+.step-list,
+.list-card,
+.rule-group {
+ overflow: hidden;
+ border: 0.5px solid var(--settings-line-strong);
+ border-radius: 10px;
+ background: #fff;
+}
+
+.step-row {
+ display: flex;
+ align-items: flex-start;
+ gap: 14px;
+ padding: 18px 20px;
+ border-bottom: 0.5px solid var(--settings-line);
+}
+
+.step-row:last-child {
+ border-bottom: 0;
+}
+
+.step-row.done {
+ background: linear-gradient(180deg, rgba(30, 143, 92, 0.04) 0%, transparent 100%);
+}
+
+.step-row.locked {
+ opacity: 0.52;
+}
+
+.step-dot {
+ width: 26px;
+ height: 26px;
+ flex: 0 0 26px;
+ display: grid;
+ place-items: center;
+ border: 1px solid rgba(0, 0, 0, 0.2);
+ border-radius: 999px;
+ color: var(--settings-ink-3);
+ font-weight: 700;
+}
+
+.done .step-dot {
+ border: 0;
+ background: linear-gradient(180deg, #3dbd6d 0%, #1f8f5c 100%);
+ color: #fff;
+}
+
+.step-dot .settings-icon,
+.search-strip .settings-icon,
+.rule-search .settings-icon,
+.icon-button .settings-icon {
+ width: 13px;
+ height: 13px;
+ flex-basis: 13px;
+}
+
+.detected-app,
+.note-strip {
+ margin-top: 12px;
+ padding: 12px 14px;
+ border-radius: 8px;
+ background: #faf8f3;
+}
+
+.detected-app {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ border: 0.5px solid var(--settings-line-strong);
+}
+
+.note-strip {
+ margin-top: 22px;
+ gap: 8px;
+ color: var(--settings-ink-3);
+}
+
+.stanza {
+ margin-bottom: 30px;
+}
+
+.rows {
+ display: flex;
+ flex-direction: column;
+ gap: 22px;
+}
+
+.row,
+.inline-row {
+ display: flex;
+ align-items: center;
+ gap: 24px;
+}
+
+.row.top {
+ align-items: flex-start;
+}
+
+.row > div:first-child {
+ flex: 1;
+ min-width: 0;
+}
+
+.row strong,
+.inline-row label {
+ display: inline-block;
+ color: var(--settings-ink);
+ font-weight: 600;
+ line-height: 1.35;
+}
+
+.row p,
+.section-copy {
+ max-width: 520px;
+ margin-top: 3px;
+ font-size: 12.5px;
+}
+
+.inline-row label {
+ min-width: 140px;
+}
+
+.divider {
+ height: 1px;
+ margin: 20px 0;
+ background: var(--settings-line);
+}
+
+.button,
+.select,
+.text-field {
+ height: 28px;
+ border-radius: 6px;
+ border: 0.5px solid rgba(0, 0, 0, 0.18);
+ background: linear-gradient(180deg, #fff 0%, #f4f1ea 100%);
+ color: var(--settings-ink);
+ box-shadow:
+ 0 0.5px 0 rgba(0, 0, 0, 0.04),
+ inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
+}
+
+.button {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 6px;
+ padding: 0 12px;
+ white-space: nowrap;
+ font-weight: 600;
+}
+
+.button.primary {
+ border-color: transparent;
+ background: linear-gradient(180deg, var(--settings-amber-soft) 0%, var(--settings-amber) 100%);
+ color: #fff;
+}
+
+.button.danger {
+ color: #b42318;
+ background: #fff;
+ border-color: rgba(180, 35, 24, 0.35);
+}
+
+.button:disabled {
+ opacity: 0.7;
+}
+
+.select {
+ min-width: 145px;
+ padding: 0 28px 0 10px;
+}
+
+.select.wide {
+ min-width: 220px;
+}
+
+.select.compact {
+ min-width: 110px;
+ height: 26px;
+ font-size: 12.5px;
+}
+
+.text-field {
+ background: #fff;
+ box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.05);
+ padding: 0 10px;
+}
+
+.checkbox {
+ width: 16px;
+ height: 16px;
+ flex: 0 0 16px;
+ display: grid;
+ place-items: center;
+ border-radius: 4px;
+ border: 1px solid rgba(0, 0, 0, 0.25);
+ background: #fff;
+ color: #fff;
+ padding: 0;
+}
+
+.checkbox.checked {
+ border-color: rgba(0, 0, 0, 0.15);
+ background: var(--settings-accent);
+}
+
+.checkbox .settings-icon {
+ width: 11px;
+ height: 11px;
+ flex-basis: 11px;
+}
+
+.toggle {
+ width: 34px;
+ height: 20px;
+ flex: 0 0 34px;
+ border: 0;
+ border-radius: 999px;
+ background: #d4cfc4;
+ padding: 2px;
+ box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.1);
+}
+
+.toggle span {
+ display: block;
+ width: 16px;
+ height: 16px;
+ border-radius: 999px;
+ background: #fff;
+ box-shadow:
+ 0 1px 2px rgba(0, 0, 0, 0.2),
+ 0 0.5px 0 rgba(0, 0, 0, 0.1);
+ transition: transform 150ms ease;
+}
+
+.toggle.checked {
+ background: var(--settings-accent);
+}
+
+.toggle.checked span {
+ transform: translateX(14px);
+}
+
+.add-row {
+ display: flex;
+ gap: 8px;
+}
+
+.add-row .text-field {
+ flex: 1;
+}
+
+.search-strip,
+.modal-search {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ background: #faf8f3;
+}
+
+.search-strip {
+ padding: 8px 12px;
+ border-bottom: 0.5px solid var(--settings-line);
+}
+
+.search-strip input,
+.modal-search input,
+.rule-search input {
+ flex: 1;
+ border: 0;
+ outline: 0;
+ background: transparent;
+ color: var(--settings-ink);
+}
+
+.dictionary-list {
+ max-height: 320px;
+ overflow: auto;
+}
+
+.list-row,
+.app-row,
+.pack-row {
+ display: flex;
+ align-items: center;
+ gap: 14px;
+ padding: 10px 14px;
+ border-bottom: 0.5px solid var(--settings-line);
+}
+
+.list-row:last-child,
+.app-row:last-child,
+.pack-row:last-child {
+ border-bottom: 0;
+}
+
+code,
+kbd {
+ font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
+}
+
+code {
+ font-size: 12px;
+}
+
+.icon-button {
+ width: 26px;
+ height: 26px;
+ flex: 0 0 26px;
+ display: grid;
+ place-items: center;
+ border: 0;
+ border-radius: 6px;
+ background: transparent;
+ color: var(--settings-ink-3);
+}
+
+.icon-button:hover {
+ background: rgba(0, 0, 0, 0.06);
+ color: var(--settings-ink);
+}
+
+.icon-button.danger:hover {
+ background: rgba(180, 35, 24, 0.08);
+ color: #b42318;
+}
+
+.list-row .icon-button .settings-icon,
+.rule-search .icon-button .settings-icon {
+ width: 10px;
+ height: 10px;
+ flex-basis: 10px;
+}
+
+.empty {
+ padding: 34px;
+ text-align: center;
+ color: var(--settings-ink-3);
+}
+
+.actions-row {
+ margin-top: 14px;
+}
+
+.actions-row.center {
+ justify-content: center;
+}
+
+.shortcut-list {
+ display: flex;
+ flex-direction: column;
+ margin-bottom: 20px;
+}
+
+.shortcut-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 16px;
+ border: 0;
+ border-bottom: 0.5px solid var(--settings-line);
+ background: transparent;
+ padding: 10px 4px;
+ text-align: left;
+ color: var(--settings-ink);
+}
+
+.shortcut-row:hover {
+ background: rgba(0, 0, 0, 0.025);
+}
+
+.kbd-group {
+ display: flex;
+ gap: 4px;
+}
+
+kbd {
+ min-width: 22px;
+ height: 22px;
+ display: inline-grid;
+ place-items: center;
+ border: 0.5px solid rgba(0, 0, 0, 0.18);
+ border-radius: 5px;
+ background: #fff;
+ color: var(--settings-ink);
+ padding: 0 6px;
+ font-size: 11px;
+}
+
+em,
+.muted {
+ color: var(--settings-ink-3);
+ font-size: 12.5px;
+}
+
+.rules-heading {
+ margin-bottom: 18px;
+}
+
+.rules-heading .eyebrow {
+ margin-bottom: 10px;
+}
+
+.rules-heading p {
+ margin-top: 6px;
+}
+
+.sticky-tools {
+ position: sticky;
+ top: -36px;
+ z-index: 5;
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ margin: 0 -44px 16px;
+ padding: 10px 44px;
+ border-bottom: 0.5px solid var(--settings-line);
+ background: rgba(251, 250, 247, 0.88);
+ backdrop-filter: blur(14px);
+}
+
+.rule-search {
+ min-width: 260px;
+ flex: 1;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ height: 30px;
+ padding: 0 9px;
+ border: 0.5px solid rgba(0, 0, 0, 0.18);
+ border-radius: 7px;
+ background: #fff;
+}
+
+.result-summary {
+ margin-bottom: 12px;
+ font-size: 12.5px;
+}
+
+.rule-groups {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.group-head {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ border: 0;
+ background: transparent;
+ padding: 14px 16px;
+ text-align: left;
+ color: inherit;
+}
+
+.group-head:hover {
+ background: #faf8f3;
+}
+
+.group-head p {
+ margin-top: 3px;
+ font-size: 12.5px;
+}
+
+.group-head small {
+ display: inline-block;
+ margin-top: 6px;
+ color: var(--settings-ink-4);
+ font-size: 11.5px;
+}
+
+.chevron {
+ width: 16px;
+ height: 16px;
+ flex: 0 0 16px;
+ color: var(--settings-ink-3);
+ fill: currentColor;
+ transition: transform 140ms ease;
+}
+
+.chevron.expanded {
+ transform: rotate(90deg);
+}
+
+.rules-list {
+ border-top: 0.5px solid var(--settings-line);
+}
+
+.rule-row {
+ display: flex;
+ align-items: flex-start;
+ gap: 14px;
+ padding: 11px 16px 11px 48px;
+ border-bottom: 0.5px solid var(--settings-line);
+}
+
+.rule-row:last-child {
+ border-bottom: 0;
+}
+
+.rule-row.customized {
+ background: rgba(217, 139, 58, 0.04);
+}
+
+.rule-row p {
+ margin-top: 3px;
+ font-size: 12.5px;
+}
+
+.pill {
+ display: inline-flex;
+ align-items: center;
+ margin-left: 6px;
+ border-radius: 4px;
+ background: rgba(0, 0, 0, 0.05);
+ color: var(--settings-ink-3);
+ padding: 2px 6px;
+ font-size: 10.5px;
+ font-weight: 700;
+ letter-spacing: 0.04em;
+ text-transform: uppercase;
+}
+
+.pill.amber {
+ background: rgba(217, 139, 58, 0.12);
+ color: var(--settings-amber);
+}
+
+.pill.purple-text,
+.purple-text {
+ color: #7c3aed;
+}
+
+.drop-zone {
+ display: flex;
+ align-items: center;
+ gap: 16px;
+ border: 1.5px dashed rgba(0, 0, 0, 0.18);
+ border-radius: 10px;
+ background: #fff;
+ padding: 22px 24px;
+}
+
+.drop-zone.dragging {
+ border-color: var(--settings-amber);
+ background: rgba(217, 139, 58, 0.06);
+}
+
+.drop-zone input {
+ display: none;
+}
+
+.pack-row.disabled {
+ opacity: 0.62;
+}
+
+.pack-icon,
+.app-tile {
+ display: grid;
+ place-items: center;
+ color: #fff;
+ font-weight: 700;
+ box-shadow:
+ 0 1px 2px rgba(0, 0, 0, 0.1),
+ inset 0 0.5px 0 rgba(255, 255, 255, 0.3);
+}
+
+.pack-icon {
+ width: 32px;
+ height: 32px;
+ flex: 0 0 32px;
+ border-radius: 8px;
+ background: linear-gradient(180deg, #b78cf6 0%, #7c3aed 100%);
+}
+
+.pack-icon .settings-icon {
+ width: 16px;
+ height: 16px;
+ flex-basis: 16px;
+}
+
+.app-tile {
+ width: 28px;
+ height: 28px;
+ flex: 0 0 28px;
+ border-radius: 7px;
+ background: var(--app-tint);
+}
+
+.pack-title {
+ border: 0;
+ background: transparent;
+ color: var(--settings-ink);
+ padding: 0;
+ text-align: left;
+ font-weight: 700;
+}
+
+.inline-edit {
+ width: min(420px, 100%);
+ height: 26px;
+ border: 1px solid var(--settings-accent);
+ border-radius: 5px;
+ padding: 0 8px;
+}
+
+.status {
+ display: inline-flex;
+ margin-top: 4px;
+ border-radius: 999px;
+ padding: 2px 7px;
+ background: rgba(42, 107, 216, 0.1);
+ color: #1f4fa3;
+ font-size: 11px;
+ font-weight: 700;
+ text-transform: capitalize;
+}
+
+.status.failed {
+ background: rgba(196, 48, 32, 0.1);
+ color: #a4291a;
+}
+
+.app-row p,
+.pack-row p {
+ margin-top: 2px;
+ font-size: 12px;
+}
+
+.about {
+ max-width: 520px;
+ margin: 0 auto;
+ padding-top: 24px;
+ text-align: center;
+}
+
+.about-mark {
+ width: 84px;
+ height: 84px;
+ display: grid;
+ place-items: center;
+ margin: 0 auto 20px;
+ border-radius: 20px;
+ background: linear-gradient(180deg, #d98b3a 0%, #b06a1b 100%);
+ color: #fff;
+ font-size: 40px;
+ font-weight: 800;
+ box-shadow:
+ 0 8px 24px rgba(176, 106, 27, 0.35),
+ inset 0 1px 0 rgba(255, 255, 255, 0.25);
+}
+
+.about > p {
+ margin: 14px auto 0;
+ max-width: 420px;
+}
+
+.about-footer {
+ margin-top: 36px;
+ padding-top: 20px;
+ border-top: 0.5px solid var(--settings-line);
+ color: var(--settings-ink-3);
+ line-height: 1.6;
+}
+
+.modal-backdrop {
+ position: fixed;
+ inset: 0;
+ z-index: 20;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: rgba(0, 0, 0, 0.18);
+ backdrop-filter: blur(2px);
+}
+
+.modal {
+ width: min(520px, calc(100vw - 48px));
+ max-height: min(540px, calc(100vh - 48px));
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ border: 0.5px solid rgba(255, 255, 255, 0.4);
+ border-radius: 12px;
+ background: rgba(246, 243, 236, 0.96);
+ box-shadow:
+ 0 24px 60px rgba(0, 0, 0, 0.32),
+ 0 0 0 0.5px rgba(0, 0, 0, 0.15);
+}
+
+.modal-head {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ padding: 14px 16px 10px;
+ border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
+}
+
+.modal-head span {
+ color: var(--settings-ink-3);
+ font-size: 11.5px;
+}
+
+.modal-search {
+ padding: 10px 12px;
+ border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
+}
+
+.modal-search .settings-icon {
+ width: 12px;
+ height: 12px;
+ flex-basis: 12px;
+}
+
+.modal-search input {
+ height: 26px;
+ border: 0.5px solid rgba(0, 0, 0, 0.18);
+ border-radius: 6px;
+ background: #fff;
+ padding: 0 10px;
+}
+
+.modal-list {
+ flex: 1;
+ overflow: auto;
+ padding: 6px;
+}
+
+.picker-row {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ border: 0;
+ border-radius: 6px;
+ background: transparent;
+ padding: 8px 10px;
+ color: var(--settings-ink);
+ text-align: left;
+}
+
+.picker-row:hover {
+ background: var(--settings-accent);
+ color: #fff;
+}
+
+.picker-row small {
+ display: block;
+ margin-top: 1px;
+ color: var(--settings-ink-3);
+}
+
+.picker-row:hover small {
+ color: rgba(255, 255, 255, 0.8);
+}
+
+.modal-actions {
+ display: flex;
+ justify-content: flex-end;
+ padding: 10px 14px;
+ border-top: 0.5px solid rgba(0, 0, 0, 0.08);
+}
+
+@media (max-width: 820px) {
+ .content {
+ padding: 28px;
+ }
+
+ .sticky-tools {
+ top: -28px;
+ margin-inline: -28px;
+ padding-inline: 28px;
+ flex-wrap: wrap;
+ }
+
+ .row,
+ .step-row,
+ .pack-row,
+ .app-row {
+ gap: 14px;
+ }
+}
diff --git a/harper-desktop/src/routes/+layout.ts b/harper-desktop/src/routes/+layout.ts
new file mode 100644
index 000000000..9d2489908
--- /dev/null
+++ b/harper-desktop/src/routes/+layout.ts
@@ -0,0 +1,5 @@
+// Tauri doesn't have a Node.js server to do proper SSR
+// so we use adapter-static with a fallback to index.html to put the site in SPA mode
+// See: https://svelte.dev/docs/kit/single-page-apps
+// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info
+export const ssr = false;
diff --git a/harper-desktop/src/routes/+page.svelte b/harper-desktop/src/routes/+page.svelte
new file mode 100644
index 000000000..86d979421
--- /dev/null
+++ b/harper-desktop/src/routes/+page.svelte
@@ -0,0 +1,48 @@
+<script lang="ts">
+import '../app.css';
+import { getCurrentWindow } from '@tauri-apps/api/window';
+import { onMount } from 'svelte';
+
+let isSettings = false;
+let isViewResolved = false;
+
+function hasSettingsRoute() {
+ return (
+ new URLSearchParams(window.location.search).get('view') === 'settings' ||
+ window.location.hash === '#settings'
+ );
+}
+
+onMount(() => {
+ let currentWindowLabel = '';
+
+ try {
+ currentWindowLabel = getCurrentWindow().label;
+ } catch {
+ currentWindowLabel = '';
+ }
+
+ isSettings = currentWindowLabel === 'settings' || hasSettingsRoute();
+ isViewResolved = true;
+
+ if (isSettings) {
+ document.body.classList.add('settings-view');
+ }
+
+ return () => {
+ document.body.classList.remove('settings-view');
+ };
+});
+</script>
+
+{#if isViewResolved}
+ {#if isSettings}
+ {#await import("$lib/settings/SettingsApp.svelte") then module}
+ <svelte:component this={module.default} />
+ {/await}
+ {:else}
+ {#await import("$lib/EditorView.svelte") then module}
+ <svelte:component this={module.default} />
+ {/await}
+ {/if}
+{/if}
diff --git a/harper-desktop/static/favicon.png b/harper-desktop/static/favicon.png
new file mode 100644
index 000000000..825b9e65a
Binary files /dev/null and b/harper-desktop/static/favicon.png differ
diff --git a/harper-desktop/static/settings-icons/book.svg b/harper-desktop/static/settings-icons/book.svg
new file mode 100644
index 000000000..a388f4d2f
--- /dev/null
+++ b/harper-desktop/static/settings-icons/book.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 3h6a2 2 0 0 1 2 2v9H5a2 2 0 0 1-2-2V3z"/>
+ <path d="M13 3h-2a2 2 0 0 0-2 2v9h4V3z"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/check.svg b/harper-desktop/static/settings-icons/check.svg
new file mode 100644
index 000000000..8da45c38c
--- /dev/null
+++ b/harper-desktop/static/settings-icons/check.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="m3.5 8.5 3 3 6-6.5"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/checklist.svg b/harper-desktop/static/settings-icons/checklist.svg
new file mode 100644
index 000000000..3f10de60c
--- /dev/null
+++ b/harper-desktop/static/settings-icons/checklist.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 4l1.5 1.5L7 3"/>
+ <path d="M3 8.5l1.5 1.5L7 7"/>
+ <path d="M3 13l1.5 1.5L7 11.5"/>
+ <path d="M9.5 4.5h4M9.5 9h4M9.5 13.5h4"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/gear.svg b/harper-desktop/static/settings-icons/gear.svg
new file mode 100644
index 000000000..0f28b83e8
--- /dev/null
+++ b/harper-desktop/static/settings-icons/gear.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <circle cx="8" cy="8" r="2.2"/>
+ <path d="M8 1.5v1.8M8 12.7v1.8M14.5 8h-1.8M3.3 8H1.5M12.6 3.4l-1.3 1.3M4.7 11.3l-1.3 1.3M12.6 12.6l-1.3-1.3M4.7 4.7L3.4 3.4"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/grid.svg b/harper-desktop/static/settings-icons/grid.svg
new file mode 100644
index 000000000..7a122d512
--- /dev/null
+++ b/harper-desktop/static/settings-icons/grid.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <rect x="2" y="2" width="5" height="5" rx="1"/>
+ <rect x="9" y="2" width="5" height="5" rx="1"/>
+ <rect x="2" y="9" width="5" height="5" rx="1"/>
+ <rect x="9" y="9" width="5" height="5" rx="1"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/info.svg b/harper-desktop/static/settings-icons/info.svg
new file mode 100644
index 000000000..95a1dcff5
--- /dev/null
+++ b/harper-desktop/static/settings-icons/info.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <circle cx="8" cy="8" r="6"/>
+ <path d="M8 7.5V11M8 5.5v.01"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/key.svg b/harper-desktop/static/settings-icons/key.svg
new file mode 100644
index 000000000..608bc6f57
--- /dev/null
+++ b/harper-desktop/static/settings-icons/key.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <rect x="2" y="7" width="6" height="4" rx="1"/>
+ <path d="M8 9h6M12 9v2M14 9v2.5"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/package.svg b/harper-desktop/static/settings-icons/package.svg
new file mode 100644
index 000000000..7418a2e7a
--- /dev/null
+++ b/harper-desktop/static/settings-icons/package.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M2.5 4.5 8 2l5.5 2.5v7L8 14l-5.5-2.5z"/>
+ <path d="M2.5 4.5 8 7l5.5-2.5"/>
+ <path d="M8 7v7"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/quill.svg b/harper-desktop/static/settings-icons/quill.svg
new file mode 100644
index 000000000..db200055e
--- /dev/null
+++ b/harper-desktop/static/settings-icons/quill.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 13l7-7 3-3v4l-7 7z"/>
+ <path d="M3 13l2-2"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/rocket.svg b/harper-desktop/static/settings-icons/rocket.svg
new file mode 100644
index 000000000..6a79d8567
--- /dev/null
+++ b/harper-desktop/static/settings-icons/rocket.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M11 3c1.5 0 2 .5 2 2 0 3-3.5 6.5-6 8l-2-2c1.5-2.5 5-6 8-8z"/>
+ <path d="M8.5 7.5 10 9"/>
+ <path d="m5 11-2 2 1.5.5L4 15l1.5-.5.5 1.5 1.5-2"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/search.svg b/harper-desktop/static/settings-icons/search.svg
new file mode 100644
index 000000000..4ca5edbd3
--- /dev/null
+++ b/harper-desktop/static/settings-icons/search.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <circle cx="7" cy="7" r="4.2"/>
+ <path d="m10 10 3 3"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/trash.svg b/harper-desktop/static/settings-icons/trash.svg
new file mode 100644
index 000000000..82654adc8
--- /dev/null
+++ b/harper-desktop/static/settings-icons/trash.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M3 4.5h10"/>
+ <path d="M5.5 4.5v-1a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1"/>
+ <path d="M4.5 4.5V13a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4.5"/>
+ <path d="M7 7v4.5M9 7v4.5"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/upload.svg b/harper-desktop/static/settings-icons/upload.svg
new file mode 100644
index 000000000..bf7e56385
--- /dev/null
+++ b/harper-desktop/static/settings-icons/upload.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M8 11V3"/>
+ <path d="M5 6l3-3 3 3"/>
+ <path d="M3 11v2h10v-2"/>
+</svg>
diff --git a/harper-desktop/static/settings-icons/x.svg b/harper-desktop/static/settings-icons/x.svg
new file mode 100644
index 000000000..a8d9ce8ce
--- /dev/null
+++ b/harper-desktop/static/settings-icons/x.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
+ <path d="m4 4 8 8M12 4l-8 8"/>
+</svg>
diff --git a/harper-desktop/svelte.config.js b/harper-desktop/svelte.config.js
new file mode 100644
index 000000000..95d34b6c1
--- /dev/null
+++ b/harper-desktop/svelte.config.js
@@ -0,0 +1,18 @@
+// Tauri doesn't have a Node.js server to do proper SSR
+// so we use adapter-static with a fallback to index.html to put the site in SPA mode
+// See: https://svelte.dev/docs/kit/single-page-apps
+// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info
+import adapter from '@sveltejs/adapter-static';
+import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
+
+/** @type {import('@sveltejs/kit').Config} */
+const config = {
+ preprocess: vitePreprocess(),
+ kit: {
+ adapter: adapter({
+ fallback: 'index.html',
+ }),
+ },
+};
+
+export default config;
diff --git a/harper-desktop/tsconfig.json b/harper-desktop/tsconfig.json
new file mode 100644
index 000000000..0b2d8865f
--- /dev/null
+++ b/harper-desktop/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "extends": "./.svelte-kit/tsconfig.json",
+ "compilerOptions": {
+ "allowJs": true,
+ "checkJs": true,
+ "esModuleInterop": true,
+ "forceConsistentCasingInFileNames": true,
+ "resolveJsonModule": true,
+ "skipLibCheck": true,
+ "sourceMap": true,
+ "strict": true,
+ "moduleResolution": "bundler"
+ }
+ // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
+ // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
+ //
+ // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
+ // from the referenced tsconfig.json - TypeScript does not merge them in
+}
diff --git a/harper-desktop/vite.config.js b/harper-desktop/vite.config.js
new file mode 100644
index 000000000..87b086e38
--- /dev/null
+++ b/harper-desktop/vite.config.js
@@ -0,0 +1,37 @@
+import { sveltekit } from '@sveltejs/kit/vite';
+import tailwindcss from '@tailwindcss/vite';
+import { defineConfig } from 'vite';
+import topLevelAwait from 'vite-plugin-top-level-await';
+import wasm from 'vite-plugin-wasm';
+
+const host = process.env.TAURI_DEV_HOST;
+
+// https://vite.dev/config/
+export default defineConfig(async () => ({
+ plugins: [wasm(), topLevelAwait(), tailwindcss(), sveltekit()],
+
+ // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
+ //
+ // 1. prevent Vite from obscuring rust errors
+ clearScreen: false,
+ // 2. tauri expects a fixed port, fail if that port is not available
+ server: {
+ port: 1420,
+ strictPort: true,
+ fs: {
+ allow: ['../packages/harper.js/dist'],
+ },
+ host: host || false,
+ hmr: host
+ ? {
+ protocol: 'ws',
+ host,
+ port: 1421,
+ }
+ : undefined,
+ watch: {
+ // 3. tell Vite to ignore watching `src-tauri`
+ ignored: ['**/src-tauri/**'],
+ },
+ },
+}));
diff --git a/justfile b/justfile
index cb6a61557..a65997925 100644
--- a/justfile
+++ b/justfile
@@ -20,6 +20,7 @@ soft-clean:
rm -rf packages/vscode-plugin/{.vscode-test,bin,build}
rm -rf packages/web/{.svelte-kit,.sveltepress,build}
rm -rf packages/wordpress-plugin/{build,harper.zip}
+ rm -rf harper-desktop/{.svelte-kit,build,package}
rm -rf harper-wasm/pkg
# Hard clean all build artifacts and dependencies
@@ -157,6 +158,52 @@ build-web: build-harperjs build-lint-framework build-components build-harper-edi
pnpm install
pnpm build
+# Start a development server for Harper Desktop.
+dev-desktop: build-harperjs build-lint-framework build-components build-harper-editor
+ #!/usr/bin/env bash
+ set -eo pipefail
+
+ cd "{{justfile_directory()}}/harper-desktop"
+ pnpm install
+ cargo tauri dev
+
+# Start the Harper Desktop highlighter process directly.
+dev-desktop-highlighter:
+ #!/usr/bin/env bash
+ set -eo pipefail
+
+ cargo run -p harper-desktop -- highlighter
+
+# Check Harper Desktop frontend and Rust targets.
+check-desktop: build-harperjs build-lint-framework build-components build-harper-editor
+ #!/usr/bin/env bash
+ set -eo pipefail
+
+ cd "{{justfile_directory()}}/harper-desktop"
+ pnpm install
+ pnpm check
+
+ cd "{{justfile_directory()}}"
+ cargo check -p harper-desktop --all-targets
+
+# Build Harper Desktop Linux bundles.
+build-desktop-linux: build-harperjs build-lint-framework build-components build-harper-editor
+ #!/usr/bin/env bash
+ set -eo pipefail
+
+ cd "{{justfile_directory()}}/harper-desktop"
+ pnpm install
+ cargo tauri build -b deb,rpm,appimage
+
+# Build Harper Desktop macOS bundles.
+build-desktop-macos: build-harperjs build-lint-framework build-components build-harper-editor
+ #!/usr/bin/env bash
+ set -eo pipefail
+
+ cd "{{justfile_directory()}}/harper-desktop"
+ pnpm install
+ cargo tauri build -b app,dmg
+
# Build the Harper Obsidian plugin.
build-obsidian: build-harperjs
#!/usr/bin/env bash
diff --git a/packages/harper.js/src/BinaryModule.ts b/packages/harper.js/src/BinaryModule.ts
index c4045996e..ef62df07d 100644
--- a/packages/harper.js/src/BinaryModule.ts
+++ b/packages/harper.js/src/BinaryModule.ts
@@ -1,31 +1,83 @@
+import * as defaultGlue from 'harper-wasm';
import { Dialect, type InitInput, type Linter as WasmLinter } from 'harper-wasm';
+import * as fullGlue from 'harper-wasm/harper_wasm.js';
import LazyPromise from 'p-lazy';
import pMemoize from 'p-memoize';
import type { LintConfig } from './main';
-const loadBinary = pMemoize(async (binary: string) => {
- const exports = await import('harper-wasm');
+type WasmModule = typeof fullGlue;
+// Adding a new flavor requires importing its generated glue and updating loadGlue.
+export type WasmGlueFlavor = 'full' | 'slim';
- let input: InitInput;
+function inferGlueFlavor(binary: string): WasmGlueFlavor {
+ return binary.includes('harper_wasm_slim') ? 'slim' : 'full';
+}
+
+function loadGlue(glueFlavor: WasmGlueFlavor): WasmModule {
+ if (glueFlavor === 'slim') {
+ return defaultGlue as WasmModule;
+ }
+
+ return fullGlue;
+}
+
+function getDefaultGlueBinary(binary: string, glueFlavor: WasmGlueFlavor): string | null {
+ if (glueFlavor === 'slim') {
+ return binary;
+ }
+
+ if (binary.includes('harper_wasm_bg.wasm')) {
+ return binary.replace('harper_wasm_bg.wasm', 'harper_wasm_slim_bg.wasm');
+ }
+
+ return null;
+}
+
+function getInitInput(binary: string): InitInput {
if (typeof process !== 'undefined' && binary.startsWith('file://')) {
- const fs = await import(/* webpackIgnore: true */ /* @vite-ignore */ 'fs');
- input = new Promise((resolve, reject) => {
- fs.readFile(new URL(binary).pathname, (err, data) => {
- if (err) reject(err);
- resolve(data);
- });
- });
- } else {
- input = binary;
+ return import(/* webpackIgnore: true */ /* @vite-ignore */ 'fs').then(
+ (fs) =>
+ new Promise<Uint8Array>((resolve, reject) => {
+ fs.readFile(new URL(binary).pathname, (err, data) => {
+ if (err) reject(err);
+ resolve(data);
+ });
+ }),
+ );
}
- await exports.default({ module_or_path: input });
- return exports;
-});
+ return binary;
+}
+
+const loadBinaryWithKey = pMemoize(
+ async (_cacheKey: string, binary: string, glueFlavor: WasmGlueFlavor) => {
+ const exports = loadGlue(glueFlavor);
+
+ const defaultGlueBinary = getDefaultGlueBinary(binary, glueFlavor);
+ if (defaultGlueBinary != null) {
+ try {
+ await defaultGlue.default({ module_or_path: getInitInput(defaultGlueBinary) });
+ } catch (err) {
+ if (glueFlavor === 'slim') {
+ throw err;
+ }
+ }
+ }
+
+ await exports.default({ module_or_path: getInitInput(binary) });
+
+ return exports;
+ },
+);
+
+function loadBinary(binary: string, glueFlavor: WasmGlueFlavor) {
+ return loadBinaryWithKey(`${glueFlavor}:${binary}`, binary, glueFlavor);
+}
export interface BinaryModule {
url: string | URL;
+ glueFlavor: WasmGlueFlavor;
getDefaultLintConfigAsJSON(): Promise<string>;
@@ -36,22 +88,24 @@ export interface BinaryModule {
setup(): Promise<void>;
}
-export function createBinaryModuleFromUrl(url: string): BinaryModule {
- return BinaryModuleImpl.create(url);
+export function createBinaryModuleFromUrl(url: string, glueFlavor?: WasmGlueFlavor): BinaryModule {
+ return BinaryModuleImpl.create(url, glueFlavor);
}
/** A wrapper around the underlying WebAssembly module that contains Harper's core code. Used to construct a `Linter`, as well as access some miscellaneous other functions. */
export class BinaryModuleImpl {
public url: string | URL = '';
- private inner: Promise<typeof import('harper-wasm')> | null = null;
+ public glueFlavor: WasmGlueFlavor = 'full';
+ private inner: Promise<WasmModule> | null = null;
/** Load a binary from a specified URL. This is the only recommended way to construct this type. */
- public static create(url: string | URL): BinaryModuleImpl {
+ public static create(url: string | URL, glueFlavor?: WasmGlueFlavor): BinaryModuleImpl {
const module = new SuperBinaryModule();
module.url = url;
+ module.glueFlavor = glueFlavor ?? inferGlueFlavor(typeof url === 'string' ? url : url.href);
module.inner = LazyPromise.from(() =>
- loadBinary(typeof module.url === 'string' ? module.url : module.url.href),
+ loadBinary(typeof module.url === 'string' ? module.url : module.url.href, module.glueFlavor),
);
return module;
@@ -86,7 +140,7 @@ export class SuperBinaryModule extends BinaryModuleImpl {
async getBinaryModule(): Promise<any> {
return await LazyPromise.from(() =>
- loadBinary(typeof this.url === 'string' ? this.url : this.url.href),
+ loadBinary(typeof this.url === 'string' ? this.url : this.url.href, this.glueFlavor),
);
}
}
diff --git a/packages/harper.js/src/Serializer.ts b/packages/harper.js/src/Serializer.ts
index 146fa8118..c6693b79e 100644
--- a/packages/harper.js/src/Serializer.ts
+++ b/packages/harper.js/src/Serializer.ts
@@ -72,12 +72,13 @@ export default class Serializer {
if (arg.to_json !== undefined) {
const json = arg.to_json();
let type: SerializableTypes | undefined;
+ const constructorName = arg.constructor?.name;
- if (arg instanceof Lint) {
+ if (arg instanceof Lint || constructorName === 'Lint') {
type = 'Lint';
- } else if (arg instanceof Suggestion) {
+ } else if (arg instanceof Suggestion || constructorName === 'Suggestion') {
type = 'Suggestion';
- } else if (arg instanceof Span) {
+ } else if (arg instanceof Span || constructorName === 'Span') {
type = 'Span';
}
diff --git a/packages/harper.js/src/WorkerLinter/index.ts b/packages/harper.js/src/WorkerLinter/index.ts
index 47bb8e7e2..6a483371e 100644
--- a/packages/harper.js/src/WorkerLinter/index.ts
+++ b/packages/harper.js/src/WorkerLinter/index.ts
@@ -38,7 +38,7 @@ export default class WorkerLinter implements Linter {
this.worker.onmessage = () => {
this.setupMainEventListeners();
- this.worker.postMessage([this.binary.url, this.dialect]);
+ this.worker.postMessage([this.binary.url, this.dialect, this.binary.glueFlavor]);
this.working = false;
this.submitRemainingRequests();
diff --git a/packages/harper.js/src/WorkerLinter/worker.ts b/packages/harper.js/src/WorkerLinter/worker.ts
index 3133c332e..659e7dbd5 100644
--- a/packages/harper.js/src/WorkerLinter/worker.ts
+++ b/packages/harper.js/src/WorkerLinter/worker.ts
@@ -1,6 +1,6 @@
/// <reference lib="webworker" />
import './shims';
-import { SuperBinaryModule } from '../BinaryModule';
+import { SuperBinaryModule, type WasmGlueFlavor } from '../BinaryModule';
import LocalLinter from '../LocalLinter';
import Serializer, { isSerializedRequest, type SerializedRequest } from '../Serializer';
@@ -8,11 +8,14 @@ import Serializer, { isSerializedRequest, type SerializedRequest } from '../Seri
self.postMessage('ready');
self.onmessage = (e) => {
- const [binaryUrl, dialect] = e.data;
+ const [binaryUrl, dialect, glueFlavor] = e.data;
if (typeof binaryUrl !== 'string') {
throw new TypeError(`Expected binary to be a string of url but got ${typeof binaryUrl}.`);
}
- const binary = SuperBinaryModule.create(binaryUrl);
+ if (glueFlavor !== undefined && glueFlavor !== 'full' && glueFlavor !== 'slim') {
+ throw new TypeError(`Expected glue flavor to be "full" or "slim" but got ${glueFlavor}.`);
+ }
+ const binary = SuperBinaryModule.create(binaryUrl, glueFlavor as WasmGlueFlavor | undefined);
const serializer = new Serializer(binary);
const linter = new LocalLinter({ binary, dialect });
diff --git a/packages/harper.js/src/binaries/binary.ts b/packages/harper.js/src/binaries/binary.ts
index f0e979c77..42d03eefb 100644
--- a/packages/harper.js/src/binaries/binary.ts
+++ b/packages/harper.js/src/binaries/binary.ts
@@ -2,4 +2,4 @@ import { default as binaryUrl } from 'harper-wasm/harper_wasm_bg.wasm?no-inline'
import { BinaryModuleImpl } from '../BinaryModule';
/** A version of the Harper WebAssembly binary stored as its own module. */
-export const binary = /*@__PURE__*/ BinaryModuleImpl.create(binaryUrl);
+export const binary = /*@__PURE__*/ BinaryModuleImpl.create(binaryUrl, 'full');
diff --git a/packages/harper.js/src/binaries/binaryInlined.ts b/packages/harper.js/src/binaries/binaryInlined.ts
index a1bd34708..64087a93d 100644
--- a/packages/harper.js/src/binaries/binaryInlined.ts
+++ b/packages/harper.js/src/binaries/binaryInlined.ts
@@ -2,4 +2,4 @@ import { default as binaryInlinedUrl } from 'harper-wasm/harper_wasm_bg.wasm?inl
import { BinaryModuleImpl } from '../BinaryModule';
/** A version of the Harper WebAssembly binary stored inline as a data URL. */
-export const binaryInlined = /*@__PURE__*/ BinaryModuleImpl.create(binaryInlinedUrl);
+export const binaryInlined = /*@__PURE__*/ BinaryModuleImpl.create(binaryInlinedUrl, 'full');
diff --git a/packages/harper.js/src/binaries/slimBinary.ts b/packages/harper.js/src/binaries/slimBinary.ts
index 908f4ea91..63bb9f6f4 100644
--- a/packages/harper.js/src/binaries/slimBinary.ts
+++ b/packages/harper.js/src/binaries/slimBinary.ts
@@ -2,4 +2,4 @@ import { default as slimBinaryUrl } from 'harper-wasm/harper_wasm_slim_bg.wasm?n
import { BinaryModuleImpl } from '../BinaryModule';
/** A version of the slimmed-down Harper WebAssembly binary stored as its own module. */
-export const slimBinary = /*@__PURE__*/ BinaryModuleImpl.create(slimBinaryUrl);
+export const slimBinary = /*@__PURE__*/ BinaryModuleImpl.create(slimBinaryUrl, 'slim');
diff --git a/packages/harper.js/src/binaries/slimBinaryInlined.ts b/packages/harper.js/src/binaries/slimBinaryInlined.ts
index b9550f23d..67b6a0252 100644
--- a/packages/harper.js/src/binaries/slimBinaryInlined.ts
+++ b/packages/harper.js/src/binaries/slimBinaryInlined.ts
@@ -2,4 +2,7 @@ import { default as slimBinaryInlinedUrl } from 'harper-wasm/harper_wasm_slim_bg
import { BinaryModuleImpl } from '../BinaryModule';
/** A version of the slimmed-down Harper WebAssembly binary stored inline as a data URL. */
-export const slimBinaryInlined = /*@__PURE__*/ BinaryModuleImpl.create(slimBinaryInlinedUrl);
+export const slimBinaryInlined = /*@__PURE__*/ BinaryModuleImpl.create(
+ slimBinaryInlinedUrl,
+ 'slim',
+);
diff --git a/packages/harper.js/vite.config.ts b/packages/harper.js/vite.config.ts
index 7a33a478b..677c6abf9 100644
--- a/packages/harper.js/vite.config.ts
+++ b/packages/harper.js/vite.config.ts
@@ -1,6 +1,5 @@
/// <reference types="vitest" />
import { playwright } from '@vitest/browser-playwright';
-import { resolve } from 'path';
import { defineConfig, type Plugin } from 'vite';
import dts from 'vite-plugin-dts';
import apiExtractorConfig from './api-extractor.json';
diff --git a/packages/obsidian-plugin/src/HarperSettingTab.ts b/packages/obsidian-plugin/src/HarperSettingTab.ts
index 540c1b378..0018134cc 100644
--- a/packages/obsidian-plugin/src/HarperSettingTab.ts
+++ b/packages/obsidian-plugin/src/HarperSettingTab.ts
@@ -5,7 +5,6 @@ import { startCase } from 'lodash-es';
import type { ButtonComponent } from 'obsidian';
import { type App, Notice, PluginSettingTab, Setting } from 'obsidian';
import type HarperPlugin from './index.js';
-import type State from './State.js';
import type { Settings } from './State.js';
import { linesToString, stringToLines } from './textUtils';
diff --git a/packages/obsidian-plugin/src/State.ts b/packages/obsidian-plugin/src/State.ts
index 492918feb..ad2caa94c 100644
--- a/packages/obsidian-plugin/src/State.ts
+++ b/packages/obsidian-plugin/src/State.ts
@@ -4,13 +4,7 @@ import { type Dialect, LocalLinter, SuggestionKind, WorkerLinter } from 'harper.
import { slimBinaryInlined } from 'harper.js/slimBinaryInlined';
import { minimatch } from 'minimatch';
import type { MarkdownFileInfo, Workspace } from 'obsidian';
-import {
- type CustomReplacements,
- cloneCustomReplacements,
- getCustomSuggestions,
- normalizeCustomReplacements,
-} from './customSuggestions';
-import { type Action, linter } from './lint';
+import { linter } from './lint';
import { lintKindClass } from './lintKindColor';
export type Settings = {
diff --git a/packages/obsidian-plugin/src/index.ts b/packages/obsidian-plugin/src/index.ts
index 75477cda4..2671514c1 100644
--- a/packages/obsidian-plugin/src/index.ts
+++ b/packages/obsidian-plugin/src/index.ts
@@ -1,14 +1,6 @@
import type { EditorView } from '@codemirror/view';
import { Dialect } from 'harper.js';
-import {
- type App,
- editorInfoField,
- MarkdownView,
- Menu,
- Notice,
- Plugin,
- type PluginManifest,
-} from 'obsidian';
+import { editorInfoField, MarkdownView, Menu, Notice, Plugin } from 'obsidian';
import logoSvg from '../logo.svg?raw';
import logoSvgDisabled from '../logo-disabled.svg?raw';
import { HarperSettingTab } from './HarperSettingTab';
@@ -32,10 +24,6 @@ export default class HarperPlugin extends Plugin {
private logo: HTMLSpanElement | null = null;
private settings: HarperSettingTab | null = null;
- constructor(app: App, manifest: PluginManifest) {
- super(app, manifest);
- }
-
async onload() {
if (typeof Response === 'undefined') {
new Notice('Please update your Electron version before running Harper.', 0);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 196bbf4dd..53d9013a0 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -36,6 +36,61 @@ importers:
specifier: 'catalog:'
version: 5.9.3
+ harper-desktop:
+ dependencies:
+ '@tauri-apps/api':
+ specifier: ^2
+ version: 2.11.0
+ '@tauri-apps/plugin-autostart':
+ specifier: ^2.5.1
+ version: 2.5.1
+ '@tauri-apps/plugin-opener':
+ specifier: ^2
+ version: 2.5.4
+ harper-editor:
+ specifier: workspace:*
+ version: link:../packages/harper-editor
+ harper.js:
+ specifier: workspace:*
+ version: link:../packages/harper.js
+ devDependencies:
+ '@sveltejs/adapter-static':
+ specifier: ^3.0.6
+ '@sveltejs/kit':
+ specifier: ^2.9.0
+ '@sveltejs/vite-plugin-svelte':
+ specifier: ^5.0.0
+ '@tailwindcss/vite':
+ specifier: ^4.2.2
+ '@tauri-apps/cli':
+ specifier: ^2
+ version: 2.11.1
+ svelte:
+ specifier: ^5.0.0
+ version: 5.43.12
+ svelte-check:
+ specifier: ^4.0.0
+ tailwindcss:
+ specifier: ^4.2.2
+ version: 4.2.4
+ typescript:
+ specifier: ~5.6.2
+ version: 5.6.3
+ vite:
+ specifier: ^6.0.3
+ vite-plugin-top-level-await:
+ specifier: ^1.5.0
+ vite-plugin-wasm:
+ specifier: ^3.4.1
+
harper-wasm/pkg: {}
packages/chrome-plugin:
@@ -73,10 +128,10 @@ importers:
version: 1.58.0
'@sveltejs/vite-plugin-svelte':
specifier: ^4.0.0
'@tailwindcss/vite':
specifier: ^4.1.4
'@types/chrome':
specifier: ^0.0.246
version: 0.0.246
@@ -115,19 +170,19 @@ importers:
version: 5.43.12
svelte-preprocess:
specifier: ^6.0.0
tailwindcss:
specifier: ^4.1.4
- version: 4.1.17
+ version: 4.2.4
tslib:
specifier: ^2.6.2
version: 2.8.1
typescript:
specifier: ^5.5.0
- version: 5.9.3
+ version: 5.6.3
vite:
specifier: ^5.4.10
packages/components:
dependencies:
@@ -137,22 +192,22 @@ importers:
devDependencies:
'@sveltejs/adapter-auto':
specifier: ^7.0.0
'@sveltejs/kit':
specifier: ^2.47.1
'@sveltejs/package':
specifier: ^2.5.4
'@sveltejs/vite-plugin-svelte':
specifier: ^6.2.1
'@tailwindcss/cli':
specifier: ^4.1.16
version: 4.1.17
'@tailwindcss/vite':
specifier: ^4.1.14
flowbite:
specifier: ^3.1.2
version: 3.1.2([email protected])
@@ -167,34 +222,34 @@ importers:
tailwindcss:
specifier: ^4.1.14
- version: 4.1.17
+ version: 4.2.4
typescript:
specifier: 'catalog:'
version: 5.9.3
vite:
specifier: ^7.1.10
packages/harper-editor:
devDependencies:
'@sveltejs/adapter-auto':
specifier: ^7.0.0
'@sveltejs/kit':
specifier: ^2.47.1
'@sveltejs/package':
specifier: ^2.5.4
'@sveltejs/vite-plugin-svelte':
specifier: ^6.2.1
'@tailwindcss/cli':
specifier: ^4.1.16
version: 4.1.17
'@tailwindcss/vite':
specifier: ^4.1.14
components:
specifier: workspace:*
version: link:../components
@@ -218,13 +273,13 @@ importers:
tailwindcss:
specifier: ^4.1.14
- version: 4.1.17
+ version: 4.2.4
typescript:
specifier: 'catalog:'
version: 5.9.3
vite:
specifier: ^7.1.10
packages/harper.js:
dependencies:
@@ -243,10 +298,10 @@ importers:
version: 22.13.10
'@vitest/browser':
specifier: ^4.0.16
'@vitest/browser-playwright':
specifier: ^4.0.16
'@vitest/ui':
specifier: 4.0.16
version: 4.0.16([email protected])
@@ -273,16 +328,16 @@ importers:
version: 5.9.3
vite:
specifier: ^6.1.0
vite-plugin-dts:
specifier: ^4.5.0
vite-plugin-virtual:
specifier: ^0.3.0
vitest:
specifier: ^4.0.16
packages/harper.js/examples/commonjs-simple:
dependencies:
@@ -322,10 +377,10 @@ importers:
version: 5.9.3
vite:
specifier: ^6.1.0
vite-plugin-dts:
specifier: ^4.5.0
packages/obsidian-plugin:
dependencies:
@@ -389,10 +444,10 @@ importers:
version: 4.17.12
'@vitest/browser':
specifier: ^4.0.16
'@vitest/browser-playwright':
specifier: ^4.0.16
obsidian:
specifier: ^1.7.2
version: 1.8.7(@codemirror/[email protected])(@codemirror/[email protected])
@@ -404,10 +459,10 @@ importers:
version: 3.0.0([email protected])
vite:
specifier: ^6.3.5
vitest:
specifier: ^4.0.16
packages/vscode-plugin:
dependencies:
@@ -444,10 +499,10 @@ importers:
dependencies:
'@sveltepress/theme-default':
specifier: ^5.0.7
- version: 5.0.8(60ece0b14452f0f3e7ee07451f9e9d23)
+ version: 5.0.8(4268f9b38bc0513d36dd7ea806650b17)
'@sveltepress/vite':
specifier: ^1.1.5
brace:
specifier: ^0.11.1
version: 0.11.1
@@ -499,16 +554,16 @@ importers:
devDependencies:
'@sveltejs/adapter-node':
specifier: ^5.2.12
'@sveltejs/kit':
specifier: ^2.37.1
'@sveltejs/vite-plugin-svelte':
specifier: ^5.0.3
'@tailwindcss/vite':
specifier: ^4.1.4
'@types/reveal.js':
specifier: ^5.0.3
version: 5.0.5
@@ -529,7 +584,7 @@ importers:
tailwindcss:
specifier: ^4.1.16
- version: 4.1.17
+ version: 4.2.4
tslib:
specifier: 'catalog:'
version: 2.8.1
@@ -541,13 +596,13 @@ importers:
version: 5.9.3
vite:
specifier: ^6.1.0
vite-plugin-top-level-await:
specifier: ^1.5.0
vite-plugin-wasm:
specifier: ^3.4.1
packages/wordpress-plugin:
dependencies:
@@ -3529,6 +3584,11 @@ packages:
peerDependencies:
'@sveltejs/kit': ^2.4.0
+ '@sveltejs/[email protected]':
+ resolution: {integrity: sha512-7D9lYFWJmB7zxZyTE/qxjksvMqzMuYrrsyh1f4AlZqeZeACPRySjbC3aFiY55wb1tWUaKOQG9PVbm74JcN2Iew==}
+ peerDependencies:
+ '@sveltejs/kit': ^2.0.0
+
'@sveltejs/[email protected]':
resolution: {integrity: sha512-/rnwfSWS3qwUSzvHynUTORF9xSJi7PCR9yXkxUOnRrNqyKmCmh3FPHH+E9BbgqxXfTevGXBqgnlh9kMb+9T5XA==}
engines: {node: '>=18.13'}
@@ -3776,60 +3836,117 @@ packages:
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-csIkHIgLb3JisEFQ0vxr2Y57GUNYh447C8xzwj89U/8fdW8LhProdxvnVH6U8M2Y73QKiTIH+LWbK3V2BBZsAg==}
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Ai7+yQPxz3ddrDQzFfBKdHEVBg0w3Zl83jnjuwxnZOsnH9pGn93QHQtpU0p/8rYWxvbFZHneni6p1BSLK4DkGA==}
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-BMqpkJHgOZ5z78qqiGE6ZIRExyaHyuxjgrJ6eBO5+hfrfGkuya0lYfw8fRHG77gdTjWkNWEEm+qeG2cDMxArLQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [android]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-e7MOr1SAn9U8KlZzPi1ZXGZHeC5anY36qjNwmZv9pOJ8E4Q6jmD1vyEHkQFmNOIN7twGPEMXRHmitN4zCMN03g==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [android]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-EquyumkQweUBNk1zGEU/wfZo2qkp/nQKRZM8bUYO0J+Lums5+wl2CcG1f9BgAjn/u9pJzdYddHWBiFXJTcxmOg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-tSC/Kbqpz/5/o/C2sG7QvOxAKqyd10bq+ypZNf+9Fi2TvbVbv1zNpcEptcsU7DPROaSbVgUXmrzKhurFvo5eDg==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [darwin]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-gdhEPLzke2Pog8s12oADwYu0IAw04Y2tlmgVzIN0+046ytcgx8uZmCzEg4VcQh+AHKiS7xaL8kGo/QTiNEGRog==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-yPyUXn3yO/ufR6+Kzv0t4fCg2qNr90jxXc5QqBpjlPNd0NqyDXcmQb/6weunH/MEDXW5dhyEi+agTDiqa3WsGg==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [darwin]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-hxGS81KskMxML9DXsaXT1H0DyA+ZBIbyG/sSAjWNe2EDl7TkPOBI42GBV3u38itzGUOmFfCzk1iAjDXds8Oh0g==}
engines: {node: '>= 10'}
cpu: [x64]
os: [freebsd]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-BoMIB4vMQtZsXdGLVc2z+P9DbETkiopogfWZKbWwM8b/1Vinbs4YcUwo+kM/KeLkX3Ygrf4/PsRndKaYhS8Eiw==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [freebsd]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-k7jWk5E3ldAdw0cNglhjSgv501u7yrMf8oeZ0cElhxU6Y2o7f8yqelOp3fhf7evjIS6ujTI3U8pKUXV2I4iXHQ==}
engines: {node: '>= 10'}
cpu: [arm]
os: [linux]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-7pIHBLTHYRAlS7V22JNuTh33yLH4VElwKtB3bwchK/UaKUPpQ0lPQiOWcbm4V3WP2I6fNIJ23vABIvoy2izdwA==}
+ engines: {node: '>= 20'}
+ cpu: [arm]
+ os: [linux]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-HVDOm/mxK6+TbARwdW17WrgDYEGzmoYayrCgmLEw7FxTPLcp/glBisuyWkFz/jb7ZfiAXAXUACfyItn+nTgsdQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-+E4wxJ0ZGOzSH325reXTWB48l42i93kQqMvDyz5gqfRzRZ7faNhnmvlV4EPGJU3QJM/3Ab5jhJ5pCRUsKn6OQw==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [linux]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-HvZLfGr42i5anKtIeQzxdkw/wPqIbpeZqe7vd3V9vI3RQxe3xU1fLjss0TjyhxWcBaipk7NYwSrwTwK1hJARMg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-bBADEGAbo4ASnppIziaQJelekCxdMaxisrk+fB7Thit72IBnALp9K6ffA2G4ruj90G9XRS2VQ6q2bCKbfFV82g==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [linux]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-M3XZuORCGB7VPOEDH+nzpJ21XPvK5PyjlkSFkFziNHGLc5d6g3di2McAAblmaSUNl8IOmzYwLx9NsE7bplNkwQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-7Mx25E4WTfnht0TVRTyC00j3i0M+EeFe7wguMDTlX4mRxafznw0CA8WJkFjWYH5BlgELd1kSjuU2JiPnNZbJDA==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [linux]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-k7f+pf9eXLEey4pBlw+8dgfJHY4PZ5qOUFDyNf7SI6lHjQ9Zt7+NcscjpwdCEbYi6FI5c2KDTDWyf2iHcCSyyQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-2wwJRF7nyhOR0hhHoChc04xngV3iS+akccHTGtz965FwF0up4b2lOdo6kI1EbDaEXKgvcrFBYcYQQ/rrnWFVfA==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [linux]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-cEytGqSSoy7zK4JRWiTCx43FsKP/zGr0CsuMawhH67ONlH+T79VteQeJQRO/X7L0juEUA8ZyuYikcRBf0vsxhg==}
engines: {node: '>=14.0.0'}
@@ -3842,26 +3959,54 @@ packages:
- '@emnapi/wasi-threads'
- tslib
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-FQsqApeor8Fo6gUEklzmaa9994orJZZDBAlQpK2Mq+DslRKFJeD6AjHpBQ0kZFQohVr8o85PPh8eOy86VlSCmw==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+ bundledDependencies:
+ - '@napi-rs/wasm-runtime'
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ - '@tybys/wasm-util'
+ - '@emnapi/wasi-threads'
+ - tslib
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-JU5AHr7gKbZlOGvMdb4722/0aYbU+tN6lv1kONx0JK2cGsh7g148zVWLM0IKR3NeKLv+L90chBVYcJ8uJWbC9A==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-L9BXqxC4ToVgwMFqj3pmZRqyHEztulpUJzCxUtLjobMCzTPsGt1Fa9enKbOpY2iIyVtaHNeNvAK8ERP/64sqGQ==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [win32]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-SKWM4waLuqx0IH+FMDUw6R66Hu4OuTALFgnleKbqhgGU30DY20NORZMZUKgLRjQXNN2TLzKvh48QXTig4h4bGw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-ESlKG0EpVJQwRjXDDa9rLvhEAh0mhP1sF7sap9dNZT0yyl9SAG6T7gdP09EH0vIv0UNTlo6jPWyujD6559fZvw==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [win32]
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-F0F7d01fmkQhsTjXezGBLdrl1KresJTcI3DB8EkScCldyKp3Msz4hub4uyYaVnk88BAS1g5DQjjF6F5qczheLA==}
engines: {node: '>= 10'}
- '@tailwindcss/[email protected]':
- resolution: {integrity: sha512-4+9w8ZHOiGnpcGI6z1TVVfWaX/koK7fKeSYF3qlYg2xpBtbteP2ddBxiarL+HVgfSJGeK5RIxRQmKm4rTJJAwA==}
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-9El/iI069DKDSXwTvB9J4BwdO5JhRrOweGaK25taBAvBXyXqJAX+Jqdvs8r8gKpsI/1m0LeJLyQYTf/WLrBT1Q==}
+ engines: {node: '>= 20'}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-pCvohwOCspk3ZFn6eJzrrX3g4n2JY73H6MmYC87XfGPyTty4YsCjYTMArRZm/zOI8dIt3+EcrLHAFPe5A4bgtw==}
peerDependencies:
- vite: ^5.2.0 || ^6 || ^7
+ vite: ^5.2.0 || ^6 || ^7 || ^8
'@tannin/[email protected]':
resolution: {integrity: sha512-n8m9eNDfoNZoxdvWiTfW/hSPhehzLJ3zW7f8E7oT6mCROoMNWCB4TYtv041+2FMAxweiE0j7i1jubQU4MEC/Gg==}
@@ -3875,6 +4020,86 @@ packages:
'@tannin/[email protected]':
resolution: {integrity: sha512-oocsqY7g0cR+Gur5jRQLSrX2OtpMLMse1I10JQBm8CdGMrDkh1Mg2gjsiquMHRtBs4Qwu5wgEp5GgIYHk4SNPw==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-7CinYODhky9lmO23xHnUFv0Xt43fbtWMyxZcLcRBlFkcgXKuEirBvHpmtJ89YMhyeGcq20Wuc47Fa4XjyniywA==}
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-6eEKMBXsQPCuM1EmvrjT2+aBuxWQuFdKdW8pzNuNQtpq45nEEpBlD5gr8pUeAyOU1DQKlkFaEc/MPBxb/Pfjtg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-LQUO7exfRWjWALNhetph5guWpMeHphRpokOLk0OIbTTExaNwJNFu3I4vb+CCM/4G/QGoZe/5XikZOJdNEFP1ig==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-5i/awiBCRRhOUG8yjn0fMHXIWD5Ez8eEk5LtvOxyQrKuJkRaZDvnbIjZbE183blAwkoA4xN3aO/prJiqscl02Q==}
+ engines: {node: '>= 10'}
+ cpu: [arm]
+ os: [linux]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-9LrwDw3S9Fygtw/Q6WDhOP+3svJRGAsejeE+GKrc0eO1ThMVhwi2LL6hw4dlKw93IfS7VY1G19sWGxJ/NcU4nA==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-mNA5dbbqPqDUdTIwdUYYuhO2GvIe9UnB2r0VU2njxBOS3Opbx4gKNC5yP0Iu4rYmEmqdlwry9VzGZQ3wq9dyFg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-fZj3Gwq+6fUs305T5WQiD5iSGJw+j/4w/HGmk4sHDAcy+rp9zU5eaxB7nOyz5/I/nkNAuKPqfp6uIbiUBXkBCw==}
+ engines: {node: '>= 10'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-XFxGxOvHM7jjeD6ozCKdGfhzJ7lERYDGZl1/Kb4fsvchaJsfLJ981TlyTG8Qy/gFq+f5GitH3bfrX9JAkjPEyw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-d5C2/Zm+68v7R9wTuTCjRQEVrWjcdMkJBZ1+rXse+QdMMlTB9+u9PDNDLw9PQflWxYLaYZ7tjxxL9Nb9II6PbA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-YdeVWFAR1pTXzUU6NLstPq4G6OLxuDrXCXEBdmBH+5EZIDXUx0D2kJlz3+YjpazkKvAzYpgziTsyRagls0OfRQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-VBGkuH0eB9K9LLSMv361Gzr5Ou72sCS4+ztpmkWEQ+wd/amhcYOsf3X6qn1RJZDzIhiOYHJEOysZUC3baD01rA==}
+ engines: {node: '>= 10'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-b3ORhIAKgp9ZYY+zBt7b7r0kLU2kjvyGF0+MS2SBym3emsweGPybEqocJcmtMuxyBhkOKHP4CiuEJEDuAlTx6A==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-rpEbaJ/HzNb6fwsquwoAbq29/Vt4gADhS423A8fdkwL4edJ0wZmoB8ar7O6JPDL834MUKOCm/rrJ7c9oAaEaYQ==}
+ engines: {node: '>= 10'}
+ hasBin: true
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-zS/xx7yzveCcotkA+8TqkI2lysmG2wvQXv2HGAVExITmnFfHAdj1arGsbbfs3o6EktRHf6l34pJxc3YGG2mg7w==}
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-1HnPkb+AmgO29HBazm4uPLKB+r7zzcTBW1d0fyYp1uP+jwtpoiNDGKMMzz58SFp49nOIrxdE3aUJtT57lfO9CQ==}
+
'@tootallnate/[email protected]':
resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}
engines: {node: '>= 10'}
@@ -4247,6 +4472,7 @@ packages:
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
+ deprecated: Potential CWE-502 - Update to 1.3.1 or higher
'@unocss/[email protected]':
resolution: {integrity: sha512-adOXz4itYHxqhvQgJHlEU58EHDTtY2qrcEPVmQVk4qI1W+ezQV6nQMQvti8mS/HbFw3MOJhIY1MlJoZK36/cyw==}
@@ -5387,6 +5613,7 @@ packages:
resolution: {integrity: sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==}
engines: {node: '>=10.0.0'}
+ deprecated: Security vulnerability fixed in 5.2.1, please upgrade
resolution: {integrity: sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==}
@@ -6490,6 +6717,10 @@ packages:
resolution: {integrity: sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==}
engines: {node: '>=10.13.0'}
+ resolution: {integrity: sha512-xe9vQb5kReirPUxgQrXA3ihgbCqssmTiM7cOZ+Gzu+VeGWgpV98lLZvp0dl4yriyAePcewxGUs9UpKD8PET9KQ==}
+ engines: {node: '>=10.13.0'}
+
resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==}
engines: {node: '>=8.6'}
@@ -7292,16 +7523,18 @@ packages:
resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==}
+ deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
hasBin: true
resolution: {integrity: sha512-zrQDm8XPnYEKawJScsnM0QzobJxlT/kHOOlRTio8IH/GrmxRE5fjllkzdaHclIuNjUQTJYH2xHNIGfdpJkDJUw==}
engines: {node: 20 || >=22}
+ deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
hasBin: true
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
- deprecated: Glob versions prior to v9 are no longer supported
+ deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]
resolution: {integrity: sha512-JeXuCbvYzYXcwE6acL9V2bAOeSIGl4dD+iwLY9iUx2VBJJ80R18HCn+JCwHM9Oegdfya3lEkGCdaRkSyc10hDA==}
@@ -8462,70 +8695,140 @@ packages:
cpu: [arm64]
os: [android]
+ resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [android]
+
resolution: {integrity: sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [darwin]
+ resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
resolution: {integrity: sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [darwin]
+ resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
resolution: {integrity: sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [freebsd]
+ resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
resolution: {integrity: sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==}
engines: {node: '>= 12.0.0'}
cpu: [arm]
os: [linux]
+ resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
resolution: {integrity: sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
+ resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+
resolution: {integrity: sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
+ resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+
resolution: {integrity: sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
+ resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+
resolution: {integrity: sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
+ resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+
resolution: {integrity: sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [win32]
+ resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
resolution: {integrity: sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [win32]
+ resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
resolution: {integrity: sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==}
engines: {node: '>= 12.0.0'}
+ resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==}
+ engines: {node: '>= 12.0.0'}
+
resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
engines: {node: '>=14'}
@@ -9923,6 +10226,7 @@ packages:
resolution: {integrity: sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==}
engines: {node: '>=10'}
+ deprecated: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.
hasBin: true
@@ -11148,6 +11452,9 @@ packages:
resolution: {integrity: sha512-j9Ee2YjuQqYT9bbRTfTZht9W/ytp5H+jJpZKiYdP/bpnXARAuELt9ofP0lPnmHjbga7SNQIxdTAXCmtKVYjN+Q==}
+ resolution: {integrity: sha512-HhKppgO81FQof5m6TEnuBWCZGgfRAWbaeOaGT00KOy/Pf/j6oUihdvBpA7ltCeAvZpFhW3j0PTclkxsd4IXYDA==}
+
resolution: {integrity: sha512-U7GgX/RcSeUETbV7gYgoz8PD7Ni4y95pgIP/Z6ayI3CfhSujwKEBlGFTCRN+Aqnuyf4AN2yHL+L8x+TCGjb9uA==}
@@ -11155,6 +11462,10 @@ packages:
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}
+ engines: {node: '>=6'}
+
resolution: {integrity: sha512-EsaAXwxmx8UB7FRKqeozqEPop69DXcmYwTQwXvyAPF352HJsPdkVhvTaDPYqfNgruveJIJy3TA2l+2zj8LJIJA==}
@@ -11429,6 +11740,11 @@ packages:
resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}
+ resolution: {integrity: sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
resolution: {integrity: sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==}
engines: {node: '>=14.17'}
@@ -11639,14 +11955,17 @@ packages:
resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==}
+ deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
hasBin: true
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
+ deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
hasBin: true
resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}
+ deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
hasBin: true
@@ -12033,10 +12352,12 @@ packages:
resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==}
engines: {node: '>=12'}
+ deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation
resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}
engines: {node: '>=18'}
+ deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation
resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}
@@ -15675,6 +15996,10 @@ snapshots:
optionalDependencies:
rollup: 4.35.0
+ optionalDependencies:
+ rollup: 4.53.3
+
dependencies:
'@types/estree': 0.0.39
@@ -16006,23 +16331,27 @@ snapshots:
dependencies:
acorn: 8.15.0
dependencies:
dependencies:
'@rollup/plugin-commonjs': 28.0.3([email protected])
'@rollup/plugin-json': 6.1.0([email protected])
'@rollup/plugin-node-resolve': 16.0.1([email protected])
rollup: 4.35.0
+ dependencies:
+
dependencies:
'@standard-schema/spec': 1.0.0
'@sveltejs/acorn-typescript': 1.0.6([email protected])
'@types/cookie': 0.6.0
acorn: 8.15.0
cookie: 0.6.0
@@ -16035,13 +16364,13 @@ snapshots:
set-cookie-parser: 2.7.1
sirv: 3.0.1
svelte: 5.43.12
dependencies:
'@standard-schema/spec': 1.0.0
'@sveltejs/acorn-typescript': 1.0.6([email protected])
'@types/cookie': 0.6.0
acorn: 8.15.0
cookie: 0.6.0
@@ -16054,7 +16383,7 @@ snapshots:
set-cookie-parser: 2.7.1
sirv: 3.0.1
svelte: 5.43.12
dependencies:
@@ -16067,82 +16396,82 @@ snapshots:
transitivePeerDependencies:
- typescript
dependencies:
debug: 4.4.0
svelte: 5.43.12
transitivePeerDependencies:
- supports-color
dependencies:
debug: 4.4.0
svelte: 5.43.12
transitivePeerDependencies:
- supports-color
dependencies:
debug: 4.4.3
svelte: 5.43.12
transitivePeerDependencies:
- supports-color
dependencies:
debug: 4.4.0
deepmerge: 4.3.1
kleur: 4.1.5
magic-string: 0.30.17
svelte: 5.43.12
transitivePeerDependencies:
- supports-color
dependencies:
debug: 4.4.0
deepmerge: 4.3.1
kleur: 4.1.5
magic-string: 0.30.17
svelte: 5.43.12
transitivePeerDependencies:
- supports-color
dependencies:
debug: 4.4.3
deepmerge: 4.3.1
magic-string: 0.30.17
svelte: 5.43.12
transitivePeerDependencies:
- supports-color
- '@sveltepress/[email protected](60ece0b14452f0f3e7ee07451f9e9d23)':
+ '@sveltepress/[email protected](4268f9b38bc0513d36dd7ea806650b17)':
dependencies:
'@docsearch/css': 3.9.0
'@shikijs/twoslash': 1.29.2([email protected])
'@sveltepress/twoslash': 1.1.6([email protected])([email protected])
'@unocss/extractor-svelte': 0.61.9
lru-cache: 10.4.3
mdast-util-from-markdown: 2.0.2
mdast-util-gfm: 3.1.0
@@ -16150,8 +16479,8 @@ snapshots:
svelte: 5.43.12
uid: 2.0.2
unist-util-visit: 5.0.0
workbox-precaching: 7.3.0
workbox-routing: 7.3.0
transitivePeerDependencies:
@@ -16185,10 +16514,10 @@ snapshots:
- supports-color
- typescript
dependencies:
cross-spawn: 7.0.6
fs-extra: 11.3.0
lru-cache: 10.4.3
@@ -16207,8 +16536,8 @@ snapshots:
unified: 11.0.5
unist-util-visit: 5.0.0
vfile: 6.0.3
yaml: 2.7.0
transitivePeerDependencies:
- '@nuxt/kit'
@@ -16380,42 +16709,88 @@ snapshots:
source-map-js: 1.2.1
tailwindcss: 4.1.17
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@jridgewell/remapping': 2.3.5
+ enhanced-resolve: 5.21.2
+ jiti: 2.6.1
+ lightningcss: 1.32.0
+ magic-string: 0.30.21
+ source-map-js: 1.2.1
+ tailwindcss: 4.2.4
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optional: true
+ '@tailwindcss/[email protected]':
+ optional: true
+
'@tailwindcss/[email protected]':
optionalDependencies:
'@tailwindcss/oxide-android-arm64': 4.1.17
@@ -16431,26 +16806,41 @@ snapshots:
'@tailwindcss/oxide-win32-arm64-msvc': 4.1.17
'@tailwindcss/oxide-win32-x64-msvc': 4.1.17
- dependencies:
- '@tailwindcss/node': 4.1.17
- '@tailwindcss/oxide': 4.1.17
- tailwindcss: 4.1.17
-
- dependencies:
- '@tailwindcss/node': 4.1.17
- '@tailwindcss/oxide': 4.1.17
- tailwindcss: 4.1.17
-
- dependencies:
- '@tailwindcss/node': 4.1.17
- '@tailwindcss/oxide': 4.1.17
- tailwindcss: 4.1.17
+ '@tailwindcss/[email protected]':
+ optionalDependencies:
+ '@tailwindcss/oxide-android-arm64': 4.2.4
+ '@tailwindcss/oxide-darwin-arm64': 4.2.4
+ '@tailwindcss/oxide-darwin-x64': 4.2.4
+ '@tailwindcss/oxide-freebsd-x64': 4.2.4
+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.2.4
+ '@tailwindcss/oxide-linux-arm64-gnu': 4.2.4
+ '@tailwindcss/oxide-linux-arm64-musl': 4.2.4
+ '@tailwindcss/oxide-linux-x64-gnu': 4.2.4
+ '@tailwindcss/oxide-linux-x64-musl': 4.2.4
+ '@tailwindcss/oxide-wasm32-wasi': 4.2.4
+ '@tailwindcss/oxide-win32-arm64-msvc': 4.2.4
+ '@tailwindcss/oxide-win32-x64-msvc': 4.2.4
+
+ dependencies:
+ '@tailwindcss/node': 4.2.4
+ '@tailwindcss/oxide': 4.2.4
+ tailwindcss: 4.2.4
+
+ dependencies:
+ '@tailwindcss/node': 4.2.4
+ '@tailwindcss/oxide': 4.2.4
+ tailwindcss: 4.2.4
+
+ dependencies:
+ '@tailwindcss/node': 4.2.4
+ '@tailwindcss/oxide': 4.2.4
+ tailwindcss: 4.2.4
'@tannin/[email protected]':
dependencies:
@@ -16465,6 +16855,63 @@ snapshots:
'@tannin/[email protected]': {}
+ '@tauri-apps/[email protected]': {}
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optional: true
+
+ '@tauri-apps/[email protected]':
+ optionalDependencies:
+ '@tauri-apps/cli-darwin-arm64': 2.11.1
+ '@tauri-apps/cli-darwin-x64': 2.11.1
+ '@tauri-apps/cli-linux-arm-gnueabihf': 2.11.1
+ '@tauri-apps/cli-linux-arm64-gnu': 2.11.1
+ '@tauri-apps/cli-linux-arm64-musl': 2.11.1
+ '@tauri-apps/cli-linux-riscv64-gnu': 2.11.1
+ '@tauri-apps/cli-linux-x64-gnu': 2.11.1
+ '@tauri-apps/cli-linux-x64-musl': 2.11.1
+ '@tauri-apps/cli-win32-arm64-msvc': 2.11.1
+ '@tauri-apps/cli-win32-ia32-msvc': 2.11.1
+ '@tauri-apps/cli-win32-x64-msvc': 2.11.1
+
+ '@tauri-apps/[email protected]':
+ dependencies:
+ '@tauri-apps/api': 2.11.0
+
+ '@tauri-apps/[email protected]':
+ dependencies:
+ '@tauri-apps/api': 2.11.0
+
'@tootallnate/[email protected]': {}
'@tootallnate/[email protected]': {}
@@ -16915,13 +17362,13 @@ snapshots:
'@ungap/[email protected]': {}
dependencies:
'@unocss/core': 0.61.9
'@unocss/reset': 0.61.9
optionalDependencies:
transitivePeerDependencies:
- rollup
- supports-color
@@ -17060,7 +17507,7 @@ snapshots:
dependencies:
'@unocss/core': 0.61.9
dependencies:
'@ampproject/remapping': 2.3.0
'@rollup/pluginutils': 5.1.4([email protected])
@@ -17072,7 +17519,7 @@ snapshots:
chokidar: 3.6.0
fast-glob: 3.3.3
magic-string: 0.30.21
transitivePeerDependencies:
- rollup
- supports-color
@@ -17084,36 +17531,36 @@ snapshots:
'@use-gesture/core': 10.3.1
react: 18.3.1
dependencies:
kolorist: 1.8.0
tinyglobby: 0.2.15
dependencies:
playwright: 1.58.0
tinyrainbow: 3.0.3
transitivePeerDependencies:
- bufferutil
- msw
- utf-8-validate
- vite
dependencies:
'@vitest/utils': 4.0.16
magic-string: 0.30.21
pixelmatch: 7.1.0
pngjs: 7.0.0
sirv: 3.0.2
tinyrainbow: 3.0.3
ws: 8.18.3
transitivePeerDependencies:
- bufferutil
@@ -17130,14 +17577,14 @@ snapshots:
chai: 6.2.1
tinyrainbow: 3.0.3
dependencies:
'@vitest/spy': 4.0.16
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
'@vitest/[email protected]':
dependencies:
@@ -17165,7 +17612,7 @@ snapshots:
sirv: 3.0.2
tinyglobby: 0.2.15
tinyrainbow: 3.0.3
'@vitest/[email protected]':
dependencies:
@@ -20106,6 +20553,11 @@ snapshots:
graceful-fs: 4.2.11
tapable: 2.2.1
+ dependencies:
+ graceful-fs: 4.2.11
+ tapable: 2.3.3
+
dependencies:
ansi-colors: 4.1.3
@@ -22732,36 +23184,69 @@ snapshots:
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
optional: true
+ optional: true
+
dependencies:
detect-libc: 2.0.3
@@ -22778,6 +23263,22 @@ snapshots:
lightningcss-win32-arm64-msvc: 1.30.2
lightningcss-win32-x64-msvc: 1.30.2
+ dependencies:
+ detect-libc: 2.0.3
+ optionalDependencies:
+ lightningcss-android-arm64: 1.32.0
+ lightningcss-darwin-arm64: 1.32.0
+ lightningcss-darwin-x64: 1.32.0
+ lightningcss-freebsd-x64: 1.32.0
+ lightningcss-linux-arm-gnueabihf: 1.32.0
+ lightningcss-linux-arm64-gnu: 1.32.0
+ lightningcss-linux-arm64-musl: 1.32.0
+ lightningcss-linux-x64-gnu: 1.32.0
+ lightningcss-linux-x64-musl: 1.32.0
+ lightningcss-win32-arm64-msvc: 1.32.0
+ lightningcss-win32-x64-msvc: 1.32.0
+
@@ -25721,6 +26222,18 @@ snapshots:
brace: 0.11.1
sirv-cli: 1.0.14
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.25
+ chokidar: 4.0.3
+ fdir: 6.4.4([email protected])
+ picocolors: 1.1.1
+ sade: 1.8.1
+ svelte: 5.43.12
+ typescript: 5.6.3
+ transitivePeerDependencies:
+ - picomatch
+
dependencies:
'@jridgewell/trace-mapping': 0.3.25
@@ -25751,7 +26264,7 @@ snapshots:
dependencies:
svelte: 5.43.12
optionalDependencies:
@@ -25759,7 +26272,7 @@ snapshots:
postcss: 8.5.6
postcss-load-config: 4.0.2([email protected])
sass: 1.85.1
- typescript: 5.9.3
+ typescript: 5.6.3
dependencies:
@@ -25853,12 +26366,16 @@ snapshots:
+
dependencies:
'@tannin/plural-forms': 1.1.0
+
dependencies:
chownr: 1.1.4
@@ -26134,6 +26651,8 @@ snapshots:
dependencies:
is-typedarray: 1.0.0
+
@@ -26247,9 +26766,9 @@ snapshots:
dependencies:
'@unocss/cli': 0.61.9([email protected])
'@unocss/core': 0.61.9
'@unocss/extractor-arbitrary-variants': 0.61.9
@@ -26268,9 +26787,9 @@ snapshots:
'@unocss/transformer-compile-class': 0.61.9
'@unocss/transformer-directives': 0.61.9
'@unocss/transformer-variant-group': 0.61.9
optionalDependencies:
transitivePeerDependencies:
- postcss
- rollup
@@ -26437,7 +26956,7 @@ snapshots:
x-is-array: 0.1.0
x-is-string: 0.1.0
dependencies:
'@microsoft/api-extractor': 7.55.1(@types/[email protected])
'@rollup/pluginutils': 5.1.4([email protected])
@@ -26450,13 +26969,13 @@ snapshots:
magic-string: 0.30.17
typescript: 5.9.3
optionalDependencies:
transitivePeerDependencies:
- '@types/node'
- rollup
- supports-color
dependencies:
'@antfu/utils': 0.7.10
'@rollup/pluginutils': 5.1.4([email protected])
@@ -26467,41 +26986,51 @@ snapshots:
perfect-debounce: 1.0.0
picocolors: 1.1.1
sirv: 3.0.1
transitivePeerDependencies:
- rollup
- supports-color
dependencies:
debug: 4.4.3
pretty-bytes: 6.1.1
tinyglobby: 0.2.15
workbox-build: 7.3.0(@types/[email protected])
workbox-window: 7.3.0
transitivePeerDependencies:
- supports-color
dependencies:
'@rollup/plugin-virtual': 3.0.2([email protected])
'@swc/core': 1.11.9
uuid: 10.0.0
transitivePeerDependencies:
- '@swc/helpers'
- rollup
dependencies:
+ '@rollup/plugin-virtual': 3.0.2([email protected])
+ '@swc/core': 1.11.9
+ uuid: 10.0.0
+ transitivePeerDependencies:
+ - '@swc/helpers'
+ - rollup
dependencies:
+ dependencies:
+
dependencies:
esbuild: 0.21.5
postcss: 8.5.3
@@ -26509,11 +27038,11 @@ snapshots:
optionalDependencies:
'@types/node': 22.13.10
fsevents: 2.3.3
- lightningcss: 1.30.2
+ lightningcss: 1.32.0
sass: 1.85.1
terser: 5.39.0
dependencies:
esbuild: 0.25.1
fdir: 6.4.4([email protected])
@@ -26525,13 +27054,13 @@ snapshots:
'@types/node': 22.13.10
fsevents: 2.3.3
jiti: 2.6.1
- lightningcss: 1.30.2
+ lightningcss: 1.32.0
sass: 1.85.1
terser: 5.39.0
tsx: 4.20.6
yaml: 2.7.0
dependencies:
esbuild: 0.25.10
fdir: 6.5.0([email protected])
@@ -26543,28 +27072,28 @@ snapshots:
'@types/node': 22.13.10
fsevents: 2.3.3
jiti: 2.6.1
- lightningcss: 1.30.2
+ lightningcss: 1.32.0
sass: 1.85.1
terser: 5.39.0
tsx: 4.20.6
yaml: 2.7.0
optionalDependencies:
optionalDependencies:
optionalDependencies:
dependencies:
'@vitest/expect': 4.0.16
'@vitest/pretty-format': 4.0.16
'@vitest/runner': 4.0.16
'@vitest/snapshot': 4.0.16
@@ -26581,11 +27110,11 @@ snapshots:
tinyexec: 1.0.2
tinyglobby: 0.2.15
tinyrainbow: 3.0.3
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 22.13.10
'@vitest/ui': 4.0.16([email protected])
jsdom: 20.0.3
transitivePeerDependencies:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 7127d4182..fbb58577a 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,5 +1,6 @@
packages:
- packages/*
+ - harper-desktop
- harper-wasm/pkg
- packages/harper.js/examples/*
catalog: