@@ -5,22 +5,12 @@ PyWry's native window mode runs on [Tauri](https://tauri.app) via the [PyTauri](
55## How It Works
66
77``` mermaid
8- sequenceDiagram
9- participant App as PyWry (Python)
10- participant RT as runtime.py
11- participant Sub as __main__.py (subprocess)
12- participant Tauri as Tauri Engine
13-
14- App->>RT: set_tauri_plugins([...])
15- Note over App,RT: ["dialog", "fs", "notification"]
16- RT->>Sub: PYWRY_TAURI_PLUGINS env var
17- Note over RT,Sub: "dialog,fs,notification"
18- Sub->>Sub: _load_plugins()
19- Note right of Sub: Check flags & import modules
20- Sub->>Tauri: builder.build(plugins=[...])
21- Note over Sub,Tauri: dialog.init(), fs.init(), notification.init()
22- Tauri->>Tauri: Register plugins
23- Note right of Tauri: Grant capabilities
8+ flowchart LR
9+ A["PyWry (Python)"] -->|"set_tauri_plugins()"| B["runtime.py"]
10+ B -->|"env PYWRY_TAURI_PLUGINS"| C["__main__.py\n(subprocess)"]
11+ C -->|"_load_plugins()\ncheck flags, import modules"| C
12+ C -->|"builder.build(plugins=[…])"| D["Tauri Engine"]
13+ D -->|"Register plugins\n+ grant capabilities"| D
2414```
2515
26161 . You list the plugins you want in config (Python, TOML, or env var).
0 commit comments