Repository navigation
Releases
v0.7.0
0.7.0
The MCP server becomes a library, connects in one command, and can be served from inside an application, including over ACP.
- One step for Claude Code and Codex:
claude mcp add tauri-hasgard -- npx -y tauri-hasgard mcp. The CLI is now on npm astauri-hasgard, with prebuilt binaries for macOS Apple Silicon, Windows x64 and Linux x64. Homebrew, Scoop andcargo installare unchanged. - The server is listed in the official MCP Registry as
io.github.nyssance/tauri-hasgard. - New crate
tauri-hasgard-mcp: the Hasgard tools as anrmcpServerHandler.tauri-hasgard mcpis this library over stdio, with the same tools and behavior as 0.6.10. - New plugin feature
mcp:Automation::mcp_serverserves the tools from the application's own process, with no endpoint and no CLI. - MCP over ACP: an application that starts an agent over ACP attaches the server to the session through the official
agent-client-protocol-rmcpbridge, and the agent's user configures nothing. MCP over ACP is a draft behind unstable features of the ACP SDK; Hasgard itself depends only onrmcp. HasgardMcpServer::with_dangerous_toolssets theeval,ipcanddropgate per server.
Validated by the existing Rust and TypeScript suites, a new in-process server test, and an end-to-end test in which an ACP agent calls a Hasgard tool through mcp/message. The npm launcher was installed from locally built packages and started the MCP server on macOS; the Windows and Linux packages are assembled by the same script from the release archives. The CLI commands, the JSON-RPC protocol, the Playwright client API and Wry and CEF behavior are unchanged from 0.6.10.
Full Changelog: v0.6.10...v0.7.0
v0.6.10
0.6.10
CEF gains console, network and route support, and the documentation is rewritten.
- CEF
logsreads the page's main-world console through CDP, including output written before the first automation request. Object arguments are one level deep. - CEF
networklists completedfetchandXMLHttpRequestexchanges from the CDP Network domain. - CEF
routefulfills or abortsfetchandXMLHttpRequestrequests through the CDP Fetch domain, with the Wry rule semantics. Tauri IPC is never routed. - The README now leads with the MCP setup for Claude Code and Codex. The protocol reference lists every method, error code and environment variable, and documents that the MCP
eval,ipcanddroptools appear only withTAURI_HASGARD_MCP_ENABLE_DANGEROUS_TOOLS=1. - Troubleshooting no longer claims that release builds disable the plugin; registration is the only switch.
CEF JavaScript dialog interception and heap snapshots remain unimplemented and return an error. Version 0.6.9 was published for the plugin crate only; this release realigns the plugin, CLI and npm package. Wry behavior and the Playwright client API are unchanged from 0.6.8.
Full Changelog: v0.6.8...v0.6.10
v0.6.8
0.6.8
CEF automation reaches real application commands and captures what the compositor shows.
- CEF
ipcnow runs through the page's own Tauri bridge in the top frame's main world, so it returns real command results, routes per window, and honors capabilities. Other automation stays in the isolated world. - CEF
screenshotasks the page only where the area is and takes the pixels throughPage.captureScreenshot. Cross-origin images, embedded content and effects appear as they are on screen, for the document and for one element alike. Other runtimes keep redrawing the document in the page. - A page holding an image it cannot read back, such as a cross-origin image without CORS, no longer fails the whole capture; that image is drawn empty.
download-cefis updated to 3.0.1. Version 3.0.0 fails to build because the CEF index exceeds its response limit.
Validated locally on macOS on the secondary display: the CEF fixture's 12 native checks pass and the Wry fixture passes its 75 native tests, one of them (a CLI native key press) only on rerun. Wry behavior, the CLI and the Playwright client API are unchanged from 0.6.7.
Full Changelog: v0.6.7...v0.6.8
v0.6.7
0.6.7
Let macOS native runs share the machine with the person using it: TAURI_HASGARD_PRESS=window delivers press to the target window instead of the system input layer.
pressposts OS keyboard events by default, which only reach the frontmost application. Every press therefore activates the application first, and a run fails withfailed to focus target windowwhen another application takes the foreground.- With
TAURI_HASGARD_PRESS=window(macOS, Wry) the same key events are handed to the target window on the main thread, inAppKit's own order: window key equivalents, the main menu, then the first responder. The application is never activated. The target window is made key among the application's own windows and its text input context made current, so typed text lands in the requested window. - Menu shortcuts, trusted DOM key events, paired modifier events and
completionkeep working. Keys are looked up on the current keyboard layout. - System-wide shortcuts are registered below
AppKitand are not triggered in this mode. CEF rejectswindow. An unknown value fails the press. The default,system, is unchanged.
Validated locally on macOS with another application repeatedly taking the foreground during the run: the Wry fixture's 75 native tests pass in window mode, and a consuming application's 47-test native suite passed three times in window mode where the default mode failed one of two runs. The fixture also passes 75 tests in the default mode. Windows behavior is unchanged and not affected by the variable.
Full Changelog: v0.6.6...v0.6.7
v0.6.6
0.6.6
Complete the CEF release across distribution channels, including the Windows fixture resource fix and a required Windows Rust release gate.
Add opt-in CEF automation for Tauri 3, keeping the shared CLI, MCP and Playwright protocol.
- Enable the plugin's
ceffeature and registerinit_cef()with the CEFDynRuntime. Existing Wry apps keepinit(). - Route native child webviews by their labels.
windowsincludeswindow_labelto identify the native host. - Run DOM operations in an isolated CDP world without an external debugging port or remote-page Tauri IPC grants. Support native keyboard input, navigation and same-label child recreation.
- Capture CEF viewport screenshots on macOS separately from whole-window screenshots. Native child webviews still occlude host HTML overlays; this release does not implement SurfaceEmbed.
- Explicitly reject CEF console/network observation, routing, JavaScript dialog interception, IPC calls and heap snapshots until those integrations exist.
- Isolate native fixture profiles and use test-only secret storage, avoiding macOS keychain prompts after rebuilds.
Validated locally on macOS: two consecutive CEF native runs, 370 Rust workspace tests (one ignored), 131 client tests, 138 bridge tests, type checking, and a YiJoy smoke test with a remote child webview. Windows CEF behavior is not yet validated. Existing Wry native tests remain release gates on macOS and Windows.
Requires Tauri 3 alpha.6 and CEF runtime alpha.7 for CEF support. Tauri 2 applications should use Hasgard 0.5.x.
Full Changelog: v0.6.5...v0.6.6
v0.6.4
0.6.4
Add JavaScript heap snapshots of a webview.
heap.snapshotis available as CLIheap-snapshot --output <path>, MCPheap_snapshot, and Playwrightwindow.heapSnapshot(path). The engine collects garbage first, so the file holds live objects only, and the result reports itsformat.- macOS connects WebKit's in-process inspector without opening a window and writes JavaScriptCore's inspector JSON (
jsc). The inspector is detached afterwards, and repeated snapshots in one session work. - Windows uses WebView2's DevTools protocol (
HeapProfiler.takeHeapSnapshot) and writes a V8.heapsnapshot(v8).
Validated locally on macOS: 75 native E2E tests (including two consecutive heap snapshots), 131 client unit tests, and the Rust workspace tests. The Windows path was checked by cross-target clippy only; native Windows runs in the release workflow.
Requires Tauri 3 + Wry. Tauri 2 applications should use Hasgard 0.5.x. macOS supports Apple Silicon only.
Full Changelog: v0.6.3...v0.6.4
v0.6.3
0.6.3
Fix native keyboard completion and multi-window screenshots, and improve the example debugging app.
- WebKit may deliver keyup before keydown. Hasgard now accepts either order while requiring both trusted events for every key, including modifiers.
- Native screenshots preserve the requested window label across the Playwright client and plugin. Capturing a settings window no longer captures the main window instead.
- The fixture uses shared lightweight styling and a compact toolbar. It opens on a secondary display by default and fails if none is available; explicitly set
TAURI_HASGARD_DISPLAYto choose another display. - Setup, Playwright, and troubleshooting tutorials are shorter and complete. Rust dependencies and formatting are standardized.
Validated locally on macOS: 74 native E2E tests, three 200-round multi-window keyboard stress cases, 130 client unit tests, 138 bridge tests, and the Rust workspace tests. Cross-platform checks run in the release workflow.
Requires Tauri 3 + Wry. Tauri 2 applications should use Hasgard 0.5.x. CLI binaries: macOS Apple Silicon, Windows x64, and Linux x64.
Full Changelog: v0.6.2...v0.6.3
v0.6.2
0.6.2
Keep automated runs off the developer's main screen: TAURI_HASGARD_DISPLAY places every new window on one display.
- The value is
secondary(the first display that is not the primary one), a display index from 0, or a display name, case-insensitive. - The plugin moves each new window by the target display's own scale factor, shrinks it to fit inside that display, and shows it. Applications that create their windows hidden in test builds therefore never flash on the primary display. Unset, windows stay where the application put them.
Requires Tauri 3 with Wry. Tauri 2 applications should remain on the 0.5.x line.
CEF is unsupported. Published to crates.io, npm latest, Homebrew and Scoop. macOS supports Apple Silicon only.
Full Changelog: v0.6.1...v0.6.2
v0.6.1
0.6.1
Capture what WebKit shows: screenshot_native renders the target webview through WKWebView takeSnapshot: by default.
- The DOM-based
screenshotdraws scrolled containers and virtualized lists at scroll offset zero, and the window-level backends need screen-recording permission (without itCGWindowListomits WebKit's scrolled tiles). The new backend asks WebKit for its own rendered pixels: scrolled content captures as shown, no permission prompt,backend: "wkwebview",tcc_denied: false,scale_factorfrom the window's backing scale. screenshot_nativewithoutwindow_iduses it for the scoped window; withwindow_idthe existing window capture is unchanged. The CLI and MCP tool omit the id by default and the CLI retries with a resolved id against plugins older than 0.6.1.- The Playwright
screenshotNativehelper no longer resolves a native id unless one is passed.
First stable release of the Tauri 3 Wry line; the 0.6.0 alphas are superseded. Requires Tauri 3 with Wry. Tauri 2 applications should remain on the 0.5.x line.
CEF is unsupported. Published to crates.io, npm latest, Homebrew and Scoop. macOS supports Apple Silicon only.
Full Changelog: v0.5.0...v0.6.1
v0.6.0-alpha.5
0.6.0-alpha.5
Tighten the Tauri 3 Wry release line: smaller CLI binaries, cleaner published packages, and a lint-clean workspace.
- Build CLI release binaries with fat LTO, one codegen unit, stripped symbols, and abort-on-panic; the macOS Apple Silicon binary shrinks from 7.0 MB to 3.0 MB.
- Declare
rust-version = "1.95"for every crate to match Tauri 3, exclude bridge unit tests from the published plugin crate, and fix the rustdoc warning in the CLIselecthelp text. - Stop shipping test declaration files in the npm package and require Node 24 or later.
- Clear every
bun lintwarning and fail CI on new ones; type the MCP stdio E2E client and attachcauseto launch-cleanup and top-level-await errors. - Run native E2E and release builds on macOS 26 and Ubuntu 26.04 runners, pass
--lockedand--frozen-lockfilein every CI job, and group Dependabot updates per ecosystem. - Point the fixture Tauri config schema at 3.0.0-alpha.5 and drop TypeScript options that TypeScript 7 already implies.
Local validation includes 73 passing macOS native E2E tests covering real windows, input, dialogs, screenshots, and process cleanup. Release publication also requires the cross-platform native E2E workflow to pass.
Requires Tauri 3 with Wry. Tauri 2 applications should remain on the 0.5.x line.
CEF is unsupported. This prerelease uses the npm next tag; stable Homebrew and Scoop channels remain unchanged. macOS supports Apple Silicon only.
Full Changelog: v0.6.0-alpha.4...v0.6.0-alpha.5