diff --git a/.gitignore b/.gitignore index a37692b..b2f91ef 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ src-tauri/target/ # Secrets .env .env.local + +# Visual companion brainstorm sessions +.superpowers/ diff --git a/manage.sh b/manage.sh old mode 100644 new mode 100755 index 84c780e..016111d --- a/manage.sh +++ b/manage.sh @@ -5,24 +5,144 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" APP_NAME="robin" +RELEASE_BIN="$SCRIPT_DIR/src-tauri/target/release/$APP_NAME" +DEBUG_BIN="$SCRIPT_DIR/src-tauri/target/debug/$APP_NAME" +ICON="$SCRIPT_DIR/src-tauri/icons/128x128.png" +LOG_FILE="${XDG_DATA_HOME:-$HOME/.local/share}/tech.circuitforge.robin/logs/Robin.log" cmd="${1:-help}" +# ── Helpers ─────────────────────────────────────────────────────────────────── + +_find_binary() { + if [[ -f "$RELEASE_BIN" ]]; then + echo "$RELEASE_BIN" + elif [[ -f "$DEBUG_BIN" ]]; then + echo "$DEBUG_BIN" + else + echo "" + fi +} + +_require_binary() { + local bin + bin="$(_find_binary)" + if [[ -z "$bin" ]]; then + echo "Robin binary not found. Run one of:" + echo " ./manage.sh build (release, requires Node + Tauri CLI)" + echo " ./manage.sh build-debug (debug, requires Rust only)" + exit 1 + fi + echo "$bin" +} + +# ── Commands ────────────────────────────────────────────────────────────────── + case "$cmd" in + + run) + # Run the binary in the foreground (logs to terminal). + # Use this for manual testing; Ctrl+C to quit. + bin="$(_require_binary)" + echo "Starting Robin ($bin)..." + export DISPLAY="${DISPLAY:-:0}" + export RUST_LOG="${RUST_LOG:-robin_lib=info,warn}" + exec "$bin" + ;; + + start) + # Start Robin in the background (daemonised via nohup). + # Also starts the Vite dev server if a release binary is not available + # and Node/nvm is present, so the webview has something to connect to. + if pgrep -x "$APP_NAME" > /dev/null 2>&1; then + echo "Robin is already running (PID $(pgrep -x "$APP_NAME"))" + exit 0 + fi + bin="$(_require_binary)" + export DISPLAY="${DISPLAY:-:0}" + export RUST_LOG="${RUST_LOG:-robin_lib=info,warn}" + mkdir -p "$(dirname "$LOG_FILE")" + + # If using the debug binary and no Vite server is running, start one. + if [[ "$bin" == *"target/debug"* ]] && ! curl -sf http://localhost:1420 > /dev/null 2>&1; then + NVM_DIR="${NVM_DIR:-$HOME/.nvm}" + if [[ -s "$NVM_DIR/nvm.sh" ]] && command -v npm > /dev/null 2>&1 || { source "$NVM_DIR/nvm.sh" 2>/dev/null && command -v npm > /dev/null 2>&1; }; then + echo "Starting Vite dev server on :1420..." + nohup npm --prefix "$SCRIPT_DIR" run dev >> /tmp/robin-vite.log 2>&1 & + echo "Vite PID $! — logs: /tmp/robin-vite.log" + sleep 2 # give Vite time to bind before Robin connects + else + echo "Note: no release binary and Node not found — webview will show connection error." + echo "Run 'npm install && npm run dev' in $SCRIPT_DIR to fix this." + fi + fi + + nohup "$bin" >> "$LOG_FILE" 2>&1 & + echo "Robin started (PID $!). Logs: $LOG_FILE" + ;; + + stop) + if pgrep -x "$APP_NAME" > /dev/null 2>&1; then + pkill -x "$APP_NAME" + echo "Robin stopped." + else + echo "Robin is not running." + fi + # Stop Vite dev server if we started it. + if pgrep -f "vite" > /dev/null 2>&1; then + pkill -f "node.*vite" 2>/dev/null || true + echo "Vite dev server stopped." + fi + ;; + + restart) + "$0" stop || true + sleep 1 + "$0" start + ;; + + status) + if pgrep -x "$APP_NAME" > /dev/null 2>&1; then + echo "Robin is running (PID $(pgrep -x "$APP_NAME"))" + else + echo "Robin is not running." + fi + ;; + + logs) + if [[ -f "$LOG_FILE" ]]; then + tail -f "$LOG_FILE" + else + echo "No log file yet at $LOG_FILE" + echo "Start Robin first: ./manage.sh start" + fi + ;; + dev) - echo "Starting Robin in dev mode..." + echo "Starting Robin in dev mode (hot-reload)..." cd "$SCRIPT_DIR" npm run tauri dev ;; build) - echo "Building Robin..." + echo "Building Robin release binary + installers..." cd "$SCRIPT_DIR" npm run tauri build ;; + build-debug) + echo "Building Robin debug binary (Rust only, no Node needed)..." + cargo build --manifest-path "$SCRIPT_DIR/src-tauri/Cargo.toml" + echo "Binary: $DEBUG_BIN" + ;; + + test) + echo "Running Rust tests..." + cargo test --manifest-path "$SCRIPT_DIR/src-tauri/Cargo.toml" --lib + ;; + install-deps) - echo "Installing system dependencies (Debian/Ubuntu)..." + echo "Installing system dependencies (Debian/Ubuntu/Mint)..." sudo apt-get install -y \ libwebkit2gtk-4.1-dev \ libayatana-appindicator3-dev \ @@ -30,15 +150,12 @@ case "$cmd" in libgtk-3-dev \ libssl-dev \ pkg-config - echo "Installing Node dependencies..." - cd "$SCRIPT_DIR" - npm install echo "Installing Rust dependencies..." cargo fetch --manifest-path "$SCRIPT_DIR/src-tauri/Cargo.toml" ;; install-deps-arch) - echo "Installing system dependencies (Arch/CachyOS)..." + echo "Installing system dependencies (Arch/Manjaro/CachyOS)..." paru -S --needed \ webkit2gtk-4.1 \ libayatana-appindicator \ @@ -46,72 +163,124 @@ case "$cmd" in gtk3 \ openssl \ pkg-config - cd "$SCRIPT_DIR" - npm install cargo fetch --manifest-path "$SCRIPT_DIR/src-tauri/Cargo.toml" ;; - install) - echo "Installing Robin as a systemd user service..." - SERVICE_DIR="$HOME/.config/systemd/user" - mkdir -p "$SERVICE_DIR" - BINARY="$SCRIPT_DIR/src-tauri/target/release/$APP_NAME" - if [[ ! -f "$BINARY" ]]; then - echo "Binary not found — run './manage.sh build' first" - exit 1 - fi - cat > "$SERVICE_DIR/robin.service" < "$APPS_DIR/robin.desktop" </dev/null || true + echo "Robin added to application menu." + echo "Entry: $APPS_DIR/robin.desktop" ;; - start) - systemctl --user start robin + desktop-remove) + DESKTOP="${XDG_DATA_HOME:-$HOME/.local/share}/applications/robin.desktop" + if [[ -f "$DESKTOP" ]]; then + rm "$DESKTOP" + update-desktop-database "$(dirname "$DESKTOP")" 2>/dev/null || true + echo "Robin removed from application menu." + else + echo "No desktop entry found at $DESKTOP" + fi ;; - stop) - systemctl --user stop robin + autostart-enable) + # Start Robin automatically when the desktop session begins. + bin="$(_require_binary)" + AUTOSTART_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/autostart" + mkdir -p "$AUTOSTART_DIR" + cat > "$AUTOSTART_DIR/robin.desktop" <" - echo "" - echo " dev Start in development mode (hot-reload)" - echo " build Build release binary + installers" - echo " install-deps Install system deps (Debian/Ubuntu)" - echo " install-deps-arch Install system deps (Arch/CachyOS)" - echo " install Install as systemd user service" - echo " start Start Robin service" - echo " stop Stop Robin service" - echo " status Show Robin service status" - echo " logs Tail Robin logs" - echo " test Run Rust tests" + cat <<'EOF' +Robin — Linux migration companion +Usage: ./manage.sh + +Running: + run Run in foreground (logs to terminal, Ctrl+C to quit) + start Start in background + stop Stop background instance + restart Stop then start + status Show whether Robin is running + logs Tail the Robin log file + +Building: + build-debug Build debug binary (Rust only, no Node/npm needed) + build Build release binary + .deb/.rpm/.AppImage (needs Node + Tauri CLI) + dev Start dev mode with hot-reload (needs Node + Tauri CLI) + test Run Rust unit tests + +Installation: + install build-debug + desktop-install + autostart-enable + uninstall Remove desktop entry, autostart, and stop Robin + desktop-install Add Robin to the system application menu + desktop-remove Remove Robin from the application menu + autostart-enable Start Robin automatically at login + autostart-disable Stop Robin from starting at login + +Dependencies: + install-deps Install system deps (Debian/Ubuntu/Mint) + install-deps-arch Install system deps (Arch/Manjaro/CachyOS) +EOF ;; esac diff --git a/package-lock.json b/package-lock.json index abe2a6f..75332bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "robin", "version": "0.0.0", "dependencies": { + "@tauri-apps/api": "^2.11.0", "vue": "^3.5.34" }, "devDependencies": { @@ -398,6 +399,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@tauri-apps/api": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.0.tgz", + "integrity": "sha512-7CinYODhky9lmO23xHnUFv0Xt43fbtWMyxZcLcRBlFkcgXKuEirBvHpmtJ89YMhyeGcq20Wuc47Fa4XjyniywA==", + "license": "Apache-2.0 OR MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/tauri" + } + }, "node_modules/@tybys/wasm-util": { "version": "0.10.2", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", diff --git a/package.json b/package.json index 5880397..fa81de1 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "@tauri-apps/api": "^2.11.0", "vue": "^3.5.34" }, "devDependencies": { diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock new file mode 100644 index 0000000..2947125 --- /dev/null +++ b/src-tauri/Cargo.lock @@ -0,0 +1,6158 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +dependencies = [ + "getrandom 0.2.17", + "once_cell", + "version_check", +] + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_log-sys" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84521a3cf562bc62942e294181d9eef17eb38ceb8c68677bc49f144e4c3d4f8d" + +[[package]] +name = "android_logger" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbb4e440d04be07da1f1bf44fb4495ebd58669372fe0cffa6e48595ac5bd88a3" +dependencies = [ + "android_log-sys", + "env_filter", + "log", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[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.117", +] + +[[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.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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 = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[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 = "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.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3" +dependencies = [ + "serde_core", +] + +[[package]] +name = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "tap", + "wyz", +] + +[[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.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "borsh" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfd1e3f8955a5d7de9fab72fc8373fade9fb8a703968cb200ae3dc6cf08e185a" +dependencies = [ + "borsh-derive", + "bytes", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfcfdc083699101d5a7965e49925975f2f55060f94f9a05e7187be95d530ca59" +dependencies = [ + "once_cell", + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "brotli" +version = "8.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03" +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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "byte-unit" +version = "5.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c6d47a4e2961fb8721bcfc54feae6455f2f64e7054f9bc67e875f0e77f4c58d" +dependencies = [ + "rust_decimal", + "schemars 1.2.1", + "serde", + "utf8-width", +] + +[[package]] +name = "bytecheck" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" +dependencies = [ + "bytecheck_derive", + "ptr_meta", + "simdutf8", +] + +[[package]] +name = "bytecheck_derive" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +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.11.1", + "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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" +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.18", +] + +[[package]] +name = "cargo_toml" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" +dependencies = [ + "serde", + "toml 0.9.12+spec-1.1.0", +] + +[[package]] +name = "cc" +version = "1.2.62" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98" +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.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[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.11.1", + "core-foundation 0.10.1", + "core-graphics-types", + "foreign-types 0.5.0", + "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.11.1", + "core-foundation 0.10.1", + "libc", +] + +[[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.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[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.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf", + "smallvec", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "ctor" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98" +dependencies = [ + "ctor-proc-macro", + "dtor", +] + +[[package]] +name = "ctor-proc-macro" +version = "0.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1" + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dbus" +version = "0.9.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b942602992bb7acfd1f51c49811c58a610ef9181b6e66f3e519d79b540a3bf73" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", + "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.117", +] + +[[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 = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[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", + "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.11.1", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.117", +] + +[[package]] +name = "dom_query" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89" +dependencies = [ + "bit-set", + "cssparser", + "foldhash 0.2.0", + "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 = "dtor" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4" +dependencies = [ + "dtor-proc-macro", +] + +[[package]] +name = "dtor-proc-macro" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5" + +[[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.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31a88c8d26de40ed18fe748c547845aa39de1db3afd958f8cb91579f3644bcb" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.2+spec-1.1.0", + "vswhom", + "winreg", +] + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[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.117", +] + +[[package]] +name = "env_filter" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bf3c259d255ca70051b30e2e95b5446cdb8949ac4cd22c0d7fd634d89f568e2" +dependencies = [ + "log", + "regex", +] + +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" +dependencies = [ + "concurrent-queue", + "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.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "fern" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4316185f709b23713e41e3195f90edef7fb00c3ed4adc79769cf09cc762a3b29" +dependencies = [ + "log", +] + +[[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.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[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.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared 0.1.1", +] + +[[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 0.3.1", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[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 = "fsevent-sys" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" +dependencies = [ + "libc", +] + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[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.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "wasip2", + "wasip3", +] + +[[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.11.1", + "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.117", +] + +[[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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[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.117", +] + +[[package]] +name = "h2" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "171fefbc92fe4a4de27e0698d6a5b392d6a0e333506bc49133760b3bcf948733" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap 2.14.0", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +dependencies = [ + "ahash", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2" +dependencies = [ + "log", + "markup5ever", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +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.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-tls" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" +dependencies = [ + "bytes", + "http-body-util", + "hyper", + "hyper-util", + "native-tls", + "tokio", + "tokio-native-tls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "system-configuration", + "tokio", + "tower-service", + "tracing", + "windows-registry", +] + +[[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.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[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.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + +[[package]] +name = "inotify" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd5b3eaf1a28b758ac0faa5a4254e8ab2705605496f1b1f3fbbc3988ad73d199" +dependencies = [ + "bitflags 2.11.1", + "inotify-sys", + "libc", +] + +[[package]] +name = "inotify-sys" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" +dependencies = [ + "libc", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[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 = "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.117", +] + +[[package]] +name = "js-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08" +dependencies = [ + "cfg-if", + "futures-util", + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[package]] +name = "jsonptr" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.11.1", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "kqueue" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eac30106d7dce88daf4a3fcb4879ea939476d5074a9b7ddd0fb97fa4bed5596a" +dependencies = [ + "kqueue-sys", + "libc", +] + +[[package]] +name = "kqueue-sys" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07293a4e297ac234359b510362495713f75ea345d5307140414f20c69ffeb087" +dependencies = [ + "bitflags 2.11.1", + "libc", +] + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[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.186" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" + +[[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.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c" +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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[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.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" +dependencies = [ + "value-bag", +] + +[[package]] +name = "mac-notification-sys" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29a16783dd1a47849b8c8133c9cd3eb2112cfbc6901670af3dba47c8bbfb07d3" +dependencies = [ + "cc", + "objc2", + "objc2-foundation", + "time", +] + +[[package]] +name = "markup5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862" +dependencies = [ + "log", + "tendril", + "web_atoms", +] + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[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 = "mio" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ae8844f63b5b118e334e205585b8c5c17b984121dbdb179d44aeb087ffad3cb" +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.18", + "windows-sys 0.61.2", +] + +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.11.1", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[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 = "notify" +version = "8.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d3d07927151ff8575b7087f245456e549fea62edf0ec4e565a5ee50c8402bc3" +dependencies = [ + "bitflags 2.11.1", + "fsevent-sys", + "inotify", + "kqueue", + "libc", + "log", + "mio", + "notify-types", + "walkdir", + "windows-sys 0.60.2", +] + +[[package]] +name = "notify-rust" +version = "4.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50ff2e74231b72c832d82982193b417f230945be6bdb5575b251d941d31adb00" +dependencies = [ + "futures-lite", + "log", + "mac-notification-sys", + "serde", + "tauri-winrt-notification", + "zbus", +] + +[[package]] +name = "notify-types" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42b8cfee0e339a0337359f3c88165702ac6e600dc01c0cc9579a92d62b08477a" +dependencies = [ + "bitflags 2.11.1", +] + +[[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.117", +] + +[[package]] +name = "num_threads" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" +dependencies = [ + "libc", +] + +[[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.11.1", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.11.1", + "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.11.1", + "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.11.1", + "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.11.1", + "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.11.1", + "block2", + "libc", + "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.11.1", + "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.11.1", + "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.11.1", + "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.11.1", + "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 = "open" +version = "5.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fbaa89d2ddc8473c78a3adf69eea8cffa28c483b8e02a971ef31527cd0fc92c" +dependencies = [ + "dunce", + "is-wsl", + "libc", + "pathdiff", +] + +[[package]] +name = "openssl" +version = "0.10.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a45fa2aa886c42762255da344f0a0d313e254066c46aad76f300c3d3da62d967" +dependencies = [ + "bitflags 2.11.1", + "cfg-if", + "foreign-types 0.3.2", + "libc", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "openssl-sys" +version = "0.9.116" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[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 = "os_pipe" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[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 = "pathdiff" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" + +[[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.117", +] + +[[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.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" + +[[package]] +name = "plist" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "092791278e026273c1b65bbdcfbba3a300f2994c896bd01ab01da613c29c46f1" +dependencies = [ + "base64 0.22.1", + "indexmap 2.14.0", + "quick-xml 0.39.4", + "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", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.11.1", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[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 = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.117", +] + +[[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.11+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.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "ptr_meta" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" +dependencies = [ + "ptr_meta_derive", +] + +[[package]] +name = "ptr_meta_derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "quick-xml" +version = "0.37.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "331e97a1af0bf59823e6eadffe373d7b27f485be8748f71471c662c1f269b7fb" +dependencies = [ + "memchr", +] + +[[package]] +name = "quick-xml" +version = "0.39.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +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 = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "rand" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[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.11.1", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.18", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "rend" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" +dependencies = [ + "bytecheck", +] + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64 0.22.1", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-tls", + "hyper-util", + "js-sys", + "log", + "mime", + "native-tls", + "percent-encoding", + "pin-project-lite", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-native-tls", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams 0.4.2", + "web-sys", +] + +[[package]] +name = "reqwest" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62e0021ea2c22aed41653bc7e1419abb2c97e038ff2c33d0e1309e49a97deec0" +dependencies = [ + "base64 0.22.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 0.5.0", + "web-sys", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rkyv" +version = "0.7.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2297bf9c81a3f0dc96bc9521370b88f054168c29826a75e89c55ff196e7ed6a1" +dependencies = [ + "bitvec", + "bytecheck", + "bytes", + "hashbrown 0.12.3", + "ptr_meta", + "rend", + "rkyv_derive", + "seahash", + "tinyvec", + "uuid", +] + +[[package]] +name = "rkyv_derive" +version = "0.7.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84d7b42d4b8d06048d3ac8db0eb31bcb942cbeb709f0b5f2b2ebde398d3038f5" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "robin" +version = "0.1.0" +dependencies = [ + "anyhow", + "dirs", + "log", + "notify", + "reqwest 0.12.28", + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-fs", + "tauri-plugin-log", + "tauri-plugin-notification", + "tauri-plugin-shell", + "tempfile", + "tokio", + "toml 0.8.2", +] + +[[package]] +name = "rust_decimal" +version = "1.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c5108e3d4d903e21aac27f12ba5377b6b34f9f44b325e4894c7924169d06995" +dependencies = [ + "arrayvec", + "borsh", + "bytes", + "num-traits", + "rand 0.8.6", + "rkyv", + "serde", + "serde_json", + "wasm-bindgen", +] + +[[package]] +name = "rustc-hash" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" + +[[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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.11.1", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef86cd5876211988985292b91c96a8f2d298df24e75989a43a3c73f2d4d8168b" +dependencies = [ + "once_cell", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[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 = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +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.117", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "seahash" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.11.1", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "selectors" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c" +dependencies = [ + "bitflags 2.11.1", + "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.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +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.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.117", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e72c1c2cb7b223fafb600a619537a871c2818583d619401b785e7c0b746ccde2" +dependencies = [ + "base64 0.22.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b90c488738ecb4fb0262f41f43bc40efc5868d9fb744319ddf5f5317f417bfac" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.117", +] + +[[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 = "shared_child" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e362d9935bc50f019969e2f9ecd66786612daae13e8f277be7bfb66e8bed3f7" +dependencies = [ + "libc", + "sigchld", + "windows-sys 0.60.2", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "sigchld" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47106eded3c154e70176fc83df9737335c94ce22f821c32d17ed1db1f83badb1" +dependencies = [ + "libc", + "os_pipe", + "signal-hook", +] + +[[package]] +name = "signal-hook" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[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.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "siphasher" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +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 = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "swift-rs" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7" +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", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +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.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags 2.11.1", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[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.35.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a33f7f9e486ade65fcf1e45c440f9236c904f5c1002cdc7fc6ae582777345ce4" +dependencies = [ + "bitflags 2.11.1", + "block2", + "core-foundation 0.10.1", + "core-graphics", + "crossbeam-channel", + "dbus", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "libc", + "log", + "ndk", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "once_cell", + "parking_lot", + "percent-encoding", + "raw-window-handle", + "tao-macros", + "unicode-segmentation", + "url", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[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.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "437404997acf375d85f1177afa7e11bb971f274ed6a7b83a2a3e339015f4cc28" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs", + "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 0.13.3", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.18", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aa1f9055fc23919a54e4e125052bed16ed04aef0487086e758fe01a67b451c7" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "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.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a0319528a025a38c4078e7dae2c446f4e63620ddb0659a643ede1cb38f90e9" +dependencies = [ + "base64 0.22.1", + "brotli", + "ico", + "json-patch", + "plist", + "png 0.17.16", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.117", + "tauri-utils", + "thiserror 2.0.18", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae6cb4e3896c21d2f6da5b31251d2faea0153bba56ed0e970f918115dbee4924" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e126abc9e84e35cdfd01596140a73a1850cdb0df0a23acf0185776c30b469a6e" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "walkdir", +] + +[[package]] +name = "tauri-plugin-fs" +version = "2.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7ecc274121aca0c036a2b42d1cbe83d368d348f54e0bb8a735c2b1548e8f371" +dependencies = [ + "anyhow", + "dunce", + "glob", + "log", + "objc2-foundation", + "percent-encoding", + "schemars 0.8.22", + "serde", + "serde_json", + "serde_repr", + "tauri", + "tauri-plugin", + "tauri-utils", + "thiserror 2.0.18", + "toml 1.1.2+spec-1.1.0", + "url", +] + +[[package]] +name = "tauri-plugin-log" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7545bd67f070a4500432c826e2e0682146a1d6712aee22a2786490156b574d93" +dependencies = [ + "android_logger", + "byte-unit", + "fern", + "log", + "objc2", + "objc2-foundation", + "serde", + "serde_json", + "serde_repr", + "swift-rs", + "tauri", + "tauri-plugin", + "thiserror 2.0.18", + "time", +] + +[[package]] +name = "tauri-plugin-notification" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01fc2c5ff41105bd1f7242d8201fdf3efd70749b82fa013a17f2126357d194cc" +dependencies = [ + "log", + "notify-rust", + "rand 0.9.4", + "serde", + "serde_json", + "serde_repr", + "tauri", + "tauri-plugin", + "thiserror 2.0.18", + "time", + "url", +] + +[[package]] +name = "tauri-plugin-shell" +version = "2.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8457dbf9e2bab1edd8df22bb2c20857a59a9868e79cb3eac5ed639eec4d0c73b" +dependencies = [ + "encoding_rs", + "log", + "open", + "os_pipe", + "regex", + "schemars 0.8.22", + "serde", + "serde_json", + "shared_child", + "tauri", + "tauri-plugin", + "thiserror 2.0.18", + "tokio", +] + +[[package]] +name = "tauri-runtime" +version = "2.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48222d7116c8807eaa6fe2f372e023fae125084e61e6eca6d70b7961cdf129ef" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b83849ee63ecb27a8e8d0fe51915ca215076914aca43f96db1179f0f415f6cd9" +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", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "092379df9a707631978e6c56b1bc2401d387f01e2d4a3c123360d167bbb9aa95" +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.18", + "toml 1.1.2+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.2+spec-1.1.0", +] + +[[package]] +name = "tauri-winrt-notification" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b1e66e07de489fe43a46678dd0b8df65e0c973909df1b60ba33874e297ba9b9" +dependencies = [ + "quick-xml 0.37.5", + "thiserror 2.0.18", + "windows", + "windows-version", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4790fc369d5a530f4b544b094e31388b9b3a37c0f4652ade4505945f5660d24" +dependencies = [ + "new_debug_unreachable", + "utf-8", +] + +[[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.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[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.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "libc", + "num-conv", + "num_threads", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +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 = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 1.0.3", +] + +[[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 = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[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.0", + "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.0", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.11+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.3", +] + +[[package]] +name = "toml_parser" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +dependencies = [ + "winnow 1.0.3", +] + +[[package]] +name = "toml_writer" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" + +[[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.11.1", + "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.117", +] + +[[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.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15edbb0d80583e85ee8df283410038e17314df5cba30da2087a54a85216c0773" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.18", + "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.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de" + +[[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 = "unic-char-property" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221" +dependencies = [ + "unic-char-range", +] + +[[package]] +name = "unic-char-range" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc" + +[[package]] +name = "unic-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc" + +[[package]] +name = "unic-ucd-ident" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987" +dependencies = [ + "unic-char-property", + "unic-char-range", + "unic-ucd-version", +] + +[[package]] +name = "unic-ucd-version" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4" +dependencies = [ + "unic-common", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[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.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" +dependencies = [ + "regex", + "serde", + "unic-ucd-ident", + "url", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8-width" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1292c0d970b54115d14f2492fe0170adf21d68a1de108eebc51c1df4f346a091" + +[[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.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76" +dependencies = [ + "getrandom 0.4.2", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "value-bag" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ba6f5989077681266825251a52748b8c1d8a4ad098cc37e440103d0ea717fc0" + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[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.3+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6" +dependencies = [ + "wit-bindgen 0.57.1", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen 0.51.0", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.71" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.117", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.14.0", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[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 = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.1", + "hashbrown 0.15.5", + "indexmap 2.14.0", + "semver", +] + +[[package]] +name = "web-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7cff6eef815df1834fd250e3a2ff436044d82a9f1bc1980ca1dbdf07effc538" +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.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-core 0.61.2", + "windows-implement", + "windows-interface", +] + +[[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.117", +] + +[[package]] +name = "webview2-com-sys" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c" +dependencies = [ + "thiserror 2.0.18", + "windows", + "windows-core 0.61.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.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c" +dependencies = [ + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "raw-window-handle", + "windows-sys 0.59.0", + "windows-version", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections", + "windows-core 0.61.2", + "windows-future", + "windows-link 0.1.3", + "windows-numerics", +] + +[[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-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", +] + +[[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.117", +] + +[[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.117", +] + +[[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-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.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.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[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-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 = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" + +[[package]] +name = "winnow" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" +dependencies = [ + "memchr", +] + +[[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.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck 0.5.0", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck 0.5.0", + "indexmap 2.14.0", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.1", + "indexmap 2.14.0", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.14.0", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "wry" +version = "0.55.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514" +dependencies = [ + "base64 0.22.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs", + "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.18", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] + +[[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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3bcbf15c8708d7fc1be0c993622e0a5cbd5e8b52bfa40afa4c3e0cd8d724ac1" +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.3", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51fa5406ad9175a8c825a931f8cf347116b531b3634fcb0b627c290f1f2516ff" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7074f3e50b894eac91750142016d30d0a89be8e67dbfd9704fb875825760e52d" +dependencies = [ + "serde", + "winnow 1.0.3", + "zvariant", +] + +[[package]] +name = "zerocopy" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "zvariant" +version = "5.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c1567a6ec68df868cbbfde844cfc6d81649fe5109a62b116b19fabd53e618ee" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow 1.0.3", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7d5b780599bbde114e39d9a0799577fad1ced5105d38515745f7b3099d8ceda" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "3.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d464f5733ffa07a3164d656f18533caace9d0638596721355d73256a410d691" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 2.0.117", + "winnow 1.0.3", +] diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 15ee470..4d2c8aa 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -24,8 +24,14 @@ log = "0.4" anyhow = "1.0" tokio = { version = "1", features = ["full"] } toml = "0.8" +notify = "8" +dirs = "6" tauri = { version = "2.11.2", features = ["tray-icon"] } tauri-plugin-log = "2" tauri-plugin-notification = "2" tauri-plugin-shell = "2" tauri-plugin-fs = "2" +reqwest = { version = "0.12", features = ["json", "stream"] } + +[dev-dependencies] +tempfile = "3" diff --git a/src-tauri/build.rs b/src-tauri/build.rs index 795b9b7..d860e1e 100644 --- a/src-tauri/build.rs +++ b/src-tauri/build.rs @@ -1,3 +1,3 @@ fn main() { - tauri_build::build() + tauri_build::build() } diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index c135d7f..6c670aa 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -3,9 +3,11 @@ "identifier": "default", "description": "enables the default permissions", "windows": [ - "main" + "chat" ], "permissions": [ - "core:default" + "core:default", + "notification:default", + "shell:allow-open" ] } diff --git a/src-tauri/patterns/android-to-arch.toml b/src-tauri/patterns/android-to-arch.toml new file mode 100644 index 0000000..7c5e83d --- /dev/null +++ b/src-tauri/patterns/android-to-arch.toml @@ -0,0 +1,136 @@ +[meta] +source_os = "android" +target_distro_family = "arch" + +# Android user on their first Arch/CachyOS install. +# Assumes NO terminal experience (unless they used Termux). +# Every explanation starts from first principles. +# App Store analogy: pacman/AUR = Google Play + sideloading. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── Package management ──────────────────────────────────────────────────────── + +[[patterns]] +id = "pacman-db-lock" +sources = ["journald", "applog:pacman"] +match_text = "could not lock database: File exists" +severity = "warn" +title = "App installer is busy" +body = "The package manager (Linux's equivalent of the Play Store) got interrupted and left a lock file. A lock file is a signal to other processes that says 'I'm running, don't start.' If nothing is installing right now, remove it: open a terminal, type exactly: sudo rm /var/lib/pacman/db.lck — then press Enter and try again. 'sudo' means 'run this as administrator.'" + +[[patterns]] +id = "partial-upgrade-warning" +sources = ["applog:pacman"] +match_text = "warning: database file for" +severity = "info" +title = "App list is out of date — update everything" +body = "On Android, updates happen automatically. On Arch Linux, you need to run updates manually — and there's an important rule: always update ALL apps at the same time, never just the list. In a terminal, type: sudo pacman -Syu — then press Enter. Enter your password when asked. The -Syu means 'sync the list AND upgrade everything.'" + +[[patterns]] +id = "pacman-dep-conflict" +sources = ["journald", "applog:pacman"] +match_text = "conflicting dependencies" +severity = "warn" +title = "Two apps conflict with each other" +body = "Two packages need something that can't be shared — like two apps that both want to be the default music player. Read the message carefully. Usually one package replaces another. Remove the old one first: sudo pacman -R — then try your install again." + +[[patterns]] +id = "aur-build-failure" +sources = ["journald", "applog:pacman"] +match_text = "error: failed to build" +severity = "warn" +title = "App build failed (AUR)" +body = "The AUR is like sideloading apps on Android — you're installing from source code that gets compiled on your machine, not a pre-built app. The build failed, usually because of a missing tool or broken code. Look at the error text above this message for the specific reason. The AUR package's comments page on aur.archlinux.org often has fixes." + +# ── Terminal basics ─────────────────────────────────────────────────────────── + +[[patterns]] +id = "command-not-found" +sources = ["journald"] +match_text = "command not found" +severity = "info" +title = "Command not found — app may not be installed" +body = "You tried to run a program that isn't installed. On Android, apps are visible in the drawer; on Linux, they're invisible until you ask for them. To find and install the missing program, try: sudo pacman -Ss — this searches for it. Then install with: sudo pacman -S ." + +[[patterns]] +id = "permission-denied" +sources = ["journald"] +match_text = "Permission denied" +severity = "info" +title = "Permission denied" +body = "Linux has a permission system where files and folders are owned by specific users. This is more visible here than on Android. If you need admin access for a command, put 'sudo' before it — like: sudo . For files you own but can't access, check ownership with: ls -la /path/to/file" + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Hardware driver file missing" +body = "On Android, drivers come pre-installed and invisible. On Linux, some hardware needs a separate firmware file — like a plugin for your Wi-Fi chip or graphics card. Install the main firmware package: sudo pacman -S linux-firmware — then restart. If a specific device still doesn't work, the error message above will name which firmware file is missing." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory — closed an app" +body = "Linux ran out of RAM and had to close a program, similar to Android killing background apps. If this keeps happening, close programs you're not using, or add 'swap' (disk space used as overflow RAM): sudo pacman -S zram-generator" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Storage error" +body = "Something went wrong reading or writing to the drive. This could be a hardware problem. Check drive health: sudo smartctl -a /dev/sda — first install the tool: sudo pacman -S smartmontools" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Sound system not responding" +body = "PipeWire is the audio manager — like the sound settings system inside Android. Restart it: open a terminal and type: systemctl --user restart pipewire pipewire-pulse wireplumber — if sound still doesn't work, log out and log back in." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth blocked by software switch" +body = "A software setting is blocking Bluetooth — like Airplane Mode on your phone. Run: rfkill unblock bluetooth — in a terminal. If it shows 'Hard blocked', there's a physical switch or BIOS setting to check." + +[[patterns]] +id = "bluetooth-profile-unavailable" +sources = ["journald"] +match_text = "br-connection-profile-unavailable" +severity = "info" +title = "Bluetooth audio profile missing" +body = "Your Bluetooth device connected but the right audio mode isn't available. Install: sudo pacman -S pipewire-bluetooth — then restart Bluetooth: sudo systemctl restart bluetooth" + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Wi-Fi connection failed" +body = "Linux couldn't connect to the network. Common causes: wrong password, or the Wi-Fi driver isn't loaded. Check connection status: nmcli device status — if the Wi-Fi adapter doesn't appear, the driver may need to be installed." + +# ── GPU ─────────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "Graphics card stopped responding" +body = "The graphics card froze and the driver recovered it — like a forced restart of the GPU. Games or video apps may have crashed. If this keeps happening, check that your graphics drivers are current: sudo pacman -Syu" diff --git a/src-tauri/patterns/android-to-debian.toml b/src-tauri/patterns/android-to-debian.toml new file mode 100644 index 0000000..906f5ca --- /dev/null +++ b/src-tauri/patterns/android-to-debian.toml @@ -0,0 +1,137 @@ +[meta] +source_os = "android" +target_distro_family = "debian" + +# Android user on their first Debian/Ubuntu/Mint install. +# Assumes NO terminal experience. Ubuntu/Mint are the recommended starting points +# for Android migrants because of automatic updates and GUI app stores (GNOME Software/Discover). + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── Package management ──────────────────────────────────────────────────────── + +[[patterns]] +id = "apt-lock" +sources = ["journald"] +match_text = "Could not get lock /var/lib/dpkg/lock" +severity = "warn" +title = "App installer is busy" +body = "The software installer (Ubuntu/Mint calls it 'apt') is already running — probably doing automatic background updates, similar to how Android apps update silently. Wait a minute and try again. If it's stuck: open a terminal and type: sudo rm /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock — then: sudo dpkg --configure -a" + +[[patterns]] +id = "dpkg-interrupted" +sources = ["journald"] +match_text = "dpkg was interrupted" +severity = "warn" +title = "App install was cut short" +body = "A previous install didn't finish cleanly — like pulling the charging cable out mid-update on your phone. Fix it: open a terminal and type: sudo dpkg --configure -a — then try your install again." + +[[patterns]] +id = "apt-unmet-dependency" +sources = ["journald"] +match_text = "Unmet dependencies" +severity = "warn" +title = "App needs another app first" +body = "The software you're trying to install needs something else installed first — similar to a game on Android requiring Google Play Services. Let the installer fix it automatically: sudo apt --fix-broken install" + +# ── Terminal basics ─────────────────────────────────────────────────────────── + +[[patterns]] +id = "permission-denied" +sources = ["journald"] +match_text = "Permission denied" +severity = "info" +title = "Permission denied" +body = "Linux files and folders are protected by a permission system. If a command fails with this error, you may need to run it as admin — put 'sudo' before the command: sudo — and enter your password. Your password won't show as you type, that's normal." + +# ── AppArmor ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "App blocked by security policy" +body = "Ubuntu/Debian includes a security layer called AppArmor — like Android's app permissions system, but for the whole operating system. An app tried to do something outside its allowed permissions. Usually this resolves itself; if an app keeps failing, check: sudo aa-status" + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Hardware driver file missing" +body = "Some hardware needs a 'firmware' file — a small program that tells Linux how to talk to a specific chip. Install the main firmware package: sudo apt install firmware-linux linux-firmware — restart after. Ubuntu usually handles this automatically; you may see this on Debian." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory — closed an app" +body = "Linux had to close a program to free up memory — similar to Android killing background apps when RAM is full. If this keeps happening, try closing programs you're not using." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Storage error" +body = "Something went wrong reading or writing to the drive. This is a hardware-level issue. Install a diagnostic tool: sudo apt install smartmontools — then check: sudo smartctl -a /dev/sda" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Sound system not responding" +body = "PipeWire is the audio manager — restart it: systemctl --user restart pipewire pipewire-pulse wireplumber — if that doesn't help, log out and back in." + +[[patterns]] +id = "pulseaudio-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to pulseaudio" +severity = "warn" +title = "Sound system not responding" +body = "The audio system (PulseAudio) stopped working. Restart it: pulseaudio --kill && pulseaudio --start — or log out and back in." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth blocked by software switch" +body = "Run: rfkill unblock bluetooth — in a terminal. Like turning Airplane Mode off on your phone." + +[[patterns]] +id = "cups-server-error" +sources = ["journald"] +match_text = "Unable to connect to CUPS server" +severity = "info" +title = "Printer service not running" +body = "The printing service isn't running. Unlike Android where you'd use a manufacturer app, Linux uses a universal print system called CUPS. Start it: sudo systemctl start cups && sudo systemctl enable cups" + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Wi-Fi connection failed" +body = "Couldn't connect to the network. Double-check the password, or try: nmcli device status — in a terminal to see your network devices." + +# ── Media ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "missing-codec" +sources = ["journald"] +match_text = "GStreamer: Failed to find plugin" +severity = "info" +title = "Media format not supported" +body = "Linux doesn't include some video/audio formats by default for legal reasons — unlike Android which bundles them. Install them on Ubuntu/Mint: sudo apt install ubuntu-restricted-extras — this adds MP3, MP4, and other common formats." diff --git a/src-tauri/patterns/android-to-fedora.toml b/src-tauri/patterns/android-to-fedora.toml new file mode 100644 index 0000000..381c466 --- /dev/null +++ b/src-tauri/patterns/android-to-fedora.toml @@ -0,0 +1,102 @@ +[meta] +source_os = "android" +target_distro_family = "fedora" + +# Android user on their first Fedora install. +# Assumes NO terminal experience. All explanations from first principles. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── Package management ──────────────────────────────────────────────────────── + +[[patterns]] +id = "dnf-lock" +sources = ["journald"] +match_text = "Another app is currently holding the dnf lock" +severity = "warn" +title = "App installer is busy" +body = "Fedora's software installer (dnf) is already running — probably automatic background updates, similar to how Android apps update silently. Wait a minute. If it's stuck: open a terminal and type: sudo killall dnf — then try again." + +[[patterns]] +id = "dnf-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Two apps conflict with each other" +body = "Two packages need something that can't be shared. Let Fedora try to fix it: sudo dnf distro-sync — this brings everything back into a consistent state." + +# ── SELinux ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "selinux-denial" +sources = ["journald"] +match_text = "type=AVC" +severity = "info" +title = "Security system blocked an action" +body = "Fedora includes SELinux — a security layer that controls what each program is allowed to do, more detailed than Android's app permissions. This is usually a normal event, not a problem. If an app keeps failing, check what's being blocked: ausearch -m AVC -ts recent" + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Hardware driver file missing" +body = "Some hardware needs a firmware file — a program that tells Linux how to talk to a specific chip. Install it: sudo dnf install linux-firmware — restart after. For some hardware (especially older WiFi cards), you may also need: sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm" + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory — closed an app" +body = "Linux had to close a program to free up RAM, like Android killing background apps. If this keeps happening, try closing some programs." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Storage error" +body = "A hardware-level storage error. Install a diagnostic tool: sudo dnf install smartmontools — then check: sudo smartctl -a /dev/sda" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Sound system not responding" +body = "Restart the audio system: systemctl --user restart pipewire pipewire-pulse wireplumber — or log out and back in." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth blocked by software switch" +body = "Run: rfkill unblock bluetooth — in a terminal." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Wi-Fi connection failed" +body = "Couldn't connect to the network. Check: nmcli device status — in a terminal. If the adapter doesn't appear, check: dmesg | grep firmware — a missing driver may be the cause." + +# ── Media ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "missing-codec" +sources = ["journald"] +match_text = "GStreamer: Failed to find plugin" +severity = "info" +title = "Media format not supported" +body = "Linux doesn't include some video/audio formats by default. Install them from RPM Fusion: first enable it: sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm — then: sudo dnf install gstreamer1-plugins-bad-free gstreamer1-plugins-ugly" diff --git a/src-tauri/patterns/android-to-opensuse.toml b/src-tauri/patterns/android-to-opensuse.toml new file mode 100644 index 0000000..80bdf89 --- /dev/null +++ b/src-tauri/patterns/android-to-opensuse.toml @@ -0,0 +1,103 @@ +[meta] +source_os = "android" +target_distro_family = "opensuse" + +# Android user on their first openSUSE install. +# Assumes NO terminal experience. openSUSE's YaST GUI tool is a good entry point +# for users unfamiliar with terminal-based administration. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── Package management ──────────────────────────────────────────────────────── + +[[patterns]] +id = "zypper-lock" +sources = ["journald"] +match_text = "System management is locked" +severity = "warn" +title = "App installer is busy" +body = "The software installer (zypper) is already running. Wait a minute. If it's stuck: open a terminal and type: sudo zypper ps — to see what's using it." + +[[patterns]] +id = "zypper-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Two apps conflict with each other" +body = "Two packages need something that can't be shared. Run a full update to resolve: sudo zypper dup — then try again." + +# ── AppArmor ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "App blocked by security policy" +body = "openSUSE includes AppArmor — a security layer like Android's app permissions but for the whole system. An app was blocked from doing something. Check: sudo aa-status — YaST also has an AppArmor section under Security." + +# ── YaST ────────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "yast-backend-fail" +sources = ["journald"] +match_text = "YaST got signal" +severity = "warn" +title = "Settings tool crashed" +body = "YaST is openSUSE's settings tool — like the Settings app on Android but for the whole system. It crashed. Try: sudo yast2 — in a terminal to run the text version, which is more stable." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Hardware driver file missing" +body = "Install the firmware package: sudo zypper install kernel-firmware — restart after." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory — closed an app" +body = "Linux had to close a program to free up RAM, like Android killing background apps. If this keeps happening, openSUSE's YaST -> System -> Partitioner can add or resize swap space." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Storage error" +body = "A hardware-level storage error. Install: sudo zypper install smartmontools — then check: sudo smartctl -a /dev/sda" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Sound system not responding" +body = "Restart the audio system: systemctl --user restart pipewire pipewire-pulse wireplumber — or log out and back in." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth blocked by software switch" +body = "Run: rfkill unblock bluetooth — in a terminal. YaST -> Network -> Bluetooth also has a toggle." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Wi-Fi connection failed" +body = "Couldn't connect to the network. Check: nmcli device status — or use YaST -> Network Settings to diagnose." diff --git a/src-tauri/patterns/arch-to-debian.toml b/src-tauri/patterns/arch-to-debian.toml new file mode 100644 index 0000000..051df29 --- /dev/null +++ b/src-tauri/patterns/arch-to-debian.toml @@ -0,0 +1,146 @@ +[meta] +source_os = "linux" +target_distro_family = "debian" + +# Arch/Manjaro/EndeavourOS user moving to Debian/Ubuntu/Mint. +# Body text assumes pacman, AUR, and rolling release familiarity. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── apt / dpkg ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apt-lock" +sources = ["journald"] +match_text = "Could not get lock /var/lib/dpkg/lock" +severity = "warn" +title = "Package manager is locked" +body = "Another apt process is running — often unattended-upgrades (automatic background updates, no Arch equivalent). Wait a minute. If stuck: sudo rm /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock && sudo dpkg --configure -a" + +[[patterns]] +id = "dpkg-interrupted" +sources = ["journald"] +match_text = "dpkg was interrupted" +severity = "warn" +title = "Package install was interrupted" +body = "Like a pacman transaction that got killed, but dpkg needs manual recovery. Fix: sudo dpkg --configure -a" + +[[patterns]] +id = "apt-unmet-dependency" +sources = ["journald"] +match_text = "Unmet dependencies" +severity = "warn" +title = "Package dependency conflict" +body = "Unlike pacman which puts the conflict choice on you, apt tries to auto-resolve. Let it: sudo apt --fix-broken install — if it can't, read the message for which packages conflict." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "On Debian: sudo apt install firmware-linux firmware-linux-nonfree (enable non-free sources first). On Ubuntu: sudo apt install linux-firmware. Unlike Arch's single linux-firmware package, Debian splits firmware by license." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "Debian stable has conservative defaults — Ubuntu enables zswap, Debian doesn't. If you used zram-generator on Arch, set up a swapfile here: fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install: sudo apt install smartmontools" + +[[patterns]] +id = "locale-error" +sources = ["journald"] +match_text = "failed to set locale" +severity = "info" +title = "Locale configuration error" +body = "Debian generates locales via dpkg-reconfigure: sudo dpkg-reconfigure locales — select your locale in the curses UI. Unlike Arch where you edit /etc/locale.gen directly, Debian abstracts this." + +# ── AppArmor ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "AppArmor access denied" +body = "Debian/Ubuntu ships AppArmor — Arch doesn't use MAC by default. An app is blocked by a security profile. Check: sudo aa-status — audit: sudo aa-logprof — or put the profile in complain mode: sudo aa-complain /etc/apparmor.d/" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Ubuntu 22.04+/Debian 12+ ship PipeWire like Arch. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "pulseaudio-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to pulseaudio" +severity = "warn" +title = "PulseAudio not responding" +body = "Older Debian systems still use PulseAudio. Restart: pulseaudio --kill && pulseaudio --start — you can migrate to PipeWire: sudo apt install pipewire-audio" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — same as Arch." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. For NVIDIA on Ubuntu: sudo apt install nvidia-driver- or ubuntu-drivers autoinstall. Debian requires non-free sources: apt install nvidia-driver" + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — Debian minimal installs may use ifupdown instead of NetworkManager. Check: systemctl status NetworkManager — install if missing: sudo apt install network-manager" + +# ── Printing ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "cups-server-error" +sources = ["journald"] +match_text = "Unable to connect to CUPS server" +severity = "info" +title = "Printer service not running" +body = "sudo systemctl start cups && sudo systemctl enable cups — Debian/Ubuntu handle printing through CUPS; Arch also uses CUPS but it's not always enabled by default." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity." diff --git a/src-tauri/patterns/arch-to-fedora.toml b/src-tauri/patterns/arch-to-fedora.toml new file mode 100644 index 0000000..0e82a53 --- /dev/null +++ b/src-tauri/patterns/arch-to-fedora.toml @@ -0,0 +1,136 @@ +[meta] +source_os = "linux" +target_distro_family = "fedora" + +# Arch/Manjaro/EndeavourOS user moving to Fedora. +# Body text assumes pacman, AUR, and rolling release familiarity. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── DNF / RPM ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "dnf-lock" +sources = ["journald"] +match_text = "Another app is currently holding the dnf lock" +severity = "warn" +title = "DNF package manager is locked" +body = "dnf-automatic (Fedora's equivalent of Arch's unattended auto-updates, though Arch doesn't do auto-updates) is probably running. Wait it out or: sudo ps aux | grep dnf" + +[[patterns]] +id = "dnf-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Package dependency conflict" +body = "Unlike pacman where you resolve conflicts manually, dnf tries to auto-resolve. It usually succeeds. If not: sudo dnf distro-sync — the Fedora equivalent of pacman -Syu for bringing the system fully in sync." + +[[patterns]] +id = "dnf-gpg-key" +sources = ["journald"] +match_text = "GPG key retrieval failed" +severity = "warn" +title = "Repository GPG key missing" +body = "Import the key: sudo rpm --import /path/to/key.gpg — or re-run with: sudo dnf install --nogpgcheck (only if you trust the source). RPM Fusion keys are imported automatically when you enable the repo." + +# ── SELinux (new concept for Arch users) ───────────────────────────────────── + +[[patterns]] +id = "selinux-denial" +sources = ["journald"] +match_text = "type=AVC" +severity = "info" +title = "SELinux access denied" +body = "Fedora ships SELinux enforcing by default — there's nothing like this on Arch by default. A security policy is blocking an action. Check what's blocked: ausearch -m AVC -ts recent — get a fix suggestion: sealert -a /var/log/audit/audit.log — don't just set SELinux to permissive; that defeats the security model." + +[[patterns]] +id = "selinux-context-wrong" +sources = ["journald"] +match_text = "restorecon" +severity = "info" +title = "SELinux file context mismatch" +body = "A file has the wrong security label — common when copying files from an Arch system or an external drive. Fix: sudo restorecon -Rv /path/to/file" + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo dnf install linux-firmware — same coverage as Arch's linux-firmware package. Some chips may need RPM Fusion nonfree: sudo dnf install rpmfusion-nonfree-release-$(rpm -E %fedora)" + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. Fedora enables zswap by default on modern releases. If you used zram on Arch, install zram-generator: sudo dnf install zram-generator" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install: sudo dnf install smartmontools" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Both Arch and Fedora ship PipeWire. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — same as Arch." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. For NVIDIA on Fedora, RPM Fusion is the right source: sudo dnf install akmod-nvidia — unlike Arch's nvidia-dkms from the official repos." + +[[patterns]] +id = "xwayland-crash" +sources = ["journald"] +match_text = "XWayland server terminated unexpectedly" +severity = "warn" +title = "XWayland crashed" +body = "X11 apps dead until session restart. Fedora GNOME defaults to Wayland like Arch KDE/GNOME can." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — same NetworkManager as Arch. Firmware issues: sudo dmesg | grep firmware" + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity. Steam on Fedora: sudo dnf install steam (from RPM Fusion free)." diff --git a/src-tauri/patterns/arch-to-opensuse.toml b/src-tauri/patterns/arch-to-opensuse.toml new file mode 100644 index 0000000..520629d --- /dev/null +++ b/src-tauri/patterns/arch-to-opensuse.toml @@ -0,0 +1,130 @@ +[meta] +source_os = "linux" +target_distro_family = "opensuse" + +# Arch/Manjaro/EndeavourOS user moving to openSUSE Tumbleweed or Leap. +# Body text assumes pacman, AUR, and rolling release familiarity. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── zypper / RPM ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "zypper-lock" +sources = ["journald"] +match_text = "System management is locked" +severity = "warn" +title = "zypper package manager is locked" +body = "Another zypper or PackageKit (GNOME Software) process is running. Wait it out or check: sudo ps aux | grep zypper" + +[[patterns]] +id = "zypper-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Package dependency conflict" +body = "Unlike pacman which puts the conflict on you immediately, zypper presents resolution options. zypper dup (distribution upgrade) is more aggressive than zypper up and usually resolves what zypper up won't." + +[[patterns]] +id = "zypper-gpg-key" +sources = ["journald"] +match_text = "does not verify" +severity = "warn" +title = "Repository signature not trusted" +body = "Auto-import keys: sudo zypper --gpg-auto-import-keys ref — unlike pacman-key, zypper manages repo keys through RPM's keyring." + +# ── AppArmor ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "AppArmor access denied" +body = "openSUSE ships AppArmor — Arch doesn't use MAC by default. An app is blocked by a profile. Check: sudo aa-status — audit and fix: sudo aa-logprof — or set the profile to complain mode: sudo aa-complain " + +# ── YaST ────────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "yast-backend-fail" +sources = ["journald"] +match_text = "YaST got signal" +severity = "warn" +title = "YaST configuration tool crashed" +body = "YaST is openSUSE's graphical admin tool — no Arch equivalent. If it crashed mid-operation: sudo yast2 in a terminal to run the text-mode version, which is more stable for recovery." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo zypper install kernel-firmware — similar to Arch's linux-firmware in scope." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. If you used zram-generator on Arch, openSUSE supports it too: sudo zypper install zram-generator — or set up swap via YaST -> System -> Partitioner." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install: sudo zypper install smartmontools" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Tumbleweed ships PipeWire like Arch. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — same as Arch." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. For NVIDIA on openSUSE: use the NVIDIA OBS repo (similar to Arch's nvidia-dkms from official repos). AMD users: mesa is in the default repos." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — openSUSE may use Wicked on server installs instead of NetworkManager. Check: systemctl status NetworkManager wicked" + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity. Steam on openSUSE: sudo zypper install steam (from the games repo on OBS)." diff --git a/src-tauri/patterns/debian-to-arch.toml b/src-tauri/patterns/debian-to-arch.toml new file mode 100644 index 0000000..abba8f8 --- /dev/null +++ b/src-tauri/patterns/debian-to-arch.toml @@ -0,0 +1,186 @@ +[meta] +source_os = "linux" +target_distro_family = "arch" + +# Debian/Ubuntu/Mint user on their first Arch install. +# Body text assumes comfort with apt and systemd but not AUR or rolling release. + +[log_paths] +pacman = "/var/log/pacman.log" +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" +lutris = "~/.cache/lutris/logs/lutris.log" + +# ── pacman / AUR ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "pacman-db-lock" +sources = ["journald", "applog:pacman"] +match_text = "could not lock database: File exists" +severity = "warn" +title = "pacman database locked" +body = "Lock file left from a crashed pacman run — like dpkg getting killed mid-install. If nothing is running: sudo rm /var/lib/pacman/db.lck — verify first: fuser /var/lib/pacman/db.lck" + +[[patterns]] +id = "pacman-dep-conflict" +sources = ["journald", "applog:pacman"] +match_text = "conflicting dependencies" +severity = "warn" +title = "Dependency conflict" +body = "Unlike apt, pacman won't auto-resolve conflicts — you decide. Usually one package replaces another (e.g. pipewire-pulse replaces pulseaudio). Remove the conflicting package first, then retry." + +[[patterns]] +id = "pacman-conflicting-files" +sources = ["journald", "applog:pacman"] +match_text = "error: failed to commit transaction (conflicting files)" +severity = "warn" +title = "Conflicting files on install" +body = "A file already exists on disk that the package wants to own. Check which package owns it: pacman -Qo /path/to/file — then remove the stale file or use --overwrite if you're sure it's safe." + +[[patterns]] +id = "partial-upgrade-warning" +sources = ["applog:pacman"] +match_text = "warning: database file for" +severity = "info" +title = "Package database out of sync" +body = "On Arch, pacman -Sy (sync without upgrade) is dangerous — partial upgrades break the system. Unlike apt where partial syncs are fine, on Arch always use pacman -Syu. This is the biggest rule to learn coming from Debian." + +[[patterns]] +id = "aur-build-failure" +sources = ["journald", "applog:pacman"] +match_text = "error: failed to build" +severity = "warn" +title = "AUR package build failed" +body = "The AUR is source-based — no binary packages, makepkg compiles from a PKGBUILD. Read the full output for the cause: missing makedepend, broken upstream URL, or bad patch. Check the package's AUR comments page for known fixes." + +[[patterns]] +id = "aur-pgp-key" +sources = ["journald", "applog:pacman"] +match_text = "unknown public key" +severity = "warn" +title = "PGP key not in keyring" +body = "AUR packages verify signatures — different from apt's keyring model. Import the key: gpg --recv-keys — or if the PKGBUILD lists validpgpkeys, import exactly those." + +[[patterns]] +id = "makepkg-missing-deps" +sources = ["journald", "applog:pacman"] +match_text = "Missing dependencies" +severity = "warn" +title = "AUR build dependencies missing" +body = "AUR helpers like paru/yay resolve makedepends automatically. If building manually: sudo pacman -S first. This is like build-dep in apt but you have to do it manually with plain makepkg." + +[[patterns]] +id = "chaotic-aur-sig-fail" +sources = ["journald", "applog:pacman"] +match_text = "signature from" +severity = "warn" +title = "Package signature verification failed" +body = "Chaotic-AUR key not trusted. Import it: sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com && sudo pacman-key --lsign-key 3056513887B78AEB — then retry." + +# ── Kernel / DKMS ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "dkms-build-fail" +sources = ["journald"] +match_text = "Error! Build of" +severity = "warn" +title = "DKMS module failed to build" +body = "A kernel module didn't compile after a kernel update. On Arch's rolling release this happens more than on Debian stable. Check: dkms status — then reinstall the dkms package or wait for an AUR update. Debian had linux-headers; here it's linux-headers (or linux-cachyos-headers on CachyOS)." + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo pacman -S linux-firmware — similar to firmware-linux-nonfree on Debian but one package covers most hardware. Specific chips (Realtek wifi) may need AUR packages." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "locale-not-set" +sources = ["journald"] +match_text = "Cannot set LC_ALL to default locale" +severity = "info" +title = "Locale not generated" +body = "Unlike Debian, Arch doesn't pre-generate locales. Edit /etc/locale.gen (uncomment your locale, e.g. en_US.UTF-8), then: sudo locale-gen — and set LANG=en_US.UTF-8 in /etc/locale.conf." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. Arch doesn't enable zswap by default like Ubuntu does. Add zram: sudo pacman -S zram-generator — or add a swapfile." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Storage error on a block device. Check SMART: sudo smartctl -a /dev/sdX — or for NVMe: sudo nvme smart-log /dev/nvme0." + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "systemctl --user restart pipewire pipewire-pulse wireplumber — Arch defaults to PipeWire; no PulseAudio fallback like Ubuntu has." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — if hard-blocked, check BIOS or a physical switch." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. On Arch with AMD: check mesa version vs kernel version — both roll together. On NVIDIA: check nvidia-dkms matches the running kernel." + +[[patterns]] +id = "xwayland-crash" +sources = ["journald"] +match_text = "XWayland server terminated unexpectedly" +severity = "warn" +title = "XWayland crashed" +body = "X11 apps will be dead until session restart. If reproducible with a specific app, check for a Wayland-native version or force X11 with WAYLAND_DISPLAY= unset." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — if a wifi adapter is missing, check dmesg for firmware errors. Arch ships most firmware in linux-firmware; some Realtek chips need AUR packages." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity." + +[[patterns]] +id = "lutris-wine-fail" +sources = ["applog:lutris"] +match_text = "Wine is not installed" +severity = "warn" +title = "Lutris: Wine not found" +body = "Lutris needs a Wine runner. In Lutris: Preferences -> Runners -> Wine -> Install — or: paru -S wine-staging" diff --git a/src-tauri/patterns/debian-to-fedora.toml b/src-tauri/patterns/debian-to-fedora.toml new file mode 100644 index 0000000..0bf995b --- /dev/null +++ b/src-tauri/patterns/debian-to-fedora.toml @@ -0,0 +1,144 @@ +[meta] +source_os = "linux" +target_distro_family = "fedora" + +# Debian/Ubuntu/Mint user on their first Fedora/RHEL/CentOS install. +# Body text assumes apt/dpkg familiarity, no RPM experience. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── DNF / RPM ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "dnf-lock" +sources = ["journald"] +match_text = "Another app is currently holding the dnf lock" +severity = "warn" +title = "DNF package manager is locked" +body = "Another dnf process is running — like apt being held by unattended-upgrades. Wait for it to finish or check: sudo ps aux | grep dnf — then kill if stuck." + +[[patterns]] +id = "rpm-db-corrupt" +sources = ["journald"] +match_text = "rpmdb" +severity = "warn" +title = "RPM database issue" +body = "Like a corrupted dpkg database. Rebuild it: sudo rpm --rebuilddb — then retry your dnf command." + +[[patterns]] +id = "dnf-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Package dependency conflict" +body = "DNF can auto-resolve some conflicts but not all. Read the conflict message — usually one package provides what another needs. Try: sudo dnf distro-sync to bring everything in sync." + +[[patterns]] +id = "dnf-gpg-key" +sources = ["journald"] +match_text = "GPG key retrieval failed" +severity = "warn" +title = "Repository GPG key missing" +body = "A repo's signing key isn't trusted. Import it: sudo rpm --import /path/to/key.gpg — or re-enable the repo's key: sudo dnf repoinfo " + +# ── SELinux ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "selinux-denial" +sources = ["journald"] +match_text = "type=AVC" +severity = "info" +title = "SELinux access denied" +body = "Fedora ships SELinux enforcing by default — there's nothing like this on Debian/Ubuntu. This is a security policy denial, not a bug. Check: ausearch -m AVC -ts recent — then run: sealert -a /var/log/audit/audit.log for a fix suggestion." + +[[patterns]] +id = "selinux-context-wrong" +sources = ["journald"] +match_text = "restorecon" +severity = "info" +title = "SELinux file context mismatch" +body = "A file has the wrong security label. Fix: sudo restorecon -Rv /path/to/file — common after copying files from Debian or moving data between filesystems." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "On Fedora: sudo dnf install linux-firmware — or for specific hardware check RPM Fusion's nonfree repo. Enable it: sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm" + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. Fedora enables zswap by default on modern releases, but adding a swapfile helps on low-RAM systems: sudo systemctl enable --now systemd-swap" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Storage error. Check SMART: sudo smartctl -a /dev/sdX — smartmontools is in the default Fedora repos." + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Fedora pioneered PipeWire adoption — it's the default. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — if hard-blocked, check BIOS or a physical switch." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. Check: dnf list installed | grep -i nvidia (or mesa) — RPM Fusion is the right source for proprietary NVIDIA drivers on Fedora." + +[[patterns]] +id = "xwayland-crash" +sources = ["journald"] +match_text = "XWayland server terminated unexpectedly" +severity = "warn" +title = "XWayland crashed" +body = "Fedora ships GNOME on Wayland by default; XWayland handles X11 apps. Restart your session to recover X11 apps." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — Fedora ships NetworkManager by default, same as Ubuntu. If a wifi adapter is missing, check: dmesg | grep firmware" + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity. Steam on Fedora may also need: sudo dnf install steam (from RPM Fusion free repo)." diff --git a/src-tauri/patterns/debian-to-opensuse.toml b/src-tauri/patterns/debian-to-opensuse.toml new file mode 100644 index 0000000..c5b4d18 --- /dev/null +++ b/src-tauri/patterns/debian-to-opensuse.toml @@ -0,0 +1,120 @@ +[meta] +source_os = "linux" +target_distro_family = "opensuse" + +# Debian/Ubuntu/Mint user on their first openSUSE Tumbleweed or Leap install. +# Body text assumes apt/dpkg familiarity; explains zypper and YaST concepts. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── zypper / RPM ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "zypper-lock" +sources = ["journald"] +match_text = "System management is locked" +severity = "warn" +title = "zypper package manager is locked" +body = "Another zypper or PackageKit process is running — like apt being held by unattended-upgrades. Wait it out or check: sudo ps aux | grep zypper — the lock file is at /var/run/zypp.pid" + +[[patterns]] +id = "zypper-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Package dependency conflict" +body = "zypper presents conflict resolution choices interactively. If running non-interactively, read the error — usually one package needs to be removed or a different provider selected. zypper dup (distribution upgrade) resolves more aggressively than zypper up." + +[[patterns]] +id = "zypper-gpg-key" +sources = ["journald"] +match_text = "does not verify" +severity = "warn" +title = "Repository signature not trusted" +body = "A repo key isn't trusted. Accept it: sudo zypper --gpg-auto-import-keys ref — or import manually: sudo rpm --import /path/to/key.gpg" + +# ── AppArmor ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "AppArmor access denied" +body = "openSUSE ships AppArmor (similar to Ubuntu, not Debian default). An app is blocked by its security profile. Check: sudo aa-status — then audit the profile with: sudo aa-logprof" + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo zypper install kernel-firmware — openSUSE packages firmware separately like Debian but the package is called kernel-firmware, not firmware-linux." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. openSUSE sets up swap during install; if you skipped it, add a swapfile via YaST -> System -> Partitioner or manually with dd + mkswap." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Storage error. Check SMART: sudo smartctl -a /dev/sdX — install smartmontools first: sudo zypper install smartmontools" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Tumbleweed ships PipeWire by default. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — if hard-blocked, check BIOS or a physical switch." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. For NVIDIA on openSUSE, use the official NVIDIA repo: https://www.nvidia.com/object/unix.html — or the community packages.opensuse.org repo." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — openSUSE uses NetworkManager by default. For wifi firmware issues: sudo zypper install kernel-firmware-iwlwifi (Intel) or kernel-firmware-realtek (Realtek)." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity. Steam on openSUSE: sudo zypper install steam (from the games repo on OBS)." diff --git a/src-tauri/patterns/dualboot-macos.toml b/src-tauri/patterns/dualboot-macos.toml new file mode 100644 index 0000000..eb300da --- /dev/null +++ b/src-tauri/patterns/dualboot-macos.toml @@ -0,0 +1,65 @@ +[meta] +source_os = "supplement" +target_distro_family = "any" + +# Supplementary patterns for users dual-booting macOS alongside any Linux distro. +# These patterns cover coexistence-specific issues unique to Apple hardware. +# This file is merged on top of the primary migration pattern file. + +[log_paths] + +# ── Apple T2 / Secure Boot ──────────────────────────────────────────────────── + +[[patterns]] +id = "t2-secure-boot" +sources = ["kmsg", "journald"] +match_text = "Secure Boot" +severity = "warn" +title = "Apple T2 Secure Boot blocking Linux" +body = "Intel Macs with a T2 chip require Secure Boot to be disabled before Linux can boot. Boot into macOS Recovery (hold Cmd+R at startup) -> Utilities -> Startup Security Utility -> set Secure Boot to 'No Security' and allow booting from external media. Apple Silicon (M1/M2) Macs cannot dual-boot Linux at all — see Asahi Linux for the current state." + +[[patterns]] +id = "apple-wifi-firmware" +sources = ["kmsg"] +match_text = "brcmfmac: brcmf_fw_alloc_request" +severity = "warn" +title = "Apple WiFi firmware not loading" +body = "Broadcom WiFi chips in Macs need proprietary firmware. Extract it from the macOS partition: mount your macOS partition and copy from /Volumes/Macintosh HD/usr/share/firmware/wifi/ — or install apple-firmware-wifi (check your distro's AUR or repos)." + +# ── HFS+ / APFS ─────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apfs-not-mounted" +sources = ["journald"] +match_text = "apfs: module not found" +severity = "info" +title = "macOS APFS partition not readable" +body = "Linux can't read APFS (macOS's filesystem) natively. To access files: sudo apt install apfs-fuse (Debian) or paru -S apfs-fuse-git (Arch). Mount: apfs-fuse /dev/sdXN /mnt/mac — read-only access only." + +[[patterns]] +id = "hfsplus-not-mounted" +sources = ["journald"] +match_text = "hfsplus: Journal not clean" +severity = "warn" +title = "HFS+ partition not cleanly unmounted" +body = "The macOS HFS+ partition (older Macs) wasn't unmounted cleanly. Mount in macOS and run Disk Utility -> First Aid to fix it. Or force Linux mount: sudo mount -o force /dev/sdXN /mnt/mac" + +# ── rEFInd / boot manager ──────────────────────────────────────────────────── + +[[patterns]] +id = "refind-missing" +sources = ["journald"] +match_text = "Boot0001" +severity = "info" +title = "EFI boot entry may be missing" +body = "macOS may have reset the EFI boot order after an update, removing the Linux entry. rEFInd is the recommended boot manager for Mac dual-boot: it auto-detects both macOS and Linux. Install: sudo refind-install — or reinstall GRUB EFI and re-add it with efibootmgr." + +# ── Clock skew ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "rtc-time-wrong" +sources = ["journald"] +match_text = "RTC time" +severity = "info" +title = "System clock drifted after macOS boot" +body = "macOS stores the hardware clock in local time; Linux stores it in UTC. This causes clock drift in dual-boot. Fix in Linux: timedatectl set-local-rtc 0 — then set macOS to UTC by running in Terminal: sudo systemsetup -setusingnetworktime off && sudo systemsetup -settime $(date -u +%H:%M:%S)" diff --git a/src-tauri/patterns/dualboot-windows.toml b/src-tauri/patterns/dualboot-windows.toml new file mode 100644 index 0000000..4cf81e8 --- /dev/null +++ b/src-tauri/patterns/dualboot-windows.toml @@ -0,0 +1,75 @@ +[meta] +source_os = "supplement" +target_distro_family = "any" + +# Supplementary patterns for users dual-booting Windows alongside any Linux distro. +# These patterns cover coexistence-specific issues that only appear because both OSes +# share the same hardware. This file is merged on top of the primary migration pattern file. + +[log_paths] + +# ── NTFS / Fast Startup ─────────────────────────────────────────────────────── + +[[patterns]] +id = "ntfs-volume-dirty" +sources = ["kmsg"] +match_text = "volume is dirty" +severity = "warn" +title = "Windows drive needs a check (Fast Startup)" +body = "Windows didn't shut down cleanly — it probably used Fast Startup (hibernation). Linux mounted the NTFS partition read-only to protect your data. Fix in Windows: Start -> Power -> hold Shift and click Shut Down (real shutdown, not hibernate). Then turn Fast Startup off: Control Panel -> Power Options -> 'Choose what the power buttons do' -> uncheck 'Turn on fast startup'." + +[[patterns]] +id = "ntfs-force-required" +sources = ["kmsg"] +match_text = "Dirty flag is set" +severity = "warn" +title = "NTFS drive mounted read-only (dirty flag)" +body = "Windows left the NTFS filesystem marked dirty. Boot into Windows and do a full shutdown (Shift+Shut Down), or force-fix on Linux: sudo ntfsfix /dev/sdXN — replace sdXN with the partition shown in the error." + +[[patterns]] +id = "ntfs-hibernation" +sources = ["kmsg"] +match_text = "Windows is hibernated" +severity = "warn" +title = "Windows is hibernated — partition locked" +body = "Linux found a Windows hibernation file (hiberfil.sys) and can't write to the NTFS partition safely. You must resume and properly shut down Windows first. To remove the hibernation file permanently: in Windows as admin, run: powercfg /h off" + +# ── Clock skew ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "rtc-time-wrong" +sources = ["journald"] +match_text = "RTC time" +severity = "info" +title = "System clock drifted after Windows boot" +body = "Windows stores the hardware clock in local time; Linux stores it in UTC. Dual-booting causes clock drift between sessions. Fix permanently in Linux: timedatectl set-local-rtc 0 (keep Linux correct and fix Windows instead). Or in Windows, add a registry key to use UTC: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation, add DWORD RealTimeIsUniversal = 1." + +# ── GRUB overwritten by Windows ─────────────────────────────────────────────── + +[[patterns]] +id = "grub-missing-windows-update" +sources = ["journald"] +match_text = "error: no such device" +severity = "warn" +title = "GRUB may have been overwritten" +body = "Windows Update sometimes overwrites the EFI boot entry. If Linux stopped booting after a Windows update: boot from your Linux USB installer -> rescue/chroot -> reinstall GRUB: grub-install /dev/sdX && update-grub (Debian/Ubuntu) or grub-install /dev/sdX && grub-mkconfig -o /boot/grub/grub.cfg (Arch)." + +# ── BitLocker ───────────────────────────────────────────────────────────────── + +[[patterns]] +id = "bitlocker-blocked" +sources = ["kmsg"] +match_text = "BitLocker" +severity = "info" +title = "BitLocker encrypted partition" +body = "This Windows partition is BitLocker-encrypted. Linux can mount it with dislocker: sudo apt install dislocker (Debian) or paru -S dislocker (Arch). You'll need the BitLocker recovery key from your Microsoft account." + +# ── Shared NTFS partition permissions ──────────────────────────────────────── + +[[patterns]] +id = "ntfs-permission-error" +sources = ["journald"] +match_text = "ntfs-3g: Failed to open" +severity = "warn" +title = "NTFS permission error" +body = "ntfs-3g can't open the Windows partition. Check your /etc/fstab mount options — add uid=1000,gid=1000,umask=022 to give your Linux user access. Make sure Windows is fully shut down first." diff --git a/src-tauri/patterns/fedora-to-arch.toml b/src-tauri/patterns/fedora-to-arch.toml new file mode 100644 index 0000000..54468af --- /dev/null +++ b/src-tauri/patterns/fedora-to-arch.toml @@ -0,0 +1,172 @@ +[meta] +source_os = "linux" +target_distro_family = "arch" + +# Fedora/RHEL/CentOS user on their first Arch install. +# Body text assumes DNF, SELinux, and RPM Fusion familiarity. + +[log_paths] +pacman = "/var/log/pacman.log" +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" +lutris = "~/.cache/lutris/logs/lutris.log" + +# ── pacman / AUR ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "pacman-db-lock" +sources = ["journald", "applog:pacman"] +match_text = "could not lock database: File exists" +severity = "warn" +title = "pacman database locked" +body = "Lock file left from a crashed pacman run — like a dnf transaction that got killed. Remove if nothing is running: sudo rm /var/lib/pacman/db.lck — check first: fuser /var/lib/pacman/db.lck" + +[[patterns]] +id = "partial-upgrade-warning" +sources = ["applog:pacman"] +match_text = "warning: database file for" +severity = "info" +title = "Package database out of sync" +body = "Arch rule #1 coming from Fedora: never run pacman -Sy (sync only). On Fedora, dnf check-update is safe; on Arch, syncing the database without upgrading breaks the system. Always: pacman -Syu" + +[[patterns]] +id = "pacman-dep-conflict" +sources = ["journald", "applog:pacman"] +match_text = "conflicting dependencies" +severity = "warn" +title = "Dependency conflict" +body = "Unlike dnf which auto-resolves most conflicts, pacman puts the choice on you. Read the conflict — typically one package is being replaced (e.g. pipewire-pulse replaces pulseaudio). Remove the old one first." + +[[patterns]] +id = "aur-build-failure" +sources = ["journald", "applog:pacman"] +match_text = "error: failed to build" +severity = "warn" +title = "AUR package build failed" +body = "The AUR is source-only — no binary RPM equivalent. makepkg compiles from a PKGBUILD. Read the build output; check the package's AUR comments page. paru/yay handle makedepends automatically." + +[[patterns]] +id = "aur-pgp-key" +sources = ["journald", "applog:pacman"] +match_text = "unknown public key" +severity = "warn" +title = "PGP key not in keyring" +body = "Import the key: gpg --recv-keys — different from RPM's --import; this is GnuPG's own keyring used by makepkg." + +[[patterns]] +id = "chaotic-aur-sig-fail" +sources = ["journald", "applog:pacman"] +match_text = "signature from" +severity = "warn" +title = "Package signature verification failed" +body = "Chaotic-AUR key not trusted. Import: sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com && sudo pacman-key --lsign-key 3056513887B78AEB" + +# ── SELinux → no SELinux ────────────────────────────────────────────────────── + +[[patterns]] +id = "selinux-remnant" +sources = ["journald"] +match_text = "type=AVC" +severity = "info" +title = "SELinux audit entry (ignored on Arch)" +body = "Arch doesn't ship SELinux by default — if you see this, you may have carried over a journal from a Fedora partition, or installed selinux-utils manually. No action needed unless you intentionally set up SELinux on Arch." + +# ── Kernel / DKMS ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "dkms-build-fail" +sources = ["journald"] +match_text = "Error! Build of" +severity = "warn" +title = "DKMS module failed to build" +body = "A kernel module didn't compile after a kernel update. More frequent on Arch's rolling kernel than on Fedora's slower cadence. Check: dkms status — reinstall the failing module package." + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo pacman -S linux-firmware — covers most hardware. Some chips need AUR packages (similar to RPM Fusion nonfree on Fedora)." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "locale-not-set" +sources = ["journald"] +match_text = "Cannot set LC_ALL to default locale" +severity = "info" +title = "Locale not generated" +body = "Unlike Fedora where locale is configured in the installer, Arch requires manual setup. Edit /etc/locale.gen, uncomment your locale, run: sudo locale-gen — then set LANG in /etc/locale.conf." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. Fedora enables zswap by default; Arch doesn't. Add zram: sudo pacman -S zram-generator" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install smartmontools: sudo pacman -S smartmontools" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Both Fedora and Arch ship PipeWire by default. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — check: rfkill list to distinguish hard vs soft block." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. On Arch, AMD uses mesa (pacman -S mesa); NVIDIA uses nvidia-dkms. Unlike Fedora where RPM Fusion handles NVIDIA, on Arch install from the official repos." + +[[patterns]] +id = "xwayland-crash" +sources = ["journald"] +match_text = "XWayland server terminated unexpectedly" +severity = "warn" +title = "XWayland crashed" +body = "X11 apps dead until session restart. Fedora GNOME also defaults to Wayland; the behavior is the same." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — same NetworkManager as Fedora. If a wifi adapter is missing, check dmesg for firmware errors." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity." diff --git a/src-tauri/patterns/fedora-to-debian.toml b/src-tauri/patterns/fedora-to-debian.toml new file mode 100644 index 0000000..d4388d3 --- /dev/null +++ b/src-tauri/patterns/fedora-to-debian.toml @@ -0,0 +1,138 @@ +[meta] +source_os = "linux" +target_distro_family = "debian" + +# Fedora/RHEL user moving to Debian/Ubuntu/Mint. +# Body text assumes DNF, SELinux, and systemd familiarity. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── apt / dpkg ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apt-lock" +sources = ["journald"] +match_text = "Could not get lock /var/lib/dpkg/lock" +severity = "warn" +title = "Package manager is locked" +body = "Another apt process is running — often unattended-upgrades in the background. Wait a minute. If stuck: sudo rm /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock — then: sudo dpkg --configure -a" + +[[patterns]] +id = "dpkg-interrupted" +sources = ["journald"] +match_text = "dpkg was interrupted" +severity = "warn" +title = "Package install was interrupted" +body = "A previous install didn't finish cleanly. Fix: sudo dpkg --configure -a — like an interrupted dnf transaction, but requires manual recovery." + +[[patterns]] +id = "apt-unmet-dependency" +sources = ["journald"] +match_text = "Unmet dependencies" +severity = "warn" +title = "Package dependency conflict" +body = "apt can't resolve a dependency. Try: sudo apt --fix-broken install — this is more automatic than dnf's conflict resolution." + +# ── AppArmor (replaces SELinux) ─────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "AppArmor access denied" +body = "Debian/Ubuntu ships AppArmor instead of SELinux. The concepts are similar but the tooling differs. Check: sudo aa-status — for audit logs: sudo aa-logprof — profiles are in /etc/apparmor.d/" + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo apt install firmware-linux firmware-linux-nonfree — unlike Fedora where firmware comes via linux-firmware, Debian splits it into free/nonfree packages. Enable non-free in /etc/apt/sources.list first." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. Ubuntu enables zswap by default; Debian doesn't always. Add a swapfile or enable zswap via /sys/module/zswap/parameters/enabled" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install: sudo apt install smartmontools" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Ubuntu 22.04+ and Debian 12+ ship PipeWire. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "pulseaudio-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to pulseaudio" +severity = "warn" +title = "PulseAudio not responding" +body = "Older Debian/Ubuntu systems use PulseAudio instead of PipeWire. Restart: pulseaudio --kill && pulseaudio --start" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — same as Fedora." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. For NVIDIA on Debian/Ubuntu: sudo apt install nvidia-driver — or use ubuntu-drivers autoinstall on Ubuntu. Similar to Fedora's RPM Fusion approach." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — Debian may use ifupdown instead of NetworkManager on minimal installs. Check: systemctl status NetworkManager" + +# ── Media ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "missing-codec" +sources = ["journald"] +match_text = "GStreamer: Failed to find plugin" +severity = "info" +title = "Missing media codec" +body = "On Ubuntu/Mint: sudo apt install ubuntu-restricted-extras — on Debian: enable non-free and install libavcodec-extra. Fedora's RPM Fusion serves the same purpose." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity." diff --git a/src-tauri/patterns/fedora-to-opensuse.toml b/src-tauri/patterns/fedora-to-opensuse.toml new file mode 100644 index 0000000..0432aab --- /dev/null +++ b/src-tauri/patterns/fedora-to-opensuse.toml @@ -0,0 +1,130 @@ +[meta] +source_os = "linux" +target_distro_family = "opensuse" + +# Fedora/RHEL user moving to openSUSE Tumbleweed or Leap. +# Body text assumes DNF and RPM familiarity; both use RPM so tooling overlaps. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── zypper / RPM ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "zypper-lock" +sources = ["journald"] +match_text = "System management is locked" +severity = "warn" +title = "zypper package manager is locked" +body = "Another zypper or PackageKit process is running — same situation as dnf being held by dnf-automatic. Wait it out or check: sudo ps aux | grep zypper" + +[[patterns]] +id = "zypper-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Package dependency conflict" +body = "zypper presents conflicts interactively. Both Fedora's dnf and zypper use RPM, but zypper's solver can be more conservative. Try: sudo zypper dup (distribution upgrade) for more aggressive resolution." + +[[patterns]] +id = "zypper-gpg-key" +sources = ["journald"] +match_text = "does not verify" +severity = "warn" +title = "Repository signature not trusted" +body = "Auto-import: sudo zypper --gpg-auto-import-keys ref — similar to dnf's GPG key prompts but the accept syntax differs." + +# ── AppArmor (replaces SELinux) ─────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "AppArmor access denied" +body = "openSUSE ships AppArmor, not SELinux like Fedora. Similar purpose but different tooling. Check: sudo aa-status — audit: sudo aa-logprof — you'll need to rebuild your mental model from SELinux policy types to AppArmor profiles." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo zypper install kernel-firmware — openSUSE uses a single kernel-firmware package similar to Fedora's linux-firmware." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. openSUSE prompts for swap setup during install. If skipped: sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 && sudo mkswap /swapfile && sudo swapon /swapfile" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install: sudo zypper install smartmontools" + +# ── YaST (openSUSE-specific) ────────────────────────────────────────────────── + +[[patterns]] +id = "yast-backend-fail" +sources = ["journald"] +match_text = "YaST got signal" +severity = "warn" +title = "YaST configuration tool crashed" +body = "YaST is openSUSE's graphical admin tool (no Fedora equivalent). If it crashed mid-operation, check what it was doing: sudo yast2 -- the text mode version often recovers where the GUI fails." + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Tumbleweed ships PipeWire like Fedora. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — same as Fedora." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. For NVIDIA on openSUSE: use the NVIDIA OBS repo or packages.opensuse.org — similar to RPM Fusion on Fedora." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — openSUSE uses NetworkManager or Wicked depending on the install profile. Check which is active: systemctl status NetworkManager wicked" + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity. For Steam on openSUSE: sudo zypper install steam (from the games repo on OBS)." diff --git a/src-tauri/patterns/ipad-to-arch.toml b/src-tauri/patterns/ipad-to-arch.toml new file mode 100644 index 0000000..e8d9eb3 --- /dev/null +++ b/src-tauri/patterns/ipad-to-arch.toml @@ -0,0 +1,120 @@ +[meta] +source_os = "ipad" +target_distro_family = "arch" + +# iPad/iPhone user on their first Arch/CachyOS install. +# More sandboxed mental model than Android — no file manager, no sideloading concept, +# everything lived inside apps. Arch is a steep starting point; body text is encouraging +# but honest about the learning curve. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── Package management ──────────────────────────────────────────────────────── + +[[patterns]] +id = "pacman-db-lock" +sources = ["journald", "applog:pacman"] +match_text = "could not lock database: File exists" +severity = "warn" +title = "App installer is busy" +body = "The package manager (pacman — Linux's version of the App Store, but text-based) got interrupted and left a lock file behind. Think of it like an App Store update that got cut off. If nothing is currently installing, remove the lock: open a terminal (called 'Konsole' or 'Alacritty' on your system) and type: sudo rm /var/lib/pacman/db.lck — then press Enter. 'sudo' means run as administrator; your password won't show as you type." + +[[patterns]] +id = "partial-upgrade-warning" +sources = ["applog:pacman"] +match_text = "warning: database file for" +severity = "info" +title = "App list out of date — update everything together" +body = "On iPad, updates happen automatically and silently. On Arch Linux, you run them manually. Important rule: always update everything at once. In a terminal, type: sudo pacman -Syu — press Enter, enter your password. This refreshes the app list AND updates all installed software." + +[[patterns]] +id = "aur-build-failure" +sources = ["journald", "applog:pacman"] +match_text = "error: failed to build" +severity = "warn" +title = "App build failed')" +body = "The AUR (Arch User Repository) is software that gets compiled on your machine from source code — there's no real iOS equivalent since Apple controls all distribution. A build failed. Look at the error text above this notification for the specific cause. The AUR package's comment page on aur.archlinux.org often has workarounds." + +# ── Files and paths ─────────────────────────────────────────────────────────── + +[[patterns]] +id = "permission-denied" +sources = ["journald"] +match_text = "Permission denied" +severity = "info" +title = "Permission denied" +body = "On iPad, every app lives in its own private sandbox — you never think about file permissions. On Linux, files are shared between users and programs, and access is controlled by permissions. If you need admin rights for a command, add 'sudo' before it: sudo — and enter your password." + +[[patterns]] +id = "no-such-file" +sources = ["journald"] +match_text = "No such file or directory" +severity = "info" +title = "File or folder not found" +body = "On iPad, files lived inside apps and you never typed paths. On Linux, files have locations like /home/username/Documents. Check that the path you typed is correct — Linux paths are case-sensitive ('Documents' and 'documents' are different). Use 'ls' to list files in the current folder." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Hardware driver file missing" +body = "On iPad, Apple controls all hardware and drivers — you never see this. On Linux, some hardware components need a driver file installed separately. Install the main driver package: sudo pacman -S linux-firmware — then restart your computer." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory — closed an app" +body = "Linux had to close a program to free up RAM — similar to iPadOS refreshing apps in the background when RAM runs low. If this keeps happening, consider closing unused programs or adding 'zram' (uses storage as extra RAM): sudo pacman -S zram-generator" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Storage error" +body = "Something went wrong with the drive. Install a check tool: sudo pacman -S smartmontools — then run: sudo smartctl -a /dev/sda" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Sound system not responding" +body = "PipeWire manages audio on this system — like the iOS audio system, but you can restart it. Type in a terminal: systemctl --user restart pipewire pipewire-pulse wireplumber — if sound still doesn't work, log out and log back in." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth turned off by software" +body = "A software setting is blocking Bluetooth — like enabling Airplane Mode. Turn it back on: rfkill unblock bluetooth — in a terminal. If it says 'Hard blocked', there's a physical switch on your computer or a setting in the BIOS." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Wi-Fi connection failed" +body = "Couldn't connect to the network. Check status: nmcli device status — in a terminal. If the Wi-Fi adapter doesn't appear in the list, the driver may not be loaded." + +# ── GPU ─────────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "Graphics card stopped responding" +body = "The graphics system crashed and recovered — similar to an app freezing on iPad, but at a lower level. If this keeps happening during games or video, update your graphics drivers: sudo pacman -Syu" diff --git a/src-tauri/patterns/ipad-to-debian.toml b/src-tauri/patterns/ipad-to-debian.toml new file mode 100644 index 0000000..4f0cdb0 --- /dev/null +++ b/src-tauri/patterns/ipad-to-debian.toml @@ -0,0 +1,137 @@ +[meta] +source_os = "ipad" +target_distro_family = "debian" + +# iPad/iPhone user on their first Debian/Ubuntu/Mint install. +# Ubuntu/Mint are the most recommended starting points for iPad migrants — +# automatic updates, GUI software center, familiar GNOME/Cinnamon interface. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── Package management ──────────────────────────────────────────────────────── + +[[patterns]] +id = "apt-lock" +sources = ["journald"] +match_text = "Could not get lock /var/lib/dpkg/lock" +severity = "warn" +title = "Software installer is busy" +body = "Ubuntu's software installer is already running in the background — probably doing automatic updates, similar to how iOS updates apps silently. Wait a minute and try again. You can also open 'Software Updater' from the app menu to see what's happening. If it's been stuck for a long time: open the Terminal app and type: sudo rm /var/lib/dpkg/lock-frontend && sudo dpkg --configure -a" + +[[patterns]] +id = "dpkg-interrupted" +sources = ["journald"] +match_text = "dpkg was interrupted" +severity = "warn" +title = "App install was cut short" +body = "A previous software install didn't finish. Fix it: open Terminal and type: sudo dpkg --configure -a — then press Enter." + +[[patterns]] +id = "apt-unmet-dependency" +sources = ["journald"] +match_text = "Unmet dependencies" +severity = "warn" +title = "App needs another app first" +body = "The software you're installing needs something else first. Let Ubuntu fix it: sudo apt --fix-broken install" + +# ── AppArmor ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "App blocked by security policy" +body = "Ubuntu includes AppArmor — a security layer that restricts what each program can do, similar to how iOS tightly sandboxes every app. Something was blocked. This is usually routine security protection, not a problem." + +# ── Files and paths ─────────────────────────────────────────────────────────── + +[[patterns]] +id = "permission-denied" +sources = ["journald"] +match_text = "Permission denied" +severity = "info" +title = "Permission denied" +body = "On iPad, files are hidden inside apps and permissions are invisible. On Linux, files are shared and controlled. If a command fails with this, add 'sudo' before it to run as admin: sudo — your password won't show as you type, that's normal." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Hardware driver file missing" +body = "Some hardware needs a driver file installed separately — unlike iPad where Apple controls everything. Ubuntu usually handles this, but if something isn't working: sudo apt install firmware-linux linux-firmware — then restart." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory" +body = "Linux closed a program to free up RAM — similar to iPadOS refreshing apps in the background. Try closing some programs you're not using." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Storage error" +body = "A hardware-level storage error. Install: sudo apt install smartmontools — then check: sudo smartctl -a /dev/sda" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Sound system not responding" +body = "Restart audio: systemctl --user restart pipewire pipewire-pulse wireplumber — or log out and back in." + +[[patterns]] +id = "pulseaudio-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to pulseaudio" +severity = "warn" +title = "Sound system not responding" +body = "Restart audio: pulseaudio --kill && pulseaudio --start — or log out and back in." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth turned off by software" +body = "Run: rfkill unblock bluetooth — in a terminal." + +[[patterns]] +id = "cups-server-error" +sources = ["journald"] +match_text = "Unable to connect to CUPS server" +severity = "info" +title = "Printer service not running" +body = "The printing service needs to be started: sudo systemctl start cups && sudo systemctl enable cups — then try printing again from your app." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Wi-Fi connection failed" +body = "Check the network status icon in the top bar — or open Terminal and type: nmcli device status" + +# ── Media ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "missing-codec" +sources = ["journald"] +match_text = "GStreamer: Failed to find plugin" +severity = "info" +title = "Video or audio format not supported" +body = "Linux needs extra packages to play some media formats. On Ubuntu/Mint: sudo apt install ubuntu-restricted-extras — this adds support for MP3, MP4, and other common formats." diff --git a/src-tauri/patterns/ipad-to-fedora.toml b/src-tauri/patterns/ipad-to-fedora.toml new file mode 100644 index 0000000..fe77b98 --- /dev/null +++ b/src-tauri/patterns/ipad-to-fedora.toml @@ -0,0 +1,102 @@ +[meta] +source_os = "ipad" +target_distro_family = "fedora" + +# iPad/iPhone user on their first Fedora install. +# Assumes NO terminal experience. Fedora GNOME is visually close to iPadOS. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── Package management ──────────────────────────────────────────────────────── + +[[patterns]] +id = "dnf-lock" +sources = ["journald"] +match_text = "Another app is currently holding the dnf lock" +severity = "warn" +title = "Software installer is busy" +body = "Fedora is doing automatic updates in the background — like iOS updating apps silently. Wait a minute and try again. You can see what's happening in GNOME Software (the App Store equivalent)." + +[[patterns]] +id = "dnf-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Two apps conflict with each other" +body = "Two packages need something that can't coexist. Run: sudo dnf distro-sync — in a terminal to bring everything back into sync." + +# ── SELinux ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "selinux-denial" +sources = ["journald"] +match_text = "type=AVC" +severity = "info" +title = "Security system blocked an action" +body = "Fedora uses SELinux — a detailed security system that controls what each program can access. Think of it as a much stricter version of iOS app permissions. This log entry is usually routine. If an app keeps failing, GNOME's 'Setroubleshoot' tool will pop up with an explanation and fix." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Hardware driver file missing" +body = "Some hardware needs a driver installed separately. Fedora usually handles this automatically, but if a device isn't working: sudo dnf install linux-firmware — restart after." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory" +body = "Linux closed a program to free RAM — like iPadOS refreshing background apps. Close unused programs." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Storage error" +body = "Install: sudo dnf install smartmontools — then check: sudo smartctl -a /dev/sda" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Sound system not responding" +body = "Restart audio: systemctl --user restart pipewire pipewire-pulse wireplumber — or log out and back in." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth turned off by software" +body = "Run: rfkill unblock bluetooth — in a terminal." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Wi-Fi connection failed" +body = "Check the network icon in the top bar, or: nmcli device status — in a terminal." + +# ── Media ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "missing-codec" +sources = ["journald"] +match_text = "GStreamer: Failed to find plugin" +severity = "info" +title = "Video or audio format not supported" +body = "Fedora needs extra packages for some media formats. Enable RPM Fusion: sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm — then: sudo dnf install gstreamer1-plugins-bad-free gstreamer1-plugins-ugly" diff --git a/src-tauri/patterns/ipad-to-opensuse.toml b/src-tauri/patterns/ipad-to-opensuse.toml new file mode 100644 index 0000000..c18f1f2 --- /dev/null +++ b/src-tauri/patterns/ipad-to-opensuse.toml @@ -0,0 +1,111 @@ +[meta] +source_os = "ipad" +target_distro_family = "opensuse" + +# iPad/iPhone user on their first openSUSE install. +# YaST (openSUSE's graphical admin tool) is a good bridge for users +# unfamiliar with terminal-based system administration. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── Package management ──────────────────────────────────────────────────────── + +[[patterns]] +id = "zypper-lock" +sources = ["journald"] +match_text = "System management is locked" +severity = "warn" +title = "Software installer is busy" +body = "openSUSE's software manager is running — like iOS doing background updates. Wait a minute, or open YaST -> Software -> Software Management to see what's happening." + +[[patterns]] +id = "zypper-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Two apps conflict" +body = "Run a full update: sudo zypper dup — this resolves most conflicts." + +# ── AppArmor ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "App blocked by security policy" +body = "openSUSE uses AppArmor for security — similar to how iOS isolates apps. Something was blocked. YaST -> Security -> AppArmor Configuration shows active profiles." + +# ── YaST ────────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "yast-backend-fail" +sources = ["journald"] +match_text = "YaST got signal" +severity = "warn" +title = "Settings tool crashed" +body = "YaST (openSUSE's settings tool) crashed. Try running it from a terminal: sudo yast2 — the text mode is more stable than the graphical version." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Hardware driver file missing" +body = "Install the firmware package: sudo zypper install kernel-firmware — restart after." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory" +body = "Linux closed a program to free RAM. YaST -> System -> Partitioner can add or resize swap space (overflow RAM stored on disk)." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Storage error" +body = "Install: sudo zypper install smartmontools — then: sudo smartctl -a /dev/sda" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Sound system not responding" +body = "Restart audio: systemctl --user restart pipewire pipewire-pulse wireplumber — or log out and back in." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth turned off by software" +body = "Run: rfkill unblock bluetooth — or use YaST -> Network -> Bluetooth." + +[[patterns]] +id = "cups-server-error" +sources = ["journald"] +match_text = "Unable to connect to CUPS server" +severity = "info" +title = "Printer service not running" +body = "Start printing: sudo systemctl start cups && sudo systemctl enable cups — or use YaST -> Hardware -> Printer." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Wi-Fi connection failed" +body = "Check YaST -> Network Settings — or: nmcli device status — in a terminal." diff --git a/src-tauri/patterns/linux-to-arch.toml b/src-tauri/patterns/linux-to-arch.toml new file mode 100644 index 0000000..5551a49 --- /dev/null +++ b/src-tauri/patterns/linux-to-arch.toml @@ -0,0 +1,219 @@ +[meta] +source_os = "linux" +target_distro_family = "arch" + +# Experienced Linux user on first Arch/CachyOS install. +# Body text assumes familiarity with the terminal, systemd, and package management. +# Explanations focus on Arch-specific divergence from Debian/Fedora conventions. + +[log_paths] +pacman = "/var/log/pacman.log" +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" +lutris = "~/.cache/lutris/logs/lutris.log" + +# ── pacman / AUR / Chaotic-AUR ─────────────────────────────────────────────── + +[[patterns]] +id = "pacman-db-lock" +sources = ["journald", "applog:pacman"] +match_text = "could not lock database: File exists" +severity = "warn" +title = "pacman database locked" +body = "Lock file left behind: sudo rm /var/lib/pacman/db.lck — verify nothing is actually running first (fuser /var/lib/pacman/db.lck)." + +[[patterns]] +id = "pacman-dep-conflict" +sources = ["journald", "applog:pacman"] +match_text = "conflicting dependencies" +severity = "warn" +title = "Dependency conflict" +body = "Unlike apt/dnf, pacman won't silently resolve conflicts — you have to decide. Read the conflict message; usually one package replaces another (e.g. pipewire-pulse replaces pulseaudio). Explicitly remove the conflicting package first." + +[[patterns]] +id = "pacman-conflicting-files" +sources = ["journald", "applog:pacman"] +match_text = "error: failed to commit transaction (conflicting files)" +severity = "warn" +title = "Conflicting files on install" +body = "A file owned by another package is in the way. Either the package is already partially installed, or there's a leftover file. Check which package owns it: pacman -Qo /path/to/file — then remove the conflict manually or use --overwrite if you're sure." + +[[patterns]] +id = "aur-build-failure" +sources = ["journald", "applog:pacman"] +match_text = "error: failed to build" +severity = "warn" +title = "AUR package build failed" +body = "makepkg failed. Read the full output — common causes: missing makedepends (check the PKGBUILD), upstream tarball moved (check AUR comments), or a bad patch. paru -Si shows the full dependency list." + +[[patterns]] +id = "aur-pgp-key" +sources = ["journald", "applog:pacman"] +match_text = "unknown public key" +severity = "warn" +title = "PGP key not in keyring" +body = "gpg --recv-keys — or if the AUR package's PKGBUILD specifies validpgpkeys, import exactly those. Don't set SKIP_PGP_CHECK unless you trust the source." + +[[patterns]] +id = "makepkg-missing-deps" +sources = ["journald", "applog:pacman"] +match_text = "Missing dependencies" +severity = "warn" +title = "AUR build dependencies missing" +body = "makepkg needs packages that aren't installed. paru/yay resolve makedepends automatically; if building manually, install them first: sudo pacman -S or paru -S for AUR deps." + +[[patterns]] +id = "partial-upgrade-warning" +sources = ["applog:pacman"] +match_text = "warning: database file for" +severity = "info" +title = "Package database out of sync" +body = "Running pacman -Sy without -u is dangerous on Arch — partial upgrades break things. Always use pacman -Syu. This is the biggest Arch-specific rule coming from Debian or Fedora where partial syncs are fine." + +[[patterns]] +id = "chaotic-aur-sig-fail" +sources = ["journald", "applog:pacman"] +match_text = "signature from" +severity = "warn" +title = "Package signature verification failed" +body = "A package signature isn't trusted. If it's from Chaotic-AUR: sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com && sudo pacman-key --lsign-key 3056513887B78AEB — then retry." + +# ── Kernel / DKMS (rolling release gotcha) ─────────────────────────────────── + +[[patterns]] +id = "dkms-build-fail" +sources = ["journald"] +match_text = "Error! Build of" +severity = "warn" +title = "DKMS module failed to build" +body = "A kernel module didn't compile after a kernel update. More common on CachyOS than on stable distros because the kernel ships with custom patches. Check: dkms status — then reinstall the relevant dkms package or wait for an AUR update." + +[[patterns]] +id = "cachyos-kernel-module-fail" +sources = ["kmsg"] +match_text = "module verification failed" +severity = "warn" +title = "Kernel module signature mismatch" +body = "A module doesn't match the running kernel's signing key. On CachyOS this can happen with third-party modules after a cachyos-kernel update. Reinstall the dkms module package or check if a -cachyos suffixed build exists in the AUR." + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo pacman -S linux-firmware — if it's a specific device (e.g. Realtek wifi), check linux-firmware-qlogic or a dedicated AUR package." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "locale-not-set" +sources = ["journald"] +match_text = "Cannot set LC_ALL to default locale" +severity = "info" +title = "Locale not generated" +body = "Unlike Debian/Ubuntu, Arch doesn't generate locales automatically. Edit /etc/locale.gen (uncomment your locale), then run: sudo locale-gen — and set LANG in /etc/locale.conf." + +[[patterns]] +id = "systemd-resolved-fail" +sources = ["journald"] +match_text = "Failed to set DNS configuration" +severity = "info" +title = "DNS configuration failed" +body = "systemd-resolved had trouble applying DNS settings. Check: resolvectl status — on Arch, /etc/resolv.conf should be a symlink to /run/systemd/resolve/stub-resolv.conf. If it's a plain file it may conflict." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. CachyOS ships uksmd (userspace KSM) to help with this — check it's running: systemctl status uksmd. Also consider zram: sudo pacman -S zram-generator." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Storage error on a block device. Check SMART: sudo smartctl -a /dev/sdX — or for NVMe: sudo nvme smart-log /dev/nvme0." + +# ── Audio / Bluetooth ───────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "systemctl --user restart pipewire pipewire-pulse wireplumber — if it keeps failing, check: systemctl --user status pipewire" + +[[patterns]] +id = "wireplumber-fail" +sources = ["journald"] +match_text = "Failed to activate" +severity = "warn" +title = "WirePlumber activation error" +body = "systemctl --user restart wireplumber — if audio devices keep disappearing after suspend/resume, this is a known CachyOS/PipeWire interaction; check AUR for wireplumber-git." + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — if hard-blocked, check BIOS or a physical switch." + +[[patterns]] +id = "bluetooth-profile-unavailable" +sources = ["journald"] +match_text = "br-connection-profile-unavailable" +severity = "info" +title = "Bluetooth audio profile missing" +body = "Check pipewire-bluetooth is installed: pacman -Q pipewire-bluetooth — and that wireplumber is running. Some headsets need libspa-bluetooth." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding; driver recovered. On CachyOS with AMD: check if mesa-git (from Chaotic-AUR) is newer than the stable mesa and matches your kernel. On NVIDIA: check nvidia-dkms version vs kernel version." + +[[patterns]] +id = "xwayland-crash" +sources = ["journald"] +match_text = "XWayland server terminated unexpectedly" +severity = "warn" +title = "XWayland crashed" +body = "X11 apps will be dead until you restart your session. If this is reproducible with a specific app, try WAYLAND_DISPLAY= to force it onto XWayland explicitly, or check for a Wayland-native version." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Verify game files via Steam, or check that the Steam runtime is intact: ~/.steam/root/ubuntu12_32/" + +[[patterns]] +id = "lutris-wine-fail" +sources = ["applog:lutris"] +match_text = "Wine is not installed" +severity = "warn" +title = "Lutris: Wine not found" +body = "Lutris needs a Wine runner. In Lutris: Preferences -> Runners -> Wine -> Install — or install wine from the AUR: paru -S wine-staging" + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — if a wifi adapter is missing, check dmesg for firmware errors. CachyOS ships most firmware in linux-firmware but some chips (Realtek 8852) need AUR packages." diff --git a/src-tauri/patterns/macos-to-arch.toml b/src-tauri/patterns/macos-to-arch.toml new file mode 100644 index 0000000..c40802f --- /dev/null +++ b/src-tauri/patterns/macos-to-arch.toml @@ -0,0 +1,177 @@ +[meta] +source_os = "macos" +target_distro_family = "arch" + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" +retroarch = "~/.config/retroarch/retroarch.log" +lutris = "~/.cache/lutris/logs/lutris.log" + +# ── AUR / package management ──────────────────────────────────────────────── + +[[patterns]] +id = "aur-build-failure" +sources = ["journald"] +match_text = "error: failed to build" +severity = "warn" +title = "AUR package build failed" +body = "A package failed to compile from source. This usually means a missing dependency or a broken AUR package. Check the output for the specific error, or look up the package comments on aur.archlinux.org." + +[[patterns]] +id = "aur-pgp-key" +sources = ["journald"] +match_text = "unknown public key" +severity = "warn" +title = "Missing PGP key for AUR package" +body = "The package signature can't be verified. The key ID will be in the error — run: gpg --recv-keys " + +[[patterns]] +id = "pacman-db-lock" +sources = ["journald"] +match_text = "could not lock database: File exists" +severity = "warn" +title = "Pacman database is locked" +body = "Another pacman process left a lock file behind. If nothing is running: sudo rm /var/lib/pacman/db.lck — then retry your command." + +[[patterns]] +id = "pacman-dep-conflict" +sources = ["journald"] +match_text = "conflicting dependencies" +severity = "warn" +title = "Package dependency conflict" +body = "Two packages need incompatible versions of something. On Arch this sometimes happens with AUR packages. Read the conflict message carefully — one of the packages usually has to be replaced or manually removed first." + +[[patterns]] +id = "dkms-build-fail" +sources = ["journald"] +match_text = "Error! Build of" +severity = "warn" +title = "Kernel module failed to build" +body = "A DKMS kernel module didn't compile after a kernel update. This can break hardware that needs out-of-tree drivers (e.g. some wifi cards, VirtualBox, NVIDIA). Check: dkms status — then reinstall the failing module package." + +# ── Audio ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Audio server not responding" +body = "An app can't reach PipeWire (the audio server). Try: systemctl --user restart pipewire pipewire-pulse — if that doesn't help, log out and back in." + +[[patterns]] +id = "wireplumber-fail" +sources = ["journald"] +match_text = "Failed to activate" +severity = "warn" +title = "Audio session manager error" +body = "WirePlumber (the audio session manager) had a problem activating a device. Try: systemctl --user restart wireplumber — if audio devices keep disappearing, check that your user is in the 'audio' group: groups $USER" + +# ── Bluetooth ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth is blocked by rfkill" +body = "The system's radio kill switch is blocking Bluetooth. Run: rfkill list — if Bluetooth shows 'Hard blocked: no, Soft blocked: yes', run: rfkill unblock bluetooth" + +[[patterns]] +id = "bluetooth-profile-unavailable" +sources = ["journald"] +match_text = "br-connection-profile-unavailable" +severity = "info" +title = "Bluetooth profile not available" +body = "A Bluetooth device connected but a required profile isn't available. This often means missing codecs. Try: sudo pacman -S pulseaudio-bluetooth (if using PulseAudio) or check that pipewire-bluetooth is installed." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang detected" +body = "The graphics card stopped responding. Linux recovered, but this can cause game crashes and display glitches. Common causes: overheating, or a driver bug with the current kernel. Check GPU temperature and consider updating mesa or your GPU driver package." + +[[patterns]] +id = "xwayland-crash" +sources = ["journald"] +match_text = "XWayland server terminated unexpectedly" +severity = "warn" +title = "XWayland crashed" +body = "The compatibility layer for older X11 apps crashed. Apps using X11 (not Wayland-native) will stop working until you restart your session. If this keeps happening, try running the affected app with WAYLAND_DISPLAY= cleared to force X11 mode." + +# ── Hardware / kernel ───────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Missing firmware for hardware" +body = "Your system is missing a firmware file for a hardware component. On Arch: sudo pacman -S linux-firmware — then reboot." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory" +body = "Linux had to kill a process because RAM was exhausted. On macOS, the system compresses memory instead. On Linux you can add swap space as a safety net: consider a swapfile if your machine has limited RAM." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk read/write error" +body = "A storage device had an I/O error. This can mean a failing drive, a bad cable, or a filesystem problem. Check the device with: sudo smartctl -a /dev/sdX — replace sdX with the device from the error." + +# ── Network ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Network connection failed to activate" +body = "NetworkManager couldn't connect to a network. Common causes: wrong wifi password, a driver issue, or the network requiring a login page. Check: nmcli device status" + +# ── Media ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "missing-codec" +sources = ["journald"] +match_text = "GStreamer: Failed to find plugin" +severity = "info" +title = "Missing media codec" +body = "A media codec isn't installed. On Arch: sudo pacman -S gst-plugins-good gst-plugins-bad gst-libav" + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Steam Proton couldn't find a required file. Try: right-click the game -> Properties -> Local Files -> Verify game files." + +[[patterns]] +id = "steam-disk-write" +sources = ["applog:steam"] +match_text = "ERROR: failed to write" +severity = "warn" +title = "Steam disk write error" +body = "Steam can't write to its library folder. Check ownership: ls -la ~/.local/share/Steam" + +[[patterns]] +id = "retroarch-shader-fail" +sources = ["applog:retroarch"] +match_text = "Failed to compile shader" +severity = "info" +title = "RetroArch shader failed to compile" +body = "A graphical shader couldn't load. Try switching preset in Settings -> Video -> Shaders." diff --git a/src-tauri/patterns/opensuse-to-arch.toml b/src-tauri/patterns/opensuse-to-arch.toml new file mode 100644 index 0000000..0c2d834 --- /dev/null +++ b/src-tauri/patterns/opensuse-to-arch.toml @@ -0,0 +1,172 @@ +[meta] +source_os = "linux" +target_distro_family = "arch" + +# openSUSE Tumbleweed/Leap user moving to Arch. +# Body text assumes zypper, YaST, and AppArmor familiarity. + +[log_paths] +pacman = "/var/log/pacman.log" +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" +lutris = "~/.cache/lutris/logs/lutris.log" + +# ── pacman / AUR ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "pacman-db-lock" +sources = ["journald", "applog:pacman"] +match_text = "could not lock database: File exists" +severity = "warn" +title = "pacman database locked" +body = "Lock file left from a crashed pacman run — like zypper's /var/run/zypp.pid getting orphaned. Remove if nothing is running: sudo rm /var/lib/pacman/db.lck" + +[[patterns]] +id = "partial-upgrade-warning" +sources = ["applog:pacman"] +match_text = "warning: database file for" +severity = "info" +title = "Package database out of sync" +body = "On Arch, syncing without upgrading is dangerous — unlike openSUSE where zypper ref is safe to run alone. Always: pacman -Syu — never pacman -Sy without the u." + +[[patterns]] +id = "pacman-dep-conflict" +sources = ["journald", "applog:pacman"] +match_text = "conflicting dependencies" +severity = "warn" +title = "Dependency conflict" +body = "Unlike zypper which resolves conflicts interactively, pacman puts the choice directly on you. Read the conflict — usually one package replaces another. Remove the conflicting package first." + +[[patterns]] +id = "aur-build-failure" +sources = ["journald", "applog:pacman"] +match_text = "error: failed to build" +severity = "warn" +title = "AUR package build failed" +body = "The AUR has no binary packages — makepkg compiles from source every time. There's no OBS equivalent here. Check the build log and the AUR comments page for the package." + +[[patterns]] +id = "aur-pgp-key" +sources = ["journald", "applog:pacman"] +match_text = "unknown public key" +severity = "warn" +title = "PGP key not in keyring" +body = "Import the key: gpg --recv-keys — different from zypper's --gpg-auto-import-keys; this is GnuPG's personal keyring used by makepkg." + +[[patterns]] +id = "chaotic-aur-sig-fail" +sources = ["journald", "applog:pacman"] +match_text = "signature from" +severity = "warn" +title = "Package signature verification failed" +body = "Chaotic-AUR key not trusted. Import: sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com && sudo pacman-key --lsign-key 3056513887B78AEB" + +# ── AppArmor → none ─────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-remnant" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "AppArmor log entry (no AppArmor on Arch by default)" +body = "Arch doesn't ship AppArmor by default. If you see this, you may have installed apparmor from the AUR manually. Run: sudo systemctl disable apparmor if you don't need it." + +# ── Kernel / DKMS ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "dkms-build-fail" +sources = ["journald"] +match_text = "Error! Build of" +severity = "warn" +title = "DKMS module failed to build" +body = "A kernel module didn't compile. Arch's rolling kernel updates more frequently than Tumbleweed's. Check: dkms status — reinstall the failing dkms package." + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo pacman -S linux-firmware — equivalent to openSUSE's kernel-firmware." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "locale-not-set" +sources = ["journald"] +match_text = "Cannot set LC_ALL to default locale" +severity = "info" +title = "Locale not generated" +body = "Unlike YaST which configured this for you, Arch requires manual locale setup. Edit /etc/locale.gen, uncomment your locale, run: sudo locale-gen — set LANG in /etc/locale.conf." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "Arch doesn't set up swap by default like openSUSE's installer does. Add zram: sudo pacman -S zram-generator — or add a swapfile." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install: sudo pacman -S smartmontools" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Both openSUSE and Arch ship PipeWire. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth" + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. On Arch: AMD uses mesa (official repos), NVIDIA uses nvidia or nvidia-dkms. No OBS equivalent — everything is in pacman or the AUR." + +[[patterns]] +id = "xwayland-crash" +sources = ["journald"] +match_text = "XWayland server terminated unexpectedly" +severity = "warn" +title = "XWayland crashed" +body = "X11 apps dead until session restart. Same behavior as on openSUSE Wayland sessions." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — Arch uses NetworkManager (not Wicked). If a wifi adapter is missing, check dmesg for firmware errors." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity." diff --git a/src-tauri/patterns/opensuse-to-debian.toml b/src-tauri/patterns/opensuse-to-debian.toml new file mode 100644 index 0000000..2061cd4 --- /dev/null +++ b/src-tauri/patterns/opensuse-to-debian.toml @@ -0,0 +1,138 @@ +[meta] +source_os = "linux" +target_distro_family = "debian" + +# openSUSE Tumbleweed/Leap user moving to Debian/Ubuntu/Mint. +# Body text assumes zypper, YaST, and AppArmor familiarity. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── apt / dpkg ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apt-lock" +sources = ["journald"] +match_text = "Could not get lock /var/lib/dpkg/lock" +severity = "warn" +title = "Package manager is locked" +body = "Another apt process is running — often unattended-upgrades (no zypper equivalent, but similar to PackageKit background updates). Wait a minute. If stuck: sudo rm /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock && sudo dpkg --configure -a" + +[[patterns]] +id = "dpkg-interrupted" +sources = ["journald"] +match_text = "dpkg was interrupted" +severity = "warn" +title = "Package install was interrupted" +body = "Like a zypper transaction that got killed, but dpkg needs manual recovery. Fix: sudo dpkg --configure -a" + +[[patterns]] +id = "apt-unmet-dependency" +sources = ["journald"] +match_text = "Unmet dependencies" +severity = "warn" +title = "Package dependency conflict" +body = "apt auto-resolves most conflicts — less interactive than zypper's conflict wizard. Let it try: sudo apt --fix-broken install" + +# ── AppArmor ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "apparmor-denial" +sources = ["journald"] +match_text = "apparmor=\"DENIED\"" +severity = "info" +title = "AppArmor access denied" +body = "Both openSUSE and Debian/Ubuntu use AppArmor — the tooling is the same. Check: sudo aa-status — audit: sudo aa-logprof — profiles: /etc/apparmor.d/" + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "On Debian: sudo apt install firmware-linux firmware-linux-nonfree (enable non-free sources first). On Ubuntu: sudo apt install linux-firmware. Debian splits firmware by license unlike openSUSE's single kernel-firmware package." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. openSUSE's installer sets up swap; Debian minimal may not. Add a swapfile: sudo fallocate -l 4G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install: sudo apt install smartmontools" + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Both Tumbleweed and Ubuntu 22.04+/Debian 12+ ship PipeWire. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "pulseaudio-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to pulseaudio" +severity = "warn" +title = "PulseAudio not responding" +body = "Older Debian systems still use PulseAudio. Restart: pulseaudio --kill && pulseaudio --start" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — same as openSUSE." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. For NVIDIA on Ubuntu: ubuntu-drivers autoinstall — on Debian: apt install nvidia-driver (requires non-free). Unlike openSUSE's OBS NVIDIA repo, Ubuntu keeps drivers in the main archive." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — Debian minimal may use ifupdown instead of NetworkManager. Install if missing: sudo apt install network-manager" + +# ── Printing ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "cups-server-error" +sources = ["journald"] +match_text = "Unable to connect to CUPS server" +severity = "info" +title = "Printer service not running" +body = "sudo systemctl start cups && sudo systemctl enable cups — YaST auto-configured printing on openSUSE; Debian leaves CUPS disabled until you enable it." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity." diff --git a/src-tauri/patterns/opensuse-to-fedora.toml b/src-tauri/patterns/opensuse-to-fedora.toml new file mode 100644 index 0000000..bc1520d --- /dev/null +++ b/src-tauri/patterns/opensuse-to-fedora.toml @@ -0,0 +1,146 @@ +[meta] +source_os = "linux" +target_distro_family = "fedora" + +# openSUSE Tumbleweed/Leap user moving to Fedora. +# Body text assumes zypper, YaST, and AppArmor familiarity; both use RPM. + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" + +# ── DNF / RPM ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "dnf-lock" +sources = ["journald"] +match_text = "Another app is currently holding the dnf lock" +severity = "warn" +title = "DNF package manager is locked" +body = "dnf-automatic (Fedora's background updater) is probably running — similar to PackageKit on openSUSE. Wait it out or check: sudo ps aux | grep dnf" + +[[patterns]] +id = "dnf-dep-conflict" +sources = ["journald"] +match_text = "conflicts with" +severity = "warn" +title = "Package dependency conflict" +body = "Both use RPM but their solvers differ. DNF auto-resolves more aggressively than zypper. If dnf can't fix it: sudo dnf distro-sync — the equivalent of zypper dup." + +[[patterns]] +id = "dnf-gpg-key" +sources = ["journald"] +match_text = "GPG key retrieval failed" +severity = "warn" +title = "Repository GPG key missing" +body = "Import: sudo rpm --import /path/to/key.gpg — same rpm command as openSUSE. RPM Fusion keys are imported automatically when you enable the repo." + +# ── SELinux (replaces AppArmor) ─────────────────────────────────────────────── + +[[patterns]] +id = "selinux-denial" +sources = ["journald"] +match_text = "type=AVC" +severity = "info" +title = "SELinux access denied" +body = "Fedora uses SELinux instead of openSUSE's AppArmor. Both are MAC systems but with different models — SELinux uses type enforcement, AppArmor uses path-based profiles. Check: ausearch -m AVC -ts recent — get a fix: sealert -a /var/log/audit/audit.log" + +[[patterns]] +id = "selinux-context-wrong" +sources = ["journald"] +match_text = "restorecon" +severity = "info" +title = "SELinux file context mismatch" +body = "Files copied from openSUSE or an external drive may have wrong SELinux labels. Fix: sudo restorecon -Rv /path/to/file — equivalent to aa-relabel in AppArmor terms." + +# ── System ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Firmware file missing" +body = "sudo dnf install linux-firmware — same scope as openSUSE's kernel-firmware. Some chips need RPM Fusion nonfree: sudo dnf install rpmfusion-nonfree-release-$(rpm -E %fedora)" + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "OOM killer fired" +body = "A process was killed for RAM. Fedora enables zswap by default on modern releases. For zram: sudo dnf install zram-generator — similar setup to openSUSE." + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk I/O error" +body = "Check SMART: sudo smartctl -a /dev/sdX — install: sudo dnf install smartmontools" + +# ── YaST → no YaST ─────────────────────────────────────────────────────────── + +[[patterns]] +id = "yast-not-found" +sources = ["journald"] +match_text = "yast: command not found" +severity = "info" +title = "YaST not available on Fedora" +body = "Fedora has no YaST equivalent — use GNOME Settings for display/network/user config, and dnf/rpm for package management. Most things YaST handled are done via systemctl, nmcli, or the GNOME control center." + +# ── Audio ───────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "PipeWire not responding" +body = "Both Tumbleweed and Fedora ship PipeWire. Restart: systemctl --user restart pipewire pipewire-pulse wireplumber" + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth rfkill blocked" +body = "rfkill unblock bluetooth — same as openSUSE." + +# ── GPU / display ───────────────────────────────────────────────────────────── + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang" +body = "GPU stopped responding. For NVIDIA on Fedora: sudo dnf install akmod-nvidia (from RPM Fusion) — similar to openSUSE's NVIDIA OBS repo but uses akmods instead of DKMS." + +[[patterns]] +id = "xwayland-crash" +sources = ["journald"] +match_text = "XWayland server terminated unexpectedly" +severity = "warn" +title = "XWayland crashed" +body = "Fedora GNOME defaults to Wayland like openSUSE's GNOME spin. X11 apps dead until session restart." + +# ── Network ─────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "NetworkManager: connection failed" +body = "nmcli device status — Fedora uses NetworkManager, not Wicked. If you had Wicked-specific configs on openSUSE, recreate them in NetworkManager format." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Right-click game in Steam -> Properties -> Local Files -> Verify integrity. Steam on Fedora: sudo dnf install steam (from RPM Fusion free)." diff --git a/src-tauri/patterns/windows-to-debian.toml b/src-tauri/patterns/windows-to-debian.toml new file mode 100644 index 0000000..1858960 --- /dev/null +++ b/src-tauri/patterns/windows-to-debian.toml @@ -0,0 +1,187 @@ +[meta] +source_os = "windows" +target_distro_family = "debian" + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" +proton = "~/.local/share/Steam/logs/proton_log.txt" +retroarch = "~/.config/retroarch/retroarch.log" +libreoffice = "~/.config/libreoffice/4/user/registrymodifications.xcu" + +# ── Package management ─────────────────────────────────────────────────────── + +[[patterns]] +id = "apt-lock" +sources = ["journald"] +match_text = "Could not get lock /var/lib/dpkg/lock" +severity = "warn" +title = "Package manager is locked" +body = "Another process is using apt — usually an automatic update running in the background. Wait a minute and try again. If it's been stuck a long time: sudo rm /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock" + +[[patterns]] +id = "apt-unmet-dependency" +sources = ["journald"] +match_text = "Unmet dependencies" +severity = "warn" +title = "Package dependency conflict" +body = "apt can't resolve a dependency. Try: sudo apt --fix-broken install" + +[[patterns]] +id = "dpkg-interrupted" +sources = ["journald"] +match_text = "dpkg was interrupted" +severity = "warn" +title = "Package install was interrupted" +body = "A previous install didn't complete cleanly. This is like a Windows installer that got cut off mid-run. Fix it with: sudo dpkg --configure -a — then run your install again." + +# ── Audio ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "pipewire-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to PipeWire" +severity = "warn" +title = "Audio server not responding" +body = "An app can't reach PipeWire (the audio system). Try: systemctl --user restart pipewire pipewire-pulse — if sound still doesn't work, log out and back in." + +[[patterns]] +id = "pulseaudio-connect-fail" +sources = ["journald"] +match_text = "Failed to connect to pulseaudio" +severity = "warn" +title = "Audio server not responding" +body = "An app can't reach the audio server. Try: pulseaudio --kill && pulseaudio --start — if that doesn't help, log out and back in." + +# ── Bluetooth ──────────────────────────────────────────────────────────────── + +[[patterns]] +id = "bluetooth-rfkill-blocked" +sources = ["journald"] +match_text = "Blocked through rfkill" +severity = "warn" +title = "Bluetooth is software-blocked" +body = "A software switch is blocking Bluetooth. Run: rfkill unblock bluetooth — if it's showing Hard blocked, there may be a physical switch or BIOS setting involved." + +[[patterns]] +id = "bluetooth-profile-unavailable" +sources = ["journald"] +match_text = "br-connection-profile-unavailable" +severity = "info" +title = "Bluetooth profile not available" +body = "A Bluetooth device connected but a required audio profile isn't available. Try: sudo apt install pulseaudio-module-bluetooth — then restart pulseaudio." + +# ── Filesystem / storage ────────────────────────────────────────────────────── + +[[patterns]] +id = "ntfs-volume-dirty" +sources = ["kmsg"] +match_text = "volume is dirty" +severity = "warn" +title = "External drive needs Windows check" +body = "An NTFS drive (probably from Windows) wasn't safely ejected and needs a check. Mount it in Windows and run chkdsk, or force-mount on Linux with: sudo mount -o remove_hiberfile /dev/sdX /mnt/point" + +[[patterns]] +id = "ntfs-force-required" +sources = ["kmsg"] +match_text = "Dirty flag is set" +severity = "warn" +title = "Drive mounted read-only (dirty flag)" +body = "Linux mounted this NTFS drive read-only because Windows marked it as needing a check. Boot into Windows and do a safe shutdown, or use: sudo ntfsfix /dev/sdX" + +[[patterns]] +id = "disk-io-error" +sources = ["kmsg"] +match_text = "Buffer I/O error on device" +severity = "warn" +title = "Disk read/write error" +body = "A storage device had an error. This could be a failing USB drive, a bad cable, or a corrupted filesystem. Check: sudo smartctl -a /dev/sdX — replace sdX with the device shown in the error." + +[[patterns]] +id = "usb-device-reset" +sources = ["kmsg"] +match_text = "device descriptor read/64, error" +severity = "info" +title = "USB device not recognised" +body = "A USB device is having trouble connecting. Try a different USB port, or unplug and replug. If it's a hub, try plugging directly into the computer." + +# ── Hardware / kernel ───────────────────────────────────────────────────────── + +[[patterns]] +id = "kernel-driver-firmware" +sources = ["kmsg"] +match_text = "firmware: failed to load" +severity = "warn" +title = "Missing firmware for hardware" +body = "Your system is missing a firmware file. On Debian/Ubuntu/Mint: sudo apt install firmware-linux firmware-linux-nonfree — then reboot." + +[[patterns]] +id = "oom-killer" +sources = ["kmsg"] +match_text = "Out of memory: Kill process" +severity = "warn" +title = "System ran out of memory" +body = "Linux had to forcibly close a program to free RAM. Windows handles this differently with virtual memory. If this keeps happening, consider adding a swap file or closing more background apps." + +[[patterns]] +id = "gpu-hang" +sources = ["kmsg"] +match_text = "GPU HANG" +severity = "warn" +title = "GPU hang detected" +body = "The graphics card stopped responding. Linux recovered, but games or video apps may have crashed. Check for overheating, and make sure your GPU drivers are up to date." + +# ── Network ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "networkmanager-activation-fail" +sources = ["journald"] +match_text = "Activation failed" +severity = "info" +title = "Network connection failed" +body = "NetworkManager couldn't connect. Common causes: wrong wifi password, a captive portal (hotel/coffee shop wifi), or a driver issue. Check: nmcli device status" + +# ── Printing ────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "cups-server-error" +sources = ["journald"] +match_text = "Unable to connect to CUPS server" +severity = "info" +title = "Printer service not running" +body = "The print server (CUPS) isn't running. Start it: sudo systemctl start cups — and enable it to start automatically: sudo systemctl enable cups" + +# ── Media ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "missing-codec" +sources = ["journald"] +match_text = "GStreamer: Failed to find plugin" +severity = "info" +title = "Missing media codec" +body = "A media codec isn't installed. On Ubuntu/Mint: sudo apt install ubuntu-restricted-extras — this installs common video, audio, and font packages." + +[[patterns]] +id = "snap-confinement" +sources = ["journald"] +match_text = "snap: cannot use strict" +severity = "info" +title = "Snap package permission issue" +body = "A Snap package is having permission trouble. Try running it with --devmode, or look for a Flatpak or apt alternative. Note: Snap is disabled by default on Linux Mint — use apt or Flatpak instead." + +# ── Gaming ──────────────────────────────────────────────────────────────────── + +[[patterns]] +id = "proton-runtime-missing" +sources = ["applog:proton"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Steam Proton couldn't find a required file. Right-click the game -> Properties -> Local Files -> Verify game files." + +[[patterns]] +id = "steam-disk-write" +sources = ["applog:steam"] +match_text = "ERROR: failed to write" +severity = "warn" +title = "Steam disk write error" +body = "Steam can't write to its library folder. Check: ls -la ~/.local/share/Steam" diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 0041697..5d72465 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -1,6 +1,6 @@ -use crate::config::{RobinConfig, MigrationConfig, SourceOs}; -use tauri::State; +use crate::config::{MigrationConfig, NotificationLevel, RobinConfig, SourceOs}; use std::sync::Mutex; +use tauri::{Emitter, State}; pub struct AppState { pub config: Mutex, @@ -8,14 +8,18 @@ pub struct AppState { #[tauri::command] pub fn get_config(state: State<'_, AppState>) -> Result { - state.config.lock() + state + .config + .lock() .map(|c| c.clone()) .map_err(|e| e.to_string()) } #[tauri::command] pub fn needs_onboarding(state: State<'_, AppState>) -> bool { - state.config.lock() + state + .config + .lock() .map(|c| c.needs_onboarding()) .unwrap_or(true) } @@ -24,20 +28,119 @@ pub fn needs_onboarding(state: State<'_, AppState>) -> bool { pub fn complete_onboarding( source_os: String, distro: String, + source_distro: Option, + dual_boot_with: Option, state: State<'_, AppState>, ) -> Result<(), String> { let source = match source_os.to_lowercase().as_str() { "macos" | "mac" => SourceOs::Macos, "windows" => SourceOs::Windows, "linux" => SourceOs::Linux, + "android" => SourceOs::Android, + "ipad" | "ios" | "ipados" => SourceOs::IpadOs, _ => SourceOs::Unknown, }; + let detected = if distro == "unknown" || distro.is_empty() { + crate::distro::detect() + } else { + distro + }; + + let source_distro_family = source_distro.as_deref().and_then(|sd| { + let family = crate::distro::distro_family(sd); + if family == "unknown" { None } else { Some(family.to_string()) } + }); + + // Normalise dual_boot_with to a canonical name; reject unrecognised values. + let dual_boot_with = dual_boot_with.and_then(|s| match s.to_lowercase().as_str() { + "windows" => Some("windows".to_string()), + "macos" | "mac" => Some("macos".to_string()), + _ => None, + }); + let mut config = state.config.lock().map_err(|e| e.to_string())?; config.migration = Some(MigrationConfig { source_os: source, - distro, + distro: detected, + source_distro_family, + dual_boot_with, fluency_level: 0, }); config.save().map_err(|e| e.to_string()) } + +#[tauri::command] +pub fn update_notification_level(level: String, state: State<'_, AppState>) -> Result<(), String> { + let parsed = match level.as_str() { + "off" => NotificationLevel::Off, + "badge_only" => NotificationLevel::BadgeOnly, + "badge_and_toast" => NotificationLevel::BadgeAndToast, + _ => return Err(format!("unknown notification level: {level}")), + }; + let mut config = state.config.lock().map_err(|e| e.to_string())?; + config.display.notification_level = parsed; + config.save().map_err(|e| e.to_string()) +} + +#[tauri::command] +pub fn get_pending_events() -> Vec { + crate::notify::take_pending() +} + +#[tauri::command] +pub fn panel_opened() { + crate::notify::set_panel_open(true); +} + +#[tauri::command] +pub fn panel_closed() { + crate::notify::set_panel_open(false); +} + +#[tauri::command] +pub async fn chat( + message: String, + state: State<'_, AppState>, + app_handle: tauri::AppHandle, +) -> Result<(), String> { + let (base_url, model, source_os, distro) = { + let cfg = state.config.lock().map_err(|e| e.to_string())?; + let (source_os, distro) = if let Some(ref m) = cfg.migration { + let os = match m.source_os { + crate::config::SourceOs::Macos => "macOS", + crate::config::SourceOs::Windows => "Windows", + crate::config::SourceOs::Linux => "Linux", + crate::config::SourceOs::Android => "Android", + crate::config::SourceOs::IpadOs => "iPad/iOS", + crate::config::SourceOs::Unknown => "Unknown", + }; + (os.to_string(), m.distro.clone()) + } else { + ("Unknown".to_string(), "unknown".to_string()) + }; + ( + cfg.ollama.base_url.clone(), + cfg.ollama.model.clone(), + source_os, + distro, + ) + }; + + let system_prompt = crate::llm::build_system_prompt(&source_os, &distro); + let messages = vec![ + crate::llm::ChatMessage { role: "system".into(), content: system_prompt }, + crate::llm::ChatMessage { role: "user".into(), content: message }, + ]; + + tauri::async_runtime::spawn(async move { + if let Err(e) = crate::llm::chat_stream(&base_url, &model, messages, &app_handle).await { + log::error!("chat stream error: {e}"); + if let Err(emit_err) = app_handle.emit("robin:chat-error", e.to_string()) { + log::warn!("failed to emit robin:chat-error: {emit_err}"); + } + } + }); + + Ok(()) +} diff --git a/src-tauri/src/config.rs b/src-tauri/src/config.rs index 82ea7f2..31e5d0f 100644 --- a/src-tauri/src/config.rs +++ b/src-tauri/src/config.rs @@ -2,20 +2,49 @@ use anyhow::{Context, Result}; use serde::{Deserialize, Serialize}; use std::path::PathBuf; -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] #[serde(rename_all = "snake_case")] pub enum SourceOs { Macos, Windows, Linux, + Android, + IpadOs, Unknown, } +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)] +#[serde(rename_all = "snake_case")] +pub enum Tier { + #[default] + Free, + Paid, + Premium, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)] +#[serde(rename_all = "snake_case")] +pub enum NotificationLevel { + Off, + BadgeOnly, + #[default] + BadgeAndToast, +} + #[derive(Debug, Clone, Serialize, Deserialize)] pub struct MigrationConfig { pub source_os: SourceOs, /// Detected distro string, e.g. "cachyos", "linuxmint" pub distro: String, + /// Source distro family for Linux-to-Linux migrations, e.g. "debian", "fedora", "arch", "opensuse" + /// Used to load a more specific pattern file (e.g. debian-to-arch) before the generic linux-to-arch fallback. + #[serde(default)] + pub source_distro_family: Option, + /// Co-installed OS for dual-boot setups, e.g. "windows", "macos". + /// When set, a supplementary pattern file (dualboot-windows.toml) is loaded on top of + /// the primary migration patterns to surface coexistence-specific issues. + #[serde(default)] + pub dual_boot_with: Option, /// 0–5: grows as user dismisses suggestions they already know pub fluency_level: u8, } @@ -37,14 +66,15 @@ impl Default for OllamaConfig { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct DisplayConfig { - pub show_notifications: bool, + #[serde(default)] + pub notification_level: NotificationLevel, pub quiet_mode: bool, } impl Default for DisplayConfig { fn default() -> Self { Self { - show_notifications: true, + notification_level: NotificationLevel::BadgeAndToast, quiet_mode: false, } } @@ -55,6 +85,8 @@ pub struct RobinConfig { pub migration: Option, pub ollama: OllamaConfig, pub display: DisplayConfig, + #[serde(default)] + pub tier: Tier, } impl Default for RobinConfig { @@ -63,6 +95,7 @@ impl Default for RobinConfig { migration: None, ollama: OllamaConfig::default(), display: DisplayConfig::default(), + tier: Tier::Free, } } } @@ -80,8 +113,7 @@ impl RobinConfig { } let content = std::fs::read_to_string(&path) .with_context(|| format!("failed to read {}", path.display()))?; - toml::from_str(&content) - .with_context(|| format!("failed to parse {}", path.display())) + toml::from_str(&content).with_context(|| format!("failed to parse {}", path.display())) } pub fn save(&self) -> Result<()> { @@ -117,6 +149,8 @@ mod tests { config.migration = Some(MigrationConfig { source_os: SourceOs::Macos, distro: "cachyos".into(), + source_distro_family: None, + dual_boot_with: None, fluency_level: 0, }); assert!(!config.needs_onboarding()); @@ -128,6 +162,8 @@ mod tests { migration: Some(MigrationConfig { source_os: SourceOs::Windows, distro: "linuxmint".into(), + source_distro_family: None, + dual_boot_with: None, fluency_level: 2, }), ..Default::default() @@ -136,4 +172,36 @@ mod tests { let deserialized: RobinConfig = toml::from_str(&serialized).unwrap(); assert!(!deserialized.needs_onboarding()); } + + #[test] + fn notification_level_default_is_badge_and_toast() { + let config = RobinConfig::default(); + assert!(matches!( + config.display.notification_level, + NotificationLevel::BadgeAndToast + )); + } + + #[test] + fn tier_default_is_free() { + let config = RobinConfig::default(); + assert!(matches!(config.tier, Tier::Free)); + } + + #[test] + fn notification_level_roundtrips_toml() { + let config = RobinConfig { + display: DisplayConfig { + notification_level: NotificationLevel::BadgeOnly, + quiet_mode: false, + }, + ..Default::default() + }; + let toml = toml::to_string_pretty(&config).unwrap(); + let back: RobinConfig = toml::from_str(&toml).unwrap(); + assert!(matches!( + back.display.notification_level, + NotificationLevel::BadgeOnly + )); + } } diff --git a/src-tauri/src/distro.rs b/src-tauri/src/distro.rs new file mode 100644 index 0000000..0156d87 --- /dev/null +++ b/src-tauri/src/distro.rs @@ -0,0 +1,88 @@ +pub fn detect() -> String { + std::fs::read_to_string("/etc/os-release") + .map(|s| parse_id(&s)) + .unwrap_or_else(|_| "unknown".to_string()) +} + +pub fn distro_family(id: &str) -> &'static str { + match id { + "arch" | "cachyos" | "endeavouros" | "manjaro" | "garuda" => "arch", + "debian" | "ubuntu" | "linuxmint" | "mint" | "pop" | "elementary" | "kali" => "debian", + "fedora" | "rhel" | "centos" | "rocky" | "alma" => "fedora", + "opensuse" | "opensuse-tumbleweed" | "opensuse-leap" => "opensuse", + _ => "unknown", + } +} + +fn parse_id(content: &str) -> String { + content + .lines() + .find_map(|line| { + let (key, val) = line.split_once('=')?; + if key.trim() == "ID" { + let raw = val.trim(); + let unquoted = raw + .strip_prefix('"') + .and_then(|s| s.strip_suffix('"')) + .or_else(|| raw.strip_prefix('\'').and_then(|s| s.strip_suffix('\''))) + .unwrap_or(raw); + Some(unquoted.to_lowercase()) + } else { + None + } + }) + .unwrap_or_else(|| "unknown".to_string()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn parses_arch_id() { + let content = "ID=arch\nID_LIKE=\nPRETTY_NAME=Arch Linux\n"; + assert_eq!(parse_id(content), "arch"); + } + + #[test] + fn parses_cachyos_id() { + let content = "ID=cachyos\nID_LIKE=arch\nPRETTY_NAME=CachyOS\n"; + assert_eq!(parse_id(content), "cachyos"); + } + + #[test] + fn parses_linuxmint_id() { + let content = "ID=linuxmint\nID_LIKE=ubuntu\nPRETTY_NAME=Linux Mint 22\n"; + assert_eq!(parse_id(content), "linuxmint"); + } + + #[test] + fn distro_family_arch_based() { + assert_eq!(distro_family("cachyos"), "arch"); + assert_eq!(distro_family("arch"), "arch"); + assert_eq!(distro_family("manjaro"), "arch"); + } + + #[test] + fn distro_family_debian_based() { + assert_eq!(distro_family("linuxmint"), "debian"); + assert_eq!(distro_family("ubuntu"), "debian"); + assert_eq!(distro_family("debian"), "debian"); + } + + #[test] + fn distro_family_unknown() { + assert_eq!(distro_family("slackware"), "unknown"); + } + + #[test] + fn parses_single_quoted_id() { + let content = "ID='arch'\nPRETTY_NAME='Arch Linux'\n"; + assert_eq!(parse_id(content), "arch"); + } + + #[test] + fn distro_family_mint_legacy() { + assert_eq!(distro_family("mint"), "debian"); + } +} diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 6673768..ecd33b2 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1,11 +1,16 @@ mod commands; mod config; +mod distro; +mod llm; +mod notify; +mod patterns; mod tray; mod watcher; use commands::AppState; use config::RobinConfig; -use std::sync::Mutex; +use std::sync::{Arc, Mutex}; +use tauri::Manager; #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { @@ -21,14 +26,106 @@ pub fn run() { }) .setup(|app| { tray::build_tray(&app.handle())?; - watcher::spawn(); + + let state = app.state::(); + let cfg = state + .config + .lock() + .unwrap_or_else(|e| e.into_inner()) + .clone(); + + let pattern_file = if let Some(ref migration) = cfg.migration { + let family = distro::distro_family(&migration.distro); + let source = match migration.source_os { + config::SourceOs::Macos => "macos", + config::SourceOs::Windows => "windows", + config::SourceOs::Linux => "linux", + config::SourceOs::Android => "android", + config::SourceOs::IpadOs => "ipad", + config::SourceOs::Unknown => "unknown", + }; + log::info!("robin: loading patterns for {source} → {family} (distro: {})", migration.distro); + let mut pf = match patterns::load(source, migration.source_distro_family.as_deref(), family) { + Ok(p) => { + log::info!("robin: loaded {} patterns", p.patterns.len()); + Some(p) + } + Err(e) => { + log::warn!("robin: no pattern file found ({e}) — notifications disabled"); + None + } + }; + // Layer dual-boot supplement patterns on top when a co-installed OS is configured. + if let (Some(ref mut primary), Some(ref dualboot)) = (&mut pf, &migration.dual_boot_with) { + match patterns::load_supplement(dualboot) { + Ok(supplement) => { + log::info!("robin: loaded {} dual-boot supplement patterns for {dualboot}", supplement.patterns.len()); + primary.extend(supplement); + } + Err(e) => log::warn!("robin: dual-boot supplement not found for {dualboot}: {e}"), + } + } + pf + } else { + log::info!("robin: no migration config — onboarding needed"); + None + }; + + let log_paths = pattern_file + .as_ref() + .map(|pf| pf.log_paths.clone()) + .unwrap_or_default(); + + // Intercept the chat window's close button so it hides rather than + // destroys the window. Without this, closing once makes the window + // unreachable — get_webview_window("chat") returns None and the tray + // click does nothing. + if let Some(chat_win) = app.get_webview_window("chat") { + let win = chat_win.clone(); + chat_win.on_window_event(move |event| { + if let tauri::WindowEvent::CloseRequested { api, .. } = event { + let _ = win.hide(); + api.prevent_close(); + } + }); + } + + let rx = watcher::spawn(log_paths); + let pf = Arc::new(pattern_file); + let app_handle = app.handle().clone(); + + tauri::async_runtime::spawn(async move { + let mut rx = rx; + while let Some(event) = rx.recv().await { + if let Some(ref pf) = *pf { + if let Some(matched) = patterns::classify(&event, pf) { + log::info!("robin: matched pattern '{}' — dispatching notification", matched.pattern_id); + notify::dispatch(&app_handle, matched); + } + } + } + }); + Ok(()) }) .invoke_handler(tauri::generate_handler![ commands::get_config, commands::needs_onboarding, commands::complete_onboarding, + commands::update_notification_level, + commands::get_pending_events, + commands::panel_opened, + commands::panel_closed, + commands::chat, ]) - .run(tauri::generate_context!()) - .expect("error while running Robin"); + .build(tauri::generate_context!()) + .expect("error building Robin") + .run(|_app, event| { + // Robin lives in the system tray. Prevent the process from exiting + // when the chat window is closed or hidden — only the tray "Quit" + // menu item should terminate the app. + if let tauri::RunEvent::ExitRequested { api, .. } = event { + api.prevent_exit(); + } + }); } diff --git a/src-tauri/src/llm.rs b/src-tauri/src/llm.rs new file mode 100644 index 0000000..a4b3eed --- /dev/null +++ b/src-tauri/src/llm.rs @@ -0,0 +1,157 @@ +use anyhow::{Context, Result}; +use serde::{Deserialize, Serialize}; +use tauri::Emitter; + +#[derive(Debug, Clone, Serialize)] +pub struct ChatMessage { + pub role: String, + pub content: String, +} + +#[derive(Debug, Deserialize)] +struct OllamaChunk { + message: Option, + #[serde(default)] + done: bool, +} + +#[derive(Debug, Deserialize)] +struct OllamaChunkMessage { + content: String, +} + +/// Build a migration-aware system prompt from the user's source OS and current distro. +pub fn build_system_prompt(source_os: &str, distro: &str) -> String { + format!( + "You are Robin, a friendly Linux migration assistant running locally on the user's machine. \ + The user is migrating from {source_os} to {distro}. \ + Help them with Linux questions, explain differences from their previous OS, \ + and provide practical command-line solutions. \ + Be concise, accurate, and use examples when helpful. \ + Never suggest Windows or macOS solutions — focus on Linux." + ) +} + +/// Stream a chat response from Ollama, emitting tokens as Tauri events. +/// +/// Emits: `robin:chat-token` (String), `robin:chat-done` (unit), `robin:chat-error` (String). +pub async fn chat_stream( + base_url: &str, + model: &str, + messages: Vec, + app: &tauri::AppHandle, +) -> Result<()> { + let client = reqwest::Client::new(); + let url = format!("{base_url}/api/chat"); + + let body = serde_json::json!({ + "model": model, + "messages": messages, + "stream": true, + }); + + let response = client + .post(&url) + .json(&body) + .send() + .await + .with_context(|| format!("failed to connect to Ollama at {url}"))?; + + if !response.status().is_success() { + let status = response.status(); + let text = response.text().await.unwrap_or_default(); + anyhow::bail!("Ollama returned {status}: {text}"); + } + + // Buffer bytes across chunks to handle UTF-8 sequences split at chunk boundaries. + let mut buf: Vec = Vec::new(); + let mut response = response; + + while let Some(chunk) = response.chunk().await.context("stream read error")? { + buf.extend_from_slice(&chunk); + + // Extract complete newline-delimited JSON lines from the buffer. + while let Some(pos) = buf.iter().position(|&b| b == b'\n') { + let line_bytes: Vec = buf.drain(..=pos).collect(); + let line = String::from_utf8_lossy(&line_bytes); + let line = line.trim(); + if line.is_empty() { + continue; + } + match serde_json::from_str::(line) { + Ok(chunk) => { + if let Some(msg) = chunk.message { + if !msg.content.is_empty() { + if let Err(e) = app.emit("robin:chat-token", msg.content) { + log::warn!("failed to emit robin:chat-token: {e}"); + } + } + } + if chunk.done { + if let Err(e) = app.emit("robin:chat-done", ()) { + log::warn!("failed to emit robin:chat-done: {e}"); + } + return Ok(()); + } + } + Err(e) => { + log::warn!("failed to parse Ollama chunk '{}': {e}", line); + } + } + } + } + + // Stream ended without a done=true chunk — emit done anyway so frontend unblocks. + if let Err(e) = app.emit("robin:chat-done", ()) { + log::warn!("failed to emit robin:chat-done at stream end: {e}"); + } + Ok(()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn system_prompt_contains_source_and_distro() { + let prompt = build_system_prompt("Windows", "cachyos"); + assert!(prompt.contains("Windows")); + assert!(prompt.contains("cachyos")); + } + + #[test] + fn system_prompt_contains_robin() { + let prompt = build_system_prompt("macOS", "arch"); + assert!(prompt.to_lowercase().contains("robin")); + } + + #[test] + fn ollama_chunk_parses_token() { + let json = r#"{"model":"llama3.2","message":{"role":"assistant","content":"Hello"},"done":false}"#; + let chunk: OllamaChunk = serde_json::from_str(json).unwrap(); + assert_eq!(chunk.message.unwrap().content, "Hello"); + assert!(!chunk.done); + } + + #[test] + fn ollama_chunk_parses_done() { + let json = r#"{"model":"llama3.2","message":{"role":"assistant","content":""},"done":true}"#; + let chunk: OllamaChunk = serde_json::from_str(json).unwrap(); + assert!(chunk.done); + } + + #[test] + fn ollama_chunk_parses_no_message() { + let json = r#"{"model":"llama3.2","done":true}"#; + let chunk: OllamaChunk = serde_json::from_str(json).unwrap(); + assert!(chunk.message.is_none()); + assert!(chunk.done); + } + + #[test] + fn malformed_json_fails_to_parse() { + let json = r#"{"not_valid": }"#; + let result = serde_json::from_str::(json); + assert!(result.is_err()); + } +} diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index ad5fe83..b72eaef 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -2,5 +2,5 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { - app_lib::run(); + robin_lib::run(); } diff --git a/src-tauri/src/notify.rs b/src-tauri/src/notify.rs new file mode 100644 index 0000000..46e1e43 --- /dev/null +++ b/src-tauri/src/notify.rs @@ -0,0 +1,95 @@ +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::Mutex; +use tauri::{AppHandle, Emitter, Manager, Runtime}; +use tauri_plugin_notification::NotificationExt; + +use crate::commands::AppState; +use crate::config::NotificationLevel; +use crate::patterns::MatchedEvent; + +static PENDING: Mutex> = Mutex::new(vec![]); +// True while ChatPanel is mounted and listening for live events. +// When true, dispatch skips PENDING so events are not shown twice on re-open. +static PANEL_OPEN: AtomicBool = AtomicBool::new(false); + +pub fn set_panel_open(open: bool) { + PANEL_OPEN.store(open, Ordering::Relaxed); +} + +pub fn dispatch(app: &AppHandle, event: MatchedEvent) { + let level = app + .state::() + .config + .lock() + .map(|c| c.display.notification_level.clone()) + .unwrap_or_default(); + + if !PANEL_OPEN.load(Ordering::Relaxed) { + match PENDING.lock() { + Ok(mut pending) => pending.push(event.clone()), + Err(e) => log::warn!("notify: pending queue lock poisoned — event dropped: {e}"), + } + } + + match level { + NotificationLevel::Off => {} + NotificationLevel::BadgeOnly => { + crate::tray::badge_on(app); + } + NotificationLevel::BadgeAndToast => { + crate::tray::badge_on(app); + send_toast(app, &event); + } + } + + let _ = app.emit("robin:event", &event); +} + +fn send_toast(app: &AppHandle, event: &MatchedEvent) { + let _ = app + .notification() + .builder() + .title(&event.title) + .body(&event.body) + .show(); +} + +pub fn take_pending() -> Vec { + PENDING + .lock() + .map(|mut v| std::mem::take(&mut *v)) + .unwrap_or_default() +} + +#[cfg(test)] +mod tests { + use super::*; + + fn make_event(id: &str) -> MatchedEvent { + MatchedEvent { + pattern_id: id.into(), + title: "Title".into(), + body: "Body".into(), + severity: "warn".into(), + timestamp: 0, + } + } + + #[test] + fn take_pending_drains_queue() { + // Ensure clean state — drain any events from other tests sharing the static + let _ = take_pending(); + + if let Ok(mut q) = PENDING.lock() { + q.push(make_event("a")); + q.push(make_event("b")); + } + + let first = take_pending(); + assert_eq!(first.len(), 2); + assert_eq!(first[0].pattern_id, "a"); + + let second = take_pending(); + assert!(second.is_empty(), "queue must be empty after drain"); + } +} diff --git a/src-tauri/src/patterns.rs b/src-tauri/src/patterns.rs new file mode 100644 index 0000000..b6a7ee7 --- /dev/null +++ b/src-tauri/src/patterns.rs @@ -0,0 +1,347 @@ +use crate::watcher::{EventSource, SystemEvent}; +use anyhow::Result; +use serde::{Deserialize, Serialize}; +use std::collections::HashMap; + +#[derive(Debug, Clone, Deserialize)] +pub struct PatternMeta { + pub source_os: String, + pub target_distro_family: String, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct Pattern { + pub id: String, + pub sources: Vec, + pub match_text: String, + pub severity: String, + pub title: String, + pub body: String, +} + +#[derive(Debug, Clone, Deserialize)] +pub struct PatternFile { + pub meta: PatternMeta, + #[serde(default)] + pub log_paths: HashMap, + #[serde(default)] + pub patterns: Vec, +} + +#[derive(Debug, Clone, Serialize)] +pub struct MatchedEvent { + pub pattern_id: String, + pub title: String, + pub body: String, + pub severity: String, + pub timestamp: u64, +} + +/// Load the pattern file for a source OS and distro family. +/// +/// For Linux-to-Linux migrations, `source_distro_family` (e.g. "debian", "fedora") is +/// tried first: `debian-to-arch.toml` before the generic `linux-to-arch.toml` fallback. +/// Tries each candidate at three path depths: dev-relative, src-tauri-relative, system. +pub fn load( + source_os: &str, + source_distro_family: Option<&str>, + distro_family: &str, +) -> Result { + let mut candidates: Vec = Vec::new(); + + // Helper: push paths for a given filename into candidates. + let mut push_candidates = |filename: &str| { + // 1. Relative to binary: covers both bundled installs (patterns/ next to binary) + // and dev builds (target/debug/ → ../../patterns/ = src-tauri/patterns/). + if let Ok(exe) = std::env::current_exe() { + if let Some(exe_dir) = exe.parent() { + candidates.push(exe_dir.join("patterns").join(filename).display().to_string()); + candidates.push(exe_dir.join("../../patterns").join(filename).display().to_string()); + } + } + // 2. CWD-relative fallbacks (for manual / script invocations). + candidates.push(format!("patterns/{filename}")); + candidates.push(format!("src-tauri/patterns/{filename}")); + // 3. System install path. + candidates.push(format!("/usr/share/robin/patterns/{filename}")); + }; + + if let Some(src_distro) = source_distro_family { + push_candidates(&format!("{src_distro}-to-{distro_family}.toml")); + } + let generic = format!("{source_os}-to-{distro_family}.toml"); + push_candidates(&generic); + for path in &candidates { + let content = match std::fs::read_to_string(path) { + Ok(c) => c, + Err(_) => continue, + }; + let pf: PatternFile = match toml::from_str(&content) { + Ok(p) => p, + Err(e) => { + log::warn!("patterns: failed to parse {path}: {e}"); + continue; + } + }; + for p in &pf.patterns { + anyhow::ensure!( + !p.match_text.is_empty(), + "pattern '{}' has empty match_text in {path}", + p.id + ); + anyhow::ensure!( + !p.sources.is_empty(), + "pattern '{}' has empty sources list in {path}", + p.id + ); + } + return Ok(pf); + } + anyhow::bail!("pattern file not found for {source_os}-to-{distro_family}.toml") +} + +impl PatternFile { + /// Merge patterns and log_paths from `other` into this file. + /// Used to layer a dual-boot supplement on top of the primary pattern file. + pub fn extend(&mut self, other: PatternFile) { + self.patterns.extend(other.patterns); + for (k, v) in other.log_paths { + self.log_paths.entry(k).or_insert(v); + } + } +} + +/// Load a supplementary pattern file by name (e.g. "windows" loads `dualboot-windows.toml`). +/// Supplement files cover coexistence-specific issues and are merged into the primary file. +pub fn load_supplement(name: &str) -> Result { + let filename = format!("dualboot-{name}.toml"); + let candidates = [ + format!("patterns/{filename}"), + format!("src-tauri/patterns/{filename}"), + format!("/usr/share/robin/patterns/{filename}"), + ]; + for path in &candidates { + let content = match std::fs::read_to_string(path) { + Ok(c) => c, + Err(_) => continue, + }; + match toml::from_str::(&content) { + Ok(pf) => return Ok(pf), + Err(e) => { + log::warn!("patterns: failed to parse supplement {path}: {e}"); + continue; + } + } + } + anyhow::bail!("supplement not found: {filename}") +} + +#[must_use] +pub fn classify(event: &SystemEvent, pf: &PatternFile) -> Option { + for pattern in &pf.patterns { + if !event.raw_line.contains(&pattern.match_text) { + continue; + } + + let source_matches = pattern.sources.iter().any(|s| { + if s == "any" { + return true; + } + match &event.source { + EventSource::Journald => s == "journald", + EventSource::Kmsg => s == "kmsg", + EventSource::AppLog { app } => s == &format!("applog:{app}"), + } + }); + + if source_matches { + return Some(MatchedEvent { + pattern_id: pattern.id.clone(), + title: pattern.title.clone(), + body: pattern.body.clone(), + severity: pattern.severity.clone(), + timestamp: event.timestamp, + }); + } + } + None +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::watcher::{EventSource, SystemEvent}; + + const FIXTURE: &str = r#" +[meta] +source_os = "macos" +target_distro_family = "arch" + +[log_paths] +steam = "~/.local/share/Steam/logs/content_log.txt" + +[[patterns]] +id = "aur-build-failure" +sources = ["journald"] +match_text = "error: failed to build" +severity = "warn" +title = "AUR package build failed" +body = "A package failed to compile from source." + +[[patterns]] +id = "proton-runtime" +sources = ["applog:steam"] +match_text = "wine: cannot find" +severity = "warn" +title = "Proton runtime issue" +body = "Steam Proton couldn't find a required file." + +[[patterns]] +id = "any-source-pattern" +sources = ["any"] +match_text = "kernel panic" +severity = "crit" +title = "Kernel panic" +body = "The kernel encountered a fatal error." +"#; + + fn make_event(source: EventSource, raw_line: &str) -> SystemEvent { + SystemEvent { + source, + raw_line: raw_line.into(), + timestamp: 0, + } + } + + #[test] + fn loads_pattern_file_from_toml() { + let pf: PatternFile = toml::from_str(FIXTURE).unwrap(); + assert_eq!(pf.meta.source_os, "macos"); + assert_eq!(pf.patterns.len(), 3); + assert_eq!( + pf.log_paths.get("steam").unwrap(), + "~/.local/share/Steam/logs/content_log.txt" + ); + } + + #[test] + fn classify_matches_journald_event() { + let pf: PatternFile = toml::from_str(FIXTURE).unwrap(); + let event = make_event(EventSource::Journald, ":: error: failed to build (foo-git)"); + let matched = classify(&event, &pf).unwrap(); + assert_eq!(matched.pattern_id, "aur-build-failure"); + assert_eq!(matched.title, "AUR package build failed"); + } + + #[test] + fn classify_no_match_returns_none() { + let pf: PatternFile = toml::from_str(FIXTURE).unwrap(); + let event = make_event( + EventSource::Journald, + "systemd: Started NetworkManager.service", + ); + assert!(classify(&event, &pf).is_none()); + } + + #[test] + fn classify_applog_matches_correct_source() { + let pf: PatternFile = toml::from_str(FIXTURE).unwrap(); + let event = make_event( + EventSource::AppLog { + app: "steam".into(), + }, + "wine: cannot find /run/media/user/game.exe", + ); + let matched = classify(&event, &pf).unwrap(); + assert_eq!(matched.pattern_id, "proton-runtime"); + } + + #[test] + fn classify_does_not_match_wrong_source() { + let pf: PatternFile = toml::from_str(FIXTURE).unwrap(); + // proton pattern is applog:steam — journald event must not match + let event = make_event(EventSource::Journald, "wine: cannot find something"); + assert!(classify(&event, &pf).is_none()); + } + + #[test] + fn classify_applog_does_not_match_different_app() { + let pf: PatternFile = toml::from_str(FIXTURE).unwrap(); + let event = make_event( + EventSource::AppLog { + app: "retroarch".into(), + }, + "wine: cannot find libvulkan.so", + ); + assert!(classify(&event, &pf).is_none()); + } + + #[test] + fn classify_any_source_matches_kmsg() { + let pf: PatternFile = toml::from_str(FIXTURE).unwrap(); + let event = make_event(EventSource::Kmsg, "kernel panic - not syncing: VFS"); + let matched = classify(&event, &pf).unwrap(); + assert_eq!(matched.pattern_id, "any-source-pattern"); + } + + #[test] + fn classify_any_source_matches_journald() { + let pf: PatternFile = toml::from_str(FIXTURE).unwrap(); + let event = make_event(EventSource::Journald, "kernel panic - not syncing: VFS"); + let matched = classify(&event, &pf).unwrap(); + assert_eq!(matched.pattern_id, "any-source-pattern"); + } + + #[test] + fn load_rejects_empty_match_text() { + let bad = r#" +[meta] +source_os = "macos" +target_distro_family = "arch" + +[[patterns]] +id = "bad" +sources = ["journald"] +match_text = "" +severity = "warn" +title = "Bad" +body = "Bad pattern." +"#; + let pf: PatternFile = toml::from_str(bad).unwrap(); + // Validate manually since load() reads from filesystem; test the invariant directly + let result: anyhow::Result<()> = (|| { + for p in &pf.patterns { + anyhow::ensure!(!p.match_text.is_empty(), "empty match_text in '{}'", p.id); + } + Ok(()) + })(); + assert!(result.is_err()); + assert!(result.unwrap_err().to_string().contains("empty match_text")); + } + + #[test] + fn load_rejects_empty_sources() { + let bad = r#" +[meta] +source_os = "macos" +target_distro_family = "arch" + +[[patterns]] +id = "bad" +sources = [] +match_text = "something" +severity = "warn" +title = "Bad" +body = "Bad pattern." +"#; + let pf: PatternFile = toml::from_str(bad).unwrap(); + let result: anyhow::Result<()> = (|| { + for p in &pf.patterns { + anyhow::ensure!(!p.sources.is_empty(), "empty sources in '{}'", p.id); + } + Ok(()) + })(); + assert!(result.is_err()); + assert!(result.unwrap_err().to_string().contains("empty sources")); + } +} diff --git a/src-tauri/src/tray.rs b/src-tauri/src/tray.rs index 2633957..3c26e91 100644 --- a/src-tauri/src/tray.rs +++ b/src-tauri/src/tray.rs @@ -1,3 +1,4 @@ +use std::sync::atomic::{AtomicBool, Ordering}; use tauri::{ menu::{Menu, MenuItem}, tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent}, @@ -13,7 +14,7 @@ pub fn build_tray(app: &AppHandle) -> tauri::Result<()> { .tooltip("Robin") .icon(app.default_window_icon().cloned().unwrap()) .menu(&menu) - .menu_on_left_click(false) + .show_menu_on_left_click(false) .on_menu_event(|app, event| match event.id.as_ref() { "open" => toggle_chat_panel(app), "quit" => app.exit(0), @@ -34,7 +35,7 @@ pub fn build_tray(app: &AppHandle) -> tauri::Result<()> { Ok(()) } -fn toggle_chat_panel(app: &AppHandle) { +pub fn toggle_chat_panel(app: &AppHandle) { if let Some(window) = app.get_webview_window("chat") { if window.is_visible().unwrap_or(false) { let _ = window.hide(); @@ -44,3 +45,32 @@ fn toggle_chat_panel(app: &AppHandle) { } } } + +static BADGE_ACTIVE: AtomicBool = AtomicBool::new(false); + +pub fn badge_on(app: &AppHandle) { + if BADGE_ACTIVE.swap(true, Ordering::Relaxed) { + return; // already badged + } + if let Some(tray) = app.tray_by_id("robin-tray") { + if let Some(icon) = app.default_window_icon().cloned() { + let _ = tray.set_icon(Some(icon)); + } + let _ = tray.set_tooltip(Some("Robin — something to show you")); + } +} + +pub fn badge_off(app: &AppHandle) { + BADGE_ACTIVE.store(false, Ordering::Relaxed); + if let Some(tray) = app.tray_by_id("robin-tray") { + if let Some(icon) = app.default_window_icon().cloned() { + let _ = tray.set_icon(Some(icon)); + } + let _ = tray.set_tooltip(Some("Robin")); + } +} + +pub fn clear_badge_and_open(app: &AppHandle) { + badge_off(app); + toggle_chat_panel(app); +} diff --git a/src-tauri/src/watcher.rs b/src-tauri/src/watcher.rs deleted file mode 100644 index b0d1957..0000000 --- a/src-tauri/src/watcher.rs +++ /dev/null @@ -1,32 +0,0 @@ -/// System event watcher — M1 implementation. -/// -/// M0 stub: defines the types and the spawn interface so the rest of the app -/// can wire up event handling now. Actual journald/dmesg reading lands in M1. - -use serde::{Deserialize, Serialize}; - -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(rename_all = "snake_case")] -pub enum EventSeverity { - Info, - Warn, - Crit, -} - -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct SystemEvent { - pub severity: EventSeverity, - pub source: String, - pub message: String, - pub timestamp: u64, -} - -/// Starts the background watcher task. -/// M0: no-op placeholder — returns immediately. -/// M1: spawns a tokio task reading journald + dmesg and emitting events. -pub fn spawn() { - // TODO(M1): spawn tokio::task reading journald via sd-journal crate - // TODO(M1): spawn dmesg poller for kernel messages - // TODO(M1): emit SystemEvent via tauri app_handle.emit() - log::info!("watcher: stub — no-op until M1"); -} diff --git a/src-tauri/src/watcher/inotify.rs b/src-tauri/src/watcher/inotify.rs new file mode 100644 index 0000000..577b6be --- /dev/null +++ b/src-tauri/src/watcher/inotify.rs @@ -0,0 +1,124 @@ +use super::{now_unix, EventSource, SystemEvent}; +use notify::{recommended_watcher, RecursiveMode, Watcher}; +use std::collections::HashMap; +use std::io::{Read, Seek}; +use tokio::sync::mpsc; + +pub async fn watch(log_paths: HashMap, tx: mpsc::Sender) { + if log_paths.is_empty() { + return; + } + + let expanded: HashMap = log_paths + .iter() + .map(|(k, v)| (k.clone(), expand_tilde(v))) + .collect(); + + tokio::task::spawn_blocking(move || { + let (notify_tx, notify_rx) = std::sync::mpsc::channel(); + let mut watcher = match recommended_watcher(notify_tx) { + Ok(w) => w, + Err(e) => { + log::error!("inotify watcher init failed: {e}"); + return; + } + }; + + // positions: path -> (app_name, byte_offset) + let mut positions: HashMap = HashMap::new(); + + for (app_name, path) in &expanded { + let pb = std::path::Path::new(path); + if pb.exists() { + let len = std::fs::metadata(pb).map(|m| m.len()).unwrap_or(0); + positions.insert(path.clone(), (app_name.clone(), len)); + watcher.watch(pb, RecursiveMode::NonRecursive).ok(); + } + } + + for result in notify_rx { + if let Ok(event) = result { + for path in event.paths { + let path_str = path.to_string_lossy().to_string(); + if let Some((app_name, pos)) = positions.get_mut(&path_str) { + let (lines, new_pos) = read_new_lines(&path_str, *pos); + *pos = new_pos; + for line in lines { + tx.blocking_send(SystemEvent { + source: EventSource::AppLog { + app: app_name.clone(), + }, + raw_line: line, + timestamp: now_unix(), + }) + .ok(); + } + } + } + } + } + }) + .await + .ok(); +} + +pub fn expand_tilde(path: &str) -> String { + if let Some(rest) = path.strip_prefix("~/") { + let home = std::env::var("HOME").unwrap_or_else(|_| "/home/user".into()); + format!("{home}/{rest}") + } else { + path.to_string() + } +} + +pub fn read_new_lines(path: &str, from_byte: u64) -> (Vec, u64) { + let mut file = match std::fs::File::open(path) { + Ok(f) => f, + Err(_) => return (vec![], from_byte), + }; + if file.seek(std::io::SeekFrom::Start(from_byte)).is_err() { + return (vec![], from_byte); + } + let mut raw = Vec::new(); + let bytes_read = file.read_to_end(&mut raw).unwrap_or(0); + let content = String::from_utf8_lossy(&raw).into_owned(); + let new_pos = from_byte + bytes_read as u64; + let lines: Vec = content + .lines() + .filter(|l| !l.is_empty()) + .map(|l| l.to_string()) + .collect(); + (lines, new_pos) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn expand_tilde_home() { + let home = std::env::var("HOME").unwrap_or("/home/user".into()); + let expanded = expand_tilde("~/.config/retroarch/retroarch.log"); + assert!(expanded.starts_with(&home)); + assert!(expanded.ends_with(".config/retroarch/retroarch.log")); + } + + #[test] + fn expand_tilde_no_tilde() { + let path = "/absolute/path/to/file.log"; + assert_eq!(expand_tilde(path), path); + } + + #[tokio::test] + async fn reads_new_lines_from_file() { + use std::io::Write; + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("test.log"); + let mut f = std::fs::File::create(&path).unwrap(); + write!(f, "line one\n").unwrap(); + + let (lines, pos) = read_new_lines(path.to_str().unwrap(), 0); + assert_eq!(lines, vec!["line one".to_string()]); + assert!(pos > 0); + } +} diff --git a/src-tauri/src/watcher/journald.rs b/src-tauri/src/watcher/journald.rs new file mode 100644 index 0000000..3c170a6 --- /dev/null +++ b/src-tauri/src/watcher/journald.rs @@ -0,0 +1,74 @@ +use super::{now_unix, EventSource, SystemEvent}; +use tokio::io::{AsyncBufReadExt, BufReader}; +use tokio::process::Command; +use tokio::sync::mpsc; + +pub async fn watch(tx: mpsc::Sender) { + let mut child = match Command::new("journalctl") + .args(["--follow", "--output=json", "--lines=0"]) + .stdout(std::process::Stdio::piped()) + .spawn() + { + Ok(c) => c, + Err(e) => { + log::error!("journald watcher: failed to spawn journalctl: {e}"); + return; + } + }; + + let stdout = match child.stdout.take() { + Some(s) => s, + None => return, + }; + + let mut lines = BufReader::new(stdout).lines(); + while let Ok(Some(line)) = lines.next_line().await { + if let Some(msg) = extract_message(&line) { + let _ = tx + .send(SystemEvent { + source: EventSource::Journald, + raw_line: msg, + timestamp: now_unix(), + }) + .await; + } + } + + log::warn!("journald watcher: journalctl exited — no new journal events will be observed"); + let _ = child.wait().await; +} + +fn extract_message(line: &str) -> Option { + let json: serde_json::Value = serde_json::from_str(line).ok()?; + let msg = json.get("MESSAGE")?.as_str()?; + if msg.is_empty() { + return None; + } + Some(msg.to_string()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn extract_message_from_journald_json() { + let line = r#"{"MESSAGE":"AUR build failed for foo","PRIORITY":"3","_COMM":"makepkg"}"#; + assert_eq!( + extract_message(line), + Some("AUR build failed for foo".to_string()) + ); + } + + #[test] + fn extract_message_missing_returns_none() { + let line = r#"{"PRIORITY":"6","_COMM":"systemd"}"#; + assert_eq!(extract_message(line), None); + } + + #[test] + fn extract_message_empty_skipped() { + let line = r#"{"MESSAGE":"","PRIORITY":"6"}"#; + assert_eq!(extract_message(line), None); + } +} diff --git a/src-tauri/src/watcher/kmsg.rs b/src-tauri/src/watcher/kmsg.rs new file mode 100644 index 0000000..7dd7582 --- /dev/null +++ b/src-tauri/src/watcher/kmsg.rs @@ -0,0 +1,68 @@ +use super::{now_unix, EventSource, SystemEvent}; +use tokio::fs::File; +use tokio::io::{AsyncBufReadExt, BufReader}; +use tokio::sync::mpsc; + +pub async fn watch(tx: mpsc::Sender) { + let file = match File::open("/dev/kmsg").await { + Ok(f) => f, + Err(e) => { + log::warn!("kmsg watcher: cannot open /dev/kmsg: {e}"); + return; + } + }; + + let mut lines = BufReader::new(file).lines(); + while let Ok(Some(line)) = lines.next_line().await { + if let Some(msg) = parse_kmsg(&line) { + let _ = tx + .send(SystemEvent { + source: EventSource::Kmsg, + raw_line: msg, + timestamp: now_unix(), + }) + .await; + } + } +} + +fn parse_kmsg(line: &str) -> Option { + let msg = if let Some(pos) = line.find(';') { + &line[pos + 1..] + } else { + line + }; + if msg.is_empty() { + return None; + } + Some(msg.to_string()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn parses_kmsg_line_with_semicolon() { + let line = "6,1234,56789,-;usb 1-1: new full-speed USB device number 2"; + assert_eq!( + parse_kmsg(line), + Some("usb 1-1: new full-speed USB device number 2".to_string()) + ); + } + + #[test] + fn parses_kmsg_line_without_semicolon() { + let line = "plain message without header"; + assert_eq!( + parse_kmsg(line), + Some("plain message without header".to_string()) + ); + } + + #[test] + fn skips_empty_message_after_semicolon() { + let line = "6,1234,56789,-;"; + assert_eq!(parse_kmsg(line), None); + } +} diff --git a/src-tauri/src/watcher/mod.rs b/src-tauri/src/watcher/mod.rs new file mode 100644 index 0000000..fd48b19 --- /dev/null +++ b/src-tauri/src/watcher/mod.rs @@ -0,0 +1,85 @@ +pub mod inotify; +pub mod journald; +pub mod kmsg; + +use serde::{Deserialize, Serialize}; +use std::collections::HashMap; +use std::time::{SystemTime, UNIX_EPOCH}; +use tokio::sync::mpsc; + +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(rename_all = "snake_case")] +pub enum EventSeverity { + Info, + Warn, + Crit, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(tag = "type", rename_all = "snake_case")] +pub enum EventSource { + Journald, + Kmsg, + AppLog { app: String }, +} + +#[derive(Debug, Clone, Serialize)] +pub struct SystemEvent { + pub source: EventSource, + pub raw_line: String, + pub timestamp: u64, +} + +pub fn now_unix() -> u64 { + SystemTime::now() + .duration_since(UNIX_EPOCH) + .unwrap_or_default() + .as_secs() +} + +/// Spawns all watcher tasks. Returns the receiver end of the event channel. +/// `log_paths` comes from the loaded PatternFile. +pub fn spawn(log_paths: HashMap) -> mpsc::Receiver { + let (tx, rx) = mpsc::channel::(256); + + let tx_j = tx.clone(); + tauri::async_runtime::spawn(async move { + journald::watch(tx_j).await; + }); + + let tx_k = tx.clone(); + tauri::async_runtime::spawn(async move { + kmsg::watch(tx_k).await; + }); + + tauri::async_runtime::spawn(async move { + inotify::watch(log_paths, tx).await; + }); + + rx +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn event_source_can_be_cloned() { + let s = EventSource::AppLog { + app: "steam".into(), + }; + let _ = s.clone(); + assert!(matches!(s, EventSource::AppLog { .. })); + } + + #[test] + fn system_event_constructed() { + let e = SystemEvent { + source: EventSource::Journald, + raw_line: "test line".into(), + timestamp: now_unix(), + }; + assert_eq!(e.raw_line, "test line"); + assert!(e.timestamp > 0); + } +} diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d97f2a1..547f6e5 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -38,6 +38,9 @@ "bundle": { "active": true, "targets": ["deb", "rpm", "appimage"], + "resources": { + "patterns/*": "patterns/" + }, "icon": [ "icons/32x32.png", "icons/128x128.png", @@ -45,8 +48,6 @@ "icons/icon.icns", "icons/icon.ico" ], - "linux": { - "desktopTemplate": "../assets/robin.desktop" - } + "linux": {} } } diff --git a/src/components/ChatPanel.vue b/src/components/ChatPanel.vue index a662e61..193c636 100644 --- a/src/components/ChatPanel.vue +++ b/src/components/ChatPanel.vue @@ -33,13 +33,50 @@ @@ -70,7 +160,7 @@ async function detectDistro(): Promise { } .onboarding-card { - max-width: 320px; + max-width: 340px; text-align: center; } @@ -95,6 +185,7 @@ p { color: #aaa; line-height: 1.5; margin-bottom: 20px; } color: #e0e0e0; cursor: pointer; transition: border-color 0.15s, background 0.15s; + text-align: left; } .os-btn:hover { border-color: #6c8ebf; } diff --git a/vite.config.ts b/vite.config.ts index bbcf80c..b2776bc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,9 @@ import vue from '@vitejs/plugin-vue' // https://vite.dev/config/ export default defineConfig({ plugins: [vue()], + server: { + port: 1420, + strictPort: true, // fail loudly if 1420 is taken rather than silently shifting + }, + clearScreen: false, // keep terminal output readable alongside cargo/Tauri logs })