Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Windows: island window, Mochi, launch greeting, sounds, tray

Louis Raillec34451a86f6a
diff --git a/windows/.gitignore b/windows/.gitignore
new file mode 100644
index 00000000..49947288
--- /dev/null
+++ b/windows/.gitignore
@@ -0,0 +1,7 @@
+node_modules/
+dist/
+target/
+*.tsbuildinfo
+
+# Generated by tauri-build on every compile
+src-tauri/gen/schemas/
diff --git a/windows/Cargo.lock b/windows/Cargo.lock
new file mode 100644
index 00000000..07562e65
--- /dev/null
+++ b/windows/Cargo.lock
@@ -0,0 +1,5109 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "adler2"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+
+[[package]]
+name = "aho-corasick"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "alloc-no-stdlib"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a"
+
+[[package]]
+name = "alloc-stdlib"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1"
+dependencies = [
+ "alloc-no-stdlib",
+]
+
+[[package]]
+name = "android_system_properties"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "anyhow"
+version = "1.0.104"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
+
+[[package]]
+name = "async-broadcast"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-channel"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"
+dependencies = [
+ "concurrent-queue",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-executor"
+version = "1.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "async-io"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
+dependencies = [
+ "autocfg",
+ "cfg-if",
+ "concurrent-queue",
+ "futures-io",
+ "futures-lite",
+ "parking",
+ "polling",
+ "rustix",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-lock"
+version = "3.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-process"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
+dependencies = [
+ "async-channel",
+ "async-io",
+ "async-lock",
+ "async-signal",
+ "async-task",
+ "blocking",
+ "cfg-if",
+ "event-listener",
+ "futures-lite",
+ "rustix",
+]
+
+[[package]]
+name = "async-recursion"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "async-signal"
+version = "0.2.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"
+dependencies = [
+ "async-io",
+ "async-lock",
+ "atomic-waker",
+ "cfg-if",
+ "futures-core",
+ "futures-io",
+ "rustix",
+ "signal-hook-registry",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-task"
+version = "4.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
+
+[[package]]
+name = "async-trait"
+version = "0.1.92"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "atk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b"
+dependencies = [
+ "atk-sys",
+ "glib",
+ "libc",
+]
+
+[[package]]
+name = "atk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "atomic-waker"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
+
+[[package]]
+name = "auto-launch"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1f012b8cc0c850f34117ec8252a44418f2e34a2cf501de89e29b241ae5f79471"
+dependencies = [
+ "dirs 4.0.0",
+ "thiserror 1.0.69",
+ "winreg 0.10.1",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
+
+[[package]]
+name = "base64"
+version = "0.21.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
+
+[[package]]
+name = "base64"
+version = "0.22.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+
+[[package]]
+name = "base64"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
+
+[[package]]
+name = "bit-set"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
+dependencies = [
+ "bit-vec",
+]
+
+[[package]]
+name = "bit-vec"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bitflags"
+version = "2.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "block-buffer"
+version = "0.10.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
+dependencies = [
+ "generic-array",
+]
+
+[[package]]
+name = "block2"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
+dependencies = [
+ "objc2",
+]
+
+[[package]]
+name = "blocking"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa"
+dependencies = [
+ "async-channel",
+ "async-task",
+ "futures-io",
+ "futures-lite",
+ "piper",
+]
+
+[[package]]
+name = "brotli"
+version = "9.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8b851b75c23ca7873623d612fe49bd1989aeb03d08fb9432187eb253d3d4c6b"
+dependencies = [
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+ "brotli-decompressor",
+]
+
+[[package]]
+name = "brotli-decompressor"
+version = "6.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "941cd9bd4ddab83cb46fa5a2d428f1c857b24ac78cb876cf7beb710840934bd7"
+dependencies = [
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+]
+
+[[package]]
+name = "bs58"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4"
+dependencies = [
+ "tinyvec",
+]
+
+[[package]]
+name = "bumpalo"
+version = "3.20.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
+
+[[package]]
+name = "bytemuck"
+version = "1.25.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
+
+[[package]]
+name = "byteorder"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+
+[[package]]
+name = "bytes"
+version = "1.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "cairo-rs"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"
+dependencies = [
+ "bitflags 2.13.2",
+ "cairo-sys-rs",
+ "glib",
+ "libc",
+ "once_cell",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "cairo-sys-rs"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51"
+dependencies = [
+ "glib-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "camino"
+version = "1.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bbbad30e4b4c14a39e3cc8aed085a12a327257c316619c93581e017bc52be591"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "cargo-platform"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "cargo_metadata"
+version = "0.19.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"
+dependencies = [
+ "camino",
+ "cargo-platform",
+ "semver",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "cargo_toml"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82f4b26e751e711a5302649417f2da046dce6391b2ea30a4820f37462314f0b9"
+dependencies = [
+ "semver",
+ "serde",
+ "toml 1.1.6+spec-1.1.0",
+]
+
+[[package]]
+name = "cc"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f360145194ee8e21db5ee7f3fcd4fe52210864c75c985dae33218202c8bbe040"
+dependencies = [
+ "find-msvc-tools",
+ "shlex",
+]
+
+[[package]]
+name = "cesu8"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
+
+[[package]]
+name = "cfb"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a347dcabdae9c31b0825fd6a8bed285ec9c2acb89c47827126d52fa4f59cece3"
+dependencies = [
+ "fnv",
+ "uuid",
+ "web-time",
+]
+
+[[package]]
+name = "cfg-expr"
+version = "0.15.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"
+dependencies = [
+ "smallvec",
+ "target-lexicon",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
+
+[[package]]
+name = "chrono"
+version = "0.4.45"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
+dependencies = [
+ "iana-time-zone",
+ "num-traits",
+ "serde",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "combine"
+version = "4.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfc320937d09e6de266b31b9afb480f197d7a861be86be7cb2ea7e5d1bfffc5e"
+dependencies = [
+ "bytes",
+ "memchr",
+]
+
+[[package]]
+name = "concurrent-queue"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "cookie"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87"
+dependencies = [
+ "time",
+ "version_check",
+]
+
+[[package]]
+name = "core-foundation"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "core-foundation-sys"
+version = "0.8.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+
+[[package]]
+name = "core-graphics"
+version = "0.25.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"
+dependencies = [
+ "bitflags 2.13.2",
+ "core-foundation",
+ "core-graphics-types",
+ "foreign-types",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics-types"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
+dependencies = [
+ "bitflags 2.13.2",
+ "core-foundation",
+ "libc",
+]
+
+[[package]]
+name = "coucou"
+version = "0.1.0"
+dependencies = [
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-build",
+ "tauri-plugin-autostart",
+ "tauri-plugin-single-instance",
+ "windows 0.61.3",
+]
+
+[[package]]
+name = "coucou-hook"
+version = "0.1.0"
+dependencies = [
+ "serde_json",
+]
+
+[[package]]
+name = "cpufeatures"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "crc32fast"
+version = "1.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "crossbeam-channel"
+version = "0.5.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
+
+[[package]]
+name = "crypto-common"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
+dependencies = [
+ "generic-array",
+ "typenum",
+]
+
+[[package]]
+name = "cssparser"
+version = "0.37.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98"
+dependencies = [
+ "cssparser-macros",
+ "dtoa-short",
+ "itoa",
+ "phf",
+ "smallvec",
+]
+
+[[package]]
+name = "cssparser-macros"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
+dependencies = [
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "ctor"
+version = "1.0.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"
+
+[[package]]
+name = "darling"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec"
+dependencies = [
+ "darling_core",
+ "darling_macro",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff"
+dependencies = [
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785"
+dependencies = [
+ "darling_core",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "dbus"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e"
+dependencies = [
+ "libc",
+ "libdbus-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "defmt"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2953bfe4f93bbd20cc71198842756f77d161884c99ebbabc41d80231ded88d1"
+dependencies = [
+ "bitflags 1.3.2",
+ "defmt-macros",
+]
+
+[[package]]
+name = "defmt-macros"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bad9c72e7ca2137e0dc3813245a0d282fd6daad32fd800af018306a9169b5fe8"
+dependencies = [
+ "defmt-parser",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "defmt-parser"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "10d60334b3b2e7c9d91ef8150abfb6fa4c1c39ebbcf4a81c2e346aad939fee3e"
+dependencies = [
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "deranged"
+version = "0.5.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "derive_more"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"
+dependencies = [
+ "derive_more-impl",
+]
+
+[[package]]
+name = "derive_more-impl"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rustc_version",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "digest"
+version = "0.10.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
+dependencies = [
+ "block-buffer",
+ "crypto-common",
+]
+
+[[package]]
+name = "dirs"
+version = "4.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"
+dependencies = [
+ "dirs-sys 0.3.7",
+]
+
+[[package]]
+name = "dirs"
+version = "7.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f"
+dependencies = [
+ "dirs-sys 0.5.0",
+]
+
+[[package]]
+name = "dirs-sys"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"
+dependencies = [
+ "libc",
+ "redox_users 0.4.6",
+ "winapi",
+]
+
+[[package]]
+name = "dirs-sys"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab"
+dependencies = [
+ "libc",
+ "option-ext",
+ "redox_users 0.5.3",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "dispatch2"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "libc",
+ "objc2",
+]
+
+[[package]]
+name = "displaydoc"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "dlopen2"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4"
+dependencies = [
+ "dlopen2_derive",
+ "libc",
+ "once_cell",
+ "winapi",
+]
+
+[[package]]
+name = "dlopen2_derive"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "dom_query"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc"
+dependencies = [
+ "bit-set",
+ "cssparser",
+ "foldhash",
+ "html5ever",
+ "precomputed-hash",
+ "selectors",
+ "tendril",
+]
+
+[[package]]
+name = "dpi"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "dtoa"
+version = "1.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590"
+
+[[package]]
+name = "dtoa-short"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"
+dependencies = [
+ "dtoa",
+]
+
+[[package]]
+name = "dunce"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+
+[[package]]
+name = "embed-resource"
+version = "3.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fbfdaacccebec3b28e4866b8973543c7647797db5ada1bdab552e48fe665fbbd"
+dependencies = [
+ "cc",
+ "memchr",
+ "rustc_version",
+ "toml 1.1.6+spec-1.1.0",
+ "vswhom",
+ "winreg 0.55.0",
+]
+
+[[package]]
+name = "embed_plist"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
+
+[[package]]
+name = "endi"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
+
+[[package]]
+name = "enumflags2"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
+dependencies = [
+ "enumflags2_derive",
+ "serde",
+]
+
+[[package]]
+name = "enumflags2_derive"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "equivalent"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+
+[[package]]
+name = "erased-serde"
+version = "0.4.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
+dependencies = [
+ "serde",
+ "serde_core",
+ "typeid",
+]
+
+[[package]]
+name = "errno"
+version = "0.3.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "event-listener"
+version = "5.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"
+dependencies = [
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "event-listener-strategy"
+version = "0.5.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
+dependencies = [
+ "event-listener",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "fastrand"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
+
+[[package]]
+name = "fdeflate"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
+dependencies = [
+ "simd-adler32",
+]
+
+[[package]]
+name = "field-offset"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"
+dependencies = [
+ "memoffset",
+ "rustc_version",
+]
+
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484"
+
+[[package]]
+name = "flate2"
+version = "1.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
+dependencies = [
+ "crc32fast",
+ "miniz_oxide 0.9.1",
+ "zlib-rs",
+]
+
+[[package]]
+name = "fnv"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+
+[[package]]
+name = "foldhash"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
+
+[[package]]
+name = "foreign-types"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
+dependencies = [
+ "foreign-types-macros",
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-macros"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
+
+[[package]]
+name = "form_urlencoded"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
+dependencies = [
+ "percent-encoding",
+]
+
+[[package]]
+name = "futures-channel"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
+dependencies = [
+ "futures-core",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
+
+[[package]]
+name = "futures-executor"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"
+dependencies = [
+ "futures-core",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-io"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
+
+[[package]]
+name = "futures-lite"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
+dependencies = [
+ "fastrand",
+ "futures-core",
+ "futures-io",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "futures-macro"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "futures-sink"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
+
+[[package]]
+name = "futures-task"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
+
+[[package]]
+name = "futures-util"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
+dependencies = [
+ "futures-core",
+ "futures-io",
+ "futures-macro",
+ "futures-sink",
+ "futures-task",
+ "memchr",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "gdk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691"
+dependencies = [
+ "cairo-rs",
+ "gdk-pixbuf",
+ "gdk-sys",
+ "gio",
+ "glib",
+ "libc",
+ "pango",
+]
+
+[[package]]
+name = "gdk-pixbuf"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec"
+dependencies = [
+ "gdk-pixbuf-sys",
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+]
+
+[[package]]
+name = "gdk-pixbuf-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7"
+dependencies = [
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "gdk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7"
+dependencies = [
+ "cairo-sys-rs",
+ "gdk-pixbuf-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pango-sys",
+ "pkg-config",
+ "system-deps",
+]
+
+[[package]]
+name = "gdkwayland-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69"
+dependencies = [
+ "gdk-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pkg-config",
+ "system-deps",
+]
+
+[[package]]
+name = "gdkx11"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe"
+dependencies = [
+ "gdk",
+ "gdkx11-sys",
+ "gio",
+ "glib",
+ "libc",
+ "x11",
+]
+
+[[package]]
+name = "gdkx11-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d"
+dependencies = [
+ "gdk-sys",
+ "glib-sys",
+ "libc",
+ "system-deps",
+ "x11",
+]
+
+[[package]]
+name = "generic-array"
+version = "0.14.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
+dependencies = [
+ "typenum",
+ "version_check",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "wasi",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 5.3.0",
+ "wasip2",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 6.0.0",
+]
+
+[[package]]
+name = "gio"
+version = "0.18.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-util",
+ "gio-sys",
+ "glib",
+ "libc",
+ "once_cell",
+ "pin-project-lite",
+ "smallvec",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "gio-sys"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+ "winapi",
+]
+
+[[package]]
+name = "glib"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"
+dependencies = [
+ "bitflags 2.13.2",
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-task",
+ "futures-util",
+ "gio-sys",
+ "glib-macros",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "memchr",
+ "once_cell",
+ "smallvec",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "glib-macros"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc"
+dependencies = [
+ "heck 0.4.1",
+ "proc-macro-crate 2.0.2",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "glib-sys"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898"
+dependencies = [
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "glob"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
+
+[[package]]
+name = "gobject-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44"
+dependencies = [
+ "glib-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "gtk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a"
+dependencies = [
+ "atk",
+ "cairo-rs",
+ "field-offset",
+ "futures-channel",
+ "gdk",
+ "gdk-pixbuf",
+ "gio",
+ "glib",
+ "gtk-sys",
+ "gtk3-macros",
+ "libc",
+ "pango",
+ "pkg-config",
+]
+
+[[package]]
+name = "gtk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414"
+dependencies = [
+ "atk-sys",
+ "cairo-sys-rs",
+ "gdk-pixbuf-sys",
+ "gdk-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pango-sys",
+ "system-deps",
+]
+
+[[package]]
+name = "gtk3-macros"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d"
+dependencies = [
+ "proc-macro-crate 1.3.1",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
+
+[[package]]
+name = "hashbrown"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+
+[[package]]
+name = "heck"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "hermit-abi"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
+
+[[package]]
+name = "hex"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+
+[[package]]
+name = "html5ever"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"
+dependencies = [
+ "log",
+ "markup5ever",
+]
+
+[[package]]
+name = "http"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
+dependencies = [
+ "bytes",
+ "itoa",
+]
+
+[[package]]
+name = "http-body"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
+dependencies = [
+ "bytes",
+ "http",
+]
+
+[[package]]
+name = "http-body-util"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "http",
+ "http-body",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "httparse"
+version = "1.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
+
+[[package]]
+name = "hyper"
+version = "1.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43"
+dependencies = [
+ "atomic-waker",
+ "bytes",
+ "futures-channel",
+ "futures-core",
+ "http",
+ "http-body",
+ "httparse",
+ "itoa",
+ "pin-project-lite",
+ "smallvec",
+ "tokio",
+ "want",
+]
+
+[[package]]
+name = "hyper-util"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-channel",
+ "futures-util",
+ "http",
+ "http-body",
+ "httparse",
+ "hyper",
+ "ipnet",
+ "libc",
+ "percent-encoding",
+ "pin-project-lite",
+ "socket2",
+ "tokio",
+ "tower-service",
+ "tracing",
+]
+
+[[package]]
+name = "iana-time-zone"
+version = "0.1.65"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
+dependencies = [
+ "android_system_properties",
+ "core-foundation-sys",
+ "iana-time-zone-haiku",
+ "js-sys",
+ "log",
+ "wasm-bindgen",
+ "windows-core 0.62.2",
+]
+
+[[package]]
+name = "iana-time-zone-haiku"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "ico"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371"
+dependencies = [
+ "byteorder",
+ "png 0.17.16",
+]
+
+[[package]]
+name = "icu_collections"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"
+dependencies = [
+ "displaydoc",
+ "potential_utf",
+ "utf8_iter",
+ "yoke",
+ "zerofrom",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_locale_core"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"
+dependencies = [
+ "displaydoc",
+ "litemap",
+ "tinystr",
+ "writeable",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"
+dependencies = [
+ "icu_collections",
+ "icu_normalizer_data",
+ "icu_properties",
+ "icu_provider",
+ "smallvec",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"
+
+[[package]]
+name = "icu_properties"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"
+dependencies = [
+ "displaydoc",
+ "icu_collections",
+ "icu_locale_core",
+ "icu_properties_data",
+ "icu_provider",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_properties_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"
+
+[[package]]
+name = "icu_provider"
+version = "2.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"
+dependencies = [
+ "displaydoc",
+ "icu_locale_core",
+ "writeable",
+ "yoke",
+ "zerofrom",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "ident_case"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+
+[[package]]
+name = "idna"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
+dependencies = [
+ "idna_adapter",
+ "smallvec",
+ "utf8_iter",
+]
+
+[[package]]
+name = "idna_adapter"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
+dependencies = [
+ "icu_normalizer",
+ "icu_properties",
+]
+
+[[package]]
+name = "indexmap"
+version = "1.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
+dependencies = [
+ "autocfg",
+ "hashbrown 0.12.3",
+ "serde",
+]
+
+[[package]]
+name = "indexmap"
+version = "2.14.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
+dependencies = [
+ "equivalent",
+ "hashbrown 0.17.1",
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "infer"
+version = "0.22.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4200d433cbd5178df7797c9c2e75b348b728e39631cf14520d1e2fc424201f4"
+dependencies = [
+ "cfb",
+]
+
+[[package]]
+name = "ipnet"
+version = "2.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0"
+
+[[package]]
+name = "itoa"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
+
+[[package]]
+name = "javascriptcore-rs"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc"
+dependencies = [
+ "bitflags 1.3.2",
+ "glib",
+ "javascriptcore-rs-sys",
+]
+
+[[package]]
+name = "javascriptcore-rs-sys"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "jiff"
+version = "0.2.37"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ab1baf72f08796de0260609515130699b890ac25f30e610ad894bc5856cafdb"
+dependencies = [
+ "defmt",
+ "jiff-core",
+ "jiff-static",
+ "jiff-tzdb-platform",
+ "log",
+ "portable-atomic",
+ "portable-atomic-util",
+ "serde_core",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "jiff-core"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e52fe76043ccecc9005d2305ebaadf7d7fc0cc89ca6baa10a94d6bc68c7128c"
+dependencies = [
+ "defmt",
+ "log",
+]
+
+[[package]]
+name = "jiff-static"
+version = "0.2.37"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "378268a1116ad67ae6228701118ac9f491d78fda38a40a1f1a9e1348de6f7212"
+dependencies = [
+ "jiff-core",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "jiff-tzdb"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "142bd39932ad231f10513df9ab62661fead8719872150b7ad02a2df79f4e141e"
+
+[[package]]
+name = "jiff-tzdb-platform"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8"
+dependencies = [
+ "jiff-tzdb",
+]
+
+[[package]]
+name = "jni"
+version = "0.21.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
+dependencies = [
+ "cesu8",
+ "cfg-if",
+ "combine",
+ "jni-sys 0.3.1",
+ "log",
+ "thiserror 1.0.69",
+ "walkdir",
+ "windows-sys 0.45.0",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"
+dependencies = [
+ "jni-sys 0.4.1",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
+dependencies = [
+ "jni-sys-macros",
+]
+
+[[package]]
+name = "jni-sys-macros"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
+dependencies = [
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "js-sys"
+version = "0.3.106"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5"
+dependencies = [
+ "cfg-if",
+ "futures-util",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "json-patch"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72"
+dependencies = [
+ "jsonptr",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "jsonptr"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe"
+dependencies = [
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "keyboard-types"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fbe853b403ae61a04233030ae8a79d94975281ed9770a1f9e246732b534b28d"
+dependencies = [
+ "bitflags 2.13.2",
+ "serde",
+]
+
+[[package]]
+name = "libappindicator"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a"
+dependencies = [
+ "glib",
+ "gtk",
+ "gtk-sys",
+ "libappindicator-sys",
+ "log",
+]
+
+[[package]]
+name = "libappindicator-sys"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf"
+dependencies = [
+ "gtk-sys",
+ "libloading",
+ "once_cell",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.189"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
+
+[[package]]
+name = "libdbus-sys"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"
+dependencies = [
+ "pkg-config",
+]
+
+[[package]]
+name = "libloading"
+version = "0.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
+dependencies = [
+ "cfg-if",
+ "winapi",
+]
+
+[[package]]
+name = "libredox"
+version = "0.1.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
+
+[[package]]
+name = "litemap"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
+
+[[package]]
+name = "lock_api"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
+
+[[package]]
+name = "markup5ever"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
+dependencies = [
+ "log",
+ "tendril",
+ "web_atoms",
+]
+
+[[package]]
+name = "memchr"
+version = "2.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+
+[[package]]
+name = "memoffset"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "mime"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
+
+[[package]]
+name = "miniz_oxide"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "miniz_oxide"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "mio"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8"
+dependencies = [
+ "libc",
+ "wasi",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "muda"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996"
+dependencies = [
+ "crossbeam-channel",
+ "dpi",
+ "gtk",
+ "keyboard-types",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "once_cell",
+ "png 0.18.1",
+ "serde",
+ "thiserror 2.0.21",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "ndk"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
+dependencies = [
+ "bitflags 2.13.2",
+ "jni-sys 0.3.1",
+ "log",
+ "ndk-sys",
+ "num_enum",
+ "raw-window-handle",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "ndk-context"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+
+[[package]]
+name = "ndk-sys"
+version = "0.6.0+11769913"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
+dependencies = [
+ "jni-sys 0.3.1",
+]
+
+[[package]]
+name = "new_debug_unreachable"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
+
+[[package]]
+name = "num-conv"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "num_enum"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
+dependencies = [
+ "num_enum_derive",
+ "rustversion",
+]
+
+[[package]]
+name = "num_enum_derive"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "objc2"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
+dependencies = [
+ "objc2-encode",
+ "objc2-exception-helper",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-quartz-core",
+]
+
+[[package]]
+name = "objc2-cloud-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+dependencies = [
+ "bitflags 2.13.2",
+ "dispatch2",
+ "objc2",
+]
+
+[[package]]
+name = "objc2-core-graphics"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+dependencies = [
+ "bitflags 2.13.2",
+ "dispatch2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-io-surface",
+]
+
+[[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",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-text"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+]
+
+[[package]]
+name = "objc2-encode"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+
+[[package]]
+name = "objc2-exception-helper"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "objc2-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-surface"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.3.2"
+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",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-core-image",
+ "objc2-core-location",
+ "objc2-core-text",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "objc2-user-notifications",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-web-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+
+[[package]]
+name = "option-ext"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+
+[[package]]
+name = "ordered-stream"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "pango"
+version = "0.18.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4"
+dependencies = [
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+ "pango-sys",
+]
+
+[[package]]
+name = "pango-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "parking"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "percent-encoding"
+version = "2.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
+
+[[package]]
+name = "phf"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
+dependencies = [
+ "phf_macros",
+ "phf_shared",
+ "serde",
+]
+
+[[package]]
+name = "phf_codegen"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
+dependencies = [
+ "phf_generator",
+ "phf_shared",
+]
+
+[[package]]
+name = "phf_generator"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
+dependencies = [
+ "fastrand",
+ "phf_shared",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
+dependencies = [
+ "phf_generator",
+ "phf_shared",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
+[[package]]
+name = "pkg-config"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+
+[[package]]
+name = "plist"
+version = "1.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2896bade328c13f7042a297ea5ac5b0951f6cf989dea5f32c2fd98da398195cb"
+dependencies = [
+ "base64 0.23.1",
+ "indexmap 2.14.2",
+ "quick-xml",
+ "serde",
+ "time",
+]
+
+[[package]]
+name = "png"
+version = "0.17.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
+dependencies = [
+ "bitflags 1.3.2",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
+]
+
+[[package]]
+name = "png"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
+dependencies = [
+ "bitflags 2.13.2",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
+]
+
+[[package]]
+name = "polling"
+version = "3.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
+dependencies = [
+ "cfg-if",
+ "concurrent-queue",
+ "hermit-abi",
+ "pin-project-lite",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "portable-atomic"
+version = "1.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
+
+[[package]]
+name = "portable-atomic-util"
+version = "0.2.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
+dependencies = [
+ "portable-atomic",
+]
+
+[[package]]
+name = "potential_utf"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
+dependencies = [
+ "zerovec",
+]
+
+[[package]]
+name = "powerfmt"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
+
+[[package]]
+name = "precomputed-hash"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
+
+[[package]]
+name = "proc-macro-crate"
+version = "1.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
+dependencies = [
+ "once_cell",
+ "toml_edit 0.19.15",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"
+dependencies = [
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "3.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
+dependencies = [
+ "toml_edit 0.25.15+spec-1.1.0",
+]
+
+[[package]]
+name = "proc-macro-error"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
+dependencies = [
+ "proc-macro-error-attr",
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro-error-attr"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quick-xml"
+version = "0.42.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "r-efi"
+version = "5.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+
+[[package]]
+name = "r-efi"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+
+[[package]]
+name = "raw-window-handle"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+dependencies = [
+ "bitflags 2.13.2",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
+dependencies = [
+ "getrandom 0.2.17",
+ "libredox",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60dc65c0ff1a7ae1294b0c67b9f14baf70b644404010370171787bfac1038fc0"
+dependencies = [
+ "libredox",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "ref-cast"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
+dependencies = [
+ "ref-cast-impl",
+]
+
+[[package]]
+name = "ref-cast-impl"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "regex"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-automata",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-automata"
+version = "0.4.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.8.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
+
+[[package]]
+name = "reqwest"
+version = "0.13.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-core",
+ "futures-util",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "percent-encoding",
+ "pin-project-lite",
+ "serde",
+ "serde_json",
+ "sync_wrapper",
+ "tokio",
+ "tokio-util",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "wasm-streams",
+ "web-sys",
+]
+
+[[package]]
+name = "rustc-hash"
+version = "2.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
+
+[[package]]
+name = "rustc_version"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
+dependencies = [
+ "semver",
+]
+
+[[package]]
+name = "rustix"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
+dependencies = [
+ "bitflags 2.13.2",
+ "errno",
+ "libc",
+ "linux-raw-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
+
+[[package]]
+name = "same-file"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "schemars"
+version = "0.8.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"
+dependencies = [
+ "dyn-clone",
+ "indexmap 1.9.3",
+ "schemars_derive",
+ "serde",
+ "serde_json",
+ "url",
+ "uuid",
+]
+
+[[package]]
+name = "schemars"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars_derive"
+version = "0.8.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde_derive_internals",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "selectors"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"
+dependencies = [
+ "bitflags 2.13.2",
+ "cssparser",
+ "derive_more",
+ "log",
+ "new_debug_unreachable",
+ "phf",
+ "phf_codegen",
+ "precomputed-hash",
+ "rustc-hash",
+ "servo_arc",
+ "smallvec",
+]
+
+[[package]]
+name = "semver"
+version = "1.0.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
+dependencies = [
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "serde"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
+dependencies = [
+ "serde_core",
+ "serde_derive",
+]
+
+[[package]]
+name = "serde-untagged"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"
+dependencies = [
+ "erased-serde",
+ "serde",
+ "serde_core",
+ "typeid",
+]
+
+[[package]]
+name = "serde_core"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "serde_derive_internals"
+version = "0.29.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "serde_json"
+version = "1.0.151"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+dependencies = [
+ "itoa",
+ "memchr",
+ "serde",
+ "serde_core",
+ "zmij",
+]
+
+[[package]]
+name = "serde_repr"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "0.6.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "serde_with"
+version = "3.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f"
+dependencies = [
+ "base64 0.23.1",
+ "bs58",
+ "chrono",
+ "hex",
+ "indexmap 1.9.3",
+ "indexmap 2.14.2",
+ "jiff",
+ "schemars 0.9.0",
+ "schemars 1.2.2",
+ "serde_core",
+ "serde_json",
+ "serde_with_macros",
+ "time",
+]
+
+[[package]]
+name = "serde_with_macros"
+version = "3.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49"
+dependencies = [
+ "darling",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "serialize-to-javascript"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"
+dependencies = [
+ "serde",
+ "serde_json",
+ "serialize-to-javascript-impl",
+]
+
+[[package]]
+name = "serialize-to-javascript-impl"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "servo_arc"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"
+dependencies = [
+ "stable_deref_trait",
+]
+
+[[package]]
+name = "sha2"
+version = "0.10.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
+dependencies = [
+ "cfg-if",
+ "cpufeatures",
+ "digest",
+]
+
+[[package]]
+name = "shlex"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
+[[package]]
+name = "simd-adler32"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
+
+[[package]]
+name = "siphasher"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
+
+[[package]]
+name = "slab"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+
+[[package]]
+name = "smallvec"
+version = "1.16.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e"
+
+[[package]]
+name = "socket2"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "softbuffer"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"
+dependencies = [
+ "bytemuck",
+ "js-sys",
+ "ndk",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "raw-window-handle",
+ "redox_syscall",
+ "tracing",
+ "wasm-bindgen",
+ "web-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "soup3"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f"
+dependencies = [
+ "futures-channel",
+ "gio",
+ "glib",
+ "libc",
+ "soup3-sys",
+]
+
+[[package]]
+name = "soup3-sys"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27"
+dependencies = [
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "stable_deref_trait"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+
+[[package]]
+name = "string_cache"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
+dependencies = [
+ "new_debug_unreachable",
+ "parking_lot",
+ "phf_shared",
+ "precomputed-hash",
+]
+
+[[package]]
+name = "string_cache_codegen"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
+dependencies = [
+ "phf_generator",
+ "phf_shared",
+ "proc-macro2",
+ "quote",
+]
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "swift-rs"
+version = "1.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e45c444e496845d3f2a351146bff59aae4975b2280238df1dfaa0c7d1846f38e"
+dependencies = [
+ "base64 0.21.7",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "syn"
+version = "1.0.109"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
+dependencies = [
+ "proc-macro2",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "sync_wrapper"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
+dependencies = [
+ "futures-core",
+]
+
+[[package]]
+name = "synstructure"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "system-deps"
+version = "6.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"
+dependencies = [
+ "cfg-expr",
+ "heck 0.5.0",
+ "pkg-config",
+ "toml 0.8.2",
+ "version-compare",
+]
+
+[[package]]
+name = "tao"
+version = "0.37.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f37f381f4e048e6cdf038b5705f8cf14ad108279d46eb968140a7b291aba9400"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "core-foundation",
+ "core-graphics",
+ "crossbeam-channel",
+ "dbus",
+ "dispatch2",
+ "dlopen2",
+ "dpi",
+ "gdkwayland-sys",
+ "gdkx11-sys",
+ "gtk",
+ "jni",
+ "libc",
+ "log",
+ "ndk",
+ "ndk-context",
+ "ndk-sys",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "parking_lot",
+ "percent-encoding",
+ "raw-window-handle",
+ "tao-macros",
+ "unicode-segmentation",
+ "url",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
+ "windows-version",
+ "x11-dl",
+]
+
+[[package]]
+name = "tao-macros"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "target-lexicon"
+version = "0.12.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
+
+[[package]]
+name = "tauri"
+version = "2.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb20ef8e6f97d6fe03039666cd82861f09a38b56291fa2f0f9fe140023f61c1a"
+dependencies = [
+ "anyhow",
+ "bytes",
+ "cookie",
+ "dirs 7.0.0",
+ "dunce",
+ "embed_plist",
+ "getrandom 0.3.4",
+ "glob",
+ "gtk",
+ "heck 0.5.0",
+ "http",
+ "jni",
+ "libc",
+ "log",
+ "mime",
+ "muda",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "percent-encoding",
+ "plist",
+ "raw-window-handle",
+ "reqwest",
+ "serde",
+ "serde_json",
+ "serde_repr",
+ "serialize-to-javascript",
+ "swift-rs",
+ "tauri-build",
+ "tauri-macros",
+ "tauri-runtime",
+ "tauri-runtime-wry",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "tokio",
+ "tray-icon",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "window-vibrancy",
+ "windows 0.62.2",
+]
+
+[[package]]
+name = "tauri-build"
+version = "2.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b5ae674f48836f5dd2eeaf9e221c095bd3e78a8d0439c77ca93b48740a1b644"
+dependencies = [
+ "anyhow",
+ "cargo_toml",
+ "dirs 7.0.0",
+ "glob",
+ "heck 0.5.0",
+ "json-patch",
+ "schemars 0.8.22",
+ "semver",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "tauri-winres",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-codegen"
+version = "2.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3926b73ac01df7c14f19ff872cd56e67213a87acc0000ea37ddb300f3d11a3e3"
+dependencies = [
+ "base64 0.22.1",
+ "brotli",
+ "ico",
+ "json-patch",
+ "plist",
+ "png 0.18.1",
+ "proc-macro2",
+ "quote",
+ "semver",
+ "serde",
+ "serde_json",
+ "sha2",
+ "syn 2.0.119",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "time",
+ "url",
+ "uuid",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-macros"
+version = "2.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d21d0fa2c0529972ea6ecaf7404fcf40efac098eda0beb06ca682f41e33a6aa5"
+dependencies = [
+ "heck 0.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "tauri-codegen",
+ "tauri-utils",
+]
+
+[[package]]
+name = "tauri-plugin"
+version = "2.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9ff3ebb9fda56ceb93d46f6cbb126bae82951bf43498543a5163dde5def49a1"
+dependencies = [
+ "anyhow",
+ "glob",
+ "plist",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-plugin-autostart"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d464b4c2a5742cdeaf89d739f0681a8770c380053919dcd3ab9bc65fdb9f7c5f"
+dependencies = [
+ "auto-launch",
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-plugin",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "tauri-plugin-single-instance"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8bed24ed0f31939002fad4568e04ba87ba717cd22f85318b867fc427ab88e11b"
+dependencies = [
+ "serde",
+ "serde_json",
+ "tauri",
+ "thiserror 2.0.21",
+ "tokio",
+ "tracing",
+ "windows-sys 0.60.2",
+ "zbus",
+]
+
+[[package]]
+name = "tauri-runtime"
+version = "2.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9e6d5ef76985b32ff012a43b58df205d25a285e400ca878afcacddc5d5f3238"
+dependencies = [
+ "cookie",
+ "dpi",
+ "gtk",
+ "http",
+ "jni",
+ "objc2",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "raw-window-handle",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "windows 0.62.2",
+]
+
+[[package]]
+name = "tauri-runtime-wry"
+version = "2.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa829eb69860cf1fb0bedb21d2d5f1effce3527d054a68ca1cd7355c654400a3"
+dependencies = [
+ "gtk",
+ "http",
+ "jni",
+ "log",
+ "objc2",
+ "objc2-app-kit",
+ "once_cell",
+ "percent-encoding",
+ "raw-window-handle",
+ "softbuffer",
+ "tao",
+ "tauri-runtime",
+ "tauri-utils",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "windows 0.62.2",
+ "wry",
+]
+
+[[package]]
+name = "tauri-utils"
+version = "2.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4dd257082deff79550de3409ed146104aeaf86fe38649615b04a304144939677"
+dependencies = [
+ "anyhow",
+ "brotli",
+ "cargo_metadata",
+ "ctor",
+ "dom_query",
+ "dunce",
+ "glob",
+ "http",
+ "infer",
+ "json-patch",
+ "log",
+ "memchr",
+ "phf",
+ "plist",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "schemars 0.8.22",
+ "semver",
+ "serde",
+ "serde-untagged",
+ "serde_json",
+ "serde_with",
+ "swift-rs",
+ "thiserror 2.0.21",
+ "toml 1.1.6+spec-1.1.0",
+ "url",
+ "urlpattern",
+ "uuid",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-winres"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6"
+dependencies = [
+ "dunce",
+ "embed-resource",
+ "toml 1.1.6+spec-1.1.0",
+]
+
+[[package]]
+name = "tempfile"
+version = "3.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
+dependencies = [
+ "fastrand",
+ "getrandom 0.4.3",
+ "once_cell",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tendril"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08"
+dependencies = [
+ "new_debug_unreachable",
+]
+
+[[package]]
+name = "thiserror"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
+dependencies = [
+ "thiserror-impl 1.0.69",
+]
+
+[[package]]
+name = "thiserror"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
+dependencies = [
+ "thiserror-impl 2.0.21",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "time"
+version = "0.3.55"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
+dependencies = [
+ "deranged",
+ "num-conv",
+ "powerfmt",
+ "serde_core",
+ "time-core",
+ "time-macros",
+]
+
+[[package]]
+name = "time-core"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
+
+[[package]]
+name = "time-macros"
+version = "0.2.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
+dependencies = [
+ "num-conv",
+ "time-core",
+]
+
+[[package]]
+name = "tinystr"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
+dependencies = [
+ "displaydoc",
+ "zerovec",
+]
+
+[[package]]
+name = "tinyvec"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
+
+[[package]]
+name = "tokio"
+version = "1.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
+dependencies = [
+ "bytes",
+ "libc",
+ "mio",
+ "pin-project-lite",
+ "socket2",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tokio-util"
+version = "0.7.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "futures-sink",
+ "pin-project-lite",
+ "tokio",
+]
+
+[[package]]
+name = "toml"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"
+dependencies = [
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
+]
+
+[[package]]
+name = "toml"
+version = "1.1.6+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "920602543f0911ab71da12c50d59701da54c196d1a2bf5cb4b75667f137a406a"
+dependencies = [
+ "indexmap 2.14.2",
+ "serde_core",
+ "serde_spanned 1.1.1",
+ "toml_datetime 1.1.1+spec-1.1.0",
+ "toml_parser",
+ "toml_writer",
+ "winnow 1.0.4",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "1.1.1+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.19.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
+dependencies = [
+ "indexmap 2.14.2",
+ "toml_datetime 0.6.3",
+ "winnow 0.5.40",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
+dependencies = [
+ "indexmap 2.14.2",
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.3",
+ "winnow 0.5.40",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.25.15+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1340ea94a5856333492c9064b02c778b191dd2c853778d9609debdcdfea3a614"
+dependencies = [
+ "indexmap 2.14.2",
+ "toml_datetime 1.1.1+spec-1.1.0",
+ "toml_parser",
+ "winnow 1.0.4",
+]
+
+[[package]]
+name = "toml_parser"
+version = "1.1.3+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"
+dependencies = [
+ "winnow 1.0.4",
+]
+
+[[package]]
+name = "toml_writer"
+version = "1.1.2+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2"
+
+[[package]]
+name = "tower"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
+dependencies = [
+ "futures-core",
+ "futures-util",
+ "pin-project-lite",
+ "sync_wrapper",
+ "tokio",
+ "tower-layer",
+ "tower-service",
+]
+
+[[package]]
+name = "tower-http"
+version = "0.6.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
+dependencies = [
+ "bitflags 2.13.2",
+ "bytes",
+ "futures-util",
+ "http",
+ "http-body",
+ "pin-project-lite",
+ "tower",
+ "tower-layer",
+ "tower-service",
+ "url",
+]
+
+[[package]]
+name = "tower-layer"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
+
+[[package]]
+name = "tower-service"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
+
+[[package]]
+name = "tracing"
+version = "0.1.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
+dependencies = [
+ "pin-project-lite",
+ "tracing-attributes",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-attributes"
+version = "0.1.31"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "tracing-core"
+version = "0.1.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
+dependencies = [
+ "once_cell",
+]
+
+[[package]]
+name = "tray-icon"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2b9c52859a94554803ccd4a24b98f74148ebc73b90676d783f3490b1bff9d72"
+dependencies = [
+ "crossbeam-channel",
+ "dirs 7.0.0",
+ "libappindicator",
+ "muda",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation",
+ "once_cell",
+ "png 0.18.1",
+ "serde",
+ "thiserror 2.0.21",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "try-lock"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
+
+[[package]]
+name = "typeid"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
+
+[[package]]
+name = "typenum"
+version = "1.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
+
+[[package]]
+name = "uds_windows"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
+dependencies = [
+ "memoffset",
+ "tempfile",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.26"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
+
+[[package]]
+name = "unicode-segmentation"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
+
+[[package]]
+name = "url"
+version = "2.5.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
+dependencies = [
+ "form_urlencoded",
+ "idna",
+ "percent-encoding",
+ "serde",
+ "serde_derive",
+]
+
+[[package]]
+name = "urlpattern"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df16f50ef4cc145211879a3867ba757076b25dfee812040dcb0658bd9ae7904b"
+dependencies = [
+ "icu_properties",
+ "regex",
+ "serde",
+ "url",
+]
+
+[[package]]
+name = "utf8_iter"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
+
+[[package]]
+name = "uuid"
+version = "1.26.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ef6dac1e96601b4fb3acccccff2139741fcb757cb9a36089bf5be91cfb285ce"
+dependencies = [
+ "getrandom 0.4.3",
+ "js-sys",
+ "serde_core",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "version-compare"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e"
+
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
+[[package]]
+name = "vswhom"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"
+dependencies = [
+ "libc",
+ "vswhom-sys",
+]
+
+[[package]]
+name = "vswhom-sys"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"
+dependencies = [
+ "cc",
+ "libc",
+]
+
+[[package]]
+name = "walkdir"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
+dependencies = [
+ "same-file",
+ "winapi-util",
+]
+
+[[package]]
+name = "want"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
+dependencies = [
+ "try-lock",
+]
+
+[[package]]
+name = "wasi"
+version = "0.11.1+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
+
+[[package]]
+name = "wasip2"
+version = "1.0.4+wasi-0.2.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
+dependencies = [
+ "wit-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen"
+version = "0.2.129"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409"
+dependencies = [
+ "cfg-if",
+ "once_cell",
+ "rustversion",
+ "wasm-bindgen-macro",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-futures"
+version = "0.4.79"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e"
+dependencies = [
+ "js-sys",
+ "tokio",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen-macro"
+version = "0.2.129"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535"
+dependencies = [
+ "quote",
+ "wasm-bindgen-macro-support",
+]
+
+[[package]]
+name = "wasm-bindgen-macro-support"
+version = "0.2.129"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7"
+dependencies = [
+ "bumpalo",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-shared"
+version = "0.2.129"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "wasm-streams"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb"
+dependencies = [
+ "futures-util",
+ "js-sys",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
+[[package]]
+name = "web-sys"
+version = "0.3.106"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web_atoms"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"
+dependencies = [
+ "phf",
+ "phf_codegen",
+ "string_cache",
+ "string_cache_codegen",
+]
+
+[[package]]
+name = "webkit2gtk"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793"
+dependencies = [
+ "bitflags 1.3.2",
+ "cairo-rs",
+ "gdk",
+ "gdk-sys",
+ "gio",
+ "gio-sys",
+ "glib",
+ "glib-sys",
+ "gobject-sys",
+ "gtk",
+ "gtk-sys",
+ "javascriptcore-rs",
+ "libc",
+ "once_cell",
+ "soup3",
+ "webkit2gtk-sys",
+]
+
+[[package]]
+name = "webkit2gtk-sys"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5"
+dependencies = [
+ "bitflags 1.3.2",
+ "cairo-sys-rs",
+ "gdk-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "gtk-sys",
+ "javascriptcore-rs-sys",
+ "libc",
+ "pkg-config",
+ "soup3-sys",
+ "system-deps",
+]
+
+[[package]]
+name = "webview2-com"
+version = "0.39.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f89fca7a704cee10dcb3654c1dbb8941d1783132f1917358af75bec37a7d7e6"
+dependencies = [
+ "webview2-com-macros",
+ "webview2-com-sys",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
+]
+
+[[package]]
+name = "webview2-com-macros"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "webview2-com-sys"
+version = "0.39.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3a07132775117d6065853d9d1178157b8c90e228de47129d6bce2c7edebedfb"
+dependencies = [
+ "thiserror 2.0.21",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
+]
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-util"
+version = "0.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "window-vibrancy"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "111e51caca442cafd9bab396628ac4d814880eaea4e63dfd76a12e9f342b5580"
+dependencies = [
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "raw-window-handle",
+ "windows-sys 0.61.2",
+ "windows-version",
+]
+
+[[package]]
+name = "windows"
+version = "0.61.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"
+dependencies = [
+ "windows-collections 0.2.0",
+ "windows-core 0.61.2",
+ "windows-future 0.2.1",
+ "windows-link 0.1.3",
+ "windows-numerics 0.2.0",
+]
+
+[[package]]
+name = "windows"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
+dependencies = [
+ "windows-collections 0.3.2",
+ "windows-core 0.62.2",
+ "windows-future 0.3.2",
+ "windows-numerics 0.3.1",
+]
+
+[[package]]
+name = "windows-collections"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"
+dependencies = [
+ "windows-core 0.61.2",
+]
+
+[[package]]
+name = "windows-collections"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"
+dependencies = [
+ "windows-core 0.62.2",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"
+dependencies = [
+ "windows-implement",
+ "windows-interface",
+ "windows-link 0.1.3",
+ "windows-result 0.3.4",
+ "windows-strings 0.4.2",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
+dependencies = [
+ "windows-implement",
+ "windows-interface",
+ "windows-link 0.2.1",
+ "windows-result 0.4.1",
+ "windows-strings 0.5.1",
+]
+
+[[package]]
+name = "windows-future"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"
+dependencies = [
+ "windows-core 0.61.2",
+ "windows-link 0.1.3",
+ "windows-threading 0.1.0",
+]
+
+[[package]]
+name = "windows-future"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
+dependencies = [
+ "windows-core 0.62.2",
+ "windows-link 0.2.1",
+ "windows-threading 0.2.1",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.59.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-link"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-numerics"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"
+dependencies = [
+ "windows-core 0.61.2",
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-numerics"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
+dependencies = [
+ "windows-core 0.62.2",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
+dependencies = [
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
+dependencies = [
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.45.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
+dependencies = [
+ "windows-targets 0.42.2",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.59.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
+dependencies = [
+ "windows-targets 0.53.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
+dependencies = [
+ "windows_aarch64_gnullvm 0.42.2",
+ "windows_aarch64_msvc 0.42.2",
+ "windows_i686_gnu 0.42.2",
+ "windows_i686_msvc 0.42.2",
+ "windows_x86_64_gnu 0.42.2",
+ "windows_x86_64_gnullvm 0.42.2",
+ "windows_x86_64_msvc 0.42.2",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm 0.52.6",
+ "windows_aarch64_msvc 0.52.6",
+ "windows_i686_gnu 0.52.6",
+ "windows_i686_gnullvm 0.52.6",
+ "windows_i686_msvc 0.52.6",
+ "windows_x86_64_gnu 0.52.6",
+ "windows_x86_64_gnullvm 0.52.6",
+ "windows_x86_64_msvc 0.52.6",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.53.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
+dependencies = [
+ "windows-link 0.2.1",
+ "windows_aarch64_gnullvm 0.53.1",
+ "windows_aarch64_msvc 0.53.1",
+ "windows_i686_gnu 0.53.1",
+ "windows_i686_gnullvm 0.53.1",
+ "windows_i686_msvc 0.53.1",
+ "windows_x86_64_gnu 0.53.1",
+ "windows_x86_64_gnullvm 0.53.1",
+ "windows_x86_64_msvc 0.53.1",
+]
+
+[[package]]
+name = "windows-threading"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"
+dependencies = [
+ "windows-link 0.1.3",
+]
+
+[[package]]
+name = "windows-threading"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"
+dependencies = [
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "windows-version"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631"
+dependencies = [
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
+
+[[package]]
+name = "winnow"
+version = "0.5.40"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winnow"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winreg"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "winreg"
+version = "0.55.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97"
+dependencies = [
+ "cfg-if",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "wit-bindgen"
+version = "0.57.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
+
+[[package]]
+name = "writeable"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
+
+[[package]]
+name = "wry"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a819957a01b3119af85e638a38d242af76dbc87d130dca67bfd0441072e21ff0"
+dependencies = [
+ "base64 0.22.1",
+ "block2",
+ "cookie",
+ "crossbeam-channel",
+ "dirs 7.0.0",
+ "dom_query",
+ "dpi",
+ "dunce",
+ "gdkx11",
+ "gtk",
+ "http",
+ "javascriptcore-rs",
+ "jni",
+ "libc",
+ "ndk",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "once_cell",
+ "percent-encoding",
+ "raw-window-handle",
+ "sha2",
+ "soup3",
+ "tao-macros",
+ "thiserror 2.0.21",
+ "url",
+ "webkit2gtk",
+ "webkit2gtk-sys",
+ "webview2-com",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
+ "windows-version",
+ "x11-dl",
+]
+
+[[package]]
+name = "x11"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "x11-dl"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
+dependencies = [
+ "libc",
+ "once_cell",
+ "pkg-config",
+]
+
+[[package]]
+name = "yoke"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
+dependencies = [
+ "stable_deref_trait",
+ "yoke-derive",
+ "zerofrom",
+]
+
+[[package]]
+name = "yoke-derive"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33811428bee40dbceb6d545e95754741d17a6aef9a4849f0fd62e2ba4f412a78"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+ "synstructure",
+]
+
+[[package]]
+name = "zbus"
+version = "5.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907"
+dependencies = [
+ "async-broadcast",
+ "async-executor",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "async-recursion",
+ "async-task",
+ "async-trait",
+ "blocking",
+ "enumflags2",
+ "event-listener",
+ "futures-core",
+ "futures-lite",
+ "hex",
+ "libc",
+ "ordered-stream",
+ "rustix",
+ "serde",
+ "serde_repr",
+ "tracing",
+ "uds_windows",
+ "uuid",
+ "windows-sys 0.61.2",
+ "winnow 1.0.4",
+ "zbus_macros",
+ "zbus_names",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus_macros"
+version = "5.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+ "zbus_names",
+ "zvariant",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zbus_names"
+version = "4.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8bf88b4a3ff53e883001e0e0115b297a9d53c31b9c1edd2bfdd853e3428624e"
+dependencies = [
+ "serde",
+ "winnow 1.0.4",
+ "zvariant",
+]
+
+[[package]]
+name = "zcheapstr"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d1afec51604565183aeb5c54c20aeab286120d4e4460f7f76e3e8bb8c0d99473"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "zerofrom"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
+dependencies = [
+ "zerofrom-derive",
+]
+
+[[package]]
+name = "zerofrom-derive"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+ "synstructure",
+]
+
+[[package]]
+name = "zerotrie"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
+dependencies = [
+ "displaydoc",
+ "yoke",
+ "zerofrom",
+]
+
+[[package]]
+name = "zerovec"
+version = "0.11.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
+dependencies = [
+ "yoke",
+ "zerofrom",
+ "zerovec-derive",
+]
+
+[[package]]
+name = "zerovec-derive"
+version = "0.11.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+]
+
+[[package]]
+name = "zlib-rs"
+version = "0.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
+
+[[package]]
+name = "zmij"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
+
+[[package]]
+name = "zvariant"
+version = "5.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1d34c27cc6cdd1f458427519dd6b8612f7b7e3f7b9a0b2355d041dda9869147"
+dependencies = [
+ "endi",
+ "enumflags2",
+ "serde",
+ "winnow 1.0.4",
+ "zcheapstr",
+ "zvariant_derive",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_derive"
+version = "5.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "864155e69b4352db0c7f374917bf45d1e0c8d17659c8b3dbf9795f3673f8c497"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.6",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_utils"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde",
+ "syn 3.0.6",
+ "winnow 1.0.4",
+]
diff --git a/windows/Cargo.toml b/windows/Cargo.toml
new file mode 100644
index 00000000..873d4b31
--- /dev/null
+++ b/windows/Cargo.toml
@@ -0,0 +1,17 @@
+[workspace]
+members = ["src-tauri", "hook"]
+resolver = "2"
+
+[workspace.package]
+version = "0.1.0"
+edition = "2021"
+license = "MIT"
+
+# Release profile shared by the app and the hook relay: the hook must start fast
+# (Claude Code spawns it on every event), so we optimise for size and speed.
+[profile.release]
+opt-level = "s"
+lto = true
+codegen-units = 1
+panic = "abort"
+strip = true
diff --git a/windows/hook/Cargo.toml b/windows/hook/Cargo.toml
new file mode 100644
index 00000000..434c45b2
--- /dev/null
+++ b/windows/hook/Cargo.toml
@@ -0,0 +1,13 @@
+[package]
+name = "coucou-hook"
+description = "Relays Claude Code hook events to Coucou over a named pipe"
+version.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[[bin]]
+name = "coucou-hook"
+path = "src/main.rs"
+
+[dependencies]
+serde_json = "1"
diff --git a/windows/hook/src/main.rs b/windows/hook/src/main.rs
new file mode 100644
index 00000000..d689f657
--- /dev/null
+++ b/windows/hook/src/main.rs
@@ -0,0 +1,139 @@
+//! coucou-hook — the relay Claude Code runs on every hook event.
+//!
+//! Reads the hook JSON on stdin, adds a little terminal context, and hands it to
+//! Coucou over the named pipe `\\.\pipe\coucou-<user>`.
+//!
+//! Hard rule (docs/CLAUDE.md): **never block Claude Code.**
+//! * Connecting is given 300 ms. If Coucou is closed, slow or crashed we exit 0
+//! with nothing on stdout and the session carries on untouched.
+//! * Only `PermissionRequest` then waits for an answer, because that is the whole
+//! point of approving from the island. If no answer arrives in time we still
+//! exit 0 with an empty stdout, so Claude Code falls back to asking in the
+//! terminal instead of us silently denying anything.
+//!
+//! Usage: `coucou-hook <EventName>` (the name is also read from the JSON).
+
+use std::io::{Read, Write};
+use std::sync::mpsc;
+use std::time::{Duration, Instant};
+
+/// Budget for getting a pipe connection. Beyond this Claude Code wins, always.
+const CONNECT_TIMEOUT: Duration = Duration::from_millis(300);
+/// How long a permission prompt may stay on screen before the terminal takes over.
+const DECISION_TIMEOUT: Duration = Duration::from_secs(110);
+
+fn pipe_path() -> String {
+ let user = std::env::var("USERNAME").unwrap_or_else(|_| "user".into());
+ format!(r"\\.\pipe\coucou-{user}")
+}
+
+/// Opens the pipe, retrying while the server is busy, within CONNECT_TIMEOUT.
+fn connect() -> Option<std::fs::File> {
+ let path = pipe_path();
+ let deadline = Instant::now() + CONNECT_TIMEOUT;
+ loop {
+ match std::fs::OpenOptions::new().read(true).write(true).open(&path) {
+ Ok(file) => return Some(file),
+ Err(_) if Instant::now() < deadline => std::thread::sleep(Duration::from_millis(15)),
+ Err(_) => return None,
+ }
+ }
+}
+
+fn main() {
+ // Any unexpected problem must still be a clean exit.
+ let _ = std::panic::catch_unwind(run);
+ std::process::exit(0);
+}
+
+fn run() {
+ let mut raw = Vec::new();
+ if std::io::stdin().read_to_end(&mut raw).is_err() || raw.is_empty() {
+ return;
+ }
+
+ let Ok(mut payload) = serde_json::from_slice::<serde_json::Value>(&raw) else { return };
+ let Some(map) = payload.as_object_mut() else { return };
+
+ // The event name is passed as argv[1] by the hook command; the JSON usually
+ // carries it too. Trust argv when the JSON is missing it.
+ let arg_event = std::env::args().nth(1).unwrap_or_default();
+ let event = map
+ .get("hook_event_name")
+ .and_then(|v| v.as_str())
+ .map(str::to_string)
+ .filter(|s| !s.is_empty())
+ .unwrap_or_else(|| arg_event.clone());
+ map.insert("hook_event_name".into(), serde_json::Value::String(event.clone()));
+
+ let cwd_missing = map
+ .get("cwd")
+ .and_then(|v| v.as_str())
+ .map(str::is_empty)
+ .unwrap_or(true);
+ if cwd_missing {
+ if let Ok(cwd) = std::env::current_dir() {
+ map.insert(
+ "cwd".into(),
+ serde_json::Value::String(cwd.to_string_lossy().to_string()),
+ );
+ }
+ }
+
+ // Which terminal the session runs in. Unlike macOS, Coucou on Windows accepts
+ // events from every terminal, so this is context only — never a filter.
+ for (key, var) in [
+ ("term_program", "TERM_PROGRAM"),
+ ("wt_session", "WT_SESSION"),
+ ("term_session_id", "TERM_SESSION_ID"),
+ ("vscode_pid", "VSCODE_PID"),
+ ("session_pid", "CLAUDE_CODE_SSE_PORT"),
+ ] {
+ if !map.contains_key(key) {
+ let value = std::env::var(var).unwrap_or_default();
+ map.insert(key.into(), serde_json::Value::String(value));
+ }
+ }
+
+ let Some(mut pipe) = connect() else { return };
+
+ let mut line = payload.to_string();
+ line.push('\n');
+ if pipe.write_all(line.as_bytes()).is_err() {
+ return;
+ }
+ let _ = pipe.flush();
+
+ if event != "PermissionRequest" {
+ return; // fire and forget
+ }
+
+ // Wait for the island's decision on a helper thread so the timeout is real.
+ let (tx, rx) = mpsc::channel::<String>();
+ std::thread::spawn(move || {
+ let mut buf = Vec::new();
+ let mut chunk = [0u8; 1024];
+ loop {
+ match pipe.read(&mut chunk) {
+ Ok(0) => break,
+ Ok(n) => {
+ buf.extend_from_slice(&chunk[..n]);
+ if buf.contains(&b'\n') {
+ break;
+ }
+ }
+ Err(_) => break,
+ }
+ }
+ let _ = tx.send(String::from_utf8_lossy(&buf).trim().to_string());
+ });
+
+ if let Ok(response) = rx.recv_timeout(DECISION_TIMEOUT) {
+ if response.contains("permissionDecision") {
+ let mut out = std::io::stdout();
+ let _ = writeln!(out, "{response}");
+ let _ = out.flush();
+ }
+ }
+ // No answer: stdout stays empty and Claude Code asks in the terminal.
+}
diff --git a/windows/index.html b/windows/index.html
new file mode 100644
index 00000000..db156ea8
--- /dev/null
+++ b/windows/index.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>Coucou</title>
+ </head>
+ <body>
+ <div id="root"></div>
+ <script type="module" src="/src/main.ts"></script>
+ </body>
+</html>
diff --git a/windows/package-lock.json b/windows/package-lock.json
new file mode 100644
index 00000000..5e06f8bc
--- /dev/null
+++ b/windows/package-lock.json
@@ -0,0 +1,1425 @@
+{
+ "name": "coucou-windows",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "coucou-windows",
+ "version": "0.1.0",
+ "dependencies": {
+ "@tauri-apps/api": "^2"
+ },
+ "devDependencies": {
+ "@tauri-apps/cli": "^2",
+ "typescript": "^5.6.0",
+ "vite": "^6"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",
+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",
+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",
+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",
+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",
+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",
+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",
+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",
+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",
+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",
+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",
+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",
+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",
+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",
+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",
+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",
+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",
+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",
+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",
+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",
+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@napi-rs/lzma-linux-x64-gnu": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz",
+ "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^22.20 || ^24.12 || >=25"
+ }
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.5.tgz",
+ "integrity": "sha512-J25QJU+B78T4FhhBsNpLJyVWOi31mwtpcMwywHmOKH65Q9IWGA81gPj+dnwlhU8wktVriYE+tFAaQgrnJRzAZg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.63.5.tgz",
+ "integrity": "sha512-LDopB3zuZM5Ux9TT2luNEBJW/tYbGU2g1d+VpKk6I+gSKDb+/7sYE6M225gRQt4RbMX6MSwMsVR/phdjVUgRLg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.63.5.tgz",
+ "integrity": "sha512-wlJEERGfeuHeBavCL2qVnNacOK43NDoZM4sjkeRPymd04OAE9T1zBqDJgmZ+CIsPTYKwdzpUC8vmOw84dwY4Tg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.63.5.tgz",
+ "integrity": "sha512-4nJJGg5jbo2wwPP4JP+LfEBA3bvP8rU9CLuhp7jWvq9sxEyhjQFTFdrqi+/dHEin/pd8jpT0vcehIpnZtmEdcQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.63.5.tgz",
+ "integrity": "sha512-DrZbyCDF1hneuO6jRbvZ2D7+PIBM6yIwYnJpg2vIk58T+wuFpiaGZrfUr59lDWw45bg+IrpTGLPiNi/Fk4w3Cg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.63.5.tgz",
+ "integrity": "sha512-gqfUVMJMB3mehqywxp6hTBFfgtMQykZY19+cfiaYP0toIJLb/1DZRJHVkQQGP13W4TAwfZDWeg1qBcheTRioXQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.63.5.tgz",
+ "integrity": "sha512-CFmhpvAwzSaWMlN3VN7UtmoTihlZNzoP0juQib5TQRnYUyDV8dXeWOp29sobWAT6gXl/hQgAClLlEiYozQG3OQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.63.5.tgz",
+ "integrity": "sha512-Uc9H8eXCOayV6JLTH5bXKMId6qbhNHa818/BgYjm4jrlq3vZquC9cqyvHBw17xy5Mnj5f+I3gFK5JcEf3hSqrw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.63.5.tgz",
+ "integrity": "sha512-VcPr/szv/1BFw112Kt//fxulXt/JPqzzidU84iW68L2DdjnOO8QFUv2zTSYBEPHD6movBD4z+bbr5y60GYM7Jw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.63.5.tgz",
+ "integrity": "sha512-BnxtJ5/91BrIHYIkGrmjz/lbMhqEHt1dPFqIxIFR+jPn0xVc/oUSCtIT089zfp5ufwGDlYz2UC+Fe1SRBpYFbQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.63.5.tgz",
+ "integrity": "sha512-LrYcHZwF+fAMNKHYTOQ5osWM4AZF7YF6D+XtsjDyEvljtt11twc+zHVXBLNEjxVSUnKYsOhvVz4Z213eW02COQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.63.5.tgz",
+ "integrity": "sha512-nj7QKQePAAUpCpJHtg0pR0W/b92A9NO17JS3BAQmHDn/yhmkir2p8llrKY9TOhleKIaSzy1JhxS3T9FVld6coA==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.63.5.tgz",
+ "integrity": "sha512-5ylkX6dWMeBKge9nTU+Rxfb+ZfaCIJ9lRqIFaK0eAMcWp7OJbYnLveLgXmm0VrvuLKb8qIK+mHyH0qu88RM+iA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.63.5.tgz",
+ "integrity": "sha512-oHK4ZHYFDKjZviK34I+NwgfbGxgI7ztrNxj2hPTSSNFgeq1a/lEd7dHV2fdGAuTH4Iym3RHJg+vAbWaWG4B7Zg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.63.5.tgz",
+ "integrity": "sha512-UcetmHZ6XOXuUByiKZyQmb55ZPr0LABr3Ec/HB9wKZn6CEAFWZkE+hsJErJ9hbPBC7nI0dKuELx7CoV6IM7TMg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.63.5.tgz",
+ "integrity": "sha512-C5CmDPQBtvjVo8cgQsBs+w6WB0JLkiixhgi6hVLV11hERWdn/p0XcPU2OUcZzac9BPOFq7SbaHFa8r3SWEysCQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.63.5.tgz",
+ "integrity": "sha512-lHVQHJFKsuuxLMi3MQO9XVL8Tje3JR82CzB+QDKC5NWBcsIWuwsn9uIM5e3lBhI+fF1/s63qnyYqsg65+8rV/w==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.63.5.tgz",
+ "integrity": "sha512-3W9bTFcQNJn71cSJVM9RKIiZOy8DO/XLDii8Uv/Pm6WKqDRj7JV3ZfuXIEfyuy5LXpIzAbB/1M4Ukp9GKNa7nA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.63.5.tgz",
+ "integrity": "sha512-VDC7rRJlee/scpki96GZ27Omf6yU87s1YXwVTpjE5841faVlDYYT565rgfmoR1U0sqL7z5ivQSDjcsF6VRXyBA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-openbsd-x64": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.63.5.tgz",
+ "integrity": "sha512-z86Ok2p4pTdv5xqCKZsTooO7yBEiaJR/HzU3Wx8RmWsPoLppnMKROhJusQob8B3IE1ghC343kUW9rC2r+Wf3ig==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.63.5.tgz",
+ "integrity": "sha512-IzQmj+xXwQFGhMAMKMQVXkMwMZN3TqkJgAE0nSsqvVwWWciP4AIPMmWRqOQ2GfX7TUDZr+xqGFcBS36CRPGw0g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.63.5.tgz",
+ "integrity": "sha512-F6qpTaPc9bwBH85kjy0/BLmLSW1uv7AoOXCoRIkg2arlgCYlWYcAbiMkvZuAcaWk9TpCRG//okznLAqLGshkMw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.63.5.tgz",
+ "integrity": "sha512-igoDsTFhhwECBeGbUuLeIk7t8Y1apa+cs6mDWpx2EZ0ch7oEQgzHbFUXN9euoHekCAQzXdXApAGkV6jznS7tWw==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.63.5.tgz",
+ "integrity": "sha512-U3teMeMbXFmaM5D+OTJpsOXd+wV/qftIeYF9kBKL4v73641qyJmoXFtA28DQLsnmlyayEsTe72xpLHrArq6vHw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.63.5.tgz",
+ "integrity": "sha512-ypfC34F3RKXvCXBglGqGMsUSMKlgwd1HX9AOAlx9RoZZ6GaI42YHVeKpzg3JG+wpBUJYTG+NNZhqbDWL8tBZkw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@tauri-apps/api": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.12.0.tgz",
+ "integrity": "sha512-fUSxFX8VABYe9W9K5ROdEaKVkNUFRcMSRofjruvaxztXA+I0XnQHcYHF8m/a6iExRUxsUf0HsFWhPBuH9IgzJw==",
+ "license": "Apache-2.0 OR MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/tauri"
+ }
+ },
+ "node_modules/@tauri-apps/cli": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.12.0.tgz",
+ "integrity": "sha512-GIShnAR4C16kSTA8NO02fo8fOw/I5z5sAUEB5S2HlPHFnBkbihL4c9a/MpkxOm1+q5S+tFd3X4QUjHWxfyGzpQ==",
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "bin": {
+ "tauri": "tauri.js"
+ },
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/tauri"
+ },
+ "optionalDependencies": {
+ "@tauri-apps/cli-darwin-arm64": "2.12.0",
+ "@tauri-apps/cli-darwin-x64": "2.12.0",
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.12.0",
+ "@tauri-apps/cli-linux-arm64-gnu": "2.12.0",
+ "@tauri-apps/cli-linux-arm64-musl": "2.12.0",
+ "@tauri-apps/cli-linux-riscv64-gnu": "2.12.0",
+ "@tauri-apps/cli-linux-x64-gnu": "2.12.0",
+ "@tauri-apps/cli-linux-x64-musl": "2.12.0",
+ "@tauri-apps/cli-win32-arm64-msvc": "2.12.0",
+ "@tauri-apps/cli-win32-ia32-msvc": "2.12.0",
+ "@tauri-apps/cli-win32-x64-msvc": "2.12.0"
+ }
+ },
+ "node_modules/@tauri-apps/cli-darwin-arm64": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.12.0.tgz",
+ "integrity": "sha512-v5J+jISihLGtih1+3yWagbsL+5dbLZORu4vaSI0vhY0Heb+MAW+T/1s1RyKxrQrwEPGBG5kqwfDDTnSbmVkuqA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-darwin-x64": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.12.0.tgz",
+ "integrity": "sha512-g27I07pfW/dMS8vcNqB9lamgKF0TqLlcy8e7t9qDGsB1iaeyjJWb2TgBF4tM9ZwLqPAZUXbsz28oXljO12WC4g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.12.0.tgz",
+ "integrity": "sha512-gXyQ710fNc99YuxFxNyeX9PLSrIpbtgBBj7GQo9tSeRT6fIK40q3/gm7X5jqZo7mWLR2m0R/2ALd3vAWo0Z32Q==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.12.0.tgz",
+ "integrity": "sha512-H9cyXuq9WgxoHh2NZ+R+oN+W78x5UwaBDEp0/fmqUUkaBoioCuOZErM9xKiIV6bpNAhmw1RoWZ49u37q/vaiAg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.12.0.tgz",
+ "integrity": "sha512-5tFuk3JKMBa1M/iN4gN32OYlSfhY3aqb5PO3zCugxaT+sfecyMKpc3EM9VDbhmwWBE9QD4Tfj7wGhlqx2yy2pQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.12.0.tgz",
+ "integrity": "sha512-LOrMyV+nb7pKq8P0BZtTBQuyzm1ORjn16R9MlupmxuT5LqxtuYJlw3VMwbaeXCToJ8jbP5u9JnkfmbqDlvETXw==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.12.0.tgz",
+ "integrity": "sha512-aMIkI+X9qvD2+k80QZB3tuOYT41/cEheikC510CwAIZ31KLXORsRASYYzM4mi1/58ICmtzSLFhCC08keir7COw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-x64-musl": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.12.0.tgz",
+ "integrity": "sha512-9gl3NhUbfuGhSKjeGCypKSdtoezOQRcDUrkhTWtLQEjnajets6peO6NadgI2DF0OzbiiFOzrnnIGMwBS+Ap6Iw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.12.0.tgz",
+ "integrity": "sha512-1W+v86wsYLuyBDN0iDessD4CD9o+yNyO0m8Dp3+/vfjiZrJ/v7R7/aTRBeikaq2tLGgxeag0gxnFggBNBGw91A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.12.0.tgz",
+ "integrity": "sha512-SsBjvq4f7YaBGqcWoE3cycoItPf0SrQeqFqWWgfxoeZWAIz01E31LDSeZ2p/etJiIY0R9oi045chkFfb0O7WGw==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.12.0.tgz",
+ "integrity": "sha512-9zzDKYUH4TKKBgRdDdVQX8fiRO5gJ8hD1nGsHU9DOHG5Jpm3arjbu9Xg1frR20EusG3Sl8X0dppoO/4EoUXUGg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/esbuild": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",
+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.25.12",
+ "@esbuild/android-arm": "0.25.12",
+ "@esbuild/android-arm64": "0.25.12",
+ "@esbuild/android-x64": "0.25.12",
+ "@esbuild/darwin-arm64": "0.25.12",
+ "@esbuild/darwin-x64": "0.25.12",
+ "@esbuild/freebsd-arm64": "0.25.12",
+ "@esbuild/freebsd-x64": "0.25.12",
+ "@esbuild/linux-arm": "0.25.12",
+ "@esbuild/linux-arm64": "0.25.12",
+ "@esbuild/linux-ia32": "0.25.12",
+ "@esbuild/linux-loong64": "0.25.12",
+ "@esbuild/linux-mips64el": "0.25.12",
+ "@esbuild/linux-ppc64": "0.25.12",
+ "@esbuild/linux-riscv64": "0.25.12",
+ "@esbuild/linux-s390x": "0.25.12",
+ "@esbuild/linux-x64": "0.25.12",
+ "@esbuild/netbsd-arm64": "0.25.12",
+ "@esbuild/netbsd-x64": "0.25.12",
+ "@esbuild/openbsd-arm64": "0.25.12",
+ "@esbuild/openbsd-x64": "0.25.12",
+ "@esbuild/openharmony-arm64": "0.25.12",
+ "@esbuild/sunos-x64": "0.25.12",
+ "@esbuild/win32-arm64": "0.25.12",
+ "@esbuild/win32-ia32": "0.25.12",
+ "@esbuild/win32-x64": "0.25.12"
+ }
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.19",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",
+ "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.28",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",
+ "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.18",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.63.5",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.63.5.tgz",
+ "integrity": "sha512-KRWwmNLlPw5M7HcdYfm15oBv9n9LPtjzpzCIxS/phwqvPyxHSoKX6Y2YU3pxSPfy0CLquVgsx/j/hBi6OvH1Nw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.9"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@napi-rs/lzma-linux-x64-gnu": "1.5.1",
+ "@rollup/rollup-android-arm-eabi": "4.63.5",
+ "@rollup/rollup-android-arm64": "4.63.5",
+ "@rollup/rollup-darwin-arm64": "4.63.5",
+ "@rollup/rollup-darwin-x64": "4.63.5",
+ "@rollup/rollup-freebsd-arm64": "4.63.5",
+ "@rollup/rollup-freebsd-x64": "4.63.5",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.63.5",
+ "@rollup/rollup-linux-arm-musleabihf": "4.63.5",
+ "@rollup/rollup-linux-arm64-gnu": "4.63.5",
+ "@rollup/rollup-linux-arm64-musl": "4.63.5",
+ "@rollup/rollup-linux-loong64-gnu": "4.63.5",
+ "@rollup/rollup-linux-loong64-musl": "4.63.5",
+ "@rollup/rollup-linux-ppc64-gnu": "4.63.5",
+ "@rollup/rollup-linux-ppc64-musl": "4.63.5",
+ "@rollup/rollup-linux-riscv64-gnu": "4.63.5",
+ "@rollup/rollup-linux-riscv64-musl": "4.63.5",
+ "@rollup/rollup-linux-s390x-gnu": "4.63.5",
+ "@rollup/rollup-linux-x64-gnu": "4.63.5",
+ "@rollup/rollup-linux-x64-musl": "4.63.5",
+ "@rollup/rollup-openbsd-x64": "4.63.5",
+ "@rollup/rollup-openharmony-arm64": "4.63.5",
+ "@rollup/rollup-win32-arm64-msvc": "4.63.5",
+ "@rollup/rollup-win32-ia32-msvc": "4.63.5",
+ "@rollup/rollup-win32-x64-gnu": "4.63.5",
+ "@rollup/rollup-win32-x64-msvc": "4.63.5",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.17",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/vite": {
+ "version": "6.4.3",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz",
+ "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.25.0",
+ "fdir": "^6.4.4",
+ "picomatch": "^4.0.2",
+ "postcss": "^8.5.3",
+ "rollup": "^4.34.9",
+ "tinyglobby": "^0.2.13"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
+ "jiti": ">=1.21.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "sass-embedded": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ }
+ }
+}
diff --git a/windows/package.json b/windows/package.json
new file mode 100644
index 00000000..2018d6ca
--- /dev/null
+++ b/windows/package.json
@@ -0,0 +1,21 @@
+{
+ "name": "coucou-windows",
+ "private": true,
+ "version": "0.1.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "tsc --noEmit && vite build",
+ "preview": "vite preview",
+ "icons": "node scripts/gen-icons.mjs",
+ "tauri": "tauri"
+ },
+ "devDependencies": {
+ "@tauri-apps/cli": "^2",
+ "typescript": "^5.6.0",
+ "vite": "^6"
+ },
+ "dependencies": {
+ "@tauri-apps/api": "^2"
+ }
+}
diff --git a/windows/scripts/gen-icons.mjs b/windows/scripts/gen-icons.mjs
new file mode 100644
index 00000000..5de9ad1e
--- /dev/null
+++ b/windows/scripts/gen-icons.mjs
@@ -0,0 +1,200 @@
+// Draws Mochi into the PNG/ICO set Tauri needs. No dependencies: the icons are
+// rasterised here and encoded with node:zlib, so the app icon stays "drawn in
+// code" like the character itself.
+//
+// node scripts/gen-icons.mjs
+
+import { deflateSync } from "node:zlib";
+import { mkdirSync, writeFileSync } from "node:fs";
+import { dirname, join } from "node:path";
+import { fileURLToPath } from "node:url";
+
+const OUT = join(dirname(fileURLToPath(import.meta.url)), "..", "src-tauri", "icons");
+
+// ── Mochi ─────────────────────────────────────────────────────────────────────
+
+const BASE_TOP = [255, 250, 245]; // #FFFAF5
+const BASE_BOTTOM = [221, 204, 191]; // #DDCCBF
+const INK = [26, 20, 18]; // #1A1412
+const RIM = [0, 0, 0];
+
+const SS = 4; // supersampling factor
+
+/** Superellipse (exponent 2.7) test in body-local coordinates. */
+function insideBody(x, y, rx, ry) {
+ const n = 2.7;
+ return Math.pow(Math.abs(x / rx), n) + Math.pow(Math.abs(y / ry), n) <= 1;
+}
+
+function insidePill(x, y, w, h) {
+ const hw = w / 2;
+ const hh = h / 2;
+ const r = Math.min(hw, hh);
+ const cx = Math.max(-hw + r, Math.min(hw - r, x));
+ const cy = Math.max(-hh + r, Math.min(hh - r, y));
+ return (x - cx) ** 2 + (y - cy) ** 2 <= r * r;
+}
+
+function renderMochi(size) {
+ const px = new Uint8Array(size * size * 4);
+ const R = size * 0.34;
+ const rx = R * 1.14;
+ const ry = R * 0.88;
+ const cx = size / 2;
+ const cy = size / 2 + R * 0.06;
+ const rim = R * 0.055; // dark outline so the tray icon reads on light themes
+
+ // Eyes — same geometry as BotEngine (yaw ±0.37, pitch −0.12)
+ const eyeYaw = 0.37;
+ const eyePitch = -0.12;
+ const cp = Math.cos(eyePitch);
+ const ex = Math.sin(eyeYaw) * cp * rx;
+ const ey = -Math.sin(eyePitch) * ry;
+ const fx = Math.max(0.18, Math.cos(eyeYaw));
+ const fy = Math.max(0.18, cp);
+ const ew = R * 0.25 * fx;
+ const eh = R * 0.27 * fy;
+
+ for (let y = 0; y < size; y++) {
+ for (let x = 0; x < size; x++) {
+ let bodyHits = 0;
+ let rimHits = 0;
+ let eyeHits = 0;
+ for (let sy = 0; sy < SS; sy++) {
+ for (let sx = 0; sx < SS; sx++) {
+ const px0 = x + (sx + 0.5) / SS - cx;
+ const py0 = y + (sy + 0.5) / SS - cy;
+ if (!insideBody(px0, py0, rx + rim, ry + rim)) continue;
+ rimHits++;
+ if (!insideBody(px0, py0, rx, ry)) continue;
+ bodyHits++;
+ if (
+ insidePill(px0 + ex, py0 - ey, ew, eh) ||
+ insidePill(px0 - ex, py0 - ey, ew, eh)
+ ) {
+ eyeHits++;
+ }
+ }
+ }
+ if (rimHits === 0) continue;
+
+ const total = SS * SS;
+ const rimA = rimHits / total;
+ const bodyA = bodyHits / total;
+ const eyeA = eyeHits / total;
+
+ // Body gradient: top-right → bottom-left, like the Canvas gradient.
+ const t = Math.min(1, Math.max(0, ((x - cx) * -0.6 + (y - cy) * 0.8) / (2 * ry) + 0.5));
+ const body = [0, 1, 2].map((i) => BASE_TOP[i] + (BASE_BOTTOM[i] - BASE_TOP[i]) * t);
+
+ // rim under body, body over rim, eyes over body
+ let col = RIM.slice();
+ let alpha = rimA;
+ if (bodyA > 0) {
+ col = col.map((c, i) => c * (1 - bodyA / rimA) + body[i] * (bodyA / rimA));
+ alpha = rimA;
+ }
+ if (eyeA > 0) {
+ col = col.map((c, i) => c * (1 - eyeA) + INK[i] * eyeA);
+ }
+
+ const o = (y * size + x) * 4;
+ px[o] = Math.round(col[0]);
+ px[o + 1] = Math.round(col[1]);
+ px[o + 2] = Math.round(col[2]);
+ px[o + 3] = Math.round(Math.min(1, alpha) * 255);
+ }
+ }
+ return px;
+}
+
+// ── PNG ───────────────────────────────────────────────────────────────────────
+
+const CRC_TABLE = (() => {
+ const t = new Uint32Array(256);
+ for (let n = 0; n < 256; n++) {
+ let c = n;
+ for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;
+ t[n] = c >>> 0;
+ }
+ return t;
+})();
+
+function crc32(buf) {
+ let c = 0xffffffff;
+ for (const b of buf) c = CRC_TABLE[(c ^ b) & 0xff] ^ (c >>> 8);
+ return (c ^ 0xffffffff) >>> 0;
+}
+
+function chunk(type, data) {
+ const len = Buffer.alloc(4);
+ len.writeUInt32BE(data.length);
+ const body = Buffer.concat([Buffer.from(type, "ascii"), data]);
+ const crc = Buffer.alloc(4);
+ crc.writeUInt32BE(crc32(body));
+ return Buffer.concat([len, body, crc]);
+}
+
+function encodePNG(size, rgba) {
+ const ihdr = Buffer.alloc(13);
+ ihdr.writeUInt32BE(size, 0);
+ ihdr.writeUInt32BE(size, 4);
+ ihdr[8] = 8; // bit depth
+ ihdr[9] = 6; // RGBA
+ const raw = Buffer.alloc(size * (size * 4 + 1));
+ for (let y = 0; y < size; y++) {
+ raw[y * (size * 4 + 1)] = 0; // filter: none
+ Buffer.from(rgba.buffer, y * size * 4, size * 4).copy(raw, y * (size * 4 + 1) + 1);
+ }
+ return Buffer.concat([
+ Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]),
+ chunk("IHDR", ihdr),
+ chunk("IDAT", deflateSync(raw, { level: 9 })),
+ chunk("IEND", Buffer.alloc(0)),
+ ]);
+}
+
+// ── ICO (PNG-in-ICO, Vista and later) ─────────────────────────────────────────
+
+function encodeICO(entries) {
+ const header = Buffer.alloc(6);
+ header.writeUInt16LE(0, 0);
+ header.writeUInt16LE(1, 2);
+ header.writeUInt16LE(entries.length, 4);
+ const dir = Buffer.alloc(16 * entries.length);
+ let offset = header.length + dir.length;
+ entries.forEach((e, i) => {
+ const o = i * 16;
+ dir[o] = e.size >= 256 ? 0 : e.size;
+ dir[o + 1] = e.size >= 256 ? 0 : e.size;
+ dir[o + 2] = 0;
+ dir[o + 3] = 0;
+ dir.writeUInt16LE(1, o + 4);
+ dir.writeUInt16LE(32, o + 6);
+ dir.writeUInt32LE(e.png.length, o + 8);
+ dir.writeUInt32LE(offset, o + 12);
+ offset += e.png.length;
+ });
+ return Buffer.concat([header, dir, ...entries.map((e) => e.png)]);
+}
+
+// ── Go ────────────────────────────────────────────────────────────────────────
+
+mkdirSync(OUT, { recursive: true });
+
+const png = (size) => encodePNG(size, renderMochi(size));
+
+const files = {
+ "32x32.png": png(32),
+ "128x128.png": png(128),
+ "[email protected]": png(256),
+ "icon.png": png(512),
+};
+for (const [name, data] of Object.entries(files)) {
+ writeFileSync(join(OUT, name), data);
+ console.log(`${name} — ${data.length} bytes`);
+}
+
+const ico = encodeICO([16, 24, 32, 48, 64, 128, 256].map((size) => ({ size, png: png(size) })));
+writeFileSync(join(OUT, "icon.ico"), ico);
+console.log(`icon.ico — ${ico.length} bytes`);
diff --git a/windows/src-tauri/Cargo.toml b/windows/src-tauri/Cargo.toml
new file mode 100644
index 00000000..3ba67a7e
--- /dev/null
+++ b/windows/src-tauri/Cargo.toml
@@ -0,0 +1,25 @@
+[package]
+name = "coucou"
+description = "Coucou for Windows — Mochi lives at the top of your screen"
+authors = ["Louis Raille"]
+version.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[lib]
+name = "coucou_lib"
+crate-type = ["staticlib", "cdylib", "rlib"]
+
+[build-dependencies]
+tauri-build = { version = "2", features = [] }
+
+[dependencies]
+tauri = { version = "2", features = ["tray-icon"] }
+tauri-plugin-single-instance = "2"
+tauri-plugin-autostart = "2"
+serde = { version = "1", features = ["derive"] }
+serde_json = "1"
+windows = { version = "0.61", features = [
+ "Win32_Foundation",
+ "Win32_UI_WindowsAndMessaging",
+] }
diff --git a/windows/src-tauri/build.rs b/windows/src-tauri/build.rs
new file mode 100644
index 00000000..d860e1e6
--- /dev/null
+++ b/windows/src-tauri/build.rs
@@ -0,0 +1,3 @@
+fn main() {
+ tauri_build::build()
+}
diff --git a/windows/src-tauri/capabilities/default.json b/windows/src-tauri/capabilities/default.json
new file mode 100644
index 00000000..4ad5a962
--- /dev/null
+++ b/windows/src-tauri/capabilities/default.json
@@ -0,0 +1,7 @@
+{
+ "$schema": "../gen/schemas/desktop-schema.json",
+ "identifier": "default",
+ "description": "What the island window is allowed to do. Everything that touches the OS goes through Coucou's own commands.",
+ "windows": ["island"],
+ "permissions": ["core:default", "autostart:default"]
+}
diff --git a/windows/src-tauri/icons/128x128.png b/windows/src-tauri/icons/128x128.png
new file mode 100644
index 00000000..a23cf78f
Binary files /dev/null and b/windows/src-tauri/icons/128x128.png differ
diff --git a/windows/src-tauri/icons/[email protected] b/windows/src-tauri/icons/[email protected]
new file mode 100644
index 00000000..8dd6bc5b
Binary files /dev/null and b/windows/src-tauri/icons/[email protected] differ
diff --git a/windows/src-tauri/icons/32x32.png b/windows/src-tauri/icons/32x32.png
new file mode 100644
index 00000000..95db9f29
Binary files /dev/null and b/windows/src-tauri/icons/32x32.png differ
diff --git a/windows/src-tauri/icons/icon.ico b/windows/src-tauri/icons/icon.ico
new file mode 100644
index 00000000..d3594f5f
Binary files /dev/null and b/windows/src-tauri/icons/icon.ico differ
diff --git a/windows/src-tauri/icons/icon.png b/windows/src-tauri/icons/icon.png
new file mode 100644
index 00000000..96b35fb8
Binary files /dev/null and b/windows/src-tauri/icons/icon.png differ
diff --git a/windows/src-tauri/src/island.rs b/windows/src-tauri/src/island.rs
new file mode 100644
index 00000000..eb0f56be
--- /dev/null
+++ b/windows/src-tauri/src/island.rs
@@ -0,0 +1,216 @@
+// Island window: placement on the chosen display, the two window sizes
+// (full panel / invisible wake strip), click-through and the cursor poll.
+//
+// There is no notch on a PC, so the island is a black shape drawn at the top
+// centre of the main display inside a borderless, transparent, always-on-top
+// window that never takes focus.
+
+use std::sync::atomic::AtomicBool;
+use std::sync::{Arc, Condvar, Mutex};
+use std::time::Duration;
+
+use serde::Serialize;
+use tauri::{AppHandle, Emitter, Manager, Monitor, PhysicalPosition, PhysicalSize, WebviewWindow};
+
+use windows::Win32::Foundation::{HWND, POINT};
+use windows::Win32::UI::WindowsAndMessaging::{
+ GetCursorPos, GetWindowLongPtrW, SetWindowLongPtrW, GWL_EXSTYLE, WS_EX_NOACTIVATE,
+ WS_EX_TOOLWINDOW,
+};
+
+/// Logical size of the full window — the largest island view, like the macOS panel.
+pub const PANEL_W: f64 = 720.0;
+pub const PANEL_H: f64 = 320.0;
+/// Logical size of the invisible strip that wakes the island when it is hidden.
+pub const STRIP_W: f64 = 240.0;
+pub const STRIP_H: f64 = 6.0;
+
+pub const WINDOW_LABEL: &str = "island";
+
+#[derive(Serialize, Clone)]
+pub struct CursorPayload {
+ pub x: f64,
+ pub y: f64,
+}
+
+#[derive(Serialize, Clone)]
+pub struct ScreenInfo {
+ pub x: f64,
+ pub y: f64,
+ pub width: f64,
+ pub height: f64,
+ pub scale: f64,
+}
+
+/// Wakes / parks the cursor poll thread so a hidden island costs literally nothing.
+pub struct PollGate {
+ active: Mutex<bool>,
+ cv: Condvar,
+ pub collapsed: AtomicBool,
+}
+
+impl PollGate {
+ pub fn new() -> Self {
+ Self {
+ active: Mutex::new(false),
+ cv: Condvar::new(),
+ collapsed: AtomicBool::new(true),
+ }
+ }
+
+ pub fn set_active(&self, on: bool) {
+ let mut guard = self.active.lock().unwrap();
+ *guard = on;
+ self.cv.notify_all();
+ }
+
+ fn wait_until_active(&self) {
+ let mut guard = self.active.lock().unwrap();
+ while !*guard {
+ guard = self.cv.wait(guard).unwrap();
+ }
+ }
+
+ fn is_active(&self) -> bool {
+ *self.active.lock().unwrap()
+ }
+}
+
+pub fn window(app: &AppHandle) -> Option<WebviewWindow> {
+ app.get_webview_window(WINDOW_LABEL)
+}
+
+fn cursor_physical() -> Option<(f64, f64)> {
+ let mut p = POINT::default();
+ unsafe { GetCursorPos(&mut p).ok()? };
+ Some((p.x as f64, p.y as f64))
+}
+
+fn monitor_contains(m: &Monitor, x: f64, y: f64) -> bool {
+ let p = m.position();
+ let s = m.size();
+ x >= p.x as f64
+ && x < (p.x + s.width as i32) as f64
+ && y >= p.y as f64
+ && y < (p.y + s.height as i32) as f64
+}
+
+/// The display the island lives on: the primary one, or the one under the cursor.
+fn target_monitor(app: &AppHandle, pref: &str) -> Option<Monitor> {
+ let monitors = app.available_monitors().ok()?;
+ if pref == "cursor" {
+ if let Some((cx, cy)) = cursor_physical() {
+ if let Some(m) = monitors.iter().find(|m| monitor_contains(m, cx, cy)) {
+ return Some(m.clone());
+ }
+ }
+ }
+ app.primary_monitor()
+ .ok()
+ .flatten()
+ .or_else(|| monitors.into_iter().next())
+}
+
+pub fn screen_info(app: &AppHandle, pref: &str) -> ScreenInfo {
+ match target_monitor(app, pref) {
+ Some(m) => {
+ let scale = m.scale_factor();
+ let p = m.position();
+ let s = m.size();
+ ScreenInfo {
+ x: p.x as f64 / scale,
+ y: p.y as f64 / scale,
+ width: s.width as f64 / scale,
+ height: s.height as f64 / scale,
+ scale,
+ }
+ }
+ None => ScreenInfo { x: 0.0, y: 0.0, width: 1920.0, height: 1080.0, scale: 1.0 },
+ }
+}
+
+/// Places and sizes the window. `collapsed` picks the wake strip instead of the panel.
+pub fn apply_geometry(app: &AppHandle, pref: &str, collapsed: bool) {
+ let Some(win) = window(app) else { return };
+ let Some(m) = target_monitor(app, pref) else { return };
+
+ let scale = m.scale_factor();
+ let mp = *m.position();
+ let ms = *m.size();
+
+ let (lw, lh) = if collapsed { (STRIP_W, STRIP_H) } else { (PANEL_W, PANEL_H) };
+ let pw = (lw * scale).round().max(1.0) as u32;
+ let ph = (lh * scale).round().max(1.0) as u32;
+ let x = mp.x + (ms.width as i32 - pw as i32) / 2;
+ let y = mp.y;
+
+ let _ = win.set_size(PhysicalSize::new(pw, ph));
+ let _ = win.set_position(PhysicalPosition::new(x, y));
+ // Moving across displays can rescale the window: re-assert the physical size.
+ let _ = win.set_size(PhysicalSize::new(pw, ph));
+ let _ = win.set_always_on_top(true);
+}
+
+fn hwnd_of(win: &WebviewWindow) -> Option<HWND> {
+ let raw = win.hwnd().ok()?.0 as isize;
+ if raw == 0 {
+ return None;
+ }
+ Some(HWND(raw as *mut _))
+}
+
+/// WS_EX_NOACTIVATE keeps clicks from stealing focus; WS_EX_TOOLWINDOW keeps the
+/// island out of Alt-Tab.
+pub fn make_non_activating(win: &WebviewWindow) {
+ let Some(hwnd) = hwnd_of(win) else { return };
+ unsafe {
+ let ex = GetWindowLongPtrW(hwnd, GWL_EXSTYLE);
+ let want = ex | WS_EX_NOACTIVATE.0 as isize | WS_EX_TOOLWINDOW.0 as isize;
+ SetWindowLongPtrW(hwnd, GWL_EXSTYLE, want);
+ }
+}
+
+/// Temporarily allow activation so a text field inside the island can be typed in.
+pub fn set_activating(win: &WebviewWindow, activating: bool) {
+ let Some(hwnd) = hwnd_of(win) else { return };
+ unsafe {
+ let ex = GetWindowLongPtrW(hwnd, GWL_EXSTYLE);
+ let want = if activating {
+ ex & !(WS_EX_NOACTIVATE.0 as isize)
+ } else {
+ ex | WS_EX_NOACTIVATE.0 as isize
+ };
+ SetWindowLongPtrW(hwnd, GWL_EXSTYLE, want);
+ }
+}
+
+/// Emits `cursor` (window-logical coordinates) at ~60 Hz while the island is
+/// visible. Parked on a condvar the rest of the time.
+pub fn spawn_cursor_poll(app: AppHandle, gate: Arc<PollGate>) {
+ std::thread::spawn(move || {
+ loop {
+ gate.wait_until_active();
+ let mut last = (f64::MIN, f64::MIN);
+ while gate.is_active() {
+ std::thread::sleep(Duration::from_millis(16));
+ let Some(win) = window(&app) else { continue };
+ let Ok(origin) = win.outer_position() else { continue };
+ let scale = win.scale_factor().unwrap_or(1.0);
+ let Some((cx, cy)) = cursor_physical() else { continue };
+ let x = (cx - origin.x as f64) / scale;
+ let y = (cy - origin.y as f64) / scale;
+ if (x - last.0).abs() < 1.0 && (y - last.1).abs() < 1.0 {
+ continue;
+ }
+ last = (x, y);
+ let _ = win.emit("cursor", CursorPayload { x, y });
+ }
+ }
+ });
+}
+
+pub fn set_ignore_cursor(app: &AppHandle, ignore: bool) {
+ if let Some(win) = window(app) {
+ let _ = win.set_ignore_cursor_events(ignore);
+ }
+}
diff --git a/windows/src-tauri/src/lib.rs b/windows/src-tauri/src/lib.rs
new file mode 100644
index 00000000..222a1651
--- /dev/null
+++ b/windows/src-tauri/src/lib.rs
@@ -0,0 +1,190 @@
+// Coucou for Windows — app wiring and the commands the island calls.
+
+mod island;
+mod settings;
+mod tray;
+
+use std::os::windows::process::CommandExt;
+use std::process::Command;
+use std::sync::atomic::Ordering;
+use std::sync::{Arc, Mutex};
+
+use serde::Serialize;
+use tauri::{AppHandle, Emitter, State};
+use tauri_plugin_autostart::{ManagerExt, MacosLauncher};
+
+use island::{PollGate, ScreenInfo};
+use settings::Settings;
+
+/// Keeps spawned helpers from flashing a console window.
+const CREATE_NO_WINDOW: u32 = 0x0800_0000;
+
+pub struct Shared {
+ pub settings: Mutex<Settings>,
+ pub gate: Arc<PollGate>,
+}
+
+#[derive(Serialize)]
+#[serde(rename_all = "camelCase")]
+pub struct BootInfo {
+ settings: Settings,
+ screen: ScreenInfo,
+ version: String,
+ hook_path: String,
+}
+
+#[tauri::command]
+fn boot(app: AppHandle, shared: State<Shared>) -> BootInfo {
+ let settings = shared.settings.lock().unwrap().clone();
+ let screen = island::screen_info(&app, &settings.screen);
+ BootInfo {
+ settings,
+ screen,
+ version: env!("CARGO_PKG_VERSION").to_string(),
+ hook_path: settings::hook_exe_path().to_string_lossy().to_string(),
+ }
+}
+
+#[tauri::command]
+fn save_settings(app: AppHandle, shared: State<Shared>, settings: Settings) {
+ let (screen_changed, autostart_changed) = {
+ let mut current = shared.settings.lock().unwrap();
+ let screen_changed = current.screen != settings.screen;
+ let autostart_changed = current.autostart != settings.autostart;
+ *current = settings.clone();
+ (screen_changed, autostart_changed)
+ };
+ if let Err(err) = settings::save(&settings) {
+ eprintln!("[coucou] could not save settings: {err}");
+ }
+ if autostart_changed {
+ let manager = app.autolaunch();
+ let result = if settings.autostart { manager.enable() } else { manager.disable() };
+ if let Err(err) = result {
+ eprintln!("[coucou] autostart: {err}");
+ }
+ }
+ if screen_changed {
+ let collapsed = shared.gate.collapsed.load(Ordering::Relaxed);
+ island::apply_geometry(&app, &settings.screen, collapsed);
+ }
+}
+
+/// Hidden island → shrink the window to the invisible wake strip and park the
+/// cursor poll; anything else → full panel and 60 Hz polling.
+#[tauri::command]
+fn set_collapsed(app: AppHandle, shared: State<Shared>, collapsed: bool) {
+ let pref = shared.settings.lock().unwrap().screen.clone();
+ shared.gate.collapsed.store(collapsed, Ordering::Relaxed);
+ island::apply_geometry(&app, &pref, collapsed);
+ if collapsed {
+ island::set_ignore_cursor(&app, false);
+ }
+ shared.gate.set_active(!collapsed);
+}
+
+#[tauri::command]
+fn set_ignore_cursor(app: AppHandle, ignore: bool) {
+ island::set_ignore_cursor(&app, ignore);
+}
+
+#[tauri::command]
+fn focus_window(app: AppHandle, focused: bool) {
+ let Some(win) = island::window(&app) else { return };
+ island::set_activating(&win, focused);
+ if focused {
+ let _ = win.set_focus();
+ }
+}
+
+#[tauri::command]
+fn reposition(app: AppHandle, shared: State<Shared>) {
+ let pref = shared.settings.lock().unwrap().screen.clone();
+ let collapsed = shared.gate.collapsed.load(Ordering::Relaxed);
+ island::apply_geometry(&app, &pref, collapsed);
+}
+
+#[tauri::command]
+fn open_url(url: String) {
+ if !(url.starts_with("http://") || url.starts_with("https://")) {
+ return;
+ }
+ let _ = Command::new("rundll32.exe")
+ .args(["url.dll,FileProtocolHandler", &url])
+ .creation_flags(CREATE_NO_WINDOW)
+ .spawn();
+}
+
+/// "Open terminal" opens the working folder in VS Code when `code` is on PATH,
+/// and falls back to Explorer otherwise.
+#[tauri::command]
+fn open_in_vscode(path: Option<String>) -> bool {
+ let has_code = Command::new("cmd")
+ .args(["/C", "where", "code"])
+ .creation_flags(CREATE_NO_WINDOW)
+ .status()
+ .map(|s| s.success())
+ .unwrap_or(false);
+
+ if has_code {
+ let mut cmd = Command::new("cmd");
+ cmd.arg("/C").arg("code");
+ if let Some(p) = path.as_deref().filter(|p| !p.is_empty()) {
+ cmd.arg(p);
+ }
+ if cmd.creation_flags(CREATE_NO_WINDOW).spawn().is_ok() {
+ return true;
+ }
+ }
+ if let Some(p) = path.as_deref().filter(|p| !p.is_empty()) {
+ let _ = Command::new("explorer").arg(p).spawn();
+ }
+ false
+}
+
+#[tauri::command]
+fn quit_app(app: AppHandle) {
+ app.exit(0);
+}
+
+pub fn run() {
+ let loaded = settings::load();
+ let gate = Arc::new(PollGate::new());
+
+ tauri::Builder::default()
+ .plugin(tauri_plugin_single_instance::init(|app, _argv, _cwd| {
+ let _ = app.emit_to(island::WINDOW_LABEL, "tray", "open".to_string());
+ }))
+ .plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, None))
+ .manage(Shared {
+ settings: Mutex::new(loaded.clone()),
+ gate: gate.clone(),
+ })
+ .invoke_handler(tauri::generate_handler![
+ boot,
+ save_settings,
+ set_collapsed,
+ set_ignore_cursor,
+ focus_window,
+ reposition,
+ open_url,
+ open_in_vscode,
+ quit_app,
+ ])
+ .setup(move |app| {
+ let handle = app.handle().clone();
+ tray::build(&handle)?;
+
+ if let Some(win) = island::window(&handle) {
+ island::make_non_activating(&win);
+ island::apply_geometry(&handle, &loaded.screen, false);
+ let _ = win.show();
+ }
+ gate.collapsed.store(false, Ordering::Relaxed);
+ gate.set_active(true);
+ island::spawn_cursor_poll(handle.clone(), gate.clone());
+ Ok(())
+ })
+ .run(tauri::generate_context!())
+ .expect("error while running Coucou");
+}
diff --git a/windows/src-tauri/src/main.rs b/windows/src-tauri/src/main.rs
new file mode 100644
index 00000000..1893b835
--- /dev/null
+++ b/windows/src-tauri/src/main.rs
@@ -0,0 +1,6 @@
+// Coucou runs without a console window: Mochi is the whole UI.
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
+fn main() {
+ coucou_lib::run()
+}
diff --git a/windows/src-tauri/src/settings.rs b/windows/src-tauri/src/settings.rs
new file mode 100644
index 00000000..683da5da
--- /dev/null
+++ b/windows/src-tauri/src/settings.rs
@@ -0,0 +1,78 @@
+// Preferences, stored as plain JSON in %APPDATA%\Coucou\settings.json.
+// No secret ever lands here — API keys live in the Windows Credential Manager.
+
+use serde::{Deserialize, Serialize};
+use std::path::PathBuf;
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct Settings {
+ pub sound_enabled: bool,
+ pub sound_volume: f64,
+ pub auto_close_interval: f64,
+ pub absence_interval: f64,
+ pub active_integrations: Vec<String>,
+ /// "primary" = the main display, "cursor" = whichever display the mouse is on.
+ pub screen: String,
+ pub autostart: bool,
+ pub hooks_installed: bool,
+}
+
+impl Default for Settings {
+ fn default() -> Self {
+ Self {
+ sound_enabled: true,
+ sound_volume: 0.12,
+ auto_close_interval: 15.0,
+ absence_interval: 180.0,
+ active_integrations: vec![
+ "integration_resend".into(),
+ "integration_n8n".into(),
+ "integration_vercel".into(),
+ "integration_github".into(),
+ ],
+ screen: "primary".into(),
+ autostart: false,
+ hooks_installed: false,
+ }
+ }
+}
+
+/// %APPDATA%\Coucou
+pub fn config_dir() -> PathBuf {
+ let base = std::env::var_os("APPDATA")
+ .map(PathBuf::from)
+ .unwrap_or_else(|| PathBuf::from("."));
+ base.join("Coucou")
+}
+
+/// %LOCALAPPDATA%\Coucou — where coucou-hook.exe and the log live.
+pub fn local_dir() -> PathBuf {
+ let base = std::env::var_os("LOCALAPPDATA")
+ .map(PathBuf::from)
+ .unwrap_or_else(|| PathBuf::from("."));
+ base.join("Coucou")
+}
+
+pub fn hook_exe_path() -> PathBuf {
+ local_dir().join("bin").join("coucou-hook.exe")
+}
+
+fn settings_path() -> PathBuf {
+ config_dir().join("settings.json")
+}
+
+pub fn load() -> Settings {
+ match std::fs::read(settings_path()) {
+ Ok(bytes) => serde_json::from_slice(&bytes).unwrap_or_default(),
+ Err(_) => Settings::default(),
+ }
+}
+
+pub fn save(settings: &Settings) -> std::io::Result<()> {
+ let dir = config_dir();
+ std::fs::create_dir_all(&dir)?;
+ let json = serde_json::to_vec_pretty(settings)
+ .map_err(|e| std::io::Error::new(std::io::ErrorKind::InvalidData, e))?;
+ std::fs::write(settings_path(), json)
+}
diff --git a/windows/src-tauri/src/tray.rs b/windows/src-tauri/src/tray.rs
new file mode 100644
index 00000000..dca65128
--- /dev/null
+++ b/windows/src-tauri/src/tray.rs
@@ -0,0 +1,35 @@
+// Notification-area icon: Open, Settings, Pause, Quit.
+
+use tauri::menu::{Menu, MenuItem, PredefinedMenuItem};
+use tauri::tray::TrayIconBuilder;
+use tauri::{AppHandle, Emitter};
+
+use crate::island::WINDOW_LABEL;
+
+pub fn build(app: &AppHandle) -> tauri::Result<()> {
+ let open = MenuItem::with_id(app, "open", "Open Coucou", true, None::<&str>)?;
+ let settings = MenuItem::with_id(app, "settings", "Settings…", true, None::<&str>)?;
+ let pause = MenuItem::with_id(app, "pause", "Pause", true, None::<&str>)?;
+ let quit = MenuItem::with_id(app, "quit", "Quit", true, None::<&str>)?;
+ let sep1 = PredefinedMenuItem::separator(app)?;
+ let sep2 = PredefinedMenuItem::separator(app)?;
+
+ let menu = Menu::with_items(app, &[&open, &sep1, &settings, &pause, &sep2, &quit])?;
+
+ let mut builder = TrayIconBuilder::with_id("coucou")
+ .tooltip("Coucou")
+ .menu(&menu)
+ .on_menu_event(|app: &AppHandle, event| match event.id.as_ref() {
+ "quit" => app.exit(0),
+ id => {
+ let _ = app.emit_to(WINDOW_LABEL, "tray", id.to_string());
+ }
+ });
+
+ if let Some(icon) = app.default_window_icon().cloned() {
+ builder = builder.icon(icon);
+ }
+
+ builder.build(app)?;
+ Ok(())
+}
diff --git a/windows/src-tauri/tauri.conf.json b/windows/src-tauri/tauri.conf.json
new file mode 100644
index 00000000..caabb3be
--- /dev/null
+++ b/windows/src-tauri/tauri.conf.json
@@ -0,0 +1,61 @@
+{
+ "$schema": "https://schema.tauri.app/config/2",
+ "productName": "Coucou",
+ "version": "0.1.0",
+ "identifier": "fr.louisraille.coucou",
+ "build": {
+ "beforeDevCommand": "npm run dev",
+ "devUrl": "http://localhost:1420",
+ "beforeBuildCommand": "npm run build",
+ "frontendDist": "../dist"
+ },
+ "app": {
+ "withGlobalTauri": false,
+ "security": {
+ "csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; media-src 'self' blob:; connect-src 'self' ipc: http://ipc.localhost ws://localhost:1420 http://localhost:1420"
+ },
+ "windows": [
+ {
+ "label": "island",
+ "title": "Coucou",
+ "url": "index.html",
+ "width": 240,
+ "height": 6,
+ "resizable": false,
+ "decorations": false,
+ "transparent": true,
+ "shadow": false,
+ "alwaysOnTop": true,
+ "skipTaskbar": true,
+ "focus": false,
+ "visible": false,
+ "center": false,
+ "maximizable": false,
+ "minimizable": false,
+ "closable": false,
+ "dragDropEnabled": true,
+ "additionalBrowserArgs": "--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection --autoplay-policy=no-user-gesture-required"
+ }
+ ]
+ },
+ "bundle": {
+ "active": true,
+ "targets": ["nsis"],
+ "icon": [
+ "icons/32x32.png",
+ "icons/128x128.png",
+ "icons/icon.ico"
+ ],
+ "copyright": "© Louis Raille",
+ "category": "DeveloperTool",
+ "shortDescription": "Mochi lives at the top of your screen",
+ "longDescription": "Coucou puts Mochi at the top of your screen: it shows your Claude Code sessions and a few integrations, and lets you approve, answer, chat and drop files without leaving what you are doing.",
+ "windows": {
+ "nsis": {
+ "installMode": "currentUser",
+ "languages": ["English", "French"]
+ }
+ }
+ }
+}
diff --git a/windows/src/core/anim.ts b/windows/src/core/anim.ts
new file mode 100644
index 00000000..74e4b6c0
--- /dev/null
+++ b/windows/src/core/anim.ts
@@ -0,0 +1,155 @@
+// Easing + spring helpers.
+// Ease.* mirrors BotEngine.swift `enum Ease` (itself the prototype's `E`).
+// Spring mirrors SwiftUI `.spring(response:dampingFraction:)` so open/close motion
+// matches the macOS app exactly.
+
+export const Ease = {
+ out: (t: number) => 1 - Math.pow(1 - t, 3),
+ inOut: (t: number) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2),
+ back: (t: number) => {
+ const c1 = 1.7;
+ const c3 = c1 + 1;
+ return 1 + c3 * Math.pow(t - 1, 3) + c1 * Math.pow(t - 1, 2);
+ },
+ lin: (t: number) => t,
+ easeIn: (t: number) => t * t * t,
+};
+
+export type EaseFn = (t: number) => number;
+
+export const lerp = (a: number, b: number, t: number) => a + (b - a) * t;
+export const clamp = (v: number, lo: number, hi: number) => Math.max(lo, Math.min(hi, v));
+export const seg = (t: number, a: number, b: number) => clamp((t - a) / (b - a), 0, 1);
+
+/** cubic-bezier(x1,y1,x2,y2) — used for the 340 ms close curve (.45,0,.2,1). */
+export function cubicBezier(x1: number, y1: number, x2: number, y2: number): EaseFn {
+ const cx = (t: number) => ((1 - t) ** 2 * 3 * t * x1) + (3 * (1 - t) * t * t * x2) + t ** 3;
+ const cy = (t: number) => ((1 - t) ** 2 * 3 * t * y1) + (3 * (1 - t) * t * t * y2) + t ** 3;
+ return (x) => {
+ // Newton-ish bisection on x — 12 iterations is plenty at 60 fps.
+ let lo = 0;
+ let hi = 1;
+ let t = x;
+ for (let i = 0; i < 12; i++) {
+ const v = cx(t);
+ if (v < x) lo = t;
+ else hi = t;
+ t = (lo + hi) / 2;
+ }
+ return cy(t);
+ };
+}
+
+export const closeCurve = cubicBezier(0.45, 0, 0.2, 1);
+
+/**
+ * SwiftUI-equivalent spring: ω₀ = 2π / response, ζ = dampingFraction.
+ * Integrated per frame (sub-stepped) so a dropped frame never destabilises it.
+ */
+export class Spring {
+ value: number;
+ target: number;
+ velocity = 0;
+ omega: number;
+ zeta: number;
+
+ constructor(value: number, response = 0.5, damping = 0.72) {
+ this.value = value;
+ this.target = value;
+ this.omega = (2 * Math.PI) / response;
+ this.zeta = damping;
+ }
+
+ configure(response: number, damping: number) {
+ this.omega = (2 * Math.PI) / response;
+ this.zeta = damping;
+ }
+
+ set(value: number) {
+ this.value = value;
+ this.target = value;
+ this.velocity = 0;
+ }
+
+ get settled(): boolean {
+ return Math.abs(this.target - this.value) < 0.01 && Math.abs(this.velocity) < 0.05;
+ }
+
+ step(dt: number) {
+ const steps = Math.max(1, Math.ceil(dt / (1 / 240)));
+ const h = dt / steps;
+ for (let i = 0; i < steps; i++) {
+ const acc =
+ this.omega * this.omega * (this.target - this.value) -
+ 2 * this.zeta * this.omega * this.velocity;
+ this.velocity += acc * h;
+ this.value += this.velocity * h;
+ }
+ }
+}
+
+/**
+ * Value driven either by a spring (growing) or a timed curve (shrinking) —
+ * matches IslandContainer: openSpring for grow, closeEase 340 ms for shrink.
+ */
+export class Tracked {
+ private spring: Spring;
+ private curveFrom = 0;
+ private curveTo = 0;
+ private curveStart = 0;
+ private curveDur = 0;
+ private mode: "spring" | "curve" | "idle" = "idle";
+
+ constructor(value: number) {
+ this.spring = new Spring(value);
+ }
+
+ get value(): number {
+ return this.spring.value;
+ }
+
+ get animating(): boolean {
+ return this.mode !== "idle";
+ }
+
+ jump(v: number) {
+ this.spring.set(v);
+ this.mode = "idle";
+ }
+
+ /** Spring to `v` (open / grow). */
+ springTo(v: number, response = 0.5, damping = 0.72) {
+ this.spring.configure(response, damping);
+ this.spring.target = v;
+ this.mode = "spring";
+ }
+
+ /** Timed curve to `v` (close / shrink), no overshoot. */
+ curveTowards(v: number, durationMs = 340, now = performance.now()) {
+ this.curveFrom = this.spring.value;
+ this.curveTo = v;
+ this.curveStart = now;
+ this.curveDur = durationMs;
+ this.spring.target = v;
+ this.spring.velocity = 0;
+ this.mode = "curve";
+ }
+
+ step(dt: number, now = performance.now()) {
+ if (this.mode === "spring") {
+ this.spring.step(dt);
+ if (this.spring.settled) {
+ this.spring.value = this.spring.target;
+ this.spring.velocity = 0;
+ this.mode = "idle";
+ }
+ } else if (this.mode === "curve") {
+ const p = clamp((now - this.curveStart) / this.curveDur, 0, 1);
+ this.spring.value = lerp(this.curveFrom, this.curveTo, closeCurve(p));
+ if (p >= 1) {
+ this.spring.velocity = 0;
+ this.mode = "idle";
+ }
+ }
+ }
+}
diff --git a/windows/src/core/bridge.ts b/windows/src/core/bridge.ts
new file mode 100644
index 00000000..3d8f1cb5
--- /dev/null
+++ b/windows/src/core/bridge.ts
@@ -0,0 +1,74 @@
+// Thin wrapper over the Tauri commands/events. Every call is a no-op when the
+// page is opened in a plain browser, so the island can be iterated on with
+// `npm run dev` alone.
+
+import { invoke } from "@tauri-apps/api/core";
+import { listen } from "@tauri-apps/api/event";
+import type { Settings } from "./state";
+
+export const IS_TAURI =
+ typeof window !== "undefined" && "__TAURI_INTERNALS__" in window;
+
+async function call<T>(cmd: string, args?: Record<string, unknown>): Promise<T | null> {
+ if (!IS_TAURI) return null;
+ try {
+ return await invoke<T>(cmd, args);
+ } catch (err) {
+ console.error(`[coucou] ${cmd} failed`, err);
+ return null;
+ }
+}
+
+export interface BootInfo {
+ settings: Settings;
+ /** Logical screen rect of the monitor the island lives on. */
+ screen: { x: number; y: number; width: number; height: number; scale: number };
+ version: string;
+ hookPath: string;
+}
+
+export const Bridge = {
+ boot: () => call<BootInfo>("boot"),
+
+ saveSettings: (settings: Settings) => call<void>("save_settings", { settings }),
+
+ /** Shrink the window down to the invisible wake strip (hidden) or back to full. */
+ setCollapsed: (collapsed: boolean) => call<void>("set_collapsed", { collapsed }),
+
+ /** Island shape in window coordinates, so Rust can do the click-through test. */
+ setIslandRect: (x: number, y: number, width: number, height: number, radius: number) =>
+ call<void>("set_island_rect", { x, y, width, height, radius }),
+
+ setIgnoreCursor: (ignore: boolean) => call<void>("set_ignore_cursor", { ignore }),
+
+ /** Give the window keyboard focus (chat field) and take it away again. */
+ focusWindow: (focused: boolean) => call<void>("focus_window", { focused }),
+
+ reposition: () => call<void>("reposition"),
+
+ openUrl: (url: string) => call<void>("open_url", { url }),
+
+ /** "Open terminal" → opens the folder in VS Code when `code` is on PATH. */
+ openInVSCode: (path: string | null) => call<boolean>("open_in_vscode", { path }),
+
+ quit: () => call<void>("quit_app"),
+
+ // ── Claude Code hooks (stage 2) ───────────────────────────────────────────
+ hooksStatus: () => call<{ installed: boolean; settingsPath: string }>("hooks_status"),
+ hooksPreview: () => call<{ diff: string; backup: string }>("hooks_preview"),
+ hooksInstall: () => call<void>("hooks_install"),
+ hooksUninstall: () => call<void>("hooks_uninstall"),
+ approvalDecision: (requestId: string, decision: "allow" | "deny" | "always") =>
+ call<void>("approval_decision", { requestId, decision }),
+};
+
+export type BridgeEvent =
+ | { name: "cursor"; payload: { x: number; y: number } }
+ | { name: "tray"; payload: string }
+ | { name: "hook"; payload: Record<string, unknown> }
+ | { name: "screen-changed"; payload: null };
+
+export async function onEvent<T>(name: string, handler: (payload: T) => void) {
+ if (!IS_TAURI) return () => {};
+ return listen<T>(name, (e) => handler(e.payload));
+}
diff --git a/windows/src/core/layout.ts b/windows/src/core/layout.ts
new file mode 100644
index 00000000..2b27e458
--- /dev/null
+++ b/windows/src/core/layout.ts
@@ -0,0 +1,237 @@
+// Island geometry — ported from IslandTypes.swift + IslandWindowController.islandSize
+// + IslandRootView.botPosition. All values are logical pixels, identical to the
+// macOS app's points.
+
+export type IslandMode = "hidden" | "compact" | "expanded";
+
+export type IslandViewName =
+ | "overview"
+ | "empty"
+ | "approval"
+ | "question"
+ | "error"
+ | "finished"
+ | "confused"
+ | "upload"
+ | "uploading"
+ | "choose"
+ | "mail"
+ | "prompt"
+ | "searching"
+ | "result"
+ | "note"
+ | "settings"
+ | "greeting";
+
+export type BotStateName =
+ | "idle"
+ | "working"
+ | "thinking"
+ | "searching"
+ | "approval"
+ | "question"
+ | "error"
+ | "finished"
+ | "ratelimit"
+ | "sleeping"
+ | "dizzy";
+
+export type BotEmoteName = "love" | "surprised" | "proud" | "wink" | "yawn" | "happy" | "annoyed";
+
+export type AgentLayoutMode = "none" | "grid" | "pills" | "column";
+
+export interface ViewLayout {
+ height: number;
+ botX: number;
+ botY: number | null; // null = auto-centred
+ botDiameter: number;
+ agentMode: AgentLayoutMode;
+}
+
+// The window is a fixed 720×320 (largest view) like the macOS panel; the island is
+// drawn inside it, glued to the top edge and horizontally centred.
+export const PANEL_W = 720;
+export const PANEL_H = 320;
+
+// No notch on a PC: these are the hidden/compact sizes from docs/SPEC.md.
+export const NOTCH_W = 184;
+export const NOTCH_H = 32;
+export const COMPACT_W = 288; // NOTCH_W + 104
+export const EXPANDED_W = 640;
+
+export const ROUNDED_CORNER = 14; // hidden / compact
+export const EXPANDED_CORNER = 22;
+
+/** Invisible hover strip that wakes the island when hidden. */
+export const WAKE_STRIP_W = 240;
+export const WAKE_STRIP_H = 6;
+
+export const VIEW_LAYOUTS: Record<IslandViewName, ViewLayout> = {
+ overview: { height: 160, botX: 68, botY: null, botDiameter: 58, agentMode: "pills" },
+ empty: { height: 160, botX: 70, botY: null, botDiameter: 62, agentMode: "none" },
+ approval: { height: 160, botX: 62, botY: null, botDiameter: 56, agentMode: "column" },
+ question: { height: 160, botX: 62, botY: null, botDiameter: 56, agentMode: "column" },
+ error: { height: 160, botX: 62, botY: null, botDiameter: 58, agentMode: "column" },
+ finished: { height: 160, botX: 62, botY: null, botDiameter: 58, agentMode: "column" },
+ confused: { height: 160, botX: 76, botY: null, botDiameter: 66, agentMode: "column" },
+ upload: { height: 176, botX: 140, botY: 104, botDiameter: 62, agentMode: "column" },
+ uploading: { height: 176, botX: 46, botY: 118, botDiameter: 20, agentMode: "none" },
+ choose: { height: 176, botX: 60, botY: 101, botDiameter: 52, agentMode: "column" },
+ mail: { height: 240, botX: 56, botY: null, botDiameter: 46, agentMode: "column" },
+ prompt: { height: 160, botX: 52, botY: null, botDiameter: 44, agentMode: "column" },
+ searching: { height: 160, botX: 52, botY: null, botDiameter: 44, agentMode: "column" },
+ result: { height: 160, botX: 52, botY: null, botDiameter: 44, agentMode: "column" },
+ note: { height: 160, botX: 60, botY: null, botDiameter: 50, agentMode: "column" },
+ settings: { height: 160, botX: 54, botY: null, botDiameter: 46, agentMode: "none" },
+ greeting: { height: 150, botX: 320, botY: 90, botDiameter: 0, agentMode: "none" },
+};
+
+/** Chat view grows with the conversation — IslandContainer.chatPromptHeight. */
+export function chatPromptHeight(messageCount: number): number {
+ return Math.min(300, 240 + messageCount * 40);
+}
+
+export function islandSize(
+ mode: IslandMode,
+ view: IslandViewName,
+ chatCount = 0,
+): { w: number; h: number } {
+ switch (mode) {
+ case "hidden":
+ // No notch to hide inside on a PC: the island retracts to zero height and
+ // slides into the top edge of the screen instead of sitting there as a bar.
+ return { w: NOTCH_W, h: 0 };
+ case "compact":
+ return { w: COMPACT_W, h: NOTCH_H };
+ case "expanded": {
+ const h = view === "prompt" ? chatPromptHeight(chatCount) : VIEW_LAYOUTS[view].height;
+ return { w: EXPANDED_W, h };
+ }
+ }
+}
+
+export interface BotPlacement {
+ cx: number;
+ cy: number;
+ diameter: number;
+ opacity: number;
+}
+
+/** IslandRootView.botPosition — cy is measured from the island's top edge. */
+export function botPosition(
+ mode: IslandMode,
+ view: IslandViewName,
+ islandH: number,
+ uploadProgress = 0,
+): BotPlacement {
+ switch (mode) {
+ case "hidden":
+ return { cx: 46, cy: 16, diameter: 6, opacity: 0 };
+ case "compact":
+ return { cx: 40, cy: 16, diameter: 20, opacity: 1 };
+ case "expanded": {
+ const layout = VIEW_LAYOUTS[view];
+ if (view === "uploading") {
+ return {
+ cx: 36 + uploadProgress * 526,
+ cy: layout.botY ?? 103,
+ diameter: layout.botDiameter,
+ opacity: 1,
+ };
+ }
+ if (layout.botY != null) {
+ return { cx: layout.botX, cy: layout.botY, diameter: layout.botDiameter, opacity: 1 };
+ }
+ // Centre of the fixed 84 pt card (8 pt top inset + 34 pt header → content at y = 42)
+ const headerBottom = 42;
+ const cardH = 84;
+ const cy = headerBottom + (islandH - headerBottom - cardH) / 2 + cardH / 2;
+ return { cx: layout.botX, cy, diameter: layout.botDiameter, opacity: 1 };
+ }
+ }
+}
+
+export function botGlowColor(s: BotStateName): string {
+ switch (s) {
+ case "working":
+ return "#3B9EFF";
+ case "thinking":
+ return "#A78BFA";
+ case "searching":
+ return "#6366F1";
+ case "approval":
+ return "#F5A524";
+ case "error":
+ return "#F4505E";
+ case "finished":
+ return "#34D399";
+ case "ratelimit":
+ return "#F59E0B";
+ default:
+ return "#FFFFFF";
+ }
+}
+
+export function botGlowOpacity(s: BotStateName): number {
+ switch (s) {
+ case "idle":
+ case "sleeping":
+ return 0.15;
+ case "dizzy":
+ return 0;
+ default:
+ return 0.65;
+ }
+}
+
+// Project colours (IslandConst.projectColors)
+const PROJECT_COLORS: Record<string, string> = {
+ korus: "#FF5A4E",
+ "sbe hub": "#2EC4A0",
+ "morning ai brief": "#F29B38",
+ "publication ig": "#7C5CFF",
+ "ig post": "#7C5CFF",
+ "louisraille.fr": "#38BDF8",
+ louisraille: "#38BDF8",
+ "notch buddy": "#EC4899",
+ "notch-buddy": "#EC4899",
+ notchbuddy: "#EC4899",
+};
+
+const FALLBACK_COLORS = ["#22C55E", "#EAB308", "#60A5FA", "#E879F9"];
+
+export function colorForProject(name: string): string {
+ const key = name.toLowerCase().trim();
+ const exact = PROJECT_COLORS[key];
+ if (exact) return exact;
+ for (const [k, c] of Object.entries(PROJECT_COLORS)) {
+ if (key.startsWith(k) || key.includes(k)) return c;
+ }
+ let hash = 0;
+ for (let i = 0; i < name.length; i++) hash = (hash * 31 + name.charCodeAt(i)) | 0;
+ return FALLBACK_COLORS[Math.abs(hash) % FALLBACK_COLORS.length];
+}
+
+// Card wash colours (CardBackground.washColor)
+export type Wash = "red" | "green" | "pink" | "amber" | "cyan" | "indigo" | "soft" | null;
+
+export function washRGBA(wash: Wash): string {
+ switch (wash) {
+ case "red":
+ return "rgba(244,80,94,0.55)";
+ case "green":
+ return "rgba(52,211,153,0.5)";
+ case "pink":
+ return "rgba(244,114,182,0.55)";
+ case "amber":
+ return "rgba(245,165,36,0.42)";
+ case "cyan":
+ return "rgba(34,211,238,0.38)";
+ case "indigo":
+ return "rgba(99,102,241,0.5)";
+ case "soft":
+ return "rgba(255,255,255,0.08)";
+ default:
+ return "rgba(0,0,0,0)";
+ }
+}
diff --git a/windows/src/core/sound.ts b/windows/src/core/sound.ts
new file mode 100644
index 00000000..8b0fdae0
--- /dev/null
+++ b/windows/src/core/sound.ts
@@ -0,0 +1,80 @@
+// SoundEngine — port of SoundEngine.swift.
+// The 28 WAVs are the macOS app's own files (see SOUNDS_DIR in vite.config.ts);
+// they are served at /sounds/<name>.wav. Default volume 0.12, slider range 0–0.2,
+// exactly like the Mac player, and several sounds may overlap.
+
+export const SOUND_NAMES = [
+ "peek", "open", "close", "hover", "blip", "slap", "annoyed", "dizzy", "greet",
+ "work", "finish", "error", "approval", "question", "approve", "gulp", "tick",
+ "send", "love", "pop", "proud", "wink", "yawn", "attach", "think", "search",
+ "rate", "sleep",
+] as const;
+
+export type SoundName = (typeof SOUND_NAMES)[number];
+
+class SoundEngine {
+ enabled = true;
+ volume = 0.12;
+
+ private ctx: AudioContext | null = null;
+ private master: GainNode | null = null;
+ private buffers = new Map<string, AudioBuffer>();
+ private loading: Promise<void> | null = null;
+
+ /** Creates the context and decodes every WAV. Safe to call more than once. */
+ preload(): Promise<void> {
+ if (this.loading) return this.loading;
+ this.loading = (async () => {
+ const Ctor = window.AudioContext ?? (window as unknown as { webkitAudioContext: typeof AudioContext }).webkitAudioContext;
+ if (!Ctor) return;
+ const ctx = new Ctor();
+ this.ctx = ctx;
+ const master = ctx.createGain();
+ master.gain.value = this.volume;
+ master.connect(ctx.destination);
+ this.master = master;
+ await Promise.all(
+ SOUND_NAMES.map(async (name) => {
+ try {
+ const res = await fetch(`/sounds/${name}.wav`);
+ if (!res.ok) return;
+ const buf = await ctx.decodeAudioData(await res.arrayBuffer());
+ this.buffers.set(name, buf);
+ } catch {
+ /* a missing sound must never break the island */
+ }
+ }),
+ );
+ })();
+ return this.loading;
+ }
+
+ /** WebView2 can hand us a suspended context; call after any user input. */
+ resume() {
+ void this.ctx?.resume();
+ }
+
+ setVolume(v: number) {
+ this.volume = Math.max(0, Math.min(0.2, v));
+ if (this.master) this.master.gain.value = this.volume;
+ }
+
+ setEnabled(on: boolean) {
+ this.enabled = on;
+ }
+
+ play(name: SoundName | string) {
+ if (!this.enabled) return;
+ const ctx = this.ctx;
+ const master = this.master;
+ const buf = this.buffers.get(name);
+ if (!ctx || !master || !buf) return;
+ if (ctx.state === "suspended") void ctx.resume();
+ const src = ctx.createBufferSource();
+ src.buffer = buf;
+ src.connect(master);
+ src.start();
+ }
+}
+
+export const Sound = new SoundEngine();
diff --git a/windows/src/core/state.ts b/windows/src/core/state.ts
new file mode 100644
index 00000000..61e644a7
--- /dev/null
+++ b/windows/src/core/state.ts
@@ -0,0 +1,225 @@
+// App state — mirror of AppState.swift (the parts the island needs).
+
+import type { BotEmoteName, BotStateName, IslandMode, IslandViewName } from "./layout";
+import type { EyeShape } from "../mochi/engine";
+
+export type AgentSource = "claudeCode" | "n8n";
+export type PillBadge = "approval" | "finished" | "error";
+
+export interface AgentTask {
+ id: string;
+ name: string;
+ color: string;
+ state: BotStateName;
+ stepIndex: number;
+ steps: string[];
+ source: AgentSource;
+ isIntegration: boolean;
+ emote?: BotEmoteName | null;
+ miniEye?: EyeShape | null;
+ pillBadge?: PillBadge | null;
+ sessionCwd?: string | null;
+}
+
+export interface ApprovalInfo {
+ requestId: string;
+ sessionId: string;
+ tool: string;
+ command: string;
+}
+
+export interface ChatMessage {
+ id: number;
+ role: "user" | "assistant";
+ content: string;
+}
+
+export type PromptContext =
+ | { kind: "window"; appName: string; title: string; url?: string }
+ | { kind: "file"; name: string; path?: string };
+
+export interface ResultItem {
+ label: string;
+ detail: string;
+ url?: string;
+}
+
+export interface SearchResult {
+ title: string;
+ items: ResultItem[];
+ note?: string;
+}
+
+const task = (
+ id: string, name: string, color: string, source: AgentSource,
+): AgentTask => ({
+ id, name, color, state: "idle", stepIndex: 0, steps: [], source, isIntegration: true,
+});
+
+/** AgentTask.integrationAgents — same ids, names and colours as macOS. */
+export const INTEGRATION_AGENTS: AgentTask[] = [
+ task("integration_claude", "VS Code", "#F5F6F8", "claudeCode"),
+ task("integration_resend", "Resend", "#22C55E", "n8n"),
+ task("integration_n8n", "n8n", "#F29B38", "n8n"),
+ task("integration_vercel", "Vercel", "#7C5CFF", "n8n"),
+ task("integration_github", "GitHub", "#F4505E", "n8n"),
+ task("integration_notion", "Notion", "#8C8C8C", "n8n"),
+ task("integration_calcom", "Cal.com", "#C9956A", "n8n"),
+ task("integration_stripe", "Stripe", "#0570DE", "n8n"),
+];
+
+export const TOGGLEABLE_INTEGRATION_IDS = [
+ "integration_resend", "integration_n8n", "integration_vercel", "integration_github",
+ "integration_notion", "integration_calcom", "integration_stripe",
+];
+
+export interface Settings {
+ soundEnabled: boolean;
+ soundVolume: number;
+ autoCloseInterval: number;
+ absenceInterval: number;
+ activeIntegrations: string[];
+ screen: "primary" | "cursor";
+ autostart: boolean;
+ hooksInstalled: boolean;
+}
+
+export const DEFAULT_SETTINGS: Settings = {
+ soundEnabled: true,
+ soundVolume: 0.12,
+ autoCloseInterval: 15,
+ absenceInterval: 180,
+ activeIntegrations: [
+ "integration_resend", "integration_n8n", "integration_vercel", "integration_github",
+ ],
+ screen: "primary",
+ autostart: false,
+ hooksInstalled: false,
+};
+
+type Listener = () => void;
+
+class AppState {
+ mode: IslandMode = "hidden";
+ view: IslandViewName = "overview";
+
+ tasks: AgentTask[] = [];
+ focusId: string | null = null;
+
+ stateOverride: BotStateName | null = null;
+
+ /** Cursor in logical screen pixels, origin top-left (like AppState.mousePosition). */
+ mouse = { x: 0, y: 0 };
+ /** Cursor relative to the island's top-left corner. */
+ mouseInIsland = { x: 0, y: 0 };
+
+ isPinned = false;
+ paused = false;
+
+ uploadProgress = 0;
+ uploadStartMs: number | null = null;
+ uploadDuration = 2.4;
+ fileDragOver = false;
+
+ promptContext: PromptContext | null = null;
+ droppedFile: { name: string; path: string } | null = null;
+ noteMessage: string | null = null;
+ searchResult: SearchResult | null = null;
+ chatHistory: ChatMessage[] = [];
+ pendingApproval: ApprovalInfo | null = null;
+ alwaysAllow = false;
+
+ lastActivity = performance.now();
+
+ settings: Settings = { ...DEFAULT_SETTINGS };
+
+ private listeners = new Set<Listener>();
+
+ subscribe(fn: Listener): () => void {
+ this.listeners.add(fn);
+ return () => this.listeners.delete(fn);
+ }
+
+ /** Marks the UI dirty; the island re-renders on the next frame. */
+ notify() {
+ for (const fn of this.listeners) fn();
+ }
+
+ get focusTask(): AgentTask | null {
+ return this.tasks.find((t) => t.id === this.focusId) ?? this.tasks[0] ?? null;
+ }
+
+ get effectiveState(): BotStateName {
+ return this.stateOverride ?? this.focusTask?.state ?? "idle";
+ }
+
+ get otherTasks(): AgentTask[] {
+ return this.tasks.filter((t) => t.id !== this.focusId);
+ }
+
+ setFocus(id: string) {
+ const t = this.tasks.find((x) => x.id === id);
+ if (!t) return;
+ this.focusId = id;
+ t.pillBadge = null;
+ this.notify();
+ }
+
+ updateTask(id: string, state: BotStateName) {
+ const t = this.tasks.find((x) => x.id === id);
+ if (!t) return;
+ t.state = state;
+ this.notify();
+ }
+
+ appendStep(id: string, step: string) {
+ const t = this.tasks.find((x) => x.id === id);
+ if (!t) return;
+ t.steps.push(step);
+ if (t.steps.length > 20) t.steps.shift();
+ t.stepIndex = t.steps.length - 1;
+ this.notify();
+ }
+
+ setPillBadge(id: string, badge: PillBadge | null) {
+ const t = this.tasks.find((x) => x.id === id);
+ if (!t) return;
+ t.pillBadge = badge;
+ this.notify();
+ }
+
+ /** loadIntegrationTasks() — VS Code always on, the rest opt-in (max 4). */
+ loadIntegrationTasks() {
+ for (const proto of INTEGRATION_AGENTS) {
+ const shouldLoad =
+ proto.id === "integration_claude" || this.settings.activeIntegrations.includes(proto.id);
+ const idx = this.tasks.findIndex((t) => t.id === proto.id);
+ if (shouldLoad && idx < 0) this.tasks.push({ ...proto, steps: [] });
+ if (!shouldLoad && idx >= 0) this.tasks.splice(idx, 1);
+ }
+ // Keep the declared order so pills never shuffle.
+ const order = INTEGRATION_AGENTS.map((t) => t.id);
+ this.tasks.sort((a, b) => order.indexOf(a.id) - order.indexOf(b.id));
+ if (!this.focusId) this.focusId = "integration_claude";
+ this.notify();
+ }
+
+ toggleIntegration(id: string) {
+ if (id === "integration_claude") return;
+ const active = this.settings.activeIntegrations;
+ if (active.includes(id)) {
+ this.settings.activeIntegrations = active.filter((x) => x !== id);
+ if (this.focusId === id) this.focusId = "integration_claude";
+ } else {
+ if (active.length >= 4) return;
+ this.settings.activeIntegrations = [...active, id];
+ }
+ this.loadIntegrationTasks();
+ }
+
+ defaultView(): IslandViewName {
+ return this.tasks.length === 0 ? "empty" : "overview";
+ }
+}
+
+export const State = new AppState();
diff --git a/windows/src/island/fsm.ts b/windows/src/island/fsm.ts
new file mode 100644
index 00000000..b55d67d5
--- /dev/null
+++ b/windows/src/island/fsm.ts
@@ -0,0 +1,141 @@
+// Island open/close FSM — port of IslandStateMachine.swift.
+// No DOM, no Tauri: it only reports transitions.
+
+export type FsmState = "hidden" | "petit" | "home" | "coucou";
+
+export class IslandStateMachine {
+ state: FsmState = "hidden";
+
+ onTransition: ((from: FsmState, to: FsmState) => void) | null = null;
+
+ /** home → petit delay, seconds. */
+ homeToPetitDelay = 15;
+ /** petit → hidden delay, seconds. */
+ petitToHiddenDelay = 60;
+ /** coucou → petit once the greeting animation ends (no hover). */
+ greetAutoCollapseDelay = 0.6;
+ /** coucou → petit while the mouse hovers the greeting. */
+ greetHoverCollapseDelay = 10;
+
+ private petitHide: number | null = null;
+ private homeCollapse: number | null = null;
+ private greetCollapse: number | null = null;
+
+ // ── Inputs ──────────────────────────────────────────────────────────────────
+
+ launch() {
+ this.cancelTimers();
+ this.transition("coucou");
+ }
+
+ mouseEntered() {
+ switch (this.state) {
+ case "hidden":
+ this.cancelTimers();
+ this.transition("petit");
+ break;
+ case "petit":
+ this.clear("petitHide");
+ break;
+ case "home":
+ this.clear("homeCollapse");
+ break;
+ case "coucou":
+ this.scheduleGreetCollapse(this.greetHoverCollapseDelay);
+ break;
+ }
+ }
+
+ mouseLeft() {
+ switch (this.state) {
+ case "hidden":
+ break;
+ case "petit":
+ this.schedulePetitHide();
+ break;
+ case "home":
+ this.scheduleHomeCollapse();
+ break;
+ case "coucou":
+ this.clear("greetCollapse");
+ this.transition("petit");
+ break;
+ }
+ }
+
+ click() {
+ if (this.state !== "petit") return;
+ this.cancelTimers();
+ this.transition("home");
+ }
+
+ /** Greeting animation finished (T.end). Doesn't override a running hover timer. */
+ greetComplete() {
+ if (this.state !== "coucou") return;
+ if (this.greetCollapse == null) this.scheduleGreetCollapse(this.greetAutoCollapseDelay);
+ }
+
+ /** Non-alert work event: show compact from hidden. */
+ reveal() {
+ if (this.state !== "hidden") return;
+ this.cancelTimers();
+ this.transition("petit");
+ this.schedulePetitHide();
+ }
+
+ /** Alert or explicit request: open straight to expanded. */
+ forceHome() {
+ this.cancelTimers();
+ this.transition("home");
+ }
+
+ forceHidden() {
+ this.cancelTimers();
+ this.transition("hidden");
+ }
+
+ // ── Timers ──────────────────────────────────────────────────────────────────
+
+ private schedulePetitHide() {
+ this.clear("petitHide");
+ this.petitHide = window.setTimeout(() => {
+ this.petitHide = null;
+ if (this.state === "petit") this.transition("hidden");
+ }, this.petitToHiddenDelay * 1000);
+ }
+
+ private scheduleHomeCollapse() {
+ this.clear("homeCollapse");
+ this.homeCollapse = window.setTimeout(() => {
+ this.homeCollapse = null;
+ if (this.state === "home") this.transition("petit");
+ }, this.homeToPetitDelay * 1000);
+ }
+
+ private scheduleGreetCollapse(delay: number) {
+ this.clear("greetCollapse");
+ this.greetCollapse = window.setTimeout(() => {
+ this.greetCollapse = null;
+ if (this.state === "coucou") this.transition("petit");
+ }, delay * 1000);
+ }
+
+ private clear(which: "petitHide" | "homeCollapse" | "greetCollapse") {
+ const id = this[which];
+ if (id != null) window.clearTimeout(id);
+ this[which] = null;
+ }
+
+ cancelTimers() {
+ this.clear("petitHide");
+ this.clear("homeCollapse");
+ this.clear("greetCollapse");
+ }
+
+ private transition(next: FsmState) {
+ if (next === this.state) return;
+ const from = this.state;
+ this.state = next;
+ this.onTransition?.(from, next);
+ }
+}
diff --git a/windows/src/island/hooks.ts b/windows/src/island/hooks.ts
new file mode 100644
index 00000000..d59ab063
--- /dev/null
+++ b/windows/src/island/hooks.ts
@@ -0,0 +1,211 @@
+// Claude Code hook events → island state.
+// Port of HookServer.processEvent / processPermissionRequest from the macOS app.
+// Difference from macOS: no terminal filter. On Windows the hook fires from any
+// terminal (Windows Terminal, VS Code, PowerShell…) and all of them are handled.
+
+import { onEvent } from "../core/bridge";
+import { Sound } from "../core/sound";
+import { State } from "../core/state";
+import type { Island } from "./island";
+
+const CLAUDE_ID = "integration_claude";
+
+interface HookPayload {
+ hook_event_name?: string;
+ request_id?: string;
+ session_id?: string;
+ cwd?: string;
+ message?: string;
+ tool_name?: string;
+ tool_input?: Record<string, unknown>;
+}
+
+const PROJECT_ALIASES: Record<string, string> = {
+ "notch-buddy": "Notch Buddy",
+ notchbuddy: "Notch Buddy",
+ notch_buddy: "Notch Buddy",
+};
+
+function aliasProjectName(name: string): string {
+ return PROJECT_ALIASES[name.toLowerCase()] ?? name;
+}
+
+function lastPathComponent(p: string): string {
+ const cleaned = p.replace(/[\\/]+$/, "");
+ const idx = Math.max(cleaned.lastIndexOf("\\"), cleaned.lastIndexOf("/"));
+ return idx >= 0 ? cleaned.slice(idx + 1) : cleaned;
+}
+
+/** frenchStep() — same labels as the macOS app. */
+const TOOL_LABELS: Record<string, string> = {
+ Bash: "Exécute",
+ Read: "Lit",
+ Write: "Écrit",
+ Edit: "Modifie",
+ Glob: "Cherche",
+ Grep: "Recherche",
+ WebSearch: "Recherche web",
+ WebFetch: "Récupère",
+ TodoWrite: "Tâches",
+ Task: "Agent",
+ LS: "Liste",
+ MultiEdit: "Modifie",
+ NotebookEdit: "Notebook",
+ PowerShell: "Exécute",
+};
+
+function stepLabel(tool: string, input: Record<string, unknown>): string {
+ const label = TOOL_LABELS[tool] ?? tool;
+ const str = (k: string) => (typeof input[k] === "string" ? (input[k] as string) : null);
+ const cmd = str("command");
+ if (cmd) return `${label} · ${cmd.slice(0, 40)}`;
+ const path = str("path");
+ if (path) return `${label} · ${lastPathComponent(path)}`;
+ const file = str("file_path");
+ if (file) return `${label} · ${lastPathComponent(file)}`;
+ const query = str("query");
+ if (query) return `${label} · ${query.slice(0, 40)}`;
+ return label;
+}
+
+function upsert(projectName: string, cwd: string) {
+ const t = State.tasks.find((x) => x.id === CLAUDE_ID);
+ if (!t) return;
+ t.name = projectName;
+ if (cwd) t.sessionCwd = cwd;
+}
+
+function clearSession() {
+ const t = State.tasks.find((x) => x.id === CLAUDE_ID);
+ if (!t) return;
+ t.steps = [];
+ t.stepIndex = 0;
+ t.name = "VS Code";
+ t.pillBadge = null;
+}
+
+export function registerHookHandlers(island: Island) {
+ void onEvent<HookPayload>("hook", (payload) => handleHook(island, payload));
+}
+
+function handleHook(island: Island, payload: HookPayload) {
+ if (State.paused) return;
+
+ const name = payload.hook_event_name ?? "";
+ const cwd = payload.cwd ?? "";
+ const raw = lastPathComponent(cwd);
+ const projectName = aliasProjectName(raw || "Session");
+ const focused = State.focusId === CLAUDE_ID;
+
+ /** Alerts force the island open; work events only reveal the compact island. */
+ const surface = (view: Parameters<Island["alert"]>[0], isAlert: boolean) => {
+ if (State.mode === "expanded") {
+ if (isAlert) island.setView(view);
+ } else if (isAlert) {
+ island.alert(view);
+ } else if (State.mode === "hidden") {
+ island.reveal();
+ }
+ };
+
+ switch (name) {
+ case "SessionStart":
+ upsert(projectName, cwd);
+ surface("overview", false);
+ Sound.play("work");
+ break;
+
+ case "UserPromptSubmit":
+ upsert(projectName, cwd);
+ State.updateTask(CLAUDE_ID, "thinking");
+ if (payload.message) State.appendStep(CLAUDE_ID, payload.message.slice(0, 60));
+ surface("overview", false);
+ break;
+
+ case "PreToolUse": {
+ upsert(projectName, cwd);
+ State.updateTask(CLAUDE_ID, "working");
+ const tool = payload.tool_name ?? "Tool";
+ State.appendStep(CLAUDE_ID, stepLabel(tool, payload.tool_input ?? {}));
+ surface("overview", false);
+ break;
+ }
+
+ case "PostToolUse":
+ State.updateTask(CLAUDE_ID, "working");
+ break;
+
+ case "PostToolUseFailure":
+ State.updateTask(CLAUDE_ID, "working");
+ State.appendStep(CLAUDE_ID, "⚠ failed");
+ break;
+
+ case "Notification": {
+ const message = payload.message ?? "";
+ const lower = message.toLowerCase();
+ if (lower.includes("rate limit") || lower.includes("limite d")) {
+ State.updateTask(CLAUDE_ID, "ratelimit");
+ Sound.play("rate");
+ } else if (message.endsWith("?")) {
+ State.updateTask(CLAUDE_ID, "question");
+ State.appendStep(CLAUDE_ID, message);
+ }
+ break;
+ }
+
+ case "Stop":
+ State.updateTask(CLAUDE_ID, "finished");
+ if (payload.message) State.appendStep(CLAUDE_ID, payload.message.slice(0, 60));
+ Sound.play("finish");
+ if (focused) surface("finished", true);
+ else State.setPillBadge(CLAUDE_ID, "finished");
+ window.setTimeout(() => {
+ State.updateTask(CLAUDE_ID, "idle");
+ State.setPillBadge(CLAUDE_ID, null);
+ }, 5200);
+ break;
+
+ case "StopFailure":
+ State.updateTask(CLAUDE_ID, "error");
+ Sound.play("error");
+ if (focused) surface("error", true);
+ else State.setPillBadge(CLAUDE_ID, "error");
+ break;
+
+ case "SessionEnd":
+ State.updateTask(CLAUDE_ID, "idle");
+ clearSession();
+ break;
+
+ case "SubagentStart":
+ State.appendStep(CLAUDE_ID, "+ subagent");
+ break;
+
+ case "SubagentStop":
+ State.appendStep(CLAUDE_ID, "• subagent done");
+ break;
+
+ case "PermissionRequest": {
+ upsert(projectName, cwd);
+ const tool = payload.tool_name ?? "Tool";
+ const input = payload.tool_input ?? {};
+ const command = typeof input.command === "string" ? input.command : tool;
+ State.pendingApproval = {
+ requestId: payload.request_id ?? "",
+ sessionId: payload.session_id ?? "",
+ tool,
+ command,
+ };
+ State.updateTask(CLAUDE_ID, "approval");
+ State.isPinned = true;
+ Sound.play("approval");
+ if (focused) island.alert("approval");
+ else State.setPillBadge(CLAUDE_ID, "approval");
+ break;
+ }
+
+ default:
+ break;
+ }
+ State.notify();
+}
diff --git a/windows/src/island/island.ts b/windows/src/island/island.ts
new file mode 100644
index 00000000..7e9119d7
--- /dev/null
+++ b/windows/src/island/island.ts
@@ -0,0 +1,659 @@
+// The island: DOM shell, sizing animation, Mochi placement, mouse handling.
+// Mirrors IslandRootView.swift + IslandWindowController.swift.
+
+import { Tracked, Spring, clamp } from "../core/anim";
+import { Bridge, IS_TAURI } from "../core/bridge";
+import {
+ EXPANDED_CORNER, EXPANDED_W, NOTCH_W, PANEL_H, PANEL_W,
+ ROUNDED_CORNER, VIEW_LAYOUTS, botGlowColor, botGlowOpacity, botPosition, chatPromptHeight,
+ islandSize, type IslandMode, type IslandViewName,
+} from "../core/layout";
+import { Sound } from "../core/sound";
+import { State } from "../core/state";
+import { BotEngine, hexToRGB } from "../mochi/engine";
+import { Greeting } from "../mochi/greeting";
+import { createMiniBot, pruneMiniBots, syncMiniBotStates, tickMiniBots } from "../mochi/minibots";
+import { buildHeader, buildViews, type ViewActions, type ViewHost } from "../views/views";
+import { h } from "../views/dom";
+import { IslandStateMachine } from "./fsm";
+
+const BOT_OVERHANG = 40;
+const HIT_MARGIN = 6;
+
+const modeOrder = (m: IslandMode) => (m === "hidden" ? 0 : m === "compact" ? 1 : 2);
+
+export class Island {
+ readonly fsm = new IslandStateMachine();
+
+ private root: HTMLElement;
+ private islandEl!: HTMLElement;
+ private clipEl!: HTMLElement;
+ private contentEl!: HTMLElement;
+ private viewsEl!: HTMLElement;
+ private botCanvas!: HTMLCanvasElement;
+ private botGlow!: HTMLElement;
+ private greetingCanvas!: HTMLCanvasElement;
+ private miniGrid!: HTMLElement;
+ private countdown!: HTMLElement;
+ private wakeStrip!: HTMLElement;
+
+ private header!: ViewHost;
+ private views!: Map<IslandViewName, ViewHost>;
+
+ private width = new Tracked(NOTCH_W);
+ private height = new Tracked(0);
+ private radius = new Tracked(ROUNDED_CORNER);
+ private botCx = new Spring(46);
+ private botCy = new Spring(16);
+ private botSize = new Spring(10);
+
+ private engine = new BotEngine();
+ private greeting = new Greeting();
+
+ private running = false;
+ private lastFrame = 0;
+ private dirty = true;
+ private canvasPx = 0;
+
+ // Rust starts the window at full size so the launch greeting has room.
+ private collapsed = false;
+ private collapseTimer: number | null = null;
+ // Tauri windows start with cursor events enabled; keep the mirror honest.
+ private ignoringCursor = false;
+ private wasInIsland = false;
+ private homeCollapseAt: number | null = null;
+
+ // Bot hover → love (IslandWindowController.botHoverIn)
+ private botHovering = false;
+ private botHoverTimer: number | null = null;
+ private lastLoveTime = 0;
+ private botHoverStart = { x: 0, y: 0 };
+
+ private confusedRecovery: number | null = null;
+ private prevViewBeforeConfused: IslandViewName = "overview";
+
+ constructor(root: HTMLElement) {
+ this.root = root;
+ this.build();
+ this.wireFsm();
+ this.wireInput();
+ this.engine.onDizzy = () => this.handleDizzy();
+ this.greeting.onComplete = () => this.fsm.greetComplete();
+ State.subscribe(() => {
+ this.dirty = true;
+ this.ensureRunning();
+ });
+ }
+
+ // ── DOM ─────────────────────────────────────────────────────────────────────
+
+ private build() {
+ const actions: ViewActions = {
+ setView: (v) => this.setView(v),
+ collapse: () => this.collapse(),
+ setFocus: (id) => {
+ State.setFocus(id);
+ Sound.play("blip");
+ },
+ openTerminal: () => {
+ const cwd = State.focusTask?.sessionCwd ?? null;
+ void Bridge.openInVSCode(cwd);
+ },
+ openUrl: (url) => {
+ if (url) void Bridge.openUrl(url);
+ },
+ decide: (d) => {
+ const req = State.pendingApproval;
+ if (!req) return;
+ Sound.play(d === "deny" ? "blip" : "approve");
+ void Bridge.approvalDecision(req.requestId, d);
+ if (d === "always") State.alwaysAllow = true;
+ State.pendingApproval = null;
+ State.isPinned = false;
+ State.updateTask("integration_claude", "working");
+ State.setPillBadge("integration_claude", null);
+ this.setView(State.defaultView());
+ },
+ toggleSound: () => {
+ State.settings.soundEnabled = !State.settings.soundEnabled;
+ Sound.setEnabled(State.settings.soundEnabled);
+ void Bridge.saveSettings(State.settings);
+ State.notify();
+ },
+ setVolume: (v) => {
+ State.settings.soundVolume = v;
+ Sound.setVolume(v);
+ void Bridge.saveSettings(State.settings);
+ State.notify();
+ },
+ setAutoClose: (s) => {
+ State.settings.autoCloseInterval = s;
+ this.fsm.homeToPetitDelay = s;
+ void Bridge.saveSettings(State.settings);
+ State.notify();
+ },
+ openSettingsWindow: () => this.setView("settings"),
+ blip: () => Sound.play("blip"),
+ };
+
+ this.wakeStrip = h("div", { id: "wake-strip" });
+ this.botGlow = h("div", { id: "bot-glow" });
+ this.botCanvas = h("canvas", { id: "bot-canvas" });
+ this.greetingCanvas = h("canvas", { id: "greeting-canvas" });
+ this.miniGrid = h("div", { id: "mini-grid" });
+ this.countdown = h("div", { id: "countdown" });
+
+ this.header = buildHeader(actions);
+ this.views = buildViews(actions);
+ this.viewsEl = h("div", { id: "views" });
+ for (const v of this.views.values()) this.viewsEl.append(v.el);
+ this.contentEl = h("div", { id: "content" }, this.header.el, this.viewsEl);
+
+ this.clipEl = h("div", { id: "island-clip" }, this.greetingCanvas, this.contentEl);
+ this.islandEl = h(
+ "div",
+ { id: "island" },
+ this.clipEl,
+ this.botGlow,
+ this.botCanvas,
+ this.miniGrid,
+ this.countdown,
+ );
+
+ const dpr = Math.min(2, window.devicePixelRatio || 1);
+ this.greetingCanvas.width = Math.round(EXPANDED_W * dpr);
+ this.greetingCanvas.height = Math.round(150 * dpr);
+ this.greetingCanvas.style.width = `${EXPANDED_W}px`;
+ this.greetingCanvas.style.height = "150px";
+
+ this.root.append(this.wakeStrip, this.islandEl);
+ this.applyGeometry();
+ }
+
+ // ── FSM ─────────────────────────────────────────────────────────────────────
+
+ private wireFsm() {
+ this.fsm.homeToPetitDelay = State.settings.autoCloseInterval;
+ this.fsm.onTransition = (from, to) => {
+ switch (to) {
+ case "hidden":
+ this.setMode("hidden");
+ break;
+ case "petit":
+ if (from === "coucou") this.greeting.interrupt();
+ else if (from === "hidden") Sound.play("peek");
+ this.setMode("compact");
+ if (from === "coucou") State.view = State.defaultView();
+ if (!this.wasInIsland) this.fsm.mouseLeft();
+ break;
+ case "home":
+ this.expand(State.defaultView());
+ if (!this.wasInIsland) this.fsm.mouseLeft();
+ break;
+ case "coucou":
+ this.expand("greeting");
+ this.greeting.start();
+ break;
+ }
+ State.notify();
+ };
+ }
+
+ launch() {
+ this.fsm.launch();
+ }
+
+ // ── Mode / view ─────────────────────────────────────────────────────────────
+
+ private setMode(mode: IslandMode) {
+ const prev = State.mode;
+ if (mode === prev) return;
+ State.mode = mode;
+ if (mode === "expanded") Sound.play("open");
+ if (prev === "expanded") {
+ Sound.play("close");
+ State.isPinned = false;
+ void Bridge.focusWindow(false);
+ }
+ if (mode !== "expanded") this.engine.resetMorph();
+ this.updateWindowCollapsed();
+ this.animateGeometry(modeOrder(mode) < modeOrder(prev));
+ State.notify();
+ }
+
+ expand(view: IslandViewName) {
+ State.view = view;
+ if (State.mode !== "expanded") this.setMode("expanded");
+ else this.animateGeometry(false);
+ State.lastActivity = performance.now();
+ this.homeCollapseAt = null;
+ State.notify();
+ }
+
+ setView(view: IslandViewName) {
+ if (State.mode !== "expanded") {
+ this.fsm.forceHome();
+ State.view = view;
+ this.animateGeometry(false);
+ State.notify();
+ return;
+ }
+ const grew = VIEW_LAYOUTS[view].height >= VIEW_LAYOUTS[State.view].height;
+ State.view = view;
+ State.lastActivity = performance.now();
+ this.animateGeometry(!grew);
+ State.notify();
+ }
+
+ collapse() {
+ State.isPinned = false;
+ if (this.fsm.state === "home") this.fsm.mouseLeft();
+ this.setMode("compact");
+ }
+
+ /** Alert from the hook server: open on this view and pin it. */
+ alert(view: IslandViewName) {
+ this.fsm.forceHome();
+ this.expand(view);
+ }
+
+ reveal() {
+ this.fsm.reveal();
+ }
+
+ // ── Geometry ────────────────────────────────────────────────────────────────
+
+ private targetSize(): { w: number; h: number; r: number } {
+ const { w, h } = islandSize(State.mode, State.view, State.chatHistory.length);
+ const r = State.mode === "expanded" ? EXPANDED_CORNER : ROUNDED_CORNER;
+ return { w, h, r };
+ }
+
+ private animateGeometry(shrinking: boolean) {
+ const { w, h, r } = this.targetSize();
+ if (shrinking) {
+ this.width.curveTowards(w);
+ this.height.curveTowards(h);
+ this.radius.curveTowards(r);
+ } else {
+ this.width.springTo(w);
+ this.height.springTo(h);
+ this.radius.springTo(r);
+ }
+ this.ensureRunning();
+ }
+
+ private applyGeometry() {
+ const w = this.width.value;
+ const hh = this.height.value;
+ const r = this.radius.value;
+ this.islandEl.style.width = `${w}px`;
+ this.islandEl.style.height = `${hh}px`;
+ this.islandEl.style.borderRadius = `0 0 ${r}px ${r}px`;
+ this.islandEl.style.transform = `translateX(-50%)`;
+ // These follow the island as it resizes, so they belong here rather than in
+ // the state-driven DOM sync.
+ this.miniGrid.style.left = `${w - 40 - 14}px`;
+ this.miniGrid.style.top = `${hh / 2 - 14}px`;
+ this.greetingCanvas.style.left = `${(w - EXPANDED_W) / 2}px`;
+ }
+
+ /** Island rect in window coordinates (origin top-left of the 720×320 window). */
+ private islandRect(): { x: number; y: number; w: number; h: number } {
+ const w = this.width.value;
+ const hh = this.height.value;
+ return { x: (PANEL_W - w) / 2, y: 0, w, h: hh };
+ }
+
+ // ── Window collapse (hidden → tiny wake strip, zero polling) ────────────────
+
+ private updateWindowCollapsed() {
+ if (this.collapseTimer != null) {
+ window.clearTimeout(this.collapseTimer);
+ this.collapseTimer = null;
+ }
+ if (State.mode === "hidden") {
+ // Let the island finish retracting, then drop the window to the wake strip:
+ // from there the OS delivers no cursor events, so nothing polls at all.
+ this.collapseTimer = window.setTimeout(() => {
+ this.collapseTimer = null;
+ if (State.mode !== "hidden") return;
+ this.collapsed = true;
+ this.ignoringCursor = false;
+ void Bridge.setCollapsed(true);
+ void Bridge.setIgnoreCursor(false);
+ }, 420);
+ } else if (this.collapsed) {
+ // Grow the window back before the island animates open.
+ this.collapsed = false;
+ void Bridge.setCollapsed(false);
+ }
+ }
+
+ // ── Input ───────────────────────────────────────────────────────────────────
+
+ private wireInput() {
+ // The wake strip is the only thing the OS can hit while the island is hidden.
+ this.wakeStrip.addEventListener("mouseenter", () => {
+ Sound.resume();
+ if (State.mode === "hidden") this.fsm.mouseEntered();
+ });
+
+ this.islandEl.addEventListener("mousedown", (e) => {
+ Sound.resume();
+ State.lastActivity = performance.now();
+ if (State.mode !== "expanded") {
+ this.fsm.click();
+ return;
+ }
+ if (this.isBotHit(e.clientX, e.clientY)) {
+ this.cancelBotHover();
+ this.engine.slap();
+ }
+ });
+
+ window.addEventListener("keydown", (e) => {
+ if (e.key === "Escape" && State.mode === "expanded" && !State.isPinned) this.collapse();
+ State.lastActivity = performance.now();
+ });
+
+ // Outside Tauri (plain browser) drive the cursor from DOM events so the
+ // island can be inspected with `npm run dev`.
+ if (!IS_TAURI) {
+ window.addEventListener("mousemove", (e) => this.onCursor(e.clientX, e.clientY));
+ }
+ }
+
+ /** Cursor in window-logical coordinates. */
+ onCursor(x: number, y: number) {
+ State.mouse = { x, y };
+ const rect = this.islandRect();
+ State.mouseInIsland = { x: x - rect.x, y: y - rect.y };
+
+ const inIsland =
+ x >= rect.x - HIT_MARGIN && x <= rect.x + rect.w + HIT_MARGIN &&
+ y >= rect.y - HIT_MARGIN && y <= rect.y + rect.h + HIT_MARGIN;
+
+ if (this.ignoringCursor === inIsland) {
+ this.ignoringCursor = !inIsland;
+ void Bridge.setIgnoreCursor(!inIsland);
+ }
+
+ if (inIsland && !this.wasInIsland) {
+ if (this.fsm.state === "coucou") this.greeting.hover();
+ this.fsm.mouseEntered();
+ this.homeCollapseAt = null;
+ }
+ if (!inIsland && this.wasInIsland) {
+ this.fsm.mouseLeft();
+ if (this.fsm.state === "home" && !State.isPinned) {
+ this.homeCollapseAt = performance.now() + State.settings.autoCloseInterval * 1000;
+ }
+ }
+ this.wasInIsland = inIsland;
+
+ // Bot hover → love
+ const overBot = State.mode === "expanded" && State.stateOverride == null && this.isBotHit(x, y);
+ if (overBot && !this.botHovering) this.botHoverIn(x, y);
+ if (!overBot && this.botHovering) this.cancelBotHover();
+ this.botHovering = overBot;
+ if (this.botHovering) {
+ const d = Math.hypot(x - this.botHoverStart.x, y - this.botHoverStart.y);
+ if (d > 40) {
+ this.botHoverStart = { x, y };
+ this.scheduleLove();
+ }
+ }
+
+ this.ensureRunning();
+ }
+
+ private isBotHit(x: number, y: number): boolean {
+ const rect = this.islandRect();
+ const cx = rect.x + this.botCx.value;
+ const cy = rect.y + this.botCy.value;
+ const radius = this.botSize.value / 2;
+ return (x - cx) ** 2 + (y - cy) ** 2 <= radius * radius;
+ }
+
+ private botHoverIn(x: number, y: number) {
+ if (performance.now() / 1000 - this.lastLoveTime < 6) return;
+ this.botHoverStart = { x, y };
+ this.engine.blink();
+ this.engine.tgEs = 1.08;
+ Sound.play("hover");
+ this.scheduleLove();
+ }
+
+ private scheduleLove() {
+ if (this.botHoverTimer != null) window.clearTimeout(this.botHoverTimer);
+ this.botHoverTimer = window.setTimeout(() => {
+ this.botHoverTimer = null;
+ if (!this.botHovering || State.stateOverride != null) return;
+ if (performance.now() / 1000 - this.lastLoveTime < 6) return;
+ this.lastLoveTime = performance.now() / 1000;
+ this.engine.triggerEmote("love");
+ Sound.play("love");
+ }, 1900);
+ }
+
+ private cancelBotHover() {
+ if (this.botHoverTimer != null) window.clearTimeout(this.botHoverTimer);
+ this.botHoverTimer = null;
+ this.engine.tgEs = 1;
+ }
+
+ /** Three slaps → dizzy + confused view for 3.3 s, then back. */
+ private handleDizzy() {
+ this.prevViewBeforeConfused = State.view;
+ State.stateOverride = "dizzy";
+ this.engine.setState("dizzy");
+ Sound.play("dizzy");
+ this.alert("confused");
+ if (this.confusedRecovery != null) window.clearTimeout(this.confusedRecovery);
+ this.confusedRecovery = window.setTimeout(() => {
+ this.confusedRecovery = null;
+ State.stateOverride = null;
+ this.engine.setState(State.effectiveState);
+ if (State.view === "confused") {
+ const fallback = State.defaultView();
+ this.setView(this.prevViewBeforeConfused === "confused" ? fallback : this.prevViewBeforeConfused);
+ }
+ this.engine.triggerEmote("happy");
+ }, 3300);
+ }
+
+ // ── Frame loop ──────────────────────────────────────────────────────────────
+
+ ensureRunning() {
+ if (this.running) return;
+ this.running = true;
+ this.lastFrame = performance.now();
+ requestAnimationFrame(this.frame);
+ }
+
+ private frame = (nowMs: number) => {
+ const dt = Math.min(0.05, (nowMs - this.lastFrame) / 1000);
+ this.lastFrame = nowMs;
+
+ this.width.step(dt, nowMs);
+ this.height.step(dt, nowMs);
+ this.radius.step(dt, nowMs);
+ this.applyGeometry();
+
+ if (this.dirty) {
+ this.dirty = false;
+ this.syncDom();
+ }
+
+ this.updateBotTargets();
+ this.botCx.step(dt);
+ this.botCy.step(dt);
+ this.botSize.step(dt);
+
+ const greetingActive = State.mode === "expanded" && State.view === "greeting";
+ if (greetingActive) {
+ const gctx = this.greetingCanvas.getContext("2d");
+ if (gctx) {
+ const dpr = Math.min(2, window.devicePixelRatio || 1);
+ gctx.setTransform(dpr, 0, 0, dpr, 0, 0);
+ this.greeting.draw(gctx);
+ }
+ } else {
+ this.drawBot(dt);
+ }
+
+ tickMiniBots(dt);
+ this.updateCountdown(nowMs);
+
+ const busy =
+ this.width.animating || this.height.animating || this.radius.animating ||
+ !this.botCx.settled || !this.botCy.settled || !this.botSize.settled ||
+ greetingActive || this.engine.busy || State.mode !== "hidden";
+
+ if (busy) {
+ requestAnimationFrame(this.frame);
+ } else {
+ this.running = false;
+ }
+ };
+
+ private updateBotTargets() {
+ const p = botPosition(State.mode, State.view, this.height.value, State.uploadProgress);
+ this.botCx.target = p.cx;
+ this.botCy.target = p.cy;
+ this.botSize.target = p.diameter / 0.6;
+
+ const greetingActive = State.mode === "expanded" && State.view === "greeting";
+ const visible = p.opacity > 0 && !greetingActive;
+ this.botCanvas.style.opacity = visible ? "1" : "0";
+
+ if (State.mode === "expanded" && State.view !== "uploading" && !greetingActive) {
+ const d = p.diameter;
+ const color = botGlowColor(State.effectiveState);
+ this.botGlow.style.display = "block";
+ this.botGlow.style.width = `${d * 2.2}px`;
+ this.botGlow.style.height = `${d * 2.2}px`;
+ this.botGlow.style.left = `${this.botCx.value - d * 1.1}px`;
+ this.botGlow.style.top = `${this.botCy.value - d * 1.1}px`;
+ this.botGlow.style.background = `radial-gradient(circle, ${color} 0%, transparent 62%)`;
+ this.botGlow.style.opacity = String(botGlowOpacity(State.effectiveState));
+ } else {
+ this.botGlow.style.display = "none";
+ }
+ }
+
+ private drawBot(dt: number) {
+ const size = this.botSize.value;
+ const w = Math.max(1, Math.round(size));
+ const hCss = w + BOT_OVERHANG;
+ const dpr = Math.min(2, window.devicePixelRatio || 1);
+ if (this.canvasPx !== w) {
+ this.canvasPx = w;
+ this.botCanvas.width = Math.round(w * dpr);
+ this.botCanvas.height = Math.round(hCss * dpr);
+ this.botCanvas.style.width = `${w}px`;
+ this.botCanvas.style.height = `${hCss}px`;
+ }
+ this.botCanvas.style.left = `${this.botCx.value - w / 2}px`;
+ this.botCanvas.style.top = `${this.botCy.value - BOT_OVERHANG / 2 - hCss / 2}px`;
+
+ const ctx = this.botCanvas.getContext("2d");
+ if (!ctx) return;
+
+ const focus = State.focusTask;
+ this.engine.bodyColor = focus?.isIntegration ? hexToRGB(focus.color) : null;
+ this.engine.particleOverhang = BOT_OVERHANG;
+ this.engine.lookX = this.lookX();
+ this.engine.lookY = this.lookY();
+ if (this.engine.morph > 0.3) {
+ this.engine.slotHTarget = State.fileDragOver ? 0.2 : 0;
+ } else {
+ this.engine.slotHTarget = 0;
+ if (this.engine.morph < 0.05) {
+ this.engine.slotH = 0;
+ this.engine.slotHVel = 0;
+ }
+ }
+ this.engine.update(dt);
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
+ ctx.clearRect(0, 0, w, hCss);
+ this.engine.draw(ctx, w, hCss);
+ }
+
+ /** BotCanvasView.lookX / lookY — tanh of the distance to the bot. */
+ private lookX(): number {
+ const rect = this.islandRect();
+ const botScreenX = rect.x + this.botCx.value;
+ return Math.tanh((State.mouse.x - botScreenX) / 260);
+ }
+
+ private lookY(): number {
+ return -Math.tanh((State.mouse.y - this.botCy.value) / 200);
+ }
+
+ private updateCountdown(nowMs: number) {
+ if (State.mode !== "expanded" || State.isPinned || this.homeCollapseAt == null) {
+ this.countdown.style.width = "0px";
+ return;
+ }
+ const autoClose = State.settings.autoCloseInterval;
+ const windowS = Math.min(10, autoClose * 0.6);
+ const remaining = (this.homeCollapseAt - nowMs) / 1000;
+ this.countdown.style.width =
+ remaining < windowS ? `${Math.max(0, clamp(remaining / windowS, 0, 1) * 160)}px` : "0px";
+ }
+
+ // ── DOM sync ────────────────────────────────────────────────────────────────
+
+ private syncDom() {
+ const expanded = State.mode === "expanded";
+ const greetingActive = expanded && State.view === "greeting";
+
+ this.contentEl.style.opacity = expanded && !greetingActive ? "1" : "0";
+ this.contentEl.style.pointerEvents = expanded && !greetingActive ? "auto" : "none";
+ this.greetingCanvas.style.display = greetingActive ? "block" : "none";
+
+ this.header.sync();
+ for (const [name, view] of this.views) {
+ const on = name === State.view;
+ view.el.classList.toggle("on", on);
+ if (on) view.sync();
+ }
+
+ // Compact mini grid
+ const showGrid = State.mode === "compact";
+ this.miniGrid.style.opacity = showGrid ? "1" : "0";
+ if (showGrid) {
+ const others = State.otherTasks.slice(0, 4);
+ const key = others.map((t) => t.id).join("|");
+ if (this.miniGrid.dataset.key !== key) {
+ this.miniGrid.dataset.key = key;
+ this.miniGrid.replaceChildren();
+ for (const t of others) {
+ this.miniGrid.append(createMiniBot(t, 12));
+ }
+ pruneMiniBots();
+ }
+ }
+
+ syncMiniBotStates(State.tasks);
+ this.engine.setState(State.effectiveState);
+ }
+
+ /** Applies settings coming from Rust at boot. */
+ applySettings() {
+ Sound.setEnabled(State.settings.soundEnabled);
+ Sound.setVolume(State.settings.soundVolume);
+ this.fsm.homeToPetitDelay = State.settings.autoCloseInterval;
+ State.notify();
+ }
+
+ get panelSize() {
+ return { w: PANEL_W, h: PANEL_H };
+ }
+
+ get chatHeight() {
+ return chatPromptHeight(State.chatHistory.length);
+ }
+}
diff --git a/windows/src/main.ts b/windows/src/main.ts
new file mode 100644
index 00000000..addfdb5d
--- /dev/null
+++ b/windows/src/main.ts
@@ -0,0 +1,58 @@
+// Entry point: boot the bridge, wire the island, start the greeting.
+
+import "./style.css";
+import { Bridge, IS_TAURI, onEvent } from "./core/bridge";
+import { Sound } from "./core/sound";
+import { State } from "./core/state";
+import { Island } from "./island/island";
+import { registerHookHandlers } from "./island/hooks";
+
+async function main() {
+ const root = document.getElementById("root");
+ if (!root) return;
+
+ void Sound.preload();
+
+ const island = new Island(root);
+
+ const boot = await Bridge.boot();
+ if (boot) {
+ State.settings = { ...State.settings, ...boot.settings };
+ }
+ island.applySettings();
+ State.loadIntegrationTasks();
+
+ await onEvent<{ x: number; y: number }>("cursor", ({ x, y }) => island.onCursor(x, y));
+
+ await onEvent<string>("tray", (what) => {
+ switch (what) {
+ case "settings":
+ State.paused = false;
+ island.alert("settings");
+ break;
+ case "open":
+ State.paused = false;
+ island.alert(State.defaultView());
+ break;
+ case "pause":
+ State.paused = !State.paused;
+ if (State.paused) island.fsm.forceHidden();
+ else island.reveal();
+ break;
+ }
+ });
+
+ await onEvent<null>("screen-changed", () => void Bridge.reposition());
+
+ registerHookHandlers(island);
+
+ island.launch();
+
+ // In a plain browser there is no wake strip behind the cursor: make the whole
+ // page wake the island so the visuals can be checked with `npm run dev`.
+ if (!IS_TAURI) {
+ document.addEventListener("click", () => Sound.resume(), { once: true });
+ }
+}
+
+void main();
diff --git a/windows/src/mochi/engine.ts b/windows/src/mochi/engine.ts
new file mode 100644
index 00000000..f1856b28
--- /dev/null
+++ b/windows/src/mochi/engine.ts
@@ -0,0 +1,1156 @@
+// Mochi — direct port of NotchBuddy/Sources/App/BotEngine.swift to Canvas 2D.
+// Same constants, same tweens, same easings, same particles. The only intentional
+// difference is the `happy`/`wink` eye arc, which follows the prototype
+// (design/prototype/notch-buddy.html, the visual source of truth) — the Swift
+// arc angles produce a different shape.
+
+import { Ease, lerp, type EaseFn } from "../core/anim";
+import { Sound } from "../core/sound";
+import type { BotEmoteName, BotStateName } from "../core/layout";
+
+// ── Types ─────────────────────────────────────────────────────────────────────
+
+export type EyeShape =
+ | "pill" | "wide" | "dot" | "line" | "flat" | "happy" | "closed"
+ | "spiral" | "heart" | "star" | "tired" | "wink" | "cup";
+
+export type BadgeKind = "dots" | "bang" | "question" | "dot";
+
+export interface Badge {
+ kind: BadgeKind;
+ color: RGB;
+}
+
+export type RGB = readonly [number, number, number]; // components 0…1
+
+export type TweenKey = readonly [target: number, durationMs: number, ease: EaseFn];
+
+interface Tween {
+ prop: PropKey;
+ keys: TweenKey[];
+ index: number;
+ from: number;
+ startMs: number;
+ onComplete?: () => void;
+}
+
+type PropKey =
+ | "yaw" | "pitch" | "roll" | "tilt" | "open" | "sx" | "sy"
+ | "oy" | "ox" | "tint" | "morph" | "hands" | "blush" | "es" | "badgeS";
+
+interface BotStateCfg {
+ color: RGB;
+ tint: number;
+ eye: EyeShape;
+ badge: Badge | null;
+ bounces: boolean;
+ scans: boolean;
+ breathes: boolean;
+ zz: boolean;
+ sweat: boolean;
+ look: readonly [number, number] | null;
+ tilt: number;
+}
+
+interface Particle {
+ type: "heart" | "star" | "spark" | "sweat" | "z";
+ x: number; y: number; vx: number; vy: number;
+ age: number; life: number; rot: number; size: number;
+}
+
+// ── Constants (MochiConst / PISTES.mochi) ─────────────────────────────────────
+
+const EYE_W = 0.25;
+const EYE_H = 0.27;
+const EYE_SP = 0.37;
+const EYE_P = -0.12;
+const BASE_TOP: RGB = [0.929, 0.929, 0.937]; // #EDEDEF
+const BASE_BOTTOM: RGB = [0.769, 0.773, 0.792]; // #C4C5CA
+const INK = "rgb(26,20,18)"; // #1A1412
+const MINI_INK = "rgb(16,19,26)"; // #10131A
+
+const C = {
+ idle: [0.902, 0.914, 0.933] as RGB,
+ working: [0.231, 0.62, 1] as RGB,
+ thinking: [0.545, 0.361, 0.965] as RGB,
+ searching: [0.388, 0.396, 0.949] as RGB,
+ approval: [0.961, 0.647, 0.141] as RGB,
+ question: [0.133, 0.827, 0.933] as RGB,
+ error: [0.957, 0.314, 0.369] as RGB,
+ finished: [0.204, 0.831, 0.6] as RGB,
+ ratelimit: [0.984, 0.573, 0.235] as RGB,
+ sleeping: [0.58, 0.635, 0.722] as RGB,
+ dizzy: [0.957, 0.447, 0.714] as RGB,
+};
+
+const base = {
+ bounces: false, scans: false, breathes: false, zz: false, sweat: false,
+ look: null, tilt: 0,
+};
+
+export const BOT_STATES: Record<BotStateName, BotStateCfg> = {
+ idle: { ...base, color: C.idle, tint: 0, eye: "pill", badge: null },
+ working: { ...base, color: C.working, tint: 0.72, eye: "pill", badge: { kind: "dots", color: C.working } },
+ thinking: { ...base, color: C.thinking, tint: 0.72, eye: "pill", badge: { kind: "dots", color: C.thinking }, look: [0.55, 0.55] },
+ searching: { ...base, color: C.searching, tint: 0.72, eye: "pill", badge: { kind: "dots", color: C.searching }, scans: true },
+ approval: { ...base, color: C.approval, tint: 0.78, eye: "wide", badge: { kind: "bang", color: C.approval }, bounces: true },
+ question: { ...base, color: C.question, tint: 0.75, eye: "pill", badge: { kind: "question", color: C.question }, tilt: 0.17 },
+ error: { ...base, color: C.error, tint: 0.78, eye: "flat", badge: { kind: "dot", color: C.error } },
+ finished: { ...base, color: C.finished, tint: 0.35, eye: "happy", badge: { kind: "dot", color: C.finished } },
+ ratelimit: { ...base, color: C.ratelimit, tint: 0.72, eye: "tired", badge: { kind: "dot", color: C.ratelimit }, sweat: true },
+ sleeping: { ...base, color: C.sleeping, tint: 0.32, eye: "closed", badge: null, breathes: true, zz: true },
+ dizzy: { ...base, color: C.dizzy, tint: 0.7, eye: "spiral", badge: null },
+};
+
+/** State → sound, as in BotStateCfg.sound. */
+export const STATE_SOUND: Partial<Record<BotStateName, string>> = {
+ working: "work", thinking: "think", searching: "search", approval: "approval",
+ question: "question", error: "error", finished: "finish", ratelimit: "rate",
+ sleeping: "sleep", dizzy: "dizzy",
+};
+
+const EMOTE_EYE: Record<BotEmoteName, EyeShape> = {
+ love: "heart", surprised: "dot", proud: "star", wink: "wink",
+ yawn: "tired", happy: "happy", annoyed: "line",
+};
+
+// ── Small helpers ─────────────────────────────────────────────────────────────
+
+const now = () => performance.now() / 1000;
+
+export function hexToRGB(hex: string): RGB {
+ const h = hex.replace("#", "");
+ const v = parseInt(h, 16);
+ return [((v >> 16) & 255) / 255, ((v >> 8) & 255) / 255, (v & 255) / 255];
+}
+
+const rgba = (c: RGB, a = 1) =>
+ `rgba(${Math.round(c[0] * 255)},${Math.round(c[1] * 255)},${Math.round(c[2] * 255)},${a})`;
+
+const mix3 = (a: RGB, b: RGB, t: number): RGB => [
+ lerp(a[0], b[0], t), lerp(a[1], b[1], t), lerp(a[2], b[2], t),
+];
+
+function roundRectPath(x: CanvasRenderingContext2D, X: number, Y: number, W: number, H: number, R: number) {
+ const r = Math.max(0, Math.min(R, W / 2, H / 2));
+ x.beginPath();
+ x.moveTo(X + r, Y);
+ x.arcTo(X + W, Y, X + W, Y + H, r);
+ x.arcTo(X + W, Y + H, X, Y + H, r);
+ x.arcTo(X, Y + H, X, Y, r);
+ x.arcTo(X, Y, X + W, Y, r);
+ x.closePath();
+}
+
+function heartPath(x: CanvasRenderingContext2D, s: number) {
+ x.beginPath();
+ x.moveTo(0, s * 0.38);
+ x.bezierCurveTo(-s * 1.05, -s * 0.15, -s * 0.5, -s * 0.95, 0, -s * 0.38);
+ x.bezierCurveTo(s * 0.5, -s * 0.95, s * 1.05, -s * 0.15, 0, s * 0.38);
+ x.closePath();
+}
+
+function starPath(x: CanvasRenderingContext2D, ro: number, ri: number) {
+ x.beginPath();
+ for (let i = 0; i < 10; i++) {
+ const r = i % 2 ? ri : ro;
+ const a = -Math.PI / 2 + (i * Math.PI) / 5;
+ x.lineTo(Math.cos(a) * r, Math.sin(a) * r);
+ }
+ x.closePath();
+}
+
+const FONT = `system-ui, "Segoe UI Variable Text", "Segoe UI", sans-serif`;
+
+// ── Engine ────────────────────────────────────────────────────────────────────
+
+export class BotEngine {
+ isMini = false;
+ /** Solid body colour for mini bots / integration pills (null = Mochi gradient). */
+ bodyColor: RGB | null = null;
+
+ // Animated state (BotEngine `s`)
+ yaw = 0; pitch = 0; roll = 0; tilt = 0; open = 1;
+ sx = 1; sy = 1; oy = 0; ox = 0;
+ tint = 0; morph = 0; hands = 0; blush = 0; es = 1; badgeS = 0;
+
+ // Targets
+ tgYaw = 0; tgPitch = 0; tgTilt = 0; tgSy = 1; tgSx = 1; tgEs = 1;
+
+ /** Extra canvas height above the body so hearts can fly out without clipping. */
+ particleOverhang = 0;
+
+ // Mouth spring (fraction of R)
+ slotH = 0; slotHTarget = 0; slotHVel = 0; isChewing = false;
+
+ col: RGB = C.idle;
+ colT: RGB = C.idle;
+
+ state: BotStateName = "idle";
+ cfg: BotStateCfg = BOT_STATES.idle;
+
+ eyeOverride: EyeShape | null = null;
+ eyeOverrideUntil = 0;
+ permanentEye: EyeShape | null = null;
+ permanentEmote: BotEmoteName | null = null;
+ miniNextBehavior = 0;
+
+ badge: Badge | null = null;
+ private badgeKey = "none";
+ private badgeToken = 0;
+
+ private tweens = new Map<PropKey, Tween>();
+ private locks = new Set<PropKey>();
+ private particles: Particle[] = [];
+
+ lookX = 0;
+ lookY = 0;
+
+ lastTime = now();
+ private t0 = now() - Math.random() * 5;
+ private nextBlink = now() + 1.5 + Math.random() * 2;
+ waveUntil = 0;
+ waveStart = 0;
+ private greetToken = 0;
+ private lastAmbient = 0;
+ private slapTimes: number[] = [];
+ private miniLookTarget = { x: 0, y: 0 };
+ private miniLookNextTime = 0;
+
+ /** Fired when three slaps land inside 1.7 s (→ dizzy + confused view). */
+ onDizzy: (() => void) | null = null;
+
+ // ── Public API ──────────────────────────────────────────────────────────────
+
+ setState(next: BotStateName, force = false) {
+ if (this.state === next && !force) return;
+ const prev = this.state;
+ this.state = next;
+ this.cfg = BOT_STATES[next];
+ this.colT = this.cfg.color;
+ if (!this.locks.has("tint")) this.tint = this.cfg.tint;
+ if (!this.locks.has("tilt")) this.tgTilt = this.cfg.tilt;
+ this.setBadge(this.cfg.badge);
+
+ switch (next) {
+ case "finished":
+ this.doRoll(950, 1);
+ setTimeout(() => this.emit("spark", 5), 500);
+ break;
+ case "error":
+ this.anim("ox", [
+ [0.08, 50, Ease.out], [-0.08, 70, Ease.inOut],
+ [0.05, 70, Ease.inOut], [0, 90, Ease.out],
+ ]);
+ break;
+ case "approval":
+ this.anim("oy", [[-0.2, 150, Ease.out], [0, 300, Ease.back]]);
+ break;
+ case "dizzy":
+ this.doRoll(1300, 2);
+ break;
+ case "question":
+ this.blink();
+ break;
+ case "ratelimit":
+ this.emit("sweat", 1);
+ break;
+ default:
+ if (prev !== "idle" || next !== "idle") this.blink();
+ }
+ }
+
+ setBadge(b: Badge | null) {
+ const key = b ? `${b.kind}-${b.color.join(",")}` : "none";
+ if (key === this.badgeKey) return;
+ this.badgeKey = key;
+ const tok = ++this.badgeToken;
+ this.anim("badgeS", [[0, 90, Ease.inOut]]);
+ setTimeout(() => {
+ if (tok !== this.badgeToken) return;
+ this.badge = b;
+ if (b) this.anim("badgeS", [[1, 280, Ease.back]]);
+ }, 100);
+ }
+
+ blink() {
+ if (this.locks.has("open")) return;
+ this.anim("open", [[0.06, 70, Ease.inOut], [1, 130, Ease.out]]);
+ }
+
+ squash() {
+ this.anim("sy", [[0.78, 70, Ease.out], [1.1, 130, Ease.out], [1, 170, Ease.inOut]]);
+ this.anim("sx", [[1.16, 70, Ease.out], [0.95, 130, Ease.out], [1, 170, Ease.inOut]]);
+ }
+
+ /** Mailbox swallow — opens the slot, chews, then closes. */
+ gulp() {
+ this.slotHTarget = 0.42;
+ setTimeout(() => {
+ this.slotHTarget = 0;
+ this.isChewing = true;
+ setTimeout(() => { this.isChewing = false; }, 800);
+ }, 460);
+ this.anim("sy", [[0.78, 80, Ease.out], [1.18, 130, Ease.out], [1, 220, Ease.back]]);
+ this.anim("sx", [[1.28, 80, Ease.out], [0.92, 130, Ease.out], [1, 220, Ease.back]]);
+ this.blink();
+ }
+
+ slap() {
+ this.interruptGreet();
+ if (this.state === "dizzy") return;
+ const t = now();
+ this.slapTimes = this.slapTimes.filter((s) => t - s < 1.7);
+ this.slapTimes.push(t);
+ Sound.play("slap");
+ this.squash();
+ if (this.slapTimes.length >= 3) {
+ this.slapTimes = [];
+ this.onDizzy?.();
+ } else {
+ this.eyeOverride = "line";
+ this.eyeOverrideUntil = t + 0.8;
+ setTimeout(() => Sound.play("annoyed"), 60);
+ }
+ }
+
+ doRoll(durationMs: number, turns: number) {
+ this.roll = 0;
+ this.anim("roll", [[Math.PI * 2 * turns, durationMs, Ease.inOut]], () => { this.roll = 0; });
+ }
+
+ /** Peek wave — the "coucou". Timings from BotEngine.greet(). */
+ greet() {
+ const t = now();
+ const tok = ++this.greetToken;
+ this.waveStart = t + 0.45;
+ this.waveUntil = t + 1.55;
+
+ this.eyeOverride = "happy";
+ this.eyeOverrideUntil = t + 2.0;
+ this.anim("oy", [[-0.06, 220, Ease.out], [0.0, 220, Ease.back]]);
+
+ setTimeout(() => {
+ if (this.greetToken !== tok) return;
+ this.anim("hands", [[1, 280, Ease.out]]);
+ this.anim("sy", [[0.95, 100, Ease.out], [1.0, 260, Ease.back]]);
+ this.anim("sx", [[1.04, 100, Ease.out], [1.0, 260, Ease.back]]);
+ Sound.play("greet");
+ }, 250);
+
+ setTimeout(() => { if (this.greetToken === tok) this.blink(); }, 550);
+ setTimeout(() => { if (this.greetToken === tok) this.blink(); }, 1500);
+ setTimeout(() => {
+ if (this.greetToken !== tok) return;
+ this.waveUntil = 0;
+ this.anim("hands", [[0, 200, Ease.inOut]]);
+ }, 1550);
+ setTimeout(() => {
+ if (this.greetToken !== tok) return;
+ this.eyeOverride = "happy";
+ this.eyeOverrideUntil = now() + 0.3;
+ }, 1750);
+ }
+
+ interruptGreet() {
+ if (this.hands <= 0.01 && now() >= this.waveUntil) return;
+ this.greetToken++;
+ this.waveUntil = 0;
+ this.waveStart = 0;
+ this.anim("hands", [[0, 150, Ease.inOut]]);
+ }
+
+ setPermanentEmote(emote: BotEmoteName | null) {
+ this.permanentEmote = emote;
+ if (emote === "wink") {
+ this.miniNextBehavior = now() + 0.8 + Math.random() * 1.7;
+ return;
+ }
+ this.permanentEye = emote ? EMOTE_EYE[emote] : null;
+ if (this.permanentEye) {
+ this.eyeOverride = this.permanentEye;
+ this.eyeOverrideUntil = Number.POSITIVE_INFINITY;
+ } else if (this.eyeOverrideUntil === Number.POSITIVE_INFINITY) {
+ this.eyeOverride = null;
+ this.eyeOverrideUntil = 0;
+ }
+ this.miniNextBehavior = now() + 0.8 + Math.random() * 1.7;
+ }
+
+ triggerEmote(emote: BotEmoteName, duration = 1.8) {
+ const t = now();
+ this.eyeOverride = EMOTE_EYE[emote];
+ this.eyeOverrideUntil = t + duration;
+
+ switch (emote) {
+ case "love":
+ this.anim("blush", [
+ [1, 300, Ease.out], [1, (duration - 0.6) * 1000, Ease.lin], [0, 300, Ease.inOut],
+ ]);
+ this.emit("heart", 4);
+ this.anim("oy", [[-0.1, 160, Ease.out], [0, 300, Ease.back]]);
+ break;
+ case "surprised":
+ this.anim("oy", [[-0.3, 140, Ease.out], [0, 380, Ease.back]]);
+ this.anim("es", [[1.25, 120, Ease.out], [1, 500, Ease.inOut]]);
+ break;
+ case "proud":
+ this.emit("star", 5);
+ this.anim("tilt", [
+ [-0.14, 220, Ease.out], [-0.14, (duration - 0.5) * 1000, Ease.lin], [0, 280, Ease.inOut],
+ ]);
+ this.anim("blush", [
+ [0.7, 250, Ease.out], [0.7, (duration - 0.5) * 1000, Ease.lin], [0, 300, Ease.inOut],
+ ]);
+ break;
+ case "wink":
+ this.anim("tilt", [
+ [0.12, 160, Ease.out], [0.12, (duration - 0.4) * 1000, Ease.lin], [0, 240, Ease.inOut],
+ ]);
+ break;
+ case "yawn":
+ this.anim("sy", [[1.12, 500, Ease.inOut], [1, 500, Ease.inOut]]);
+ this.anim("sx", [[0.94, 500, Ease.inOut], [1, 500, Ease.inOut]]);
+ setTimeout(() => { this.eyeOverride = "closed"; this.emit("z", 2); }, 700);
+ break;
+ case "happy":
+ this.anim("blush", [[0.6, 200, Ease.out], [0, 600, Ease.inOut]]);
+ break;
+ case "annoyed":
+ this.eyeOverride = "line";
+ this.eyeOverrideUntil = t + 0.8;
+ setTimeout(() => Sound.play("annoyed"), 60);
+ break;
+ }
+ }
+
+ emit(type: Particle["type"], count: number) {
+ for (let i = 0; i < count; i++) {
+ const isZ = type === "z";
+ this.particles.push({
+ type,
+ x: (Math.random() - 0.5) * 0.9 + (isZ ? 0.55 : 0),
+ y: -0.7 - Math.random() * 0.2,
+ vx: (Math.random() - 0.5) * 0.35 + (isZ ? 0.18 : 0),
+ vy: -(0.45 + Math.random() * 0.35),
+ age: -i * 0.14,
+ life: 1.3 + Math.random() * 0.5,
+ rot: Math.random() * Math.PI * 2,
+ size: 0.15 + Math.random() * 0.08,
+ });
+ }
+ }
+
+ animateMorph(target: number, durationMs?: number) {
+ const dur = durationMs ?? (target > 0.5 ? 550 : 650);
+ this.anim("morph", [[target, dur, Ease.inOut]]);
+ }
+
+ resetMorph() {
+ this.tweens.delete("morph");
+ this.locks.delete("morph");
+ this.morph = 0;
+ }
+
+ /** True while anything is still moving — lets the island stop its RAF loop. */
+ get busy(): boolean {
+ return (
+ this.tweens.size > 0 ||
+ this.particles.length > 0 ||
+ this.cfg.bounces || this.cfg.scans || this.cfg.breathes || this.cfg.zz || this.cfg.sweat ||
+ this.isMini ||
+ Math.abs(this.tgYaw - this.yaw) > 0.002 ||
+ Math.abs(this.tgPitch - this.pitch) > 0.002 ||
+ Math.abs(this.tgTilt - this.tilt) > 0.002 ||
+ Math.abs(this.tgSy - this.sy) > 0.002 ||
+ Math.abs(this.tgSx - this.sx) > 0.002 ||
+ Math.abs(this.tgEs - this.es) > 0.002 ||
+ this.slotH > 0.001 || Math.abs(this.slotHVel) > 0.001 ||
+ Math.abs(this.col[0] - this.colT[0]) > 0.003 ||
+ Math.abs(this.col[1] - this.colT[1]) > 0.003 ||
+ Math.abs(this.col[2] - this.colT[2]) > 0.003
+ );
+ }
+
+ // ── Tweens ──────────────────────────────────────────────────────────────────
+
+ anim(prop: PropKey, keys: TweenKey[], onComplete?: () => void) {
+ this.tweens.set(prop, {
+ prop, keys, index: 0, from: this[prop], startMs: performance.now(), onComplete,
+ });
+ this.locks.add(prop);
+ }
+
+ // ── Update ──────────────────────────────────────────────────────────────────
+
+ update(dt: number) {
+ const n = now();
+ const nowMs = performance.now();
+
+ for (const tw of [...this.tweens.values()]) {
+ const k = tw.keys[tw.index];
+ const p = Math.min(1, Math.max(0, (nowMs - tw.startMs) / k[1]));
+ this[tw.prop] = tw.from + (k[0] - tw.from) * k[2](p);
+ if (p >= 1) {
+ tw.from = k[0];
+ tw.index += 1;
+ tw.startMs = nowMs;
+ if (tw.index >= tw.keys.length) {
+ this.tweens.delete(tw.prop);
+ this.locks.delete(tw.prop);
+ tw.onComplete?.();
+ }
+ }
+ }
+
+ const t = n - this.t0;
+ let ty = this.lookX * 0.62;
+ let tp = this.lookY * 0.5;
+
+ if (this.cfg.look) {
+ ty = ty * 0.35 + this.cfg.look[0] * 0.55;
+ tp = tp * 0.3 + this.cfg.look[1] * 0.5;
+ }
+ if (this.cfg.scans) {
+ ty = Math.sin(t * 2.6) * 0.6;
+ tp = -0.06;
+ }
+ if (this.state === "sleeping") { ty = 0; tp = -0.14; }
+ if (this.state === "dizzy") { ty = Math.sin(t * 9) * 0.25; }
+
+ // Mini bots never follow the mouse — they wander.
+ if (this.isMini && !this.cfg.look && !this.cfg.scans && this.state !== "sleeping" && this.state !== "dizzy") {
+ if (n > this.miniLookNextTime) {
+ this.miniLookTarget = {
+ x: -0.88 + Math.random() * 1.76,
+ y: -0.55 + Math.random() * 1.0,
+ };
+ this.miniLookNextTime = n + 0.5 + Math.random() * 1.5;
+ }
+ ty = this.miniLookTarget.x * 0.62;
+ tp = this.miniLookTarget.y * 0.5;
+ }
+
+ this.tgYaw = ty;
+ this.tgPitch = tp;
+ this.tgTilt = this.cfg.tilt;
+
+ if (n > this.waveStart && n < this.waveUntil) {
+ const wt = n - this.waveStart;
+ this.tgTilt = -0.06 + Math.sin(2 * Math.PI * 1.2 * wt) * 0.07;
+ }
+
+ const bounce = this.cfg.bounces ? -Math.abs(Math.sin(t * 5.2)) * 0.07 : 0;
+ const kGen = 1 - Math.pow(0.0008, dt);
+ if (!this.locks.has("oy")) this.oy += (bounce - this.oy) * kGen;
+
+ if (this.cfg.breathes) {
+ const amp = this.isMini ? 0.07 : 0.035;
+ this.tgSy = 1 + Math.sin(t * 1.8) * amp;
+ this.tgSx = 1 - Math.sin(t * 1.8) * amp * 0.57;
+ } else if (this.isMini) {
+ this.tgSy = 1 + Math.sin(t * 2.2) * 0.04;
+ this.tgSx = 1 - Math.sin(t * 2.2) * 0.02;
+ } else {
+ this.tgSy = 1;
+ this.tgSx = 1;
+ }
+
+ if (this.isMini && n > this.miniNextBehavior) this.doMiniBehaviorLoop();
+
+ const kLook = 1 - Math.pow(0.0025, dt);
+ if (!this.locks.has("yaw")) this.yaw += (this.tgYaw - this.yaw) * kLook;
+ if (!this.locks.has("pitch")) this.pitch += (this.tgPitch - this.pitch) * kLook;
+ if (!this.locks.has("tilt")) this.tilt += (this.tgTilt - this.tilt) * kGen;
+ if (!this.locks.has("sy")) this.sy += (this.tgSy - this.sy) * kGen;
+ if (!this.locks.has("sx")) this.sx += (this.tgSx - this.sx) * kGen;
+ if (!this.locks.has("es")) this.es += (this.tgEs - this.es) * kGen;
+
+ this.col = mix3(this.col, this.colT, 1 - Math.pow(0.002, dt));
+
+ if (n > this.nextBlink) {
+ if (this.state !== "sleeping" && this.state !== "dizzy") {
+ this.blink();
+ if (Math.random() < 0.22) setTimeout(() => this.blink(), 230);
+ }
+ this.nextBlink = n + 2.2 + Math.random() * 3.2;
+ }
+
+ if (this.eyeOverride && n > this.eyeOverrideUntil) {
+ this.eyeOverride = this.permanentEye;
+ if (this.permanentEye) this.eyeOverrideUntil = Number.POSITIVE_INFINITY;
+ }
+
+ if (n - this.lastAmbient > 1.3) {
+ this.lastAmbient = n;
+ if (this.cfg.zz) this.emit("z", 1);
+ if (!this.isMini && this.cfg.sweat && Math.random() < 0.5) this.emit("sweat", 1);
+ }
+
+ for (const p of this.particles) p.age += dt;
+ this.particles = this.particles.filter((p) => p.age < p.life);
+
+ // Mouth slot spring — ω₀ = 2π/0.25, ζ = 0.6
+ const omega = (2 * Math.PI) / 0.25;
+ const zeta = 0.6;
+ const acc = omega * omega * (this.slotHTarget - this.slotH) - 2 * zeta * omega * this.slotHVel;
+ this.slotHVel += acc * dt;
+ this.slotH = Math.max(0, this.slotH + this.slotHVel * dt);
+
+ this.lastTime = n;
+ }
+
+ private doMiniBehaviorLoop() {
+ const n = now();
+ switch (this.permanentEmote) {
+ case "happy":
+ if (this.locks.has("oy")) { this.miniNextBehavior = n + 0.4; return; }
+ this.anim("oy", [[-0.3, 120, Ease.out], [0.03, 200, Ease.inOut], [0, 160, Ease.back]]);
+ this.anim("sy", [[0.82, 80, Ease.out], [1.18, 130, Ease.out], [0.88, 160, Ease.inOut], [1, 200, Ease.back]]);
+ this.anim("sx", [[1.15, 80, Ease.out], [0.88, 130, Ease.out], [1.06, 160, Ease.inOut], [1, 200, Ease.back]]);
+ this.miniNextBehavior = n + 2.2 + Math.random() * 1.2;
+ break;
+ case "annoyed":
+ if (this.locks.has("yaw")) { this.miniNextBehavior = n + 0.5; return; }
+ this.anim("yaw", [
+ [-0.65, 50, Ease.out], [0.65, 90, Ease.inOut], [-0.5, 80, Ease.inOut],
+ [0.4, 75, Ease.inOut], [-0.2, 70, Ease.inOut], [0, 140, Ease.out],
+ ]);
+ this.miniNextBehavior = n + 3.0 + Math.random() * 2.5;
+ break;
+ case "wink":
+ this.eyeOverride = "wink";
+ this.eyeOverrideUntil = n + 0.55;
+ this.anim("tilt", [[0.13, 100, Ease.out], [0.13, 320, Ease.lin], [0, 200, Ease.inOut]]);
+ this.miniNextBehavior = n + 2.2 + Math.random() * 2.0;
+ break;
+ case "love":
+ this.emit("heart", 2);
+ this.anim("tilt", [[-0.1, 180, Ease.out], [0.1, 340, Ease.inOut], [0, 220, Ease.inOut]]);
+ this.miniNextBehavior = n + 2.6 + Math.random() * 1.5;
+ break;
+ default:
+ this.miniNextBehavior = n + 3.0 + Math.random() * 2.0;
+ }
+ }
+
+ // ── Draw ────────────────────────────────────────────────────────────────────
+
+ /**
+ * Draws hands, body, blush, eyes, mouth, badge and particles into a canvas of
+ * `w`×`h` CSS pixels (the caller has already applied the DPR transform).
+ */
+ draw(x: CanvasRenderingContext2D, W: number, H: number) {
+ const R = W * 0.3;
+ const rx = R * 1.14;
+ const ry = R * 0.88;
+ const cx = W / 2 + this.ox * R;
+ const cy = H / 2 + this.particleOverhang / 2 + this.oy * R + R * 0.06;
+
+ this.drawHandsBehind(x, R, rx, ry, cx, cy);
+
+ x.save();
+ x.translate(cx, cy);
+ if (this.tilt !== 0) x.rotate(this.tilt);
+ x.scale(this.sx, this.sy);
+
+ const body = this.bodyPath(rx, ry, R);
+ this.drawBody(x, body, R, rx, ry);
+
+ const blushVal = Math.max(this.blush, this.tint * 0.5) * (1 - this.morph);
+ if (blushVal > 0.01) {
+ x.save();
+ x.clip(body);
+ const yOffset = Math.sin(this.yaw) * rx * 0.8;
+ x.fillStyle = `rgba(255,120,150,${0.5 * blushVal})`;
+ for (const sd of [-1, 1]) {
+ x.beginPath();
+ x.ellipse(sd * rx * 0.55 + yOffset, ry * 0.2, R * 0.17, R * 0.1, 0, 0, Math.PI * 2);
+ x.fill();
+ }
+ x.restore();
+ }
+
+ this.drawEyes(x, body, R, rx, ry);
+ if (this.morph > 0.05) this.drawMouth(x, body, R);
+
+ x.restore();
+
+ if (this.badge && this.badgeS > 0.01 && this.morph < 0.25) {
+ this.drawBadge(x, this.badge, R, cx, cy);
+ }
+ this.drawParticles(x, R, cx, cy);
+ }
+
+ private bodyPath(rx: number, ry: number, R: number): Path2D {
+ const n = 72;
+ const expN = 2.0 / 2.7;
+ const tw = R * 1.0;
+ const th = R * 0.94;
+ const tr = R * 0.42;
+ const p = new Path2D();
+ const m = this.morph;
+ for (let i = 0; i <= n; i++) {
+ const a = (i / n) * Math.PI * 2;
+ const ca = Math.cos(a);
+ const sa = Math.sin(a);
+ const px0 = rx * (ca >= 0 ? Math.pow(ca, expN) : -Math.pow(-ca, expN));
+ const py0 = ry * (sa >= 0 ? Math.pow(sa, expN) : -Math.pow(-sa, expN));
+ let px = px0;
+ let py = py0;
+ if (m >= 0.005) {
+ const rr = rrPoint(ca, sa, tw, th, tr);
+ px = lerp(px0, rr.x, m);
+ py = lerp(py0, rr.y, m);
+ }
+ if (i === 0) p.moveTo(px, py);
+ else p.lineTo(px, py);
+ }
+ p.closePath();
+ return p;
+ }
+
+ private drawBody(x: CanvasRenderingContext2D, body: Path2D, R: number, rx: number, ry: number) {
+ if (this.bodyColor) {
+ // Mini bots: flat solid fill — no gradient, no reflection, no highlight
+ x.fillStyle = rgba(this.bodyColor, 1);
+ x.fill(body);
+ return;
+ }
+ const g = x.createLinearGradient(rx * 0.7, -ry * 0.85, -rx * 0.8, ry * 0.9);
+ g.addColorStop(0, rgba(BASE_TOP));
+ g.addColorStop(1, rgba(BASE_BOTTOM));
+ x.fillStyle = g;
+ x.fill(body);
+
+ const effectiveTint = this.tint * (1 - this.morph);
+ if (effectiveTint > 0.01) {
+ const tg = x.createLinearGradient(0, ry, 0, -ry);
+ tg.addColorStop(0, rgba(this.col, 0.72 * effectiveTint));
+ tg.addColorStop(1, rgba(this.col, 0));
+ x.fillStyle = tg;
+ x.fill(body);
+ }
+
+ const sh = x.createRadialGradient(0, 0, R * 0.15, 0, 0, R * 1.25);
+ sh.addColorStop(0, "rgba(0,0,0,0)");
+ sh.addColorStop(0.6, "rgba(0,0,0,0)");
+ sh.addColorStop(1, "rgba(0,0,0,0.2)");
+ x.fillStyle = sh;
+ x.fill(body);
+
+ const hl = x.createRadialGradient(rx * 0.34, -ry * 0.46, 0, rx * 0.34, -ry * 0.46, R * 0.42);
+ hl.addColorStop(0, "rgba(255,255,255,0.55)");
+ hl.addColorStop(1, "rgba(255,255,255,0)");
+ x.fillStyle = hl;
+ x.fill(body);
+ }
+
+ private drawEyes(x: CanvasRenderingContext2D, body: Path2D, R: number, rx: number, ry: number) {
+ let shape: EyeShape = this.eyeOverride ?? this.cfg.eye;
+ if (this.morph > 0.5) {
+ if (this.isChewing) shape = "happy";
+ else if (this.slotHTarget > 0.05 || this.slotH > 0.1) shape = "cup";
+ }
+
+ x.save();
+ x.clip(body);
+ const ink = this.isMini ? MINI_INK : INK;
+ x.fillStyle = ink;
+ x.strokeStyle = ink;
+
+ for (const sd of [-1, 1]) {
+ const eyeYaw = sd * EYE_SP + this.yaw;
+ let eyePitch = EYE_P + this.pitch + this.roll;
+ eyePitch = (((eyePitch + Math.PI) % (Math.PI * 2)) + Math.PI * 2) % (Math.PI * 2) - Math.PI;
+ const cp = Math.cos(eyePitch);
+ if (Math.cos(eyeYaw) * cp <= 0.04) continue;
+
+ const ex = Math.sin(eyeYaw) * cp * rx;
+ const ey = -Math.sin(eyePitch) * ry + (this.morph > 0 ? ry * 0.14 * this.morph : 0);
+ const fx = lerp(Math.max(0.18, Math.cos(eyeYaw)), 1, this.morph * 0.7);
+ const fy = lerp(Math.max(0.18, cp), 1, this.morph * 0.7);
+ const eyeMult = this.isMini ? 1.9 : 1.0;
+ const ew = R * EYE_W * this.es * eyeMult;
+ const eh = R * EYE_H * this.es * eyeMult;
+
+ x.save();
+ x.translate(ex, ey);
+ x.scale(fx, fy);
+ this.drawEyeShape(x, shape, ew, eh, sd, ink);
+ x.restore();
+ }
+ x.restore();
+ }
+
+ private drawEyeShape(
+ x: CanvasRenderingContext2D, shape: EyeShape,
+ w: number, h: number, sd: number, ink: string,
+ ) {
+ const t = now();
+ switch (shape) {
+ case "wide":
+ this.drawEyeShape(x, "pill", w * 1.16, h * 1.12, sd, ink);
+ break;
+ case "pill": {
+ const hh = Math.max(h * this.open, w * 0.3);
+ roundRectPath(x, -w / 2, -hh / 2, w, hh, Math.min(w / 2, hh / 2));
+ x.fill();
+ break;
+ }
+ case "dot":
+ x.beginPath();
+ x.arc(0, 0, w * 0.45, 0, Math.PI * 2);
+ x.fill();
+ break;
+ case "line":
+ x.rotate(-sd * 0.2);
+ roundRectPath(x, -w * 0.78, -w * 0.21, w * 1.56, w * 0.42, w * 0.21);
+ x.fill();
+ break;
+ case "flat":
+ roundRectPath(x, -w * 0.72, -w * 0.2, w * 1.44, w * 0.4, w * 0.2);
+ x.fill();
+ break;
+ case "happy":
+ x.lineWidth = w * 0.5;
+ x.lineCap = "round";
+ x.beginPath();
+ x.arc(0, h * 0.18, w * 0.82, Math.PI * 1.12, Math.PI * 1.88);
+ x.stroke();
+ break;
+ case "closed":
+ x.lineWidth = w * 0.36;
+ x.lineCap = "round";
+ x.beginPath();
+ x.arc(0, -h * 0.08, w * 0.78, Math.PI * 0.15, Math.PI * 0.85);
+ x.stroke();
+ break;
+ case "spiral": {
+ x.lineWidth = w * 0.22;
+ x.lineCap = "round";
+ x.beginPath();
+ for (let a = 0; a < 4.4 * Math.PI; a += 0.2) {
+ const r = w * 0.06 + a * w * 0.058;
+ const aa = a + t * 9 * sd;
+ const px = Math.cos(aa) * r;
+ const py = Math.sin(aa) * r;
+ if (a === 0) x.moveTo(px, py);
+ else x.lineTo(px, py);
+ }
+ x.stroke();
+ break;
+ }
+ case "heart":
+ x.fillStyle = "#FF4D6D";
+ heartPath(x, w * 1.2);
+ x.fill();
+ x.fillStyle = ink;
+ break;
+ case "star":
+ x.fillStyle = "#F7B32B";
+ x.rotate(t * 1.5 * sd);
+ starPath(x, w * 1.05, w * 0.46);
+ x.fill();
+ x.fillStyle = ink;
+ break;
+ case "tired":
+ roundRectPath(x, -w / 2, -h * 0.02, w, h * 0.38, w / 2);
+ x.fill();
+ roundRectPath(x, -w * 0.62, -h * 0.1, w * 1.24, w * 0.22, w * 0.11);
+ x.fill();
+ break;
+ case "wink":
+ if (sd < 0) {
+ const hh = Math.max(h * this.open, w * 0.3);
+ roundRectPath(x, -w / 2, -hh / 2, w, hh, Math.min(w / 2, hh / 2));
+ x.fill();
+ } else {
+ x.lineWidth = w * 0.5;
+ x.lineCap = "round";
+ x.beginPath();
+ x.arc(0, h * 0.18, w * 0.82, Math.PI * 1.12, Math.PI * 1.88);
+ x.stroke();
+ }
+ break;
+ case "cup": {
+ // Flat top, rounded bottom corners (U shape) — used while the box is open
+ const hh = Math.max(h * this.open, w * 0.3);
+ const cr = Math.min(w / 2, hh / 2);
+ x.beginPath();
+ x.moveTo(-w / 2, -hh / 2);
+ x.lineTo(w / 2, -hh / 2);
+ x.lineTo(w / 2, hh / 2 - cr);
+ x.quadraticCurveTo(w / 2, hh / 2, w / 2 - cr, hh / 2);
+ x.lineTo(-w / 2 + cr, hh / 2);
+ x.quadraticCurveTo(-w / 2, hh / 2, -w / 2, hh / 2 - cr);
+ x.closePath();
+ x.fill();
+ break;
+ }
+ }
+ }
+
+ /** Mailbox slot: dark pill cut into the box face, with rim and lip highlights. */
+ private drawMouth(x: CanvasRenderingContext2D, body: Path2D, R: number) {
+ const m = this.morph;
+ const hW = R * 1.8 * m;
+ const hH = this.slotH * R * m;
+ const hX = -hW / 2;
+ const boxTop = -R * (0.88 + 0.06 * m);
+ const hY = boxTop + R * 0.08 * m;
+
+ x.save();
+ x.clip(body);
+
+ x.strokeStyle = `rgba(255,255,255,${0.55 * m})`;
+ x.lineWidth = 1;
+ x.lineCap = "round";
+ x.beginPath();
+ x.moveTo(-R * 0.9 * m, boxTop + 1);
+ x.lineTo(R * 0.9 * m, boxTop + 1);
+ x.stroke();
+
+ if (hH > 0.8) {
+ const hR = Math.min(hW / 2, hH / 2);
+ const g = x.createLinearGradient(0, hY, 0, hY + hH);
+ g.addColorStop(0, "rgb(7,8,10)");
+ g.addColorStop(1, "rgb(16,19,26)");
+ roundRectPath(x, hX, hY, hW, hH, hR);
+ x.fillStyle = g;
+ x.fill();
+ if (hH > 4) {
+ const lipR = Math.min(hR, (hW - 2) / 2);
+ x.strokeStyle = `rgba(255,255,255,${0.28 * m})`;
+ x.beginPath();
+ x.moveTo(hX + lipR, hY + hH - 0.5);
+ x.lineTo(hX + hW - lipR, hY + hH - 0.5);
+ x.stroke();
+ }
+ }
+ x.restore();
+ }
+
+ /** Hands sit behind the body — drawn before it, in world coordinates. */
+ private drawHandsBehind(
+ x: CanvasRenderingContext2D,
+ R: number, rx: number, ry: number, cx: number, cy: number,
+ ) {
+ if (this.hands <= 0.01 || this.isMini) return;
+ if (R <= 14) return; // meaningless at compact/peek sizes
+
+ const n = now();
+ const bodyH = 2 * ry;
+ const hew = 0.3 * ry * this.hands;
+ const heh = 0.26 * ry * this.hands;
+ const hwB = rx * this.sx;
+ const hhB = ry * this.sy;
+ const isWaving = n >= this.waveStart && this.waveStart > 0 && n < this.waveUntil;
+
+ for (const sd of [-1, 1]) {
+ let localX: number;
+ let localY: number;
+ let handRot = 0;
+
+ if (sd > 0 && isWaving) {
+ const wt = n - this.waveStart;
+ const rise = Math.min(1, wt / 0.18);
+ const riseEased = 1 - Math.pow(1 - rise, 3);
+ const restX = hwB * 1.08;
+ const restY = hhB * 0.7;
+ const oscX = Math.cos(13 * wt) * 0.06 * bodyH;
+ const oscY = -Math.sin(13 * wt) * 0.14 * bodyH;
+ const waveX = hwB * 1.1 + oscX;
+ const waveY = -hhB * 0.15 + oscY;
+ localX = restX + (waveX - restX) * riseEased;
+ localY = restY + (waveY - restY) * riseEased;
+ handRot = (-0.5 + Math.sin(13 * wt) * 0.35) * riseEased;
+ } else if (sd < 0 && isWaving) {
+ const wt = n - this.waveStart;
+ localX = -hwB * 1.08;
+ localY = hhB * 0.7 + Math.sin(6 * wt) * 0.04 * bodyH;
+ } else {
+ localX = sd * hwB * 1.08;
+ localY = hhB * 0.7;
+ }
+
+ const cosT = Math.cos(this.tilt);
+ const sinT = Math.sin(this.tilt);
+ const worldX = cx + cosT * localX - sinT * localY;
+ const worldY = cy + sinT * localX + cosT * localY;
+
+ x.save();
+ x.translate(worldX, worldY);
+ if (handRot !== 0) x.rotate(handRot);
+ const g = x.createLinearGradient(hew * 0.7, -heh * 0.85, -hew * 0.8, heh * 0.9);
+ if (this.bodyColor) {
+ g.addColorStop(0, rgba(mix3(this.bodyColor, [1, 1, 1], 0.35)));
+ g.addColorStop(1, rgba(this.bodyColor));
+ } else {
+ g.addColorStop(0, rgba(BASE_TOP));
+ g.addColorStop(1, rgba(BASE_BOTTOM));
+ }
+ x.beginPath();
+ x.ellipse(0, 0, hew, heh, 0, 0, Math.PI * 2);
+ x.fillStyle = g;
+ x.fill();
+ x.strokeStyle = "rgba(0,0,0,0.08)";
+ x.lineWidth = 1;
+ x.stroke();
+ x.restore();
+ }
+ }
+
+ private drawBadge(x: CanvasRenderingContext2D, badge: Badge, R: number, cx: number, cy: number) {
+ const bs = this.badgeS * (this.isMini ? 1.25 : 1);
+ const bx = cx - R * 0.72 * this.sx;
+ const by = cy - R * 0.72 * this.sy;
+ const t = now();
+
+ x.save();
+ x.translate(bx, by);
+ x.scale(bs, bs);
+ const col = rgba(badge.color);
+
+ if (badge.kind === "dots") {
+ if (this.isMini) {
+ const phase = (t * 2.4) % 1;
+ const dotR = R * 0.22 * (1 + 0.25 * Math.sin(phase * Math.PI * 2));
+ x.fillStyle = "#000";
+ x.beginPath();
+ x.arc(0, 0, R * 0.2, 0, Math.PI * 2);
+ x.fill();
+ x.fillStyle = col;
+ x.beginPath();
+ x.arc(0, 0, dotR, 0, Math.PI * 2);
+ x.fill();
+ } else {
+ const pw = R * 0.72;
+ const ph = R * 0.36;
+ roundRectPath(x, -pw / 2, -ph / 2, pw, ph, ph / 2);
+ x.fillStyle = col;
+ x.fill();
+ for (let i = 0; i < 3; i++) {
+ const phase = (((t * 2.4 - i * 0.22) % 1) + 1) % 1;
+ const dotR = R * 0.055 * (1 + 0.4 * Math.max(0, Math.sin(phase * Math.PI * 2)));
+ x.fillStyle = "#fff";
+ x.beginPath();
+ x.arc((i - 1) * R * 0.18, 0, dotR, 0, Math.PI * 2);
+ x.fill();
+ }
+ }
+ } else if (badge.kind === "bang" || badge.kind === "question") {
+ x.fillStyle = "#000";
+ x.beginPath();
+ x.arc(0, 0, R * 0.3, 0, Math.PI * 2);
+ x.fill();
+ x.fillStyle = col;
+ x.beginPath();
+ x.arc(0, 0, R * 0.23, 0, Math.PI * 2);
+ x.fill();
+ if (!this.isMini) {
+ x.fillStyle = "#fff";
+ x.font = `900 ${R * 0.32}px ${FONT}`;
+ x.textAlign = "center";
+ x.textBaseline = "middle";
+ x.fillText(badge.kind === "bang" ? "!" : "?", 0, R * 0.02);
+ }
+ } else {
+ x.fillStyle = "#000";
+ x.beginPath();
+ x.arc(0, 0, R * 0.2, 0, Math.PI * 2);
+ x.fill();
+ x.fillStyle = col;
+ x.beginPath();
+ x.arc(0, 0, R * 0.135, 0, Math.PI * 2);
+ x.fill();
+ }
+ x.restore();
+ }
+
+ private drawParticles(x: CanvasRenderingContext2D, R: number, cx: number, cy: number) {
+ for (const p of this.particles) {
+ if (p.age <= 0) continue;
+ const k = p.age / p.life;
+ const a = k < 0.2 ? k / 0.2 : 1 - (k - 0.2) / 0.8;
+ const px = cx + (p.x + p.vx * p.age) * R * 1.3;
+ const py = cy + (p.y + p.vy * p.age) * R * 1.3;
+ const sz = R * p.size * (1 + k * 0.4);
+
+ x.save();
+ x.translate(px, py);
+ x.globalAlpha = Math.min(1, Math.max(0, a));
+ switch (p.type) {
+ case "heart":
+ x.rotate(Math.sin(p.age * 6) * 0.3);
+ x.fillStyle = "#FF4D6D";
+ heartPath(x, sz);
+ x.fill();
+ break;
+ case "star":
+ x.rotate(p.rot + p.age * 2);
+ x.fillStyle = "#F7B32B";
+ starPath(x, sz, sz * 0.45);
+ x.fill();
+ break;
+ case "spark":
+ x.rotate(p.rot);
+ x.fillStyle = "#fff";
+ starPath(x, sz * 0.8, sz * 0.18);
+ x.fill();
+ break;
+ case "sweat":
+ x.fillStyle = "#7CC7FF";
+ x.beginPath();
+ x.moveTo(0, -sz);
+ x.quadraticCurveTo(sz * 0.8, sz * 0.2, 0, sz * 0.6);
+ x.quadraticCurveTo(-sz * 0.8, sz * 0.2, 0, -sz);
+ x.fill();
+ break;
+ case "z":
+ x.fillStyle = "rgb(209,219,235)";
+ x.font = `700 ${sz * 1.9}px ${FONT}`;
+ x.textAlign = "center";
+ x.textBaseline = "middle";
+ x.fillText("z", 0, 0);
+ break;
+ }
+ x.restore();
+ }
+ }
+}
+
+/** Ray → rounded-rect boundary intersection, for the mailbox morph. */
+function rrPoint(ca: number, sa: number, W: number, H: number, cr: number): { x: number; y: number } {
+ const eps = 1e-6;
+ const kx = ca >= 0 ? 1 : -1;
+ const ky = sa >= 0 ? 1 : -1;
+ const cx = kx * (W - cr);
+ const cy = ky * (H - cr);
+
+ const dot = ca * cx + sa * cy;
+ const disc = dot * dot - (cx * cx + cy * cy - cr * cr);
+ if (disc >= 0) {
+ const t = dot + Math.sqrt(disc);
+ if (t > eps) {
+ const px = ca * t;
+ const py = sa * t;
+ if (Math.abs(px) >= W - cr - eps && Math.abs(py) >= H - cr - eps) return { x: px, y: py };
+ }
+ }
+ if (Math.abs(sa) > eps) {
+ const t = (ky * H) / sa;
+ if (t > eps) {
+ const px = ca * t;
+ if (Math.abs(px) <= W - cr + eps) return { x: px, y: ky * H };
+ }
+ }
+ if (Math.abs(ca) > eps) {
+ const t = (kx * W) / ca;
+ if (t > eps) {
+ const py = sa * t;
+ if (Math.abs(py) <= H - cr + eps) return { x: kx * W, y: py };
+ }
+ }
+ return { x: kx * W, y: ky * H };
+}
diff --git a/windows/src/mochi/greeting.ts b/windows/src/mochi/greeting.ts
new file mode 100644
index 00000000..682f60a2
--- /dev/null
+++ b/windows/src/mochi/greeting.ts
@@ -0,0 +1,566 @@
+// The launch "coucou" — port of GreetingCanvasView.swift.
+// Everything is laid out in the same 640×150 reference space as on macOS.
+
+import { Sound } from "../core/sound";
+import { COMPACT_W, NOTCH_H, NOTCH_W } from "../core/layout";
+
+// ── Timing (mirrors greeting-v2.html `T`) ─────────────────────────────────────
+
+const T = {
+ grow: 0.45,
+ squint0: 0.6,
+ squint1: 0.82,
+ dip0: 1.25,
+ dip1: 1.4,
+ pop0: 1.36,
+ pop1: 1.52,
+ content0: 2.45,
+ content1: 2.58,
+ tuck0: 2.58,
+ tuck1: 2.8,
+ badge: 2.72,
+ down0: 2.85,
+ down1: 3.2,
+ blink2: 3.8,
+ tint0: 3.85,
+ tint1: 4.15,
+ end: 4.6,
+ autoLeave: 4.9,
+ COLLAPSE: 0.34,
+};
+
+export const GREETING_END = T.end;
+
+// ── Geometry (640×150) ────────────────────────────────────────────────────────
+
+const C0 = { x: 320, y: 90 };
+const HB = 58;
+const ASP = 1.34;
+const EAR_X = 40;
+const EAR_Y = 16;
+const EAR_HB = 17;
+const CARD = { x: 10, y: 36, w: 620, h: 104 };
+const CARD_R = 20;
+const SMALL_W = COMPACT_W;
+const SMALL_H = NOTCH_H;
+
+// ── Easing ────────────────────────────────────────────────────────────────────
+
+const E = {
+ out: (t: number) => 1 - Math.pow(1 - t, 3),
+ easeIn: (t: number) => t * t * t,
+ inOut: (t: number) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2),
+ back: (t: number) => {
+ const c1 = 1.70158;
+ const c3 = c1 + 1;
+ return 1 + c3 * Math.pow(t - 1, 3) + c1 * Math.pow(t - 1, 2);
+ },
+};
+
+const clamp = (v: number, a: number, b: number) => Math.max(a, Math.min(b, v));
+const lerp = (a: number, b: number, t: number) => a + (b - a) * t;
+const seg = (t: number, a: number, b: number) => clamp((t - a) / (b - a), 0, 1);
+
+// ── Pose ──────────────────────────────────────────────────────────────────────
+
+type EyeType = "dot" | "happy" | "content";
+
+interface Pose {
+ hb: number; x: number; y: number; sx: number; sy: number; tilt: number;
+ eye: EyeType; open: number; eyeRoll: number;
+ lookX: number; lookY: number;
+ handL: number; handR: number; wave: number;
+ badge: number; tint: number; halo: number; haloBlue: number; minis: number; fx: number;
+ header: number; card: number;
+ iw: number; ih: number;
+}
+
+function greetPose(t: number): Pose {
+ const gx = seg(t, 0, 0.5);
+ const g = Math.sin((Math.PI * gx) / 2) + 0.04 * Math.sin(Math.PI * gx) * gx;
+ const iw = lerp(NOTCH_W, 640, g);
+ const ih = lerp(NOTCH_H, 150, g);
+
+ const gg = E.back(seg(t, 0.02, T.grow));
+ const hb = lerp(3, HB, gg);
+ let x = C0.x;
+ let y = lerp(16, C0.y, E.out(seg(t, 0.02, T.grow)));
+ let sx = 1;
+ let sy = 1;
+ let tilt = 0;
+
+ if (t >= T.dip0 && t < T.pop1) {
+ const k = Math.sin(Math.PI * seg(t, T.dip0, T.pop1));
+ y += hb * 0.22 * k;
+ sy = 1 - 0.06 * k;
+ sx = 1 + 0.04 * k;
+ }
+ if (t >= T.pop1 && t < T.tuck1) {
+ const w = t - T.pop1;
+ const fade = 1 - seg(t, T.tuck0, T.tuck1);
+ x += Math.sin(w * 2 * Math.PI * 0.9) * hb * ASP * 0.05 * fade;
+ tilt = Math.sin(w * 2 * Math.PI * 0.9 + 0.6) * 0.05 * fade;
+ y += Math.sin(w * 2 * Math.PI * 1.8) * 0.8 * fade;
+ }
+ if (t >= T.tuck0 && t < T.down1) {
+ y += hb * 0.12 * Math.sin(Math.PI * seg(t, T.tuck0, T.down1));
+ }
+
+ let eye: EyeType = "dot";
+ if (t >= T.squint0 && t < T.squint1) eye = "happy";
+ if (t >= T.content0 && t < T.content1) eye = "content";
+ if (t >= T.down0 && t < T.down1) eye = "content";
+ let eyeRoll = 0;
+ if (t >= T.dip0 && t < T.pop1) eyeRoll = Math.sin(Math.PI * seg(t, T.dip0, T.pop1));
+ const blink = (tb: number) => {
+ const k = seg(t, tb, tb + 0.12);
+ return k > 0 && k < 1 ? 1 - Math.sin(Math.PI * k) * 0.94 : 1;
+ };
+ const open = Math.min(blink(1.95), blink(T.blink2));
+
+ let lookX = 0;
+ let lookY = 0;
+ if (t >= T.squint1 && t < T.dip0) lookY = -0.2;
+ if (t >= T.pop1 && t < T.content0) { lookX = 0.55; lookY = -0.45; }
+ if (t >= T.content0 && t < T.down1) { lookX = -0.3; lookY = 0.6; }
+ if (t >= T.down1) {
+ const k = E.inOut(seg(t, T.down1, T.down1 + 0.35));
+ lookX = lerp(-0.3, 0, k);
+ lookY = lerp(0.6, 0, k);
+ }
+
+ const handL = t < T.tuck0
+ ? E.back(seg(t, T.pop0, T.pop0 + 0.14))
+ : 1 - E.easeIn(seg(t, T.tuck0, T.tuck1 - 0.03));
+ const handR = t < T.tuck0
+ ? E.back(seg(t, T.pop0 + 0.04, T.pop0 + 0.18))
+ : 1 - E.easeIn(seg(t, T.tuck0 + 0.03, T.tuck1));
+ const wave = t >= T.pop1 && t < T.tuck0 ? t - T.pop1 : -1;
+
+ return {
+ hb, x, y, sx, sy, tilt,
+ eye, open, eyeRoll,
+ lookX, lookY,
+ handL, handR, wave,
+ badge: E.back(seg(t, T.badge, T.badge + 0.28)),
+ tint: 0.6 * E.inOut(seg(t, T.tint0, T.tint1)),
+ halo: E.out(seg(t, 0.3, 0.7)),
+ haloBlue: seg(t, T.tint0, T.tint1),
+ minis: 0,
+ fx: 1,
+ header: seg(t, 0.35, 0.6),
+ card: seg(t, 0.18, 0.45),
+ iw, ih,
+ };
+}
+
+function smallPose(): Pose {
+ return {
+ hb: EAR_HB,
+ x: 320 - SMALL_W / 2 + EAR_X,
+ y: EAR_Y,
+ sx: 1, sy: 1, tilt: 0,
+ eye: "dot", open: 1, eyeRoll: 0,
+ lookX: 0, lookY: 0,
+ handL: 0, handR: 0, wave: -1,
+ badge: 1, tint: 0.6, halo: 0.6, haloBlue: 1,
+ minis: 1, fx: 1,
+ header: 0, card: 0,
+ iw: SMALL_W, ih: SMALL_H,
+ };
+}
+
+function pose(t: number, tc: number): Pose {
+ if (t < tc) return greetPose(Math.min(t, T.end + 10));
+ const a = greetPose(tc);
+ const b = smallPose();
+ const e = E.inOut(seg(t, tc, tc + T.COLLAPSE));
+ const p: Pose = { ...a };
+ p.iw = lerp(a.iw, b.iw, e);
+ p.ih = lerp(a.ih, b.ih, e);
+ p.x = lerp(a.x, b.x, e);
+ p.y = lerp(a.y, b.y, e);
+ p.hb = lerp(a.hb, b.hb, e);
+ p.badge = lerp(a.badge, b.badge, e);
+ p.tint = lerp(a.tint, b.tint, e);
+ p.halo = lerp(a.halo, b.halo, e);
+ p.haloBlue = lerp(a.haloBlue, b.haloBlue, e);
+ p.header = a.header * (1 - seg(t, tc, tc + 0.1));
+ p.card = a.card * (1 - seg(t, tc, tc + 0.18));
+ p.handL = a.handL * (1 - seg(t, tc, tc + 0.15));
+ p.handR = a.handR * (1 - seg(t, tc, tc + 0.15));
+ p.tilt = a.tilt * (1 - e);
+ p.sx = lerp(a.sx, 1, e);
+ p.sy = lerp(a.sy, 1, e);
+ p.eyeRoll = a.eyeRoll * (1 - e);
+ const bk = seg(t, tc + 0.14, tc + 0.26);
+ p.eye = "dot";
+ p.open = bk > 0 && bk < 1 ? 1 - Math.sin(Math.PI * bk) * 0.94 : 1;
+ p.lookX = a.lookX * (1 - e);
+ p.lookY = a.lookY * (1 - e);
+ p.minis = E.back(seg(t, tc + 0.24, tc + 0.42));
+ p.fx = 1 - seg(t, tc, tc + 0.2);
+ return p;
+}
+
+// ── Particles (seeded LCG, seed = 7, identical sequence to the Swift version) ──
+
+interface RingDot { a: number; j: number; s: number; al: number }
+interface Ring { t0: number; dots: RingDot[] }
+interface Streak { a: number; sp: number; len: number; t0: number; col: string }
+
+const PARTICLES = (() => {
+ let seed = 7;
+ const rnd = () => {
+ seed = (Math.imul(seed, 1103515245) + 12345) & 0x7fffffff;
+ return seed / 0x7fffffff;
+ };
+ const rings: Ring[] = [0.1, 0.2, 0.3, 0.45, 0.6].map((t0) => ({
+ t0,
+ dots: Array.from({ length: 170 }, () => ({
+ a: rnd() * Math.PI * 2,
+ j: (rnd() - 0.5) * 0.22,
+ s: 0.7 + rnd() * 0.9,
+ al: 0.45 + rnd() * 0.55,
+ })),
+ }));
+ const cols = ["#3B9EFF", "#F29B38", "#FF5A4E", "#2EC4A0", "#A78BFA"];
+ const streaks: Streak[] = Array.from({ length: 16 }, (_, i) => ({
+ a: (i / 16) * Math.PI * 2 + (rnd() - 0.5) * 0.3,
+ sp: 230 + rnd() * 260,
+ len: 6 + rnd() * 9,
+ t0: 0.08 + rnd() * 0.14,
+ col: cols[i % 5],
+ }));
+ return { rings, streaks };
+})();
+
+// ── Drawing ───────────────────────────────────────────────────────────────────
+
+function rr(x: CanvasRenderingContext2D, X: number, Y: number, W: number, H: number, R: number) {
+ const r = Math.max(0, Math.min(R, W / 2, H / 2));
+ x.beginPath();
+ x.moveTo(X + r, Y);
+ x.arcTo(X + W, Y, X + W, Y + H, r);
+ x.arcTo(X + W, Y + H, X, Y + H, r);
+ x.arcTo(X, Y + H, X, Y, r);
+ x.arcTo(X, Y, X + W, Y, r);
+ x.closePath();
+}
+
+function mochiPath(hw: number, hh: number): Path2D {
+ const n = 3.2;
+ const p = new Path2D();
+ const steps = 96;
+ for (let i = 0; i <= steps; i++) {
+ const a = (i / steps) * 2 * Math.PI;
+ const ca = Math.cos(a);
+ const sa = Math.sin(a);
+ const px = hw * (ca < 0 ? -1 : 1) * Math.pow(Math.abs(ca), 2 / n);
+ const py = hh * (sa < 0 ? -1 : 1) * Math.pow(Math.abs(sa), 2 / n);
+ if (i === 0) p.moveTo(px, py);
+ else p.lineTo(px, py);
+ }
+ p.closePath();
+ return p;
+}
+
+function whiteFill(
+ x: CanvasRenderingContext2D, path: Path2D,
+ x0: number, y0: number, x1: number, y1: number,
+) {
+ const g = x.createLinearGradient(x0, y0, x1, y1);
+ g.addColorStop(0, "rgb(251,251,252)");
+ g.addColorStop(1, "rgb(231,233,236)");
+ x.save();
+ x.fillStyle = g;
+ x.fill(path);
+ x.restore();
+}
+
+function drawHandL(x: CanvasRenderingContext2D, hw: number, hh: number, p: Pose) {
+ const k = p.handL;
+ if (k <= 0.01) return;
+ const hb = hh * 2;
+ const r = hb * 0.15 * k;
+ const rx = lerp(-hw * 0.35, -hw - hb * 0.22, k);
+ let ry = lerp(hh * 0.85, hh * 0.62, k);
+ if (p.wave >= 0) ry += Math.sin(p.wave * 6) * hb * 0.02;
+ x.save();
+ x.translate(rx, ry);
+ const circ = new Path2D();
+ circ.ellipse(0, 0, r, r, 0, 0, Math.PI * 2);
+ whiteFill(x, circ, r, -r, -r, r);
+ x.strokeStyle = "rgba(0,0,0,0.08)";
+ x.lineWidth = 0.8;
+ x.stroke(circ);
+ x.restore();
+}
+
+function drawHandR(x: CanvasRenderingContext2D, hw: number, hh: number, p: Pose) {
+ const k = p.handR;
+ if (k <= 0.01) return;
+ const hb = hh * 2;
+ const L = hb * 0.4 * k;
+ const T2 = hb * 0.22 * k;
+ let rx = lerp(hw * 0.35, hw + hb * 0.2, k);
+ let ry = lerp(hh * 0.85, hh * 0.2, k);
+ let ang = -0.61;
+ if (p.wave >= 0) {
+ const w = p.wave * 2 * Math.PI * 2.5;
+ ang += Math.sin(w) * 0.21;
+ ry += Math.sin(w + 0.8) * hb * 0.04;
+ rx += Math.cos(w) * hb * 0.015;
+ }
+ x.save();
+ x.translate(rx, ry);
+ x.rotate(ang);
+ const g = x.createLinearGradient(L / 2, -T2 / 2, -L / 2, T2 / 2);
+ g.addColorStop(0, "rgb(251,251,252)");
+ g.addColorStop(1, "rgb(231,233,236)");
+ rr(x, -L / 2, -T2 / 2, L, T2, T2 / 2);
+ x.fillStyle = g;
+ x.fill();
+ x.strokeStyle = "rgba(0,0,0,0.08)";
+ x.lineWidth = 0.8;
+ x.stroke();
+ x.restore();
+}
+
+function drawMochi(x: CanvasRenderingContext2D, p: Pose) {
+ const hh = p.hb / 2;
+ const hw = hh * ASP;
+ if (hh <= 0.4) return;
+
+ // Halo: golden → blue, two passes for a soft aura
+ if (p.halo > 0) {
+ const bl = p.haloBlue;
+ const cr = Math.round(lerp(232, 59, bl));
+ const cg = Math.round(lerp(195, 158, bl));
+ const cb = Math.round(lerp(154, 255, bl));
+ for (const [R, alpha] of [[hw * 2.6, 0.18], [hw * 4.2, 0.07]] as const) {
+ const g = x.createRadialGradient(p.x, p.y, 0, p.x, p.y, R);
+ g.addColorStop(0, `rgba(${cr},${cg},${cb},${alpha * p.halo})`);
+ g.addColorStop(1, `rgba(${cr},${cg},${cb},0)`);
+ x.fillStyle = g;
+ x.beginPath();
+ x.arc(p.x, p.y, R, 0, Math.PI * 2);
+ x.fill();
+ }
+ }
+
+ x.save();
+ x.translate(p.x, p.y);
+ x.rotate(p.tilt);
+ x.scale(p.sx, p.sy);
+
+ drawHandL(x, hw, hh, p);
+ drawHandR(x, hw, hh, p);
+
+ const body = mochiPath(hw, hh);
+ whiteFill(x, body, hw * 0.6, -hh, -hw * 0.6, hh);
+
+ if (p.tint > 0) {
+ const g = x.createLinearGradient(0, hh, 0, -hh * 0.1);
+ g.addColorStop(0, `rgba(127,180,234,${p.tint})`);
+ g.addColorStop(1, "rgba(127,180,234,0)");
+ x.save();
+ x.clip(body);
+ x.fillStyle = g;
+ x.fill(body);
+ x.restore();
+ }
+
+ // Eyes
+ x.save();
+ x.clip(body);
+ x.fillStyle = "#16171A";
+ x.strokeStyle = "#16171A";
+ const er = p.hb * 0.06;
+ const sp = p.hb * 0.19;
+ const lx = p.lookX * hw * 0.42;
+ const ly = p.lookY * hh * 0.28 + hh * 0.12 + p.eyeRoll * hh * 1.25;
+ for (const sd of [-1, 1]) {
+ x.save();
+ x.translate(sd * sp + lx, ly);
+ if (p.eye === "happy") {
+ x.lineWidth = er * 0.95;
+ x.lineCap = "round";
+ x.beginPath();
+ x.arc(0, er * 0.6, er * 1.25, Math.PI * 1.15, Math.PI * 1.85);
+ x.stroke();
+ } else if (p.eye === "content") {
+ x.lineWidth = er * 0.95;
+ x.lineCap = "round";
+ x.beginPath();
+ x.arc(0, -er * 0.5, er * 1.25, Math.PI * 0.15, Math.PI * 0.85);
+ x.stroke();
+ } else {
+ x.scale(1, Math.max(0.12, p.open));
+ x.beginPath();
+ x.arc(0, 0, er, 0, Math.PI * 2);
+ x.fill();
+ }
+ x.restore();
+ }
+ x.restore();
+
+ // Activity badge
+ if (p.badge > 0.01) {
+ const br = hh * 0.3;
+ x.save();
+ x.translate(-hw * 0.78, -hh * 0.72);
+ x.scale(p.badge, p.badge);
+ x.fillStyle = "#000";
+ x.beginPath();
+ x.arc(0, 0, br + hh * 0.07, 0, Math.PI * 2);
+ x.fill();
+ x.fillStyle = "#3BA0F5";
+ x.beginPath();
+ x.arc(0, 0, br, 0, Math.PI * 2);
+ x.fill();
+ x.fillStyle = "#0B1B3A";
+ for (const i of [-1, 0, 1]) {
+ x.beginPath();
+ x.arc(i * br * 0.5, 0, br * 0.17, 0, Math.PI * 2);
+ x.fill();
+ }
+ x.restore();
+ }
+
+ x.restore();
+}
+
+function drawParticles(x: CanvasRenderingContext2D, t: number, p: Pose) {
+ if (!(p.card > 0 || p.fx < 1)) return;
+ for (const ring of PARTICLES.rings) {
+ const k = seg(t, ring.t0, ring.t0 + 1.35);
+ if (k <= 0 || k >= 1) continue;
+ const rx = lerp(14, 380, E.out(k));
+ const ry = rx * 0.34;
+ const fade = (1 - k) * (k < 0.08 ? k / 0.08 : 1) * p.fx * p.card;
+ for (const dot of ring.dots) {
+ const r = 1 + dot.j;
+ x.fillStyle = `rgba(255,255,255,${dot.al * fade})`;
+ x.fillRect(C0.x + Math.cos(dot.a) * rx * r, C0.y + Math.sin(dot.a) * ry * r, dot.s, dot.s);
+ }
+ }
+ for (const s of PARTICLES.streaks) {
+ const k = seg(t, s.t0, s.t0 + 0.6);
+ if (k <= 0 || k >= 1) continue;
+ const dist = s.sp * E.out(k) * 0.9 + 10;
+ const alpha = (1 - k) * p.fx;
+ x.strokeStyle = s.col + Math.round(alpha * 255).toString(16).padStart(2, "0");
+ x.lineWidth = 1.6;
+ x.lineCap = "round";
+ x.beginPath();
+ x.moveTo(C0.x + Math.cos(s.a) * (dist - s.len), C0.y + Math.sin(s.a) * (dist - s.len) * 0.42);
+ x.lineTo(C0.x + Math.cos(s.a) * dist, C0.y + Math.sin(s.a) * dist * 0.42);
+ x.stroke();
+ }
+}
+
+const MINI_COLORS = ["#E86A6A", "#3E86E0", "#EFAE5A", "#8C73F2"];
+
+function drawMinis(x: CanvasRenderingContext2D, alpha: number) {
+ if (alpha <= 0.01) return;
+ const cx = 320 + SMALL_W / 2 - 27;
+ const cy = 16;
+ const sp = 6;
+ const offsets: [number, number][] = [[-sp, -sp], [sp, -sp], [-sp, sp], [sp, sp]];
+ offsets.forEach(([dx, dy], i) => {
+ x.save();
+ x.translate(cx + dx, cy + dy);
+ x.scale(alpha, alpha);
+ x.fillStyle = MINI_COLORS[i];
+ x.fill(mochiPath(5.3, 4));
+ x.restore();
+ });
+}
+
+// ── Controller ────────────────────────────────────────────────────────────────
+
+/**
+ * Runs the greeting animation on its own canvas. `onComplete` fires once at
+ * T.end (or right after the collapse when interrupted) so the FSM can move on.
+ */
+export class Greeting {
+ private startMs = 0;
+ private tc = Number.POSITIVE_INFINITY;
+ private fired = false;
+ private timers: number[] = [];
+
+ onComplete: (() => void) | null = null;
+
+ start() {
+ this.startMs = performance.now();
+ this.tc = Number.POSITIVE_INFINITY;
+ this.fired = false;
+ this.cancelTimers();
+ this.timers.push(
+ window.setTimeout(() => Sound.play("greet"), T.pop0 * 1000),
+ window.setTimeout(() => Sound.play("blip"), T.badge * 1000),
+ window.setTimeout(() => this.fire(), (T.end + 0.05) * 1000),
+ );
+ }
+
+ /** Mouse entered the island during the greeting — hold it open. */
+ hover() {
+ if (this.tc >= T.autoLeave) this.tc = Number.POSITIVE_INFINITY;
+ }
+
+ /** Mouse left — collapse from now. */
+ interrupt() {
+ const t = (performance.now() - this.startMs) / 1000;
+ if (!Number.isFinite(this.tc) || this.tc > t) this.tc = t;
+ this.cancelTimers();
+ }
+
+ get elapsed(): number {
+ return (performance.now() - this.startMs) / 1000;
+ }
+
+ get done(): boolean {
+ return this.fired;
+ }
+
+ private fire() {
+ if (this.fired) return;
+ this.fired = true;
+ this.cancelTimers();
+ this.onComplete?.();
+ }
+
+ private cancelTimers() {
+ this.timers.forEach((id) => window.clearTimeout(id));
+ this.timers = [];
+ }
+
+ draw(x: CanvasRenderingContext2D) {
+ const t = this.elapsed;
+ if (!this.fired && t >= T.end && this.tc >= T.autoLeave) this.fire();
+
+ const p = pose(t, this.tc);
+ x.clearRect(0, 0, 640, 150);
+
+ if (p.card > 0) {
+ x.save();
+ x.globalAlpha = p.card;
+ rr(x, CARD.x, CARD.y, CARD.w, CARD.h, CARD_R);
+ x.fillStyle = "#141518";
+ x.fill();
+ x.restore();
+
+ x.save();
+ rr(x, CARD.x, CARD.y, CARD.w, CARD.h, CARD_R);
+ x.clip();
+ drawParticles(x, t, p);
+ x.restore();
+ } else if (Number.isFinite(this.tc) && t >= this.tc) {
+ drawParticles(x, t, p);
+ }
+
+ drawMinis(x, p.minis);
+ drawMochi(x, p);
+ }
+}
diff --git a/windows/src/mochi/minibots.ts b/windows/src/mochi/minibots.ts
new file mode 100644
index 00000000..5f7f2c5d
--- /dev/null
+++ b/windows/src/mochi/minibots.ts
@@ -0,0 +1,76 @@
+// Mini Mochis (pills + compact grid) — port of MiniBotCanvasView.
+// Each canvas owns a BotEngine; the island's frame loop ticks every live one.
+
+import { BotEngine, hexToRGB } from "./engine";
+import type { AgentTask } from "../core/state";
+
+interface MiniBot {
+ canvas: HTMLCanvasElement;
+ engine: BotEngine;
+ cssSize: number;
+ taskId: string;
+}
+
+const live = new Map<HTMLCanvasElement, MiniBot>();
+
+/**
+ * Creates a mini Mochi canvas of `cssSize` CSS pixels. The engine canvas is
+ * `cssSize / 0.6` wide (the body fills 60 % of it), exactly like SwiftUI.
+ */
+export function createMiniBot(task: AgentTask, cssSize: number): HTMLCanvasElement {
+ const canvas = document.createElement("canvas");
+ const engineSize = cssSize / 0.6;
+ const dpr = Math.min(2, window.devicePixelRatio || 1);
+ canvas.width = Math.round(engineSize * dpr);
+ canvas.height = Math.round(engineSize * dpr);
+ canvas.style.width = `${cssSize}px`;
+ canvas.style.height = `${cssSize}px`;
+
+ const engine = new BotEngine();
+ engine.isMini = true;
+ engine.bodyColor = hexToRGB(task.color);
+ engine.setState(task.state, true);
+ if (task.emote) engine.setPermanentEmote(task.emote);
+ if (task.miniEye) {
+ engine.permanentEye = task.miniEye;
+ engine.eyeOverride = task.miniEye;
+ engine.eyeOverrideUntil = Number.POSITIVE_INFINITY;
+ }
+
+ live.set(canvas, { canvas, engine, cssSize: engineSize, taskId: task.id });
+ return canvas;
+}
+
+export function releaseMiniBot(canvas: HTMLCanvasElement) {
+ live.delete(canvas);
+}
+
+/** Drops every canvas no longer in the document (views are rebuilt wholesale). */
+export function pruneMiniBots() {
+ for (const [canvas] of live) {
+ if (!canvas.isConnected) live.delete(canvas);
+ }
+}
+
+export function syncMiniBotStates(tasks: AgentTask[]) {
+ for (const mb of live.values()) {
+ const task = tasks.find((t) => t.id === mb.taskId);
+ if (!task) continue;
+ mb.engine.setState(task.state);
+ mb.engine.bodyColor = hexToRGB(task.color);
+ }
+}
+
+export function tickMiniBots(dt: number) {
+ const dpr = Math.min(2, window.devicePixelRatio || 1);
+ for (const mb of live.values()) {
+ const ctx = mb.canvas.getContext("2d");
+ if (!ctx) continue;
+ mb.engine.update(dt);
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
+ ctx.clearRect(0, 0, mb.cssSize, mb.cssSize);
+ mb.engine.draw(ctx, mb.cssSize, mb.cssSize);
+ }
+}
+
+export const miniBotCount = () => live.size;
diff --git a/windows/src/style.css b/windows/src/style.css
new file mode 100644
index 00000000..e75ac212
--- /dev/null
+++ b/windows/src/style.css
@@ -0,0 +1,693 @@
+/* Coucou for Windows — same palette, sizes and type scale as the macOS island.
+ Every colour below is copied from the Swift views. */
+
+:root {
+ --font: system-ui, "Segoe UI Variable Text", "Segoe UI", "Segoe UI Emoji", sans-serif;
+ --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
+
+ --ink: #f5f6f8; /* primary text */
+ --ink-2: #f1f2f4;
+ --dim: #9398a1;
+ --dim-2: #8e939c;
+ --dim-3: #6b7079;
+ --dim-4: #5f646d;
+ --dim-5: #4b5563;
+ --card: #141518;
+ --card-flat: #0e0f11;
+ --tab-on: #1d1f23;
+ --hairline: rgba(255, 255, 255, 0.035);
+ --red: #f4505e;
+ --red-text: #ff8d97;
+ --green: #22c55e;
+ --green-2: #34d399;
+ --amber: #f5a524;
+ --cyan: #22d3ee;
+ --indigo: #6366f1;
+ --pink: #f472b6;
+}
+
+* {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+}
+
+html,
+body {
+ width: 100%;
+ height: 100%;
+ background: transparent;
+ overflow: hidden;
+ font-family: var(--font);
+ color: var(--ink);
+ -webkit-font-smoothing: antialiased;
+ user-select: none;
+ cursor: default;
+}
+
+#root {
+ position: fixed;
+ inset: 0;
+}
+
+/* Invisible strip that wakes the island when it is hidden. */
+#wake-strip {
+ position: fixed;
+ top: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 240px;
+ height: 6px;
+ background: transparent;
+}
+
+/* ── Island ─────────────────────────────────────────────────────────────── */
+
+#island {
+ position: absolute;
+ top: 0;
+ left: 50%;
+ background: #000;
+ border-radius: 0 0 14px 14px;
+ overflow: visible;
+ will-change: width, height, transform;
+}
+
+#island-clip {
+ position: absolute;
+ inset: 0;
+ overflow: hidden;
+ border-radius: inherit;
+}
+
+#bot-canvas,
+#greeting-canvas {
+ position: absolute;
+ pointer-events: none;
+}
+
+#bot-glow {
+ position: absolute;
+ pointer-events: none;
+ border-radius: 50%;
+ filter: blur(6px);
+ transition: opacity 0.4s ease-in-out, background 0.4s ease-in-out;
+}
+
+#countdown {
+ position: absolute;
+ bottom: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ height: 2px;
+ border-radius: 2px;
+ background: rgba(255, 255, 255, 0.35);
+ width: 0;
+}
+
+/* Compact 2×2 mini grid, to the right of the notch. */
+#mini-grid {
+ position: absolute;
+ width: 28px;
+ height: 28px;
+ display: grid;
+ grid-template-columns: 12px 12px;
+ grid-auto-rows: 12px;
+ gap: 4px;
+ pointer-events: none;
+ transition: opacity 0.25s ease-in-out;
+}
+
+#mini-grid canvas {
+ width: 12px;
+ height: 12px;
+}
+
+/* ── Content shell (expanded) ───────────────────────────────────────────── */
+
+#content {
+ position: absolute;
+ inset: 0;
+ padding: 8px 10px 10px;
+ display: flex;
+ flex-direction: column;
+ transition: opacity 0.2s ease-in-out;
+}
+
+#header {
+ height: 34px;
+ flex: 0 0 34px;
+ display: flex;
+ align-items: center;
+ margin: 0 -10px;
+ transition: opacity 0.2s ease-in-out;
+}
+
+.tabs {
+ display: flex;
+ gap: 5px;
+ padding-left: 14px;
+}
+
+.tab {
+ width: 30px;
+ height: 22px;
+ display: grid;
+ place-items: center;
+ border: 0;
+ background: transparent;
+ border-radius: 11px;
+ color: var(--dim-2);
+ cursor: default;
+}
+
+.tab:hover {
+ background: rgba(255, 255, 255, 0.07);
+ color: #b0b5be;
+}
+
+.tab.on {
+ background: var(--tab-on);
+ color: var(--ink);
+}
+
+.header-actions {
+ margin-left: auto;
+ display: flex;
+ gap: 14px;
+ padding-right: 16px;
+}
+
+.header-actions button {
+ border: 0;
+ background: transparent;
+ color: var(--dim-2);
+ display: grid;
+ place-items: center;
+ cursor: default;
+}
+
+.header-actions button.on {
+ color: var(--ink);
+}
+
+#views {
+ position: relative;
+ flex: 1 1 auto;
+ min-height: 0;
+}
+
+.view {
+ position: absolute;
+ inset: 0;
+ opacity: 0;
+ transform: scale(0.97);
+ pointer-events: none;
+ transition: opacity 0.16s ease-in;
+}
+
+.view.on {
+ opacity: 1;
+ transform: scale(1);
+ pointer-events: auto;
+ transition: opacity 0.3s ease-out 0.16s, transform 0.3s cubic-bezier(0.3, 1.2, 0.4, 1) 0.16s;
+}
+
+/* ── Cards ──────────────────────────────────────────────────────────────── */
+
+.card {
+ position: relative;
+ height: 100%;
+ border-radius: 20px;
+ background: var(--card);
+ border: 1px solid var(--hairline);
+ overflow: hidden;
+}
+
+.card.wash::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background: radial-gradient(
+ 280px 280px at 50% 130%,
+ var(--wash) 0%,
+ rgba(0, 0, 0, 0) 70%
+ );
+ pointer-events: none;
+}
+
+.row {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+}
+
+.dot {
+ display: inline-block;
+ border-radius: 50%;
+ flex: 0 0 auto;
+}
+
+/* ── Buttons ────────────────────────────────────────────────────────────── */
+
+.btn {
+ font: 500 12.5px var(--font);
+ padding: 7px 13px;
+ border: 0;
+ border-radius: 999px;
+ cursor: default;
+ display: inline-flex;
+ align-items: center;
+ gap: 7px;
+ transition: transform 0.08s ease-out, background 0.12s ease-out;
+}
+
+.btn:active {
+ transform: scale(0.94);
+}
+
+.btn.primary {
+ background: var(--ink);
+ color: #0b0c0e;
+}
+
+.btn.secondary {
+ background: rgba(255, 255, 255, 0.09);
+ color: var(--ink-2);
+}
+
+.btn.secondary:hover {
+ background: rgba(255, 255, 255, 0.15);
+}
+
+.btn .kbd {
+ font-size: 10.5px;
+ padding: 0 4px;
+ border-radius: 4px;
+ opacity: 0.55;
+}
+
+.btn.primary .kbd {
+ border: 1px solid rgba(0, 0, 0, 0.4);
+}
+
+.btn.secondary .kbd {
+ border: 1px solid rgba(255, 255, 255, 0.4);
+}
+
+.link-btn {
+ border: 0;
+ background: transparent;
+ font: 500 11px var(--font);
+ cursor: default;
+}
+
+.icon-btn {
+ width: 16px;
+ height: 16px;
+ border: 0;
+ border-radius: 50%;
+ background: rgba(255, 255, 255, 0.07);
+ color: var(--dim-4);
+ display: grid;
+ place-items: center;
+ cursor: default;
+}
+
+/* ── Overview ───────────────────────────────────────────────────────────── */
+
+.overview {
+ display: flex;
+ gap: 10px;
+ height: 100%;
+}
+
+.overview > .left {
+ flex: 0 0 322px;
+ width: 322px;
+}
+
+.overview > .right {
+ flex: 1 1 auto;
+}
+
+.card-body {
+ position: relative;
+ z-index: 1;
+ padding-top: 10px;
+}
+
+.who {
+ padding: 0 36px 0 108px;
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ min-width: 0;
+}
+
+.who .name {
+ font: 600 12px var(--font);
+ color: var(--ink);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.who .tool {
+ font: 400 11px var(--font);
+ color: var(--dim-2);
+ white-space: nowrap;
+}
+
+.who .count {
+ font: 400 11px var(--font);
+ color: var(--dim-3);
+ margin-left: auto;
+ flex: 0 0 auto;
+}
+
+.jump {
+ position: absolute;
+ top: 8px;
+ right: 10px;
+ z-index: 2;
+}
+
+/* Ticker */
+
+.ticker {
+ position: relative;
+ height: 44px;
+ margin: 6px 12px 0 108px;
+ overflow: hidden;
+ -webkit-mask-image: linear-gradient(
+ to bottom,
+ transparent 0%,
+ #000 12%,
+ #000 85%,
+ transparent 100%
+ );
+ mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 85%, transparent 100%);
+}
+
+.ticker-row {
+ position: absolute;
+ left: 0;
+ right: 0;
+ height: 22px;
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ transform-origin: left center;
+ will-change: transform, opacity;
+}
+
+.ticker-row .tick-icon {
+ width: 12px;
+ display: grid;
+ place-items: center;
+ flex: 0 0 12px;
+ color: var(--dim-2);
+}
+
+.ticker-row .tick-text {
+ font: 500 13px var(--font);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.ticker-row.done .tick-icon {
+ color: #454850;
+}
+
+.ticker-row.done .tick-text {
+ color: var(--dim-3);
+ background: none;
+ -webkit-text-fill-color: currentColor;
+}
+
+/* Shimmer sweep, 2.2 s — same as TickerShimmerText / ShimmeringText */
+.shimmer {
+ background: linear-gradient(
+ 90deg,
+ #7c818a 0%,
+ #f2f3f5 40%,
+ #7c818a 70%
+ );
+ background-size: 260% 100%;
+ -webkit-background-clip: text;
+ background-clip: text;
+ -webkit-text-fill-color: transparent;
+ animation: shimmer 2.2s linear infinite;
+}
+
+@keyframes shimmer {
+ from {
+ background-position: 130% 0;
+ }
+ to {
+ background-position: -130% 0;
+ }
+}
+
+/* ── Agent pills ────────────────────────────────────────────────────────── */
+
+.pills {
+ position: relative;
+ z-index: 1;
+ height: 100%;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ grid-auto-rows: 28px;
+ gap: 4px;
+ align-content: center;
+ padding: 0 8px;
+}
+
+.pill {
+ position: relative;
+ height: 28px;
+ border-radius: 999px;
+ background: var(--card-flat);
+ border: 1px solid rgba(255, 255, 255, 0.14);
+ display: flex;
+ align-items: center;
+ cursor: default;
+ transition: transform 0.2s cubic-bezier(0.3, 1.2, 0.4, 1), background 0.18s, border-color 0.18s,
+ box-shadow 0.18s, filter 0.18s;
+}
+
+.pill canvas {
+ width: 22px;
+ height: 22px;
+ margin-left: 8px;
+ flex: 0 0 22px;
+}
+
+.pill .lbl {
+ position: absolute;
+ left: 0;
+ right: 0;
+ text-align: center;
+ font: 600 10px var(--font);
+ color: var(--dim-3);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ padding: 0 6px;
+ pointer-events: none;
+}
+
+.pill:hover {
+ transform: scale(1.04);
+ filter: brightness(1.06);
+}
+
+.pill-badge {
+ position: absolute;
+ top: -3px;
+ right: 3px;
+ width: 14px;
+ height: 14px;
+ border-radius: 50%;
+ background: #0b0c0e;
+ display: grid;
+ place-items: center;
+}
+
+.pill-badge i {
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+ display: grid;
+ place-items: center;
+ color: #000;
+}
+
+.pill-badge svg {
+ width: 6px;
+ height: 6px;
+}
+
+/* ── Generic text blocks ────────────────────────────────────────────────── */
+
+.title {
+ font: 600 15px var(--font);
+}
+
+.sub {
+ font: 400 13px var(--font);
+ color: var(--dim);
+}
+
+.detail {
+ font: 400 12px var(--font);
+ color: var(--red-text);
+}
+
+.who-row {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ font: 400 12px var(--font);
+ color: var(--dim-2);
+}
+
+.who-row .n {
+ font: 600 12px var(--font);
+ color: var(--ink);
+}
+
+.code {
+ font: 400 12px var(--mono);
+ color: #e8e9ec;
+ background: rgba(255, 255, 255, 0.07);
+ border: 1px solid rgba(255, 255, 255, 0.06);
+ border-radius: 10px;
+ padding: 5px 10px;
+ max-width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ user-select: text;
+}
+
+.stack {
+ position: relative;
+ z-index: 1;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ gap: 5px;
+}
+
+.actions {
+ display: flex;
+ gap: 8px;
+}
+
+.status-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ font: 400 11px var(--font);
+ color: var(--dim-2);
+}
+
+/* ── Settings view (in-island) ──────────────────────────────────────────── */
+
+.settings-rows {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.settings-row {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ font: 400 12.5px var(--font);
+ color: #c5c8cd;
+}
+
+.switch {
+ position: relative;
+ width: 32px;
+ height: 18px;
+ border-radius: 9px;
+ background: rgba(255, 255, 255, 0.15);
+ flex: 0 0 32px;
+ transition: background 0.18s;
+ cursor: default;
+ border: 0;
+}
+
+.switch.on {
+ background: var(--green);
+}
+
+.switch::after {
+ content: "";
+ position: absolute;
+ top: 2px;
+ left: 2px;
+ width: 14px;
+ height: 14px;
+ border-radius: 50%;
+ background: #fff;
+ transition: transform 0.18s;
+}
+
+.switch.on::after {
+ transform: translateX(14px);
+}
+
+input[type="range"] {
+ -webkit-appearance: none;
+ appearance: none;
+ height: 3px;
+ border-radius: 2px;
+ background: rgba(255, 255, 255, 0.2);
+ width: 72px;
+}
+
+input[type="range"]::-webkit-slider-thumb {
+ -webkit-appearance: none;
+ width: 11px;
+ height: 11px;
+ border-radius: 50%;
+ background: #fff;
+}
+
+.seg {
+ display: flex;
+ gap: 6px;
+ margin-left: auto;
+}
+
+.seg button {
+ font: 400 11px var(--font);
+ padding: 3px 7px;
+ border: 0;
+ border-radius: 999px;
+ background: transparent;
+ color: var(--dim-3);
+ cursor: default;
+}
+
+.seg button.on {
+ background: #252830;
+ color: var(--ink);
+}
+
+/* ── Utility ────────────────────────────────────────────────────────────── */
+
+.grow {
+ flex: 1 1 auto;
+}
+
+.nowrap {
+ white-space: nowrap;
+}
diff --git a/windows/src/views/dom.ts b/windows/src/views/dom.ts
new file mode 100644
index 00000000..66575115
--- /dev/null
+++ b/windows/src/views/dom.ts
@@ -0,0 +1,60 @@
+// Minimal DOM helpers — no framework, as specified.
+
+type Attrs = Record<string, string | number | boolean | EventListener | undefined>;
+type Child = Node | string | null | undefined | false;
+
+export function h<K extends keyof HTMLElementTagNameMap>(
+ tag: K,
+ attrs: Attrs = {},
+ ...children: Child[]
+): HTMLElementTagNameMap[K] {
+ const el = document.createElement(tag);
+ for (const [k, v] of Object.entries(attrs)) {
+ if (v == null || v === false) continue;
+ if (k === "class") el.className = String(v);
+ else if (k === "text") el.textContent = String(v);
+ else if (k === "html") el.innerHTML = String(v);
+ else if (k.startsWith("on") && typeof v === "function") {
+ el.addEventListener(k.slice(2).toLowerCase(), v as EventListener);
+ } else if (k === "style") el.setAttribute("style", String(v));
+ else el.setAttribute(k, v === true ? "" : String(v));
+ }
+ for (const c of children) {
+ if (c == null || c === false) continue;
+ el.append(typeof c === "string" ? document.createTextNode(c) : c);
+ }
+ return el;
+}
+
+export function svg(path: string, size = 14, opts: { fill?: string; stroke?: number } = {}): SVGSVGElement {
+ const el = document.createElementNS("http://www.w3.org/2000/svg", "svg");
+ el.setAttribute("viewBox", "0 0 24 24");
+ el.setAttribute("width", String(size));
+ el.setAttribute("height", String(size));
+ el.setAttribute("aria-hidden", "true");
+ const p = document.createElementNS("http://www.w3.org/2000/svg", "path");
+ p.setAttribute("d", path);
+ if (opts.stroke) {
+ p.setAttribute("fill", "none");
+ p.setAttribute("stroke", "currentColor");
+ p.setAttribute("stroke-width", String(opts.stroke));
+ p.setAttribute("stroke-linecap", "round");
+ p.setAttribute("stroke-linejoin", "round");
+ } else {
+ p.setAttribute("fill", opts.fill ?? "currentColor");
+ }
+ el.append(p);
+ return el;
+}
+
+export function clear(el: Element) {
+ while (el.firstChild) el.removeChild(el.firstChild);
+}
+
+/** Card dot used in every "who" row. */
+export function dot(color: string, size = 7): HTMLElement {
+ return h("i", {
+ class: "dot",
+ style: `width:${size}px;height:${size}px;background:${color}`,
+ });
+}
diff --git a/windows/src/views/icons.ts b/windows/src/views/icons.ts
new file mode 100644
index 00000000..3a836d90
--- /dev/null
+++ b/windows/src/views/icons.ts
@@ -0,0 +1,35 @@
+// SVG paths standing in for the SF Symbols used by the macOS island.
+// Drawn on a 24×24 grid so they read at the same optical size.
+
+export const ICONS = {
+ // house.fill
+ house: "M12 3.2 2.8 10.6V21h6.6v-5.4h5.2V21h6.6V10.6L12 3.2z",
+ // bubble.left.fill
+ bubble: "M12 3.6c-5 0-9 3.3-9 7.4 0 2.3 1.3 4.4 3.3 5.7-.2 1.2-.8 2.4-1.7 3.4 1.9-.2 3.6-.9 4.9-1.9 .8.2 1.6.3 2.5.3 5 0 9-3.3 9-7.5s-4-7.4-9-7.4z",
+ // plus
+ plus: "M11 4h2v7h7v2h-7v7h-2v-7H4v-2h7V4z",
+ // gearshape
+ gear: "M12 8.6a3.4 3.4 0 1 0 0 6.8 3.4 3.4 0 0 0 0-6.8zm0 1.8a1.6 1.6 0 1 1 0 3.2 1.6 1.6 0 0 1 0-3.2zM10.9 2h2.2l.35 2.1c.6.17 1.16.4 1.67.71l1.9-1 1.55 1.55-1 1.9c.3.5.54 1.07.7 1.67l2.13.35v2.2l-2.12.35c-.17.6-.4 1.16-.71 1.67l1 1.9-1.55 1.55-1.9-1c-.5.3-1.07.54-1.67.7L13.1 22h-2.2l-.35-2.12c-.6-.17-1.16-.4-1.67-.71l-1.9 1L5.43 18.6l1-1.9c-.3-.5-.54-1.07-.7-1.67L3.6 14.7v-2.2l2.12-.35c.17-.6.4-1.16.71-1.67l-1-1.9 1.55-1.55 1.9 1c.5-.3 1.07-.54 1.67-.7L10.9 2z",
+ gearFill: "M10.9 2h2.2l.35 2.1c.6.17 1.16.4 1.67.71l1.9-1 1.55 1.55-1 1.9c.3.5.54 1.07.7 1.67l2.13.35v2.2l-2.12.35c-.17.6-.4 1.16-.71 1.67l1 1.9-1.55 1.55-1.9-1c-.5.3-1.07.54-1.67.7L13.1 22h-2.2l-.35-2.12c-.6-.17-1.16-.4-1.67-.71l-1.9 1L5.43 18.6l1-1.9c-.3-.5-.54-1.07-.7-1.67L3.6 14.7v-2.2l2.12-.35c.17-.6.4-1.16.71-1.67l-1-1.9 1.55-1.55 1.9 1c.5-.3 1.07-.54 1.67-.7L10.9 2zM12 8.2a3.8 3.8 0 1 0 0 7.6 3.8 3.8 0 0 0 0-7.6z",
+ // speaker.wave.2
+ speakerOn: "M11 4.5 6.5 8.2H3.4v7.6h3.1L11 19.5v-15zm3.2 3a5.3 5.3 0 0 1 0 9 .9.9 0 0 0 .9 1.55 7.1 7.1 0 0 0 0-12.1.9.9 0 0 0-.9 1.55zm2.6-3.1a8.9 8.9 0 0 1 0 15.2.9.9 0 0 0 .92 1.55 10.7 10.7 0 0 0 0-18.3.9.9 0 0 0-.92 1.55z",
+ // speaker.slash
+ speakerOff: "M11 4.5 6.5 8.2H3.4v7.6h3.1L11 19.5v-15zm3.6 4.1 1.27-1.27 2.33 2.33 2.33-2.33 1.27 1.27L19.47 11l2.33 2.33-1.27 1.27-2.33-2.33-2.33 2.33-1.27-1.27L16.93 11 14.6 8.6z",
+ // arrow.up.right
+ arrowUpRight: "M8.5 7h8.5v8.5h-2V10.4l-7.1 7.1-1.4-1.4 7.1-7.1H8.5V7z",
+ // chevron.right
+ chevronRight: "M9 5.5 15.5 12 9 18.5",
+ chevronLeft: "M15 5.5 8.5 12 15 18.5",
+ // checkmark
+ check: "M5 12.5 9.5 17 19 7.5",
+ // arrow.up (send)
+ arrowUp: "M12 4.5 5.5 11l1.5 1.5 4-4V19.5h2V8.5l4 4L18.5 11 12 4.5z",
+ // exclamationmark
+ bang: "M11 4h2v10h-2V4zm0 12.2h2v2.2h-2v-2.2z",
+ // xmark
+ xmark: "M6.4 5 12 10.6 17.6 5 19 6.4 13.4 12 19 17.6 17.6 19 12 13.4 6.4 19 5 17.6 10.6 12 5 6.4 6.4 5z",
+ // timer
+ timer: "M12 4.2a7.8 7.8 0 1 0 0 15.6 7.8 7.8 0 0 0 0-15.6zm0 1.9a5.9 5.9 0 1 1 0 11.8 5.9 5.9 0 0 1 0-11.8zm-.95 2.3v4.2l3.3 2 .95-1.55-2.4-1.45V8.4h-1.85zM9.2 2h5.6v1.7H9.2V2z",
+ // ellipsis
+ ellipsis: "M6 10.4a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2zm6 0a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2zm6 0a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2z",
+} as const;
diff --git a/windows/src/views/ticker.ts b/windows/src/views/ticker.ts
new file mode 100644
index 00000000..a3b214d6
--- /dev/null
+++ b/windows/src/views/ticker.ts
@@ -0,0 +1,129 @@
+// Overview task ticker — port of TickerView (V2) from IslandViewContent.swift.
+// Three rows: completed (A), current → completed (B), incoming (C).
+
+import { h, svg } from "./dom";
+import { ICONS } from "./icons";
+import type { AgentTask } from "../core/state";
+
+const COMPLETED_SCALE = 11.5 / 13; // 0.885
+const CURVE = "cubic-bezier(0.4, 0, 0.2, 1)";
+
+interface Row {
+ el: HTMLElement;
+ chevron: SVGElement;
+ check: SVGElement;
+ shimmer: HTMLElement;
+ dim: HTMLElement;
+}
+
+function makeRow(): Row {
+ const chevron = svg(ICONS.chevronRight, 9, { stroke: 2.4 });
+ const check = svg(ICONS.check, 8, { stroke: 2.2 });
+ check.style.opacity = "0";
+ const shimmer = h("span", { class: "tick-text shimmer" });
+ const dim = h("span", {
+ class: "tick-text",
+ style: "position:absolute;left:0;right:0;color:#6b7079;opacity:0",
+ });
+ const textWrap = h("span", { style: "position:relative;flex:1 1 auto;min-width:0" }, shimmer, dim);
+ const el = h(
+ "div",
+ { class: "ticker-row" },
+ h("span", { class: "tick-icon", style: "position:relative" }, chevron, check),
+ textWrap,
+ );
+ return { el, chevron, check, shimmer, dim };
+}
+
+function setText(row: Row, text: string) {
+ row.shimmer.textContent = text;
+ row.dim.textContent = text;
+}
+
+/** phase 0 = current (shimmering, full size), 1 = completed (dim, shifted up-left). */
+function setPhase(row: Row, phase: number, y: number, durationMs: number) {
+ const scale = 1 - phase * (1 - COMPLETED_SCALE);
+ const x = -phase * 10;
+ const t = durationMs > 0 ? `transform ${durationMs}ms ${CURVE}` : "none";
+ row.el.style.transition = t;
+ row.el.style.transform = `translate(${x}px, ${y}px) scale(${scale})`;
+
+ const half = durationMs / 2;
+ row.chevron.style.transition = durationMs > 0 ? `opacity ${half}ms linear` : "none";
+ row.chevron.style.opacity = phase >= 0.5 ? "0" : "1";
+ row.check.style.transition = durationMs > 0 ? `opacity ${half}ms linear ${half}ms` : "none";
+ row.check.style.opacity = phase >= 0.5 ? "1" : "0";
+ row.shimmer.style.transition =
+ durationMs > 0 ? `opacity ${Math.round(durationMs * 0.625)}ms linear` : "none";
+ row.shimmer.style.opacity = phase > 0.5 ? "0" : "1";
+ row.dim.style.transition =
+ durationMs > 0 ? `opacity ${half}ms linear ${Math.round(durationMs * 0.2)}ms` : "none";
+ row.dim.style.opacity = phase > 0.5 ? "1" : "0";
+}
+
+export class Ticker {
+ readonly el: HTMLElement;
+ private a = makeRow();
+ private b = makeRow();
+ private c = makeRow();
+ private displayIndex = -1;
+ private transitioning = false;
+ private resetTimer: number | null = null;
+
+ constructor() {
+ this.el = h("div", { class: "ticker" }, this.a.el, this.b.el, this.c.el);
+ this.reset();
+ }
+
+ private reset() {
+ setPhase(this.a, 1, 0, 0);
+ this.a.el.style.opacity = "1";
+ this.a.el.style.transition = "none";
+ setPhase(this.b, 0, 22, 0);
+ setPhase(this.c, 0, 44, 0);
+ this.c.el.style.opacity = "0";
+ }
+
+ sync(task: AgentTask | null) {
+ const steps = task && task.steps.length > 0 ? task.steps : ["…"];
+ const idx = task ? task.stepIndex : -1;
+
+ if (this.displayIndex < 0) {
+ this.displayIndex = idx;
+ setText(this.a, idx > 0 ? steps[Math.max(0, idx - 1)] : "…");
+ setText(this.b, steps[Math.min(Math.max(idx, 0), steps.length - 1)]);
+ return;
+ }
+ if (this.transitioning || idx === this.displayIndex) return;
+ this.animateTo(idx, steps);
+ }
+
+ private animateTo(newIdx: number, steps: string[]) {
+ this.transitioning = true;
+ setText(this.c, steps[Math.min(newIdx, steps.length - 1)]);
+ setPhase(this.c, 0, 44, 0);
+ this.c.el.style.opacity = "0";
+
+ // Force a layout flush so the transitions below actually run.
+ void this.c.el.offsetHeight;
+
+ this.a.el.style.transition = "transform 280ms ease-out, opacity 280ms ease-out";
+ this.a.el.style.transform = `translate(-10px, -22px) scale(${COMPLETED_SCALE})`;
+ this.a.el.style.opacity = "0";
+
+ setPhase(this.b, 1, 0, 380);
+
+ this.c.el.style.transition = `transform 380ms ${CURVE}, opacity 380ms ${CURVE}`;
+ this.c.el.style.transform = "translate(0px, 22px) scale(1)";
+ this.c.el.style.opacity = "1";
+
+ if (this.resetTimer != null) window.clearTimeout(this.resetTimer);
+ this.resetTimer = window.setTimeout(() => {
+ this.displayIndex = newIdx;
+ setText(this.a, this.b.shimmer.textContent ?? "");
+ setText(this.b, this.c.shimmer.textContent ?? "");
+ this.reset();
+ this.transitioning = false;
+ }, 500);
+ }
+}
diff --git a/windows/src/views/views.ts b/windows/src/views/views.ts
new file mode 100644
index 00000000..5f1a4750
--- /dev/null
+++ b/windows/src/views/views.ts
@@ -0,0 +1,435 @@
+// Island views — DOM ports of IslandViewContent.swift. Paddings, font sizes,
+// colours and wording are copied from the Swift views so both platforms read
+// identically.
+
+import { h, svg, clear, dot } from "./dom";
+import { ICONS } from "./icons";
+import { Ticker } from "./ticker";
+import { State, type AgentTask } from "../core/state";
+import { washRGBA, type IslandViewName, type Wash } from "../core/layout";
+import { createMiniBot, pruneMiniBots } from "../mochi/minibots";
+
+export interface ViewActions {
+ setView(v: IslandViewName): void;
+ collapse(): void;
+ setFocus(id: string): void;
+ openTerminal(): void;
+ openUrl(url: string): void;
+ decide(d: "allow" | "deny" | "always"): void;
+ toggleSound(): void;
+ setVolume(v: number): void;
+ setAutoClose(seconds: number): void;
+ openSettingsWindow(): void;
+ blip(): void;
+}
+
+export interface ViewHost {
+ el: HTMLElement;
+ sync(): void;
+}
+
+// ── Shared pieces ─────────────────────────────────────────────────────────────
+
+function card(wash: Wash, ...children: (Node | string)[]): HTMLElement {
+ const el = h("div", { class: wash ? "card wash" : "card" }, ...children);
+ if (wash) el.style.setProperty("--wash", washRGBA(wash));
+ return el;
+}
+
+function btn(
+ label: string,
+ kind: "primary" | "secondary",
+ onClick: () => void,
+ kbd?: string,
+): HTMLElement {
+ return h(
+ "button",
+ { class: `btn ${kind}`, onclick: onClick },
+ h("span", { text: label }),
+ kbd ? h("span", { class: "kbd", text: kbd }) : null,
+ );
+}
+
+/** AgentWho — coloured dot + task name + grey label. */
+function agentWho(task: AgentTask | null, label: string): HTMLElement {
+ const row = h("div", { class: "who-row" });
+ if (task) {
+ row.append(dot(task.color, 8), h("span", { class: "n", text: task.name }));
+ }
+ row.append(h("span", { text: label }));
+ return row;
+}
+
+function stack(padLeft: number, padRight: number, ...children: Node[]): HTMLElement {
+ const el = h("div", { class: "stack" }, ...children);
+ el.style.padding = `4px ${padRight}px 4px ${padLeft}px`;
+ return el;
+}
+
+// ── Header ────────────────────────────────────────────────────────────────────
+
+export function buildHeader(actions: ViewActions): ViewHost {
+ const tabHome = h("button", { class: "tab", title: "Overview", onclick: () => go("overview") }, svg(ICONS.house, 13));
+ const tabChat = h("button", { class: "tab", title: "Ask", onclick: () => go("prompt") }, svg(ICONS.bubble, 13));
+ const tabDrop = h("button", { class: "tab", title: "Drop", onclick: () => go("upload") }, svg(ICONS.plus, 13));
+
+ const gearBtn = h("button", { title: "Settings", onclick: () => go("settings") }, svg(ICONS.gear, 14));
+ const soundBtn = h("button", { title: "Mute", onclick: () => actions.toggleSound() }, svg(ICONS.speakerOn, 14));
+
+ function go(v: IslandViewName) {
+ actions.blip();
+ actions.setView(v);
+ }
+
+ const el = h(
+ "div",
+ { id: "header" },
+ h("div", { class: "tabs" }, tabHome, tabChat, tabDrop),
+ h("div", { class: "header-actions" }, gearBtn, soundBtn),
+ );
+
+ return {
+ el,
+ sync() {
+ const v = State.view;
+ tabHome.classList.toggle("on", v === "overview" || v === "empty");
+ tabChat.classList.toggle("on", v === "prompt");
+ tabDrop.classList.toggle("on", v === "upload");
+ gearBtn.classList.toggle("on", v === "settings");
+ clear(gearBtn);
+ gearBtn.append(svg(v === "settings" ? ICONS.gearFill : ICONS.gear, 14));
+ clear(soundBtn);
+ soundBtn.append(svg(State.settings.soundEnabled ? ICONS.speakerOn : ICONS.speakerOff, 14));
+ el.style.opacity = v === "confused" ? "0" : "1";
+ },
+ };
+}
+
+// ── Overview ──────────────────────────────────────────────────────────────────
+
+function buildOverview(actions: ViewActions): ViewHost {
+ const ticker = new Ticker();
+ const who = h("div", { class: "who" });
+ const jump = h(
+ "button",
+ { class: "icon-btn jump", title: "Open", onclick: () => actions.openTerminal() },
+ svg(ICONS.arrowUpRight, 8),
+ );
+ const left = card(null, h("div", { class: "card-body" }, who, ticker.el), jump);
+ const pills = h("div", { class: "pills" });
+ const right = card(null, pills);
+
+ const el = h("div", { class: "view overview" },
+ h("div", { class: "left" }, left),
+ h("div", { class: "right" }, right),
+ );
+
+ let pillIds = "";
+
+ return {
+ el,
+ sync() {
+ const task = State.focusTask;
+ clear(who);
+ if (task) {
+ who.append(
+ dot(task.color, 7),
+ h("span", { class: "name", text: task.id === "integration_claude" ? task.name : task.name }),
+ h("span", { class: "tool", text: task.source === "claudeCode" ? "Claude Code" : "n8n" }),
+ );
+ if (task.steps.length > 1) {
+ who.append(h("span", {
+ class: "count",
+ text: `${Math.min(task.stepIndex + 1, task.steps.length)}/${task.steps.length}`,
+ }));
+ }
+ }
+ ticker.sync(task);
+
+ const others = State.otherTasks.slice(0, 4);
+ const key = others.map((t) => `${t.id}:${t.pillBadge ?? ""}`).join("|");
+ if (key !== pillIds) {
+ pillIds = key;
+ clear(pills);
+ for (const t of others) pills.append(buildPill(t, actions));
+ pruneMiniBots();
+ }
+ },
+ };
+}
+
+function buildPill(task: AgentTask, actions: ViewActions): HTMLElement {
+ const label = task.id === "integration_claude" ? "VS Code" : task.name;
+ const canvas = createMiniBot(task, 22);
+ const pill = h(
+ "div",
+ { class: "pill", onclick: () => actions.setFocus(task.id) },
+ canvas,
+ h("span", { class: "lbl", text: label }),
+ );
+ pill.style.borderColor = `${task.color}24`;
+ pill.addEventListener("mouseenter", () => {
+ pill.style.background = `${task.color}2e`;
+ pill.style.borderColor = `${task.color}8c`;
+ pill.style.boxShadow = `0 2px 10px ${task.color}59`;
+ (pill.querySelector(".lbl") as HTMLElement).style.color = lighten(task.color, 0.3);
+ });
+ pill.addEventListener("mouseleave", () => {
+ pill.style.background = "";
+ pill.style.borderColor = `${task.color}24`;
+ pill.style.boxShadow = "";
+ (pill.querySelector(".lbl") as HTMLElement).style.color = "";
+ });
+
+ if (task.pillBadge) {
+ const colors = { approval: "#F5A524", finished: "#22C55E", error: "#F4505E" } as const;
+ const icons = { approval: ICONS.bang, finished: ICONS.check, error: ICONS.xmark } as const;
+ const inner = h("i", { style: `background:${colors[task.pillBadge]}` }, svg(icons[task.pillBadge], 6, { stroke: task.pillBadge === "finished" ? 3 : 0 }));
+ const badge = h("div", { class: "pill-badge" }, inner);
+ badge.style.boxShadow = `0 0 4px ${colors[task.pillBadge]}99`;
+ pill.append(badge);
+ }
+ return pill;
+}
+
+function lighten(hex: string, amount: number): string {
+ const v = parseInt(hex.replace("#", ""), 16);
+ const c = [(v >> 16) & 255, (v >> 8) & 255, v & 255].map((x) =>
+ Math.min(255, Math.round(x + amount * 255)),
+ );
+ return `rgb(${c[0]},${c[1]},${c[2]})`;
+}
+
+// ── Empty ─────────────────────────────────────────────────────────────────────
+
+function buildEmpty(actions: ViewActions): ViewHost {
+ const body = h(
+ "div",
+ { class: "stack", style: "padding:0 18px 0 118px;flex-direction:row;align-items:center;gap:16px" },
+ h(
+ "div",
+ { style: "display:flex;flex-direction:column;gap:5px" },
+ h("div", { class: "title", text: "Nothing running right now." }),
+ h("div", { class: "sub", text: "Drop a file or window, or ask me anything." }),
+ ),
+ h("div", { class: "grow" }),
+ btn("Ask Claude", "primary", () => actions.setView("prompt")),
+ );
+ return { el: h("div", { class: "view" }, card(null, body)), sync() {} };
+}
+
+// ── Approval ──────────────────────────────────────────────────────────────────
+
+function buildApproval(actions: ViewActions): ViewHost {
+ const who = h("div");
+ const code = h("div", { class: "code" });
+ const row = h("div", { class: "actions" });
+ const el = h("div", { class: "view" }, card("amber", stack(116, 16, who, code, row)));
+ return {
+ el,
+ sync() {
+ clear(who);
+ who.append(agentWho(State.focusTask, "needs permission"));
+ code.textContent = State.pendingApproval?.command || State.pendingApproval?.tool || "…";
+ clear(row);
+ row.append(
+ btn("Deny", "secondary", () => actions.decide("deny"), "N"),
+ btn("Allow", "primary", () => actions.decide("allow"), "Y"),
+ );
+ if (!State.alwaysAllow) {
+ row.append(btn("Always", "secondary", () => actions.decide("always")));
+ }
+ },
+ };
+}
+
+// ── Question ──────────────────────────────────────────────────────────────────
+
+function buildQuestion(): ViewHost {
+ const who = h("div");
+ const title = h("div", { class: "title" });
+ const row = h("div", { class: "actions" });
+ const el = h("div", { class: "view" }, card("cyan", stack(116, 16, who, title, row)));
+ return {
+ el,
+ sync() {
+ clear(who);
+ who.append(agentWho(State.focusTask, "Claude Code is asking a question"));
+ const task = State.focusTask;
+ title.textContent = task?.steps.at(-1) ?? "Claude needs an answer.";
+ clear(row);
+ row.append(h("div", { class: "sub", text: "Answer in your terminal — Coucou can't reply for you yet." }));
+ },
+ };
+}
+
+// ── Error ─────────────────────────────────────────────────────────────────────
+
+function buildError(actions: ViewActions): ViewHost {
+ const who = h("div");
+ const title = h("div", { class: "title", text: "Workflow stopped." });
+ const detail = h("div", { class: "detail" });
+ const row = h("div", { class: "actions" });
+ const el = h("div", { class: "view" }, card("red", stack(116, 16, who, title, detail, row)));
+ return {
+ el,
+ sync() {
+ const task = State.focusTask;
+ clear(who);
+ who.append(agentWho(task, task?.source === "n8n" ? "n8n" : "Claude Code"));
+ title.textContent = task?.source === "n8n" ? "Workflow stopped." : "Session stopped on an error.";
+ detail.textContent = task?.steps.at(-1) ?? "No detail available.";
+ clear(row);
+ row.append(
+ btn("Retry", "primary", () => actions.setView(State.defaultView())),
+ btn("Open in n8n", "secondary", () => actions.openUrl("")),
+ );
+ },
+ };
+}
+
+// ── Finished ──────────────────────────────────────────────────────────────────
+
+function buildFinished(actions: ViewActions): ViewHost {
+ const who = h("div");
+ const title = h("div", { class: "title" });
+ const row = h("div", { class: "actions" });
+ const el = h("div", { class: "view" }, card("green", stack(116, 16, who, title, row)));
+ return {
+ el,
+ sync() {
+ clear(who);
+ who.append(agentWho(State.focusTask, "Claude Code finished"));
+ title.textContent = State.focusTask?.steps.at(-1) ?? "Session finished";
+ clear(row);
+ row.append(
+ btn("Open terminal", "primary", () => actions.openTerminal()),
+ btn("OK", "secondary", () => actions.collapse()),
+ );
+ },
+ };
+}
+
+// ── Confused ──────────────────────────────────────────────────────────────────
+
+function buildConfused(): ViewHost {
+ const body = h(
+ "div",
+ { class: "stack", style: "padding:0 18px 0 128px" },
+ h("div", { class: "title", text: "Too many hits at once." }),
+ h("div", { class: "sub", text: "Give me a sec — back to work in three seconds." }),
+ );
+ return { el: h("div", { class: "view" }, card("pink", body)), sync() {} };
+}
+
+// ── Note ──────────────────────────────────────────────────────────────────────
+
+function buildNote(): ViewHost {
+ const title = h("div", { class: "title" });
+ const el = h("div", { class: "view" }, card(null, h("div", { class: "stack", style: "padding:0 18px 0 98px" }, title)));
+ return {
+ el,
+ sync() {
+ title.textContent = State.noteMessage ?? "";
+ },
+ };
+}
+
+// ── In-island settings ────────────────────────────────────────────────────────
+
+function buildSettings(actions: ViewActions): ViewHost {
+ const soundSwitch = h("button", { class: "switch", onclick: () => actions.toggleSound() });
+ const volume = h("input", {
+ type: "range", min: "0", max: "0.2", step: "0.005",
+ oninput: (e: Event) => actions.setVolume(Number((e.target as HTMLInputElement).value)),
+ }) as HTMLInputElement;
+ const autoLabel = h("span", {});
+ const segButtons = [10, 15, 30].map((s) =>
+ h("button", { onclick: () => actions.setAutoClose(s) }, `${s}s`),
+ );
+ const claudeBadge = h("span", { class: "status-badge" });
+ const apiBadge = h("span", { class: "status-badge" });
+
+ const rows = h(
+ "div",
+ { class: "settings-rows" },
+ h("div", { class: "settings-row" }, soundSwitch, h("span", { text: "Sound" }), volume),
+ h(
+ "div",
+ { class: "settings-row" },
+ svg(ICONS.timer, 12),
+ autoLabel,
+ h("div", { class: "seg" }, ...segButtons),
+ ),
+ h(
+ "div",
+ { class: "settings-row", style: "gap:14px" },
+ claudeBadge,
+ apiBadge,
+ h("div", { class: "grow" }),
+ h("button", {
+ class: "link-btn",
+ style: "color:#8e939c;font-size:11.5px",
+ text: "Settings…",
+ onclick: () => actions.openSettingsWindow(),
+ }),
+ ),
+ );
+
+ const el = h("div", { class: "view" },
+ card(null, h("div", { class: "stack", style: "padding:14px 16px 14px 84px" }, rows)));
+
+ return {
+ el,
+ sync() {
+ const s = State.settings;
+ soundSwitch.classList.toggle("on", s.soundEnabled);
+ volume.value = String(s.soundVolume);
+ volume.style.opacity = s.soundEnabled ? "1" : "0.4";
+ autoLabel.textContent = `Auto-close · ${Math.round(s.autoCloseInterval)}s`;
+ segButtons.forEach((b, i) => b.classList.toggle("on", s.autoCloseInterval === [10, 15, 30][i]));
+ clear(claudeBadge);
+ claudeBadge.append(
+ dot(s.hooksInstalled ? "#22C55E" : "#F4505E", 6),
+ h("span", { text: "Claude Code" }),
+ );
+ clear(apiBadge);
+ apiBadge.append(dot("#F4505E", 6), h("span", { text: "API" }));
+ },
+ };
+}
+
+// ── Placeholders filled in later stages ───────────────────────────────────────
+
+function buildPlaceholder(title: string, sub: string): ViewHost {
+ const body = h(
+ "div",
+ { class: "stack", style: "padding:0 18px 0 118px" },
+ h("div", { class: "title", text: title }),
+ h("div", { class: "sub", text: sub }),
+ );
+ return { el: h("div", { class: "view" }, card(null, body)), sync() {} };
+}
+
+// ── Registry ──────────────────────────────────────────────────────────────────
+
+export function buildViews(actions: ViewActions): Map<IslandViewName, ViewHost> {
+ const map = new Map<IslandViewName, ViewHost>();
+ map.set("overview", buildOverview(actions));
+ map.set("empty", buildEmpty(actions));
+ map.set("approval", buildApproval(actions));
+ map.set("question", buildQuestion());
+ map.set("error", buildError(actions));
+ map.set("finished", buildFinished(actions));
+ map.set("confused", buildConfused());
+ map.set("note", buildNote());
+ map.set("settings", buildSettings(actions));
+ map.set("prompt", buildPlaceholder("Chat is coming next.", "Ask Claude straight from the island."));
+ map.set("upload", buildPlaceholder("Drop your files here", "PDF · Images · Code · Docs"));
+ map.set("uploading", buildPlaceholder("Uploading…", ""));
+ map.set("choose", buildPlaceholder("File is ready.", "What do you want to do with it?"));
+ map.set("mail", buildPlaceholder("New email", ""));
+ map.set("searching", buildPlaceholder("Claude is searching…", ""));
+ map.set("result", buildPlaceholder("Result", ""));
+ return map;
+}
diff --git a/windows/tsconfig.json b/windows/tsconfig.json
new file mode 100644
index 00000000..cda4633d
--- /dev/null
+++ b/windows/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
+ "noImplicitOverride": true,
+ "isolatedModules": true,
+ "verbatimModuleSyntax": true,
+ "skipLibCheck": true,
+ "noEmit": true,
+ "types": ["vite/client"]
+ },
+ "include": ["src"]
+}
diff --git a/windows/vite.config.ts b/windows/vite.config.ts
new file mode 100644
index 00000000..76cf6e5b
--- /dev/null
+++ b/windows/vite.config.ts
@@ -0,0 +1,56 @@
+import { defineConfig, type Plugin } from "vite";
+import { existsSync, mkdirSync, readdirSync, copyFileSync, createReadStream } from "node:fs";
+import { resolve, join, extname } from "node:path";
+
+// ───────────────────────────────────────────────────────────────────────────────
+// THE one and only place the shared sound folder is declared.
+// The 28 WAVs live in the macOS app and are NOT duplicated in the repo; when they
+// move to `shared/sounds/`, change this single line.
+export const SOUNDS_DIR = resolve(__dirname, "../NotchBuddy/Resources/sounds");
+// ───────────────────────────────────────────────────────────────────────────────
+
+/**
+ * Serves SOUNDS_DIR at /sounds/*.wav in dev, and copies it into dist/sounds on build.
+ * Keeps the WAVs out of windows/ while still shipping them inside the installer.
+ */
+function sharedSounds(): Plugin {
+ const prefix = "/sounds/";
+ return {
+ name: "coucou-shared-sounds",
+ configureServer(server) {
+ server.middlewares.use((req, res, next) => {
+ if (!req.url?.startsWith(prefix)) return next();
+ const name = decodeURIComponent(req.url.slice(prefix.length).split("?")[0]);
+ if (name.includes("/") || name.includes("\\") || extname(name) !== ".wav") return next();
+ const file = join(SOUNDS_DIR, name);
+ if (!existsSync(file)) return next();
+ res.setHeader("Content-Type", "audio/wav");
+ createReadStream(file).pipe(res);
+ });
+ },
+ closeBundle() {
+ const out = resolve(__dirname, "dist/sounds");
+ if (!existsSync(SOUNDS_DIR)) {
+ this.warn(`sounds not found at ${SOUNDS_DIR} — the build will ship without audio`);
+ return;
+ }
+ mkdirSync(out, { recursive: true });
+ for (const f of readdirSync(SOUNDS_DIR)) {
+ if (extname(f) === ".wav") copyFileSync(join(SOUNDS_DIR, f), join(out, f));
+ }
+ },
+ };
+}
+
+export default defineConfig({
+ plugins: [sharedSounds()],
+ clearScreen: false,
+ server: { port: 1420, strictPort: true, host: "127.0.0.1" },
+ envPrefix: ["VITE_", "TAURI_"],
+ build: {
+ target: "chrome110",
+ minify: "esbuild",
+ sourcemap: false,
+ emptyOutDir: true,
+ },
+});