Community plugin

NoneadChina / nonead-dsh-desktop

Experimental upstream-inspired DSH Desktop with Profiles, recovery, remote control and Community Market

  • TypeScript
  • MIT
  • 4 stars
  • Nov 20, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

nonead-dsh-desktop is a DSH plugin published from the nonead-dsh-desktop package in the NoneadChina/Nonead-DSH-Desktop repository.

  • Listing statusManifest verified
  • Manifest checkedNov 20, 2026
  • Packagenonead-dsh-desktop
  • Package pathnonead-dsh-desktop
  • Package version2.2.15
  • Source commitf7354e5
  • Repository createdSep 26, 2026

Capabilities and topics

deepseek-harnessdsh-desktopnoneadnonead-dsh-desktop
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

Nonead DSH Desktop

English | 中文

A separate experimental package built against the pinned upstream DeepSeek Harness 0.2.2-rc.5: upstream.json records the channel and the pin, and the matching runtime packages are vendored under vendor/dsh-runtime/0.2.2-rc.5/. The main window loads the official published @deepseek-ai/dsh-web-frontend, sharing the official Web application, plugin manager, and basic Desktop presentation. On top of that it supplies the system tray, desktop preferences and tools, Profiles, recovery, Agents Anywhere remote control, Community Market, dshmarket, and the brand skin that ships inside the installer.

The package name is nonead-dsh-desktop, the product name is Nonead DSH Desktop, and the application id is ai.deepseek.dsh.desktop. Earlier releases shipped the same shell as dsh-desktop-next / DSH NEXT; this document keeps using Next as its short name. The rename covers the product name, the package and directory names, the nonead-dsh-desktop:* IPC channels, the temporary-directory prefix, the DSH_NONEAD_* environment prefix, and the log and data file names. src/legacy-names.ts carries existing installations across the rename: each reader checks the new on-disk name first and falls back once to the pre-rename name, and nothing is rewritten until the owning writer saves it under the new name.

Development and verification

Run from the outer repository root with Node.js ^22.19.0 or >=24.0.0 and Corepack's Yarn 4.18.0:

git submodule update --init --recursive
corepack yarn install --immutable
corepack yarn check:stable
corepack yarn dev:stable

check:stable builds Market and Next, then runs typechecks, unit tests, the official-frontend and sandboxed-preload check (verify:frontend), a real Host smoke in a temporary home (verify:host), the shell-owned Host/recovery/network lifecycle check (verify:desktop-runtime), and the safe-mode filesystem cleanup check (verify:safe-cleanup). It never opens a graphical application. The smoke uses an offline local fixture plugin to exercise pnpm, Market toggles and removal through the official plugin manager, authentication, profile switching, and recovery boot, then cleans up its processes and files. An additional real-runtime smoke exercises the native-only HTTP/WebSocket gate, browser access changes, corrupt manifests, isolated safe mode, global-patch repair, and process teardown.

dev:stable explicitly launches the graphical application. Use corepack yarn start:stable with an existing build. Desktop commands always carry their workspace suffix: the root :stable scripts drive this package, and the former unsuffixed dev, start and dist:* root aliases no longer exist. Both prepare the bundled interpreter payload under .desktop-build/runtime before the shell starts, as upstream Desktop's development launcher does, so the Office skills are available in development; the first launch downloads the locked archives and wheels. An uncached Electron binary is downloaded on first use. To additionally exercise the real Electron executable in Node mode, build first and run:

corepack yarn workspace nonead-dsh-desktop verify:host:electron

This check opens no Electron window. Window presentation, native dialogs, and a real phone connection still require manual acceptance.

CI also runs xvfb-run --auto-servernum corepack yarn workspace nonead-dsh-desktop verify:protocol --no-sandbox on Linux. This separate test uses a real Electron renderer and custom protocol with a temporary Host, exercises Market source changes with ordinary browser access disabled, and rejects requests from a different page origin. It is not part of the portable check:stable command. The sandbox flag applies only to the isolated CI process.

On the same Linux/Xvfb runner, verify:sidebar-browser --no-sandbox checks real lease-gated guest pages against a local fixture with both frame-ancestors 'none' and X-Frame-Options: DENY. It verifies blocked iframe embedding, successful native loading, the guest's own security settings, app-cookie and preload isolation, native history, refusal of a forged lease, workspace partition separation and cleanup on release. The portable verify:window-controls check exercises the official toolbar, pane resizing, modal overlap, tab switching and closure with a simulated native bridge, and checks the iframe fallback in a regular Web client.

The macOS sidebar and titlebar regression runs the official frontend's Desktop boot branch in headless Chromium with a temporary home. It serves the same entry document as Next, supplies real Host injections through a simulated preload contract, and asserts that Desktop transport is active. It checks the shared official header before Workspace selection and after a real blank Session is created, sidebar reopening on the homepage and plugin list/detail pages, the fixed transparent drag region while the original plugin title scrolls, and clickable actions even when scrolled into that region. It also opens the Desktop settings section inside the official Settings dialog, verifies preference and Profile commands, and renders the exact standalone recovery artifact with no Host dependency. Native IPC is simulated for these browser checks. After building, install the test browser once and run:

corepack yarn workspace nonead-dsh-desktop exec playwright install chromium
corepack yarn workspace nonead-dsh-desktop verify:window-controls
corepack yarn workspace nonead-dsh-desktop verify:onboarding

Set DSH_NONEAD_TEST_BROWSER_CHANNEL=chrome (DSH_NEXT_TEST_BROWSER_CHANNEL is still accepted) to use an installed Google Chrome instead. Screenshots are saved under nonead-dsh-desktop/.nonead-dsh-desktop/verification/. Native macOS window movement still needs manual verification. Version-scoped package patches share the official conversation header frame and sidebar controls with the empty homepage. On plugin list and detail pages, the collapsed-sidebar toggle reuses the official control and stays fixed beside the macOS traffic lights, independently of content width and scrolling. It does not add the conversation's New Session action. The plugin page keeps its original title, toolbar, layout, and scrolling behavior. An invisible 52px drag region belongs to the stable main column and reaches the top and side gutters without taking layout space or painting over content. Buttons, links, inputs, and other interactive controls opt out of native dragging, including when they scroll into this region.

App icon resources

build/app-icon.icon is the editable Icon Composer project with the final NEXT badge layout and System Dark background. On macOS with Xcode 27 and Icon Composer, run corepack yarn icons:export --channel stable from the repository root to refresh build/app-icon.png, the Windows build/app-icon.ico, native compiler output build/app-icon.icns, and the development Dock image build/app-icon-mac.png. Commit these files and build/app-icon.resources.json together; corepack yarn icons:check verifies them headlessly on any OS.

Next macOS packaging consumes the layered .icon source and compiles Assets.car, as Stable and Beta do. The raster Dock image is used only during unpackaged development; Windows and Linux windows use their ICO and PNG exports respectively.

Usage

Use Settings → Desktop settings in the official frontend. A notice at the top links to the Plugins page for plugin-market and remote-control settings; it closes Settings and opens Plugins in the same main window. The tray’s Settings… entry and CmdOrCtrl+, reveal the main window and open the same official Settings dialog; there is no separate settings window. Recovery and Profile tools retain their existing windows. If the Host fails, the settings shortcut opens the recovery assistant. Switching Profiles saves the selection and fully relaunches the application after the old Host stops. Port changes restart only the Host; both interrupt active tasks. Browser and LAN access toggles apply immediately without restarting.

  • Tray and background operation: retain the original Desktop ordering: open the main window, reload the interface, open DSH Terminal, export diagnostics, enter/exit safe mode, then select or create a Profile. Desktop settings and the recovery assistant remain directly accessible. Native menus follow the in-app language. Closing the main window keeps the Host and remote connection running when background operation is enabled and a tray is available. Explicit Quit and application relaunch first hide the existing windows, then wait for the HTTPS edge and Host to stop before exiting or relaunching. Restarting only the Host retains the main window. Without a usable tray, closing the main window quits rather than leaving an inaccessible process.
  • Sidebar browser: the desktop app reuses the official Browser toolbar and supplies isolated Electron WebContentsView pages. GitHub and other sites with anti-framing policies can load as top-level pages without removing CSP or X-Frame-Options. Native history and observed URLs drive Back, Forward and the address bar. Views follow pane bounds and zoom, leave resize handles accessible, hide beneath modals or overlapping panes, and close with their tab or renderer. Each tab uses an in-memory session without the app preload, app cookies, Node access, downloads or automatic permission grants. Ordinary Web clients retain the official iframe carrier.
  • Desktop preferences: background operation, macOS transparency, local/LAN access, log level, and separate notifications for completed/failed user turns. Background jobs never send notifications. The page reuses the existing Desktop grouped cards, Profile choices and notification toggles. Toggles and materials save immediately. The official Settings header provides terminal and restart shortcuts, including reload, application restart and restart into recovery. As in the existing Desktop, Windows has no material choice and always uses an opaque window; old Acrylic or Mica preferences are read as off. The OS must also allow notifications. Notifications only appear while the main window is unfocused. Successful turns use the current user message as the title and the final visible assistant reply as the body, with bounded text previews. Failed turns use a generic status; subagents and automated turns do not notify.
  • Profiles: fresh installations and isolated safe mode use desktop by default. A saved selection is retained, including an older Profile named default; existing Profile directories are not renamed or overwritten. Create, switch, open, or remove an inactive Profile. New Profile from the tray focuses the name and offers creation followed by switching. Malformed manifests and Profiles missing the Next bundle are marked unavailable; selecting the already-active Profile does not restart it. Removed Profiles move into recovery backups; the active Profile and desktop cannot be removed. Profiles have separate plugin dependencies, activation lists and patches. Sessions, settings and credentials follow upstream rules and are shared within one Next home; Profiles do not isolate accounts or data.
  • First-run setup: Desktop setup runs first when its own per-Profile completion record or explicit reopen request requires it. When it is not required, completed, or skipped, the official account onboarding from the pinned upstream release independently evaluates its account, API-key, and saved-progress conditions. Neither flow completes or resets the other. The original five-page Next onboarding component is embedded in the official surface and theme: welcome, plugin market, remote control, Computer Use (including the existing permission dialog), and recovery guidance. Its original text, artwork, navigation, and choices are retained. There is no separate pre-Host welcome window. Back retains draft choices; Finish saves the Profile features and Computer Use provider, records completion last, and restarts the Host. Skip preserves existing choices. Interrupted flows resume, completed Profiles do not repeat automatically, and safe/recovery modes bypass Desktop setup. Desktop settings → Desktop tools → Setup wizard can reopen it with current choices through a confirmed restart. The compatibility patch adds a continuation slot because the pinned upstream release does not publish a third-party onboarding extension API.
  • Markets: plugin markets are off by default for new Profiles. The switch at the top of the official Plugins page enables or disables the last selected market (or dsh-community-market if none was selected in this view); choose dsh-community-market or dshmarket there. The choices reuse the original Desktop names, descriptions and repository links. Choosing one disables the other in a single official plugin-manager operation and retains installed plugins. Community Market keeps its sidebar entry; dshmarket keeps Settings → Plugin Market. Community Market retains discovery, sources, installation previews, confirmation, enable and disable switches, and removal. Package operations run through the official plugin manager and apply live without a restart; the terminal action is available on macOS and Windows.
  • Remote control: the separate switch at the top of Plugins enables @agents-anywhere/dsh-bridge-next (off by default). The gear to its left opens the existing phone connection dialog, also available from the sidebar. The gear becomes available after enablement. AA uses its default state directory (~/.agents-anywhere/dsh-bridge-next), sharing login, device binding and Connector settings with Stable/Beta and other Next Profiles. Enablement remains per Profile; switching Profiles stops the previous Host and its remote connection. Existing Next-generated per-Profile state overrides are removed on the next Host start. Old state directories are retained without merging credentials; users who only signed in to the former isolated store may need to sign in again. AA's shared-state ownership checks still apply when multiple editions run concurrently.
  • Desktop tools: open the data/Profile/log directories, reload the interface, open developer tools, export diagnostics, and open a macOS/Windows terminal with this installation’s dsh, pnpm and Electron-backed node. The terminal selects the original Profile even while the main app is in safe mode.

Markets, remote control and Computer Use appear above the ordinary plugin list, aligned to its content width. Remote control and Computer Use stack vertically, with settings gears to the left of their switches. The markets and remote bundle no longer appear again as ordinary plugin cards. These controls still use the official manager and persist in the current Profile; an existing Profile with both markets active asks the user to choose one. Bundle plugins installed by either market remain in the ordinary list for enablement, disablement and removal. dshmarket’s own plugin-disable behavior is unchanged. Existing choices migrate once from nonead-dsh-desktop.features.json into package.json; subsequent starts respect the official manager.

Sidebar extension entries reuse the original Desktop footer layout: entries stack vertically above Settings, with bounded scrolling to preserve the workspace list.

Automation tasks appears in the official Plugins group with upstream artwork, its experimental badge, the native enable switch, and component details. It is optional and disabled by default. Next preserves existing Schedule choices and their legacy Profile migration; it adds no separate Scheduled Tasks card.

Browser and LAN access

Browser access is disabled by default. Enabling local access provides an authenticated loopback login link; enabling LAN access adds an HTTPS/WSS edge while the Host stays bound to 127.0.0.1. Ports default to 0 (automatic). Access toggles do not restart the Host. Disabling browser access also disconnects existing browser WebSockets while preserving native streams and running tasks. Port changes require a Host restart. LAN addresses are sampled at startup; restart after a network change.

The settings page displays the complete local login URL and a separate HTTPS login URL for every LAN address, including the browser token. Each row opens or copies that exact URL. The login links are read through sender-validated native IPC and kept out of general runtime state and diagnostics. The page can also export the installation’s public CA certificate. Trust that certificate on the other device after comparing its SHA-256 fingerprint. Login links grant access and should only be shared with trusted devices. The CA private key is sealed with OS-backed storage; if secure storage or a suitable LAN address is unavailable, LAN HTTPS stays closed and the UI shows the failure. Native renderer credentials are never copied into these links and are stripped at the LAN edge.

Native permissions and Computer Use

The gear beside Computer Use and Settings → Desktop settings → Permissions open an in-app permission dialog built with the official Modal, Button and StateDot components. It shows screen-recording, macOS Accessibility and microphone status. Opening the dialog only queries permissions. A user click requests OS consent or opens the corresponding system privacy pane. On macOS, changes made in System Settings may require restarting the application. macOS keeps no undecided state for screen recording or Accessibility: both read as not granted until the grant exists and stay requestable, a screen request being the first capture attempt that prompts; the dialog notes that macOS reopens the application once screen recording is enabled, and that an Accessibility entry System Settings still shows enabled belongs to an earlier build's signature and must be removed and added again. Windows microphone restrictions link to Windows privacy settings; unsupported status APIs report unknown, never a fabricated grant.

Next provides the desktopPermissions Cordis service to native client plugins and Host plugins. Import its types from nonead-dsh-desktop/permissions and inject desktopPermissions. Ordinary browser clients do not receive this service. Its methods are query(permission), request(permission) and openSettings(permission), where permission is microphone, screen or accessibility. Results include status, canRequest and canOpenSettings.

import type { Context } from '@deepseek-ai/cordis'
import type {} from 'nonead-dsh-desktop/permissions'

export const inject = ['desktopPermissions']

// Call directly from the native client plugin's Record button.
export async function record(ctx: Context) {
  const state = await ctx.desktopPermissions.request('microphone')
  if (state.status === 'denied' || state.status === 'restricted') return
  const stream = await navigator.mediaDevices.getUserMedia({ audio: true })
  // Pass the stream to the recorder; stop every track when recording ends.
  return stream
}

Client requests require an active user gesture and the owning foreground window. Host requests cannot impersonate a user gesture: they reveal the permission dialog in the main window and return the current OS state, so the plugin must recheck after the user authorizes. Native settings requests made before the client mounts are retained for delivery. Host IPC uses correlated, bounded requests and rejects pending work on teardown. Permission status is always read again from the OS.

Screen sharing uses navigator.mediaDevices.getDisplayMedia({ video: true, audio: false }) directly from the user's Share button. On macOS 15 and later, Electron uses the system picker; other systems use a native source-selection menu. No source is selected automatically. Per-capture system-picker consent can differ from the global screen-recording grant. The permission service does not record media, and screen sharing does not grant computer input control. Packaged Next retains its product-specific NSMicrophoneUsageDescription and signs the main application and Helpers directly with the pinned upstream apps/desktop/scripts/macos-entitlements.plist. Voice input uses Chromium/macOS recording consent through getUserMedia; the voice plugin has no separate permission button.

The official @deepseek-ai/dsh-experimental-computer-use-cua-driver-native@0.2.2-rc.5 provider is bundled and disabled by default. Use the Computer Use section at the top of Plugins to enable it and read its live loading status. This entry uses the official Plugins slot, switch and plugin manager; its Profile row ID is computer-use-cua-driver-native. The shared computer-use registry is already provided. Tools and screenshots use existing conversation tool cards and image attachments; screenshot understanding requires a model route declaring image input. The gear to the left of the switch opens the permission dialog.

The version-scoped Yarn patch at patches/dsh-experimental-computer-use-cua-driver-native@0.2.2-rc.5.patch routes check_permissions through desktopPermissions when available. prompt: true reveals the permission dialog for missing grants, then the driver performs a read-only check with prompt: false. The driver remains the authority for its own actual permission status; no grant is inferred from the Desktop response. Without the Desktop service, the provider retains upstream behavior. The pinned @trycua/cua-driver@0.28.0 binary, operation tools, image handling and shutdown ownership are unchanged. Only one provider can register, but that does not serialize concurrent Sessions operating the same desktop.

Unit tests exercise the installed patched provider with a fake native SDK. The optional native activation check requires a supported SDK platform, loads and shuts down the real provider, and sends no input or screenshots:

corepack yarn workspace nonead-dsh-desktop verify:host --computer-use

The optional verify:window-controls --computer-use smoke also enables and disables the real provider through the official frontend in headless Chromium, without calling its computer tools. Native OS consent and actual computer actions still need manual acceptance.

Recovery

The independent recovery assistant shows the startup error and recent logs even if no Host is running. It offers retry, Profile switching, diagnostics, safe mode, repair, rollback and Quit. Restart in Recovery Mode from the Settings header fully stops the background service before relaunching directly into this assistant. The current Profile and plugins are not loaded until Start or retry is selected.

Recovery opened at startup follows the operating system's preferred language order, choosing the first supported Chinese or English language. It does not need a running Host to select its language. Once the main interface is available, native controls continue to follow the language selected in Settings.

  • Safe mode starts the official interface in a separate temporary home with only shipped bundles, no original credentials, and remote control, Market and browser access disabled. Original data and configuration remain untouched. Leaving safe mode returns to the original Profile and removes the temporary home; work created in that temporary environment is not retained.
  • Profile repair backs up the manifest, Profile patch and feature switches before restoring built-in bundles and disabling third-party activation, remote control and Market. A malformed package.json can be repaired. Installed plugin files, shared sessions and credentials are retained.
  • Profile rollback restores the most recent successful Host-start configuration after backing up the current files and verifying the backup checksums. It covers package.json, cordis.patch.yml and Next feature switches, not installed plugin versions or shared data.
  • Global patch repair separately backs up and disables the home-level cordis.patch.yml; this affects all Next Profiles. Profile repair never silently changes that patch.

Backups stay under home/recovery/. Diagnostics export a bounded JSON report with versions, state and redacted logs, without reading session or credential files. Logs can still contain local paths and plugin output; inspect the report before sharing. Local desktop logs are bounded to 128 KiB at home/logs/nonead-dsh-desktop.log. Desktop preferences live independently of Host settings in home/desktop-preferences.json.

Development and packaged builds default to ~/.dsh, sharing Profiles and data with Stable; Next's selected Profile, Desktop preferences and related settings retain their own file names. The saved data-directory selection lives outside the selected home, at Nonead DSH Desktop/home below the system application-data directory (.nonead-dsh-desktop/home in a development checkout); the pre-rename anchors DSH NEXT/home and .desktop-next/home are still read, so an installation that already chose a directory keeps it. Set DSH_DESKTOP_NONEAD_HOME (DSH_DESKTOP_NEXT_HOME is still accepted) to an absolute path to choose a dedicated directory. Next does not select its home from the existing DSH_HOME. Factory reset still affects the entire current data directory, including data shared with Stable.

Ordinary Web Profiles do not declare nonead-dsh-desktop in package.json; Next supplies its capability only in its own Host startup and configuration recomposition. An older Next Profile has that historical bundle entry removed after its manifest is backed up, so Stable or the CLI will not load Next capabilities when opening the same Profile.

Architecture and provenance

Official Web frontend + official basic Desktop presentation
                        |  dsh-app://app
                 Next Electron main
                        |  authenticated HTTP / WebSocket
                 Electron Node-mode Host
                        |  upstream shared runProfile
                 Official Web bundles + Next bundle
                        |- Community Market
                        |- dshmarket
                        `- Agents Anywhere bridge

This package runs the upstream WebServer rather than simulating HTTP routes: the Electron main process owns the windows, the tray, permissions and updates, and the Host in src/host/ is a Node-mode child process that runs the upstream profile and talks to it over IPC. The Host binds only to 127.0.0.1, with an OS-assigned port by default so other editions can run concurrently. A separate optional TLS edge owns LAN ingress. Main retains Host cookies and a fresh native capability for each Host generation; ordinary HTTP and WebSocket requests are denied while browser access is off. Electron remains pinned to 44.0.0 for compatibility with the upstream native modules. Before forwarding a Host request, the main process attaches its native capability only to requests from the owned main frame at dsh-app://app, stripping that marker from other destinations and redirects. Native fetches may omit the HTTP Origin header. Market requests also require Host authentication, and mutations retain their translated loopback origin checks.

The main interface consumes official frontend artifacts without copying chat, settings, or plugin-manager pages. macOS window material, platform markers, the Windows caption menu, and native theme synchronization follow the official implementation. Editable areas in the main and shell windows show the official right-click editing menu: Undo, Redo, Cut, Copy, Paste, and Select All without shortcut labels, availability from Chromium, Copy alone for selected read-only text, and Windows labels in the current application language. The Windows caption buttons are the exception: their fill stays transparent and only their symbols follow the theme, so they always show whatever the page paints beneath them, including the official full-window onboarding and sign-in surfaces. Next contributes its Desktop section through settings.section and header shortcuts through settings.action. The Desktop section directly reuses dsh-plugin-desktop-beta's DesktopSettingsSection, header actions and stylesheet. Recovery and Profile windows reuse its native React pages, frame and UI components. Next supplies state and command adapters, and capability options hide unsupported features; it does not maintain a second copy of those pages. Shared component changes are mirrored to Stable while preserving both editions' defaults. The application preload also installs the official __DSH_HOST_PATHS__ bridge over Electron's webUtils: dropped, picked, and pasted files and folders with a real path enter the composer as @path references instead of uploads, and the official composer accepts dropped folders only when this bridge exists. Narrow sender-validated IPC exposes only named native actions. Ordinary browsers receive no native Desktop bridge. Adding a workspace in the main window opens the system folder dialog (Finder on macOS, Explorer on Windows) exactly as upstream Desktop does: Next hands its sampled LAN addresses to the Host as trusted authorities so LAN access can be switched on without a Host restart, which makes upstream's adaptive directory picker mount the in-app browsing panel, so Next's client bundle shadows that occupant in the Desktop window with a renderless driver over the preload bridge. Ordinary browsers reached through local or LAN access keep the panel the Host mounted.

Next contributes an application-owned profile layer at runtime; its recomposition hook keeps the layer active through shared plugin-manager operations and HMR without adding it to the shared Profile manifest. Version-scoped patches read dsh.optionalBundles and dsh.exclusiveBundles from the installation manifest and add plugins.overview and plugins.bundle.hidden slots to the published plugin-manager UI. Next uses these slots for the top controls and to omit duplicate bundle cards; installations without an exclusive group keep the original manager behavior. The dshmarket package runner uses the official runPluginCommand operation with Next’s Profile, installation anchor and bundled pnpm; it does not require pnpm on the system PATH. Development startup creates one managed link for Next itself under home/profiles/node_modules; the pinned upstream runtime resolution owns all other dependency fallbacks. All upstream runtime dependencies come from published packages, without source links into or edits to deepseek-harness/. The brand skin dsh-nonead-client-skin is a file: dependency of this package and ships inside the installer; cordis.patch.yml inserts it for every Profile. Both profile patch files are applied by row id: an entry that names an existing id changes that row, and a - insert: entry adds new rows.

upstream-reference.json records the reference commit and original hashes of copied files; LICENSE.upstream retains the original license.

Current limits

Packaging entry points and the Next update client are implemented. Releases still require producing and validating platform artifacts and configuring the online Next channel. Stable/Beta data migration is not provided. Our enhanced/extended window modes remain deferred. An unpublished Next update channel is reported as unavailable; Next never installs a Stable/Beta package. Enhanced window modes remain hidden. Headless Node/Electron checks do not qualify cross-platform installers or visual behavior.

  • A Windows update installer is verified only against the ProductName and ProductVersion of its PE version resource. Cryptographic SHA-256 digests are enforced as soon as the version service publishes them, which it does not do yet.
  • The Agents Anywhere bridge is built from source at its pinned commit with corepack yarn aa:prepare-release; the root dist:*:stable commands prepare and verify that release before packaging, and a channel bump requires rebuilding it.
  • corepack yarn check requires a .git directory: the bilingual-docs gate resolves tracked *.i18n.yaml records and document blob hashes through Git.

Packaging and updates

The product version is the version field in this package's package.json; the latest entry in the root CHANGELOG.md describes the current release. Run from the repository root:

corepack yarn package:dir:stable
corepack yarn dist:mac-smoke:stable
corepack yarn dist:mac:stable
corepack yarn dist:win:stable

corepack yarn workspace nonead-dsh-desktop dist:win builds the main Windows route: an assisted NSIS installer that is one self-contained executable per architecture, x64 and ARM64. The wizard ships eight languages (Simplified Chinese, English, Japanese, Spanish, French, German, Russian, Brazilian Portuguese); it starts in the one matching the Windows display language and opens the language picker only when that language is not one of the eight. A fresh install defaults to C:\Program Files\Nonead DSH Desktop, and an upgrade reuses the directory the previous installation registered — an all-users directory, a per-user %LOCALAPPDATA%\Programs install, or the directory an earlier Inno Setup build left behind — so an upgrade never strands a second copy. Both the installer and the uninstaller ask a running Nonead DSH Desktop to quit and then terminate it, and report a localized message when it cannot be closed. Wizard artwork and the application, installer and uninstaller icons come from build/app-icon.png through scripts/nsis/make-nsis-images.py; the close notices and their hints are four messages translated into all eight languages in build/dsh-installer-hooks.nsh. Set DSH_PACKAGE_ARCH=arm64 for the ARM64 artifact, DSH_PACKAGE_OUTPUT_DIR to keep each architecture's output apart (dist-arm64 by convention), and DSH_PACKAGE_CHECK_ALREADY_RAN=1 to reuse a package gate that already passed.

corepack yarn workspace nonead-dsh-desktop dist:inno remains the alternative Windows route: it reuses the same unpacked tree but compiles it with Inno Setup 7's ISCC (scripts/inno/desktop.iss) into one self-contained Setup executable, with the same eight languages, default directory and close-before-install behaviour. DSH_PACKAGE_PAYLOAD_DIR reuses an existing unpacked tree and DSH_PACKAGE_SKIP_PAYLOAD=1 rebuilds only the installer (about six minutes per architecture); DSH_PACKAGE_SMOKE=1 produces a build that leaves a running host alone, for automated install checks only.

Packaging reuses Beta's directory builds, universal macOS DMGs, signing/notarization preflight and the Windows NSIS flow for both Windows CPUs, including its unsigned Windows build policy. Like upstream Desktop, the application is archived into app.asar; native modules, executables, nested bundles, the bundled pnpm, the AA bridge's Connector project, the Node shims and the icon assets are unpacked beside it, because Electron's archive view serves only its own fs and dlopen, not child processes, shells or nativeImage. The Host, the terminal dsh command and recovery's plugin CLI run from the archive in Electron's Node mode; the Host resolves the LibreOffice engine to its unpacked copy through the upstream module hook, and the agent preset package's manifest to its unpacked copy through a Next hook, because the Creator preset mounts that package's skills/ as a custom skill-filesystem root that the Host's filesystem service lists with bigint stats, which Electron's archive view cannot answer for archived entries, and the computer-use driver's platform package to its unpacked copy through another Next hook, because the driver hands that package's library path to the system loader, which reads no archive, and the badge skill package to its unpacked copy through a third Next hook, because its skill tells the model to take dsh-badge.png from the directory it announces, which shells and the Host's filesystem service cannot read inside the archive, while requests made from that copy resolve as from the archived one, so its imports stay shared; the AA bridge receives its unpacked Connector and uv paths through the Profile overlay, and Profiles no longer get a filesystem link into the application, since no link can enter an archive. The packaged Host keeps Electron's archive view, so a workspace file named *.asar reads as an archive there, as in upstream Desktop. Both archive fuses stay off, as upstream ships them. One file stays outside the archive for compatibility: Contents/Resources/app/package.json, a byte-for-byte copy of the archived manifest copied as an extra resource, because the updaters shipped in 2.0.14-next through 2.0.17-next verify a downloaded disk image by reading the manifest at that pre-archive location and reject the image when it is missing. Electron loads app.asar before app, so the copy never changes which application starts; the afterPack hook, the final artifact check and verify-mac-release.ts require it on macOS, require it to match the archived manifest and this release, and allow nothing else in that directory. Windows ships no app directory, because its updater reads only the installer's version resource. These commands build artifacts without publishing or opening a GUI; release gates still require the latest AA preparation and repository checks.

The archive follows the upstream Desktop file policy, and the payload has two independent sources, as upstream Desktop prepares its dsh tree before electron-builder archives it. Before every electron-builder run, scripts/prepare-payload.ts materializes .desktop-build/payload/: the shell files; the application manifest as electron-builder would transform it, with a drill version from DSH_NONEAD_BUILD_VERSION applied and build-only fields removed; and the production dependency closure copied from the installed tree the way Node resolves it, with the file policy applied (source maps, TypeScript declarations, build caches, package-manager metadata, other platforms' LibreOffice engines and node-pty prebuilds), nested node_modules kept where the installer placed them, the linked dsh-community-market workspace copied by its published file list, and every dependency manifest cleaned the way electron-builder cleans it. The prepare step then seals desktop-runtime.json at the payload root: the Next, dsh, Electron and pnpm versions, the platform and the architectures whose native files the payload carries (both Darwin CPUs, Windows x64), every direct dependency as a shared package record, and the bytes, SHA-256, executable bit and Mach-O flag of every file; the descriptor is verified against the prepared tree as soon as it is written. electron-builder archives that directory verbatim through two file sets, the payload and its root node_modules, which electron-builder would otherwise leave out; it declines its own dependency collection in beforeBuild and unpacks native modules, executables and shell-executed files by the configured patterns. The afterPack hook opens the assembled archive and its unpacked files as a second copy of the installation: it checks that every packaged manifest's dependency closure resolves, rejects anything the policy omits and native code or shell-executed files that stayed inside the archive, and requires the archive to embed the prepared descriptor byte for byte and to match its inventory exactly, naming the first file that differs. Universal macOS builds run the hook once per CPU and once on the merged application; all three archives come from the same prepared tree, so the universal build keeps one archive instead of merging two (mergeASARs: false). The merge rewrites one kind of payload file: @electron/universal parses every Info.plist in the application, including those of nested bundles among the unpacked files, injects the archive integrity and serializes it again, so such a file is accepted only when the prepared copy still matches its record and both parse to the same content apart from ElectronAsarIntegrity, and the build log names it. After all artifacts are built, the final application is verified again against the descriptor inside its archive with the same tolerance plus code-signing tolerance, because electron-builder signs the unpacked Mach-O files and nested bundles afterwards and verify-mac-release.ts validates those signatures; the packaged Electron then imports the shell modules from the archive in Node mode and boots the real Host from it with a private home, the Community Market enabled and a diagnostics export running its worker thread, failing a Host that exposes the application to ordinary browsers. At startup a packaged application reads the descriptor from inside its archive and compares it with its own version, the installed @deepseek-ai/dsh, the platform and the CPU; a mismatch opens the recovery assistant instead of the workspace.

Like upstream Desktop, the package carries the primary runtime outside the archive, under Contents/Resources/runtime (resources/runtime on Windows): the standalone Python 3.12 pinned by the upstream lock with numpy, pandas, python-docx, python-pptx, openpyxl, Pillow, lxml and XlsxWriter, the standalone Node, the bundled pnpm, and the Office skill resources beside each payload. The macOS release is one universal application, so it carries one payload per CPU, runtime/arm64/primary-runtime and runtime/x64/primary-runtime, each with its own office-skills; the installed shell selects the payload of the CPU it runs on and passes it to the Host. Windows carries runtime/x64 only. Before every electron-builder run, scripts/prepare-runtime.ts downloads the archives and wheels the upstream lock pins (deepseek-harness/scripts/primary-runtime/lock.json) into .desktop-build/downloads, assembles each payload under .desktop-build/runtime/<cpu> with upstream's pruning of the NumPy and pandas test suites, writes its runtime.json with the product version and payload digest, verifies the tree (manifest platform, CPU and version, Node and pnpm entries, thin Mach-O interpreters of the declared CPU, the Office checker and skills) and executes the payloads this host can run: the native CPU, and the Intel one under Rosetta when an Apple Silicon host has it. electron-builder copies the tree verbatim as extra resources; the afterPack hook and the final artifact check verify it again, and verify-mac-release.ts runs the native payload from the mounted image. The dev and start scripts prepare the same tree before every development launch, as upstream Desktop's dev.ts does; corepack yarn workspace nonead-dsh-desktop prepare:runtime runs that step alone. The Host mounts the Office skills only when .desktop-build/runtime/<cpu>/primary-runtime exists, so the headless Host checks start without a payload; a packaged Host requires its payload and fails without it.

The Host mounts upstream's Office composition: the load_workspace_dependencies tool, which installs the payload of this CPU under <home>/dsh-runtimes/nonead-dsh-desktop-primary-runtime on first use (Next's own directory, because Next shares ~/.dsh with the official Desktop and the tool replaces an installation whose manifest differs), and the office-docx, office-pptx and office-xlsx skills, which receive the bundled Node and the unpacked LibreOffice Kit CLI. The CLI runs under that standalone Node, which reads no archive, so the beforePack hook unpacks the complete Office package closure of both CPUs beside the archive and the payload audit requires its roots there.

Signed macOS releases sign the payloads before electron-builder runs, as upstream Desktop does: every Mach-O file receives a hardened-runtime, timestamped Developer ID signature with a per-file identifier, and a signature whose secure timestamp request fails is attempted up to three times; the standalone Node receives the JIT entitlement V8 needs, the x64 Node additionally com.apple.security.cs.allow-unsigned-executable-memory for executable code pages, including under Rosetta; Python and its extension modules receive no entitlements. signIgnore keeps electron-builder from re-signing the payloads with the inherited application entitlements, and the universal merge rule keeps them identical across both CPU builds. Without this pass the Python .so extension modules would stay unsigned, because osx-sign signs only extension-less binaries, .dylib and .node files, and notarization rejects unsigned Mach-O code. A PKCS#12 certificate supplied through MAC_CERT_P12_BASE64 is imported into a temporary keychain for the pass; an identity in the login keychain is used as is. verify-mac-release.ts checks the signatures, the entitlement policy and the native payload's imports inside the mounted image.

Settings and the tray expose update checks. Packaged builds check shortly after startup and every six hours; downloads start only on a user click. The tray displays bytes or a percentage, then Install and restart. Installation hides windows and stops the Host before handing off. macOS verifies Next identity, version and signing team, packages the application from the downloaded DMG into a local ZIP, and hands it to Electron's Squirrel.Mac for signature validation and replacement, without implementing our own application replacement or weakening signing. The identity and version check reads Contents/Resources/app/package.json in the mounted image, which archived releases keep as a copy of the archived manifest for exactly this check. Windows verifies the Next installer identity/version and hands off to NSIS for a silent update and relaunch. Development runs can check but cannot replace the source tree or development Electron runtime.

The version contract is GET https://www.nonead.com/software/ndsh-desktop/version, with X-DSH-Desktop-Channel: stable and the installed version in X-DSH-Desktop-Version; installation identity is sent only to this endpoint. Downloads still use /software/ndsh-desktop/downloads/mac or /software/ndsh-desktop/downloads/windows on https://www.nonead.com with a pinned X-DSH-Desktop-Target-Version. Storage redirects receive none of these headers. Only plain-SemVer releases are accepted on this channel; SHA-256 is enforced when supplied. Failures, unpublished channels and older servers never appear as up to date. The service must publish this application on the stable channel and configure real artifacts whose embedded versions match the response (plain x.y.z).

Installer bytes travel over Chromium net.request rather than net.fetch: with redirect: 'manual' Electron's fetch rejects a redirect (Redirect was cancelled) instead of returning the 3xx response, so the release service's 302 to its storage path could never be followed. The transport issues one request per hop, validates every hop with the same HTTPS-and-default-port rule, drops the release selectors after the first hop, and keeps installer traffic on a non-persistent session partition so it carries no application cookies. The macOS and Windows download endpoints redirect to storage; a client that can only accept a direct 200 cannot update.

Packaged launches from the Finder or the Dock carry no login-shell exports. Before anything can start a Host, the shell runs the account's login shell once (zsh, bash or fish) the way the Desktop variants do, and merges only PATH, the locale variables, TZ and a fixed list of toolchain variables into its environment; credentials, DSH_* values and process startup hooks are not imported, and a failed, slow or unsupported shell leaves the inherited environment in place. When neither the launch environment nor the login shell names a locale, the shell sets LANG to the first installed UTF-8 locale for the system languages, as Terminal.app does, so the Host's terminals and tool subprocesses do not run in the C locale, where ls prints ? for non-ASCII file names. The diagnostics log records the outcome as shell-environment.resolved.

Runtime and developer logs

Next keeps a readable recent log at <data directory>/logs/nonead-dsh-desktop.log and structured JSONL history at logs/nonead-dsh-desktop-YYYY-MM-DD.<segment>.jsonl. History rotates at 10 MiB per file, retains seven days and is capped at 200 MiB. New files are private. Startup, Host exit and shutdown stages remain visible regardless of the verbosity setting; an active-run marker identifies the previous launch ending without successful cleanup. Errors and forced-exit evidence are flushed immediately; other records are batched for about 200 ms. Logging failure does not stop the application, and diagnostic exports report storage failures or dropped records.

Enable Developer logging in Desktop tools to record Electron commands, Renderer console output, plugin state transitions, model stream attempts, retry decisions, tool execution and Host HTTP requests. This takes effect without restarting the Host. The log level controls verbosity; select debug to also retain kernel debug messages. Records carry a launch id, process id, source and sequence; operations share an id and include elapsed time. Model and tool events correlate through session and call identities. Their metadata projections omit prompts, tool arguments, results, HTTP bodies and authentication headers; existing plugin log messages and errors are retained with rule-based secret masking.

Export diagnostics writes a version-2 JSON bundle containing application/runtime information, recent diagnostics, pending operations and up to 50 MiB of owned historical evidence. Export runs in a bounded worker with a 60-second deadline, and reports omitted files. It never traverses Profiles, credentials or conversation data.

The official runner offers no pre-mount context hook. Next replays its bounded logger buffer, audits the settled plugin graph and retains raw process output/fatal diagnostics; very early debug records absent from that buffer cannot be reconstructed. This is process/application logging, not an OS syscall trace or crash-dump collector.

Plugin inventory uses the official readPluginInventory() API for effective enablement and lifecycle phases. When the optional official Inspector is available, ctx.inspector.cordis.getTree() supplies runtime source, revision, connection and truncation metadata; Desktop does not reconstruct its topology. Session metadata uses the official session/event feed and preserves event types, sequence numbers and timestamps for correlation with Session Log. Raw session/chat inspection, NodeJS debugging and outbound fetch capture remain in the official developer tools. Desktop keeps operational timing, process/IPC diagnostics, file retention and diagnostic export. Enabling developer logging does not enable the official capture tools or copy their raw payloads into exports.

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/NoneadChina/Nonead-DSH-Desktop/nonead-dsh-desktop)