commit f8a3c2dc6f5630d5ee7ea0c41ab83f53d61e28b6 Author: Tommy <46983364+TommyFang2077@users.noreply.github.com> Date: Sat Aug 15 22:02:13 2026 +0800 Add README, plugin citations, and multi-platform release CI. Ship screenshots and third-party notices for the desktop shell, and package Windows, macOS, deb, rpm, and Flatpak from GitHub Releases. Co-authored-by: Cursor diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8f15834 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +jobs: + test: + name: Test + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - uses: swatinem/rust-cache@v2 + with: + workspaces: ". -> target" + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Test + run: make test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..cf69958 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,178 @@ +name: Release + +on: + push: + tags: ["v*"] + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: release-${{ github.ref }} + cancel-in-progress: false + +jobs: + test: + name: Test + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: swatinem/rust-cache@v2 + with: + workspaces: ". -> target" + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Test + run: make test + + version: + name: Version + runs-on: ubuntu-22.04 + outputs: + version: ${{ steps.meta.outputs.version }} + tag: ${{ steps.meta.outputs.tag }} + steps: + - uses: actions/checkout@v4 + - id: meta + run: | + VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1) + echo "version=$VERSION" >> "$GITHUB_OUTPUT" + echo "tag=v$VERSION" >> "$GITHUB_OUTPUT" + if [ "${GITHUB_REF_TYPE}" = "tag" ] && [ "${GITHUB_REF_NAME}" != "v${VERSION}" ]; then + echo "Git tag ${GITHUB_REF_NAME} must match Cargo.toml version v${VERSION}" >&2 + exit 1 + fi + + vendor: + name: Vendor Flatpak runtime + needs: test + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "24" + - name: Vendor dsh, ModLens, and presets + run: make vendor + - uses: actions/upload-artifact@v4 + with: + name: vendor + path: vendor + include-hidden-files: true + retention-days: 1 + + package: + name: Package ${{ matrix.name }} + needs: [test, version] + permissions: + contents: write + strategy: + fail-fast: false + matrix: + include: + - name: macos-arm64 + platform: macos-latest + rust_targets: aarch64-apple-darwin + args: --target aarch64-apple-darwin --bundles app,dmg + - name: macos-x64 + platform: macos-latest + rust_targets: x86_64-apple-darwin + args: --target x86_64-apple-darwin --bundles app,dmg + - name: linux + platform: ubuntu-22.04 + rust_targets: "" + args: --bundles deb,rpm + - name: windows + platform: windows-latest + rust_targets: "" + args: --bundles nsis,msi + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: "24" + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.rust_targets }} + + - uses: swatinem/rust-cache@v2 + with: + workspaces: ". -> target" + + - name: Install Linux packaging deps + if: matrix.platform == 'ubuntu-22.04' + run: | + sudo apt-get update + sudo apt-get install -y \ + libwebkit2gtk-4.1-dev \ + libgtk-3-dev \ + librsvg2-dev \ + patchelf \ + xdg-utils \ + rpm + + - name: Vendor bundled plugins + shell: bash + run: bash scripts/vendor-native.sh + + - uses: tauri-apps/tauri-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + projectPath: . + tauriScript: cargo tauri + tagName: v__VERSION__ + releaseName: DeepSeek Harness Desktop v__VERSION__ + releaseBody: | + 跨平台安装包:Windows NSIS/MSI、macOS DMG(Apple Silicon 与 Intel)、Linux deb/rpm。 + Flatpak 由同一次 Release 工作流另外上传。 + + - Windows / macOS / deb / rpm 需要本机已安装 `dsh`(`npm i -g @deepseek-ai/dsh`),或设置 `DSH_DESKTOP_DSH_BIN`。 + - Flatpak 自带 Node.js 与 `dsh`。 + - macOS 包未公证,需在「系统设置 → 隐私与安全性」中允许打开。 + releaseDraft: false + prerelease: false + includeUpdaterJson: false + args: ${{ matrix.args }} + + flatpak: + name: Flatpak + needs: [test, version, vendor] + runs-on: ubuntu-latest + container: + image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-47 + options: --privileged + steps: + - uses: actions/checkout@v4 + + - uses: actions/download-artifact@v4 + with: + name: vendor + path: vendor + + - uses: flatpak/flatpak-github-actions/flatpak-builder@v6 + with: + bundle: io.github.tommyfang.DshDesktop.flatpak + manifest-path: flatpak/io.github.tommyfang.DshDesktop.yml + cache-key: flatpak-gnome-47-${{ hashFiles('flatpak/io.github.tommyfang.DshDesktop.yml', 'Cargo.lock') }} + upload-artifact: false + + - name: Attach Flatpak to GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ needs.version.outputs.tag }} + name: DeepSeek Harness Desktop v${{ needs.version.outputs.version }} + files: io.github.tommyfang.DshDesktop.flatpak + fail_on_unmatched_files: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe4c904 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# Python helpers (scripts/, tests/) +__pycache__/ +*.py[cod] +*.egg-info/ + +# Rust / Cargo +/target/ +**/*.rs.bk +*.pdb + +# Tauri generated schemas +src-tauri/gen/ + +# Vendored dsh, ModLens, presets (make vendor) +/vendor/ + +# Packaging +/dist/ +/build/ +*.flatpak +.flatpak-build/ +.flatpak-builder/ +.flatpak-repo/ + +# OS +.DS_Store +*~ diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..76f63df --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,5419 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "arboard" +version = "3.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0348a1c054491f4bfe6ab86a7b6ab1e44e45d899005de92f58b3df180b36ddaf" +dependencies = [ + "clipboard-win", + "image", + "log", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "parking_lot", + "percent-encoding", + "windows-sys 0.60.2", + "x11rb", +] + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "blocking" +version = "1.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 = "brotli" +version = "8.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.13.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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d" +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.20", +] + +[[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.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d" +dependencies = [ + "find-msvc-tools", + "shlex 2.0.1", +] + +[[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 = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "clipboard-win" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4" +dependencies = [ + "error-code", +] + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" +dependencies = [ + "bitflags 2.13.1", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.1", + "core-foundation", + "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.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d85363c37faeca707aef026efa9f3b34d077bce547e48f770770625c6013679e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[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.119", +] + +[[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.119", +] + +[[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.119", +] + +[[package]] +name = "dbus" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "defmt" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2953bfe4f93bbd20cc71198842756f77d161884c99ebbabc41d80231ded88d1" +dependencies = [ + "bitflags 1.3.2", + "defmt-macros", +] + +[[package]] +name = "defmt-macros" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad9c72e7ca2137e0dc3813245a0d282fd6daad32fd800af018306a9169b5fe8" +dependencies = [ + "defmt-parser", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "defmt-parser" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10d60334b3b2e7c9d91ef8150abfb6fa4c1c39ebbcf4a81c2e346aad939fee3e" +dependencies = [ + "thiserror 2.0.20", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "serde_core", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "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.13.1", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "dlopen2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "dom_query" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89" +dependencies = [ + "bit-set", + "cssparser", + "foldhash", + "html5ever", + "precomputed-hash", + "selectors", + "tendril", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +dependencies = [ + "serde", +] + +[[package]] +name = "dsh-core" +version = "0.1.0" +dependencies = [ + "base64 0.22.1", + "dirs", + "libc", + "regex", + "serde", + "serde_json", + "shlex 1.3.0", + "tempfile", + "thiserror 2.0.20", + "which", +] + +[[package]] +name = "dsh-desktop" +version = "0.1.0" +dependencies = [ + "arboard", + "dsh-core", + "env_logger", + "image", + "log", + "open", + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-opener", + "tauri-plugin-single-instance", + "url", +] + +[[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.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbfdaacccebec3b28e4866b8973543c7647797db5ada1bdab552e48fe665fbbd" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.4+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 = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "env_filter" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900d271a03799a1ee8d1ca9b19893b48ca674a9284fefcfb85f05e74ed314217" +dependencies = [ + "log", + "regex", +] + +[[package]] +name = "env_logger" +version = "0.11.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de671bd27a75a797dc9ae289ba1e77276e75e2026408aab65185384e2d5cd3f6" +dependencies = [ + "anstream", + "anstyle", + "env_filter", + "jiff", + "log", +] + +[[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 = "error-code" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fax" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d45db016d36b838f563236e9193d0ee6ce38f3f68b6c94e914b4929c96bbb890" + +[[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.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix", + "windows-link 0.2.1", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.13.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.119", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "zerocopy", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.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.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-util" +version = "0.1.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", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371" +dependencies = [ + "byteorder", + "png 0.17.16", +] + +[[package]] +name = "icu_collections" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" + +[[package]] +name = "icu_properties" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" + +[[package]] +name = "icu_provider" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92a7ed671a6aad807a8651a2e1782a6598fda9ce5185dd8158549e95a91c6428" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png 0.18.1", + "tiff", +] + +[[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 = "ipnet" +version = "2.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78" + +[[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 = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jiff" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "668b7183bd07af9a4885f5c35b0cc5c83c4607a913c16b7e17291832910d2dcc" +dependencies = [ + "defmt", + "jiff-core", + "jiff-static", + "jiff-tzdb-platform", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", + "windows-link 0.2.1", +] + +[[package]] +name = "jiff-core" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7feca88439efe53da3754500c1851dedf3cb36c524dd5cf8225cc0794de95d09" +dependencies = [ + "defmt", +] + +[[package]] +name = "jiff-static" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a69dcb3a21cfb32ce1cd056169337ca284af0766dd766e7878819b251a49204" +dependencies = [ + "jiff-core", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jiff-tzdb" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "142bd39932ad231f10513df9ab62661fead8719872150b7ad02a2df79f4e141e" + +[[package]] +name = "jiff-tzdb-platform" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8" +dependencies = [ + "jiff-tzdb", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys 0.3.1", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "js-sys" +version = "0.3.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a" +dependencies = [ + "cfg-if", + "futures-util", + "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.13.1", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.189" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libredox" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d0a00925a9f930d679b6789b721e3a7f9ed110f41b86d2497caa780c3a070a" +dependencies = [ + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" + +[[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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "muda" +version = "0.19.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878" +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.20", + "windows-sys 0.61.2", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.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 = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "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.13.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.13.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.13.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.13.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.13.1", + "block2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.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.13.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.13.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.13.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 = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "open" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9cfef937e9c486488c7e3d949ae31c0f1d06bdacd75b99c086cb35356e30408" +dependencies = [ + "dunce", + "is-wsl", + "libc", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plist" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da1d65da6dd5d1e44199ac0f58712d241c0f439f80adea8924d832384087f85" +dependencies = [ + "base64 0.22.1", + "indexmap 2.14.0", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.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 = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" + +[[package]] +name = "portable-atomic-util" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618" +dependencies = [ + "portable-atomic", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.13+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.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.20", +] + +[[package]] +name = "ref-cast" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216e8f773d7923bcba9ceb86a86c93cabb3903a11872fc3f138c49630e50b96d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9283685feec7d69af75fb0e858d5e7378f33fe4fc699383b2916ab9273e03c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "reqwest" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3" +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", + "web-sys", +] + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.13.1", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "indexmap 1.9.3", + "schemars_derive", + "serde", + "serde_json", + "url", + "uuid", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.119", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "selectors" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c" +dependencies = [ + "bitflags 2.13.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.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "serde_json" +version = "1.0.151" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee78f1fbe43ac4a0e47aadb3dbd357b69eb0d3793e948624cd03dd2750ab1c0a" +dependencies = [ + "base64 0.22.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "jiff", + "schemars 0.9.0", + "schemars 1.2.2", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8705578779c2b6bd90d84d66eb2e206b708b1a4d7b9f17641b293545bf1c7e46" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "servo_arc" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "siphasher" +version = "1.0.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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "bytemuck", + "js-sys", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "redox_syscall", + "tracing", + "wasm-bindgen", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "string_cache" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "swift-rs" +version = "1.0.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", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +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.119", +] + +[[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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9" +dependencies = [ + "bitflags 2.13.1", + "block2", + "core-foundation", + "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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "667b20e2726d572dea2de7370da16e188eb06008faf9a92fab7cdc46791190b5" +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", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.20", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc9ce40b16101cb6ea63d3e221567affd1c3a9205f95d7bc574941a10636b632" +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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08279169ff42f8fc45a1dbc9dcae888893ba95288142e5880c59b93a26d2cfc5" +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.119", + "tauri-utils", + "thiserror 2.0.20", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8b394794f399a421811d06966343e7933fcae92d59f5180b9388d1174497a45" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74be5dd4bed9afbd145e5716b5fa2ec28cbc29c34ffa61c258c9273d896c8020" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "walkdir", +] + +[[package]] +name = "tauri-plugin-opener" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17e1bea14edce6b793a04e2417e3fd924b9bc4faae83cdee7d714156cceeed29" +dependencies = [ + "dunce", + "glob", + "objc2-app-kit", + "objc2-foundation", + "open", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.20", + "url", + "windows", + "zbus", +] + +[[package]] +name = "tauri-plugin-single-instance" +version = "2.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3214becf9ef5783c0ae99a3bb25adf5353a7a16ebf53e74b909e29205735c6c" +dependencies = [ + "serde", + "serde_json", + "tauri", + "thiserror 2.0.20", + "tokio", + "tracing", + "windows-sys 0.60.2", + "zbus", +] + +[[package]] +name = "tauri-runtime" +version = "2.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0b4bc95aed361b0019067d189a1174a603d460d0f6c72606512d59fc9c12ec8" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.20", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e6fac707727b7a2f48e4ded90976324267371073edbb415ffb73bb0458d203f" +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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e176a18e67764923c4f1ce66f25ae4abe5f688384d5eb1a0fa6c77f3d90f887" +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.20", + "toml 1.1.4+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.4+spec-1.1.0", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08" +dependencies = [ + "new_debug_unreachable", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f" +dependencies = [ + "thiserror-impl 2.0.20", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "tiff" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error", + "weezl", + "zune-jpeg", +] + +[[package]] +name = "time" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134" +dependencies = [ + "deranged", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "time-macros" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f" +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.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-util" +version = "0.7.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml" +version = "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.4+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3aace63f4bbcdfc2c965b059de67119c89c4017a70d633be6c104910f67056f5" +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.4", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "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.13+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6975367e4d2ef766d86af01ffad14b622fecc8d4357a998fbc4deb6e9bacaf9b" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.4", +] + +[[package]] +name = "toml_parser" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +dependencies = [ + "winnow 1.0.4", +] + +[[package]] +name = "toml_writer" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.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.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tray-icon" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "045979e3f037cd18ad1cb2a419dfda133c5c29c9f3453370079f2255d46c257e" +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.20", + "windows-sys 0.61.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlpattern" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" +dependencies = [ + "regex", + "serde", + "unic-ucd-ident", + "url", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cefc03fd367c0c6d4305de1b312cf00248c4114f4a0418ce6a6af769e3b0bd9" +dependencies = [ + "getrandom 0.4.3", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b7777d5cc23d0e91404e53ce2d5e8ec7acae3026b16233dba62cd3246457950" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.119", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web-sys" +version = "0.3.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c435338968042f4f59a557f690a253676d47ce13ceb55d70100e7facf6620a30" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3" +dependencies = [ + "phf", + "phf_codegen", + "string_cache", + "string_cache_codegen", +] + +[[package]] +name = "webkit2gtk" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793" +dependencies = [ + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webview2-com" +version = "0.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.119", +] + +[[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.20", + "windows", + "windows-core 0.61.2", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "which" +version = "8.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f3ef584124b911bcc3875c2f1472e80f24361ceb789bd1c62b3e9a3df9ff43c" +dependencies = [ + "libc", +] + +[[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.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link 0.2.1", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +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.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + +[[package]] +name = "wry" +version = "0.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.20", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "gethostname", + "rustix", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow 1.0.4", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 3.0.3", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8bf88b4a3ff53e883001e0e0115b297a9d53c31b9c1edd2bfdd853e3428624e" +dependencies = [ + "serde", + "winnow 1.0.4", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1afec51604565183aeb5c54c20aeab286120d4e4460f7f76e3e8bb8c0d99473" +dependencies = [ + "serde", +] + +[[package]] +name = "zerocopy" +version = "0.8.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[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.119", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94b5c6b5976d66c1d703c4fd17d3f5e43c8cedaacf604961b171adc7130896d8" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47402523226a02bfe5230160dc3ccc089aa6f6f19e7fcbb4e6f824bbb1b4aa62" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + +[[package]] +name = "zvariant" +version = "5.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e28c25bd8bb8da5a1f3e7065d0c156b9ee9a7973adf78b0e35eaefdf3b1b5c" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow 1.0.4", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d496a145685283b67e232bd9e47377f6b60ad9d51e3601b23867f77c42477f96" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 3.0.3", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "629d80ece222cad20fe0e8741be493c4ab166acf3b85341bdc2cdbcfd8f3c2d6" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.3", + "winnow 1.0.4", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..119e9d1 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[workspace] +members = ["crates/dsh-core", "src-tauri"] +resolver = "2" + +[workspace.package] +version = "0.1.0" +edition = "2021" +license = "MIT" +authors = ["TommyFang2077"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f6b1e61 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 TommyFang2077 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN ANY ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..051d673 --- /dev/null +++ b/Makefile @@ -0,0 +1,136 @@ +PYTHON ?= python3 +CARGO ?= cargo +PREFIX ?= $(HOME)/.local +APP_ID := io.github.tommyfang.DshDesktop +DSH_VERSION := 0.1.0-rc.6 +MODLENS_VERSION := 3.16.6 +ANCHORED_COMMIT := ffb845c5480adc953392a6db6f8a98ede621174b +ANCHORED_REPO := https://github.com/xiaobright/dsh-anchored-standard.git +VENDOR_DIR := vendor/dsh-prefix +MODLENS_DIR := vendor/modlens +ANCHORED_DIR := vendor/anchored-standard +ZERO_DIR := vendor/zero-anchored-standard +FLATPAK ?= flatpak +BUILDER ?= flatpak run --user org.flatpak.Builder +BUILD_DIR ?= .flatpak-build +REPO_DIR ?= .flatpak-repo +MANIFEST := flatpak/$(APP_ID).yml +VERSION := $(shell sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1) +BUNDLE := dist/$(APP_ID)-$(VERSION).flatpak +BIN := target/release/dsh-desktop + +.PHONY: all run dev test vendor vendor-native vendor-anchored build install uninstall flatpak-build flatpak-export flatpak-install flatpak-bundle flatpak-run clean + +all: test + +run: + $(CARGO) run -p dsh-desktop -- --no-update + +dev: + $(CARGO) run -p dsh-desktop -- --dev --verbose + +build: + $(CARGO) build -p dsh-desktop --release + +test: + $(CARGO) test -p dsh-core + $(PYTHON) -m unittest discover -s tests -v + +vendor: + mkdir -p vendor + rm -rf $(VENDOR_DIR) $(MODLENS_DIR) + npm install --prefix=$(CURDIR)/$(VENDOR_DIR) --global --prefer-offline --no-audit --no-fund @deepseek-ai/dsh@$(DSH_VERSION) + npm install --prefix=$(CURDIR)/$(MODLENS_DIR) --prefer-offline --no-audit --no-fund @liustack/modlens@$(MODLENS_VERSION) + $(MAKE) vendor-anchored + +vendor-native: + MODLENS_VERSION=$(MODLENS_VERSION) ANCHORED_COMMIT=$(ANCHORED_COMMIT) ANCHORED_REPO=$(ANCHORED_REPO) bash scripts/vendor-native.sh + +vendor-anchored: + rm -rf vendor/.anchored-src $(ANCHORED_DIR) $(ZERO_DIR) + mkdir -p vendor/.anchored-src + git -C vendor/.anchored-src init --initial-branch=main + git -C vendor/.anchored-src remote add origin $(ANCHORED_REPO) + git -C vendor/.anchored-src fetch --depth 1 origin $(ANCHORED_COMMIT) + git -C vendor/.anchored-src checkout --detach FETCH_HEAD + mkdir -p $(ANCHORED_DIR) $(ZERO_DIR) + cp -R vendor/.anchored-src/preset/. $(ANCHORED_DIR)/ + cp -R vendor/.anchored-src/zero-anchored-standard/. $(ZERO_DIR)/ + cp vendor/.anchored-src/LICENSE vendor/.anchored-src/NOTICE $(ANCHORED_DIR)/ + cp vendor/.anchored-src/LICENSE vendor/.anchored-src/NOTICE $(ZERO_DIR)/ + printf '%s\n' $(ANCHORED_COMMIT) > $(ANCHORED_DIR)/.dsh-desktop-source + printf '%s\n' $(ANCHORED_COMMIT) > $(ZERO_DIR)/.dsh-desktop-source + $(PYTHON) scripts/localize_preset.py $(ANCHORED_DIR)/preset.yml + $(PYTHON) scripts/localize_preset.py $(ZERO_DIR)/preset.yml zero + rm -rf vendor/.anchored-src + +install: build + install -Dm755 $(BIN) $(DESTDIR)$(PREFIX)/bin/dsh-desktop + install -Dm644 data/applications/$(APP_ID).desktop $(DESTDIR)$(PREFIX)/share/applications/$(APP_ID).desktop + install -Dm644 data/metainfo/$(APP_ID).metainfo.xml $(DESTDIR)$(PREFIX)/share/metainfo/$(APP_ID).metainfo.xml + for size in 16 24 32 48 64 128 256 512; do \ + install -Dm644 "data/icons/hicolor/$${size}x$${size}/apps/$(APP_ID).png" "$(DESTDIR)$(PREFIX)/share/icons/hicolor/$${size}x$${size}/apps/$(APP_ID).png"; \ + done + if [ -z "$(DESTDIR)" ]; then \ + update-desktop-database "$(PREFIX)/share/applications" >/dev/null 2>&1 || true; \ + fi + if [ -d $(MODLENS_DIR)/node_modules/@liustack/modlens ]; then \ + rm -rf $(DESTDIR)$(PREFIX)/share/dsh-desktop/modlens; \ + mkdir -p $(DESTDIR)$(PREFIX)/share/dsh-desktop; \ + cp -R $(MODLENS_DIR) $(DESTDIR)$(PREFIX)/share/dsh-desktop/modlens; \ + fi + if [ -f plugins/dsh-desktop-vision/package.json ]; then \ + rm -rf $(DESTDIR)$(PREFIX)/share/dsh-desktop/vision; \ + mkdir -p $(DESTDIR)$(PREFIX)/share/dsh-desktop; \ + cp -R plugins/dsh-desktop-vision $(DESTDIR)$(PREFIX)/share/dsh-desktop/vision; \ + fi + if [ -f $(ANCHORED_DIR)/preset.yml ]; then \ + rm -rf $(DESTDIR)$(PREFIX)/share/dsh-desktop/anchored-standard; \ + mkdir -p $(DESTDIR)$(PREFIX)/share/dsh-desktop; \ + cp -R $(ANCHORED_DIR) $(DESTDIR)$(PREFIX)/share/dsh-desktop/anchored-standard; \ + fi + if [ -f $(ZERO_DIR)/preset.yml ]; then \ + rm -rf $(DESTDIR)$(PREFIX)/share/dsh-desktop/zero-anchored-standard; \ + mkdir -p $(DESTDIR)$(PREFIX)/share/dsh-desktop; \ + cp -R $(ZERO_DIR) $(DESTDIR)$(PREFIX)/share/dsh-desktop/zero-anchored-standard; \ + fi + @echo "installed to $(PREFIX) — make sure $(PREFIX)/bin is on PATH" + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/dsh-desktop + rm -rf $(DESTDIR)$(PREFIX)/share/dsh-desktop + rm -f $(DESTDIR)$(PREFIX)/share/applications/$(APP_ID).desktop + rm -f $(DESTDIR)$(PREFIX)/share/metainfo/$(APP_ID).metainfo.xml + for size in 16 24 32 48 64 128 256 512; do \ + rm -f "$(DESTDIR)$(PREFIX)/share/icons/hicolor/$${size}x$${size}/apps/$(APP_ID).png"; \ + done + +flatpak-build: $(VENDOR_DIR)/bin/dsh $(MODLENS_DIR)/node_modules/@liustack/modlens $(ANCHORED_DIR)/preset.yml $(ZERO_DIR)/preset.yml + $(BUILDER) --user --force-clean --install-deps-from=flathub $(BUILD_DIR) $(MANIFEST) + +$(VENDOR_DIR)/bin/dsh: + $(MAKE) vendor + +$(MODLENS_DIR)/node_modules/@liustack/modlens: + $(MAKE) vendor + +$(ANCHORED_DIR)/preset.yml $(ZERO_DIR)/preset.yml: + $(MAKE) vendor-anchored + +flatpak-export: + $(FLATPAK) build-export $(REPO_DIR) $(BUILD_DIR) master + +flatpak-install: flatpak-build flatpak-export + $(FLATPAK) --user install -y "$(CURDIR)/$(REPO_DIR)" $(APP_ID) + +flatpak-bundle: flatpak-build flatpak-export + mkdir -p dist + $(FLATPAK) build-bundle $(REPO_DIR) "$(BUNDLE)" $(APP_ID) master + +flatpak-run: + $(FLATPAK) run $(APP_ID) + +clean: + $(CARGO) clean + rm -rf $(BUILD_DIR) $(REPO_DIR) build dist + find . -name __pycache__ -type d -prune -exec rm -rf {} + diff --git a/README.md b/README.md new file mode 100644 index 0000000..08c5ee5 --- /dev/null +++ b/README.md @@ -0,0 +1,215 @@ +# DeepSeek Harness Desktop + +

+ DeepSeek Harness +

+ +

+ 把官方 DeepSeek Harnessdsh)WebUI 放进原生窗口。
+ Tauri 2 壳 · 系统 WebView · 苹果风薄标题栏 · Linux / Windows / macOS +

+ +

+ CI + Release + MIT + release +

+ +本仓库是第三方桌面壳,**不包含** DeepSeek Harness 源码。官方 WebUI 由本机或 Flatpak 内的 `dsh web` 提供;升级 `dsh` 后界面跟着升级,不必重打包前端。 + +![启动页:正在启动官方 WebUI](docs/screenshots/splash.png) + +## 功能 + +| 能力 | 说明 | +| --- | --- | +| 原生窗口 | 启动 `dsh web --host 127.0.0.1 --port 0`,解析 stdout 里的随机端口,用系统 WebView 加载官方 WebUI | +| 薄标题栏 | 左侧 `•••` 菜单(重新启动 / 在浏览器中打开),右侧最小化 · 缩放 · 关闭;不再占用一排后退/前进/刷新 | +| 零重写 | 官方会话、工作区、插件、技能全部保留 | +| 内置 ModLens | 启动时写入 `~/.dsh/profiles/web`,纯文本模型自动套视觉桥 | +| 视觉设置页 | WebUI **设置 → 视觉模型** 配置引擎,写入 `~/.modlens/config.json` | +| 内置锚定预设 | **锚定式标准(实验)**、**零工具锚定式标准(实验)** 写入 `~/.dsh/.agent-presets/` | +| 生命周期 | 启动页显示状态;关窗口停掉 `dsh web`;崩溃可从标题栏重新启动 | + +![主窗口:官方 WebUI 嵌在原生壳里](docs/screenshots/session.png) + +*上图为桌面壳嵌套官方 WebUI 的界面示意(自定义标题栏为实际注入样式)。凭据、会话和插件仍在 `~/.dsh`,截图未使用真实对话记录。* + +![标题栏菜单:重新启动 / 在浏览器中打开](docs/screenshots/menu.png) + +## 内置插件与预设 + +应用启动时会把下面这些东西同步到用户目录。版本钉死在 [Makefile](Makefile);第三方原文许可证见 [docs/licenses/](docs/licenses/) 与 [THIRD_PARTY.md](THIRD_PARTY.md)。 + +### 1. DeepSeek Harness(`dsh`) + +| | | +| --- | --- | +| 上游 | [@deepseek-ai/dsh](https://www.npmjs.com/package/@deepseek-ai/dsh) · [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) | +| 当前版本 | `0.1.0-rc.6` | +| 许可证 | MIT,Copyright (c) 2026 DeepSeek · [docs/licenses/deepseek-harness.LICENSE](docs/licenses/deepseek-harness.LICENSE) | +| 本仓库 | **不 vendoring 源码**。Flatpak 构建时 `make vendor` 打进 Node 24 + npm 包;Windows / macOS / deb / rpm 运行时调用本机 `dsh` | + +解析顺序: + +1. 环境变量 `DSH_DESKTOP_DSH_BIN` +2. 命令行 `--dsh` +3. 应用自己的更新目录(`$XDG_DATA_HOME/dsh-desktop/dsh-prefix/bin/dsh`) +4. **Flatpak**:内置 `/app/bin/dsh` +5. **宿主机**:`~/.local/bin/dsh` → `~/.npm/_npx` 缓存 → `PATH` → `npx --yes @deepseek-ai/dsh` + +设 `DSH_DESKTOP_NO_UPDATE=1` 或传 `--no-update` 可关掉启动时的 npm 更新检查。 + +### 2. ModLens(`@liustack/modlens`) + +| | | +| --- | --- | +| 上游 | [liustack/modlens](https://github.com/liustack/modlens) · [npm @liustack/modlens](https://www.npmjs.com/package/@liustack/modlens) | +| 当前版本 | `3.16.6` | +| 作者 | Leon Liu / [liustack](https://github.com/liustack) | +| 许可证 | MIT · [docs/licenses/modlens.LICENSE](docs/licenses/modlens.LICENSE) | +| 作用 | 给纯文本对话模型补视觉能力(粘贴图片即可)。已声明视觉能力的模型(如 Qwen)不会走这条桥 | +| 安装位置 | 启动时复制到 `~/.dsh/profiles/web/node_modules/@liustack/modlens` | + +官方安装方式(本应用已内置,一般不必再跑): + +```bash +npx -y @deepseek-ai/dsh plugin --profile web add @liustack/modlens@3.16.6 +``` + +### 3. `dsh-desktop-vision`(本仓库) + +| | | +| --- | --- | +| 路径 | [`plugins/dsh-desktop-vision/`](plugins/dsh-desktop-vision/) | +| 版本 | `0.1.4` | +| 许可证 | 与本仓库相同(MIT) | +| 作用 | 在官方 WebUI **设置 → 视觉模型** 增加表单,读写 `~/.modlens/config.json` | + +支持的引擎: + +| 引擎 | 默认接口 | 获取密钥 | +| --- | --- | --- | +| OpenAI 兼容 | `https://api.openai.com/v1` | [platform.openai.com/api-keys](https://platform.openai.com/api-keys) | +| Gemini API | `https://generativelanguage.googleapis.com` | [aistudio.google.com/apikey](https://aistudio.google.com/apikey) | +| Anthropic | `https://api.anthropic.com` | [console.anthropic.com/settings/keys](https://console.anthropic.com/settings/keys) | +| Antigravity CLI | 本机 CLI,无需填 URL | [antigravity.google](https://antigravity.google/) | +| Claude CLI | 本机 CLI,无需填 URL | [code.claude.com](https://code.claude.com) | + +外链在系统浏览器中打开(Tauri `on_navigation`),密钥只写在本机 ModLens 配置里。 + +![设置 → 视觉模型](docs/screenshots/vision.png) + +### 4. Anchored Standard 预设 + +| | | +| --- | --- | +| 上游 | [xiaobright/dsh-anchored-standard](https://github.com/xiaobright/dsh-anchored-standard) | +| 钉选提交 | [`ffb845c5480adc953392a6db6f8a98ede621174b`](https://github.com/xiaobright/dsh-anchored-standard/commit/ffb845c5480adc953392a6db6f8a98ede621174b) | +| 作者 | [xiaobright](https://github.com/xiaobright) | +| 许可证 | MIT(含 DeepSeek 部分版权)· [LICENSE](docs/licenses/dsh-anchored-standard.LICENSE) · [NOTICE](docs/licenses/dsh-anchored-standard.NOTICE) | +| 本仓库中的名称 | **锚定式标准(实验)**、**零工具锚定式标准(实验)**(`scripts/localize_preset.py` 本地化) | +| 安装位置 | `~/.dsh/.agent-presets/anchored-standard` 与 `zero-anchored-standard` | + +NOTICE 写明:预设改编自 DeepSeek Harness Standard agent preset([deepseek-harness@47f9438](https://github.com/deepseek-ai/deepseek-harness))。这是社区实验 preset,**不是** DeepSeek 官方预设。若用户还没有默认 preset,桌面会把默认设为锚定式标准。 + +## 安装包 + +打 `v*` 标签(例如 `git tag v0.1.0 && git push origin v0.1.0`)后,[Release 工作流](.github/workflows/release.yml)会测试、打包并发布: + +| 平台 | 产物 | 运行时要求 | +| --- | --- | --- | +| Windows | NSIS `.exe`、MSI | [WebView2](https://developer.microsoft.com/microsoft-edge/webview2/)(安装器可引导下载);本机 `dsh` | +| macOS | Apple Silicon / Intel `.dmg` | 未公证,首次打开需在「系统设置 → 隐私与安全性」允许;本机 `dsh` | +| Linux | `.deb`、`.rpm` | WebKitGTK 4.1;本机 `dsh` | +| Linux | `.flatpak` | **自带** Node.js 24 与 `@deepseek-ai/dsh`,不需要本机安装 dsh | + +从 [GitHub Releases](https://github.com/TommyFang2077/dsh-desktop/releases) 下载对应文件。 + +本机 `dsh`: + +```bash +npm install -g @deepseek-ai/dsh +# 或 +npx --yes @deepseek-ai/dsh --version +``` + +## 从源码运行 + +开发依赖:Rust stable、系统 WebView。 + +- Linux:GTK 3 + WebKitGTK 4.1(Fedora:`gtk3-devel webkit2gtk4.1-devel`;Debian/Ubuntu:`libgtk-3-dev libwebkit2gtk-4.1-dev`) +- macOS:WKWebView(Xcode Command Line Tools) +- Windows:WebView2 + +```bash +git clone https://github.com/TommyFang2077/dsh-desktop.git +cd dsh-desktop +make vendor-native # ModLens + 锚定预设(Tauri 打包资源) +make run # 普通模式(跳过更新,便于开发) +make dev # 开 WebView 检查器和调试日志 +cargo run -p dsh-desktop -- --cwd ~/your-project +``` + +```bash +make test +``` + +`make install` 把二进制装到 `~/.local/bin/dsh-desktop`,应用菜单里会出现 **DeepSeek Harness**。 + +本地打原生包(先 `make vendor-native`): + +```bash +cargo tauri build --bundles deb,rpm # Linux +cargo tauri build --bundles nsis,msi # Windows +cargo tauri build --bundles app,dmg # macOS +``` + +## Flatpak + +Flatpak 是唯一把 `dsh` 打进包内的渠道。 + +```bash +flatpak remote-add --user --if-not-exists flathub \ + https://dl.flathub.org/repo/flathub.flatpakrepo +flatpak install --user -y flathub org.gnome.Sdk//47 org.flatpak.Builder \ + org.freedesktop.Sdk.Extension.rust-stable//24.08 \ + org.freedesktop.Sdk.Extension.node24//24.08 + +make vendor +make flatpak-build +make flatpak-install +make flatpak-run +make flatpak-bundle +``` + +清单:[flatpak/io.github.tommyfang.DshDesktop.yml](flatpak/io.github.tommyfang.DshDesktop.yml)。权限:网络、宿主文件系统、Wayland/X11、下载目录。 + +## 项目结构 + +```text +dsh-desktop/ +├── ui/ # 启动页 + 注入到 WebUI 的标题栏 +├── src-tauri/ # Tauri 窗口、命令、deb/rpm/nsis/dmg +├── crates/dsh-core/ # 启动 / 更新 / ModLens / 预设 / 剪贴板 +├── plugins/dsh-desktop-vision/ # 设置 → 视觉模型 +├── data/ # .desktop、图标、AppStream +├── flatpak/ +├── docs/screenshots/ # README 截图 +├── docs/licenses/ # 第三方许可证副本 +├── vendor/ # make vendor 生成(git 忽略) +├── scripts/vendor-native.sh +├── scripts/localize_preset.py +└── .github/workflows/ # 测试 + 多平台发布 +``` + +## 图标与商标 + +应用图标使用 [Icons8 上的 DeepSeek 图标](https://icons8.com/icon/YWOidjGxCpFW/deepseek)。DeepSeek 名称与鲸鱼标志归 DeepSeek 所有。本项目是独立第三方桌面壳,与 DeepSeek、ModLens、Anchored Standard 的作者均无从属关系。 + +## License + +本仓库源码为 [MIT](LICENSE),Copyright © 2026 TommyFang2077。 + +运行时还会用到上游 MIT 组件,版权仍归原作者,详见 [THIRD_PARTY.md](THIRD_PARTY.md)。 diff --git a/THIRD_PARTY.md b/THIRD_PARTY.md new file mode 100644 index 0000000..a1de674 --- /dev/null +++ b/THIRD_PARTY.md @@ -0,0 +1,34 @@ +# Third-party notices + +DeepSeek Harness Desktop (this repository) is MIT-licensed. It is a native +shell around other projects. Those projects keep their own copyright and +license. Copies of the relevant texts live in `docs/licenses/`. + +This project is **not** affiliated with, endorsed by, or maintained by +DeepSeek, liustack, or xiaobright. + +## Bundled or launched at runtime + +| Component | Upstream | Version / pin | License | How this app uses it | +| --- | --- | --- | --- | --- | +| DeepSeek Harness (`@deepseek-ai/dsh`) | [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) | `0.1.0-rc.6` | MIT, © 2026 DeepSeek | Official WebUI. Not shipped as source. Flatpak vendors the npm package; other packages call a host `dsh`. See `docs/licenses/deepseek-harness.LICENSE`. | +| ModLens (`@liustack/modlens`) | [liustack/modlens](https://github.com/liustack/modlens) | `3.16.6` | MIT, © 2026 Leon Liu (liustack) | Copied into `~/.dsh/profiles/web` so text-only models can read images. See `docs/licenses/modlens.LICENSE`. | +| Anchored Standard | [xiaobright/dsh-anchored-standard](https://github.com/xiaobright/dsh-anchored-standard) | commit `ffb845c5480adc953392a6db6f8a98ede621174b` | MIT, © 2026 xiaobright; portions © 2026 DeepSeek | Localized as **锚定式标准(实验)** and **零工具锚定式标准(实验)**, written to `~/.dsh/.agent-presets/`. See `docs/licenses/dsh-anchored-standard.LICENSE` and `.NOTICE`. | +| `dsh-desktop-vision` | this repo `plugins/dsh-desktop-vision/` | `0.1.4` | MIT, © 2026 TommyFang2077 | Settings page **设置 → 视觉模型**; writes `~/.modlens/config.json`. | + +The Anchored Standard NOTICE records that the presets adapt the DeepSeek +Harness Standard agent preset from +https://github.com/deepseek-ai/deepseek-harness +(commit `47f943859bef60e4160492346772ded9b24f765a`). + +## App icon + +The application icon is the [Icons8 DeepSeek icon](https://icons8.com/icon/YWOidjGxCpFW/deepseek). +DeepSeek and the whale mark belong to their owners. + +## Tauri and system WebView + +The window is built with [Tauri 2](https://tauri.app/) (MIT / Apache-2.0) and +the platform WebView (WebKitGTK 4.1, WKWebView, or WebView2). Those components +are linked or bundled by the respective platform toolchains, not copied into +this source tree. diff --git a/bin/dsh-desktop b/bin/dsh-desktop new file mode 100755 index 0000000..dbd0f65 --- /dev/null +++ b/bin/dsh-desktop @@ -0,0 +1,13 @@ +#!/bin/sh +# Run a built binary from the checkout, or fall back to cargo. +set -e +ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) +for candidate in \ + "$ROOT/target/release/dsh-desktop" \ + "$ROOT/target/debug/dsh-desktop" +do + if [ -x "$candidate" ]; then + exec "$candidate" "$@" + fi +done +exec cargo run --manifest-path "$ROOT/Cargo.toml" -p dsh-desktop -- "$@" diff --git a/crates/dsh-core/Cargo.toml b/crates/dsh-core/Cargo.toml new file mode 100644 index 0000000..544822a --- /dev/null +++ b/crates/dsh-core/Cargo.toml @@ -0,0 +1,23 @@ +[package] +name = "dsh-core" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +description = "Launcher, updater, and profile helpers for DeepSeek Harness Desktop" + +[dependencies] +base64 = "0.22" +dirs = "6" +regex = "1" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +shlex = "1" +thiserror = "2" +which = "8" + +[target.'cfg(unix)'.dependencies] +libc = "0.2" + +[dev-dependencies] +tempfile = "3" diff --git a/crates/dsh-core/src/clipboard.rs b/crates/dsh-core/src/clipboard.rs new file mode 100644 index 0000000..4922334 --- /dev/null +++ b/crates/dsh-core/src/clipboard.rs @@ -0,0 +1,227 @@ +use std::path::Path; + +use base64::Engine; +use serde::Serialize; + +pub const IMAGE_MIMES: &[&str] = &[ + "image/png", + "image/jpeg", + "image/jpg", + "image/webp", + "image/gif", + "image/bmp", + "image/tiff", +]; + +pub const INGEST_JS: &str = include_str!("../../../ui/inject/ingest.js"); + +#[derive(Debug, Clone, Serialize)] +pub struct ClipboardFile { + pub name: String, + #[serde(rename = "type")] + pub mime: String, + pub b64: String, +} + +pub fn is_image_mime(mime: &str) -> bool { + let mime = mime.split(';').next().unwrap_or(mime).trim().to_ascii_lowercase(); + let mime = if mime == "image/jpg" { + "image/jpeg" + } else { + mime.as_str() + }; + IMAGE_MIMES.contains(&mime) || mime == "image/jpeg" +} + +pub fn filename_for_mime(mime: &str, index: usize) -> String { + let mime = mime.split(';').next().unwrap_or(mime).trim().to_ascii_lowercase(); + let ext = match mime.as_str() { + "image/png" => "png", + "image/jpeg" | "image/jpg" => "jpg", + "image/webp" => "webp", + "image/gif" => "gif", + "image/bmp" => "bmp", + "image/tiff" => "tiff", + _ => "png", + }; + if index == 0 { + format!("clipboard.{ext}") + } else { + format!("clipboard-{}.{ext}", index + 1) + } +} + +pub fn build_ingest_call(files: &[ClipboardFile]) -> String { + let payload = serde_json::to_string(files).unwrap_or_else(|_| "[]".into()); + format!("window.__dshDesktopPasteFiles && window.__dshDesktopPasteFiles({payload});") +} + +pub fn parse_uri_list(payload: &str) -> Vec { + let mut paths = Vec::new(); + for raw in payload.lines() { + let line = raw.trim(); + if line.is_empty() || line.starts_with('#') { + continue; + } + if let Some(rest) = line.strip_prefix("file:") { + if let Ok(url) = url_parse_file(rest) { + paths.push(url); + } + } else if line.starts_with('/') { + paths.push(line.to_string()); + } + } + paths +} + +fn url_parse_file(rest: &str) -> Result { + // file:///home/me/Pictures/shot.png or file://localhost/home/... + let uri = if rest.starts_with("//") { + format!("file:{rest}") + } else { + format!("file:{rest}") + }; + let decoded = percent_decode(&uri); + if let Some(idx) = decoded.find("://") { + let after = &decoded[idx + 3..]; + let path = after + .strip_prefix("localhost") + .unwrap_or(after); + return Ok(path.to_string()); + } + if let Some(path) = decoded.strip_prefix("file:") { + return Ok(path.to_string()); + } + Ok(decoded) +} + +fn percent_decode(input: &str) -> String { + let bytes = input.as_bytes(); + let mut out = Vec::with_capacity(bytes.len()); + let mut i = 0; + while i < bytes.len() { + if bytes[i] == b'%' && i + 2 < bytes.len() { + if let Ok(v) = u8::from_str_radix(std::str::from_utf8(&bytes[i + 1..i + 3]).unwrap_or(""), 16) + { + out.push(v); + i += 3; + continue; + } + } + out.push(bytes[i]); + i += 1; + } + String::from_utf8_lossy(&out).into_owned() +} + +pub fn files_from_paths(paths: I) -> Vec +where + I: IntoIterator, + S: AsRef, +{ + let mut out = Vec::new(); + for (index, raw) in paths.into_iter().enumerate() { + let path = Path::new(raw.as_ref()); + if !path.is_file() { + continue; + } + let suffix = path + .extension() + .and_then(|s| s.to_str()) + .unwrap_or("") + .to_ascii_lowercase(); + let mime = match suffix.as_str() { + "png" => "image/png", + "jpg" | "jpeg" => "image/jpeg", + "webp" => "image/webp", + "gif" => "image/gif", + "bmp" => "image/bmp", + "tif" | "tiff" => "image/tiff", + _ => continue, + }; + let Ok(data) = std::fs::read(path) else { + continue; + }; + if data.is_empty() { + continue; + } + let name = path + .file_name() + .and_then(|s| s.to_str()) + .map(|s| s.to_string()) + .unwrap_or_else(|| filename_for_mime(mime, index)); + out.push(ClipboardFile { + name, + mime: mime.to_string(), + b64: base64::engine::general_purpose::STANDARD.encode(data), + }); + } + out +} + +pub fn file_from_bytes(name: String, mime: String, data: Vec) -> Option { + if data.is_empty() || !is_image_mime(&mime) { + return None; + } + Some(ClipboardFile { + name, + mime: mime.split(';').next().unwrap_or(&mime).trim().to_string(), + b64: base64::engine::general_purpose::STANDARD.encode(data), + }) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn mime_and_filename() { + assert!(is_image_mime("image/png")); + assert!(is_image_mime("image/jpeg; charset=binary")); + assert!(is_image_mime("image/jpg")); + assert!(!is_image_mime("text/plain")); + assert_eq!(filename_for_mime("image/png", 0), "clipboard.png"); + assert_eq!(filename_for_mime("image/jpeg", 1), "clipboard-2.jpg"); + } + + #[test] + fn ingest_js_defines_helper() { + assert!(INGEST_JS.contains("window.__dshDesktopPasteFiles")); + assert!(INGEST_JS.contains("DragEvent")); + assert!(INGEST_JS.contains("new File")); + assert!(INGEST_JS.contains("text/uri-list")); + } + + #[test] + fn build_ingest_call_embeds_payload() { + let files = [ClipboardFile { + name: "shot.png".into(), + mime: "image/png".into(), + b64: base64::engine::general_purpose::STANDARD.encode(b"\x89PNG"), + }]; + let script = build_ingest_call(&files); + assert!(script.contains("__dshDesktopPasteFiles")); + assert!(script.contains("shot.png")); + assert!(script.contains("image/png")); + assert!(!script.contains(", \"hi\"")); + } + + #[test] + fn parse_file_uri() { + let payload = "# comment\nfile:///home/me/Pictures/shot.png\n"; + assert_eq!( + parse_uri_list(payload), + vec!["/home/me/Pictures/shot.png".to_string()] + ); + } + + #[test] + fn parse_plain_path() { + assert_eq!(parse_uri_list("/tmp/a.jpg"), vec!["/tmp/a.jpg".to_string()]); + } + + #[test] + fn skips_non_images() { + assert!(files_from_paths(["/no/such/file.txt"]).is_empty()); + } +} diff --git a/crates/dsh-core/src/launcher.rs b/crates/dsh-core/src/launcher.rs new file mode 100644 index 0000000..1d0eaca --- /dev/null +++ b/crates/dsh-core/src/launcher.rs @@ -0,0 +1,437 @@ +use std::collections::VecDeque; +use std::io::{BufRead, BufReader}; +use std::path::{Path, PathBuf}; +use std::process::{Child, Command, Stdio}; +use std::sync::{Arc, Mutex}; +use std::thread; +use std::time::Instant; + +use regex::Regex; +use thiserror::Error; + +use crate::paths::{home_dir, is_flatpak}; +use crate::updater::update_dsh_bin; +use crate::{ENV_BIN_OVERRIDE, ENV_CWD_OVERRIDE}; + +pub const DSH_DEFAULT_HOST: &str = "127.0.0.1"; +pub const URL_TIMEOUT_SECONDS: u64 = 120; + +#[derive(Debug, Error)] +pub enum DshNotFound { + #[error("{0}")] + Message(String), +} + +impl DshNotFound { + fn new(msg: impl Into) -> Self { + Self::Message(msg.into()) + } +} + +pub fn strip_ansi(text: &str) -> String { + let re = Regex::new(r"\x1b\[[0-9;?]*[ -/]*[@-~]").expect("ansi regex"); + re.replace_all(text, "").into_owned() +} + +pub fn parse_dsh_url(line: &str) -> Option { + let re = Regex::new(r"https?://(?:\[[0-9a-fA-F:]+\]|[^/\s:]+)(?::\d+)?(?:/[^\s]*)?") + .expect("url regex"); + re.find(&strip_ansi(line)).map(|m| m.as_str().to_string()) +} + +pub fn default_workspace() -> PathBuf { + if let Ok(raw) = std::env::var(ENV_CWD_OVERRIDE) { + if !raw.is_empty() { + return PathBuf::from(&raw) + .canonicalize() + .unwrap_or_else(|_| PathBuf::from(raw)); + } + } + if is_flatpak() { + return home_dir(); + } + std::env::current_dir().unwrap_or_else(|_| home_dir()) +} + +pub fn find_npx_dsh_bins() -> Vec { + let pattern = home_dir().join(".npm/_npx/*/node_modules/.bin/dsh"); + let mut bins = Vec::new(); + if let Some(globbed) = pattern.to_str() { + if let Ok(paths) = glob_simple(globbed) { + for path in paths { + if is_executable(&path) { + bins.push(path); + } + } + } + } + bins.sort_by_key(|p| std::fs::metadata(p).and_then(|m| m.modified()).ok()); + bins.reverse(); + bins +} + +fn glob_simple(pattern: &str) -> std::io::Result> { + // Only the `_npx/*/` segment is a wildcard. + let Some((prefix, rest)) = pattern.split_once('*') else { + return Ok(vec![PathBuf::from(pattern)]); + }; + let suffix = rest.trim_start_matches('/'); + let parent = Path::new(prefix); + let mut out = Vec::new(); + if parent.is_dir() { + for entry in std::fs::read_dir(parent)? { + let entry = entry?; + let candidate = entry.path().join(suffix); + if candidate.is_file() { + out.push(candidate); + } + } + } + Ok(out) +} + +pub struct DshLauncher { + dsh_bin_override: Option, + in_flatpak: bool, + pub workspace: PathBuf, +} + +impl DshLauncher { + pub fn new(dsh_bin: Option, workspace: Option) -> Self { + Self { + dsh_bin_override: dsh_bin, + in_flatpak: is_flatpak(), + workspace: workspace.unwrap_or_else(default_workspace), + } + } + + pub fn resolve(&self) -> Result, DshNotFound> { + let mut candidates: Vec> = Vec::new(); + + if let Ok(env_override) = std::env::var(ENV_BIN_OVERRIDE) { + if !env_override.is_empty() { + let parts = shlex::split(&env_override).ok_or_else(|| { + DshNotFound::new(format!("{ENV_BIN_OVERRIDE} 不是合法的命令")) + })?; + candidates.push(parts); + } + } + if let Some(cli) = &self.dsh_bin_override { + let parts = shlex::split(cli) + .ok_or_else(|| DshNotFound::new("dsh 命令不是合法的命令"))?; + candidates.push(parts); + } + + let updated = update_dsh_bin(); + if is_executable(&updated) { + candidates.push(vec![updated.to_string_lossy().into_owned()]); + } + + if self.in_flatpak { + if let Some(bundled) = which::which("dsh").ok() { + candidates.push(vec![bundled.to_string_lossy().into_owned()]); + } + for path in crate::updater::BUNDLED_DSH { + let path = PathBuf::from(path); + if is_executable(&path) + && candidates + .first() + .and_then(|c| c.first()) + .map(|s| s.as_str()) + != Some(path.to_string_lossy().as_ref()) + { + candidates.push(vec![path.to_string_lossy().into_owned()]); + } + } + } else { + let local_bin = dsh_bin_name(&home_dir().join(".local/bin")); + if is_executable(&local_bin) { + candidates.push(vec![local_bin.to_string_lossy().into_owned()]); + } + if let Some(cached) = find_npx_dsh_bins().into_iter().next() { + candidates.push(vec![cached.to_string_lossy().into_owned()]); + } + if let Ok(host) = which::which("dsh") { + candidates.push(vec![host.to_string_lossy().into_owned()]); + } + if which::which("npx").is_ok() { + candidates.push(vec![ + "npx".into(), + "--yes".into(), + "@deepseek-ai/dsh".into(), + ]); + } + } + + let chosen = candidates.into_iter().next().ok_or_else(|| { + if self.in_flatpak { + DshNotFound::new( + "此 Flatpak 没有内置 dsh 可执行文件。\n请重新构建/安装 io.github.tommyfang.DshDesktop。", + ) + } else { + DshNotFound::new( + "找不到 DeepSeek Harness (dsh),也没有可用的 npx。\n请先安装:npm install -g @deepseek-ai/dsh\n或用 DSH_DESKTOP_DSH_BIN 指定 dsh 的完整路径。", + ) + } + })?; + Ok(chosen) + } + + pub fn web_argv(&self) -> Result, DshNotFound> { + let mut argv = self.resolve()?; + argv.extend([ + "web".into(), + "--host".into(), + DSH_DEFAULT_HOST.into(), + "--port".into(), + "0".into(), + ]); + Ok(argv) + } + + pub fn start(&self) -> Result { + let argv = self.web_argv()?; + let mut cmd = Command::new(&argv[0]); + cmd.args(&argv[1..]) + .current_dir(&self.workspace) + .stdout(Stdio::piped()) + .stderr(Stdio::inherit()) + .stdin(Stdio::null()); + #[cfg(unix)] + { + use std::os::unix::process::CommandExt; + cmd.process_group(0); + } + #[cfg(windows)] + { + use std::os::windows::process::CommandExt; + const CREATE_NEW_PROCESS_GROUP: u32 = 0x00000200; + cmd.creation_flags(CREATE_NEW_PROCESS_GROUP); + } + let mut child = cmd.spawn().map_err(|exc| { + DshNotFound::new(format!("无法启动 dsh web: {exc}")) + })?; + let stdout = child.stdout.take(); + Ok(DshProcess::new(child, stdout, self.in_flatpak)) + } +} + +fn dsh_bin_name(dir: &Path) -> PathBuf { + #[cfg(windows)] + { + let cmd = dir.join("dsh.cmd"); + if cmd.is_file() { + return cmd; + } + } + dir.join("dsh") +} + +pub fn is_executable(path: &Path) -> bool { + if !path.is_file() { + return false; + } + #[cfg(unix)] + { + use std::os::unix::fs::PermissionsExt; + std::fs::metadata(path) + .map(|m| m.permissions().mode() & 0o111 != 0) + .unwrap_or(false) + } + #[cfg(windows)] + { + true + } +} + +pub struct DshProcess { + child: Arc>, + pub in_flatpak: bool, + pub url: Arc>>, + pub lines: Arc>>, + pub started_at: Instant, +} + +impl DshProcess { + fn new(child: Child, stdout: Option, in_flatpak: bool) -> Self { + let proc = Self { + child: Arc::new(Mutex::new(child)), + in_flatpak, + url: Arc::new(Mutex::new(None)), + lines: Arc::new(Mutex::new(VecDeque::with_capacity(400))), + started_at: Instant::now(), + }; + if let Some(stdout) = stdout { + let lines = Arc::clone(&proc.lines); + let url = Arc::clone(&proc.url); + thread::spawn(move || { + let reader = BufReader::new(stdout); + for line in reader.lines() { + let Ok(line) = line else { break }; + let clean = strip_ansi(&line); + let trimmed = clean.trim_end(); + if !trimmed.is_empty() { + if let Ok(mut buf) = lines.lock() { + if buf.len() == 400 { + buf.pop_front(); + } + buf.push_back(trimmed.to_string()); + } + } + if let Some(found) = parse_dsh_url(&line) { + if let Ok(mut slot) = url.lock() { + if slot.is_none() { + *slot = Some(found); + } + } + } + } + }); + } + proc + } + + pub fn poll(&self) -> Option { + self.child + .lock() + .ok() + .and_then(|mut child| child.try_wait().ok().flatten().and_then(|s| s.code())) + } + + pub fn take_url(&self) -> Option { + self.url.lock().ok().and_then(|g| g.clone()) + } + + pub fn snapshot_lines(&self) -> Vec { + self.lines + .lock() + .map(|g| g.iter().cloned().collect()) + .unwrap_or_default() + } + + pub fn stop(&self) { + let Ok(mut child) = self.child.lock() else { + return; + }; + if child.try_wait().ok().flatten().is_some() { + return; + } + let pid = child.id(); + #[cfg(unix)] + unsafe { + libc::killpg(pid as i32, libc::SIGTERM); + } + #[cfg(windows)] + { + let _ = child.kill(); + } + let start = Instant::now(); + while start.elapsed() < std::time::Duration::from_secs(3) { + if child.try_wait().ok().flatten().is_some() { + return; + } + thread::sleep(std::time::Duration::from_millis(50)); + } + #[cfg(unix)] + unsafe { + libc::killpg(pid as i32, libc::SIGKILL); + } + let _ = child.kill(); + let _ = child.wait(); + } +} + +impl Drop for DshProcess { + fn drop(&mut self) { + self.stop(); + } +} + +#[cfg(test)] +mod tests { + use super::*; + + static ENV_LOCK: Mutex<()> = Mutex::new(()); + + #[test] + fn parse_ipv4_url() { + assert_eq!( + parse_dsh_url("dsh web: http://127.0.0.1:39095"), + Some("http://127.0.0.1:39095".into()) + ); + } + + #[test] + fn parse_ipv6_url() { + assert_eq!( + parse_dsh_url("dsh web: http://[::1]:39096"), + Some("http://[::1]:39096".into()) + ); + } + + #[test] + fn parse_url_with_trailing_text() { + assert_eq!( + parse_dsh_url("booted profile web on http://127.0.0.1:39095 (ready)"), + Some("http://127.0.0.1:39095".into()) + ); + } + + #[test] + fn parse_no_url() { + assert_eq!(parse_dsh_url("waiting for network…"), None); + } + + #[test] + fn strip_ansi_codes() { + assert_eq!(strip_ansi("\x1b[36mhttp://x\x1b[0m"), "http://x"); + } + + #[test] + fn workspace_uses_env_override() { + let _guard = ENV_LOCK.lock().unwrap(); + std::env::set_var(ENV_CWD_OVERRIDE, "/tmp/some-workspace"); + let ws = default_workspace(); + std::env::remove_var(ENV_CWD_OVERRIDE); + assert!(ws.ends_with("some-workspace") || ws == PathBuf::from("/tmp/some-workspace")); + } + + #[test] + fn env_override_wins() { + let _guard = ENV_LOCK.lock().unwrap(); + std::env::set_var(ENV_BIN_OVERRIDE, "echo"); + let argv = DshLauncher::new(None, None).resolve().unwrap(); + std::env::remove_var(ENV_BIN_OVERRIDE); + assert_eq!(argv, vec!["echo"]); + } + + #[test] + fn invalid_env_override_raises() { + let _guard = ENV_LOCK.lock().unwrap(); + std::env::set_var(ENV_BIN_OVERRIDE, "'unterminated"); + let err = DshLauncher::new(None, None).resolve(); + std::env::remove_var(ENV_BIN_OVERRIDE); + assert!(err.is_err()); + } + + #[test] + fn cli_override() { + let _guard = ENV_LOCK.lock().unwrap(); + std::env::remove_var(ENV_BIN_OVERRIDE); + let argv = DshLauncher::new(Some("/opt/dsh/bin/dsh".into()), None) + .resolve() + .unwrap(); + assert_eq!(argv, vec!["/opt/dsh/bin/dsh"]); + } + + #[test] + fn web_argv_shape() { + let _guard = ENV_LOCK.lock().unwrap(); + std::env::set_var(ENV_BIN_OVERRIDE, "dsh-test"); + let argv = DshLauncher::new(None, None).web_argv().unwrap(); + std::env::remove_var(ENV_BIN_OVERRIDE); + assert_eq!(&argv[0..4], ["dsh-test", "web", "--host", "127.0.0.1"]); + assert!(argv.contains(&"--port".into())); + assert_eq!(argv.last().map(String::as_str), Some("0")); + } +} diff --git a/crates/dsh-core/src/lib.rs b/crates/dsh-core/src/lib.rs new file mode 100644 index 0000000..f020855 --- /dev/null +++ b/crates/dsh-core/src/lib.rs @@ -0,0 +1,21 @@ +//! Shared desktop-shell logic for DeepSeek Harness Desktop. +//! +//! This crate has no GUI dependency. The Tauri (or any other) shell starts +//! `dsh web`, keeps the bundled plugins/presets current, and embeds the +//! official WebUI. + +pub mod clipboard; +pub mod launcher; +pub mod modlens; +pub mod paths; +pub mod preset; +pub mod updater; + +pub const APP_ID: &str = "io.github.tommyfang.DshDesktop"; +pub const APP_NAME: &str = "DeepSeek Harness"; +pub const APP_SUMMARY: &str = "Desktop shell for DeepSeek Harness"; +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); + +pub const ENV_BIN_OVERRIDE: &str = "DSH_DESKTOP_DSH_BIN"; +pub const ENV_CWD_OVERRIDE: &str = "DSH_DESKTOP_CWD"; +pub const ENV_NO_UPDATE: &str = "DSH_DESKTOP_NO_UPDATE"; diff --git a/crates/dsh-core/src/modlens.rs b/crates/dsh-core/src/modlens.rs new file mode 100644 index 0000000..67bcd30 --- /dev/null +++ b/crates/dsh-core/src/modlens.rs @@ -0,0 +1,473 @@ +use std::collections::BTreeMap; +use std::path::{Path, PathBuf}; + +use regex::Regex; +use serde_json::{json, Value}; + +use crate::paths::{copy_tree, dsh_home, replace_symlink, BundledPaths}; + +pub const PACKAGE: &str = "@liustack/modlens"; +pub const VISION_PACKAGE: &str = "dsh-desktop-vision"; +pub const MODLENS_VERSION: &str = "3.16.6"; +pub const HIDE_PLAIN_TWINS_JS: &str = include_str!("../../../ui/inject/hide-twins.js"); + +pub const MANAGED_OVERLAY: &str = "\ +# dsh-desktop manages this modlens overlay (wrap every text-only model). +- id: modlens + config: + autoRead: true + families: + - \"\" +"; + +const OFFICIAL_TEXT_PROVIDERS: &[(&str, &str)] = &[ + ("deepseek-official", "deepseek-modlens"), + ("deepseek", "deepseek-modlens"), +]; + +#[derive(Debug, Clone)] +pub struct ModlensEnsureResult { + pub status: &'static str, + pub version: Option, + pub message: String, +} + +pub fn web_profile_dir() -> PathBuf { + dsh_home().join("profiles/web") +} + +fn package_dir(prefix: &Path) -> PathBuf { + prefix.join("node_modules/@liustack/modlens") +} + +pub fn read_modlens_version(prefix: &Path) -> Option { + let text = std::fs::read_to_string(package_dir(prefix).join("package.json")).ok()?; + let data: Value = serde_json::from_str(&text).ok()?; + data.get("version") + .and_then(|v| v.as_str()) + .map(|s| s.to_string()) +} + +pub fn bundled_vision_plugin(paths: &BundledPaths) -> Option { + paths + .find_dir("vision", "package.json") + .or_else(|| paths.find_dir("dsh-desktop-vision", "package.json")) + .or_else(|| paths.find_dir("plugins/dsh-desktop-vision", "package.json")) + .filter(|p| p.join("client.js").is_file()) +} + +pub fn bundled_modlens_prefix(paths: &BundledPaths) -> Option { + paths + .find_dir("modlens", "node_modules/@liustack/modlens") + .or_else(|| paths.find_dir("vendor/modlens", "node_modules/@liustack/modlens")) +} + +fn install_into_profile(src_prefix: &Path, profile: &Path) -> std::io::Result<()> { + let dest_pkg = package_dir(profile); + copy_tree(&package_dir(src_prefix), &dest_pkg, true)?; + let dest_nm = profile.join("node_modules"); + let src_nm = src_prefix.join("node_modules"); + for dep in ["commander", "undici"] { + let src_dep = src_nm.join(dep); + if src_dep.is_dir() { + copy_tree(&src_dep, &dest_nm.join(dep), true)?; + } + } + let fallback = dsh_home().join("profiles/node_modules/@liustack/modlens"); + let _ = replace_symlink(&fallback, &dest_pkg); + Ok(()) +} + +fn read_pkg_version(dir: &Path) -> Option { + let text = std::fs::read_to_string(dir.join("package.json")).ok()?; + let data: Value = serde_json::from_str(&text).ok()?; + data.get("version") + .and_then(|v| v.as_str()) + .map(|s| s.to_string()) +} + +fn install_vision_plugin(paths: &BundledPaths, profile: &Path) -> bool { + let Some(src) = bundled_vision_plugin(paths) else { + return false; + }; + let dest = profile.join("node_modules").join(VISION_PACKAGE); + let up_to_date = dest.join("client.js").is_file() + && dest.join("index.js").is_file() + && read_pkg_version(&dest) == read_pkg_version(&src); + if !up_to_date && copy_tree(&src, &dest, true).is_err() { + return false; + } + let fallback = dsh_home().join("profiles/node_modules").join(VISION_PACKAGE); + let _ = replace_symlink(&fallback, &dest); + true +} + +fn ensure_manifest(profile: &Path, packages: &BTreeMap) -> std::io::Result<()> { + let path = profile.join("package.json"); + let mut data = if path.is_file() { + serde_json::from_str(&std::fs::read_to_string(&path)?).unwrap_or_else(|_| json!({})) + } else { + json!({ + "name": "dsh-profile-web", + "private": true, + "dsh": {"profile": {"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app"]}} + }) + }; + { + let obj = data.as_object_mut().unwrap(); + obj.entry("dependencies").or_insert_with(|| json!({})); + let dsh = obj.entry("dsh").or_insert_with(|| json!({})); + let profile_meta = dsh + .as_object_mut() + .unwrap() + .entry("profile") + .or_insert_with(|| json!({})); + let bundles = profile_meta + .as_object_mut() + .unwrap() + .entry("bundles") + .or_insert_with(|| json!(["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app"])); + if !bundles.is_array() { + *bundles = json!(["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app"]); + } + } + for (name, version) in packages { + data["dependencies"][name] = json!(version); + let arr = data["dsh"]["profile"]["bundles"].as_array_mut().unwrap(); + if !arr.iter().any(|v| v.as_str() == Some(name)) { + arr.push(json!(name)); + } + } + if let Some(parent) = path.parent() { + std::fs::create_dir_all(parent)?; + } + std::fs::write(path, serde_json::to_string_pretty(&data)? + "\n") +} + +pub fn ensure_modlens_overlay(text: &str) -> String { + let body = text.replace("\r\n", "\n"); + let stripped = body.trim(); + if stripped.is_empty() || stripped == "[]" || stripped == "#" { + return MANAGED_OVERLAY.to_string(); + } + let re = Regex::new(r"(?m)^- id:\s*modlens\s*$").unwrap(); + if re.is_match(&body) { + return patch_existing_modlens_entry(&body); + } + let mut body = body; + if !body.ends_with('\n') { + body.push('\n'); + } + body.push('\n'); + body.push_str(MANAGED_OVERLAY); + body +} + +fn patch_existing_modlens_entry(body: &str) -> String { + let lines: Vec<&str> = body.split('\n').collect(); + let mut start = None; + let start_re = Regex::new(r"^- id:\s*modlens\s*$").unwrap(); + for (index, line) in lines.iter().enumerate() { + if start_re.is_match(line) { + start = Some(index); + break; + } + } + let Some(start) = start else { + let mut out = body.trim_end().to_string(); + out.push_str("\n\n"); + out.push_str(MANAGED_OVERLAY); + return out; + }; + let mut end = lines.len(); + for (index, line) in lines.iter().enumerate().skip(start + 1) { + if line.starts_with("- ") && !line.starts_with(' ') { + end = index; + break; + } + } + let block: Vec = lines[start..end].iter().map(|s| (*s).to_string()).collect(); + let new_block = force_wrap_all_config(block).join("\n"); + let new_block = new_block.trim_end(); + let mut out = String::new(); + out.push_str(&lines[..start].join("\n")); + if start > 0 && !out.ends_with('\n') && !out.is_empty() { + out.push('\n'); + } + // reconstruct like Python: lines[:start] + new_block.split + lines[end:] + let mut combined: Vec = lines[..start].iter().map(|s| (*s).to_string()).collect(); + combined.extend(new_block.split('\n').map(|s| s.to_string())); + combined.extend(lines[end..].iter().map(|s| (*s).to_string())); + let mut text = combined.join("\n"); + text = text.trim_end().to_string(); + text.push('\n'); + text +} + +fn force_wrap_all_config(block: Vec) -> Vec { + let config_re = Regex::new(r"^\s+config:\s*$").unwrap(); + let mut block = block; + if !block.iter().any(|line| config_re.is_match(line)) { + block.push(" config:".into()); + } + let mut stripped = Vec::new(); + let mut skipping_families = false; + let families_re = Regex::new(r"^\s+families:\s*").unwrap(); + let item_re = Regex::new(r"^\s+- ").unwrap(); + for line in block { + if skipping_families { + if item_re.is_match(&line) || line.trim().is_empty() { + continue; + } + skipping_families = false; + } + if families_re.is_match(&line) { + skipping_families = true; + continue; + } + stripped.push(line); + } + let autoread_re = Regex::new(r"^\s+autoRead:\s*").unwrap(); + let has_autoread = stripped.iter().any(|line| autoread_re.is_match(line)); + let mut out = Vec::new(); + let mut inserted = false; + for line in stripped { + if autoread_re.is_match(&line) { + let replaced = Regex::new(r"^(\s+autoRead:\s*).*$") + .unwrap() + .replace(&line, "${1}true"); + out.push(replaced.into_owned()); + out.push(" families:".into()); + out.push(" - \"\"".into()); + inserted = true; + continue; + } + let is_config = config_re.is_match(&line); + out.push(line); + if is_config && !has_autoread && !inserted { + out.push(" autoRead: true".into()); + out.push(" families:".into()); + out.push(" - \"\"".into()); + inserted = true; + } + } + if !inserted { + out.push(" autoRead: true".into()); + out.push(" families:".into()); + out.push(" - \"\"".into()); + } + out +} + +pub fn remap_default_text_model(settings_text: &str) -> String { + let mut text = settings_text.to_string(); + if !text.ends_with('\n') { + text.push('\n'); + } + let re = Regex::new(r"(?m)^(agent-default-model:\n(?: .*\n)*)").unwrap(); + let Some(caps) = re.captures(&text) else { + return settings_text.to_string(); + }; + let block = caps.get(1).unwrap().as_str().to_string(); + let provider_re = Regex::new(r"(?m)^ provider:\s*(\S+)\s*$").unwrap(); + let Some(provider) = provider_re.captures(&block) else { + return settings_text.to_string(); + }; + let current = provider[1].trim_matches(|c| c == '"' || c == '\''); + let Some((_, wrapped)) = OFFICIAL_TEXT_PROVIDERS.iter().find(|(k, _)| *k == current) else { + return settings_text.to_string(); + }; + let new_block = Regex::new(r"(?m)^( provider:\s*)\S+\s*$") + .unwrap() + .replacen(&block, 1, format!("${{1}}{wrapped}")); + let start = caps.get(1).unwrap().start(); + let end = caps.get(1).unwrap().end(); + let mut out = String::new(); + out.push_str(&text[..start]); + out.push_str(&new_block); + out.push_str(&text[end..]); + if !settings_text.ends_with('\n') && out.ends_with('\n') { + // keep a trailing newline; Python operated on the padded copy + } + out +} + +pub fn ensure_modlens(paths: &BundledPaths) -> ModlensEnsureResult { + let src = bundled_modlens_prefix(paths); + let profile = web_profile_dir(); + let installed = read_modlens_version(&profile); + let version = src + .as_ref() + .and_then(|p| read_modlens_version(p)) + .or_else(|| installed.clone()) + .unwrap_or_else(|| MODLENS_VERSION.to_string()); + + match ensure_modlens_inner(paths, src.as_deref(), &profile, installed, &version) { + Ok(result) => result, + Err(exc) => ModlensEnsureResult { + status: "failed", + version: Some(version), + message: format!("内置 ModLens 安装失败:{exc}"), + }, + } +} + +fn ensure_modlens_inner( + paths: &BundledPaths, + src: Option<&Path>, + profile: &Path, + installed: Option, + version: &str, +) -> std::io::Result { + std::fs::create_dir_all(profile)?; + let vision_ok = install_vision_plugin(paths, profile); + let mut packages = BTreeMap::new(); + if vision_ok { + packages.insert(VISION_PACKAGE.to_string(), "0.1.0".into()); + } + if src.is_none() && installed.is_none() { + if !packages.is_empty() { + ensure_manifest(profile, &packages)?; + } + return Ok(ModlensEnsureResult { + status: "skipped", + version: None, + message: "未找到内置 ModLens,跳过插件安装".into(), + }); + } + let installed_after = if let Some(src) = src { + if installed.as_deref() != Some(version) { + install_into_profile(src, profile)?; + read_modlens_version(profile).unwrap_or_else(|| version.to_string()) + } else { + installed.clone().unwrap_or_else(|| version.to_string()) + } + } else { + installed.clone().unwrap_or_else(|| version.to_string()) + }; + packages.insert(PACKAGE.to_string(), installed_after.clone()); + ensure_manifest(profile, &packages)?; + let patch = profile.join("cordis.patch.yml"); + let previous = if patch.is_file() { + std::fs::read_to_string(&patch)? + } else { + String::new() + }; + let updated = ensure_modlens_overlay(&previous); + if updated != previous { + std::fs::write(&patch, updated)?; + } + let settings = dsh_home().join("settings.yaml"); + if settings.is_file() { + let original = std::fs::read_to_string(&settings)?; + let remapped = remap_default_text_model(&original); + if remapped != original { + std::fs::write(&settings, remapped)?; + } + } + if src.is_none() { + return Ok(ModlensEnsureResult { + status: "current", + version: Some(installed_after.clone()), + message: format!("已配置已安装的 ModLens {installed_after}(纯文本自动套视觉桥)"), + }); + } + if installed.as_deref() == Some(version) { + return Ok(ModlensEnsureResult { + status: "current", + version: Some(version.to_string()), + message: format!("内置 ModLens {version} 已就绪"), + }); + } + if installed.is_some() { + return Ok(ModlensEnsureResult { + status: "updated", + version: Some(version.to_string()), + message: format!("已将内置 ModLens 更新到 {version}"), + }); + } + Ok(ModlensEnsureResult { + status: "installed", + version: Some(version.to_string()), + message: format!("已启用内置 ModLens {version}"), + }) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn empty_file_gets_managed_overlay() { + let text = ensure_modlens_overlay(""); + assert!(text.contains("id: modlens")); + assert!(text.contains("autoRead: true")); + assert!(text.contains("families:")); + assert!(text.contains("- \"\"")); + } + + #[test] + fn existing_modlens_gains_wrap_all_families() { + let text = ensure_modlens_overlay("- id: modlens\n config:\n autoRead: true\n"); + assert!(text.contains("autoRead: true")); + assert!(text.contains(" - \"\"")); + } + + #[test] + fn replaces_narrow_families() { + let original = "\ +- id: modlens + config: + autoRead: true + families: + - deepseek + - glm +"; + let text = ensure_modlens_overlay(original); + assert!(!text.contains("deepseek")); + assert!(!text.contains("glm")); + assert!(text.contains("- \"\"")); + } + + #[test] + fn keeps_other_entries() { + let original = "- id: other\n config:\n x: 1\n- id: modlens\n config:\n autoRead: false\n"; + let text = ensure_modlens_overlay(original); + assert!(text.contains("id: other")); + assert!(text.contains("autoRead: true")); + assert!(text.contains(" - \"\"")); + } + + #[test] + fn official_deepseek_becomes_modlens() { + let original = "\ +agent-default-model: + provider: deepseek-official + model: deepseek-v4-pro +ui-theme: + preference: dark +"; + let updated = remap_default_text_model(original); + assert!(updated.contains("provider: deepseek-modlens")); + assert!(updated.contains("model: deepseek-v4-pro")); + assert!(updated.contains("preference: dark")); + } + + #[test] + fn qwen_is_left_alone() { + let original = "agent-default-model:\n provider: qwen\n model: qwen-agent\n"; + assert_eq!(remap_default_text_model(original), original); + } + + #[test] + fn already_wrapped_is_left_alone() { + let original = "agent-default-model:\n provider: deepseek-modlens\n model: deepseek-v4-pro\n"; + assert_eq!(remap_default_text_model(original), original); + } + + #[test] + fn hide_twins_script_targets_suffix() { + assert!(HIDE_PLAIN_TWINS_JS.contains("(modlens vision)")); + assert!(HIDE_PLAIN_TWINS_JS.contains("MutationObserver")); + } +} diff --git a/crates/dsh-core/src/paths.rs b/crates/dsh-core/src/paths.rs new file mode 100644 index 0000000..e191b46 --- /dev/null +++ b/crates/dsh-core/src/paths.rs @@ -0,0 +1,179 @@ +use std::env; +use std::path::{Path, PathBuf}; + +/// XDG-style data directory (`~/.local/share` on Linux). +pub fn data_home() -> PathBuf { + if let Some(raw) = env::var_os("XDG_DATA_HOME") { + if !raw.is_empty() { + return PathBuf::from(raw); + } + } + dirs::data_dir().unwrap_or_else(|| home_dir().join(".local/share")) +} + +/// XDG-style cache directory (`~/.cache` on Linux). +pub fn cache_home() -> PathBuf { + if let Some(raw) = env::var_os("XDG_CACHE_HOME") { + if !raw.is_empty() { + return PathBuf::from(raw); + } + } + dirs::cache_dir().unwrap_or_else(|| home_dir().join(".cache")) +} + +pub fn home_dir() -> PathBuf { + dirs::home_dir().unwrap_or_else(|| PathBuf::from(".")) +} + +pub fn dsh_home() -> PathBuf { + if let Some(raw) = env::var_os("DSH_HOME") { + if !raw.is_empty() { + return PathBuf::from(raw); + } + } + home_dir().join(".dsh") +} + +pub fn downloads_dir() -> PathBuf { + dirs::download_dir().unwrap_or_else(|| home_dir().join("Downloads")) +} + +pub fn is_flatpak() -> bool { + Path::new("/.flatpak-info").exists() +} + +/// Roots that may contain bundled ModLens / presets / vision plugin. +/// +/// Search order: extra roots (Tauri resource dir), `$XDG_DATA_HOME/dsh-desktop`, +/// `/app/share/dsh-desktop`, `/usr/share/dsh-desktop`, `~/.local/share/dsh-desktop`, +/// then the source-tree `vendor/` / `plugins/` next to the executable or crate. +#[derive(Debug, Clone, Default)] +pub struct BundledPaths { + extra_roots: Vec, +} + +impl BundledPaths { + pub fn discover() -> Self { + Self::default() + } + + pub fn with_resource_dir(mut self, dir: PathBuf) -> Self { + if dir.is_dir() { + self.extra_roots.insert(0, dir); + } + self + } + + pub fn roots(&self) -> Vec { + let mut roots = self.extra_roots.clone(); + if let Some(xdg) = env::var_os("XDG_DATA_HOME") { + roots.push(PathBuf::from(xdg).join("dsh-desktop")); + } + roots.push(PathBuf::from("/app/share/dsh-desktop")); + roots.push(PathBuf::from("/usr/share/dsh-desktop")); + roots.push(home_dir().join(".local/share/dsh-desktop")); + for repo in repo_roots() { + roots.push(repo); + } + roots + } + + pub fn find_dir(&self, rel: &str, marker: &str) -> Option { + for root in self.roots() { + let candidate = root.join(rel); + if candidate.join(marker).is_file() || candidate.join(marker).is_dir() { + return Some(candidate); + } + } + None + } +} + +fn repo_roots() -> Vec { + let mut roots = Vec::new(); + if let Ok(exe) = env::current_exe() { + if let Some(parent) = exe.parent() { + roots.push(parent.to_path_buf()); + if let Some(grand) = parent.parent() { + roots.push(grand.to_path_buf()); + } + } + } + // crates/dsh-core -> repo root; src-tauri -> repo root + let manifest = PathBuf::from(env!("CARGO_MANIFEST_DIR")); + if let Some(parent) = manifest.parent() { + roots.push(parent.to_path_buf()); + if let Some(grand) = parent.parent() { + roots.push(grand.to_path_buf()); + } + } + roots +} + +pub fn copy_tree(src: &Path, dest: &Path, keep_symlinks: bool) -> std::io::Result<()> { + if dest.exists() { + std::fs::remove_dir_all(dest)?; + } + if let Some(parent) = dest.parent() { + std::fs::create_dir_all(parent)?; + } + copy_tree_inner(src, dest, keep_symlinks) +} + +fn copy_tree_inner(src: &Path, dest: &Path, keep_symlinks: bool) -> std::io::Result<()> { + if src + .file_name() + .and_then(|n| n.to_str()) + .is_some_and(|n| n == ".git") + { + return Ok(()); + } + if src.is_symlink() && keep_symlinks { + let target = std::fs::read_link(src)?; + #[cfg(unix)] + std::os::unix::fs::symlink(target, dest)?; + #[cfg(windows)] + { + if src.is_dir() { + std::os::windows::fs::symlink_dir(target, dest)?; + } else { + std::os::windows::fs::symlink_file(target, dest)?; + } + } + return Ok(()); + } + if src.is_dir() { + std::fs::create_dir_all(dest)?; + for entry in std::fs::read_dir(src)? { + let entry = entry?; + copy_tree_inner(&entry.path(), &dest.join(entry.file_name()), keep_symlinks)?; + } + return Ok(()); + } + std::fs::copy(src, dest)?; + Ok(()) +} + +pub fn replace_symlink(link: &Path, target: &Path) -> std::io::Result<()> { + if let Some(parent) = link.parent() { + std::fs::create_dir_all(parent)?; + } + if link.exists() || link.is_symlink() { + if link.is_dir() && !link.is_symlink() { + std::fs::remove_dir_all(link)?; + } else { + std::fs::remove_file(link)?; + } + } + #[cfg(unix)] + std::os::unix::fs::symlink(target, link)?; + #[cfg(windows)] + { + if target.is_dir() { + std::os::windows::fs::symlink_dir(target, link)?; + } else { + std::os::windows::fs::symlink_file(target, link)?; + } + } + Ok(()) +} diff --git a/crates/dsh-core/src/preset.rs b/crates/dsh-core/src/preset.rs new file mode 100644 index 0000000..bd5f0e0 --- /dev/null +++ b/crates/dsh-core/src/preset.rs @@ -0,0 +1,379 @@ +use std::path::{Path, PathBuf}; + +use regex::Regex; + +use crate::paths::{copy_tree, dsh_home, BundledPaths}; + +pub const PRESET_ID: &str = "anchored-standard"; +pub const ZERO_PRESET_ID: &str = "zero-anchored-standard"; +pub const SOURCE_MARKER: &str = ".dsh-desktop-source"; +pub const DEFAULT_BLOCK: &str = "agent-presets:\n default: anchored-standard\n"; +pub const PRESET_NAME_ZH: &str = "锚定式标准(实验)"; +pub const PRESET_DESCRIPTION_ZH: &str = + "首轮使用 Minimal 的真实工具对(持久 bash + str_replace_editor),不自动注入工作区或技能上下文;首次工具调用或回复后开放完整 Standard 工具。"; +pub const ZERO_PRESET_NAME_ZH: &str = "零工具锚定式标准(实验)"; +pub const ZERO_PRESET_DESCRIPTION_ZH: &str = + "先插入一轮无工具的锚定对话(固定提示),从下一轮起开放完整 Standard 工具。"; + +#[derive(Debug, Clone)] +pub struct BundledPreset { + pub preset_id: &'static str, + pub name_zh: &'static str, + pub description_zh: &'static str, +} + +pub const BUNDLED_PRESETS: &[BundledPreset] = &[ + BundledPreset { + preset_id: PRESET_ID, + name_zh: PRESET_NAME_ZH, + description_zh: PRESET_DESCRIPTION_ZH, + }, + BundledPreset { + preset_id: ZERO_PRESET_ID, + name_zh: ZERO_PRESET_NAME_ZH, + description_zh: ZERO_PRESET_DESCRIPTION_ZH, + }, +]; + +#[derive(Debug, Clone)] +pub struct PresetEnsureResult { + pub status: &'static str, + pub version: Option, + pub message: String, +} + +pub fn preset_install_dir(preset_id: &str) -> PathBuf { + dsh_home().join(".agent-presets").join(preset_id) +} + +fn is_preset_dir(path: &Path) -> bool { + path.is_dir() && path.join("preset.yml").is_file() +} + +pub fn read_source_version(path: &Path) -> Option { + let version = std::fs::read_to_string(path.join(SOURCE_MARKER)).ok()?; + let version = version.trim(); + if version.is_empty() { + None + } else { + Some(version.to_string()) + } +} + +pub fn bundled_preset_dir(paths: &BundledPaths, preset_id: &str) -> Option { + paths + .find_dir(preset_id, "preset.yml") + .or_else(|| paths.find_dir(&format!("vendor/{preset_id}"), "preset.yml")) + .filter(|p| is_preset_dir(p)) +} + +pub fn ensure_default_preset(text: &str) -> String { + let mut body = text.replace("\r\n", "\n"); + if !body.ends_with('\n') { + body.push('\n'); + } + if body.trim().is_empty() { + return DEFAULT_BLOCK.to_string(); + } + let re = Regex::new(r"(?m)^agent-presets:\n((?:[ \t]+.*\n)*)").unwrap(); + let Some(caps) = re.captures(&body) else { + body.push('\n'); + body.push_str(DEFAULT_BLOCK); + return body; + }; + let inner = caps.get(1).unwrap().as_str(); + if Regex::new(r"(?m)^[ \t]+default:\s*\S+") + .unwrap() + .is_match(inner) + { + return body; + } + let insert = format!(" default: {PRESET_ID}\n"); + let start = caps.get(1).unwrap().start(); + let end = caps.get(1).unwrap().end(); + format!("{}{}{}{}", &body[..start], insert, inner, &body[end..]) +} + +pub fn localize_preset_yml(text: &str, name: &str, description: &str) -> String { + let mut body = text.replace("\r\n", "\n"); + if !body.ends_with('\n') { + body.push('\n'); + } + let name_line = format!("name: {}\n", serde_json::to_string(name).unwrap()); + let desc_line = format!( + "description: {}\n", + serde_json::to_string(description).unwrap() + ); + let name_re = Regex::new(r"(?m)^name:.*\n").unwrap(); + if let Some(m) = name_re.find(&body) { + body = format!("{}{}{}", &body[..m.start()], name_line, &body[m.end()..]); + } else { + body = format!("{name_line}{body}"); + } + let desc_re = Regex::new(r"(?m)^description:(?:[ \t].*)?\n(?:[ \t].+\n)*").unwrap(); + if let Some(m) = desc_re.find(&body) { + return format!("{}{}{}", &body[..m.start()], desc_line, &body[m.end()..]); + } + if let Some(m) = name_re.find(&body) { + return format!("{}{}{}", &body[..m.end()], desc_line, &body[m.end()..]); + } + format!("{desc_line}{body}") +} + +fn write_localized_preset(dest: &Path, spec: &BundledPreset) -> std::io::Result<()> { + let path = dest.join("preset.yml"); + let previous = std::fs::read_to_string(&path)?; + let updated = localize_preset_yml(&previous, spec.name_zh, spec.description_zh); + if updated != previous { + std::fs::write(path, updated)?; + } + Ok(()) +} + +fn short_version(version: Option<&str>) -> String { + match version { + None => "bundled".into(), + Some(v) if v.len() > 12 => v[..12].into(), + Some(v) => v.into(), + } +} + +fn ensure_one(paths: &BundledPaths, spec: &BundledPreset) -> PresetEnsureResult { + let src = bundled_preset_dir(paths, spec.preset_id); + let dest = preset_install_dir(spec.preset_id); + let bundled = src.as_ref().and_then(|p| read_source_version(p)); + let installed = if dest.is_dir() { + read_source_version(&dest) + } else { + None + }; + let version = bundled.clone().or_else(|| installed.clone()); + let label = spec.name_zh; + if src.is_none() { + if dest.is_dir() && dest.join("preset.yml").is_file() { + let _ = write_localized_preset(&dest, spec); + return PresetEnsureResult { + status: "current", + version: version.clone(), + message: format!("已配置已安装的{label}({})", short_version(version.as_deref())), + }; + } + return PresetEnsureResult { + status: "skipped", + version: None, + message: format!("未找到内置{label},跳过安装"), + }; + } + let src = src.unwrap(); + if let Err(exc) = (|| -> std::io::Result<()> { + if installed != bundled || !dest.join("preset.yml").is_file() { + copy_tree(&src, &dest, false)?; + } + write_localized_preset(&dest, spec)?; + Ok(()) + })() { + return PresetEnsureResult { + status: "failed", + version, + message: format!("内置{label}安装失败:{exc}"), + }; + } + let sha = short_version(bundled.as_deref()); + if installed == bundled && dest.join("preset.yml").is_file() { + return PresetEnsureResult { + status: "current", + version: bundled, + message: format!("内置{label} {sha} 已就绪"), + }; + } + if installed.is_some() { + return PresetEnsureResult { + status: "updated", + version: bundled, + message: format!("已将内置{label}更新到 {sha}"), + }; + } + PresetEnsureResult { + status: "installed", + version: bundled, + message: format!("已启用内置{label} {sha}"), + } +} + +fn combine(results: &[PresetEnsureResult]) -> PresetEnsureResult { + if results.iter().any(|item| item.status == "failed") { + let failed: Vec<_> = results + .iter() + .filter(|item| item.status == "failed") + .map(|item| item.message.clone()) + .collect(); + return PresetEnsureResult { + status: "failed", + version: None, + message: failed.join(";"), + }; + } + let active: Vec<_> = results + .iter() + .filter(|item| item.status != "skipped") + .collect(); + if active.is_empty() { + return PresetEnsureResult { + status: "skipped", + version: None, + message: "未找到内置锚定预设,跳过安装".into(), + }; + } + let version = active.iter().find_map(|item| item.version.clone()); + let (status, lead) = if active.iter().any(|item| item.status == "updated") { + ("updated", "已更新内置锚定预设") + } else if active.iter().any(|item| item.status == "installed") { + ("installed", "已启用内置锚定预设") + } else { + ("current", "内置锚定预设已就绪") + }; + let detail = active + .iter() + .map(|item| item.message.as_str()) + .collect::>() + .join(";"); + PresetEnsureResult { + status, + version, + message: format!("{lead}。{detail}"), + } +} + +pub fn ensure_anchored_standard(paths: &BundledPaths) -> PresetEnsureResult { + let results: Vec<_> = BUNDLED_PRESETS + .iter() + .map(|spec| ensure_one(paths, spec)) + .collect(); + let combined = combine(&results); + if combined.status == "failed" { + return combined; + } + let settings = dsh_home().join("settings.yaml"); + match (|| -> std::io::Result<()> { + let previous = if settings.is_file() { + std::fs::read_to_string(&settings)? + } else { + String::new() + }; + let updated = ensure_default_preset(&previous); + if updated != previous { + if let Some(parent) = settings.parent() { + std::fs::create_dir_all(parent)?; + } + std::fs::write(&settings, updated)?; + } + Ok(()) + })() { + Ok(()) => combined, + Err(exc) => PresetEnsureResult { + status: "failed", + version: combined.version, + message: format!("写入默认 preset 失败:{exc}"), + }, + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::paths::BundledPaths; + + #[test] + fn empty_file_gets_default_block() { + assert_eq!( + ensure_default_preset(""), + "agent-presets:\n default: anchored-standard\n" + ); + } + + #[test] + fn appends_when_section_missing() { + let updated = ensure_default_preset("ui-theme:\n preference: dark\n"); + assert!(updated.contains("preference: dark")); + assert!(updated.contains("agent-presets:\n default: anchored-standard\n")); + } + + #[test] + fn inserts_default_into_empty_section() { + let updated = ensure_default_preset("agent-presets:\nui-theme:\n preference: dark\n"); + assert!(updated.contains("agent-presets:\n default: anchored-standard\n")); + assert!(updated.contains("preference: dark")); + } + + #[test] + fn keeps_existing_default() { + let original = "agent-presets:\n default: standard\n"; + assert_eq!(ensure_default_preset(original), original); + } + + #[test] + fn does_not_match_permission_default_preset() { + let original = "permission:\n defaultPreset: danger-full-access\n"; + let updated = ensure_default_preset(original); + assert!(updated.contains("defaultPreset: danger-full-access")); + assert!(updated.contains("agent-presets:\n default: anchored-standard\n")); + } + + #[test] + fn replaces_english_name_and_description() { + let original = "\ +name: Anchored Standard (experimental) +description: Bootstrap with the Minimal preset's real tool pair. +order: 5 +"; + let updated = localize_preset_yml(original, PRESET_NAME_ZH, PRESET_DESCRIPTION_ZH); + assert!(updated.contains(PRESET_NAME_ZH)); + assert!(updated.contains(PRESET_DESCRIPTION_ZH)); + assert!(!updated.contains("Anchored Standard (experimental)")); + assert!(!updated.contains("Bootstrap")); + assert!(updated.contains("order: 5")); + } + + #[test] + fn inserts_description_after_name() { + let updated = localize_preset_yml("name: Anchored Standard\norder: 5\n", PRESET_NAME_ZH, PRESET_DESCRIPTION_ZH); + assert!(updated.contains(PRESET_NAME_ZH)); + assert!(!updated.contains("name: Anchored Standard\n")); + assert!(updated.contains(PRESET_DESCRIPTION_ZH)); + assert!(updated.contains("order: 5")); + } + + #[test] + fn installs_from_bundle_and_sets_default() { + let tmp = tempfile::TempDir::new().unwrap(); + let src = tmp.path().join("anchored-standard"); + std::fs::create_dir_all(&src).unwrap(); + std::fs::write(src.join("preset.yml"), "name: Anchored Standard\n").unwrap(); + std::fs::write(src.join(SOURCE_MARKER), "abc123def456\n").unwrap(); + let home = tmp.path().join(".dsh"); + std::env::set_var("DSH_HOME", &home); + let paths = BundledPaths::discover().with_resource_dir(tmp.path().to_path_buf()); + let result = ensure_anchored_standard(&paths); + std::env::remove_var("DSH_HOME"); + assert_eq!(result.status, "installed"); + let dest = home.join(".agent-presets").join(PRESET_ID); + assert!(dest.join("preset.yml").is_file()); + let yml = std::fs::read_to_string(dest.join("preset.yml")).unwrap(); + assert!(yml.contains(PRESET_DESCRIPTION_ZH)); + let settings = std::fs::read_to_string(home.join("settings.yaml")).unwrap(); + assert!(settings.contains("default: anchored-standard")); + } + + #[test] + fn localizes_zero_preset() { + let original = "\ +name: Zero-Anchored Standard (experimental) +description: Inject one zero-tool anchor turn. +order: 6 +"; + let updated = localize_preset_yml(original, ZERO_PRESET_NAME_ZH, ZERO_PRESET_DESCRIPTION_ZH); + assert!(updated.contains(ZERO_PRESET_NAME_ZH)); + assert!(updated.contains(ZERO_PRESET_DESCRIPTION_ZH)); + assert!(!updated.contains("Zero-Anchored")); + } +} diff --git a/crates/dsh-core/src/updater.rs b/crates/dsh-core/src/updater.rs new file mode 100644 index 0000000..bdb659c --- /dev/null +++ b/crates/dsh-core/src/updater.rs @@ -0,0 +1,348 @@ +use std::path::{Path, PathBuf}; +use std::process::{Command, Stdio}; +use std::sync::atomic::{AtomicBool, Ordering}; +use std::sync::Arc; +use std::thread; +use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; + +use crate::paths::{cache_home, data_home}; +use crate::ENV_NO_UPDATE; + +pub const DSH_PACKAGE: &str = "@deepseek-ai/dsh"; +pub const VIEW_TIMEOUT_SECONDS: u64 = 20; +pub const INSTALL_TIMEOUT_SECONDS: u64 = 180; +pub const BUNDLED_PREFIX: &str = "/app"; +pub const BUNDLED_DSH: &[&str] = &["/app/bin/dsh", "/app/node24/bin/dsh"]; + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct UpdateResult { + pub status: &'static str, + pub version: Option, + pub previous: Option, + pub message: String, +} + +impl UpdateResult { + fn new(status: &'static str, version: Option, message: impl Into) -> Self { + Self { + status, + version, + previous: None, + message: message.into(), + } + } +} + +pub fn update_prefix() -> PathBuf { + data_home().join("dsh-desktop/dsh-prefix") +} + +pub fn update_dsh_bin() -> PathBuf { + let prefix = update_prefix(); + #[cfg(windows)] + { + let cmd = prefix.join("dsh.cmd"); + if cmd.is_file() { + return cmd; + } + } + prefix.join("bin/dsh") +} + +pub fn package_json(prefix: &Path) -> PathBuf { + prefix.join("lib/node_modules/@deepseek-ai/dsh/package.json") +} + +pub fn read_version(prefix: &Path) -> Option { + let text = std::fs::read_to_string(package_json(prefix)).ok()?; + let data: serde_json::Value = serde_json::from_str(&text).ok()?; + data.get("version") + .and_then(|v| v.as_str()) + .map(|s| s.to_string()) +} + +pub fn find_npm() -> Option { + for candidate in ["/app/bin/npm", "/app/node24/bin/npm"] { + let path = PathBuf::from(candidate); + if crate::launcher::is_executable(&path) { + return Some(path); + } + } + which::which("npm").ok() +} + +fn find_node_dir() -> Option { + for candidate in ["/app/bin/node", "/app/node24/bin/node"] { + let path = PathBuf::from(candidate); + if crate::launcher::is_executable(&path) { + return path.parent().map(|p| p.to_path_buf()); + } + } + which::which("node") + .ok() + .and_then(|p| p.parent().map(|d| d.to_path_buf())) +} + +fn npm_command(npm: &Path) -> Command { + let mut cmd = Command::new(npm); + let cache = cache_home().join("dsh-desktop/npm"); + let _ = std::fs::create_dir_all(&cache); + cmd.env("npm_config_cache", &cache); + cmd.env("npm_config_update_notifier", "false"); + cmd.env("npm_config_fund", "false"); + cmd.env("npm_config_audit", "false"); + if let Some(node_dir) = find_node_dir() { + let mut path = node_dir.into_os_string(); + path.push(if cfg!(windows) { ";" } else { ":" }); + if let Some(existing) = std::env::var_os("PATH") { + path.push(existing); + } + cmd.env("PATH", path); + } + cmd +} + +fn run_npm(npm: &Path, args: &[&str], timeout: Duration) -> Result { + let mut cmd = npm_command(npm); + cmd.args(args); + cmd.stdout(Stdio::piped()); + cmd.stderr(Stdio::piped()); + let child = cmd.spawn().map_err(|e| e.to_string())?; + let pid = child.id(); + let done = Arc::new(AtomicBool::new(false)); + let flag = Arc::clone(&done); + thread::spawn(move || { + let start = Instant::now(); + while start.elapsed() < timeout { + if flag.load(Ordering::Relaxed) { + return; + } + thread::sleep(Duration::from_millis(50)); + } + if flag.load(Ordering::Relaxed) { + return; + } + #[cfg(unix)] + unsafe { + libc::kill(pid as i32, libc::SIGKILL); + } + #[cfg(windows)] + { + let _ = Command::new("taskkill") + .args(["/PID", &pid.to_string(), "/F"]) + .status(); + } + }); + let out = child.wait_with_output().map_err(|e| e.to_string()); + done.store(true, Ordering::Relaxed); + out +} + +fn last_check_path() -> PathBuf { + cache_home().join("dsh-desktop/last-update-check") +} + +/// True when a network update check has not run in the last 24 hours. +pub fn update_check_due() -> bool { + let path = last_check_path(); + let Ok(raw) = std::fs::read_to_string(&path) else { + return true; + }; + let ts: u64 = raw.trim().parse().unwrap_or(0); + let now = SystemTime::now() + .duration_since(UNIX_EPOCH) + .map(|d| d.as_secs()) + .unwrap_or(0); + now.saturating_sub(ts) >= 24 * 60 * 60 +} + +pub fn mark_update_checked() { + let path = last_check_path(); + if let Some(parent) = path.parent() { + let _ = std::fs::create_dir_all(parent); + } + let now = SystemTime::now() + .duration_since(UNIX_EPOCH) + .map(|d| d.as_secs()) + .unwrap_or(0); + let _ = std::fs::write(path, format!("{now}\n")); +} + +pub fn fetch_latest_version(npm: &Path) -> Option { + let out = run_npm(npm, &["view", DSH_PACKAGE, "version"], Duration::from_secs(VIEW_TIMEOUT_SECONDS)) + .ok()?; + if !out.status.success() { + return None; + } + String::from_utf8_lossy(&out.stdout) + .lines() + .map(str::trim) + .filter(|l| !l.is_empty()) + .last() + .map(|s| s.to_string()) +} + +fn seed_from_bundle(dest: &Path) { + let src_pkg = Path::new(BUNDLED_PREFIX).join("lib/node_modules/@deepseek-ai/dsh"); + if !src_pkg.is_dir() { + return; + } + let dest_pkg = dest.join("lib/node_modules/@deepseek-ai/dsh"); + if dest_pkg.exists() { + return; + } + if crate::paths::copy_tree(&src_pkg, &dest_pkg, true).is_err() { + return; + } + let dest_bin = dest.join("bin"); + let _ = std::fs::create_dir_all(&dest_bin); + let link = dest_bin.join("dsh"); + if !link.exists() { + let _ = crate::paths::replace_symlink( + &link, + Path::new("../lib/node_modules/@deepseek-ai/dsh/lib/bin.js"), + ); + } +} + +fn env_skips_update() -> bool { + std::env::var(ENV_NO_UPDATE) + .map(|v| matches!(v.to_ascii_lowercase().as_str(), "1" | "true" | "yes")) + .unwrap_or(false) +} + +pub fn update_dsh(enabled: bool) -> UpdateResult { + if !enabled || env_skips_update() { + let version = read_version(&update_prefix()).or_else(|| read_version(Path::new(BUNDLED_PREFIX))); + return UpdateResult::new("skipped", version, "已跳过 dsh 更新"); + } + + let npm = find_npm(); + let current = read_version(&update_prefix()).or_else(|| read_version(Path::new(BUNDLED_PREFIX))); + let Some(npm) = npm else { + let extra = current + .as_deref() + .map(|v| format!("({v})")) + .unwrap_or_default(); + return UpdateResult::new( + "skipped", + current, + format!("未找到 npm,使用已安装的 dsh{extra}"), + ); + }; + + let latest = match fetch_latest_version(&npm) { + Some(v) => v, + None => { + let extra = current + .as_deref() + .map(|v| format!("({v})")) + .unwrap_or_default(); + return UpdateResult::new( + "failed", + current, + format!("无法获取 dsh 最新版本,使用已安装版本{extra}"), + ); + } + }; + + if current.as_deref() == Some(latest.as_str()) { + return UpdateResult::new( + "current", + current, + format!("内置 dsh 已是最新({latest})"), + ); + } + + let dest = update_prefix(); + let _ = std::fs::create_dir_all(&dest); + if read_version(&dest).is_none() { + seed_from_bundle(&dest); + } + + let prefix_arg = format!("--prefix={}", dest.display()); + let pkg = format!("{DSH_PACKAGE}@latest"); + let previous = current.clone(); + match run_npm( + &npm, + &[ + "install", + &prefix_arg, + "--global", + "--no-audit", + "--no-fund", + &pkg, + ], + Duration::from_secs(INSTALL_TIMEOUT_SECONDS), + ) { + Ok(out) if out.status.success() => { + let installed = read_version(&dest).or(current); + UpdateResult { + status: "updated", + version: installed.clone(), + previous, + message: format!( + "已将内置 dsh 更新到 {}", + installed.as_deref().unwrap_or("latest") + ), + } + } + Ok(_) | Err(_) => { + let installed = read_version(&dest).or(current); + let extra = installed + .as_deref() + .map(|v| format!("({v})")) + .unwrap_or_default(); + UpdateResult { + status: "failed", + version: installed, + previous, + message: format!("dsh 更新失败,使用已安装版本{extra}"), + } + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + use tempfile::TempDir; + + #[test] + fn read_version_ok() { + let tmp = TempDir::new().unwrap(); + let pkg = package_json(tmp.path()); + std::fs::create_dir_all(pkg.parent().unwrap()).unwrap(); + std::fs::write(&pkg, r#"{"version":"0.1.0-rc.6"}"#).unwrap(); + assert_eq!(read_version(tmp.path()).as_deref(), Some("0.1.0-rc.6")); + } + + #[test] + fn read_version_missing() { + assert_eq!(read_version(Path::new("/no/such/prefix")), None); + } + + #[test] + fn skip_when_disabled() { + let result = update_dsh(false); + assert_eq!(result.status, "skipped"); + } + + #[test] + fn skip_when_env_set() { + std::env::set_var(ENV_NO_UPDATE, "1"); + let result = update_dsh(true); + std::env::remove_var(ENV_NO_UPDATE); + assert_eq!(result.status, "skipped"); + } + + #[test] + fn update_check_due_without_stamp() { + let tmp = TempDir::new().unwrap(); + std::env::set_var("XDG_CACHE_HOME", tmp.path()); + assert!(update_check_due()); + mark_update_checked(); + assert!(!update_check_due()); + std::env::remove_var("XDG_CACHE_HOME"); + } +} diff --git a/data/applications/io.github.tommyfang.DshDesktop.desktop b/data/applications/io.github.tommyfang.DshDesktop.desktop new file mode 100644 index 0000000..a99edd9 --- /dev/null +++ b/data/applications/io.github.tommyfang.DshDesktop.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Name=DeepSeek Harness +Name[zh_CN]=DeepSeek Harness +GenericName=AI Agent Harness +GenericName[zh_CN]=AI 智能体工作台 +Comment=Desktop shell for DeepSeek Harness +Comment[zh_CN]=在原生桌面窗口中运行 DeepSeek Harness +Exec=dsh-desktop +Icon=io.github.tommyfang.DshDesktop +Terminal=false +Type=Application +Categories=Development; +Keywords=AI;DeepSeek;agent;harness;dsh;assistant; +StartupNotify=true +StartupWMClass=io.github.tommyfang.DshDesktop +X-Flatpak-RenamedFrom=dsh-desktop.desktop; diff --git a/data/icons/hicolor/128x128/apps/io.github.tommyfang.DshDesktop.png b/data/icons/hicolor/128x128/apps/io.github.tommyfang.DshDesktop.png new file mode 100644 index 0000000..65cbf81 Binary files /dev/null and b/data/icons/hicolor/128x128/apps/io.github.tommyfang.DshDesktop.png differ diff --git a/data/icons/hicolor/16x16/apps/io.github.tommyfang.DshDesktop.png b/data/icons/hicolor/16x16/apps/io.github.tommyfang.DshDesktop.png new file mode 100644 index 0000000..3cbb2a4 Binary files /dev/null and b/data/icons/hicolor/16x16/apps/io.github.tommyfang.DshDesktop.png differ diff --git a/data/icons/hicolor/24x24/apps/io.github.tommyfang.DshDesktop.png b/data/icons/hicolor/24x24/apps/io.github.tommyfang.DshDesktop.png new file mode 100644 index 0000000..815a288 Binary files /dev/null and b/data/icons/hicolor/24x24/apps/io.github.tommyfang.DshDesktop.png differ diff --git a/data/icons/hicolor/256x256/apps/io.github.tommyfang.DshDesktop.png b/data/icons/hicolor/256x256/apps/io.github.tommyfang.DshDesktop.png new file mode 100644 index 0000000..7a47edb Binary files /dev/null and b/data/icons/hicolor/256x256/apps/io.github.tommyfang.DshDesktop.png differ diff --git a/data/icons/hicolor/32x32/apps/io.github.tommyfang.DshDesktop.png b/data/icons/hicolor/32x32/apps/io.github.tommyfang.DshDesktop.png new file mode 100644 index 0000000..8738aee Binary files /dev/null and b/data/icons/hicolor/32x32/apps/io.github.tommyfang.DshDesktop.png differ diff --git a/data/icons/hicolor/48x48/apps/io.github.tommyfang.DshDesktop.png b/data/icons/hicolor/48x48/apps/io.github.tommyfang.DshDesktop.png new file mode 100644 index 0000000..b185769 Binary files /dev/null and b/data/icons/hicolor/48x48/apps/io.github.tommyfang.DshDesktop.png differ diff --git a/data/icons/hicolor/512x512/apps/io.github.tommyfang.DshDesktop.png b/data/icons/hicolor/512x512/apps/io.github.tommyfang.DshDesktop.png new file mode 100644 index 0000000..e12338e Binary files /dev/null and b/data/icons/hicolor/512x512/apps/io.github.tommyfang.DshDesktop.png differ diff --git a/data/icons/hicolor/64x64/apps/io.github.tommyfang.DshDesktop.png b/data/icons/hicolor/64x64/apps/io.github.tommyfang.DshDesktop.png new file mode 100644 index 0000000..5beae9a Binary files /dev/null and b/data/icons/hicolor/64x64/apps/io.github.tommyfang.DshDesktop.png differ diff --git a/data/metainfo/io.github.tommyfang.DshDesktop.metainfo.xml b/data/metainfo/io.github.tommyfang.DshDesktop.metainfo.xml new file mode 100644 index 0000000..2018212 --- /dev/null +++ b/data/metainfo/io.github.tommyfang.DshDesktop.metainfo.xml @@ -0,0 +1,53 @@ + + + io.github.tommyfang.DshDesktop + DeepSeek Harness Desktop + Desktop shell for DeepSeek Harness + DeepSeek Harness 的原生桌面壳 + + MIT + MIT + + + TommyFang2077 + + + +

+ DeepSeek Harness Desktop runs the official DeepSeek Harness (dsh) WebUI + in a native Tauri window. It starts dsh web, waits for its local URL and + embeds the UI with the system WebView. Credentials, plugins and agent + permissions stay in ~/.dsh. +

+

+ The app bundles ModLens for text-only vision, a settings page at + 设置 → 视觉模型, and the community Anchored Standard presets. + The Flatpak also bundles Node.js and @deepseek-ai/dsh. +

+
+ + io.github.tommyfang.DshDesktop.desktop + + https://github.com/TommyFang2077/dsh-desktop + https://github.com/TommyFang2077/dsh-desktop/issues + + + dsh-desktop + + + + Development + Utility + Network + + + + + + + +

Tauri shell with an Apple-style title bar, bundled dsh, and on-launch updates.

+
+
+
+
diff --git a/docs/licenses/deepseek-harness.LICENSE b/docs/licenses/deepseek-harness.LICENSE new file mode 100644 index 0000000..c1f7a78 --- /dev/null +++ b/docs/licenses/deepseek-harness.LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 DeepSeek + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/licenses/dsh-anchored-standard.LICENSE b/docs/licenses/dsh-anchored-standard.LICENSE new file mode 100644 index 0000000..ff546b6 --- /dev/null +++ b/docs/licenses/dsh-anchored-standard.LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2026 xiaobright +Portions Copyright (c) 2026 DeepSeek + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/licenses/dsh-anchored-standard.NOTICE b/docs/licenses/dsh-anchored-standard.NOTICE new file mode 100644 index 0000000..e8b7c14 --- /dev/null +++ b/docs/licenses/dsh-anchored-standard.NOTICE @@ -0,0 +1,14 @@ +dsh-anchored-standard includes an adapted copy of the DeepSeek Harness +Standard agent preset from: + + https://github.com/deepseek-ai/deepseek-harness + commit 47f943859bef60e4160492346772ded9b24f765a + +DeepSeek Harness is distributed under the MIT License: + + Copyright (c) 2026 DeepSeek + +The full MIT permission notice is included in this repository's LICENSE file. + +DeepSeek and DeepSeek Harness are names of their respective owner. This +community project is not affiliated with or endorsed by DeepSeek. diff --git a/docs/licenses/modlens.LICENSE b/docs/licenses/modlens.LICENSE new file mode 100644 index 0000000..d97d8d6 --- /dev/null +++ b/docs/licenses/modlens.LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Leon Liu (liustack) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/screenshots/icon.png b/docs/screenshots/icon.png new file mode 100644 index 0000000..7a47edb Binary files /dev/null and b/docs/screenshots/icon.png differ diff --git a/docs/screenshots/menu.png b/docs/screenshots/menu.png new file mode 100644 index 0000000..4a37ea2 Binary files /dev/null and b/docs/screenshots/menu.png differ diff --git a/docs/screenshots/session.png b/docs/screenshots/session.png new file mode 100644 index 0000000..3e6c282 Binary files /dev/null and b/docs/screenshots/session.png differ diff --git a/docs/screenshots/splash.png b/docs/screenshots/splash.png new file mode 100644 index 0000000..ade364b Binary files /dev/null and b/docs/screenshots/splash.png differ diff --git a/docs/screenshots/src/chrome.css b/docs/screenshots/src/chrome.css new file mode 100644 index 0000000..181b829 --- /dev/null +++ b/docs/screenshots/src/chrome.css @@ -0,0 +1,61 @@ +:root { --dsh-desktop-titlebar-h: 36px; } +* { box-sizing: border-box; } +html, body { margin: 0; } +html.dsh-desktop-offset { + box-sizing: border-box; + padding-top: var(--dsh-desktop-titlebar-h); +} +#dsh-desktop-titlebar { + position: fixed; top: 0; left: 0; right: 0; height: var(--dsh-desktop-titlebar-h); + z-index: 2147483646; display: flex; align-items: center; + padding: 0 12px; box-sizing: border-box; + background: rgba(246, 246, 248, 0.92); + -webkit-backdrop-filter: saturate(180%) blur(20px); + backdrop-filter: saturate(180%) blur(20px); + border-bottom: 0.5px solid rgba(0, 0, 0, 0.06); + user-select: none; + font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; +} +#dsh-desktop-titlebar .traffic { + display: flex; gap: 8px; align-items: center; height: 100%; +} +#dsh-desktop-titlebar .tl { + width: 12px; height: 12px; min-width: 12px; min-height: 12px; + max-width: 12px; max-height: 12px; flex: none; overflow: hidden; + box-sizing: border-box; border-radius: 50%; border: 0; + padding: 0; margin: 0; display: grid; place-items: center; cursor: default; + position: relative; +} +#dsh-desktop-titlebar .tl.close { background: #ff5f57; } +#dsh-desktop-titlebar .tl.min { background: #febc2e; } +#dsh-desktop-titlebar .tl.zoom { background: #28c840; } +#dsh-desktop-titlebar .tl::after { + content: ""; font-size: 9px; line-height: 1; font-weight: 700; + color: rgba(0,0,0,0.55); opacity: 0; +} +#dsh-desktop-titlebar .traffic:hover .tl.close::after { content: "×"; opacity: 1; } +#dsh-desktop-titlebar .traffic:hover .tl.min::after { content: "–"; opacity: 1; } +#dsh-desktop-titlebar .traffic:hover .tl.zoom::after { content: "+"; opacity: 1; } +#dsh-desktop-titlebar .drag { flex: 1; height: 100%; } +#dsh-desktop-titlebar .more { + appearance: none; border: 0; background: transparent; + color: rgba(0,0,0,0.35); font-size: 15px; letter-spacing: 0.08em; + width: 28px; height: 20px; border-radius: 6px; cursor: default; +} +#dsh-desktop-titlebar .more:hover, +#dsh-desktop-titlebar .more.open { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.7); } +#dsh-desktop-titlebar .menu { + position: absolute; top: calc(var(--dsh-desktop-titlebar-h) + 2px); left: 8px; min-width: 168px; + padding: 4px; border-radius: 10px; + background: rgba(255,255,255,0.96); + box-shadow: 0 8px 28px rgba(0,0,0,0.16); + display: none; flex-direction: column; +} +#dsh-desktop-titlebar .menu.open { display: flex; } +#dsh-desktop-titlebar .menu button { + appearance: none; border: 0; background: transparent; + text-align: left; padding: 7px 10px; border-radius: 6px; + font: 13px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; + color: #1d1d1f; cursor: default; +} +#dsh-desktop-titlebar .menu button:hover { background: rgba(0,0,0,0.05); } diff --git a/docs/screenshots/src/menu.html b/docs/screenshots/src/menu.html new file mode 100644 index 0000000..cd005dc --- /dev/null +++ b/docs/screenshots/src/menu.html @@ -0,0 +1,42 @@ + + + + + 标题栏菜单 + + + + + +
+ + +
+
+ + + +
+
+
+
+ +

DeepSeek Harness

+

已连接到本地 dsh web

+
+
+ + diff --git a/docs/screenshots/src/session.html b/docs/screenshots/src/session.html new file mode 100644 index 0000000..3fa349d --- /dev/null +++ b/docs/screenshots/src/session.html @@ -0,0 +1,135 @@ + + + + + 新会话 + + + + +
+ + +
+
+ + + +
+
+
+ +
+
+ +

探索未至之境

+ 预览版 +

官方 WebUI 运行在原生窗口中,凭据仍保存在 ~/.dsh

+
+
+
给 Harness 发送消息
+
+
+ 锚定式标准(实验) + 工作区 +
+
+
+
+
+
+ + diff --git a/docs/screenshots/src/splash.html b/docs/screenshots/src/splash.html new file mode 100644 index 0000000..6942eb2 --- /dev/null +++ b/docs/screenshots/src/splash.html @@ -0,0 +1,34 @@ + + + + + 启动页 + + + + + +
+ + +
+
+ + + +
+
+
+
+ +

DeepSeek Harness

+

正在启动官方 WebUI…

+ +
+
+ + diff --git a/docs/screenshots/src/vision.html b/docs/screenshots/src/vision.html new file mode 100644 index 0000000..a7f44ef --- /dev/null +++ b/docs/screenshots/src/vision.html @@ -0,0 +1,115 @@ + + + + + 视觉模型 + + + + +
+ + +
+
+ + + +
+
+
+ +
+

视觉模型

+

内置插件 dsh-desktop-vision · 写入 ~/.modlens/config.json

+
+

ModLens 视觉模型

+

纯文本对话模型读图时使用这里的引擎。已声明视觉能力的模型(如 Qwen)不会走这条桥。

+ + + + + +

已保存

+
+
+
+ + diff --git a/docs/screenshots/vision.png b/docs/screenshots/vision.png new file mode 100644 index 0000000..febfe35 Binary files /dev/null and b/docs/screenshots/vision.png differ diff --git a/flatpak/io.github.tommyfang.DshDesktop.yml b/flatpak/io.github.tommyfang.DshDesktop.yml new file mode 100644 index 0000000..f109c1d --- /dev/null +++ b/flatpak/io.github.tommyfang.DshDesktop.yml @@ -0,0 +1,97 @@ +app-id: io.github.tommyfang.DshDesktop +runtime: org.gnome.Platform +runtime-version: '47' +sdk: org.gnome.Sdk +sdk-extensions: + - org.freedesktop.Sdk.Extension.node24 + - org.freedesktop.Sdk.Extension.rust-stable +command: dsh-desktop + +finish-args: + - --device=dri + - --share=ipc + - --socket=fallback-x11 + - --socket=wayland + - --share=network + - --filesystem=host + - --filesystem=xdg-download + - --talk-name=org.freedesktop.Notifications + - --talk-name=org.freedesktop.portal.Desktop + - --talk-name=org.a11y.Bus + - --talk-name=org.freedesktop.Flatpak + +cleanup: + - /include + - /lib/pkgconfig + - /share/man + - '*.a' + - '*.la' + +modules: + - name: dsh-runtime + buildsystem: simple + build-commands: + - mkdir -p ${FLATPAK_DEST}/bin + - cp -a /usr/lib/sdk/node24 ${FLATPAK_DEST}/node24 + - ln -sf ../node24/bin/node ${FLATPAK_DEST}/bin/node + - ln -sf ../node24/bin/npm ${FLATPAK_DEST}/bin/npm + - ln -sf ../node24/bin/npx ${FLATPAK_DEST}/bin/npx + - cp -a . ${FLATPAK_DEST}/ + sources: + - type: dir + path: ../vendor/dsh-prefix + + - name: dsh-desktop + buildsystem: simple + build-options: + append-path: /usr/lib/sdk/rust-stable/bin + env: + CARGO_HOME: /run/build/dsh-desktop/cargo + build-args: + - --share=network + build-commands: + - cargo build --release --locked --offline || cargo build --release + - install -Dm755 target/release/dsh-desktop ${FLATPAK_DEST}/bin/dsh-desktop + - mkdir -p ${FLATPAK_DEST}/share/dsh-desktop/vision + - cp -a plugins/dsh-desktop-vision/. ${FLATPAK_DEST}/share/dsh-desktop/vision + - install -Dm644 data/applications/io.github.tommyfang.DshDesktop.desktop ${FLATPAK_DEST}/share/applications/io.github.tommyfang.DshDesktop.desktop + - install -Dm644 data/metainfo/io.github.tommyfang.DshDesktop.metainfo.xml ${FLATPAK_DEST}/share/metainfo/io.github.tommyfang.DshDesktop.metainfo.xml + - for size in 16 24 32 48 64 128 256 512; do install -Dm644 data/icons/hicolor/${size}x${size}/apps/io.github.tommyfang.DshDesktop.png ${FLATPAK_DEST}/share/icons/hicolor/${size}x${size}/apps/io.github.tommyfang.DshDesktop.png; done + sources: + - type: dir + path: .. + skip: + - .flatpak-build + - .flatpak-builder + - .flatpak-repo + - dist + - vendor + - .git + - target + + - name: modlens-plugin + buildsystem: simple + build-commands: + - mkdir -p ${FLATPAK_DEST}/share/dsh-desktop/modlens + - cp -a . ${FLATPAK_DEST}/share/dsh-desktop/modlens + sources: + - type: dir + path: ../vendor/modlens + + - name: anchored-standard-preset + buildsystem: simple + build-commands: + - mkdir -p ${FLATPAK_DEST}/share/dsh-desktop/anchored-standard + - cp -a . ${FLATPAK_DEST}/share/dsh-desktop/anchored-standard + sources: + - type: dir + path: ../vendor/anchored-standard + + - name: zero-anchored-standard-preset + buildsystem: simple + build-commands: + - mkdir -p ${FLATPAK_DEST}/share/dsh-desktop/zero-anchored-standard + - cp -a . ${FLATPAK_DEST}/share/dsh-desktop/zero-anchored-standard + sources: + - type: dir + path: ../vendor/zero-anchored-standard diff --git a/plugins/dsh-desktop-vision/client.js b/plugins/dsh-desktop-vision/client.js new file mode 100644 index 0000000..cef399d --- /dev/null +++ b/plugins/dsh-desktop-vision/client.js @@ -0,0 +1,209 @@ +window.__ModuleLoader__.load({ + id: 'dsh-desktop-vision', + factory: (require) => { + var module = { exports: {} } + var exports = module.exports + var React = require('react') + var jsx = require('react/jsx-runtime') + + var css = [ + '.dshdv{width:100%;max-width:640px;display:flex;flex-direction:column;gap:14px;color:var(--dsw-alias-label-primary)}', + '.dshdv h3{margin:0;font-size:15px;font-weight:600;line-height:22px}', + '.dshdv p{margin:0;color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px}', + '.dshdv label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--dsw-alias-label-secondary)}', + '.dshdv .head{display:flex;align-items:center;justify-content:space-between;gap:12px}', + '.dshdv a{color:var(--dsw-alias-state-business-primary);text-decoration:none;font-size:12px;line-height:18px}', + '.dshdv a:hover{text-decoration:underline}', + '.dshdv input,.dshdv select{height:36px;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font:inherit}', + '.dshdv input:focus,.dshdv select:focus{outline:none;border-color:var(--dsw-alias-state-business-primary)}', + '.dshdv button{align-self:flex-start;height:32px;padding:0 14px;border:0;border-radius:8px;background:var(--dsw-alias-state-business-primary);color:#fff;font:inherit;cursor:pointer}', + '.dshdv button:disabled{opacity:.55;cursor:default}', + '.dshdv .ok{color:var(--dsw-alias-state-success-primary)}', + '.dshdv .err{color:var(--dsw-alias-state-error-primary)}', + ].join('') + + function ensureCss() { + if (typeof document === 'undefined') return + if (document.querySelector('style[data-plugin-css="dsh-desktop-vision"]')) return + var tag = document.createElement('style') + tag.dataset.pluginCss = 'dsh-desktop-vision' + tag.textContent = css + document.head.appendChild(tag) + } + + function remote(provider) { + var q = provider ? '?provider=' + encodeURIComponent(provider) : '' + return fetch('/dsh-desktop/modlens' + q).then(function (res) { + if (!res.ok) throw new Error('load failed ' + res.status) + return res.json() + }) + } + + function VisionSettings() { + ensureCss() + var state = React.useState({ status: 'loading' }) + var snap = state[0] + var setSnap = state[1] + React.useEffect(function () { + var live = true + remote() + .then(function (form) { + if (live) setSnap({ status: 'ready', form: form, message: '' }) + }) + .catch(function (error) { + if (live) setSnap({ status: 'error', message: String(error.message || error) }) + }) + return function () { + live = false + } + }, []) + + function patch(field, value) { + setSnap(function (cur) { + if (cur.status !== 'ready') return cur + return { status: 'ready', form: Object.assign({}, cur.form, { [field]: value }), message: '' } + }) + } + + function onProvider(id) { + remote(id) + .then(function (form) { + setSnap({ status: 'ready', form: form, message: '' }) + }) + .catch(function () { + patch('provider', id) + }) + } + + function save() { + if (snap.status !== 'ready' || snap.saving) return + setSnap(Object.assign({}, snap, { saving: true, message: '' })) + fetch('/dsh-desktop/modlens', { + method: 'PUT', + headers: { 'content-type': 'application/json' }, + body: JSON.stringify(snap.form), + }) + .then(function (res) { + return res.json().then(function (body) { + if (!res.ok) throw new Error(body.error || 'save failed') + return body + }) + }) + .then(function (form) { + setSnap({ status: 'ready', form: form, message: '已保存', saving: false }) + }) + .catch(function (error) { + setSnap(Object.assign({}, snap, { saving: false, message: String(error.message || error) })) + }) + } + + if (snap.status === 'loading') { + return jsx.jsx('div', { className: 'dshdv', children: jsx.jsx('p', { children: '正在读取 ModLens 配置…' }) }) + } + if (snap.status === 'error') { + return jsx.jsx('div', { className: 'dshdv', children: jsx.jsx('p', { className: 'err', children: snap.message }) }) + } + var form = snap.form + var remoteEngine = form.provider === 'openai' || form.provider === 'gemini-api' || form.provider === 'anthropic' + var options = form.options || [] + var current = options.filter(function (item) { return item.id === form.provider })[0] + var apiUrl = (current && current.apiUrl) || form.apiUrl || '' + var example = (current && current.example) || form.example || '' + var getApi = apiUrl + ? jsx.jsx('a', { href: apiUrl, children: '获取 API' }) + : null + return jsx.jsxs('div', { + className: 'dshdv', + children: [ + jsx.jsx('h3', { children: 'ModLens 视觉模型' }), + jsx.jsx('p', { + children: + '纯文本对话模型读图时使用这里的引擎。已声明视觉能力的模型(如 Qwen)不会走这条桥。', + }), + jsx.jsxs('label', { + children: [ + '引擎', + jsx.jsx('select', { + value: form.provider, + onChange: function (event) { + onProvider(event.target.value) + }, + children: options.map(function (item) { + return jsx.jsx('option', { value: item.id, children: item.label }, item.id) + }), + }), + ], + }), + jsx.jsxs('label', { + children: [ + '接口地址', + jsx.jsx('input', { + value: form.baseUrl || '', + disabled: !remoteEngine, + placeholder: form.officialBaseUrl || '', + onChange: function (event) { + patch('baseUrl', event.target.value) + }, + }), + ], + }), + jsx.jsxs('label', { + children: [ + jsx.jsxs('span', { className: 'head', children: ['API 密钥', getApi] }), + jsx.jsx('input', { + type: 'password', + value: form.apiKey || '', + disabled: !remoteEngine, + onChange: function (event) { + patch('apiKey', event.target.value) + }, + }), + ], + }), + jsx.jsxs('label', { + children: [ + '视觉模型', + jsx.jsx('input', { + value: form.model || '', + placeholder: example ? '例如 ' + example : '', + onChange: function (event) { + patch('model', event.target.value) + }, + }), + ], + }), + jsx.jsx('button', { + type: 'button', + disabled: !!snap.saving, + onClick: save, + children: snap.saving ? '保存中…' : '保存', + }), + snap.message + ? jsx.jsx('p', { + className: /失败|failed|error/i.test(snap.message) ? 'err' : 'ok', + children: snap.message, + }) + : null, + ], + }) + } + + function apply(ctx) { + ctx.slots.inject('settings.section', function () { + return ctx.slots.register( + { + name: 'settings.section', + id: 'modlens-vision', + order: 12, + label: '视觉模型', + }, + VisionSettings, + ) + }) + } + + exports.apply = apply + exports.inject = ['slots'] + return module.exports + }, +}) diff --git a/plugins/dsh-desktop-vision/cordis.patch.yml b/plugins/dsh-desktop-vision/cordis.patch.yml new file mode 100644 index 0000000..f10e590 --- /dev/null +++ b/plugins/dsh-desktop-vision/cordis.patch.yml @@ -0,0 +1,4 @@ +# Settings page + host route for the ModLens vision engine. +- insert: + - id: dsh-desktop-vision + name: dsh-desktop-vision diff --git a/plugins/dsh-desktop-vision/index.js b/plugins/dsh-desktop-vision/index.js new file mode 100644 index 0000000..d7e9373 --- /dev/null +++ b/plugins/dsh-desktop-vision/index.js @@ -0,0 +1,181 @@ +import { chmodSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' +import { homedir } from 'node:os' +import { dirname, join } from 'node:path' + +export const name = 'dsh-desktop-vision' +export const inject = [] + +const PROVIDERS = [ + { + id: 'openai', + label: 'OpenAI 兼容', + baseUrl: 'https://api.openai.com/v1', + apiUrl: 'https://platform.openai.com/api-keys', + example: 'gpt-4o', + }, + { + id: 'gemini-api', + label: 'Gemini API', + baseUrl: 'https://generativelanguage.googleapis.com', + apiUrl: 'https://aistudio.google.com/apikey', + example: 'gemini-3.6-flash', + }, + { + id: 'anthropic', + label: 'Anthropic API', + baseUrl: 'https://api.anthropic.com', + apiUrl: 'https://console.anthropic.com/settings/keys', + example: 'claude-haiku-4-5-20251001', + }, + { + id: 'antigravity-cli', + label: 'Antigravity CLI(免费)', + baseUrl: '', + apiUrl: 'https://antigravity.google/', + example: 'gemini-3.6-flash-low', + }, + { + id: 'claude-cli', + label: 'Claude Code 登录', + baseUrl: '', + apiUrl: 'https://code.claude.com', + example: 'haiku', + }, +] +const PROVIDER_IDS = new Set(PROVIDERS.map((item) => item.id)) + +function providerOf(id) { + return PROVIDERS.find((entry) => entry.id === id) +} + +function officialBaseUrl(provider) { + const item = providerOf(provider) + return item ? item.baseUrl : '' +} + +function officialApiUrl(provider) { + const item = providerOf(provider) + return item ? item.apiUrl : '' +} + +function officialExample(provider) { + const item = providerOf(provider) + return item ? item.example : '' +} +const FORM_FIELDS = ['apiKey', 'baseUrl', 'model'] + +function configPath() { + const home = process.env.MODLENS_HOME || join(homedir(), '.modlens') + return join(home, 'config.json') +} + +function loadConfig() { + try { + const data = JSON.parse(readFileSync(configPath(), 'utf8')) + return data && typeof data === 'object' ? data : {} + } catch { + return {} + } +} + +function formOf(cfg, provider) { + const id = PROVIDER_IDS.has(provider) ? provider : 'openai' + const entry = + cfg.providers && typeof cfg.providers === 'object' && typeof cfg.providers[id] === 'object' + ? cfg.providers[id] + : {} + return { + provider: id, + apiKey: String(entry.apiKey || ''), + baseUrl: String(entry.baseUrl || officialBaseUrl(id)), + officialBaseUrl: officialBaseUrl(id), + apiUrl: officialApiUrl(id), + example: officialExample(id), + model: String(entry.model || ''), + } +} + +function saveForm(values) { + const provider = String(values.provider || 'openai').trim() + if (!PROVIDER_IDS.has(provider)) { + const error = new Error(`unknown provider: ${provider}`) + error.status = 400 + throw error + } + const cfg = loadConfig() + cfg.provider = provider + if (!cfg.providers || typeof cfg.providers !== 'object') cfg.providers = {} + if (!cfg.providers[provider] || typeof cfg.providers[provider] !== 'object') { + cfg.providers[provider] = {} + } + const entry = cfg.providers[provider] + for (const field of FORM_FIELDS) { + const raw = String(values[field] || '').trim() + if (raw) entry[field] = raw + else delete entry[field] + } + const path = configPath() + mkdirSync(dirname(path), { recursive: true }) + writeFileSync(path, `${JSON.stringify(cfg, null, 2)}\n`, { encoding: 'utf8' }) + try { + chmodSync(path, 0o600) + } catch { + // best-effort; some filesystems ignore mode + } + return formOf(cfg, provider) +} + +async function readJsonBody(req) { + const chunks = [] + for await (const chunk of req) chunks.push(chunk) + const raw = Buffer.concat(chunks).toString('utf8').trim() + if (!raw) return {} + return JSON.parse(raw) +} + +function json(res, status, body) { + res.writeHead(status, { 'content-type': 'application/json; charset=utf-8' }) + res.end(JSON.stringify(body)) +} + +export function apply(ctx) { + if (typeof ctx.inject !== 'function') return + ctx.inject(['webServer'], (scope) => { + try { + scope.webServer.register({ + name: 'dsh-desktop-modlens', + kind: 'exact', + path: '/dsh-desktop/modlens', + handler: async (req, res) => { + try { + if (req.method === 'GET') { + const cfg = loadConfig() + const provider = new URL(req.url, 'http://localhost').searchParams.get('provider') + json(res, 200, { + ...formOf(cfg, provider || cfg.provider || 'openai'), + options: PROVIDERS.map((item) => ({ + id: item.id, + label: item.label, + officialBaseUrl: item.baseUrl, + apiUrl: item.apiUrl, + example: item.example, + })), + }) + return + } + if (req.method === 'PUT' || req.method === 'POST') { + const body = await readJsonBody(req) + json(res, 200, { ...saveForm(body), saved: true }) + return + } + res.writeHead(405).end() + } catch (error) { + json(res, error.status || 500, { error: String(error?.message || error) }) + } + }, + }) + } catch (error) { + console.error(`[dsh-desktop-vision] config route skipped: ${error}`) + } + }) +} diff --git a/plugins/dsh-desktop-vision/package.json b/plugins/dsh-desktop-vision/package.json new file mode 100644 index 0000000..b08ae21 --- /dev/null +++ b/plugins/dsh-desktop-vision/package.json @@ -0,0 +1,23 @@ +{ + "name": "dsh-desktop-vision", + "version": "0.1.4", + "private": true, + "type": "module", + "exports": { + ".": "./index.js", + "./client": "./client.js", + "./package.json": "./package.json" + }, + "dsh": { + "bundle": { + "patch": "./cordis.patch.yml" + }, + "client": { + "inject": [ + "@deepseek-ai/dsh-client-ui-settings" + ], + "platform": "web", + "immediately": true + } + } +} diff --git a/scripts/capture-screenshots.sh b/scripts/capture-screenshots.sh new file mode 100755 index 0000000..f830edf --- /dev/null +++ b/scripts/capture-screenshots.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +set -euo pipefail +ROOT="$(cd "$(dirname "$0")/.." && pwd)" +OUT="$ROOT/docs/screenshots" +SRC="$OUT/src" +CHROME="${CHROME:-google-chrome}" + +capture() { + local name="$1" + local html="$2" + "$CHROME" \ + --headless=new \ + --disable-gpu \ + --no-sandbox \ + --hide-scrollbars \ + --force-device-scale-factor=2 \ + --window-size=1280,800 \ + --default-background-color=00000000 \ + --screenshot="$OUT/$name.png" \ + "file://$html" + echo "wrote $OUT/$name.png" +} + +mkdir -p "$OUT" +capture splash "$SRC/splash.html" +capture session "$SRC/session.html" +capture vision "$SRC/vision.html" +capture menu "$SRC/menu.html" +cp -f "$ROOT/ui/icon.png" "$OUT/icon.png" diff --git a/scripts/localize_preset.py b/scripts/localize_preset.py new file mode 100755 index 0000000..ec4a9ba --- /dev/null +++ b/scripts/localize_preset.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python3 +"""Localize vendored anchored-standard preset.yml files (used by make vendor).""" + +from __future__ import annotations + +import json +import re +import sys +from pathlib import Path + +PRESET_NAME_ZH = "锚定式标准(实验)" +PRESET_DESCRIPTION_ZH = ( + "首轮使用 Minimal 的真实工具对(持久 bash + str_replace_editor)," + "不自动注入工作区或技能上下文;首次工具调用或回复后开放完整 Standard 工具。" +) +ZERO_PRESET_NAME_ZH = "零工具锚定式标准(实验)" +ZERO_PRESET_DESCRIPTION_ZH = ( + "先插入一轮无工具的锚定对话(固定提示),从下一轮起开放完整 Standard 工具。" +) + + +def localize_preset_yml(text: str, name: str, description: str) -> str: + body = text.replace("\r\n", "\n") + if not body.endswith("\n"): + body += "\n" + name_line = f"name: {json.dumps(name, ensure_ascii=False)}\n" + desc_line = f"description: {json.dumps(description, ensure_ascii=False)}\n" + name_match = re.search(r"(?m)^name:.*\n", body) + if name_match: + body = body[: name_match.start()] + name_line + body[name_match.end() :] + else: + body = name_line + body + desc_match = re.search(r"(?m)^description:(?:[ \t].*)?\n(?:[ \t].+\n)*", body) + if desc_match: + return body[: desc_match.start()] + desc_line + body[desc_match.end() :] + name_written = re.search(r"(?m)^name:.*\n", body) + if name_written: + return body[: name_written.end()] + desc_line + body[name_written.end() :] + return desc_line + body + + +def main(argv: list[str]) -> int: + if len(argv) < 2: + print("usage: localize_preset.py [zero]", file=sys.stderr) + return 2 + path = Path(argv[1]) + zero = len(argv) > 2 and argv[2] == "zero" + name = ZERO_PRESET_NAME_ZH if zero else PRESET_NAME_ZH + description = ZERO_PRESET_DESCRIPTION_ZH if zero else PRESET_DESCRIPTION_ZH + path.write_text( + localize_preset_yml(path.read_text(encoding="utf-8"), name, description), + encoding="utf-8", + ) + return 0 + + +if __name__ == "__main__": + raise SystemExit(main(sys.argv)) diff --git a/scripts/vendor-native.sh b/scripts/vendor-native.sh new file mode 100755 index 0000000..340063e --- /dev/null +++ b/scripts/vendor-native.sh @@ -0,0 +1,48 @@ +#!/usr/bin/env bash +# Fetch ModLens + Anchored Standard into vendor/ for Tauri resource bundling. +# Does not vendor @deepseek-ai/dsh (that is Flatpak-only; see `make vendor`). +set -euo pipefail + +ROOT="$(cd "$(dirname "$0")/.." && pwd)" +cd "$ROOT" + +MODLENS_VERSION="${MODLENS_VERSION:-3.16.6}" +ANCHORED_COMMIT="${ANCHORED_COMMIT:-ffb845c5480adc953392a6db6f8a98ede621174b}" +ANCHORED_REPO="${ANCHORED_REPO:-https://github.com/xiaobright/dsh-anchored-standard.git}" +if [ -z "${PYTHON:-}" ]; then + if command -v python3 >/dev/null 2>&1; then + PYTHON=python3 + else + PYTHON=python + fi +fi + +ANCHORED_DIR="vendor/anchored-standard" +ZERO_DIR="vendor/zero-anchored-standard" +MODLENS_DIR="vendor/modlens" + +rm -rf vendor/.anchored-src "$ANCHORED_DIR" "$ZERO_DIR" +mkdir -p vendor/.anchored-src +git -C vendor/.anchored-src init --initial-branch=main +git -C vendor/.anchored-src remote add origin "$ANCHORED_REPO" +git -C vendor/.anchored-src fetch --depth 1 origin "$ANCHORED_COMMIT" +git -C vendor/.anchored-src checkout --detach FETCH_HEAD +mkdir -p "$ANCHORED_DIR" "$ZERO_DIR" +cp -R vendor/.anchored-src/preset/. "$ANCHORED_DIR/" +cp -R vendor/.anchored-src/zero-anchored-standard/. "$ZERO_DIR/" +cp vendor/.anchored-src/LICENSE vendor/.anchored-src/NOTICE "$ANCHORED_DIR/" +cp vendor/.anchored-src/LICENSE vendor/.anchored-src/NOTICE "$ZERO_DIR/" +printf '%s\n' "$ANCHORED_COMMIT" > "$ANCHORED_DIR/.dsh-desktop-source" +printf '%s\n' "$ANCHORED_COMMIT" > "$ZERO_DIR/.dsh-desktop-source" +"$PYTHON" scripts/localize_preset.py "$ANCHORED_DIR/preset.yml" +"$PYTHON" scripts/localize_preset.py "$ZERO_DIR/preset.yml" zero +rm -rf vendor/.anchored-src + +rm -rf "$MODLENS_DIR" +mkdir -p "$MODLENS_DIR" +npm install --prefix "$MODLENS_DIR" --prefer-offline --no-audit --no-fund "@liustack/modlens@${MODLENS_VERSION}" + +test -f "$ANCHORED_DIR/preset.yml" +test -f "$ZERO_DIR/preset.yml" +test -d "$MODLENS_DIR/node_modules/@liustack/modlens" +echo "vendored ModLens ${MODLENS_VERSION} and Anchored Standard ${ANCHORED_COMMIT}" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml new file mode 100644 index 0000000..868247a --- /dev/null +++ b/src-tauri/Cargo.toml @@ -0,0 +1,32 @@ +[package] +name = "dsh-desktop" +version.workspace = true +edition.workspace = true +license.workspace = true +authors.workspace = true +description = "Tauri desktop shell for DeepSeek Harness" + +[lib] +name = "dsh_desktop_lib" +crate-type = ["lib", "cdylib", "staticlib"] + +[[bin]] +name = "dsh-desktop" +path = "src/main.rs" + +[build-dependencies] +tauri-build = { version = "2", features = [] } + +[dependencies] +dsh-core = { path = "../crates/dsh-core" } +tauri = { version = "2", features = ["devtools"] } +tauri-plugin-opener = "2" +tauri-plugin-single-instance = "2" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +arboard = "3" +image = { version = "0.25", default-features = false, features = ["png"] } +open = "5" +url = "2" +log = "0.4" +env_logger = "0.11" diff --git a/src-tauri/build.rs b/src-tauri/build.rs new file mode 100644 index 0000000..d860e1e --- /dev/null +++ b/src-tauri/build.rs @@ -0,0 +1,3 @@ +fn main() { + tauri_build::build() +} diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json new file mode 100644 index 0000000..091a6a1 --- /dev/null +++ b/src-tauri/capabilities/default.json @@ -0,0 +1,18 @@ +{ + "$schema": "../gen/schemas/desktop-schema.json", + "identifier": "default", + "description": "Main window, including the embedded dsh WebUI", + "windows": ["main"], + "remote": { + "urls": ["http://127.0.0.1:*", "http://localhost:*"] + }, + "permissions": [ + "core:default", + "core:window:allow-close", + "core:window:allow-minimize", + "core:window:allow-toggle-maximize", + "core:window:allow-start-dragging", + "core:webview:allow-internal-toggle-devtools", + "opener:default" + ] +} diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.png new file mode 100644 index 0000000..cbd5f2e Binary files /dev/null and b/src-tauri/icons/128x128.png differ diff --git a/src-tauri/icons/128x128@2x.png b/src-tauri/icons/128x128@2x.png new file mode 100644 index 0000000..f7de92a Binary files /dev/null and b/src-tauri/icons/128x128@2x.png differ diff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.png new file mode 100644 index 0000000..4c45497 Binary files /dev/null and b/src-tauri/icons/32x32.png differ diff --git a/src-tauri/icons/64x64.png b/src-tauri/icons/64x64.png new file mode 100644 index 0000000..22c9449 Binary files /dev/null and b/src-tauri/icons/64x64.png differ diff --git a/src-tauri/icons/icon.icns b/src-tauri/icons/icon.icns new file mode 100644 index 0000000..aa92b6c Binary files /dev/null and b/src-tauri/icons/icon.icns differ diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico new file mode 100644 index 0000000..1b88e9d Binary files /dev/null and b/src-tauri/icons/icon.ico differ diff --git a/src-tauri/icons/icon.png b/src-tauri/icons/icon.png new file mode 100644 index 0000000..881267b Binary files /dev/null and b/src-tauri/icons/icon.png differ diff --git a/src-tauri/linux/dsh-desktop.desktop b/src-tauri/linux/dsh-desktop.desktop new file mode 100644 index 0000000..fb529f8 --- /dev/null +++ b/src-tauri/linux/dsh-desktop.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Categories={{categories}} +Comment={{comment}} +Comment[zh_CN]=在原生桌面窗口中运行 DeepSeek Harness +Exec={{exec}} +GenericName=AI Agent Harness +GenericName[zh_CN]=AI 智能体工作台 +Icon={{icon}} +Keywords=AI;DeepSeek;agent;harness;dsh;assistant; +Name={{name}} +Name[zh_CN]=DeepSeek Harness +StartupNotify=true +StartupWMClass=io.github.tommyfang.DshDesktop +Terminal=false +Type=Application diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs new file mode 100644 index 0000000..d4ce39a --- /dev/null +++ b/src-tauri/src/lib.rs @@ -0,0 +1,383 @@ +use std::io::Cursor; +use std::path::PathBuf; +use std::sync::{Arc, Mutex}; +use std::thread; +use std::time::{Duration, Instant}; + +use dsh_core::clipboard::{ + file_from_bytes, filename_for_mime, files_from_paths, parse_uri_list, ClipboardFile, +}; +use dsh_core::launcher::{DshLauncher, DshProcess, URL_TIMEOUT_SECONDS}; +use dsh_core::modlens::ensure_modlens; +use dsh_core::paths::BundledPaths; +use dsh_core::preset::ensure_anchored_standard; +use dsh_core::updater::{mark_update_checked, update_check_due, update_dsh}; +use dsh_core::{APP_NAME, ENV_NO_UPDATE}; +use serde::Serialize; +use tauri::{AppHandle, Emitter, Manager, WebviewUrl, WebviewWindowBuilder}; +use url::Url; + +const INJECT: &str = concat!( + include_str!("../../ui/inject/ingest.js"), + include_str!("../../ui/inject/hide-twins.js"), + include_str!("../../ui/inject/chrome.js"), +); + +#[derive(Clone, Debug)] +pub struct Args { + pub dsh: Option, + pub cwd: Option, + pub no_update: bool, + pub force_update: bool, + pub dev: bool, + pub verbose: bool, +} + +impl Args { + pub fn parse() -> Self { + let mut args = Args { + dsh: std::env::var(dsh_core::ENV_BIN_OVERRIDE).ok().filter(|s| !s.is_empty()), + cwd: std::env::var(dsh_core::ENV_CWD_OVERRIDE) + .ok() + .filter(|s| !s.is_empty()) + .map(PathBuf::from), + no_update: std::env::var(ENV_NO_UPDATE) + .map(|v| matches!(v.to_ascii_lowercase().as_str(), "1" | "true" | "yes")) + .unwrap_or(false), + force_update: false, + dev: false, + verbose: false, + }; + let mut argv = std::env::args().skip(1); + while let Some(arg) = argv.next() { + match arg.as_str() { + "--dsh" => args.dsh = argv.next(), + "--cwd" => args.cwd = argv.next().map(PathBuf::from), + "--no-update" => args.no_update = true, + "--update" => args.force_update = true, + "--dev" => args.dev = true, + "--verbose" => args.verbose = true, + "--help" | "-h" => { + print_help(); + std::process::exit(0); + } + "--version" | "-V" => { + println!("{APP_NAME} {}", dsh_core::VERSION); + std::process::exit(0); + } + _ => {} + } + } + args + } +} + +fn print_help() { + println!( + "{APP_NAME} — native window around the official dsh WebUI.\n\n\ + --dsh PATH dsh 可执行文件路径或命令\n\ + --cwd DIR 传给 dsh 的工作目录\n\ + --no-update 不检查 dsh 更新\n\ + --update 启动前强制检查/安装 dsh 更新\n\ + --dev 打开 WebView 开发者工具\n\ + --verbose 输出调试日志" + ); +} + +struct AppState { + args: Args, + paths: BundledPaths, + process: Mutex>>, + url: Mutex>, +} + +impl AppState { + fn stop(&self) { + if let Ok(mut slot) = self.process.lock() { + if let Some(proc) = slot.take() { + proc.stop(); + } + } + } +} + +#[derive(Clone, Serialize)] +struct StatusPayload { + message: String, +} + +#[derive(Clone, Serialize)] +struct ErrorPayload { + message: String, + detail: String, +} + +#[derive(Clone, Serialize)] +struct ReadyPayload { + url: String, +} + +#[tauri::command] +fn restart(app: AppHandle) { + thread::spawn(move || boot(app)); +} + +#[tauri::command] +fn open_in_browser(state: tauri::State) -> Result<(), String> { + let url = state + .url + .lock() + .ok() + .and_then(|g| g.clone()) + .ok_or_else(|| "服务尚未就绪".to_string())?; + open::that(&url).map_err(|e| e.to_string()) +} + +#[tauri::command] +fn read_clipboard_images() -> Result, String> { + read_images().map_err(|e| e.to_string()) +} + +fn read_images() -> Result, String> { + let mut clipboard = arboard::Clipboard::new().map_err(|e| e.to_string())?; + if let Ok(img) = clipboard.get_image() { + let width = img.width as u32; + let height = img.height as u32; + let bytes = img.bytes.into_owned(); + if let Some(buffer) = image::RgbaImage::from_raw(width, height, bytes) { + let mut png = Vec::new(); + if buffer + .write_to(&mut Cursor::new(&mut png), image::ImageFormat::Png) + .is_ok() + { + if let Some(file) = file_from_bytes( + filename_for_mime("image/png", 0), + "image/png".into(), + png, + ) { + return Ok(vec![file]); + } + } + } + } + if let Ok(text) = clipboard.get_text() { + let loaded = files_from_paths(parse_uri_list(&text)); + if !loaded.is_empty() { + return Ok(loaded); + } + } + Ok(Vec::new()) +} + +fn is_internal(url: &Url) -> bool { + matches!(url.scheme(), "tauri" | "asset" | "about" | "data" | "blob") + || matches!( + url.host_str(), + Some("127.0.0.1" | "localhost" | "::1" | "tauri.localhost") + ) +} + +fn boot(app: AppHandle) { + let Some(state) = app.try_state::() else { + return; + }; + state.stop(); + let started = Instant::now(); + let _ = app.emit( + "status", + StatusPayload { + message: "正在启动…".into(), + }, + ); + + if state.args.force_update && !state.args.no_update { + let _ = app.emit( + "status", + StatusPayload { + message: "正在检查 dsh 更新…".into(), + }, + ); + let result = update_dsh(true); + mark_update_checked(); + log::info!("dsh update: {} ({})", result.status, result.message); + } + + let plugin = ensure_modlens(&state.paths); + log::info!( + "modlens: {} ({}) in {:?}", + plugin.status, + plugin.message, + started.elapsed() + ); + let preset = ensure_anchored_standard(&state.paths); + log::info!( + "anchored-standard: {} ({}) in {:?}", + preset.status, + preset.message, + started.elapsed() + ); + let _ = app.emit( + "status", + StatusPayload { + message: "正在启动 dsh web 服务…".into(), + }, + ); + + let launcher = DshLauncher::new(state.args.dsh.clone(), state.args.cwd.clone()); + let process = match launcher.start() { + Ok(p) => Arc::new(p), + Err(err) => { + let _ = app.emit( + "error", + ErrorPayload { + message: err.to_string(), + detail: String::new(), + }, + ); + return; + } + }; + if let Ok(mut slot) = state.process.lock() { + *slot = Some(Arc::clone(&process)); + } + log::info!("dsh web spawned in {:?}", started.elapsed()); + + if !state.args.no_update && !state.args.force_update && update_check_due() { + thread::spawn(|| { + log::info!("background dsh update check"); + let result = update_dsh(true); + mark_update_checked(); + log::info!( + "background dsh update: {} ({})", + result.status, + result.message + ); + }); + } + + let deadline = Instant::now() + Duration::from_secs(URL_TIMEOUT_SECONDS); + loop { + if let Some(url) = process.take_url() { + if let Ok(mut slot) = state.url.lock() { + *slot = Some(url.clone()); + } + let _ = app.emit("ready", ReadyPayload { url }); + log::info!("dsh web ready in {:?}", started.elapsed()); + return; + } + if let Some(code) = process.poll() { + let detail = process.snapshot_lines().join("\n"); + let _ = app.emit( + "error", + ErrorPayload { + message: format!("服务已退出(exit {code})。"), + detail, + }, + ); + return; + } + if Instant::now() >= deadline { + let detail = process + .snapshot_lines() + .into_iter() + .rev() + .take(80) + .collect::>() + .into_iter() + .rev() + .collect::>() + .join("\n"); + process.stop(); + let _ = app.emit( + "error", + ErrorPayload { + message: format!("等待 dsh web 输出 URL 超时({URL_TIMEOUT_SECONDS} 秒)。"), + detail, + }, + ); + return; + } + thread::sleep(Duration::from_millis(80)); + } +} + +pub fn run() { + let args = Args::parse(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or(if args.verbose { + "debug" + } else { + "info" + })) + .init(); + + let mut paths = BundledPaths::discover(); + let dev = args.dev; + + tauri::Builder::default() + .plugin(tauri_plugin_opener::init()) + .plugin(tauri_plugin_single_instance::init(|app, _argv, _cwd| { + if let Some(window) = app.get_webview_window("main") { + let _ = window.unminimize(); + let _ = window.set_focus(); + } + })) + .setup(move |app| { + if let Ok(dir) = app.path().resource_dir() { + paths = paths.with_resource_dir(dir); + } + app.manage(AppState { + args: args.clone(), + paths, + process: Mutex::new(None), + url: Mutex::new(None), + }); + + let mut builder = WebviewWindowBuilder::new(app, "main", WebviewUrl::App("index.html".into())) + .title(APP_NAME) + .inner_size(1320.0, 860.0) + .min_inner_size(800.0, 560.0) + .decorations(false) + .resizable(true) + .initialization_script(INJECT) + .on_navigation(|url| { + if is_internal(&url) { + true + } else { + let _ = open::that(url.as_str()); + false + } + }); + + if let Some(icon) = app.default_window_icon().cloned() { + builder = builder.icon(icon)?; + } + + if dev { + builder = builder.devtools(true); + } + + let window = builder.build()?; + if dev { + window.open_devtools(); + } + + let app_handle = app.handle().clone(); + let _ = window; + thread::spawn(move || boot(app_handle)); + Ok(()) + }) + .invoke_handler(tauri::generate_handler![ + restart, + open_in_browser, + read_clipboard_images + ]) + .on_window_event(|window, event| { + if let tauri::WindowEvent::CloseRequested { .. } = event { + if let Some(state) = window.try_state::() { + state.stop(); + } + } + }) + .run(tauri::generate_context!()) + .expect("error while running DeepSeek Harness Desktop"); +} diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs new file mode 100644 index 0000000..89a64c4 --- /dev/null +++ b/src-tauri/src/main.rs @@ -0,0 +1,5 @@ +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + +fn main() { + dsh_desktop_lib::run(); +} diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json new file mode 100644 index 0000000..0d67756 --- /dev/null +++ b/src-tauri/tauri.conf.json @@ -0,0 +1,71 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "productName": "DeepSeek Harness", + "version": "0.1.0", + "identifier": "io.github.tommyfang.DshDesktop", + "build": { + "frontendDist": "../ui" + }, + "app": { + "withGlobalTauri": true, + "enableGTKAppId": true, + "macOSPrivateApi": false, + "windows": [], + "security": { + "csp": null + } + }, + "bundle": { + "active": true, + "targets": ["deb", "rpm", "nsis", "msi", "app", "dmg"], + "publisher": "TommyFang2077", + "homepage": "https://github.com/TommyFang2077/dsh-desktop", + "copyright": "Copyright © 2026 TommyFang2077", + "category": "DeveloperTool", + "shortDescription": "Desktop shell for DeepSeek Harness", + "longDescription": "Runs the official DeepSeek Harness (dsh) WebUI in a native window. Starts dsh web, embeds the UI with the system WebView, and ships ModLens plus Anchored Standard presets. Credentials stay in ~/.dsh.", + "licenseFile": "../LICENSE", + "icon": [ + "icons/32x32.png", + "icons/64x64.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.png", + "icons/icon.icns", + "icons/icon.ico" + ], + "resources": [ + "../plugins/dsh-desktop-vision/", + "../vendor/modlens/", + "../vendor/anchored-standard/", + "../vendor/zero-anchored-standard/" + ], + "linux": { + "deb": { + "section": "devel", + "desktopTemplate": "linux/dsh-desktop.desktop" + }, + "rpm": { + "release": "1", + "desktopTemplate": "linux/dsh-desktop.desktop" + } + }, + "windows": { + "nsis": { + "installMode": "currentUser", + "displayLanguageSelector": true, + "languages": ["SimpChinese", "English"] + }, + "webviewInstallMode": { + "type": "downloadBootstrapper" + } + }, + "macOS": { + "minimumSystemVersion": "10.15", + "dmg": { + "appPosition": { "x": 180, "y": 170 }, + "applicationFolderPosition": { "x": 480, "y": 170 } + } + } + } +} diff --git a/tests/test_plugins.py b/tests/test_plugins.py new file mode 100644 index 0000000..34b93a9 --- /dev/null +++ b/tests/test_plugins.py @@ -0,0 +1,60 @@ +"""Sanity checks for the bundled dsh WebUI plugin (no desktop runtime).""" + +import unittest +from pathlib import Path + + +ROOT = Path(__file__).resolve().parents[1] + + +class VisionPluginFilesTests(unittest.TestCase): + def test_client_registers_system_settings_slots(self): + client = (ROOT / "plugins" / "dsh-desktop-vision" / "client.js").read_text( + encoding="utf-8" + ) + self.assertIn("settings.section", client) + self.assertNotIn("settings.plugins.tab", client) + self.assertIn("modlens-vision", client) + host = (ROOT / "plugins" / "dsh-desktop-vision" / "index.js").read_text( + encoding="utf-8" + ) + self.assertIn("/dsh-desktop/modlens", host) + self.assertIn("'OpenAI 兼容'", host) + self.assertNotIn("Qwen / 自建网关", host) + self.assertIn("https://api.openai.com/v1", host) + self.assertIn("https://generativelanguage.googleapis.com", host) + self.assertIn("https://api.anthropic.com", host) + self.assertIn("https://platform.openai.com/api-keys", host) + self.assertIn("https://aistudio.google.com/apikey", host) + self.assertIn("https://console.anthropic.com/settings/keys", host) + self.assertIn("获取 API", client) + self.assertNotIn("qwen-agent", client) + self.assertIn("example: 'gpt-4o'", host) + self.assertIn("example: 'gemini-3.6-flash'", host) + self.assertIn("example: 'claude-haiku-4-5-20251001'", host) + self.assertIn("example: 'gemini-3.6-flash-low'", host) + self.assertIn("example: 'haiku'", host) + + +class BundledAttributionTests(unittest.TestCase): + def test_readme_cites_upstream_plugins(self): + readme = (ROOT / "README.md").read_text(encoding="utf-8") + third = (ROOT / "THIRD_PARTY.md").read_text(encoding="utf-8") + for text in (readme, third): + self.assertIn("https://github.com/deepseek-ai/deepseek-harness", text) + self.assertIn("https://github.com/liustack/modlens", text) + self.assertIn("https://github.com/xiaobright/dsh-anchored-standard", text) + self.assertIn("0.1.0-rc.6", text) + self.assertIn("3.16.6", text) + self.assertIn("ffb845c5480adc953392a6db6f8a98ede621174b", text) + self.assertIn("dsh-desktop-vision", text) + self.assertTrue((ROOT / "docs" / "licenses" / "modlens.LICENSE").is_file()) + self.assertTrue( + (ROOT / "docs" / "licenses" / "dsh-anchored-standard.NOTICE").is_file() + ) + for name in ("splash.png", "session.png", "vision.png", "menu.png"): + self.assertTrue((ROOT / "docs" / "screenshots" / name).is_file()) + + +if __name__ == "__main__": + unittest.main() diff --git a/ui/app.js b/ui/app.js new file mode 100644 index 0000000..9468722 --- /dev/null +++ b/ui/app.js @@ -0,0 +1,52 @@ +const statusEl = document.getElementById("status"); +const spinner = document.getElementById("spinner"); +const retry = document.getElementById("retry"); +const detail = document.getElementById("detail"); + +function tauri() { + return window.__TAURI__; +} + +function setStatus(message, kind) { + statusEl.textContent = message; + const failed = kind === "error"; + spinner.hidden = failed; + retry.hidden = !failed; + if (!failed) { + detail.hidden = true; + detail.textContent = ""; + } +} + +async function boot() { + const api = tauri(); + if (!api) { + setStatus("桌面接口未就绪", "error"); + return; + } + await api.event.listen("status", function (event) { + setStatus(event.payload.message || "正在启动…", "ok"); + }); + await api.event.listen("error", function (event) { + setStatus(event.payload.message || "启动失败", "error"); + if (event.payload.detail) { + detail.hidden = false; + detail.textContent = event.payload.detail; + } + }); + await api.event.listen("ready", function (event) { + if (event.payload && event.payload.url) { + window.location.replace(event.payload.url); + } + }); + retry.addEventListener("click", function () { + setStatus("正在重新启动…", "ok"); + api.core.invoke("restart"); + }); +} + +if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", boot); +} else { + boot(); +} diff --git a/ui/icon.png b/ui/icon.png new file mode 100644 index 0000000..7a47edb Binary files /dev/null and b/ui/icon.png differ diff --git a/ui/index.html b/ui/index.html new file mode 100644 index 0000000..806056b --- /dev/null +++ b/ui/index.html @@ -0,0 +1,22 @@ + + + + + + DeepSeek Harness + + + +
+
+ +

DeepSeek Harness

+

正在启动…

+ + + +
+
+ + + diff --git a/ui/inject/chrome.js b/ui/inject/chrome.js new file mode 100644 index 0000000..d6c1ca0 --- /dev/null +++ b/ui/inject/chrome.js @@ -0,0 +1,168 @@ +(function () { + if (window.__dshDesktopChrome) return; + window.__dshDesktopChrome = true; + + const css = ` + :root { --dsh-desktop-titlebar-h: 36px; } + html.dsh-desktop-offset { + box-sizing: border-box !important; + padding-top: var(--dsh-desktop-titlebar-h); + } + #dsh-desktop-titlebar { + position: fixed; top: 0; left: 0; right: 0; height: var(--dsh-desktop-titlebar-h); + z-index: 2147483646; display: flex; align-items: center; + padding: 0 12px; box-sizing: border-box; + background: rgba(246, 246, 248, 0.72); + -webkit-backdrop-filter: saturate(180%) blur(20px); + backdrop-filter: saturate(180%) blur(20px); + border-bottom: 0.5px solid rgba(0, 0, 0, 0.06); + user-select: none; -webkit-user-select: none; + } + @media (prefers-color-scheme: dark) { + #dsh-desktop-titlebar { + background: rgba(28, 28, 30, 0.72); + border-bottom-color: rgba(255, 255, 255, 0.08); + } + #dsh-desktop-titlebar .more { color: rgba(255,255,255,0.45); } + #dsh-desktop-titlebar .menu { + background: rgba(44, 44, 46, 0.96); + box-shadow: 0 8px 28px rgba(0,0,0,0.45); + } + #dsh-desktop-titlebar .menu button { color: #f5f5f7; } + #dsh-desktop-titlebar .menu button:hover { background: rgba(255,255,255,0.08); } + } + #dsh-desktop-titlebar .traffic { + display: flex; gap: 8px; align-items: center; height: 100%; + } + #dsh-desktop-titlebar .tl { + width: 12px; height: 12px; min-width: 12px; min-height: 12px; + max-width: 12px; max-height: 12px; flex: none; overflow: hidden; + box-sizing: border-box; border-radius: 50%; border: 0; + padding: 0; margin: 0; display: grid; place-items: center; cursor: default; + position: relative; + } + #dsh-desktop-titlebar .tl.close { background: #ff5f57; } + #dsh-desktop-titlebar .tl.min { background: #febc2e; } + #dsh-desktop-titlebar .tl.zoom { background: #28c840; } + #dsh-desktop-titlebar .tl::after { + content: ""; font-size: 9px; line-height: 1; font-weight: 700; + color: rgba(0,0,0,0.55); opacity: 0; + } + #dsh-desktop-titlebar .traffic:hover .tl.close::after { content: "×"; opacity: 1; } + #dsh-desktop-titlebar .traffic:hover .tl.min::after { content: "–"; opacity: 1; } + #dsh-desktop-titlebar .traffic:hover .tl.zoom::after { content: "+"; opacity: 1; } + #dsh-desktop-titlebar .drag { flex: 1; height: 100%; } + #dsh-desktop-titlebar .more { + appearance: none; border: 0; background: transparent; + color: rgba(0,0,0,0.35); font-size: 15px; letter-spacing: 0.08em; + width: 28px; height: 20px; border-radius: 6px; cursor: default; + } + #dsh-desktop-titlebar .more:hover { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.7); } + #dsh-desktop-titlebar .menu { + position: absolute; top: calc(var(--dsh-desktop-titlebar-h) + 2px); left: 8px; min-width: 168px; + padding: 4px; border-radius: 10px; + background: rgba(255,255,255,0.96); + box-shadow: 0 8px 28px rgba(0,0,0,0.16); + display: none; flex-direction: column; + } + #dsh-desktop-titlebar .menu.open { display: flex; } + #dsh-desktop-titlebar .menu button { + appearance: none; border: 0; background: transparent; + text-align: left; padding: 7px 10px; border-radius: 6px; + font: 13px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; + color: #1d1d1f; cursor: default; + } + #dsh-desktop-titlebar .menu button:hover { background: rgba(0,0,0,0.05); } + #dsh-desktop-titlebar .menu button:disabled { opacity: 0.35; } + `; + + function api() { + return window.__TAURI__ || null; + } + + function inject() { + if (document.getElementById("dsh-desktop-titlebar")) return; + const style = document.createElement("style"); + style.textContent = css; + document.documentElement.appendChild(style); + + const bar = document.createElement("header"); + bar.id = "dsh-desktop-titlebar"; + bar.innerHTML = + '' + + '" + + '
' + + '
' + + '' + + '' + + '' + + "
"; + document.documentElement.appendChild(bar); + if (/^(127\.0\.0\.1|localhost|\[::1\])$/.test(location.hostname)) { + document.documentElement.classList.add("dsh-desktop-offset"); + } + + const menu = bar.querySelector(".menu"); + const more = bar.querySelector(".more"); + more.addEventListener("click", function (e) { + e.stopPropagation(); + menu.classList.toggle("open"); + }); + document.addEventListener("click", function () { + menu.classList.remove("open"); + }); + + bar.addEventListener("dblclick", function (e) { + if (e.target.closest(".tl, .more, .menu")) return; + const t = api(); + if (t && t.window) t.window.getCurrentWindow().toggleMaximize(); + }); + + bar.addEventListener("click", function (e) { + const t = api(); + const winBtn = e.target.closest("[data-win]"); + if (winBtn && t && t.window) { + const w = t.window.getCurrentWindow(); + const act = winBtn.getAttribute("data-win"); + if (act === "close") w.close(); + else if (act === "minimize") w.minimize(); + else if (act === "zoom") w.toggleMaximize(); + return; + } + const cmd = e.target.closest("[data-cmd]"); + if (cmd && t && t.core) { + menu.classList.remove("open"); + t.core.invoke(cmd.getAttribute("data-cmd")); + } + }); + } + + if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", inject); + } else { + inject(); + } + + const harness = /^(127\.0\.0\.1|localhost|\[::1\])$/.test(location.hostname); + if (harness && location.protocol.indexOf("http") === 0) { + document.addEventListener("paste", async function (e) { + const t = api(); + if (!t || !t.core) return; + try { + const items = e.clipboardData ? Array.from(e.clipboardData.items) : []; + if (items.some(function (item) { return item.kind === "file" && item.getAsFile(); })) { + return; + } + const files = await t.core.invoke("read_clipboard_images"); + if (files && files.length) { + e.preventDefault(); + e.stopImmediatePropagation(); + if (window.__dshDesktopPasteFiles) window.__dshDesktopPasteFiles(files); + } + } catch (err) {} + }, true); + } +})(); diff --git a/ui/inject/hide-twins.js b/ui/inject/hide-twins.js new file mode 100644 index 0000000..2bb3c65 --- /dev/null +++ b/ui/inject/hide-twins.js @@ -0,0 +1,35 @@ +(function () { + const SUFFIX = " (modlens vision)"; + function textOf(el) { + return (el.textContent || "").replace(/\s+/g, " ").trim(); + } + function hideTwins(root) { + const nodes = root.querySelectorAll("button, [role='menuitem'], [role='option'], [role='group'], h1, h2, h3, h4, span, div, p"); + const visionBases = new Set(); + for (const el of nodes) { + if (el.childElementCount > 3) continue; + const t = textOf(el); + if (t.endsWith(SUFFIX) && t.length > SUFFIX.length) { + visionBases.add(t.slice(0, -SUFFIX.length)); + } + } + if (visionBases.size === 0) return; + for (const el of nodes) { + if (el.childElementCount > 3) continue; + const t = textOf(el); + if (!visionBases.has(t)) continue; + const row = el.closest("[role='group'], [role='menuitem'], li, section") || el; + if (row && row.style.display !== "none") row.style.display = "none"; + } + } + const run = function () { + try { hideTwins(document.body); } catch (e) {} + }; + if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", run); + } else { + run(); + } + const obs = new MutationObserver(run); + obs.observe(document.documentElement, { childList: true, subtree: true }); +})(); diff --git a/ui/inject/ingest.js b/ui/inject/ingest.js new file mode 100644 index 0000000..02ae5e0 --- /dev/null +++ b/ui/inject/ingest.js @@ -0,0 +1,45 @@ +(function () { + const IMAGE_PATH = /^(?:file:\/\/|(?:\/|\.{1,2}\/)).+\.(?:png|jpe?g|gif|webp|bmp|tiff?)$/i; + function looksLikeImagePath(text) { + const first = (text || "").trim().split(/\s+/, 1)[0] || ""; + return IMAGE_PATH.test(first); + } + document.addEventListener("paste", function (e) { + try { + const items = Array.from(e.clipboardData ? e.clipboardData.items : []); + const files = items.filter(function (item) { return item.kind === "file"; }) + .map(function (item) { return item.getAsFile(); }) + .filter(Boolean); + if (files.length > 0) return; + const text = e.clipboardData ? (e.clipboardData.getData("text/plain") || "") : ""; + const uris = e.clipboardData ? (e.clipboardData.getData("text/uri-list") || "") : ""; + if (looksLikeImagePath(text) || looksLikeImagePath(uris)) { + e.preventDefault(); + e.stopImmediatePropagation(); + } + } catch (err) {} + }, true); + + window.__dshDesktopPasteFiles = function (items) { + try { + const dt = new DataTransfer(); + for (const item of items) { + const bin = atob(item.b64); + const bytes = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i); + dt.items.add(new File([bytes], item.name, { type: item.type })); + } + const drop = new DragEvent("drop", { + bubbles: true, + cancelable: true, + dataTransfer: dt + }); + try { + Object.defineProperty(drop, "dataTransfer", { value: dt, configurable: true }); + } catch (e) {} + document.dispatchEvent(drop); + } catch (err) { + console.error("dsh-desktop paste image failed", err); + } + }; +})(); diff --git a/ui/styles.css b/ui/styles.css new file mode 100644 index 0000000..9750cfc --- /dev/null +++ b/ui/styles.css @@ -0,0 +1,114 @@ +:root { + color-scheme: light dark; + --bg: #f5f5f7; + --text: #1d1d1f; + --muted: #86868b; + --accent: #0071e3; + --card: rgba(255, 255, 255, 0.64); +} + +@media (prefers-color-scheme: dark) { + :root { + --bg: #000000; + --text: #f5f5f7; + --muted: #86868b; + --accent: #0a84ff; + --card: rgba(28, 28, 30, 0.72); + } +} + +* { box-sizing: border-box; } + +html, body { + margin: 0; + min-height: 100%; + background: var(--bg); + color: var(--text); + font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", + "Helvetica Neue", system-ui, sans-serif; + -webkit-font-smoothing: antialiased; +} + +body { + min-height: 100vh; +} + +.stage { + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; + padding: 72px 32px 48px; +} + +.hero { + width: min(420px, 100%); + text-align: center; +} + +.mark { + display: block; + width: 72px; + height: 72px; + margin: 0 auto 22px; + border-radius: 18px; + object-fit: contain; +} + +h1 { + margin: 0; + font-size: 28px; + font-weight: 600; + letter-spacing: -0.03em; +} + +#status { + margin: 10px 0 0; + color: var(--muted); + font-size: 13px; + line-height: 1.5; + min-height: 1.5em; +} + +.ring { + width: 22px; + height: 22px; + margin: 28px auto 0; + border-radius: 50%; + border: 1.5px solid rgba(134, 134, 139, 0.28); + border-top-color: var(--text); + animation: spin 0.8s linear infinite; +} + +.ring[hidden] { display: none; } + +@keyframes spin { to { transform: rotate(360deg); } } + +.pill { + margin-top: 28px; + appearance: none; + border: 0; + border-radius: 980px; + background: var(--accent); + color: #fff; + font: 600 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; + padding: 9px 18px; + cursor: default; +} + +.pill[hidden] { display: none; } + +#detail { + margin: 22px 0 0; + text-align: left; + max-height: 180px; + overflow: auto; + padding: 12px 14px; + border-radius: 12px; + background: var(--card); + color: var(--muted); + font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; + white-space: pre-wrap; +} + +#detail[hidden] { display: none; }