Compare commits

...
4 Commits
Author SHA1 Message Date
1xDed c560f8ae1b chore(dev): optional MCP bridge for UI automation
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Enable with: pnpm tauri dev -- --features mcp-bridge (debug only).
2026-11-27 03:11:27 +03:00
1xDed cf5fb43377 fix: stop library cards from jumping while scrolling
- stable measureElement ref (the inline ref re-attached on every render and
  re-triggered measurement, causing continuous row re-layout)
- reactive scrollMargin instead of reading offsetTop once at mount
- size rows from the real card aspect ratio (portrait vs square) and text block
- remove duplicated row padding/gap
2026-11-27 03:11:23 +03:00
1xDed 5a9b3ad273 fix: artwork fallbacks everywhere and hero layout
- resolveItemImage(): try the item's own images, then series/album/parent artwork
- hero sidebar tickers fall back from Thumb to Backdrop/Primary instead of an icon
- hero background falls back to the poster when no backdrop exists
- stop stacked slides when the carousel advances (drop leaking AnimatePresence)
- keep the hero title/logo inside the slide on narrow windows
- sensible slides-per-view on tablet/mobile widths
2026-11-27 03:11:17 +03:00
1xDed 1c499f42ec feat: custom in-app titlebar with overlay window chrome
- macOS: titleBarStyle Overlay + hiddenTitle, traffic lights aligned with the header
- header itself is the titlebar: draggable regions, no native glass strip
- solid (not blurred) header surfaces once content scrolls
- keep traffic lights clear of controls on library/login/settings pages
2026-11-27 03:11:09 +03:00
25 changed files with 863 additions and 193 deletions

No files matched your search

+398 -91
View File
@@ -73,11 +73,11 @@ dependencies = [
"clipboard-win",
"image",
"log",
"objc2",
"objc2-app-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-foundation",
"objc2-foundation 0.3.2",
"parking_lot",
"percent-encoding",
"windows-sys 0.61.2",
@@ -320,6 +320,7 @@ dependencies = [
"tauri-plugin-global-shortcut",
"tauri-plugin-localhost",
"tauri-plugin-log",
"tauri-plugin-mcp-bridge",
"tauri-plugin-notification",
"tauri-plugin-process",
"tauri-plugin-shell",
@@ -338,13 +339,22 @@ dependencies = [
"generic-array",
]
[[package]]
name = "block2"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"
dependencies = [
"objc2 0.5.3",
]
[[package]]
name = "block2"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
dependencies = [
"objc2",
"objc2 0.6.5",
]
[[package]]
@@ -794,6 +804,12 @@ dependencies = [
"syn 3.0.9",
]
[[package]]
name = "data-encoding"
version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"
[[package]]
name = "dbus"
version = "0.9.12"
@@ -904,9 +920,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
dependencies = [
"bitflags 2.13.2",
"block2",
"block2 0.6.2",
"libc",
"objc2",
"objc2 0.6.5",
]
[[package]]
@@ -1604,8 +1620,8 @@ checksum = "8c386b0a4a70cb2d39fffd74480f985b6f0bfbcb934b6a6b6b7e630e448f242e"
dependencies = [
"crossbeam-channel",
"keyboard-types 0.7.0",
"objc2",
"objc2-app-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"once_cell",
"serde",
"thiserror 2.0.21",
@@ -2005,6 +2021,8 @@ dependencies = [
"num-traits",
"png 0.18.1",
"tiff",
"zune-core",
"zune-jpeg",
]
[[package]]
@@ -2380,8 +2398,8 @@ checksum = "fd604973958ddcc11b561193c0fb96ba146506ef2f231ef2e7c35fd2cbc9beca"
dependencies = [
"cc",
"log",
"objc2",
"objc2-foundation",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
"time",
"uuid",
]
@@ -2475,10 +2493,10 @@ dependencies = [
"dpi",
"gtk",
"keyboard-types 0.8.3",
"objc2",
"objc2-app-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-foundation",
"objc2-foundation 0.3.2",
"once_cell",
"png 0.18.1",
"serde",
@@ -2609,6 +2627,22 @@ dependencies = [
"libc",
]
[[package]]
name = "objc-sys"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
[[package]]
name = "objc2"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b"
dependencies = [
"objc-sys",
"objc2-encode",
]
[[package]]
name = "objc2"
version = "0.6.5"
@@ -2619,6 +2653,22 @@ dependencies = [
"objc2-exception-helper",
]
[[package]]
name = "objc2-app-kit"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"libc",
"objc2 0.5.3",
"objc2-core-data 0.2.2",
"objc2-core-image 0.2.2",
"objc2-foundation 0.2.2",
"objc2-quartz-core 0.2.2",
]
[[package]]
name = "objc2-app-kit"
version = "0.3.2"
@@ -2626,12 +2676,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
dependencies = [
"bitflags 2.13.2",
"block2",
"objc2",
"block2 0.6.2",
"objc2 0.6.5",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-foundation",
"objc2-quartz-core",
"objc2-foundation 0.3.2",
"objc2-quartz-core 0.3.2",
]
[[package]]
name = "objc2-cloud-kit"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"objc2 0.5.3",
"objc2-core-location 0.2.2",
"objc2-foundation 0.2.2",
]
[[package]]
@@ -2641,8 +2704,31 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
dependencies = [
"bitflags 2.13.2",
"objc2",
"objc2-foundation",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-contacts"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"
dependencies = [
"block2 0.5.1",
"objc2 0.5.3",
"objc2-foundation 0.2.2",
]
[[package]]
name = "objc2-core-data"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"objc2 0.5.3",
"objc2-foundation 0.2.2",
]
[[package]]
@@ -2651,8 +2737,8 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
dependencies = [
"objc2",
"objc2-foundation",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
]
[[package]]
@@ -2663,7 +2749,7 @@ checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
dependencies = [
"bitflags 2.13.2",
"dispatch2",
"objc2",
"objc2 0.6.5",
]
[[package]]
@@ -2674,19 +2760,43 @@ checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
dependencies = [
"bitflags 2.13.2",
"dispatch2",
"objc2",
"objc2 0.6.5",
"objc2-core-foundation",
"objc2-io-surface",
]
[[package]]
name = "objc2-core-image"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
dependencies = [
"block2 0.5.1",
"objc2 0.5.3",
"objc2-foundation 0.2.2",
"objc2-metal",
]
[[package]]
name = "objc2-core-image"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
dependencies = [
"objc2",
"objc2-foundation",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-core-location"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781"
dependencies = [
"block2 0.5.1",
"objc2 0.5.3",
"objc2-contacts",
"objc2-foundation 0.2.2",
]
[[package]]
@@ -2695,8 +2805,8 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
dependencies = [
"objc2",
"objc2-foundation",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
]
[[package]]
@@ -2706,7 +2816,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
dependencies = [
"bitflags 2.13.2",
"objc2",
"objc2 0.6.5",
"objc2-core-foundation",
"objc2-core-graphics",
]
@@ -2726,6 +2836,18 @@ dependencies = [
"cc",
]
[[package]]
name = "objc2-foundation"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"libc",
"objc2 0.5.3",
]
[[package]]
name = "objc2-foundation"
version = "0.3.2"
@@ -2733,9 +2855,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
dependencies = [
"bitflags 2.13.2",
"block2",
"block2 0.6.2",
"libc",
"objc2",
"objc2 0.6.5",
"objc2-core-foundation",
]
@@ -2746,10 +2868,34 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
dependencies = [
"bitflags 2.13.2",
"objc2",
"objc2 0.6.5",
"objc2-core-foundation",
]
[[package]]
name = "objc2-link-presentation"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"
dependencies = [
"block2 0.5.1",
"objc2 0.5.3",
"objc2-app-kit 0.2.2",
"objc2-foundation 0.2.2",
]
[[package]]
name = "objc2-metal"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"objc2 0.5.3",
"objc2-foundation 0.2.2",
]
[[package]]
name = "objc2-osa-kit"
version = "0.3.2"
@@ -2757,9 +2903,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f112d1746737b0da274ef79a23aac283376f335f4095a083a267a082f21db0c0"
dependencies = [
"bitflags 2.13.2",
"objc2",
"objc2-app-kit",
"objc2-foundation",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-quartz-core"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"objc2 0.5.3",
"objc2-foundation 0.2.2",
"objc2-metal",
]
[[package]]
@@ -2769,9 +2928,40 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
dependencies = [
"bitflags 2.13.2",
"objc2",
"objc2 0.6.5",
"objc2-core-foundation",
"objc2-foundation",
"objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-symbols"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"
dependencies = [
"objc2 0.5.3",
"objc2-foundation 0.2.2",
]
[[package]]
name = "objc2-ui-kit"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"objc2 0.5.3",
"objc2-cloud-kit 0.2.2",
"objc2-core-data 0.2.2",
"objc2-core-image 0.2.2",
"objc2-core-location 0.2.2",
"objc2-foundation 0.2.2",
"objc2-link-presentation",
"objc2-quartz-core 0.2.2",
"objc2-symbols",
"objc2-uniform-type-identifiers",
"objc2-user-notifications 0.2.2",
]
[[package]]
@@ -2781,18 +2971,42 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
dependencies = [
"bitflags 2.13.2",
"block2",
"objc2",
"objc2-cloud-kit",
"objc2-core-data",
"block2 0.6.2",
"objc2 0.6.5",
"objc2-cloud-kit 0.3.2",
"objc2-core-data 0.3.2",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-core-image",
"objc2-core-location",
"objc2-core-image 0.3.2",
"objc2-core-location 0.3.2",
"objc2-core-text",
"objc2-foundation",
"objc2-quartz-core",
"objc2-user-notifications",
"objc2-foundation 0.3.2",
"objc2-quartz-core 0.3.2",
"objc2-user-notifications 0.3.2",
]
[[package]]
name = "objc2-uniform-type-identifiers"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"
dependencies = [
"block2 0.5.1",
"objc2 0.5.3",
"objc2-foundation 0.2.2",
]
[[package]]
name = "objc2-user-notifications"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"objc2 0.5.3",
"objc2-core-location 0.2.2",
"objc2-foundation 0.2.2",
]
[[package]]
@@ -2801,8 +3015,21 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"
dependencies = [
"objc2",
"objc2-foundation",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
]
[[package]]
name = "objc2-web-kit"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68bc69301064cebefc6c4c90ce9cba69225239e4b8ff99d445a2b5563797da65"
dependencies = [
"bitflags 2.13.2",
"block2 0.5.1",
"objc2 0.5.3",
"objc2-app-kit 0.2.2",
"objc2-foundation 0.2.2",
]
[[package]]
@@ -2812,11 +3039,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
dependencies = [
"bitflags 2.13.2",
"block2",
"objc2",
"objc2-app-kit",
"block2 0.6.2",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-foundation",
"objc2-foundation 0.3.2",
]
[[package]]
@@ -2874,8 +3101,8 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"
dependencies = [
"objc2",
"objc2-foundation",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
"objc2-osa-kit",
"serde",
"serde_json",
@@ -3561,17 +3788,17 @@ version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a15ad77d9e70a92437d8f74c35d99b4e4691128df018833e99f90bcd36152672"
dependencies = [
"block2",
"block2 0.6.2",
"dispatch2",
"glib-sys",
"gobject-sys",
"gtk-sys",
"js-sys",
"log",
"objc2",
"objc2-app-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-foundation",
"objc2-foundation 0.3.2",
"raw-window-handle",
"wasm-bindgen",
"wasm-bindgen-futures",
@@ -4005,6 +4232,17 @@ dependencies = [
"stable_deref_trait",
]
[[package]]
name = "sha1"
version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"
dependencies = [
"cfg-if",
"cpufeatures 0.2.17",
"digest",
]
[[package]]
name = "sha2"
version = "0.10.9"
@@ -4101,11 +4339,11 @@ dependencies = [
"bytemuck",
"js-sys",
"ndk",
"objc2",
"objc2 0.6.5",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-foundation",
"objc2-quartz-core",
"objc2-foundation 0.3.2",
"objc2-quartz-core 0.3.2",
"raw-window-handle",
"redox_syscall",
"tracing",
@@ -4292,7 +4530,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f37f381f4e048e6cdf038b5705f8cf14ad108279d46eb968140a7b291aba9400"
dependencies = [
"bitflags 2.13.2",
"block2",
"block2 0.6.2",
"core-foundation 0.10.1",
"core-graphics",
"crossbeam-channel",
@@ -4309,10 +4547,10 @@ dependencies = [
"ndk",
"ndk-context",
"ndk-sys",
"objc2",
"objc2-app-kit",
"objc2-foundation",
"objc2-ui-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-foundation 0.3.2",
"objc2-ui-kit 0.3.2",
"parking_lot",
"percent-encoding",
"raw-window-handle",
@@ -4375,11 +4613,11 @@ dependencies = [
"log",
"mime",
"muda",
"objc2",
"objc2-app-kit",
"objc2-foundation",
"objc2-ui-kit",
"objc2-web-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-foundation 0.3.2",
"objc2-ui-kit 0.3.2",
"objc2-web-kit 0.3.2",
"percent-encoding",
"plist",
"raw-window-handle",
@@ -4527,7 +4765,7 @@ dependencies = [
"dunce",
"glob",
"log",
"objc2-foundation",
"objc2-foundation 0.3.2",
"percent-encoding",
"schemars 0.8.22",
"serde",
@@ -4578,8 +4816,8 @@ dependencies = [
"android_logger",
"fern",
"log",
"objc2",
"objc2-foundation",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
"serde",
"serde_json",
"serde_repr",
@@ -4590,6 +4828,38 @@ dependencies = [
"time",
]
[[package]]
name = "tauri-plugin-mcp-bridge"
version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aab4a85c370385dd0f7384855a75d480936d6c1f8a489fadd9fb878d4f0ef4b2"
dependencies = [
"base64 0.22.1",
"block2 0.5.1",
"cairo-rs",
"futures-util",
"gio",
"image",
"jni 0.21.1",
"objc2 0.5.3",
"objc2-app-kit 0.2.2",
"objc2-foundation 0.2.2",
"objc2-ui-kit 0.2.2",
"objc2-web-kit 0.2.2",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
"thiserror 1.0.69",
"tokio",
"tokio-tungstenite",
"uuid",
"webkit2gtk",
"webview2-com",
"windows",
"windows-core",
]
[[package]]
name = "tauri-plugin-notification"
version = "2.7.0"
@@ -4735,9 +5005,9 @@ dependencies = [
"gtk",
"http",
"jni 0.21.1",
"objc2",
"objc2-ui-kit",
"objc2-web-kit",
"objc2 0.6.5",
"objc2-ui-kit 0.3.2",
"objc2-web-kit 0.3.2",
"raw-window-handle",
"serde",
"serde_json",
@@ -4759,8 +5029,8 @@ dependencies = [
"http",
"jni 0.21.1",
"log",
"objc2",
"objc2-app-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"once_cell",
"percent-encoding",
"raw-window-handle",
@@ -4980,7 +5250,9 @@ dependencies = [
"bytes",
"libc",
"mio",
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"socket2",
"tokio-macros",
"windows-sys 0.61.2",
@@ -5007,6 +5279,18 @@ dependencies = [
"tokio",
]
[[package]]
name = "tokio-tungstenite"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857"
dependencies = [
"futures-util",
"log",
"tokio",
"tungstenite",
]
[[package]]
name = "tokio-util"
version = "0.7.20"
@@ -5203,11 +5487,11 @@ dependencies = [
"dirs",
"libappindicator",
"muda",
"objc2",
"objc2-app-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-core-graphics",
"objc2-foundation",
"objc2-foundation 0.3.2",
"once_cell",
"png 0.18.1",
"serde",
@@ -5232,6 +5516,23 @@ version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
[[package]]
name = "tungstenite"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442"
dependencies = [
"bytes",
"data-encoding",
"http",
"httparse",
"log",
"rand 0.9.5",
"sha1",
"thiserror 2.0.21",
"utf-8",
]
[[package]]
name = "typed-path"
version = "0.12.4"
@@ -5304,6 +5605,12 @@ dependencies = [
"url",
]
[[package]]
name = "utf-8"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
[[package]]
name = "utf8_iter"
version = "1.0.4"
@@ -5711,11 +6018,11 @@ version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "111e51caca442cafd9bab396628ac4d814880eaea4e63dfd76a12e9f342b5580"
dependencies = [
"objc2",
"objc2-app-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-foundation",
"objc2-quartz-core",
"objc2-foundation 0.3.2",
"objc2-quartz-core 0.3.2",
"raw-window-handle",
"windows-sys 0.61.2",
"windows-version",
@@ -6147,7 +6454,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a819957a01b3119af85e638a38d242af76dbc87d130dca67bfd0441072e21ff0"
dependencies = [
"base64 0.22.1",
"block2",
"block2 0.6.2",
"cookie",
"crossbeam-channel",
"dirs",
@@ -6161,12 +6468,12 @@ dependencies = [
"jni 0.21.1",
"libc",
"ndk",
"objc2",
"objc2-app-kit",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
"objc2-core-foundation",
"objc2-foundation",
"objc2-ui-kit",
"objc2-web-kit",
"objc2-foundation 0.3.2",
"objc2-ui-kit 0.3.2",
"objc2-web-kit 0.3.2",
"once_cell",
"percent-encoding",
"raw-window-handle",
+3
View File
@@ -30,11 +30,14 @@ tauri-plugin-notification = "2.0.0-rc.1"
tauri-plugin-upload = "2.0.0"
tauri-plugin-dialog = "2.0.0"
tauri-plugin-shell = "2.3.5"
tauri-plugin-mcp-bridge = { version = "0.13.2", optional = true }
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = [ "custom-protocol" ]
# Dev-only MCP bridge for UI automation: `pnpm tauri dev -- --features mcp-bridge`
mcp-bridge = ["dep:tauri-plugin-mcp-bridge"]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]
+1
View File
@@ -17,6 +17,7 @@
"updater:allow-install",
"notification:default",
"core:webview:allow-internal-toggle-devtools",
"core:window:allow-start-dragging",
"dialog:default",
"upload:allow-download",
"clipboard-manager:allow-write-text",
+8
View File
@@ -0,0 +1,8 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "mcp-bridge",
"description": "Dev-only MCP bridge for UI automation",
"platforms": ["macOS", "windows", "linux"],
"windows": ["main"],
"permissions": ["mcp-bridge:default"]
}
+1 -1
View File
@@ -1 +1 @@
{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-secret":{"identifier":"allow-write-secret","description":"Enables the write_secret command without any pre-configured scope.","commands":{"allow":["write_secret"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-secret":{"identifier":"deny-write-secret","description":"Denies the write_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["write_secret"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","coLine truncated
{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-secret":{"identifier":"allow-write-secret","description":"Enables the write_secret command without any pre-configured scope.","commands":{"allow":["write_secret"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-secret":{"identifier":"deny-write-secret","description":"Denies the write_secret command without any pre-configured scope.","commands":{"allow":[],"deny":["write_secret"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener","allow-supports-multiple-windows"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","coLine truncated
+1 -1
View File
@@ -1 +1 @@
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["window-state:default","global-shortcut:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","shell:default"],"platforms":["macOS","windows","linux"]},"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","updater:allow-download","updater:allow-install","notification:default","core:webview:allow-internal-toggle-devtools","dialog:default","upload:allow-download","clipboard-manager:allow-write-text","shell:default","shell:allow-open"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen","shell:default"]}}
{"desktop-capability":{"identifier":"desktop-capability","description":"","local":true,"windows":["main"],"permissions":["window-state:default","global-shortcut:default","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","shell:default"],"platforms":["macOS","windows","linux"]},"main-capabilities":{"identifier":"main-capabilities","description":"Capability for desktop window","local":true,"windows":["main"],"permissions":["store:allow-get","store:allow-set","store:allow-save","store:allow-clear","store:allow-delete","store:allow-keys","store:allow-load","updater:allow-check","updater:allow-download-and-install","updater:allow-download","updater:allow-install","notification:default","core:webview:allow-internal-toggle-devtools","core:window:allow-start-dragging","dialog:default","upload:allow-download","clipboard-manager:allow-write-text","shell:default","shell:allow-open"]},"mcp-bridge":{"identifier":"mcp-bridge","description":"Dev-only MCP bridge for UI automation","local":true,"windows":["main"],"permissions":["mcp-bridge:default"],"platforms":["macOS","windows","linux"]},"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:path:default","core:event:default","core:window:default","core:app:default","core:resources:default","core:menu:default","core:tray:default","core:window:allow-set-fullscreen","shell:default"]}}
+162
View File
@@ -2666,6 +2666,168 @@
"const": "log:deny-log",
"markdownDescription": "Denies the log command without any pre-configured scope."
},
{
"description": "Default permissions for MCP Bridge plugin\n#### This default permission set includes:\n\n- `allow-capture-native-screenshot`\n- `allow-emit-event`\n- `allow-execute-command`\n- `allow-execute-js`\n- `allow-get-backend-state`\n- `allow-get-ipc-events`\n- `allow-get-window-info`\n- `allow-list-windows`\n- `allow-report-ipc-event`\n- `allow-request-script-injection`\n- `allow-script-result`\n- `allow-start-ipc-monitor`\n- `allow-stop-ipc-monitor`",
"type": "string",
"const": "mcp-bridge:default",
"markdownDescription": "Default permissions for MCP Bridge plugin\n#### This default permission set includes:\n\n- `allow-capture-native-screenshot`\n- `allow-emit-event`\n- `allow-execute-command`\n- `allow-execute-js`\n- `allow-get-backend-state`\n- `allow-get-ipc-events`\n- `allow-get-window-info`\n- `allow-list-windows`\n- `allow-report-ipc-event`\n- `allow-request-script-injection`\n- `allow-script-result`\n- `allow-start-ipc-monitor`\n- `allow-stop-ipc-monitor`"
},
{
"description": "Enables the capture_native_screenshot command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-capture-native-screenshot",
"markdownDescription": "Enables the capture_native_screenshot command without any pre-configured scope."
},
{
"description": "Enables the emit_event command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-emit-event",
"markdownDescription": "Enables the emit_event command without any pre-configured scope."
},
{
"description": "Enables the execute_command command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-execute-command",
"markdownDescription": "Enables the execute_command command without any pre-configured scope."
},
{
"description": "Enables the execute_js command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-execute-js",
"markdownDescription": "Enables the execute_js command without any pre-configured scope."
},
{
"description": "Enables the get_backend_state command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-get-backend-state",
"markdownDescription": "Enables the get_backend_state command without any pre-configured scope."
},
{
"description": "Enables the get_ipc_events command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-get-ipc-events",
"markdownDescription": "Enables the get_ipc_events command without any pre-configured scope."
},
{
"description": "Enables the get_window_info command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-get-window-info",
"markdownDescription": "Enables the get_window_info command without any pre-configured scope."
},
{
"description": "Enables the list_windows command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-list-windows",
"markdownDescription": "Enables the list_windows command without any pre-configured scope."
},
{
"description": "Enables the report_ipc_event command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-report-ipc-event",
"markdownDescription": "Enables the report_ipc_event command without any pre-configured scope."
},
{
"description": "Enables the request_script_injection command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-request-script-injection",
"markdownDescription": "Enables the request_script_injection command without any pre-configured scope."
},
{
"description": "Enables the script_result command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-script-result",
"markdownDescription": "Enables the script_result command without any pre-configured scope."
},
{
"description": "Enables the start_ipc_monitor command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-start-ipc-monitor",
"markdownDescription": "Enables the start_ipc_monitor command without any pre-configured scope."
},
{
"description": "Enables the stop_ipc_monitor command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:allow-stop-ipc-monitor",
"markdownDescription": "Enables the stop_ipc_monitor command without any pre-configured scope."
},
{
"description": "Denies the capture_native_screenshot command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-capture-native-screenshot",
"markdownDescription": "Denies the capture_native_screenshot command without any pre-configured scope."
},
{
"description": "Denies the emit_event command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-emit-event",
"markdownDescription": "Denies the emit_event command without any pre-configured scope."
},
{
"description": "Denies the execute_command command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-execute-command",
"markdownDescription": "Denies the execute_command command without any pre-configured scope."
},
{
"description": "Denies the execute_js command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-execute-js",
"markdownDescription": "Denies the execute_js command without any pre-configured scope."
},
{
"description": "Denies the get_backend_state command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-get-backend-state",
"markdownDescription": "Denies the get_backend_state command without any pre-configured scope."
},
{
"description": "Denies the get_ipc_events command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-get-ipc-events",
"markdownDescription": "Denies the get_ipc_events command without any pre-configured scope."
},
{
"description": "Denies the get_window_info command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-get-window-info",
"markdownDescription": "Denies the get_window_info command without any pre-configured scope."
},
{
"description": "Denies the list_windows command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-list-windows",
"markdownDescription": "Denies the list_windows command without any pre-configured scope."
},
{
"description": "Denies the report_ipc_event command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-report-ipc-event",
"markdownDescription": "Denies the report_ipc_event command without any pre-configured scope."
},
{
"description": "Denies the request_script_injection command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-request-script-injection",
"markdownDescription": "Denies the request_script_injection command without any pre-configured scope."
},
{
"description": "Denies the script_result command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-script-result",
"markdownDescription": "Denies the script_result command without any pre-configured scope."
},
{
"description": "Denies the start_ipc_monitor command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-start-ipc-monitor",
"markdownDescription": "Denies the start_ipc_monitor command without any pre-configured scope."
},
{
"description": "Denies the stop_ipc_monitor command without any pre-configured scope.",
"type": "string",
"const": "mcp-bridge:deny-stop-ipc-monitor",
"markdownDescription": "Denies the stop_ipc_monitor command without any pre-configured scope."
},
{
"description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-remove-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`",
"type": "string",
+13 -1
View File
@@ -3,7 +3,19 @@
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, Target, TargetKind};
fn main() {
tauri::Builder::default()
let mut builder = tauri::Builder::default();
// Dev-only MCP bridge: `pnpm tauri dev -- --features mcp-bridge`.
#[cfg(all(debug_assertions, feature = "mcp-bridge"))]
{
builder = builder.plugin(
tauri_plugin_mcp_bridge::Builder::new()
.bind_address("127.0.0.1")
.build(),
);
}
builder
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
.plugin(tauri_plugin_window_state::Builder::new().build())
+4 -1
View File
@@ -77,7 +77,10 @@
"label": "main",
"dragDropEnabled": false,
"backgroundColor": "#08001f",
"transparent": false
"transparent": false,
"titleBarStyle": "Overlay",
"hiddenTitle": true,
"trafficLightPosition": { "x": 18, "y": 31 }
}
],
"security": {
+16 -33
View File
@@ -1,50 +1,33 @@
.appBar {
// Limit transitions to cheaper properties; avoid animating box-shadow directly
// Custom titlebar: the app header itself sits at the very top of the window,
// under the native overlay titlebar (no native glass strip, no blur panels).
transition: background-color $transition-time-fast;
padding: 0.8em ($page-margin - 1.7em);
z-index: 999 !important;
top: 0 !important;
// Keep the left controls clear of the macOS traffic lights.
html.is-macos & {
padding-left: calc(#{$page-margin} - 1.7em + 72px);
}
.flex {
// Avoid animating padding; it causes layout reflow on each frame.
transition: background-color $transition-time-fast;
// Avoid using will-change: scroll-position; it can degrade performance when misused
// will-change: opacity, transform;
border-radius: 1000px;
position: relative;
// Pseudo-element handles elevation shadow; we animate its opacity
&::after {
content: "";
position: absolute;
inset: -0.35em;
pointer-events: none;
border-radius: inherit;
@include glass-effect;
opacity: 0;
z-index: -1;
transition: all $transition-time-fast;
}
}
// Inner content wrapper that we can scale without causing layout reflow
.flex-inner {
transform-origin: top center;
transition: transform $transition-time-fast;
}
&.elevated{
.flex {
&::after {
opacity: 1;
}
// Solid, part-of-the-screen titlebar background once the page scrolls.
&.elevated {
background-color: $clr-background-default !important;
border-bottom: 1px solid rgb(255 255 255 / 0.06);
box-shadow: none !important;
background-image: none !important;
backdrop-filter: none !important;
}
// Apply a subtle scale to simulate shrink without layout changes
.flex-inner {
transform: scaleY(0.95);
}
}
&-avatar {
background: rgb(255 255 255 / 0.1) !important;
&-icon {
+4 -11
View File
@@ -2,7 +2,7 @@ import MuiAppBar from "@mui/material/AppBar";
import IconButton from "@mui/material/IconButton";
import useScrollTrigger from "@mui/material/useScrollTrigger";
import { useLocation, useNavigate } from "@tanstack/react-router";
import React, { useCallback, useMemo, useState } from "react";
import React, { useCallback, useState } from "react";
import "./appBar.scss";
@@ -51,13 +51,6 @@ export const AppBar = () => {
const [showDrawer, setShowDrawer] = useState(false);
const appBarStyling = useMemo(() => {
return {
backgroundColor: "transparent",
paddingRight: "0 !important",
};
}, []);
const _handleNavigateToSearch = useCallback(
() => navigate({ to: "/search", search: { query: "" } }),
[navigate],
@@ -85,7 +78,7 @@ export const AppBar = () => {
return (
<>
<MuiAppBar
style={appBarStyling}
data-tauri-drag-region
className={
trigger
? "appBar flex flex-row flex-justify-spaced-between elevated"
@@ -94,7 +87,7 @@ export const AppBar = () => {
elevation={0}
color="transparent"
>
<div className="flex flex-row" style={{ gap: "0.6em" }}>
<div className="flex flex-row" data-tauri-drag-region style={{ gap: "0.6em" }}>
<IconButton onClick={handleDrawerOpen}>
<span className="material-symbols-rounded">menu</span>
</IconButton>
@@ -112,7 +105,7 @@ export const AppBar = () => {
</IconButton>
</div>
<div className="flex flex-row" style={{ gap: "0.6em" }}>
<div className="flex flex-row" data-tauri-drag-region style={{ gap: "0.6em" }}>
<IconButton onClick={toggleSearchDialog}>
<span className="material-symbols-rounded">search</span>
</IconButton>
+10 -5
View File
@@ -10,6 +10,7 @@ import React, { memo, type Ref, useCallback, useState } from "react";
import { ErrorBoundary } from "react-error-boundary";
import { useInView } from "react-intersection-observer";
import getImageUrlsApi from "@/utils/methods/getImageUrlsApi";
import { resolveItemImage } from "@/utils/methods/itemImages";
import { useApiInContext } from "@/utils/store/api";
import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton";
@@ -56,6 +57,10 @@ const CardContent = ({
const api = useApiInContext((s) => s.api);
const navigate = useNavigate();
const image = resolveItemImage(item, imageType, {
seriesId: seriesId ? (item.SeriesId ?? undefined) : undefined,
});
const defaultOnClick = useCallback(() => {
if (item?.Id) {
navigate(getItemLinkOptions(item.Id, item?.Type));
@@ -102,20 +107,20 @@ const CardContent = ({
? getTypeIcon(overrideIcon)
: getTypeIcon(item.Type ?? "universal")}
</div>
{inView && (
{inView && image && (
<img
alt={item.Name ?? "blink"}
src={
api
api && image
? overrideIcon === "User"
? `${api?.basePath}/Users/${item.Id}/Images/Primary`
: getImageUrlsApi(api).getItemImageUrlById(
(seriesId ? item.SeriesId : (item.AlbumId ?? item.Id)) ??
"",
imageType,
image.itemId,
image.imageType,
{
quality: 90,
fillWidth: cardType === "thumb" ? 560 : 320,
tag: image.tag,
},
)
: ""
+4 -4
View File
@@ -99,14 +99,14 @@ export default function CardScroller({
},
tablet: {
breakpoint: { max: 925, min: 600 },
items: displayCards - 3,
slidesToSlide: displayCards - 3,
items: Math.max(2, displayCards - 2),
slidesToSlide: Math.max(2, displayCards - 2),
partialVisibilityGutter: 20,
},
mobile: {
breakpoint: { max: 600, min: 424 },
items: displayCards - 5,
slidesToSlide: displayCards - 5,
items: Math.max(1, displayCards - 4),
slidesToSlide: Math.max(1, displayCards - 4),
partialVisibilityGutter: 10,
},
smallScreen: {
+9
View File
@@ -8,6 +8,15 @@
grid-template-columns: 1fr 340px;
gap: 1.5em;
&-slide-wrapper {
grid-area: main;
position: relative;
height: 100%;
min-width: 0;
overflow: hidden;
border-radius: 20px;
}
&-sidebar {
overflow-y: auto;
height: 100%;
+30 -18
View File
@@ -1,5 +1,6 @@
import { AnimatePresence } from "motion/react";
import { motion } from "motion/react";
import React, { useCallback, useEffect, useState } from "react";
import type { Api } from "@jellyfin/sdk";
import { useCarouselStore } from "../../utils/store/carousel";
import "./carousel.scss";
@@ -8,6 +9,7 @@ import {
BaseItemKind,
} from "@jellyfin/sdk/lib/generated-client";
import getImageUrlsApi from "@/utils/methods/getImageUrlsApi";
import { resolveItemImage } from "@/utils/methods/itemImages";
import { useApiInContext } from "@/utils/store/api";
import CarouselSlide from "../carouselSlide";
import CarouselTickers from "./tickers";
@@ -15,6 +17,24 @@ import CarouselTickers from "./tickers";
// Memoize CarouselSlide to prevent unnecessary re-renders
const MemoizedCarouselSlide = React.memo(CarouselSlide);
/** Sidebar thumbnail: prefer Thumb, fall back to Backdrop/Primary when missing. */
const tickerImageUrl = (
api: Api,
item: BaseItemDto,
): string | undefined => {
const image = resolveItemImage(item, "Thumb");
if (!image) return undefined;
return getImageUrlsApi(api).getItemImageUrlById(
image.itemId,
image.imageType,
{
quality: 90,
fillHeight: 360,
tag: image.tag,
},
);
};
const Carousel = ({
content,
onChange,
@@ -96,12 +116,15 @@ const Carousel = ({
onMouseEnter={() => setIsPaused(true)}
onMouseLeave={() => setIsPaused(false)}
>
<AnimatePresence mode="sync">
<MemoizedCarouselSlide
item={content[currentSlide]}
<motion.div
key={content[currentSlide].Id}
/>
</AnimatePresence>
className="hero-carousel-slide-wrapper"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.35, ease: "easeInOut" }}
>
<MemoizedCarouselSlide item={content[currentSlide]} />
</motion.div>
<div className="carousel-sidebar" ref={sidebarRef}>
{content.map((item, index) => (
<div
@@ -112,18 +135,7 @@ const Carousel = ({
className="carousel-ticker-wrapper"
>
<CarouselTickers
imageUrl={
item.ImageTags?.Thumb
? getImageUrlsApi(api).getItemImageUrlById(
item.Id ?? "",
"Thumb",
{
quality: 90,
fillHeight: 360,
},
)
: undefined
}
imageUrl={tickerImageUrl(api, item)}
isActive={index === currentSlide}
itemName={item.Name ?? "Unknown"}
itemYear={
+12 -6
View File
@@ -61,6 +61,16 @@ const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
const [animationDirection] = useCarouselStore((state) => [state.direction]);
// Hero background: a real backdrop when the item has one, otherwise fall back
// to the poster instead of a big type icon.
const heroBackgroundSrc = item.BackdropImageTags?.length
? item.ParentBackdropItemId
? `${api?.basePath}/Items/${item.ParentBackdropItemId}/Images/Backdrop?quality=80`
: `${api?.basePath}/Items/${item.Id}/Images/Backdrop?quality=80&fillHeight=1400`
: item.ImageTags?.Primary
? `${api?.basePath}/Items/${item.Id}/Images/Primary?quality=80&fillHeight=1400`
: undefined;
return (
<div className="hero-carousel-slide">
<motion.div
@@ -70,15 +80,11 @@ const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
exit={{ opacity: 0 }}
transition={{ duration: 0.4, ease: "easeInOut" }}
>
{item.BackdropImageTags?.length ? (
{heroBackgroundSrc ? (
<img
alt={item.Name ?? "item"}
className="hero-carousel-background-image"
src={
item.ParentBackdropItemId
? `${api?.basePath}/Items/${item.ParentBackdropItemId}/Images/Backdrop?quality=80`
: `${api?.basePath}/Items/${item.Id}/Images/Backdrop?quality=80&fillHeight=1400`
}
src={heroBackgroundSrc}
style={{
opacity: 0,
}}
+2 -1
View File
@@ -258,6 +258,7 @@ export const LibraryHeader = () => {
return (
<>
<AppBar
data-tauri-drag-region
className={
scrollTrigger
? "library-header scrolling flex flex-row"
@@ -267,7 +268,7 @@ export const LibraryHeader = () => {
elevation={0}
color="transparent"
>
<div className="flex flex-row" style={{ gap: "0.6em" }}>
<div className="flex flex-row" data-tauri-drag-region style={{ gap: "0.6em" }}>
<IconButton onClick={handleDrawerOpen}>
<div className="material-symbols-rounded">menu</div>
</IconButton>
@@ -12,16 +12,28 @@
padding: 0.25em !important;
transition: all 0.2s ease-in-out;
html.is-macos & {
// The window has an overlay titlebar: keep controls clear of the traffic lights
// without pushing the right-hand actions out of the viewport.
padding-left: 72px !important;
width: calc(100vw - 4em - 72px) !important;
left: calc(2em + 72px) !important;
right: 2em !important;
}
&::after {
content: "";
position: absolute;
inset: -0.35em;
pointer-events: none;
border-radius: inherit;
@include glass-effect;
// Solid titlebar surface: no glass/blur.
background-color: $clr-background-default;
border: 1px solid rgb(255 255 255 / 0.08);
box-shadow: 0 4px 20px rgb(0 0 0 / 0.4);
opacity: 0;
z-index: -1;
transition: all 150ms;
transition: opacity 150ms;
}
&.scrolling {
&::after {
+28 -16
View File
@@ -127,6 +127,7 @@ const LibraryItemsGrid = () => {
// --- Virtualization setup ---
const parentRef = useRef<HTMLDivElement | null>(null);
const [containerWidth, setContainerWidth] = useState<number>(0);
const [scrollMargin, setScrollMargin] = useState<number>(0);
// Determine column count based on container width (simple heuristic)
const [columns, setColumns] = useState(1);
@@ -134,6 +135,7 @@ const LibraryItemsGrid = () => {
if (!parentRef.current) return;
const width = parentRef.current.clientWidth;
setContainerWidth(width);
setScrollMargin(parentRef.current.offsetTop);
// Base desired approximate card width (including gap) 180px
const ideal = Math.max(1, Math.floor(width / 180));
setColumns(ideal);
@@ -145,7 +147,14 @@ const LibraryItemsGrid = () => {
const ro = new ResizeObserver(() => measureColumns());
ro.observe(parentRef.current);
return () => ro.disconnect();
// The header above the grid can change height (filters, wrapping): keep the
// window-virtualizer offset in sync so rows never jump while scrolling.
ro.observe(document.body);
window.addEventListener("resize", measureColumns);
return () => {
ro.disconnect();
window.removeEventListener("resize", measureColumns);
};
}, [measureColumns]);
const itemCount = items.data?.Items?.length ?? 0;
@@ -161,23 +170,30 @@ const LibraryItemsGrid = () => {
return Math.floor((containerWidth - totalGap) / columns);
}, [columns, containerWidth]);
// Approximate tallest card height (portrait ratio ~ 2:3 => height ≈ width / 0.666) + text/footer area
// We add a small buffer (20px) for hover overlays and progress bars
const estimatedTallCardHeight = useMemo(
() => Math.round(cardWidth / 0.666666 + 90),
[cardWidth],
);
// Approximate card height: width / aspect ratio + text block (title + caption).
// Square artwork (music, genres) is shorter than portrait posters.
const cardAspect = useMemo(() => {
const first = items.data?.Items?.[0];
const square =
first?.Type === BaseItemKind.MusicAlbum ||
first?.Type === BaseItemKind.Audio ||
first?.Type === BaseItemKind.Genre ||
first?.Type === BaseItemKind.MusicGenre ||
first?.Type === BaseItemKind.Studio ||
first?.Type === BaseItemKind.Playlist;
return square ? 1 : 0.666666;
}, [items.data?.Items]);
const estimateRowHeight = useCallback(
() => estimatedTallCardHeight,
[estimatedTallCardHeight],
() => Math.round(cardWidth / cardAspect + 60),
[cardWidth, cardAspect],
);
const virtualizer = useWindowVirtualizer({
count: rowCount,
estimateSize: estimateRowHeight,
overscan: 6,
scrollMargin: parentRef.current?.offsetTop ?? 0,
overscan: 4,
scrollMargin,
});
const virtualItems = virtualizer.getVirtualItems();
@@ -245,13 +261,9 @@ const LibraryItemsGrid = () => {
flexDirection: "row",
alignItems: "flex-start",
gap: `${cardGap}px`,
// Allow natural height; virtualizer will update size after measurement.
paddingBottom: "0.6em",
}}
data-index={row.index}
ref={(el) => {
if (el) virtualizer.measureElement(el);
}}
ref={virtualizer.measureElement}
>
{items.data?.Items?.slice(startIndex, endIndex).map(
(item: BaseItemDto, localIndex: number) => {
+1 -1
View File
@@ -51,7 +51,7 @@ const LoginShell = ({
const serverHost = api?.basePath.replace(/^https?:\/\//, "");
return (
<div className="login-shell scrollY">
<div className="login-shell scrollY" data-tauri-drag-region>
<div className={`login-shell-content login-shell-${width}`}>
{serverHost && (
<div className="login-shell-server">
+5
View File
@@ -95,6 +95,11 @@ function ProviderWrapper() {
}
const init = async () => {
// The window is frameless-ish on macOS (overlay titlebar): the app header is the titlebar.
if (navigator.userAgent.includes("Macintosh")) {
document.documentElement.classList.add("is-macos");
}
const initialApi = await initializeApi();
ReactDOM.createRoot(document.getElementById("root")!).render(
+13
View File
@@ -95,6 +95,9 @@
object-fit: contain;
object-position: left bottom;
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
// The logo is an <img> inside a line-clamped heading; as an inline image
// its box was clipped by the heading's line box (cut-off titles).
display: block;
}
}
@@ -144,10 +147,15 @@
@media (max-width: 1140px) {
.carousel {
height: 60vh !important;
// Never squeeze the hero below the height its own content needs,
// otherwise the title/logo is clipped by the slide's overflow.
min-height: 430px;
}
.hero-carousel {
&-detail {
width: 100%;
padding: 3rem;
padding-bottom: 4rem;
background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
@@ -156,6 +164,11 @@
}
&-text {
// Narrow layouts: the hero column is ~400px, a 3.75rem title wraps
// to two lines and overflows the slide, clipping the top line.
font-size: 2.5rem !important;
line-height: 1.15 !important;
&-logo {
max-width: 60vw;
max-height: 10vh;
+5
View File
@@ -62,6 +62,11 @@
padding: 1.5em 1em; // Reduced padding
gap: 1em; // Reduced gap
html.is-macos & {
// Overlay titlebar: leave room for the traffic lights.
padding-top: 2.9em;
}
&-controls {
display: flex;
align-items: center;
+1 -1
View File
@@ -26,7 +26,7 @@ function SettingsRoute() {
navigate({ to: "/home" });
}, []);
return (
<div className="settings-page-container">
<div className="settings-page-container" data-tauri-drag-region>
<div className="settings-sidebar">
<div className="settings-sidebar-controls">
<BackButton />
+118
View File
@@ -0,0 +1,118 @@
import type { BaseItemDto, ImageType } from "@jellyfin/sdk/lib/generated-client";
export type ResolvedItemImage = {
/** Item that actually owns the image (episodes borrow their series' artwork). */
itemId: string;
imageType: ImageType;
tag?: string;
};
const ownFallbackOrder: Partial<Record<ImageType, ImageType[]>> = {
Primary: ["Primary", "Thumb", "Backdrop"],
Thumb: ["Thumb", "Backdrop", "Primary"],
Backdrop: ["Backdrop", "Thumb", "Primary"],
Logo: ["Logo", "Primary", "Thumb"],
Banner: ["Banner", "Backdrop", "Primary"],
Art: ["Art", "Backdrop", "Primary"],
Disc: ["Disc", "Backdrop", "Primary"],
};
const hasOwnImage = (item: BaseItemDto, type: ImageType): boolean => {
if (type === "Backdrop") {
return Boolean(item.BackdropImageTags?.length || item.ImageTags?.Backdrop);
}
return Boolean(item.ImageTags?.[type]);
};
const ownTag = (item: BaseItemDto, type: ImageType): string | undefined => {
if (type === "Backdrop") {
return item.BackdropImageTags?.[0] ?? item.ImageTags?.Backdrop ?? undefined;
}
return item.ImageTags?.[type] ?? undefined;
};
/**
* Pick the best real image for an item. Many items do not have the requested
* image type (movies rarely have `Thumb`, episodes borrow artwork from their
* series), so try the item's own images first, then the series/parent ones.
* Returns `undefined` when there is genuinely nothing to show.
*/
export const resolveItemImage = (
item: BaseItemDto | undefined | null,
preferred: ImageType = "Primary",
options: { seriesId?: string | null } = {},
): ResolvedItemImage | undefined => {
if (!item) return undefined;
// Library grids show one poster per episode, owned by the series.
const seriesId = options.seriesId ?? item.SeriesId;
if (options.seriesId && seriesId) {
return {
itemId: seriesId,
imageType: "Primary",
tag: item.SeriesPrimaryImageTag ?? undefined,
};
}
const order = ownFallbackOrder[preferred] ?? [preferred];
for (const type of order) {
if (hasOwnImage(item, type) && item.Id) {
return { itemId: item.Id, imageType: type, tag: ownTag(item, type) };
}
}
// Episodes (and some other child items) inherit artwork from their parent.
if (seriesId && item.SeriesPrimaryImageTag) {
return {
itemId: seriesId,
imageType: "Primary",
tag: item.SeriesPrimaryImageTag,
};
}
if (seriesId && item.Type === "Episode") {
return { itemId: seriesId, imageType: "Primary" };
}
// Audio inherits its cover from the album.
if (item.AlbumId) {
return { itemId: item.AlbumId, imageType: "Primary" };
}
if (item.ParentBackdropItemId && item.ParentBackdropImageTags?.length) {
return {
itemId: item.ParentBackdropItemId,
imageType: "Backdrop",
tag: item.ParentBackdropImageTags[0],
};
}
// Nothing known: keep the requested type so the server gets a chance, but
// only when the item exists. Callers render their icon placeholder on 404.
if (item.Id) {
return { itemId: item.Id, imageType: preferred };
}
return undefined;
};
/** Image tag for the resolved type, so caches reuse the exact displayed image. */
export const getImageTag = (
item: BaseItemDto | undefined | null,
type: ImageType,
series = false,
): string | undefined => {
if (!item) return undefined;
if (series && type === "Primary" && item.SeriesPrimaryImageTag) {
return item.SeriesPrimaryImageTag;
}
return ownTag(item, type);
};
export const getAvailableImageType = (
item: BaseItemDto | undefined | null,
preferred: ImageType = "Primary",
): ImageType => {
if (!item) return preferred;
const order = ownFallbackOrder[preferred] ?? [preferred];
for (const type of order) {
if (hasOwnImage(item, type)) return type;
}
return preferred;
};