Commit Graph
46 Commits
Author SHA1 Message Date
Knotty Wyvern 33495d2bf7 Set the version to 0.1.53 2026-10-31 18:31:37 -07:00
Knotty Wyvern e4be352a2b Pin browser engine 0.1.9
Engine 0.1.9 keeps the original bytes for Copy image. The pin names its ZIP on the RuneStone releases page.
2026-10-31 18:24:37 -07:00
Knotty Wyvern 6e1b24e40f Keep the frames of pasted GIF, WebP, and AVIF images
A browser puts only the first frame of an image on the clipboard, with
HTML that names the image address.

- Documents and cards download the original of a GIF, WebP, or AVIF
  address. The host commands workspace_save_image_url and
  workspace_download_image read the format from the file contents and
  refuse other data. A failed download keeps the first frame and shows
  a message.
- Copy image in the RuneStone browser keeps the bytes that the page
  loaded. The engine reads them through the DevTools Protocol, so the
  website gets no second request. The new copiedImage command gives
  them in parts below the line limit of the host. A paste uses them
  first.
- An empty dropped image file shows a message. Firefox gives such a
  file when the website refuses its download.

Copy image needs a new browser engine build. Card 0d5c18f7.
2026-10-31 17:33:08 -07:00
Knotty Wyvern 648a5672e7 Set the version to 0.1.52 2026-10-30 16:12:19 -07:00
Knotty Wyvern c68a1afb6d Set the version to 0.1.51 2026-10-29 22:22:01 -07:00
Knotty Wyvern e66f089176 Make Project Management a native feature
- Move the storage and model of the plugin into src/lib/features/pm/ as pure TypeScript, so the skill can still bundle them.
- Move the DOM interface onto the host menus, the shared tooltip, and the host icons.
- A ribbon button opens Project Management. Board tabs keep the owner runestone.pm and the board-<hex> view IDs through view patterns.
- Read only .runestone/pm/. Offer the plugin migration, with backups, for legacy notes.
- A save, move, or delete reads only that card again. Watcher paths reach the feature.
- Add Settings → Project Management and the projectManagement section. View states move to localStorage.
- Background reads the boards from workspace.json. Remove api.backgrounds and the boards service.
- Add yaml 2.9.1. Use the host markdown-it.
- Move 18 plugin test files to tests/unit/features/pm/ and add native tests.
2026-10-29 20:54:29 -07:00
Knotty Wyvern e6deecc092 Make PDF Viewer a native feature
- Move the PDF Viewer plugin into src/lib/features/pdf/ with pdfjs-dist 6.4.299 (minified builds).
- A static pdf document type marks PDF files and opens them as tabs. The first PDF tab loads the module.
- The worker, the character maps, the fonts, and the decoders come from the app. One worker for each tab.
- The toolbar uses IconButton and the shared tooltip, with the new zoom-in, zoom-out, fit-width, and rotate icons.
- Add THIRD_PARTY_NOTICES.md for PDF.js and xterm.
- Update the tests, the menu inventory, the docs, and UI-059.
2026-10-29 19:41:17 -07:00
Knotty Wyvern 833f793244 Make Terminal a native feature
- Move the Terminal plugin into src/lib/features/terminal/ on the host Svelte runtime, with xterm 6.0.0 and addon-fit 0.11.0.
- Buttons, shortcuts, Help rows, and the close guard follow the Terminal switch. The first use loads the module.
- Add Settings → Terminal and the terminal settings section. The first start copies the old runestone.terminal key.
- The 16 ANSI colors come from the --rs-ansi-* tokens.
- Off asks first when a shell runs in any window (pty_running).
- Rust: no pty-data or pty-exit events, an owner check for write, resize, and close, output joined up to 64 KiB or 8 ms, and the sessions of a reloaded page close.
- Remove api.pty, the terminal contribution, TerminalSlot, and the plugin loader of the smoke harness.
- Check only the tested switches in the Background smoke test.
- Update the tests, the menu inventory, the docs, and UI-058.
2026-10-29 19:02:58 -07:00
Knotty Wyvern ab868bbe8e Make Background a native feature
- Background replaces the Background Slideshow plugin and the background image of Appearance. It shows a folder as a slideshow, or one image.
- It is on by default. Its module loads at launch only when a folder or an image is chosen.
- Rust keeps the one folder in background-folder.json. The interface never sends a path. Eight background_* commands replace the six deprecated backgrounds_* commands.
- The first start moves the slideshow folder and settings, and keeps the saved image as the image source.
- One blur worker with a cache, fewer folder reads, and a decode before each fade. The hub writes only the changed properties.
- Remove the deprecated folder methods of api.backgrounds. set, get, and subscribe stay for the Project Management plugin.
- Show the view buttons in the workbench test without text, after UI-056.
- Update the tests, the measurement tool, the docs, and UI-057.
2026-10-29 17:25:17 -07:00
Knotty Wyvern 8c43f598fb Set the version to 0.1.50 2026-10-29 16:20:11 -07:00
Knotty Wyvern d3218b2501 Make Git a native feature with an off switch
- Add the native feature runtime in src/lib/features/: the catalog, the switches, the first-start migration, the loader, and the feature sessions.
- Add Settings → Features and the features settings section.
- Add features_legacy. It reads the old plugin packages and changes nothing.
- Move Git from the plugin into src/lib/features/git/, on host internals.
- Remove api.git, the git contribution key, and the SDK Git types.
- Add pnpm check:features. It fails when a feature module loads at start.
- Update the tests, the menu inventory, the docs, and UI-055.
2026-10-29 15:51:21 -07:00
Knotty Wyvern f019d5d8d4 Move the engine download to the RuneStone releases page
The pin keeps the size and the SHA-256 of engine 0.1.8. Only the URL changes.
2026-10-29 13:08:32 -07:00
Knotty Wyvern 2928bc220b Set the version to 0.1.49 2026-10-29 02:58:51 -07:00
Knotty Wyvern 0bf7d47496 Pin browser engine 0.1.8
The engine ZIP is the release browser-engine-v0.1.8 of the public
RuneStone_Releases repository: 163632595 bytes, SHA-256
d704003bf5fe047b100a3cf0ab84f3321fd272510cf287a229e50d1653d0856b.
2026-10-29 02:49:02 -07:00
Knotty Wyvern d10615d903 Refuse a browser engine pin with another protocol
The pin names the protocol of its engine. An engine of another protocol
would fail at its first start, so the host now refuses its pin before the
download. This also uses the protocol field, which the build reported as
unread.
2026-10-29 01:40:35 -07:00
Knotty Wyvern aebe700366 Ship the browser engine as its own release file
The installer no longer bundles the engine, and the installer script
stops when the bundle names it or when the setup file is over 30 MB.
pnpm build:browser-engine packages the engine, writes a deterministic
ZIP and its record to releases/browser-engine/<version>/, and pins the
ZIP in the host. The installer hooks remove the engine folder that 0.1.48
leaves behind, and uninstall removes the downloaded engine.
2026-10-29 01:25:53 -07:00
Knotty Wyvern 6004e126f7 Download, verify, and install the browser engine
Each host build pins one engine version in src-tauri/browser-engine.json.
The new engine manager downloads that ZIP over HTTPS, makes sure that its
size and SHA-256 match the pin, extracts it safely to the local app data
folder, and marks the installation last. It can also install a local
ZIP, cancel, report progress, and remove the engine. The host refuses an
engine that sends another protocol with its ready event.
2026-10-29 00:57:51 -07:00
Knotty Wyvern 48b8249ba6 Remove the special cases for the old Browser package
A browser request now needs the session token of its window. Disabling
an old runestone.browser package no longer stops the engine. One list of
built-in modules starts the browser and the theme editor, and the plugin
menus skip their tools. The access rules no longer treat the browser ID
in a special way.
2026-10-29 00:48:37 -07:00
Knotty Wyvern 5dc53e4a5e Keep the browser profiles in Local AppData
The browser data moves from the roaming app data folder to the local
app data folder before the engine starts. A failed rename falls back
to a copy. The old folder stays when the copy fails or when the new
folder exists.
2026-10-29 00:38:08 -07:00
Knotty Wyvern 8bc11c801f Set the version to 0.1.48
0.1.48 is the test installer for Phase 5a and Phase 5: the theme
rework, the command palette, the view control, the title bar and
ribbon, keyboard and focus, the layout and Settings fixes, and the
plain fixes. It is for the owner's tests and is not published.
2026-10-28 23:57:19 -07:00
Knotty Wyvern c8cf56b224 Keep global actions visible and follow each platform's title bar
Phase 5-4.

- The workspace button sits at the left end of the header. It shows
  the workspace name and opens the workspace list below it.
- The left ribbon is always present: plugin views at the top, Help and
  Settings at the bottom. The left pane footer is gone.
- Tabs keep 120 pixels and scroll. Fades show tabs out of view, and a
  list button names all tabs, with pinned and unsaved marks. The
  active tab now scrolls into view with its close button.
- A drag area of 120 pixels follows the tabs. In a narrow header, the
  tabs shrink first, and the drag area keeps at least 48 pixels.
- Caption buttons are square, 46 pixels wide, and full height. When the
  pointer rests on maximize, the new window_snap_layouts command opens
  Snap Layouts with Win+Z for the focused window.
- macOS keeps its native traffic lights: tauri.macos.conf.json and the
  runtime window builders use an overlay title bar. Title bars leave
  --rs-titlebar-inset-start free for the traffic lights.
- 3 new catalog rows and 1 removed row, in French, Japanese, and
  Simplified Chinese.
- Docs: UI-050, the user guide, and ui-design.md.

Tests: the new layout/titleBar. Tests that used the left pane footer,
the rounded caption buttons, the 600-pixel theme editor pane, or a
ribbon of no width now follow the new layout.
2026-10-28 20:21:20 -07:00
Knotty Wyvern 1c19da25ba Set the version to 0.1.47
0.1.47 is the test installer for Phase 4: the CodeMirror source view, list nesting, shared menus, the workspace session, reactive documents, and the translation catalog audit. It is for the owner's tests and is not published.
2026-10-28 12:26:11 -07:00
Knotty Wyvern 36a06a9c6b Set the version to 0.1.46
0.1.46 is the test installer for Phase 3: Table Formulas built in, the
plugin runtime changes, the content security policy, and the SDK APIs.
It is for the owner's tests and is not published.
2026-10-28 03:31:39 -07:00
Knotty Wyvern e83bf46268 Cache plugin package hashes, add a content security policy, and limit browser windows
Plugin runtime cost:
- Remove the timed plugin scan. Windows scan at start, on focus, on Refresh, and on plugins-changed.
- Keep one package check for each plugin folder. Read and hash the files again only when the
  entry names, sizes, or modification times change. Enable and load always read all files.
  An asset read checks the SHA-256 hash of its file.
- A changed package still stops and needs a new enable decision. Add tests for the cache,
  for changes that keep the metadata, and for the enable decision.
- Replace the 50 ms wait loops of update and removal with a condition variable. The limit
  stays at 10 seconds. Command names, arguments, and results do not change.

Content security policy:
- Set app.security.csp in tauri.conf.json. Keep Tauri from adding nonces to style-src.
- Add CSP mode to the smoke tests (pnpm smoke --csp). The dev server sends the same policy
  with each HTML page, and the harness fails a test on a policy violation.
- Decode data URLs without fetch in the background frame test.

Capabilities:
- Give browser windows their own capability. They load no installed plugin.
  Add a unit test and a browser window smoke test for the command set.

Document the scans, the hash cache, the policy, and the window capabilities.
2026-10-28 02:01:50 -07:00
Knotty Wyvern a6d6e96d6d Give plugins SDK APIs for terminals, granted folders, and plugin services
Plugins can now do through the SDK what they did with direct native calls.
The SDK checks plugin shutdown, so these APIs can move to an isolated
plugin context later.

- api.pty opens shell sessions. pty_open accepts an optional channel.
  A channel session sends its output as raw bytes to its own webview
  and sends no pty-data or pty-exit events. Without a channel, the
  events stay, so the released Terminal plugin keeps working. The host
  closes the open sessions of a plugin when the plugin stops.
- api.files gives folder grants. The user selects the folder, the
  host keeps the grants of each plugin in its retained data, and the
  plugin uses an opaque grant ID. The host rejects names with folder
  parts, links, and files over the size limit. Sidecar JSON files
  replace the per-image settings commands.
- api.services lets one plugin offer data to another plugin in the
  same window. The host copies arguments and results.
- The folder methods of api.backgrounds are deprecated. They stay for
  released Background Slideshow versions.
- The plugin reference lists the native calls of each plugin and the
  SDK member that replaces each call.
2026-10-28 01:46:55 -07:00
Knotty Wyvern 72671e5d01 Set the version to 0.1.45
0.1.45 is the first installer built with the Phase 2 host changes and the
stock NSIS template with RuneStone hooks. It is a test build for the
owner and is not published.
2026-10-28 00:30:27 -07:00
Knotty Wyvern 5d5ba9e1f7 Keep preferences in one settings file and move tab transfer to the host
Keep the user preferences in settings.json in the app config folder.
WebView storage can be lost, and the host cannot read it. The file has
a schema number, a revision number, and one value for each section:
general, appearance, customThemes, customThemesLegacy, and language.
- settings_read gives all sections, the revision, and a one-time
  notice.
- settings_write replaces one section, writes the file atomically, and
  sends settings-changed to all windows. The limit is 8 MiB.
- settings_migrate writes the first file only when no file exists.
- The host moves a damaged file to settings.corrupt-<seconds>.json,
  starts from the defaults, and reports this one time.

Each window loads the sections before its first render. One store in
src/lib/settings/store.ts replaces the storage listeners. When no file
exists, the window normalizes the old localStorage values and migrates
them. The old keys stay in place for one release. The window layout
and the open tabs stay in localStorage on purpose. The browser preview
keeps all preferences in localStorage.

Keep tab transfer offers in host memory, not in localStorage, because
an offer can hold unsaved text. A window takes an offer once. The host
checks the workspace root and a 120 second expiry. When the receiver
accepts the tab, the host sends tab-transfer-accepted to the source
window only. A refused offer stays open, and the source tab stays open.
A new window and a drop on the tab ribbon use one check.

The smoke harness serves the new commands from one shared state for
each browser context. Tests read saved values from the mock settings
file. Rust, unit, and smoke tests cover the changes.
2026-10-27 23:56:00 -07:00
Knotty Wyvern a0eef01ed0 Move workspace file work off the main thread and delete to the trash
Run the blocking workspace commands on the blocking thread pool.
Tauri runs a synchronous command on the main thread, so a long search
or copy froze every window. Command names, arguments, and results do
not change.

Send each workspace-event only to the windows that have its root open.
The frontend listens with its window label as the target. Do not send
access events, because the frontend ignores them. Drop watchers after
the state lock is released, because a macOS watcher waits for its
thread when it stops.

Fix these defects. Each fix has a Rust test:
- A rename that changes only the letter case works on case-insensitive
  volumes.
- New files publish with a move that never replaces a file: MoveFileExW
  on Windows, renameat2 or renamex_np on Linux and macOS, then a hard
  link, then create_new. exFAT, FAT32, and many network mounts now work.
  The Windows save recovery uses the same move.
- On macOS and Linux, existing names with a colon stay usable. New names
  reject the characters that Windows does not allow, on every platform.
- workspace_read_data_url checks the size before it reads the file.
- workspace_write_bytes uses the atomic writer. Its only caller writes
  new names, so it gets no conflict check.
- Delete and rename act on a link itself, not on its target.

Delete now moves items to the system trash. One file moves without a
confirmation. A folder or several items need one. Shift+Delete and
"Delete permanently" keep the permanent delete with its confirmation.
Windows drives without a Recycle Bin give an error instead of a silent
permanent delete. The smoke test for tree actions now checks this
behavior. The user guide describes it and the new-name rule.
2026-10-27 23:15:14 -07:00
Knotty Wyvern 2448c68abf Move blocking host work off the main thread and fix Git SSH settings
Window close no longer waits on the main thread. The handler revokes
browser sessions and plugin leases with short locks. A cleanup thread
stops terminals, closes browser tabs, and erases plugin review folders.
The browser cleanup sends closeTab without a wait for the reply, and
stops the engine outside the engine lock.

Terminal, plugin, background, and browser commands do their file,
process, and plugin-lock work on blocking workers. Terminal events go
to the window that opened the session. Command names, arguments,
results, and events do not change.

The Git service keeps GIT_SSH, GIT_SSH_COMMAND, GIT_SSH_VARIANT, and a
configured core.sshCommand. It adds its SSH defaults only when the user
has none. It still removes other inherited GIT_* variables.

After the first check, Git status starts 2 processes and an unstaged
diff starts 1. The service finds Git once, checks Git once per run,
caches the repository check per root until the Git metadata changes,
waits on its pipes instead of a 15 ms poll, and locks each root
separately.

Lease errors name the plugin. A profile copy rejects junctions.
2026-10-27 23:08:59 -07:00
Knotty Wyvern 7914942698 Use the stock Tauri NSIS template with RuneStone installer hooks
Remove the 996-line fork of the Tauri 2.11.4 template and the custom
comparator. src-tauri/windows/hooks.nsh now adds the RuneStone behavior
through bundle.windows.nsis.installerHooks:

- RuneStoneGuiInit (MUI_CUSTOMFUNCTION_GUIINIT) runs before the first
  page in interactive and passive setup. It stops a downgrade with exit
  code 2. It makes the stock maintenance page skip itself, so that setup
  never starts the uninstaller for an upgrade or a reinstall.
- The hidden section RuneStoneVersionCheck runs before the Tauri sections
  in all modes. Silent setup shows no pages, so it needs this check.
- NSIS_HOOK_POSTINSTALL writes the release version to DisplayVersion and
  RuneStoneReleaseVersion, and the Windows version to
  RuneStoneWindowsVersion. Installed apps now show 0.1.23a, not 0.1.23+1.

Setup compares the four-number Windows encoding with ${VersionCompare}.
An unknown installed version stops setup.

buildInstaller.mjs gives the toolchain version to Tauri through a
--config override. It writes tauri.conf.json, Cargo.toml, and Cargo.lock
only after the installer is complete. package.json changes during the
build because the Settings dialog imports its version. A failed build
restores it. Add --dry-run, which prints the plan and changes no file.

The tests compile NSIS programs with the real makensis. They simulate the
installed version in a test-only HKCU key and check /S, /P, /UPDATE, and
interactive setup. A drift check reads the template from the installed
Tauri CLI. The first real installer needs the installer checks in
docs/builds.md.
2026-10-27 22:54:00 -07:00
Knotty Wyvern bd46f3a189 Add a shared error type and shared file helpers to the Rust host
Replace the three error styles with one Error type and one Result alias in
error.rs. The error crosses IPC as the same plain string as before. The
message text does not change.

Move the shared file mechanics to fsutil.rs. These are the reserved-name
check, the link and junction check, the limited reads, and the atomic
writes. Each module keeps its own path rules, limits, and messages. The
plugin settings writer now flushes its file to disk before the rename.

Remove the current_root_path and list_entries wrappers and an unused mime
value. Use named windows-sys constants for the process, file, drive, and
error codes.

Add a test that compares the command lists in lib.rs, build.rs, and the
capability files. The settings capability must be a subset of the full list.

In Cargo.toml, set the author, keep only the rlib crate type, and remove
the unused thiserror dependency. Remove panic = "abort" from the release
profile. A panic on a worker thread then stops only that thread. It does
not stop the editor with unsaved buffers.
2026-10-27 22:41:11 -07:00
Knotty Wyvern 90d1940c73 Make the checks pass on a fresh clone
- build.rs creates the empty browser-engine folder that tauri-build
  requires, so cargo test runs before the browser runtime is staged.
- The Table Formulas tests skip with a reason when the package is not
  built. Before, the missing module failed two whole test files.
- The installer test accepts CRLF checkouts and skips with a reason
  when the NSIS compiler is missing.
- hostTodo.spec.mjs never ran because of its extension. Its two valid
  background tests move to appearance.spec.ts with current defaults.
  The third test repeated an existing export test.
- Remove tsconfig.plugins.json. It checked the plugins/ folder, which
  moved to separate repositories in 0.1.7.
2026-10-27 19:41:08 -07:00
Knotty Wyvern 562ef87d24 Add workspace links, restore tabs, and update project guides 2026-10-21 21:05:48 -07:00
Knotty Wyvern 7c497ba569 Prepare 0.1.42 macOS Apple silicon release 2026-10-21 14:24:47 -07:00
Knotty Wyvern 42dd0fa711 Improve editor, plugin updates, and window transfers for 0.1.41 2026-10-21 10:42:44 -07:00
Knotty Wyvern 68e86ab6eb Add interface languages and improve themes and workspace controls for 0.1.36 2026-10-15 10:55:59 -07:00
kwyvern 30cbfeedd6 Prepare Linux builds and validate native desktop runtime 2026-10-14 18:06:22 -07:00
Knotty Wyvern edef2520af Update editor, themes, menus, backgrounds, and release tooling 2026-10-14 16:19:51 -07:00
Knotty Wyvern f6eaa52949 Update the browser, editor, settings, and installer 2026-10-12 14:46:21 -07:00
Knotty Wyvern 909894b9c8 Update editor, workspace, Git services, appearance, and project guides 2026-10-11 09:41:16 -07:00
Knotty Wyvern a8b1defb9d Add completion, browser integration, and workspace improvements 2026-10-07 11:25:17 -07:00
Knotty Wyvern 5d0a4a24f9 Release RuneStone 0.1.7 with plugin documents and shared menus 2026-10-06 09:29:09 -07:00
Knotty Wyvern 6b7af0d527 Release RuneStone 0.1.4 with installable plugins and settings 2026-10-04 15:05:51 -07:00
Knotty Wyvern 0268c5c9f0 Release RuneStone 0.1.3 and expand plugin plans 2026-10-03 04:23:45 -07:00
Knotty Wyvern 43106ed9c7 Improve workspace navigation, search, and tab actions 2026-09-29 07:48:24 -07:00
Knotty Wyvern bdc15e952d Initial RuneStone project 2026-09-26 01:25:42 -07:00