Files
RuneStone/docs/development.md
T

2.9 KiB

Development guide

Back to RuneStone

Stack

RuneStone uses Tauri 2 and Rust for the desktop host. The interface uses Svelte 5, TypeScript, and Vite. CodeMirror handles live Markdown editing, Monaco handles source editing, and xterm handles terminals. Windows is the first target. The older WriterHost component remains unused.

See the setup steps below to install dependencies and run the desktop app. See the roadmap for goals and milestones. See the product scope for capabilities and architecture constraints. Agent instructions and UI design rules live in AGENTS.md.

Run from source

These steps are for developers. App users can use the Windows installer.

Requirements

  • Node.js 22.12 or later and pnpm
  • A current stable Rust toolchain
  • Microsoft C++ Build Tools and Microsoft Edge WebView2 on Windows

Use the Tauri prerequisites guide to install the Windows build tools and Rust toolchain.

  1. Download or clone this repository.
  2. Open a terminal in the repository folder.
  3. Run pnpm install --frozen-lockfile.
  4. Run pnpm tauri dev.
  5. Use the folder button in the app to open a workspace or create one.

See the release guide to build a Windows installer.

Checks

Run these commands from the repository folder:

pnpm check
pnpm test
pnpm build
cargo test --manifest-path src-tauri/Cargo.toml --lib --offline

The offline Rust command requires cached dependencies. Omit --offline if Cargo needs to download them. pnpm build builds the frontend. Use pnpm tauri build to build the desktop app.

The Rust tests cover real terminal shells, working directories, Unicode output, resizing, exit status, and session termination. Native terminal tests launch each detected shell profile and check shell prompt integration.

Browser smoke tests

The browser tests use the real interface with mocked desktop communication. They do not replace native desktop tests.

  1. Install Playwright, or set PLAYWRIGHT_MODULE to a shared Playwright package.
  2. Start the frontend with pnpm dev.
  3. In a second terminal, run a smoke script, such as node scripts/workbench.smoke.mjs.

Set CHROME_PATH if you need to select an installed browser executable.

Script Coverage
scripts/workbench.smoke.mjs The Svelte, Monaco, and xterm interface
scripts/terminal.smoke.mjs Terminal groups, single-session layout, menus, profiles, history, tasks, settings, and editor actions
scripts/images.smoke.mjs Image drops, clipboard imports, source editing, zoom, undo, failed writes, and tab changes during imports
scripts/imageNavigation.smoke.mjs Navigator pointer drags, hidden image source, selection, context actions, inline/reference images, and drag cancellation

Additional smoke scripts live in scripts/.