DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
docs: sync desktop features and development guides (#800)
Mao Mr010c6b74e5ab
diff --git a/README.en.md b/README.en.mdindex 373464cd..054b993e 100644--- a/README.en.md+++ b/README.en.md@@ -7,8 +7,8 @@<h1 align="center">DeepSeek Harness Desktop</h1><p align="center">- Run <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a> on your desktop, instantly —<br />- no Node.js, no pnpm, no Docker. Download, install, go.+ Run <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a> on your desktop —<br />+ no manual Node.js, pnpm, or Docker setup; standard installs may need network initialization on first launch.</p><p align="center">@@ -27,7 +27,7 @@</p><p align="center">- <a href="https://trendshift.io/repositories/151676?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-151676" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/151676/daily?language=Rust" alt="dsh-tauri%2Fdeepseek-harness-desktop | Trendshift" width="250" height="55"/></a>+ <a href="https://trendshift.io/repositories/151676?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-151676" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/151676/daily?language=Rust" alt="dsh-tauri%2Fdeepseek-harness-desktop | Trendshift" width="250" height="55"/></a></p><p align="center">@@ -38,65 +38,82 @@## Features-- ⚡️ **Zero setup** — First launch needs no Node runtime or Harness core; uses the local environment by default and does not modify your existing system environment.-- 🔄 **Core update** — Syncs the latest upstream Harness version in-app, so upstream updates take effect without reinstalling; supports managing multiple core versions.-- 🖥️ **Config** — One dialog for Debug / Profiles / Plugins / Core, with bilingual (zh/en) UI labels and dark-mode support.-- 🗂️ **Profile isolation** — Profiles are isolated from each other in the config; plugins, patches, and settings stay independent and do not interfere.-- 🧩 **Plugin management** — The plugin panel manages installed plugins; when something misbehaves it offers upgrade / uninstall entry points plus error details.-- 🎁 **Built-in plugins** — Ships with bundled plugins; more high-quality built-in plugins are coming in the future.-- 🪶 **Native & lightweight** — A Tauri 2 shell (not Electron): smaller installers, lower memory, native windows.-- ⌨️ **CLI integration** — Install automatically registers the `dsh` command, ready in a new terminal; does not overwrite your existing shell config.-- 🧭 **Launch wizard** — On first launch, choose recommended plugins, or re-select them later in config.-- 🚀 **Self-update** — In-app updates; no need to re-download.-- 🐾 **Desktop pets** — Manage Pets and Codex sources with presets that work out of the box (streamed from their upstream asset hosts, no download step), import Codex `.zip` packs, and show activity states from conversations.+- 🪶 **Native desktop** — Tauri 2 + React 19, embedding the local Harness web UI.+- 🔄 **Runtime management** — Install dependencies, select core versions, and access desktop/core updates.+- 🧩 **Plugin management** — 11 built-in plugins, plus community plugin installation, upgrades, removal, and error details.+- 🗂️ **Profile configuration** — Separate plugin/settings configurations; profiles are not an OS security sandbox.+- ⌨️ **CLI integration** — Managed `dsh` / `pnpm` shims, not a global npm core installation.+- 🐾 **Desktop pets** — Pets / Codex resources, pack imports, and conversation activity; preset media comes from remote hosts.-## Presets+## Built-in plugins-Plugins offered in the first-run wizard; select what you need and install on demand:+The 11 first-party plugins distributed with desktop resources:-- [DSH Market](https://github.com/dsh-market/dsh-market) — browse, search, and one-click install community plugins (Recommended)-- [DSH Better Sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) — a VSCode-like right sidebar, isolated per session (Recommended)-- [DSH Rewind](https://github.com/SiriLee/dsh-rewind) — in-window conversation rewind that never forks a new session, plus a lightweight workspace backup that restores files along with the rewind (Recommended)-- [DSH Bridge](https://github.com/wenbin-wb/dsh-bridge) — LAN QR-code connect, Cloudflare and self-hosted public tunnels, plus WeChat / QQ / Feishu / Telegram bot conversations so you can keep working on your local Harness from anywhere; includes built-in access authentication and tamper safeguards (Recommended)-- [DSH-IM](https://github.com/xmanrui/dsh-im) — connect WeChat, Feishu, DingTalk, WeCom, QQ, Slack, Telegram, Discord, WhatsApp, iMessage and more to your local Harness, managed from an "IM" sidebar panel (Recommended)-- [Billion Context](https://github.com/ranxianglei/billion-context) — context compression as a native DSH plugin: folds conversation history as it grows so long sessions keep running within a small context window, restoring folded content on demand via `decompress` / `search_context` (not pre-checked)+| Plugin | Package | Purpose |+| --- | --- | --- |+| [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) | `dsh-tauri` | Desktop shell / Harness communication |+| [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) | `dsh-tauri-ui` | Desktop settings UI |+| [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) | `dsh-tauri-worktree` | Session Git worktrees and checkout |+| [DSH Tauri Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-extension) | `dsh-tauri-extension` | Skills, skill sources, and MCP management |+| [DSH Tauri Scheduler](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-scheduler) | `dsh-tauri-scheduler` | Scheduled tasks and run history |+| [DSH Tauri Archive](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-archive) | `dsh-tauri-archive` | Chat archiving and restoration |+| [DSH Tauri Pet](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-pet) | `dsh-tauri-pet` | Pets and activity states |+| [DSH Tauri Rightclick Menu](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-rightclick) | `dsh-tauri-rightclick` | Session, workspace, and text context menus |+| [DSH Tauri Model](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-model) | `dsh-tauri-model` | Model selection and parameters |+| [DSH Tauri SSH](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ssh) | `dsh-tauri-ssh` | Remote Harness connections and sync over SSH |+| [DSH Tauri Notification](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-notification) | `dsh-tauri-notification` | Conversation notifications and actions |-> The preset list is maintained by the desktop project. To request a new or updated preset, open an issue in [deepseek-harness-desktop](https://github.com/dsh-tauri/deepseek-harness-desktop/issues).+`dsh-tauri-experimental` is optional, disabled by default, and not included in the built-in count.-## Built-in plugins+## Optional presets++Setup offers these 6 community plugins for installation on demand. The first 5 are recommended; Billion Context is opt-in.-First-party plugins bundled with the installer:+| Plugin | Package | Purpose |+| --- | --- | --- |+| [DSH Market](https://github.com/dsh-market/dsh-market) | `dshmarket` | Community plugin market |+| [DSH Better Sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) | `dsh-better-sidebar` | Per-session editor sidebar |+| [DSH Rewind](https://github.com/SiriLee/dsh-rewind) | `dsh-rewind-plugin` | Conversation rewind and workspace backups |+| [DSH Bridge](https://github.com/wenbin-wb/dsh-bridge) | `@wenbin_wb/dsh-bridge` | Remote access, tunnels, and bot connections |+| [DSH IM](https://github.com/xmanrui/dsh-im) | `@xmanrui/dsh-im` | IM channels and bot management |+| [Billion Context](https://github.com/ranxianglei/billion-context) | `billion-context` | Context compression and history restoration |-- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — provides a communication channel with the Tauri 2 shell, and lets the cross-origin sandboxed WebView reach the loopback Host by overriding the desktop carrier's two authentication gates on the `connection` service-- [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) — provides a custom settings sidebar for the Tauri 2 shell-- [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) — creates an isolated Git worktree per session, with checkout to a local branch or archive-and-abandon flows-- [DSH Tauri Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-extension) — Skills and MCP management with skill repository import, plus an embedded plugin market panel-- [DSH Tauri Scheduler](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-scheduler) — creates daily, interval, weekday, and weekly scheduled tasks; runs them in independent Agent sessions and retains run history-- [DSH Tauri Archive](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-archive) — replaces workspace deletion with archiving and adds an Archived Chats settings page with search, sorting, grouping, project filtering, and unarchive support-- [DSH Tauri Pet](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-pet) — manages Chat / Codex pets, preset downloads, resource-pack imports, and conversation activity states-- [DSH Tauri Rightclick](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-rightclick) — native-style right-click context menus for sessions, workspaces, conversation text, links, and inputs-- [DSH Tauri Model](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-model) — provides model selection and parameter configuration-- More plugins coming soon...+Request new or updated presets via [Issues](https://github.com/dsh-tauri/deepseek-harness-desktop/issues). Available versions follow the manifest's core compatibility rules.## Quick Start-Download the installer for your platform from [Releases](https://github.com/dsh-tauri/deepseek-harness-desktop/releases), install, and launch.+Download the installer for your platform and architecture from [Releases](https://github.com/dsh-tauri/deepseek-harness-desktop/releases):-**macOS (Homebrew):** you can also install it in one command via Homebrew:+| Platform | Requirements | Installer |+| --- | --- | --- |+| Windows | Windows 10+, WebView2 | x64 `.exe` / `.msi` |+| macOS | macOS 12+; web UI requires Safari 17.4+ capabilities | Intel / Apple Silicon `.dmg` |+| Linux | WebKit2GTK 4.1 runtime libraries | x64 `.AppImage` / `.deb` |++macOS also supports Homebrew installation:```bashbrew install dsh-tauri/desktop/deepseek-harness```-The first run downloads the Node runtime and Harness core (if `dsh` is already installed, the installed version is used), then takes you straight into the harness at `http://127.0.0.1:3080`; after that everything runs locally — no network required.+- Standard installers need network on first launch to download missing runtime/core components. Git features require an available Git.+- Use a `Bundle` only when that release actually publishes runtime/core assets in it. **v0.20.0-beta.1 has no Bundle assets**.+- Local execution is not fully offline: model services, plugin installation, updates, and preset pet media can still use network.+- For Linux display, Wayland, AppImage, and permission workarounds, see the [installation and troubleshooting docs](https://dshtauri.mintlify.site).-**System requirements:** Windows 10+ · macOS 12+ (Safari 17.4+) · Linux (AppImage / .deb) · network on first launch · Harness core **0.1.5-rc.1** or later+## Runtime-**Offline bundle (Windows / macOS / Linux):** Releases also ship `Deepseek.Harness.Desktop_Bundle_<version>.<ext>` — the Node runtime and Harness core are bundled in, so the **first launch needs no network**. Built for air-gapped / whitelisted machines (preset and community plugins still need network, and git-backed features such as worktree need a system Git). The Linux bundle ships inside the `.deb`, whose `/usr/lib` resources are read-only, so the bundled core's directory permissions have to be fixed after a root install.+| Current baseline | Version |+| --- | --- |+| Desktop | `0.20.0-beta.1` |+| Recommended Harness core | `0.2.0-rc.2` |+| Declared minimum core | `0.1.5-rc.1`; not an all-plugin compatibility guarantee |+| Node.js runtime | `22.22.0` |+| pnpm | `11.7.0` |-> **Linux Wayland note (PikaOS / GNOME Wayland / Ubuntu 22.04+):** the AppImage's GTK hook forces `GDK_BACKEND=x11`; when a Wayland session is available the app drops it and uses the native Wayland backend instead (issue #789), while the WebKitGTK black-screen/crash fallback still applies. <details><summary>If it still crashes / renders black, or you need the pet window on top:</summary><br>**Prefer `.deb`** (verified on PikaOS 4 Wayland); to keep XWayland set `DSH_FORCE_XWAYLAND=1` (or enable `force_xwayland` in settings); rendering fallback `WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 ./AppImage`. If icons do not appear, copy the app's `hicolor` icons to `~/.local/share/icons` and run `update-desktop-database`.<br></details>->-> **Rolling-release Linux starts and dies at once (Arch / CachyOS / Fedora, …):** older AppImages bundled the build image's (Ubuntu 22.04) display-stack libs such as `libwayland-client`. A newer host Mesa is ABI-incompatible with them, so `WebKitWebProcess` calls `abort()` — the app shows **no window and no logs at all**. The build now strips these libs (see `.github/workflows/build-linux.yml` and `scripts/fix-appimage-host-libs.sh`); use a release built after that change. If you are still affected, use the `.deb`, or `LD_PRELOAD=/usr/lib/libwayland-client.so.0 ./AppImage` (adjust the path for your distro).+- The Rust backend manages dependencies and the Harness process; the React WebView embeds its UI. Release defaults to `http://127.0.0.1:3080`, with port fallback when occupied.+- Core and preset selection follow the [resource manifest](<./src-tauri/resources/manifest.jsonc>) and declared plugin version ranges, not a promise of compatibility with arbitrary latest upstream releases.+- CLI integration is enabled by default in release: Windows updates user PATH; macOS / Linux may add a managed PATH block to Bash / Zsh configuration. Reopen your terminal; other shells may need manual setup.## Community@@ -109,72 +126,25 @@ The first run downloads the Node runtime and Harness core (if `dsh` is already i</tr></table>-## Dev--Want to get involved in development? See [docs/DEVELOPMENT.md](./docs/DEVELOPMENT.md).--## How It Works--```text-┌──────────────────────────────────────────────┐-│ Tauri WebView (React) │-│ setup state machine → progress → iframe │-│ loads the dsh web UI + sidebar controls │-└──────────────────────┬───────────────────────┘- │ invoke commands + events-┌──────────────────────┴───────────────────────┐-│ Tauri Rust backend │-│ service/download installer + extraction │-│ service/core Harness core versions │-│ service/profile dsh profile management │-│ service/plugin plugin remove / upgrade │-│ service/cli dsh command shim + PATH │-│ service/update desktop self-update │-│ service/workflow dsh process lifecycle │-│ task dsh health checks │-└──────┬───────────────────────────┬───────────┘- │ │- runtime/ (Node.js v22.22.0) dependencies/dsh/ (prebuilt bundle)- └─────────────┬─────────────┘- ▼- dsh --profile <profile> --host 127.0.0.1 --port 3080- │ DSH_HOME=~/.dsh- ▼- http://127.0.0.1:3080/ ← embedded UI-```+## Development-The prebuilt Harness bundle is published by [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg). Every launch compares against the latest release and prompts you to download the update when the local one is outdated — keeping the local install when GitHub is unreachable. A local core installed globally via the CLI is preferred when present.+See the [English development guide](<./docs/DEVELOPMENT.md>) or [Chinese development guide](<./docs/DEVELOPMENT.zh.md>). Feature details are in the [online docs](https://dshtauri.mintlify.site).## Notes> [!WARNING]-> **Developer preview** — upstream `dsh` is evolving fast with breaking changes; this project tracks it closely.+> **Developer preview** — upstream `dsh` evolves quickly and may introduce breaking changes; check compatibility before upgrading.> [!NOTE]> **Security** — `dsh` can execute code locally. For learning / research / testing only; run it in a trusted, isolated environment.## Related-- [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) — the upstream `dsh` agent platform-- [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg) — prebuilt Harness bundles consumed by this app--### Plugin data sources--Remote assets and upstream catalogs that plugins reference at runtime:--- [PC2005-cloud/dsh-pet](https://github.com/PC2005-cloud/dsh-pet) — preset pet media (WebM motions, preview GIFs, `config.jsonc`); `pets.built-in` in `manifest.jsonc` pins `e1ff8c1`-- [dsh-tauri/dsh-pet-mov](https://github.com/dsh-tauri/dsh-pet-mov) — macOS HEVC-alpha `.mov` mirror (WKWebView does not support VP9-alpha), pinned to `be0f3bb`-- [hairyf/dsh-pet-component](https://github.com/hairyf/dsh-pet-component) — pet rendering component (npm `dsh-pet-component`)--### Plugin sub-repositories--Reference repositories cloned under `source/` as plugins need them; most are not committed to this repository:--- [PC2005-cloud/dsh-pet](https://github.com/PC2005-cloud/dsh-pet) — pet motion weights, continuous playback and bubble styling (submodule)-- [Skylarking/dsh-plugin-codex-pets](https://github.com/Skylarking/dsh-plugin-codex-pets) — Codex pet atlases and session state mapping (submodule)-- [ayangweb/BongoCat](https://github.com/ayangweb/BongoCat) — baseline for Tauri pet window, native dragging, DPI and mouse passthrough (submodule)-- [QCYTSN/dsh-dafeiyu](https://github.com/QCYTSN/dsh-dafeiyu) — pet bubble copy and status priority reference (submodule)+- [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) — upstream `dsh` agent platform+- [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg) — prebuilt Harness distributions and download source+- [dsh-pet](https://github.com/PC2005-cloud/dsh-pet) · [dsh-pet-mov](https://github.com/dsh-tauri/dsh-pet-mov) · [dsh-pet-component](https://github.com/hairyf/dsh-pet-component) — pet assets and renderer+- [dsh-plugin-codex-pets](https://github.com/Skylarking/dsh-plugin-codex-pets) · [BongoCat](https://github.com/ayangweb/BongoCat) · [dsh-dafeiyu](https://github.com/QCYTSN/dsh-dafeiyu) · [codex-to-dsh-pet](https://github.com/Signalight/codex-to-dsh-pet) — pet reference projects## License-[MIT](./LICENSE) with a [Non-Commercial Condition](./LICENSE.details) © deepseek-harness-desktop contributors+[MIT](<./LICENSE>) with a [Non-Commercial Condition](<./LICENSE.details>) © deepseek-harness-desktop contributorsdiff --git a/README.es.md b/README.es.mdindex 883d5b33..f839b4b9 100644--- a/README.es.md+++ b/README.es.md@@ -7,8 +7,8 @@<h1 align="center">DeepSeek Harness Desktop</h1><p align="center">- Ejecuta <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a> en tu escritorio, al instante —<br />- sin Node.js, sin pnpm, sin Docker. Descarga, instala y listo.+ Ejecutá <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a> en tu escritorio —<br />+ sin configurar Node.js, pnpm ni Docker manualmente; las instalaciones normales pueden necesitar red al iniciar.</p><p align="center">@@ -27,7 +27,7 @@</p><p align="center">- <a href="https://trendshift.io/repositories/151676?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-151676" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/151676/daily?language=Rust" alt="dsh-tauri%2Fdeepseek-harness-desktop | Trendshift" width="250" height="55"/></a>+ <a href="https://trendshift.io/repositories/151676?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-151676" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/151676/daily?language=Rust" alt="dsh-tauri%2Fdeepseek-harness-desktop | Trendshift" width="250" height="55"/></a></p><p align="center">@@ -38,62 +38,82 @@## Características-- ⚡️ **Cero configuración** — No tenés que instalar Node ni el núcleo Harness manualmente: el primer arranque descarga solo lo que falte (necesita conexión en ese momento) y reutiliza tu entorno local sin modificarlo.-- 🔄 **Actualización del núcleo** — Sincroniza la última versión del Harness oficial dentro de la app, los cambios surten efecto sin reinstalar; permite gestionar múltiples versiones del núcleo.-- 🖥️ **Configuración** — Un solo diálogo para Debug / Perfiles / Plugins / Núcleo, con etiquetas bilingües (zh/en) y soporte de modo oscuro.-- 🗂️ **Aislamiento por perfiles** — Los perfiles están aislados entre sí en la configuración; plugins, parches y ajustes se mantienen independientes sin interferirse.-- 🧩 **Gestión de plugins** — El panel de plugins administra los instalados; ante un problema ofrece entradas de actualización / desinstalación más detalles del error.-- 🎁 **Plugins integrados** — Incluye plugins empaquetados; más plugins integrados de calidad en camino.-- 🪶 **Nativo y liviano** — Un shell Tauri 2 (no Electron): instaladores más chicos, menos memoria, ventanas nativas.-- ⌨️ **Integración con la terminal** — La instalación registra automáticamente el comando `dsh`, listo en una terminal nueva; no sobrescribe tu configuración actual del shell.-- 🧭 **Asistente inicial** — En el primer arranque elegí los plugins recomendados, o volvé a elegirlos más tarde en la configuración.-- 🚀 **Auto-actualización** — Actualizaciones dentro de la app; sin volver a descargar.-- 🐾 **Mascotas de escritorio** — Administrá fuentes Pets y Codex con presets listos para usar (los recursos se cargan bajo demanda desde GitHub y se cachean localmente en IndexedDB para un mejor rendimiento, sin necesidad de descargas manuales), importá paquetes Codex `.zip` y mostrá estados de actividad de las conversaciones.+- 🪶 **Escritorio nativo** — Tauri 2 + React 19, con la interfaz web local de Harness integrada.+- 🔄 **Gestión del runtime** — Instalá dependencias, elegí versiones del núcleo y accedé a actualizaciones del escritorio y del núcleo.+- 🧩 **Gestión de plugins** — 11 plugins integrados, más instalación, actualización, desinstalación y detalles de errores de plugins comunitarios.+- 🗂️ **Configuración por perfiles** — Separá plugins y ajustes; los perfiles no son un sandbox de seguridad del sistema operativo.+- ⌨️ **Integración con la terminal** — Shims administrados de `dsh` / `pnpm`, no una instalación global del núcleo por npm.+- 🐾 **Mascotas de escritorio** — Recursos Pets / Codex, importación de paquetes y actividad de conversaciones; los recursos predefinidos son remotos.-## Preinstalados+## Plugins integrados-Plugins ofrecidos en el asistente del primer arranque; marcá los que necesites e instalalos a demanda:+Los 11 plugins propios distribuidos con los recursos del escritorio:-- [DSH Market](https://github.com/dsh-market/dsh-market) — explorá, buscá e instalá plugins de la comunidad con un clic (Recomendado)-- [DSH Better Sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) — barra lateral derecha estilo VSCode, aislada por sesión (Recomendado)-- [DSH Rewind](https://github.com/SiriLee/dsh-rewind) — retroceso de conversación dentro de la misma ventana, sin crear una sesión nueva, más una copia de seguridad liviana del espacio de trabajo que restaura los archivos junto con el retroceso (Recomendado)+| Plugin | Paquete | Función |+| --- | --- | --- |+| [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) | `dsh-tauri` | Comunicación entre el escritorio y Harness |+| [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) | `dsh-tauri-ui` | Interfaz de ajustes del escritorio |+| [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) | `dsh-tauri-worktree` | Worktrees Git por sesión y checkout |+| [DSH Tauri Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-extension) | `dsh-tauri-extension` | Skills, fuentes de skills y gestión de MCP |+| [DSH Tauri Scheduler](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-scheduler) | `dsh-tauri-scheduler` | Tareas programadas e historial |+| [DSH Tauri Archive](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-archive) | `dsh-tauri-archive` | Archivo y restauración de chats |+| [DSH Tauri Pet](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-pet) | `dsh-tauri-pet` | Mascotas y estados de actividad |+| [DSH Tauri Rightclick Menu](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-rightclick) | `dsh-tauri-rightclick` | Menús contextuales de sesiones, workspaces y texto |+| [DSH Tauri Model](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-model) | `dsh-tauri-model` | Selección de modelos y parámetros |+| [DSH Tauri SSH](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ssh) | `dsh-tauri-ssh` | Conexiones Harness remotas y sincronización por SSH |+| [DSH Tauri Notification](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-notification) | `dsh-tauri-notification` | Notificaciones de conversaciones y acciones |-> La lista de preinstalados la mantiene el proyecto desktop. Para pedir un preset nuevo o actualizado, abrí un issue en [deepseek-harness-desktop](https://github.com/dsh-tauri/deepseek-harness-desktop/issues).+`dsh-tauri-experimental` es opcional, está desactivado por defecto y no cuenta entre los 11 integrados.-## Plugins integrados+## Preajustes opcionales-Plugins propios incluidos con el instalador:+El asistente ofrece estos 6 plugins comunitarios para instalar a demanda. Los primeros 5 son recomendados; Billion Context requiere selección explícita.-- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — provee el canal de comunicación con el shell Tauri 2, y permite que el WebView integrado en un sandbox de origen cruzado alcance el Host de loopback sobrescribiendo las dos puertas de autenticación del carrier de escritorio en el servicio `connection`-- [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) — provee una barra lateral de ajustes personalizada para el shell Tauri 2-- [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) — crea un Git worktree aislado por sesión, con checkout a rama local o flujos de archivar-y-abandonar-- [DSH Tauri Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-extension) — gestión de Skills y MCP con importación de repositorios de skills, más un panel del mercado de plugins integrado-- [DSH Tauri Scheduler](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-scheduler) — crea tareas programadas diarias, por intervalo, días hábiles y semanales; las ejecuta en sesiones Agent independientes y conserva el historial-- [DSH Tauri Archive](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-archive) — reemplaza el borrado de workspaces por archivado y agrega una página de chats archivados con búsqueda, orden, agrupado, filtro por proyecto y restauración-- [DSH Tauri Pet](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-pet) — administra mascotas Chat / Codex, descargas de presets, importación de paquetes y estados de actividad-- [DSH Tauri Rightclick](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-rightclick) — menús contextuales estilo nativo para sesiones, workspaces, texto, enlaces y entradas-- [DSH Tauri Model](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-model) — permite seleccionar modelos y configurar sus parámetros-- Más plugins en camino...+| Plugin | Paquete | Función |+| --- | --- | --- |+| [DSH Market](https://github.com/dsh-market/dsh-market) | `dshmarket` | Mercado de plugins comunitarios |+| [DSH Better Sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) | `dsh-better-sidebar` | Barra lateral del editor por sesión |+| [DSH Rewind](https://github.com/SiriLee/dsh-rewind) | `dsh-rewind-plugin` | Retroceso de conversación y backups del workspace |+| [DSH Bridge](https://github.com/wenbin-wb/dsh-bridge) | `@wenbin_wb/dsh-bridge` | Acceso remoto, túneles y conexión de bots |+| [DSH IM](https://github.com/xmanrui/dsh-im) | `@xmanrui/dsh-im` | Canales IM y gestión de bots |+| [Billion Context](https://github.com/ranxianglei/billion-context) | `billion-context` | Compresión de contexto y restauración del historial |++Pedí preajustes nuevos o actualizados mediante [Issues](https://github.com/dsh-tauri/deepseek-harness-desktop/issues). Las versiones disponibles siguen las reglas de compatibilidad del manifiesto.## Inicio rápido-Descargá el instalador de tu plataforma desde [Releases](https://github.com/dsh-tauri/deepseek-harness-desktop/releases), instalá y abrí.+Descargá el instalador de tu plataforma y arquitectura desde [Releases](https://github.com/dsh-tauri/deepseek-harness-desktop/releases):++| Plataforma | Requisitos | Instalador |+| --- | --- | --- |+| Windows | Windows 10+, WebView2 | x64 `.exe` / `.msi` |+| macOS | macOS 12+; la interfaz web necesita capacidades de Safari 17.4+ | Intel / Apple Silicon `.dmg` |+| Linux | Bibliotecas de runtime WebKit2GTK 4.1 | x64 `.AppImage` / `.deb` |-**macOS (Homebrew):** también podés instalarlo con un comando vía Homebrew:+En macOS también podés instalar por Homebrew:```bashbrew install dsh-tauri/desktop/deepseek-harness```-El primer arranque descarga el runtime de Node y el núcleo Harness (si `dsh` ya está instalado, se usa la versión instalada), y te lleva directo al harness en `http://127.0.0.1:3080`; después todo corre local, sin red.+- Los instaladores normales necesitan red en el primer arranque para descargar los componentes faltantes del runtime y del núcleo. Las funciones Git necesitan un Git disponible.+- Usá un `Bundle` solo si ese release realmente incluye los recursos del runtime y del núcleo. **v0.20.0-beta.1 no tiene assets Bundle**.+- Ejecutar localmente no significa estar totalmente sin conexión: modelos, instalación de plugins, actualizaciones y recursos de mascotas predefinidas pueden usar red.+- Para problemas de pantalla, Wayland, AppImage y permisos en Linux, consultá la [documentación de instalación y solución de problemas](https://dshtauri.mintlify.site).-**Requisitos:** Windows 10+ · macOS 12+ (Safari 17.4+) · Linux (AppImage / .deb) · red en el primer arranque · núcleo Harness **0.1.5-rc.1** o superior+## Runtime-**Paquete sin conexión (Windows / macOS / Linux):** En Releases también está `Deepseek.Harness.Desktop_Bundle_<versión>.<ext>`: trae el runtime de Node y el núcleo Harness, así que **el primer arranque no necesita red**. Pensado para equipos sin internet o con lista blanca (los plugins preestablecidos y de la comunidad sí necesitan red, y las funciones basadas en git —como los worktrees— necesitan un Git del sistema). En Linux el paquete va dentro del `.deb`, cuyos recursos en `/usr/lib` son de solo lectura: hay que corregir los permisos de ese directorio después de instalarlo como root.+| Base actual | Versión |+| --- | --- |+| Escritorio | `0.20.0-beta.1` |+| Núcleo Harness recomendado | `0.2.0-rc.2` |+| Núcleo mínimo declarado | `0.1.5-rc.1`; no garantiza compatibilidad con todos los plugins |+| Runtime Node.js | `22.22.0` |+| pnpm | `11.7.0` |-> **Nota Wayland en Linux (PikaOS / GNOME Wayland / Ubuntu 22.04+):** el hook GTK del AppImage fuerza `GDK_BACKEND=x11`; cuando hay una sesión Wayland disponible la app lo descarta y usa el backend Wayland nativo (issue #789), y el arreglo automático de WebKitGTK sigue aplicándose. <details><summary>Si igual crashea / se ve negro, o necesitás la mascota siempre visible:</summary><br>**Preferí el `.deb`** (verificado en PikaOS 4 Wayland); para conservar XWayland definí `DSH_FORCE_XWAYLAND=1` (o activá `force_xwayland` en los ajustes); respaldo de render `WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 ./AppImage`. Si no aparecen los iconos, copiá los iconos `hicolor` de la app a `~/.local/share/icons` y ejecutá `update-desktop-database`.<br></details>->-> **Linux de liberación continua arranca y muere al instante (Arch / CachyOS / Fedora, …):** los AppImage antiguos empaquetaban las librerías de la pila de display de la imagen de build (Ubuntu 22.04), como `libwayland-client`. Un Mesa más nuevo del sistema es incompatible a nivel ABI con ellas, así que `WebKitWebProcess` llama a `abort()`: la app **no muestra ninguna ventana ni ningún log**. El build ya elimina esas librerías (ver `.github/workflows/build-linux.yml` y `scripts/fix-appimage-host-libs.sh`); usá una versión publicada después de ese cambio. Si igual te afecta, usá el `.deb`, o `LD_PRELOAD=/usr/lib/libwayland-client.so.0 ./AppImage` (ajustá la ruta según tu distro).+- El backend Rust gestiona dependencias y el proceso Harness; el WebView React integra su interfaz. La versión release usa `http://127.0.0.1:3080` por defecto y puede cambiar el puerto si está ocupado.+- La selección del núcleo y los preajustes sigue el [manifiesto de recursos](<./src-tauri/resources/manifest.jsonc>) y los rangos declarados por los plugins; no garantiza compatibilidad con cualquier nueva versión oficial.+- La integración CLI está habilitada por defecto en release: Windows actualiza el PATH del usuario; macOS / Linux pueden agregar un bloque PATH administrado a Bash / Zsh. Reabrí la terminal; otros shells pueden requerir configuración manual.## Comunidad@@ -108,70 +128,23 @@ El primer arranque descarga el runtime de Node y el núcleo Harness (si `dsh` ya## Desarrollo-¿Querés participar del desarrollo? Mirá [docs/DEVELOPMENT.md](./docs/DEVELOPMENT.md).--## Cómo funciona--```text-┌──────────────────────────────────────────────┐-│ Tauri WebView (React) │-│ máquina de estados → progreso → iframe │-│ carga la UI web de dsh + controles │-└──────────────────────┬───────────────────────┘- │ comandos invoke + eventos-┌──────────────────────┴───────────────────────┐-│ Backend Rust (Tauri) │-│ service/download instalador + extracción │-│ service/core versiones del núcleo │-│ service/profile gestión de perfiles dsh │-│ service/plugin quitar / actualizar │-│ service/cli shim del comando + PATH │-│ service/update auto-actualización │-│ service/workflow ciclo de vida de dsh │-│ task health checks │-└──────┬───────────────────────────┬───────────┘- │ │- runtime/ (Node.js v22.22.0) dependencies/dsh/ (paquete prearmado)- └─────────────┬─────────────┘- ▼- dsh --profile <perfil> --host 127.0.0.1 --port 3080- │ DSH_HOME=~/.dsh- ▼- http://127.0.0.1:3080/ ← UI integrada-```--El paquete Harness prearmado lo publica [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg). Cada arranque compara contra el último release y te propone descargar si el local quedó viejo — conservando lo local si GitHub es inalcanzable. Un núcleo local instalado vía CLI tiene preferencia si existe.+Consultá la [guía en inglés](<./docs/DEVELOPMENT.md>) o la [guía en chino](<./docs/DEVELOPMENT.zh.md>). Los detalles de funciones están en la [documentación online](https://dshtauri.mintlify.site).## Notas> [!WARNING]-> **Vista previa** — el `dsh` oficial evoluciona rápido con cambios incompatibles; este proyecto lo sigue de cerca.->+> **Vista previa** — el `dsh` oficial evoluciona rápido y puede introducir cambios incompatibles; verificá la compatibilidad antes de actualizar.+> [!NOTE]> **Seguridad** — `dsh` puede ejecutar código en tu máquina. Solo para aprender / investigar / probar; usalo en un entorno confiable y aislado.## Relacionados-- [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) — la plataforma agent `dsh` oficial-- [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg) — paquetes Harness prearmados que consume esta app--### Fuentes de datos de los plugins--Recursos remotos y catálogos oficiales que los plugins consumen en tiempo de ejecución:--- [PC2005-cloud/dsh-pet](https://github.com/PC2005-cloud/dsh-pet) — recursos de las mascotas predefinidas (movimientos WebM, GIF de vista previa, `config.jsonc`); `pets.built-in` de `manifest.jsonc` fija `e1ff8c1`-- [dsh-tauri/dsh-pet-mov](https://github.com/dsh-tauri/dsh-pet-mov) — espejo `.mov` HEVC-alpha para macOS (WKWebView no soporta VP9-alpha), fijado en `be0f3bb`-- [hairyf/dsh-pet-component](https://github.com/hairyf/dsh-pet-component) — componente de render de la mascota (npm `dsh-pet-component`)--### Subrepositorios de los plugins--Repositorios de referencia clonados en `source/` según los necesita cada plugin; la mayoría no se versiona en este repositorio:--- [PC2005-cloud/dsh-pet](https://github.com/PC2005-cloud/dsh-pet) — pesos de movimiento, reproducción continua y estilo de burbujas (submódulo)-- [Skylarking/dsh-plugin-codex-pets](https://github.com/Skylarking/dsh-plugin-codex-pets) — atlas de mascotas Codex y mapeo de estado de sesión (submódulo)-- [ayangweb/BongoCat](https://github.com/ayangweb/BongoCat) — referencia de ventana Tauri, arrastre nativo, DPI y paso del ratón (submódulo)-- [QCYTSN/dsh-dafeiyu](https://github.com/QCYTSN/dsh-dafeiyu) — referencia de textos de burbuja y prioridad de estados (submódulo)+- [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) — plataforma agent `dsh` oficial+- [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg) — distribuciones Harness prearmadas y fuente de descarga+- [dsh-pet](https://github.com/PC2005-cloud/dsh-pet) · [dsh-pet-mov](https://github.com/dsh-tauri/dsh-pet-mov) · [dsh-pet-component](https://github.com/hairyf/dsh-pet-component) — recursos y render de mascotas+- [dsh-plugin-codex-pets](https://github.com/Skylarking/dsh-plugin-codex-pets) · [BongoCat](https://github.com/ayangweb/BongoCat) · [dsh-dafeiyu](https://github.com/QCYTSN/dsh-dafeiyu) · [codex-to-dsh-pet](https://github.com/Signalight/codex-to-dsh-pet) — proyectos de referencia de mascotas## Licencia-[MIT](./LICENSE) con [condición no comercial](./LICENSE.details) © deepseek-harness-desktop contributors+[MIT](<./LICENSE>) con [condición no comercial](<./LICENSE.details>) © deepseek-harness-desktop contributorsdiff --git a/README.md b/README.mdindex 2f14c697..02801b52 100644--- a/README.md+++ b/README.md@@ -7,8 +7,8 @@<h1 align="center">DeepSeek Harness 桌面版</h1><p align="center">- 在桌面上一键运行 <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a> ——<br />- 无需 Node.js、无需 pnpm、无需 Docker,下载即用。+ 在桌面上运行 <a href="https://github.com/deepseek-ai/deepseek-harness">DeepSeek Harness</a> ——<br />+ 无需手动安装 Node.js、pnpm 或 Docker;普通安装首次启动可能需要联网初始化。</p><p align="center">@@ -27,71 +27,93 @@</p><p align="center">- <a href="https://trendshift.io/repositories/151676?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-151676" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/151676/daily?language=Rust" alt="dsh-tauri%2Fdeepseek-harness-desktop | Trendshift" width="250" height="55"/></a>+ <a href="https://trendshift.io/repositories/151676?utm_source=trendshift-badge&utm_medium=badge&utm_campaign=badge-trendshift-151676" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/151676/daily?language=Rust" alt="dsh-tauri%2Fdeepseek-harness-desktop | Trendshift" width="250" height="55"/></a></p>-<p align="center"><a href="docs/PREVIEW.md"><img src="./docs/images/hero-zh.png" width="100%" alt="DSH Desktop 中文宣传横幅" /></a></p>-- 🧩 **插件管理** — 插件面板管理已安装插件,出现异常时提供升级 / 卸载入口,错误详情。-- 🎁 **内置插件** — 随安装包内置插件,以及将来引入更多高质量的内置插件。-- 🪶 **原生轻量** — Tauri 2 外壳(非 Electron):更小的安装包、更低的内存占用、原生窗口。-- ⌨️ **命令行集成** — 安装自动注册 `dsh` 命令,新开终端即用;不覆盖你已有 shell 配置。-- 🧭 **启动引导** — 首次启动可选推荐插件,也可在配置中重新选择。-- 🚀 **自更新** — 应用内更新,不需要重新下载;-- 🐾 **桌宠** — 提供 Pets / Codex 双来源桌宠管理,预设宠物开箱即用(直连远端素材,无需下载)、可导入 Codex `.zip` 资源包,并根据会话活动显示状态气泡。+## 功能++- 🪶 **原生桌面** — Tauri 2 + React 19,内嵌本地 Harness Web 界面。+- 🔄 **运行时管理** — 安装依赖、选择内核版本,并提供桌面端与内核更新入口。+- 🧩 **插件管理** — 11 个内置插件;支持社区插件安装、升级、卸载与错误查看。+- 🗂️ **档案配置** — 分别管理插件与设置;档案不是操作系统安全沙箱。+- ⌨️ **命令行集成** — 通过托管 shim 提供 `dsh` / `pnpm`,不是全局 npm 内核安装。+- 🐾 **桌宠** — Pets / Codex 资源管理、资源包导入与会话状态展示;预设素材来自远端。-## 预设插件+## 内置插件-首次启动引导中提供的插件,按需勾选安装:+随桌面资源分发的 11 个第一方插件:-- [DSH Market](https://github.com/dsh-market/dsh-market) — 浏览、搜索并一键安装社区插件(推荐)-- [DSH Better Sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) — 类 VSCode 右侧栏,按会话隔离(推荐)-- [DSH Rewind](https://github.com/SiriLee/dsh-rewind) — 同窗口内对话回退,从不新建会话分支;自带轻量工作区备份,回退时可一并还原文件(推荐)-- [DSH Bridge](https://github.com/wenbin-wb/dsh-bridge) — 手机扫码局域网直连、Cloudflare 与自建公网隧道,以及微信 / QQ / 飞书 / Telegram 机器人对话,人不在电脑前也能接着用本机 Harness;内置访问安全认证与防篡改守护(推荐)-- [DSH-IM](https://github.com/xmanrui/dsh-im) — 让微信、飞书、钉钉、企业微信、QQ、Slack、Telegram、Discord、WhatsApp、iMessage 等渠道接入本机 Harness,并在左侧栏「IM」面板中统一管理(推荐)-- [Billion Context](https://github.com/ranxianglei/billion-context) — 以原生 DSH 插件形式做上下文压缩:会话增长时自动折叠历史,小上下文窗口也能长时间连续工作,并可按需 `decompress` / `search_context` 还原折叠内容(默认不勾选)+| 插件 | 包标识 | 用途 |+| --- | --- | --- |+| [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) | `dsh-tauri` | 桌面壳与 Harness 通信 |+| [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) | `dsh-tauri-ui` | 桌面设置界面 |+| [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) | `dsh-tauri-worktree` | 会话 Git 工作树与检出 |+| [DSH Tauri Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-extension) | `dsh-tauri-extension` | Skills、技能来源与 MCP 管理 |+| [DSH Tauri Scheduler](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-scheduler) | `dsh-tauri-scheduler` | 定时任务与执行记录 |+| [DSH Tauri Archive](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-archive) | `dsh-tauri-archive` | 聊天归档与恢复 |+| [DSH Tauri Pet](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-pet) | `dsh-tauri-pet` | 桌宠与活动状态 |+| [DSH Tauri Rightclick Menu](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-rightclick) | `dsh-tauri-rightclick` | 会话、工作区与正文右键菜单 |+| [DSH Tauri Model](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-model) | `dsh-tauri-model` | 模型选择与参数 |+| [DSH Tauri SSH](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ssh) | `dsh-tauri-ssh` | SSH 远端 Harness 连接与同步 |+| [DSH Tauri Notification](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-notification) | `dsh-tauri-notification` | 会话通知与交互操作 |-> 预设插件清单由桌面端维护。为避免不稳定的预设插件导致软件异常,如需新增或更新预设,请在 [deepseek-harness-desktop/issues](https://github.com/dsh-tauri/deepseek-harness-desktop/issues) 提起请求。+`dsh-tauri-experimental` 为可选实验包,默认关闭,不计入上述 11 个内置插件。-## 内置插件+## 可选预设-随安装包资源内置的第一方插件:+启动引导提供以下 6 个社区插件,按需安装;前 5 个标记为推荐,Billion Context 需主动选择。-- [DSH Tauri](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri) — 提供与 Tauri 2 外壳的通信通道,并让跨源沙箱内嵌 WebView 用上回环宿主(在 `connection` 服务上覆写桌面载体的两道鉴权闸门)-- [DSH Tauri UI](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ui) — 为 Tauri 2 外壳提供自定义设置侧边栏-- [DSH Tauri Worktree](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-worktree) — 为每个会话创建隔离的 Git Worktree,并支持检出到本地分支或归档放弃-- [DSH Tauri Extension](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-extension) — Skills/MCP 管理与导入技能仓库,内嵌插件市场面板-- [DSH Tauri Scheduler](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-scheduler) — 创建每天、间隔、工作日或每周的定时任务;在独立 Agent 会话中执行,并保留执行记录-- [DSH Tauri Archive](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-archive) — 将删除工作区改为归档,并提供支持搜索、排序、分组、项目筛选和取消归档的「已归档聊天」设置页-- [DSH Tauri Pet](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-pet) — 管理 Chat / Codex 桌宠、预设宠物下载、资源包导入和会话活动状态-- [DSH Tauri Rightclick](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-rightclick) — 为会话、工作区、正文、链接和输入框补充常用操作-- [DSH Tauri Model](https://github.com/dsh-tauri/deepseek-harness-desktop/tree/main/packages/dsh-tauri-model) — 提供模型选择与参数配置-- 更多即将引入的插件...+| 插件 | 包标识 | 用途 |+| --- | --- | --- |+| [DSH Market](https://github.com/dsh-market/dsh-market) | `dshmarket` | 社区插件市场 |+| [DSH Better Sidebar](https://github.com/omdsh-dev/DSH-better-sidebar) | `dsh-better-sidebar` | 按会话隔离的编辑器侧栏 |+| [DSH Rewind](https://github.com/SiriLee/dsh-rewind) | `dsh-rewind-plugin` | 对话回退与工作区备份 |+| [DSH Bridge](https://github.com/wenbin-wb/dsh-bridge) | `@wenbin_wb/dsh-bridge` | 远程访问、隧道与机器人接入 |+| [DSH IM](https://github.com/xmanrui/dsh-im) | `@xmanrui/dsh-im` | IM 渠道与机器人管理 |+| [Billion Context](https://github.com/ranxianglei/billion-context) | `billion-context` | 上下文压缩与历史恢复 |++新增或更新预设请提交 [Issue](https://github.com/dsh-tauri/deepseek-harness-desktop/issues);可用版本由清单中的内核兼容规则决定。## 快速开始-从 [Releases](https://github.com/dsh-tauri/deepseek-harness-desktop/releases) 下载对应平台安装包,安装后启动即可。+从 [Releases](https://github.com/dsh-tauri/deepseek-harness-desktop/releases) 下载对应平台与架构的安装包:++| 平台 | 要求 | 安装包 |+| --- | --- | --- |+| Windows | Windows 10+、WebView2 | x64 `.exe` / `.msi` |+| macOS | macOS 12+;Web 界面需 Safari 17.4+ 能力 | Intel / Apple Silicon `.dmg` |+| Linux | WebKit2GTK 4.1 运行库 | x64 `.AppImage` / `.deb` |-**macOS(Homebrew):** 也可通过 Homebrew 一键安装:+macOS 也可通过 Homebrew 安装:```bashbrew install dsh-tauri/desktop/deepseek-harness```-首次运行会下载 Node 运行时与 Harness 内核(如已经安装 `dsh` ,则使用安装版本),随后直接进入 `http://127.0.0.1:3080` 的 Harness 界面;此后完全本地运行,无需联网。+- 普通安装包首次启动需联网下载缺失的运行时与内核;Git 功能需要可用的 Git。+- 仅在对应 Release 实际发布含运行时与内核资源的 `Bundle` 时,才可使用该捆绑包;**v0.20.0-beta.1 没有 Bundle 资产**。+- 本地运行不等于完全离线:模型服务、插件安装、更新与桌宠预设素材仍可能联网。+- Linux 显示、Wayland、AppImage 与权限问题的处理见[安装与故障排查文档](https://dshtauri.mintlify.site)。-**系统要求:** Windows 10+ · macOS 12+(Safari 17.4+)· Linux(AppImage / .deb)· 首次运行需要网络 · Harness 内核 **0.1.5-rc.1** 或更高+## 运行方式-**离线安装包(Windows / macOS / Linux):** Releases 里另有 `Deepseek.Harness.Desktop_Bundle_<版本>.<扩展名>`:Node 运行时与 Harness 内核随包分发,**安装后首次启动无需联网**,适合内网 / 白名单环境(预设与社区插件仍需联网;git 相关能力如工作树需系统已装 Git)。Linux 的随包资源在 `.deb` 的 `/usr/lib` 下,root 安装后需补齐该目录权限。+| 当前基线 | 版本 |+| --- | --- |+| 桌面端 | `0.20.0-beta.1` |+| 推荐 Harness 内核 | `0.2.0-rc.2` |+| 声明的内核最低版本 | `0.1.5-rc.1`,不保证所有插件兼容 |+| Node.js 运行时 | `22.22.0` |+| pnpm | `11.7.0` |-> **Linux Wayland 注意(PikaOS / GNOME Wayland / Ubuntu 22.04+):** AppImage 自带的 GTK 启动钩子会强制 `GDK_BACKEND=x11`,应用检测到可用的 Wayland 会话时会丢弃它、改用原生 Wayland(issue #789);WebKitGTK 的黑屏/崩溃兜底仍自动生效。 <details><summary>若仍黑屏/崩溃,或需要桌宠置顶:</summary><br>**改用 `.deb`**(已验证 PikaOS 4 Wayland);要保留 XWayland 设 `DSH_FORCE_XWAYLAND=1`(或在设置里打开 `force_xwayland`);渲染兜底 `WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 ./AppImage`。图标不显示时,将应用内 `hicolor` 图标复制到 `~/.local/share/icons` 并运行 `update-desktop-database`。<br></details>->-> **Linux 滚动发行版启动即崩(Arch / CachyOS / Fedora 等):** 旧版 AppImage 会随包携带构建镜像(Ubuntu 22.04)的 `libwayland-client` 等显示栈库,较新的宿主 Mesa 与之 ABI 不匹配会导致 `WebKitWebProcess` 直接 `abort()`——表现为**双击后没有任何界面、也没有任何日志**。构建阶段已剔除这些库(见 `.github/workflows/build-linux.yml` 与 `scripts/fix-appimage-host-libs.sh`),请使用修复后发布的版本;仍受影响时可用 `.deb`,或 `LD_PRELOAD=/usr/lib/libwayland-client.so.0 ./AppImage`(路径按发行版调整)。+- Rust 后端管理依赖与 Harness 进程,React WebView 内嵌其界面;正式版默认地址为 `http://127.0.0.1:3080`,端口占用时可能调整。+- 内核与预设选择遵循[资源清单](<./src-tauri/resources/manifest.jsonc>)及插件声明的版本范围;不保证任意最新上游版本都兼容。+- 正式版默认启用 CLI 集成:Windows 更新用户 PATH,macOS / Linux 按需在 Bash / Zsh 配置中加入托管 PATH 块。需重新打开终端,其他 shell 可能需要手动配置。## 交流@@ -105,47 +127,14 @@ brew install dsh-tauri/desktop/deepseek-harness</tr></table>-## 开发-想参与开发?参见 [docs/DEVELOPMENT.zh.md](./docs/DEVELOPMENT.zh.md)。--## 工作原理--```text-┌──────────────────────────────────────────────┐-│ Tauri WebView (React) │-│ 安装状态机 → 下载进度 → iframe │-│ 加载 dsh Web 界面 + 侧边栏控制 │-└──────────────────────┬───────────────────────┘- │ invoke 命令 + 事件-┌──────────────────────┴───────────────────────┐-│ Tauri Rust 后端 │-│ service/download 安装器 + 解压 │-│ service/core Harness 核心多版本管理 │-│ service/profile dsh 档案管理 │-│ service/plugin 插件卸载 / 升级 │-│ service/cli dsh 命令 shim + PATH │-│ service/update 桌面端自更新 │-│ service/workflow dsh 进程生命周期 │-│ task dsh 健康检查 │-└──────┬───────────────────────────┬───────────┘- │ │- runtime/ (Node.js v22.22.0) dependencies/dsh/ (发行版)- └─────────────┬─────────────┘- ▼- dsh --profile <档案> --host 127.0.0.1 --port 3080- │ DSH_HOME=~/.dsh- ▼- http://127.0.0.1:3080/ ← 内嵌界面-```--Harness 发行版由 [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg) 构建发布。每次启动都会对比最新发行版,本地过期时提醒下载更新;GitHub 不可达时保留本地安装。通过 CLI 全局安装的本地核心会被优先使用。+参见[中文开发指南](<./docs/DEVELOPMENT.zh.md>)或[英文开发指南](<./docs/DEVELOPMENT.md>)。功能详情见[在线文档](https://dshtauri.mintlify.site)。## 说明> [!WARNING]-> **开发预览** — 上游 `dsh` 仍在快速迭代,存在破坏性变更;本项目同步跟随。+> **开发预览** — 上游 `dsh` 仍在快速迭代,可能存在破坏性变更;升级前请确认兼容性。> [!NOTE]> **安全声明** — `dsh` 具备本地代码执行能力。仅供学习 / 研究 / 测试,请在可信、隔离的环境中使用。@@ -153,26 +142,10 @@ Harness 发行版由 [deepseek-harness-pkg](https://github.com/dsh-tauri/deepsee## 相关项目- [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) — 上游 `dsh` agent 平台-- [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg) — 预打包 Harness 发行版(本应用下载源)--### 插件数据源--插件在运行时直接引用的远端素材与上游清单:--- [PC2005-cloud/dsh-pet](https://github.com/PC2005-cloud/dsh-pet) — 预设桌宠素材(WebM 动作、预览 GIF、`config.jsonc`),`manifest.jsonc` 的 `pets.built-in` 固定到 `e1ff8c1`-- [dsh-tauri/dsh-pet-mov](https://github.com/dsh-tauri/dsh-pet-mov) — macOS HEVC-alpha `.mov` 镜像(WKWebView 不认 VP9-alpha),固定到 `be0f3bb`-- [hairyf/dsh-pet-component](https://github.com/hairyf/dsh-pet-component) — 桌宠渲染组件(npm `dsh-pet-component`)--### 插件子仓库--`source/` 下按插件需要克隆的参考仓库,多数不随本仓库提交:--- [PC2005-cloud/dsh-pet](https://github.com/PC2005-cloud/dsh-pet) — 桌宠动作权重、连续播放与气泡样式(子模块)-- [Skylarking/dsh-plugin-codex-pets](https://github.com/Skylarking/dsh-plugin-codex-pets) — Codex 宠物图集与会话状态映射(子模块)-- [ayangweb/BongoCat](https://github.com/ayangweb/BongoCat) — Tauri 桌宠窗口、原生拖动、DPI 与鼠标穿透基准(子模块)-- [QCYTSN/dsh-dafeiyu](https://github.com/QCYTSN/dsh-dafeiyu) — 桌宠气泡文案与状态优先级参考(子模块)-- [Signalight/codex-to-dsh-pet](https://github.com/Signalight/codex-to-dsh-pet) — Codex v2 图集、动作优先级与会话状态映射+- [deepseek-harness-pkg](https://github.com/dsh-tauri/deepseek-harness-pkg) — 预打包 Harness 发行版与下载源+- [dsh-pet](https://github.com/PC2005-cloud/dsh-pet) · [dsh-pet-mov](https://github.com/dsh-tauri/dsh-pet-mov) · [dsh-pet-component](https://github.com/hairyf/dsh-pet-component) — 桌宠素材与渲染组件+- [dsh-plugin-codex-pets](https://github.com/Skylarking/dsh-plugin-codex-pets) · [BongoCat](https://github.com/ayangweb/BongoCat) · [dsh-dafeiyu](https://github.com/QCYTSN/dsh-dafeiyu) · [codex-to-dsh-pet](https://github.com/Signalight/codex-to-dsh-pet) — 桌宠参考项目## License-[MIT](./LICENSE),附加[非商用条款](./LICENSE.details) © deepseek-harness-desktop contributors+[MIT](<./LICENSE>),附加[非商用条款](<./LICENSE.details>) © deepseek-harness-desktop contributorsdiff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.mdindex c2adf43c..49d30d92 100644--- a/docs/DEVELOPMENT.md+++ b/docs/DEVELOPMENT.md@@ -1,45 +1,81 @@# Development-DeepSeek Harness Desktop is a **Tauri 2 + React 19** app: the UI lives in `src/`, the Rust backend in `src-tauri/`. The repository uses pnpm 11 and the desktop's bundled runtime is Node.js 22.22.0.+[English](<./DEVELOPMENT.md>) · [中文](<./DEVELOPMENT.zh.md>) · [README](<../README.en.md>)++Tauri 2 + React 19: UI in [`src/`](<../src/>), Rust backend in [`src-tauri/`](<../src-tauri/>), plugins in [`packages/`](<../packages/>). Current desktop: `0.20.0-beta.1`; recommended Harness core: `0.2.0-rc.2`.++Read [AGENTS.md](<../AGENTS.md>) and the [routed specifications](<./specs/devlopment.md>) before changes. Do not inspect the restricted archive directory or run builds during plugin work.## Requirements-| Tool | Version |+| Tool | Requirement / source || --- | --- |-| Node.js | 22.19+ (CI and bundled runtime: 22.22.0) |-| Rust | 1.77.2+ |-| pnpm | 11.x (`[email protected]`) |+| Node.js | `22.22.0+` for the managed runtime; CI uses Node 22.x ([manifest](<../src-tauri/resources/manifest.jsonc>), [CI setup](<../.github/actions/setup-node-pnpm/action.yml>)) |+| pnpm | `11.7.0`, pinned by [package.json](<../package.json>) |+| Rust | `1.93+`; current stable recommended. The patched [notification crate](<../src-tauri/vendor/tauri-plugin-notifications/Cargo.toml#L14>) sets this minimum. |-Plus the platform toolchain:+| Platform | Toolchain |+| --- | --- |+| Windows | MSVC C++ build tools and WebView2 |+| macOS | Xcode 16+ with Swift 6; Command Line Tools alone are insufficient for the notification backend ([Cargo.toml](<../src-tauri/Cargo.toml#L46-L48>)) |+| Linux | WebKit2GTK 4.1 headers; CI installs `libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf` ([CI](<../.github/workflows/ci.yml>)) |-- **Windows** — MSVC build tools + WebView2-- **macOS** — Xcode Command Line Tools-- **Linux** — WebKit2GTK+macOS runtime minimum is 12+, while the web UI requires Safari 17.4+ capabilities. Linux runtime workarounds are in the [online docs](https://dshtauri.mintlify.site).-## Commands+## Development commands-```bash-pnpm install # install dependencies-pnpm dev # frontend dev server (Vite)-pnpm dev:plugins # watch built-in plugins-pnpm typecheck # frontend TypeScript check-pnpm build:plugins # build built-in plugin bundles-pnpm tauri dev # run the desktop app in debug mode-pnpm tauri build # build installers-```+Run from the repository root:++| Command | Purpose |+| --- | --- |+| `pnpm install` | Install workspace dependencies |+| `pnpm dev` | Vite frontend only |+| `pnpm dev:plugins` | Watch plugins; reuse an existing watcher during edits |+| `pnpm tauri dev` | Debug desktop; starts Vite through `beforeDevCommand` |+| `pnpm dev:desktop` | Combined watcher/desktop helper; shell-dependent `&` syntax |+| `pnpm typecheck` | Frontend TypeScript check |+| `pnpm lint` | ESLint |++For portable desktop/plugin development, use separate terminals for the plugin watcher and `pnpm tauri dev`.-Backend checks (from `src-tauri/`):+**Build protection:** [AGENTS.md](<../AGENTS.md>) forbids builds during plugin changes. `pnpm build:plugins`, `pnpm build`, `pnpm build:debug`, and `pnpm tauri build` are deliberate artifact-preparation/release actions; `pnpm build` also invokes the plugin prebuild.++## Validation++The scripts in [package.json](<../package.json>) map to these explicit, non-watch commands ([testing standard](<./specs/testing.md>)):++| Script | Direct invocation |+| --- | --- |+| `test` | `node node_modules/vitest/vitest.mjs run` |+| `test:unit` | `node node_modules/vitest/vitest.mjs run --project unit` |+| `test:e2e:plugin` | `node node_modules/vitest/vitest.mjs run --project plugin` |+| `test:e2e:desktop` | `node node_modules/vitest/vitest.mjs run --project desktop` |++E2E requires prepared fixtures/runtime and, for desktop tests, a debug binary. Follow the [plugin test guide](<./specs/plugin.test.md>) and [desktop test guide](<./specs/desktop.test.md>); do not trigger builds just to validate documentation or plugin edits.++Rust checks from the repository root:```bash-cargo check-cargo test+cargo check --manifest-path src-tauri/Cargo.toml --locked+cargo test --manifest-path src-tauri/Cargo.toml --all-features --locked```-For Developer ID signing, notarization, and the required GitHub Actions secrets, see [`.github/workflows/build-macos.yml`](../.github/workflows/build-macos.yml) and [`.github/workflows/release.yml`](../.github/workflows/release.yml).+Use `git diff --check` for documentation-only edits. Tests must use isolated data, never real user profiles.++## Runtime isolation++| Mode | Harness data | Store | Default loopback port |+| --- | --- | --- | --- |+| Debug | `~/.dsh.dev` | `.store.dev.dat` | `3081` |+| Release | `~/.dsh` | `.store.dat` | `3080` |-To add a new built-in (internal) plugin bundled with the app, see [Built-in (internal) plugins](../src-tauri/resources/README.md#built-in-internal-plugins).+- Debug runtime, core, and dependencies live under `<AppData>/dev/`; the log is `<AppData>/dev/logs/dsh-web.dev.log`.+- Debug ignores inherited `DSH_HOME`, uses `~/.dsh.dev`, and does not migrate release data or modify the production CLI PATH.+- Ports are configurable and may fall back when occupied; side-by-side launches need not use those exact values.+- Profiles separate configuration, not OS permissions.-## Tips+## Release references-- Debug mode serves on port **3081**, release builds on **3080** — the two never clash, so you can run an installed copy and a dev build side by side.-- Debug data is isolated from release data: it uses `~/.dsh.dev` and `.store.dev.dat`; it does not migrate release data or register a production `dsh` PATH shim.+- [Built-in plugin/resource guide](<../src-tauri/resources/README.md#built-in-internal-plugins>) — registration and bundled resources+- [macOS workflow](<../.github/workflows/build-macos.yml>) and [release workflow](<../.github/workflows/release.yml>) — Developer ID signing, notarization, and CI secrets+- [Resource manifest](<../src-tauri/resources/manifest.jsonc>) — runtime versions, plugin inventory, and preset compatibility rulesdiff --git a/docs/DEVELOPMENT.zh.md b/docs/DEVELOPMENT.zh.mdindex c5a011f8..c54ff89f 100644--- a/docs/DEVELOPMENT.zh.md+++ b/docs/DEVELOPMENT.zh.md@@ -1,45 +1,81 @@# 开发-DeepSeek Harness Desktop 是 **Tauri 2 + React 19** 应用:前端位于 `src/`,Rust 后端位于 `src-tauri/`。仓库使用 pnpm 11,桌面端捆绑运行时为 Node.js 22.22.0。+[English](<./DEVELOPMENT.md>) · [中文](<./DEVELOPMENT.zh.md>) · [README](<../README.md>)++Tauri 2 + React 19:前端位于 [`src/`](<../src/>),Rust 后端位于 [`src-tauri/`](<../src-tauri/>),插件位于 [`packages/`](<../packages/>)。当前桌面端:`0.20.0-beta.1`;推荐 Harness 内核:`0.2.0-rc.2`。++修改前先读 [AGENTS.md](<../AGENTS.md>) 与[路由规范](<./specs/devlopment.md>)。禁止查看受限归档目录,插件改动期间禁止执行构建。## 环境要求-| 工具 | 版本 |+| 工具 | 要求 / 来源 || --- | --- |-| Node.js | 22.19+(CI 与捆绑运行时:22.22.0) |-| Rust | 1.77.2+ |-| pnpm | 11.x(`[email protected]`) |+| Node.js | 托管运行时要求 `22.22.0+`,CI 使用 Node 22.x([清单](<../src-tauri/resources/manifest.jsonc>)、[CI 配置](<../.github/actions/setup-node-pnpm/action.yml>)) |+| pnpm | `11.7.0`,由 [package.json](<../package.json>) 固定 |+| Rust | `1.93+`,推荐当前 stable;本地修补的[通知 crate](<../src-tauri/vendor/tauri-plugin-notifications/Cargo.toml#L14>) 声明了该最低版本。 |-以及平台编译工具链:+| 平台 | 编译工具链 |+| --- | --- |+| Windows | MSVC C++ 构建工具与 WebView2 |+| macOS | Xcode 16+、Swift 6;通知后端不能仅靠 Command Line Tools 编译([Cargo.toml](<../src-tauri/Cargo.toml#L46-L48>)) |+| Linux | WebKit2GTK 4.1 开发库;CI 安装 `libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf`([CI](<../.github/workflows/ci.yml>)) |-- **Windows** — MSVC 构建工具 + WebView2-- **macOS** — Xcode Command Line Tools-- **Linux** — WebKit2GTK+macOS 运行时最低版本为 12+,Web 界面需要 Safari 17.4+ 能力。Linux 运行问题的处理见[在线文档](https://dshtauri.mintlify.site)。-## 常用命令+## 开发命令-```bash-pnpm install # 安装依赖-pnpm dev # 前端开发服务器(Vite)-pnpm dev:plugins # 监听内置插件构建-pnpm typecheck # 前端 TypeScript 检查-pnpm build:plugins # 构建内置插件 bundle-pnpm tauri dev # 调试模式运行桌面端-pnpm tauri build # 构建安装包-```+在仓库根目录执行:++| 命令 | 用途 |+| --- | --- |+| `pnpm install` | 安装工作区依赖 |+| `pnpm dev` | 仅启动 Vite 前端 |+| `pnpm dev:plugins` | 监听插件;修改时复用已有 watcher |+| `pnpm tauri dev` | 调试桌面端;通过 `beforeDevCommand` 启动 Vite |+| `pnpm dev:desktop` | 插件监听与桌面组合命令;`&` 行为取决于 shell |+| `pnpm typecheck` | 前端 TypeScript 检查 |+| `pnpm lint` | ESLint |++跨平台开发建议分别在两个终端运行插件 watcher 与 `pnpm tauri dev`。-后端检查(在 `src-tauri/` 下执行):+**构建保护:** [AGENTS.md](<../AGENTS.md>) 禁止在插件改动期间执行构建。`pnpm build:plugins`、`pnpm build`、`pnpm build:debug`、`pnpm tauri build` 仅用于明确的产物准备 / 发布;`pnpm build` 还会触发插件 prebuild。++## 验证++[package.json](<../package.json>) 中的测试脚本对应以下显式非 watch 命令([测试规范](<./specs/testing.md>)):++| 脚本 | 直接执行命令 |+| --- | --- |+| `test` | `node node_modules/vitest/vitest.mjs run` |+| `test:unit` | `node node_modules/vitest/vitest.mjs run --project unit` |+| `test:e2e:plugin` | `node node_modules/vitest/vitest.mjs run --project plugin` |+| `test:e2e:desktop` | `node node_modules/vitest/vitest.mjs run --project desktop` |++E2E 需要已准备好的夹具与运行时,桌面测试还需要 Debug 二进制。请遵循[插件测试指南](<./specs/plugin.test.md>)与[桌面测试指南](<./specs/desktop.test.md>);不要仅为验证文档或插件修改触发构建。++Rust 检查(仓库根目录):```bash-cargo check-cargo test+cargo check --manifest-path src-tauri/Cargo.toml --locked+cargo test --manifest-path src-tauri/Cargo.toml --all-features --locked```-macOS 的 Developer ID 签名、公证与 GitHub Actions Secrets 配置见 [`.github/workflows/build-macos.yml`](../.github/workflows/build-macos.yml) 与 [`.github/workflows/release.yml`](../.github/workflows/release.yml)。+文档修改使用 `git diff --check`。测试数据必须隔离,不能使用真实用户档案。++## 运行时隔离++| 模式 | Harness 数据 | Store | 默认回环端口 |+| --- | --- | --- | --- |+| Debug | `~/.dsh.dev` | `.store.dev.dat` | `3081` |+| Release | `~/.dsh` | `.store.dat` | `3080` |-若要新增一个随安装包分发、内置在应用里的插件,请参阅 [内置插件(Internal Plugins)](../src-tauri/resources/README.md#built-in-internal-plugins)。+- Debug 的运行时、内核与依赖位于 `<AppData>/dev/`;日志为 `<AppData>/dev/logs/dsh-web.dev.log`。+- Debug 忽略继承的 `DSH_HOME`,固定使用 `~/.dsh.dev`,不迁移正式版数据或修改生产 CLI PATH。+- 端口可配置,占用时可能回退;不保证并行启动时始终使用上述值。+- 档案隔离的是配置,不是操作系统权限。-## 小贴士+## 发布参考-- 调试模式使用 **3081** 端口,正式版使用 **3080** —— 两者互不冲突,可以同时运行已安装版本与开发构建。-- 调试数据与正式版隔离:使用 `~/.dsh.dev` 和 `.store.dev.dat`,不会迁移正式版数据,也不会注册生产版 `dsh` PATH shim。+- [内置插件与资源指南](<../src-tauri/resources/README.md#built-in-internal-plugins>) — 注册与随包资源+- [macOS 工作流](<../.github/workflows/build-macos.yml>)与[发布工作流](<../.github/workflows/release.yml>) — Developer ID 签名、公证与 CI Secrets+- [资源清单](<../src-tauri/resources/manifest.jsonc>) — 运行时版本、插件清单与预设兼容规则