tauri2-guide/base.md
Z User 6350ab78cd trim base.md to minimal agent preamble
Removed section-level topic tables, search keywords, and supplementary
descriptions. Keeps only: rules, v1-vs-v2 table, and flat URL list with
one-line descriptions. Compact enough to inline in a prompt.
2026-05-30 21:12:44 +00:00

2.4 KiB

Tauri 2.0 Reference — Agent Index

Rules: All code is Tauri 2.0 only (no v1 patterns). You cannot compile in a sandbox — verify via logic and these docs. Plugins need 4 steps: Rust crate, .plugin() registration, npm package, capabilities permissions.

v1 vs v2

v1 (wrong) v2 (correct)
tauri::Window / WindowBuilder / WindowUrl tauri::WebviewWindow / WebviewWindowBuilder / WebviewUrl
get_window() get_webview_window()
@tauri-apps/api/tauri @tauri-apps/api/core
@tauri-apps/api/window @tauri-apps/api/webviewWindow
@tauri-apps/api/<name> @tauri-apps/plugin-<name>
build.distDir build.frontendDist
allowlist in config Capabilities + Permissions (ACL)
tauri::api::* Moved to plugins

Docs

Core architecture, config, commands, IPC: https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-guide/01-core-architecture-config-commands-ipc.md

Windows, plugins, WebSocket, state, migration: https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-guide/02-windows-plugins-websocket-state-migration.md

System prompt + common agent prompts (scaffold, plugin, command, state, events, multi-window): https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-guide/01-system-prompt-and-common-prompts.md

Advanced prompts, verification checklist, v1→v2 API map, debug prompts: https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-guide/02-advanced-prompts-checklist-migration.md

Build, config, permission, plugin compile errors: https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-guide/01-build-config-permission-plugin-errors.md

Runtime, platform, mobile errors + top 25 common: https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-guide/02-runtime-platform-mobile-errors.md

Cheat sheet (commands, config, IPC, WebSocket): https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-docs/cheatsheet.md

WebSocket server + client + injection deep-dive: https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-docs/ws_server_client_inject_guide.md

Official docs links (migration, security, config): https://git.client.guacamolebox.net/butterfly/tauri2-vin-ws-temp/raw/branch/main/tauri2-docs/tauri2-links.md