From 4240d7dad1da3f5c9bd556f61aab0352fa57697f Mon Sep 17 00:00:00 2001 From: Knotty Wyvern Date: Tue, 27 Oct 2026 19:35:43 -0700 Subject: [PATCH] Rewrite the documentation and the agent instructions Move the agent instructions from AGENTS.md to CLAUDE.md. AGENTS.md now points to CLAUDE.md. The UI rules move to docs/ui-design.md. The version and release policy moves to the new docs/releases.md. Rewrite the README, the user guides, and the developer references. Check each claim against the code. Remove old version history and repeated warnings. Link to Gitea at git.knottywyvern.com instead of the LAN address. Move the October 13 menu audit to the archive. --- AGENTS.md | 258 +------ CLAUDE.md | 117 +++ README.md | 87 +-- docs/archive/README.md | 1 + docs/archive/app-updating-draft.md | 2 +- docs/archive/kanban-followup-2026-10-08.md | 2 +- docs/archive/kanban-review-2026-10-08.md | 2 +- docs/archive/macos-validation-0.1.44.md | 2 +- .../menu-audit-2026-10-13.md} | 2 +- docs/builds.md | 266 ++++--- docs/completion.md | 104 ++- docs/design-decisions.md | 81 +-- docs/development.md | 357 +++++----- docs/guides/document-tools.md | 166 +++-- docs/guides/terminal.md | 107 ++- docs/guides/themes.md | 96 +-- docs/installation.md | 99 ++- docs/linux.md | 143 ++-- docs/plugin-development.md | 670 +++++++++--------- docs/plugin-host.md | 252 ++++--- docs/plugins.md | 132 ++-- docs/releases.md | 149 ++++ docs/ui-color.md | 123 ++-- docs/ui-design.md | 577 +++++++-------- docs/user-guide.md | 263 ++++--- 25 files changed, 2041 insertions(+), 2017 deletions(-) create mode 100644 CLAUDE.md rename docs/{menu-audit.md => archive/menu-audit-2026-10-13.md} (98%) create mode 100644 docs/releases.md diff --git a/AGENTS.md b/AGENTS.md index 2987daf..4f86501 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,257 +1,3 @@ -# RuneStone project instructions +# Agent instructions -## Documentation - -Keep the README focused on the project, its usefulness, setup, help, and maintainers. -Keep agent instructions in this file. Put detailed usage and development notes in -`docs/`, with links from the README. -The original roadmap and product scope documents are retired. Do not recreate them. -Keep future plans and roadmaps in RuneStone Project Management. -Keep current behavior and limits in the [user guide](docs/user-guide.md). -Keep product boundaries and architecture constraints in the [development guide](docs/development.md#product-boundaries). -Keep interface rules in the [interface design reference](docs/ui-design.md). - -### Write for the task and reader - -- Keep each guide within the task and audience named by its title and incoming link descriptions. - An installation guide starts with a supplied release file and ends with installation or launch. - Put workspace tutorials in the user guide and source builds, API details, and test records in developer references. -- Give the general procedure before specific examples. Label every example and cite its source or defining project file. - State the working folder, prerequisites, command, and output for build examples. - Do not present one plugin's build command as the process for all plugins. -- Keep the README's first-use path short. Link to details instead of repeating them. - Include limits when they change a user's choice or action. Avoid repeated availability disclaimers and development history in setup steps. -- Treat deliberate user cuts as scope decisions. Do not restore removed tangents during later documentation edits. - Keep necessary technical detail in the appropriate reference when reorganizing existing material. -- After moving or removing content, check link descriptions, paths, and heading anchors. - A link must lead to the task it promises. - -These rules reflect the October 21, 2026 README and installation edits compared with `codex/combined-pr-review` at `f741389`. -Those edits shortened setup, removed workspace steps and source-build instructions, and reduced repeated development notes. - -## Kanban workflow - -Move implementation-ready cards to Review after the relevant checks pass. -Reserve Done for the user's acceptance. Automated checks do not replace that review. -Keep unresolved work In progress. Do not start blocked cards or cards outside the requested scope. - -## Versioning - -Apply this policy to RuneStone and its plugins. Each project keeps its own version number. -Use `zz.yy.xx`. Keep routine implementation work in the current `zz.yy` series. -Increase `xx` once for each new completed regular build. The number has no two-digit limit. -For a hotfix build, keep `zz.yy.xx` and increase only its lowercase letter suffix. -Keep the current version during source edits, fixes, improvements, documentation work, and automated checks. -A build means a RuneStone installer or a plugin ZIP, unless the user requests another distributable. -Development servers, test runs, and intermediate compilation output do not count as new builds. -Set the next version when producing the build. Keep all version fields consistent. -If no build completes, restore the previous version fields. Failed attempts and retries do not consume version numbers. -Report a new version as available only after its build artifact exists. -Publishing an existing artifact does not increase its version. -Increase `yy` only for a deliberate release ready for build testing, with user direction. Reset `xx` to zero for that release. -Increase `zz` only for a full release, with user direction. Reset `yy` and `xx` to zero for that release. -Passing automated checks alone does not authorize a `yy` or `zz` increase. -Keep version fields consistent within each project. Do not increase versions for instruction-only edits. - -A hotfix fixes a single item or a narrowly scoped problem in an existing release. -Use lowercase letter suffixes as the actual hotfix version, such as `0.2.28a` and `0.2.28b`. -Advance hotfix suffixes in this order: `a`, `b`, `c`, through `z`, then `aa`, `ab`, and later suffixes. -The next regular build increases `xx` and removes the suffix. -Use the same hotfix version in `package.json`, `plugin.json`, build metadata, ZIP names, release notes, and tags. -For installer toolchains that require numeric or SemVer fields, use the reversible encoding in [the build guide](docs/builds.md#hotfix-installer-versions). -Keep the literal hotfix version in release metadata, visible version strings, and artifact names. -Do not substitute a numeric build increment for a hotfix suffix. -If a package format rejects the suffix, add support or report the blocker before building. -Do not bypass validation or overwrite an existing release ZIP. - -See [versioning for plugin authors and agents](docs/plugin-development.md#versioning-for-plugin-authors-and-agents) for the package guidance. - -## Windows installer - -- Default to reinstall when RuneStone is already installed, including builds with the same version. -- Do not make users uninstall RuneStone before they can reinstall or update it. -- Preserve workspace files and user settings during reinstall and update. -- Keep the existing protection against version downgrades. - -## Plugin packages - -Use `docs/plugin-development.md` as the package and release reference for all plugin work. -Distribute one standard `.zip` per plugin, with `plugin.json` at the archive root. -Use `pnpm package:plugin [output-folder]` to create release files. -Use Settings → Plug-ins for local ZIP and experimental Gitea-link installation. -Do not introduce custom extensions, loose JSON installation, or folder installation instructions. -Keep the manifest and entry module readable. Include the assets and dependencies needed to run the plugin. -Follow the [shared publishing standard](docs/plugin-development.md#publishing-releases) on any hosting service. -Use one plugin ZIP per published release, with an explicit tag for prerelease trials. -Keep the download source separate from package validation and installation. -GitHub and GitLab adapters remain future work. Do not add untested host support. - -## UI work: prefer meaningful icons - -Apply these rules whenever designing, implementing, modifying, or reviewing RuneStone UI. -Apply them automatically without requiring the user to repeat them. - -- Favor recognizable icons for actions, navigation, menus, and settings categories. - Help users recognize functions without relying only on English vocabulary. - Use icons to save space and reduce clutter. -- Pair icons with concise visible labels when the meaning could be ambiguous. - Keep labels that help users learn or distinguish functions. -- Use icon-only controls for familiar actions in compact spaces. - Give them accessible names, tooltips on hover and keyboard focus, and comfortable click targets. -- Reuse existing icon components and artwork. Keep the same icon for the same function. - Maintain consistent sizing and stroke weight. -- Do not force icons onto every setting, label, or explanation. - Use text alone when no clear icon exists. Omit decoration that does not improve understanding. - Recognition and accessibility take priority over fitting more controls on screen. -- Use Obsidian's settings pattern as a reference: icons with labels in navigation, - readable text and ordinary controls in detailed settings. - -For UI reviews, check changed controls against these rules. - -## UI work: use shared dimensions - -Use `--rs-titlebar-height` for custom window headers in the main app and settings. -Use the shared `--rs-settings-*` tokens for settings spacing, control height, headings, and descriptions. -Keep related plugin metadata and actions in compact rows. Preserve readable labels, focus indicators, and comfortable click targets. -Wrap controls at narrow widths and scroll the content area. Long settings navigation must leave room for the selected settings. -Check both themes, narrow windows, and long plugin lists after changes to shared dimensions. -## UI work: use rounded corners - -Apply these rules whenever designing, implementing, modifying, or reviewing RuneStone UI. -Apply them automatically without requiring the user to repeat them. - -- Use rounded corners consistently for controls and navigation highlights, including file and folder selections. - Compact controls and navigation rows share `--rs-control-radius`. - Selection outlines use `--rs-item-selection-radius`. -- Round exposed selection corners while keeping adjacent selected rows joined. - Do not add rounded gaps or selection borders on shared edges. -- Apply the same treatment to hover, active, and selected navigation states. -- Tables inside documents are the exception: keep grids, cells, and cell selection outlines square. - Table toolbar and menu controls still use rounded corners. - -## UI work: outline only the outer boundary of a selection - -Apply these rules whenever designing, implementing, modifying, or reviewing selection UI. -Apply them automatically without requiring the user to repeat them. - -- Adjacent selected rows or cells share one highlighted region. - Highlight only its exposed perimeter. Omit selection borders on shared internal edges. - Apply this to navigation rows, table cells, lists, and grids. -- Use the shared `--rs-item-selection-*` theme values for fill, border color, and border width. - Use table-cell selection as the fill and outline reference, with rounded exposed corners outside document tables. -- Separate groups, divided by unselected items or physical gaps, retain separate outlines. - A single selected item gets a complete outline. -- Determine adjacency from visible layout order, including sorting and expanded tree branches. - At indentation changes, preserve exposed edges and omit the portions shared by selected rows. -- Keep the fill continuous within each selected region. - Ordinary table grid lines can remain, but must not become highlighted selection borders inside the region. -- Check single items, contiguous ranges, separated selections, and nested rows. - -## UI work: use one menu design - -Apply these rules to context menus, action menus, and their submenus. -Apply them automatically when you add, change, or review a menu. - -- Use `src/lib/ui/actionMenu.ts` for action menus. - Svelte callers can use `src/lib/layout/ContextMenu.svelte`. - Keep presentation in `src/lib/ui/menu.css` and theme values in `src/lib/theme/tokens.css`. - Do not create a separate menu renderer or local style overrides for individual features. -- Use the same font, row height, padding, icon size, label alignment, separators, and shadow throughout a menu family. - Use `--rs-menu-*` tokens and `--rs-control-radius`. - Keep a padding inset around every row so hover and focus backgrounds do not touch the panel border. - Menu width can change when content requires more space. Keep the other shared measurements. -- Use the same action icon for the same function across menus. - Give recognizable actions an icon and a concise label. - Reserve the icon column when an item has no suitable icon. - Keep submenu arrows and shortcut text in separate trailing columns. -- Give enabled rows the same hover and keyboard focus treatment. - Keep disabled rows readable, skip them during keyboard navigation, and prevent their activation. - Use the same inset separators between related groups. -- Support arrow keys, Home, End, Enter, Space, and Escape. - Open submenus with the Right arrow and return with the Left arrow. - Restore focus on keyboard dismissal. Keep menus within the viewport and scroll long menus. -- Check file, folder, pane, tab, editor, table, and submenu examples after changes to shared menu code. - Check both themes, disabled items, icon alignment, keyboard focus, and viewport edges. - Run `scripts/menuConsistency.smoke.mjs` against the development server to compare shared styles and behavior. - -Rich pickers and dialogs can use their own layouts when they contain search fields, descriptions, or forms. -Plugin menus should use these rules where the host API permits shared components. - -## Project Management skill - -For RuneStone boards and cards, use the global `runestone-project-management` skill. -Find it at `$CODEX_HOME/skills/runestone-project-management/SKILL.md`. -When `CODEX_HOME` is unset, use `~/.codex/skills/runestone-project-management/SKILL.md`. -The skill supports multiple boards and workspaces with a read-only helper. -Discover boards before task selection when the request does not identify a board. -Each plugin has its own board. Use board membership to select the project, not tags or labels. -Use board placement to select a list. Card status alone does not identify its list. -Read priority from the separate `runestone_pm.priority` detail field, never from labels or tags. - -## UI work: keep attention on the work - -Use the principles in [Interface design](docs/ui-design.md#design-principles) for all interface work. -Keep active states clear and the structure focused. Use strong colors for theme identity, status, and actions that need attention. -Show board and view names once where possible. Keep switching and renaming as separate actions. -Use familiar icons and visual previews. Keep labels when they prevent ambiguity. -Keep accessible names, keyboard focus, and tooltips on icon controls. -Keep optional forms hidden until needed. Let users collapse sections and hide panes to focus on their work. -Before adding a control, check the shared component and examples in `docs/ui-design.md`. - -## UI work: record design decisions - -Use [Interface design](docs/ui-design.md) as the current design reference for the app and its plugins. -Use the [design decision log](docs/design-decisions.md) for rule changes, recurring problems, and exceptions. - -- For an isolated correction, keep the normal card or commit record. Do not add a design entry. -- For a rule change, update the guide and add a rule-change entry in the same change. - Record the reason, scope, shared component or token, and evidence. The number of affected controls does not determine the category. -- For a recurring problem, link the occurrences and record the cause and prevention check. - Mark an unknown cause as unknown. Update an existing entry for the same problem instead of adding duplicate entries. - Clarify the guide only when its rule is missing or unclear. -- For an exception, record the user benefit, exact scope, and review date or trigger. - Link the exception from the relevant guide section. An entry does not authorize a departure from the current rule. -- Before moving UI work to Review, include the evidence required by the guide. - Identify the shared component or token, check local overrides, and record any gaps in checks. - Check design principles as well as styling. Keep unresolved work In progress and reserve Done for the user's acceptance. - -## Release directory - -Keep all completed release files in `releases/` at this project root. -RuneStone installers use `releases//`. Each plugin keeps its ZIPs directly in its own `releases/` folder. -Keep release notes, checksums, and build metadata with the release they describe. -Repository release attachments must contain only installable binaries: RuneStone installers or plugin ZIPs. -Keep repository release descriptions empty so users reach the downloads without introductory text. -Keep release notes, test results, and installation instructions in the repository documentation instead. -Do not attach Markdown files, checksums, metadata, logs, or screenshots to repository releases. -Keep those records in the local release directory. Put downloadable installation checksums in `docs/checksums//` and link them from the installation guide. -Never copy plugin ZIPs into the host project or another plugin project. -Use `dist/`, `build/`, `output/`, and toolchain folders only for compilation, staging, logs, or checks. -Move completed installers from the toolchain bundle folder into `releases/` after packaging. -Do not leave a second installer copy in the bundle folder. -Do not overwrite a release with different contents. Remove duplicates only after their SHA-256 hashes match. -Keep distinct versions and files with different contents. Report filename conflicts before changing them. -Keep `releases/` outside Git. Report the full artifact path after each completed build. -This rule applies to the main app, all existing plugins, and all new plugins. - -## UI work: assertive color and complete menu coverage - -Use the global `ui-functional-color` skill for UI work. Read [Functional color requirements](docs/ui-color.md) before choosing or reviewing UI colors. -Start with vivid candidates for accents, priority, status, selection outlines, syntax, and important data. -Prefer the stronger candidate when readability, meaning, and distinction remain sound. Treat full saturation and full HSV value as normal options. -Do not soften colors solely for quiet, refined, professional, premium, minimal, or cohesive styling. -Require a concrete reason and before/after evidence for a softer choice. -Keep informative text and symbols opaque. Use shared tokens and check the actual composite surface. -The guide applies to human developers and agents. Existing muted values do not establish an approved soft design requirement. - -Searchable pickers can contain search, descriptions, and forms. Their panels and result rows use the shared menu presentation. -Use `rs-picker`, `rs-picker-row`, `rs-picker-icon`, and `rs-picker-hint` from `src/lib/ui/menu.css`. -Keep their different layout and semantics. Do not use the richer layout allowance to override panel color, row padding, font, or focus states. -Use the shared action menu for native select replacements whenever the host API exists. -Native selects remain only as documented fallbacks for older plugin hosts. Embedded website controls retain the website design. - -Run `node scripts/menuSurfaceAudit.mjs` before menu work moves to Review. -The inventory covers menu renderers, callers, native selects, and searchable pickers across the host and sibling plugins. -An added or changed menu entry point requires inventory review. Source coverage does not prove runtime compliance. -Run the listed browser checks for affected surfaces and retain screenshots of the exact reported control. -A neighboring selector does not satisfy a card. Check every control shown in its screenshots. +The instructions for AI agents in this repository are in [CLAUDE.md](CLAUDE.md). Read and obey that file. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..1b9c588 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,117 @@ +# RuneStone + +RuneStone is a desktop workspace for Markdown notes, code, and project work in ordinary local files. +A Tauri 2 host in Rust (`src-tauri/`) serves a Svelte 5 and TypeScript interface (`src/`). +Optional features are plugins. Each plugin is a separate repository beside this one, for example `../RuneStone_Terminal`. +The [development guide](docs/development.md#architecture) maps the source folders. + +## Skills + +| Skill | Use it for | +| --- | --- | +| `asd-ste100` | All prose: docs, commit messages, PR text, code comments, error messages, card text. Lint the docs you change. | +| `readme` | Any change to `README.md` | +| `ui-functional-color` | Any choice or review of UI colors | +| `runestone-project-management` | Boards and cards: find, select, group, delegate, and move cards to Review | + +## Commands + +| Command | Use | +| --- | --- | +| `pnpm install --frozen-lockfile` | Install dependencies | +| `pnpm tauri dev` | Run the desktop app with hot reload | +| `pnpm check` | Type checks | +| `pnpm test` | Unit tests (`scripts/*.spec.ts`) | +| `cargo test --manifest-path src-tauri/Cargo.toml --lib` | Rust tests | +| `pnpm check:menus` | Menu surface inventory | +| `node scripts/.smoke.mjs` | One browser smoke test. See [Browser smoke tests](docs/development.md#browser-smoke-tests). | +| `pnpm build:installer --version ` | Windows installer. See [Builds](docs/builds.md). | +| `pnpm package:plugin [output-folder]` | Plugin ZIP | + +A source edit needs the checks that cover it. A prose-only change needs only the lint and a link check. + +## Documentation + +| Content | Location | +| --- | --- | +| Purpose, value, install, help, maintainer | `README.md` | +| From a supplied release file to a launched app | `docs/installation.md` | +| Current behavior, limits, and workspace tutorials | `docs/user-guide.md`, `docs/guides/` | +| Plugin installation and management for users | `docs/plugins.md` | +| Source setup, architecture, checks, product boundaries | `docs/development.md`, `docs/linux.md` | +| Installer and package builds | `docs/builds.md` | +| Versions, release files, and publishing | `docs/releases.md` | +| Plugin package, API, and host internals | `docs/plugin-development.md`, `docs/completion.md`, `docs/plugin-host.md` | +| Interface rules, color, design decisions | `docs/ui-design.md`, `docs/ui-color.md`, `docs/design-decisions.md` | +| Dated records: audits, validations, trials | `docs/archive/` | +| Plans and roadmaps | RuneStone Project Management only | + +The old roadmap and product scope documents are retired. Do not recreate them. + +Rules from the owner: + +- Keep each guide within the task and the audience that its title names. +- Give the general procedure before examples. Label each example and cite its source file. + A build example states the working folder, the prerequisites, the command, and the output. + Do not present one plugin's build command as the process for all plugins. +- Keep the README's first-use path short. Link to details instead of repeating them. +- Include a limit only when it changes a reader's choice or action. Do not repeat availability warnings. Keep development history out of setup steps. +- Treat the owner's cuts as scope decisions. Do not restore removed tangents. +- After you move or remove content, check link text, paths, and heading anchors. + +## Kanban workflow + +- Use the `runestone-project-management` skill. Each plugin has its own board. +- Do not start blocked cards or cards outside the requested scope. +- Move an implementation-ready card to Review after its checks pass. Keep unresolved work In progress. +- Only the owner moves a card to Done. Automated checks do not replace the owner's review. + +## Versions and releases + +[docs/releases.md](docs/releases.md) holds the full policy. It applies to RuneStone and to each plugin, and each project keeps its own version. + +- Versions use `zz.yy.xx`. A hotfix adds a lowercase letter suffix: `0.2.28a`, then `0.2.28b`. +- Keep the current version during source edits, fixes, documentation, and checks. Instruction-only edits never change it. +- Set the next version only when you produce a build: a RuneStone installer or a plugin ZIP. + A regular build increases `xx` by one. A hotfix build increases only the suffix. +- If the build fails, restore the previous version fields. Failed attempts do not use up a version. +- Increase `yy` or `zz` only when the owner directs a release. +- Report a new version only after its artifact exists. Report the full artifact path. +- Completed builds go in `releases/`, outside Git. Never overwrite a release with different contents. +- Repository releases contain only installers or plugin ZIPs, with an empty description. + +## Windows installer + +- An existing installation defaults to reinstall, also for the same version. Users never need to uninstall first. +- Reinstall and update preserve workspace files and user settings. +- Keep the protection against version downgrades. + +## Plugin packages + +- [docs/plugin-development.md](docs/plugin-development.md) is the package and API reference for all plugin work. +- Each plugin ships as one standard `.zip` with `plugin.json` at the archive root. Create it with `pnpm package:plugin`. +- Users install ZIPs through Settings → Plug-ins, from a local file or an experimental Gitea link. + Do not add custom extensions, loose JSON installs, or folder installs. +- Keep the manifest and the entry module readable. Include the assets and dependencies that the plugin needs. +- GitHub and GitLab download adapters are future work. Do not add untested host support. +- Keep plugin ZIPs in the plugin's own `releases/` folder. Never copy them into this project or another plugin. + +## UI work + +[docs/ui-design.md](docs/ui-design.md) holds the full interface rules. Read it before you change UI. Check each change against this list: + +- Use the shared components and tokens. Menus use `src/lib/ui/actionMenu.ts` (or `src/lib/layout/ContextMenu.svelte`), `src/lib/ui/menu.css`, and the `--rs-menu-*` tokens in `src/lib/theme/tokens.css`. Do not add a local menu renderer or local style overrides. +- Use recognizable icons. Keep a visible label when an icon alone is ambiguous. + An icon-only control needs an accessible name, a tooltip on hover and keyboard focus, and a comfortable click target. +- Controls and navigation highlights use rounded corners (`--rs-control-radius`). Tables inside documents stay square. +- A selection gets one outline around each group of adjacent selected items, with no borders on shared internal edges. +- Colors follow the `ui-functional-color` skill and `docs/ui-color.md`: vivid by default, informative text opaque. +- Before Review, check both themes, narrow windows, long lists, keyboard focus, and viewport edges. + For menu work, run `pnpm check:menus` and `scripts/menuConsistency.smoke.mjs`. + Keep screenshots of the exact control that the card names. +- Record a rule change, a recurring problem, or an exception in `docs/design-decisions.md`. An isolated fix needs no entry. + +## Subagents + +Use only Haiku 5.5 (`model: "haiku"`) or Opus 5.5 (`model: "opus"`, effort `medium` to `xhigh`). Never use Sonnet or Fable. +The `runestone-project-management` skill maps task types to models and lists what each brief must contain. diff --git a/README.md b/README.md index 246db76..9df9304 100644 --- a/README.md +++ b/README.md @@ -1,87 +1,50 @@ # RuneStone -A desktop workspace for notes, code, and project work stored in ordinary local files. +RuneStone is a desktop workspace for Markdown notes, code, and project work that it keeps in ordinary local files. ## Install and start -Choose [Windows setup](#windows-installer), [macOS setup](#macos-installer-apple-silicon), or [Linux setup](#linux-intelamd-64-bit). +Download the installer for your computer from the 0.1.44 release. -### Windows installer +| Platform | Installer | Status | +| --- | --- | --- | +| Windows 10 or 11, x64 | [RuneStone_0.1.44_x64-setup.exe](https://git.knottywyvern.com/kwyvern/RuneStone/releases/download/v0.1.44/RuneStone_0.1.44_x64-setup.exe) | Primary platform | +| macOS, Apple silicon | [RuneStone_0.1.44_aarch64.dmg](https://git.knottywyvern.com/kwyvern/RuneStone/releases/download/v0.1.44/RuneStone_0.1.44_aarch64.dmg) | Experimental: ad hoc signed, not notarized | +| Linux, amd64 | [RuneStone_0.1.44_amd64.deb](https://git.knottywyvern.com/kwyvern/RuneStone/releases/download/v0.1.44/RuneStone_0.1.44_amd64.deb) | Experimental: built on Ubuntu 26.04.1, needs GLIBC 2.39 or newer | -Download the [Windows 0.1.44 installer](http://10.0.0.5:6610/kwyvern/RuneStone/releases/download/v0.1.44/RuneStone_0.1.44_x64-setup.exe) from the repository release. +- **Windows:** Open the installer and complete setup. Then open RuneStone from the Start menu. +- **macOS:** Open the disk image and drag RuneStone into Applications. Then open RuneStone from Applications. +- **Linux:** Run `sudo apt install ./RuneStone_0.1.44_amd64.deb` in the download folder. Then open RuneStone from your applications menu. -Use the Windows installer supplied for Windows 10 or 11 on Intel/AMD 64-bit computers. - -1. Save `RuneStone_0.1.44_x64-setup.exe` to Downloads. -2. Open the installer. -3. Complete setup. -4. Open RuneStone from the Start menu. - -See [Installation and updates](docs/installation.md#install-on-windows) for Windows setup help. - -### macOS installer: Apple silicon - -Download the [macOS 0.1.44 installer](http://10.0.0.5:6610/kwyvern/RuneStone/releases/download/v0.1.44/RuneStone_0.1.44_aarch64.dmg) from the repository release. - -1. Open `RuneStone_0.1.44_aarch64.dmg`. -2. Drag RuneStone into Applications. -3. Eject the disk image, then open RuneStone from Applications. - -Quit RuneStone before replacing an existing installation. The installer needs no developer tools. -The current build is experimental, uses local ad hoc signatures, and is not Apple notarized. -Intel Macs are not covered. Installation, updates, and desktop behavior still need acceptance testing. -See [macOS installation and updates](docs/installation.md#install-on-macos) for the full procedure. - -### Linux: Intel/AMD 64-bit - -Download the [Linux 0.1.44 installer](http://10.0.0.5:6610/kwyvern/RuneStone/releases/download/v0.1.44/RuneStone_0.1.44_amd64.deb). You do not need -Node.js, Rust, or the source repository. The package includes RuneStone's Browser. - -1. Save `RuneStone_0.1.44_amd64.deb` to Downloads. -2. Open Terminal in Downloads and install the file: - - ```bash - sudo apt install ./RuneStone_0.1.44_amd64.deb - ``` - -3. Enter your password when asked, then open RuneStone from your applications menu. - -The current package was built on Ubuntu 26.04.1 LTS for `amd64` and requires -GLIBC 2.39 or newer. Installation, reinstall, upgrade, removal, and compatibility -with older distributions remain untested. See [Linux installation and updates](docs/installation.md#install-on-linux) -for package checks and update steps, or the [Linux development guide](docs/linux.md) to build from source. +Each installer includes the built-in browser. You do not need developer tools. +For checksums, updates, and reinstalls, see [Installation and updates](docs/installation.md). ## What you can do - Write Markdown with live formatting, editable tables, images, and Mermaid diagrams. -- Switch between Writer, source editing, Read, and Split views. -- Find files, search a workspace, and resolve changes made by other tools. -- Use the bundled Browser to view web pages beside your documents. -- Install optional Terminal, Git, Project Management, Table Formulas, and other plugin ZIPs. -- Open CSV spreadsheets and PDFs with their optional viewer plugins. - -RuneStone is under development. Windows, Apple silicon macOS, and Linux installers are available from the repository release. -Linux installation and macOS desktop acceptance remain unvalidated. -Tab restoration and crash recovery remain planned. Language-server support belongs to a future optional plugin. -Plugin features require their matching packages. See the [user guide](docs/user-guide.md) for current behavior and limits. +- Switch between Writer, IDE source editing, Read, and Split views. +- Find files, search a workspace, and resolve changes that other tools make to your files. +- Open web pages in browser tabs beside your documents. +- Add optional plugins, such as Terminal, Git, Project Management, Table Formulas, PDF Viewer, and CSV Viewer. ## Find help | Need | Guide | | --- | --- | -| Edit documents, manage tabs, or resolve a save conflict | [User guide](docs/user-guide.md) | -| Change colors or install a theme | [Appearance guide](docs/guides/themes.md) | -| Install or remove an optional plugin | [Install and manage plugins](docs/plugins.md) | | Install or update RuneStone | [Installation and updates](docs/installation.md) | +| Edit documents, manage tabs, or resolve a save conflict | [User guide](docs/user-guide.md) | +| Work with images, tables, or diagrams | [Images, diagrams, and tables](docs/guides/document-tools.md) | +| Change colors or install a theme | [Appearance and custom themes](docs/guides/themes.md) | +| Install, update, or remove a plugin | [Install and manage plugins](docs/plugins.md) | -Press F1 in the app for Help and about. Include the app version, operating system, -steps, expected result, and error text when you report a problem to the maintainer. +Press F1 in the app for Help and about. +When you report a problem to the maintainer, include the app version, operating system, steps, expected result, and error text. ## Contribute -Use the [development guide](docs/development.md) for source setup and checks. -Read the [interface design reference](docs/ui-design.md) before UI changes. -See [product boundaries](docs/development.md#product-boundaries) for exclusions and architecture constraints. +- Use the [development guide](docs/development.md) for source setup and checks. +- Read the [interface design reference](docs/ui-design.md) before you change the interface. +- See [product boundaries](docs/development.md#product-boundaries) for exclusions and architecture constraints. ## Maintainer diff --git a/docs/archive/README.md b/docs/archive/README.md index 35b979d..6682d08 100644 --- a/docs/archive/README.md +++ b/docs/archive/README.md @@ -9,6 +9,7 @@ These records preserve past checks, decisions, and proposals. They do not define | [macOS validation, 0.1.44](macos-validation-0.1.44.md) | Apple silicon DMG, source commit, checksums, checks, and acceptance limits | | [Linux installer 0.1.44](linux-validation-0.1.44.md) | Debian build, checksum, automated checks, and remaining validation gaps | | [Linux validation, October 14–15](linux-validation-2026-10.md) | Native builds, desktop smoke checks, Debian/AppImage packages, and test limits for 0.1.34 | +| [Menu and color review, October 13](menu-audit-2026-10-13.md) | Menu coverage, palette corrections, contrast measurements, and the 0.1.32 builds | | [Plugin release trial, October 5](plugin-release-trial-2026-10-05.md) | Simulated Gitea downloads, native installation, and repeat steps | | [Kanban review, October 8](kanban-review-2026-10-08.md) | Scope, assignments, checks, and the 0.1.13 test builds | | [Kanban changes, October 8](kanban-changes-2026-10-08.md) | Editor, settings, browser, and plugin changes | diff --git a/docs/archive/app-updating-draft.md b/docs/archive/app-updating-draft.md index 7e55dce..2ece7c3 100644 --- a/docs/archive/app-updating-draft.md +++ b/docs/archive/app-updating-draft.md @@ -13,7 +13,7 @@ The Windows configuration uses a per-user NSIS installer and blocks downgrades. The 0.1.15 release notes tell users to run the installer directly, but also identify native installer behavior as untested. This difference needs reproduction on an installed copy before implementation. -Sources: [project rules](../../AGENTS.md#windows-installer), [Windows configuration](../../src-tauri/tauri.windows.conf.json), and [0.1.15 release notes](../release-0.1.15.md). +Sources: [project rules](../../CLAUDE.md#windows-installer), [Windows configuration](../../src-tauri/tauri.windows.conf.json), and the 0.1.15 release notes (no longer in the repository). ## Proposed first milestone diff --git a/docs/archive/kanban-followup-2026-10-08.md b/docs/archive/kanban-followup-2026-10-08.md index 6251d2f..912b941 100644 --- a/docs/archive/kanban-followup-2026-10-08.md +++ b/docs/archive/kanban-followup-2026-10-08.md @@ -1,7 +1,7 @@ # Menu, theme, and Git graph changes These changes cover three To Do cards from the RuneStone and RuneStone_Git boards on October 8, 2026. -The [local test builds](../release-0.1.17.md) are RuneStone 0.1.17 and Git 0.1.4. +The local test builds were RuneStone 0.1.17 and Git 0.1.4. ## Changes diff --git a/docs/archive/kanban-review-2026-10-08.md b/docs/archive/kanban-review-2026-10-08.md index 005dc84..9eccb7c 100644 --- a/docs/archive/kanban-review-2026-10-08.md +++ b/docs/archive/kanban-review-2026-10-08.md @@ -100,7 +100,7 @@ Prose lint for this record: 1.45 issues per 100 words. The user requested distributable builds for desktop testing. RuneStone 0.1.13 is available as `src-tauri/target/release/bundle/nsis/RuneStone_0.1.13_x64-setup.exe`. Project Management 0.2.18 is available as `../RuneStone_ProjectManagement/plugin-packages/runestone.pm-0.2.18.zip`. -See the [installation notes](../release-0.1.13.md). +The 0.1.13 installation notes are no longer in the repository. Both builds completed and passed artifact integrity checks. Previous release files remain intact. The installer includes the existing browser runtime. Its application version is 0.1.13 and downgrades remain disabled. diff --git a/docs/archive/macos-validation-0.1.44.md b/docs/archive/macos-validation-0.1.44.md index 97da164..930f4ab 100644 --- a/docs/archive/macos-validation-0.1.44.md +++ b/docs/archive/macos-validation-0.1.44.md @@ -20,4 +20,4 @@ Build procedure: frozen pnpm install; Browser npm ci, checks, tests, engine test Artifact: `releases/0.1.44/RuneStone_0.1.44_aarch64.dmg`. Logs and packaging scripts remain under `output/macos-installer-0.1.44/`. -Published alongside the existing Windows installer in the [Gitea 0.1.44 release](http://10.0.0.5:6610/kwyvern/RuneStone/releases/tag/v0.1.44), with `macos-release-notes.md` as a separate attachment. The existing release tag was retained. +Published alongside the existing Windows installer in the [Gitea 0.1.44 release](https://git.knottywyvern.com/kwyvern/RuneStone/releases/tag/v0.1.44), with `macos-release-notes.md` as a separate attachment. The existing release tag was retained. diff --git a/docs/menu-audit.md b/docs/archive/menu-audit-2026-10-13.md similarity index 98% rename from docs/menu-audit.md rename to docs/archive/menu-audit-2026-10-13.md index 445202f..4e78d32 100644 --- a/docs/menu-audit.md +++ b/docs/archive/menu-audit-2026-10-13.md @@ -6,7 +6,7 @@ Reference cards remain in Backlog. They supply evidence and do not count as impl ## Menu coverage The source audit covers RuneStone, Project Management, Terminal, Background Slideshow, Local Autocomplete, Git, PDF Viewer, and Table Formulas. -The [inventory](menu-surfaces.json) records 38 source files, their design route, and their check. +The [inventory](../menu-surfaces.json) records 38 source files, their design route, and their check. Project Management has 21 distinct menu, choice, and picker routes in its detailed local inventory. PDF Viewer and Table Formulas contain no independent menu renderer. Git's commit list is a persistent listbox. diff --git a/docs/builds.md b/docs/builds.md index 1237c9f..9919934 100644 --- a/docs/builds.md +++ b/docs/builds.md @@ -1,162 +1,192 @@ -# Build and package RuneStone +# Build RuneStone -[Development](development.md) · [Installation](installation.md) +[Development](development.md) · [Releases](releases.md) · [Installation](installation.md) -This guide is for maintainers. Users install a supplied package through the installation guide. +This guide tells maintainers how to build RuneStone installers and packages. Users install a supplied file with the [installation guide](installation.md). + +Use the [release policy](releases.md) to select the version, store the files, and publish them. ## Build the Windows installer -Build on 64-bit Windows with the tools in the [development guide](development.md#run-from-source). -The commands below use the checked-in dependency versions. +`pnpm build:installer` builds an NSIS setup file for 64-bit Windows (x64). The script stops on other operating systems. -```sh -pnpm install --frozen-lockfile -pnpm check -pnpm test -pnpm build:installer -``` +Prerequisites: -The last command builds the interface, compiles the release app, and creates an NSIS setup executable. -The first build needs internet access to download the packaging tools and the WebView2 bootstrapper. -Find the installer in: +- The source setup in [Run from source](development.md#run-from-source). +- A Windows Browser runtime staged in `src-tauri/browser-engine`. See [Built-in browser runtime](development.md#built-in-browser-runtime). The installer bundles that folder. +- Internet access for the first build. Tauri downloads NSIS and the WebView2 bootstrapper. -```text -releases//RuneStone__x64-setup.exe -``` +Procedure, in the RuneStone repository root: -Distribute this setup file. Users do not need the repository, a local server, or build tools. -Build output stays outside version control. -The build moves the completed installer into `releases//` with its `host.json` metadata. -The toolchain bundle folder does not retain a second installer copy. +1. Run `pnpm install --frozen-lockfile`. +2. Run `pnpm check`. +3. Run `pnpm test`. +4. Select the version with the [version policy](releases.md#versions). +5. Run `pnpm build:installer --version `. -## Installer settings +Without `--version`, the script uses the version in `package.json`. -Tauri automatically merges `src-tauri/tauri.windows.conf.json` into the base configuration on Windows. -This file selects NSIS for ordinary `pnpm tauri build` commands too. -It uses the existing RuneStone icon and installs the app for the current Windows account. -Tauri supplies the setup screens, Start menu shortcut, launch option, and uninstaller. +Output: -The installer includes the WebView2 bootstrapper. -If WebView2 is missing, setup downloads the runtime. An existing runtime needs no setup download. -The configuration blocks version downgrades. +| File | Contents | +| --- | --- | +| `releases//RuneStone__x64-setup.exe` | The setup file to distribute | +| `releases//host.json` | The release version, the encoded toolchain and Windows versions, the path, the size in bytes, and the SHA-256 hash | + +The script prints `Installer available: ` when it completes. +After a successful build, the version fields keep the new version. + +Example, from the 0.1.44 download link in the README: version `0.1.44` gives `releases/0.1.44/RuneStone_0.1.44_x64-setup.exe`. + +### What the script does + +Source: `scripts/buildInstaller.mjs`. + +1. Reads the version and makes sure that all version fields match the current version. +2. Makes sure that downgrade protection stays on in `tauri.conf.json` and `tauri.windows.conf.json`. +3. Stops if the setup file or `host.json` exists in the bundle folder or in `releases//`. +4. Saves copies of the four version files as `*.before` in `output/installer-build//`. + It also writes the NSIS template and a configuration override to that folder. +5. Writes the new version to `package.json`, `tauri.conf.json`, `Cargo.toml`, and `Cargo.lock`. +6. Runs `tauri build --no-bundle -- --locked`. This runs `pnpm build` and compiles the release app. +7. Runs `scripts/setWindowsVersion.ps1` to write the version resource of `runestone.exe`. +8. Runs `tauri bundle --bundles nsis` with the RuneStone template from `src-tauri/windows/installer.nsi`. +9. Moves the setup file into `releases//`, writes `host.json`, and removes the bundle-folder copy. + +### Failure and rollback + +If a step fails, the script restores the four version files. +It moves partial setup files and `host.json` into `output/installer-build//` with a `.failed-` suffix. + +Ctrl+C stops the script before this cleanup. The version files then keep the new version. +Before you run the script again, copy the `*.before` files from `output/installer-build//` back to their original names. +A new run with the same version replaces those copies. + +## Installer requirements + +Keep these properties when you change the installer configuration or template: + +| Requirement | Implementation | +| --- | --- | +| Reinstall is the default when RuneStone is installed, also for the same version. | The NSIS maintenance page preselects the reinstall option. | +| Users do not uninstall RuneStone before an update or a reinstall. | Updates and reinstalls replace the app in place. | +| Updates and reinstalls keep workspace files and user settings. | Workspaces stay outside the installation folder. Settings stay in application data. | +| Older versions cannot replace a newer installation. | `allowDowngrades` is `false`. `pnpm build:installer` stops if this setting changes. | +| The app identity stays the same across upgrades. | The identifier stays `com.runestone.app`. | +| WebView2 is available. | The installer embeds the WebView2 bootstrapper. If the runtime is missing, setup downloads it. | + +The installer uses the RuneStone icon, installs for the current Windows account, and adds a Start menu shortcut and an uninstaller. It does not register document types or start RuneStone when Windows starts. -See [Tauri's Windows installer documentation](https://v2.tauri.app/distribute/windows-installer/) for the packaging options. +Local installers are unsigned. Configure Windows code signing with [Tauri's signing guide](https://v2.tauri.app/distribute/sign/windows/) before public distribution. +The NSIS template comes from Tauri CLI 2.11.4. When you update Tauri, compare the template with the new Tauri version. +See [Tauri's Windows installer documentation](https://v2.tauri.app/distribute/windows-installer/) for packaging options. ## Hotfix installer versions -Hotfix installer versions use the same letter sequence as plugin versions: `a`, `b`, `c`, through `z`, then `aa`, `ab`. -Use `pnpm build:installer --version 0.1.23a` to produce that release. -The build command checks matching versions, preserves existing installers, and restores previous version fields if the build fails. +Cargo and Tauri accept only SemVer versions. The Windows version resource accepts only four numbers. +`scripts/releaseVersion.mjs` encodes a hotfix version for those fields. The encoding does not create a separate build or change the release version. -`package.json`, Cargo release metadata, installer metadata, the app version display, and release filenames retain the literal release version. -Cargo and Tauri require SemVer. The adapter encodes `0.1.23a` as `0.1.23+1` in their version fields. -Windows requires four numeric parts. The adapter encodes the same version as `0.1.23.1` in the numeric version resource. -The executable's FileVersion and ProductVersion strings retain `0.1.23a`. -These internal encodings represent the same release. They do not create a separate build or increase the numeric release version. +The suffix index counts `a` = 1 through `z` = 26, then `aa` = 27. A regular version has index 0. -The shared NSIS comparison orders the numeric release first, then the hotfix suffix. -For example: `0.1.23 < 0.1.23a < 0.1.23b < 0.1.23z < 0.1.23aa < 0.1.24`. -The installer blocks downgrades before uninstall or update actions, including silent and passive installs. -Unknown version formats also block replacement. Reinstall and upgrade retain the existing installation by default. -Windows stores the SemVer encoding in its compatibility version field for older installers. -It stores the literal release version in `RuneStoneReleaseVersion` for the updated installer. -The app and installer version strings and release filenames use `0.1.23a`. Windows Apps can show the equivalent internal value `0.1.23+1`. -This keeps older numeric installers from treating a hotfix as an unknown or older release. +| Field | Value for `0.1.23a` | +| --- | --- | +| `package.json`, `[package.metadata.runestone]`, the setup file name, the version in Settings, and the executable `FileVersion` and `ProductVersion` strings | `0.1.23a` | +| `tauri.conf.json`, the Cargo package version, and `Cargo.lock` | `0.1.23+1` | +| The numeric Windows version resource of the executable and the installer | `0.1.23.1` | +| Registry value `RuneStoneReleaseVersion` | `0.1.23a` | +| Registry value `DisplayVersion`, which Windows shows in installed apps | `0.1.23+1` | -The Windows numeric resource limits each part and the hotfix index to 65535. -The adapter rejects versions outside those limits before it changes version fields. -The NSIS template derives from Tauri CLI 2.11.4. Check its changes when updating Tauri. +Each numeric part and the suffix index must not exceed 65535. The last valid suffix is `crxo`. +The script rejects other versions before it changes a file. -## Prepare a release - -Each project uses its own `zz.yy.xx` version. Routine source edits and checks retain the current version. -Increase `xx` once for each completed regular build. For a hotfix, increase the letter suffix. Failed attempts do not consume a version. -Keep version fields consistent, and restore them if no build completes. -Increase `yy` or `zz` only for a user-directed release, then reset the lower fields as defined in [the version policy](../AGENTS.md#versioning). -Publishing an existing artifact does not change its version. - -1. Select the release version under the shared version policy. -2. Run the checks above. -3. Run `pnpm build:installer --version `. The adapter sets matching release and toolchain versions. -4. Test the installer on a clean Windows account with the checks below. -5. Attach only installer binaries to the repository release or your chosen download page. - -Keep `com.runestone.app` as the app identifier so upgrades retain the same app identity. -Publish installers on the [repository release page](http://10.0.0.5:6610/kwyvern/RuneStone/releases). -After you publish an installer, add its download link to the README. -Keep notes, checksums, metadata, logs, and screenshots out of release attachments. -Keep the release description empty so users reach the downloads directly. Put release notes, test results, and installation instructions in repository documentation. -Keep build records in the local release directory. Publish installation checksums in `docs/checksums//` and link them from the installation guide. - -Local installers are unsigned until the maintainer configures Windows code signing. -Use [Tauri's signing guide](https://v2.tauri.app/distribute/sign/windows/) before public distribution. +The installer comparison in `src-tauri/windows/versionCompare.nsh` sorts the numeric release first, then the suffix: +`0.1.23 < 0.1.23a < 0.1.23b < 0.1.23z < 0.1.23aa < 0.1.24`. +The installer reads `RuneStoneReleaseVersion` and uses `DisplayVersion` when that value is missing. +An installed version with an unknown format counts as newer, so setup blocks replacement. +Older RuneStone installers read `DisplayVersion` as SemVer and treat `0.1.23+1` as newer than `0.1.23`. Thus an older `0.1.23` installer does not replace the hotfix. ## Installer checks +Do these checks on a separate Windows test account or virtual machine. A successful build does not prove them. + | Check | Expected result | | --- | --- | -| Install on an account without Node.js or Rust | Setup completes and RuneStone opens | -| Install without WebView2, with internet access | Setup installs the runtime and RuneStone opens | -| Open RuneStone from the Start menu | The app opens without a terminal or development server | -| Create a workspace outside the installation folder | Notes save and reopen | -| Install a newer version | Setup updates the app and preserves workspace files | -| Reinstall the same version | Setup defaults to reinstall and preserves workspace files and settings | -| Try to install an older version | Setup blocks the downgrade | -| Remove RuneStone through Windows Settings | The app and shortcuts disappear, and the separate workspace remains | - -These checks require a Windows test account or virtual machine. A successful build alone does not confirm them. +| Install on an account without Node.js or Rust | Setup completes and RuneStone opens. | +| Install without WebView2, with internet access | Setup installs the runtime and RuneStone opens. | +| Open RuneStone from the Start menu | The app opens without a terminal or a development server. | +| Create a workspace outside the installation folder | Notes save and open again. | +| Install a newer version | Setup updates the app and keeps workspace files. | +| Install the same version again | Setup selects reinstall and keeps workspace files and settings. | +| Install an older version | Setup blocks the downgrade. | +| Install a hotfix over its base version | Setup updates the app. | +| Remove RuneStone through Windows Settings | The app and shortcuts are removed. The separate workspace stays. | ## Build Linux packages -Prepare the Browser runtime and complete the [Linux development checks](linux.md) on the target processor architecture. -Run the commands from the RuneStone repository root. -The examples use the Tauri CLI from [package.json](../package.json) and [Linux bundle configuration](../src-tauri/tauri.linux.conf.json). +Prerequisites: -Choose the package format for the build. Each example produces a package in the output folder listed below: +- The [Linux development prerequisites](linux.md) on the processor architecture of the package. +- A Linux Browser runtime for that architecture, staged in `src-tauri/browser-engine`. +- The new version in all RuneStone version fields. No Linux script sets or restores them. See [Versions](releases.md#versions). -```sh -# Example: Debian package -pnpm tauri build --bundles deb -- --locked +Procedure, in the RuneStone repository root. The commands use the Tauri CLI from `package.json` and the bundle settings in `src-tauri/tauri.linux.conf.json`. -# Example: AppImage -pnpm tauri build --bundles appimage -- --locked -``` +1. Build the package format that you need: -Do not use `pnpm build:installer` on Linux. That command selects the Windows installer. -These direct Tauri commands do not manage the project release version or archive a -release. Before making a distributable, select the next version using the -[version policy](../AGENTS.md#versioning), keep all four version fields consistent, -and restore them if packaging fails. Move completed packages into -`releases//` together with checksums and the recorded source/test results; -do not leave duplicate completed packages in the toolchain bundle directory. -Packages appear under `src-tauri/target/release/bundle/deb/` or `src-tauri/target/release/bundle/appimage/`. + ```sh + # Debian package + pnpm tauri build --bundles deb -- --locked -Use the [Linux installation procedure](installation.md#install-on-linux) when testing a Debian package. -Test launch without development tools, same-version reinstall, upgrade, and removal on a separate test account. -Reinstall and upgrade must preserve settings and workspace files. Removal must preserve workspaces outside the installation folder. + # AppImage + pnpm tauri build --bundles appimage -- --locked + ``` -For shared packages, build on the oldest distribution you intend to support that supplies WebKitGTK 4.1. -A package built on a newer system can require libraries unavailable on an older system. -An AppImage does not remove this compatibility limit. -See [Tauri's AppImage guidance](https://v2.tauri.app/distribute/appimage/) and [Debian packaging guidance](https://v2.tauri.app/distribute/debian/). +2. Find the package in `src-tauri/target/release/bundle/deb/` or `src-tauri/target/release/bundle/appimage/`. +3. Move the package into `releases//`. Do not leave a copy in the bundle folder. +4. Put the checksums, the source commit, the environment, the test results, and the untested cases in the same folder. -Call a distribution supported only after its native tests and package checks pass. -Repeat the automated checks on a Linux runner before each Linux release. -Keep the source commit, environment, results, and untested cases with each release. -See the [October 2026 validation records](archive/linux-validation-2026-10.md) for earlier package checks and their limits. +If the build fails, restore the previous version fields. -## Experimental macOS packages +Example, from the 0.1.44 download link in the README: the x86_64 Debian build of version `0.1.44` is `RuneStone_0.1.44_amd64.deb`. -Build on macOS with the correct Browser runtime. +`pnpm build:installer` does not build Linux packages. It stops on operating systems other than Windows. +No Linux script encodes hotfix versions, and Tauri rejects a letter suffix in `tauri.conf.json`. Report this blocker before a Linux hotfix build. -On macOS, a local application bundle can use: +The Debian package depends on `libc6 (>= 2.39)`, as set in `tauri.linux.conf.json`. +A package built on a newer system can need libraries that an older system does not have. An AppImage does not remove this limit. +For a shared package, build on the oldest distribution that you support and that supplies WebKitGTK 4.1. +See [Tauri's Debian guide](https://v2.tauri.app/distribute/debian/) and [Tauri's AppImage guide](https://v2.tauri.app/distribute/appimage/). + +Test a Debian package with the [Linux installation procedure](installation.md#install-on-linux) on a separate test account: + +| Check | Expected result | +| --- | --- | +| Launch without development tools | RuneStone opens. | +| Install the same version again | Settings and workspace files stay. | +| Install a newer version | Settings and workspace files stay. | +| Remove the package | Workspaces outside the installation folder stay. | + +Call a distribution supported only after its native tests and package checks pass. Repeat the automated checks on a Linux runner before each Linux release. +For an example record, see the [Linux 0.1.44 validation](archive/linux-validation-0.1.44.md). + +## macOS packages + +macOS packages are experimental. RuneStone has no validated macOS release procedure. + +Prerequisites: a Mac, the source setup, and a Browser runtime packaged and staged on that Mac. + +In the RuneStone repository root, run: ```sh pnpm tauri build --bundles app -- --locked ``` -Tauri places the bundle under `src-tauri/target/release/bundle/macos/`. -This command is a test route, not a validated RuneStone release workflow. -Check the [Tauri application bundle guide](https://v2.tauri.app/distribute/macos-application-bundle/) for platform packaging behavior. -Signing, notarization, architecture coverage, Browser packaging, and desktop acceptance remain unresolved for RuneStone on macOS. +Tauri puts the application bundle in `src-tauri/target/release/bundle/macos/`. No script sets the version fields on macOS. + +Example, from the [macOS 0.1.44 record](archive/macos-validation-0.1.44.md): the 0.1.44 DMG used manual steps after this build. +Those steps replaced the bundled Browser resources with a copy that keeps the Electron framework symbolic links. +Then they applied ad hoc signatures and created the DMG. + +Developer ID signing, notarization, Intel builds, and desktop acceptance tests are not done for macOS. +See [Tauri's macOS application bundle guide](https://v2.tauri.app/distribute/macos-application-bundle/). diff --git a/docs/completion.md b/docs/completion.md index 38a0685..43b8a2f 100644 --- a/docs/completion.md +++ b/docs/completion.md @@ -1,8 +1,22 @@ # Completion plugin API -This source update adds `api.completion`, capability version 1. It is optional in package API version 1. +[Plugin development](plugin-development.md) · [Plugin API](plugin-development.md#plugin-api) -Plugins must feature-detect it. The existing 0.1.7 installer does not contain this source update. +`api.completion` (`version: 1`) lets plugins show autocomplete in RuneStone editors and in their own text fields, and supply the suggestions. + +`api.completion` is optional. Older hosts do not have it, and `transport` can be absent. Make sure that a member exists before you call it. +The types are in `src/lib/completion/contracts.ts`. + +| Member | Contract | +| --- | --- | +| `registerInput(element, options)` | Add autocomplete to an `` or `