Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

Merge remote-tracking branch 'gh/main' into resolve-676

hairyf2bfb9c605c42
diff --cc packages/dsh-tauri-ssh/src/host/service/version.test.ts
index ba60aa9f,00000000..29721464
mode 100644,000000..100644
--- a/packages/dsh-tauri-ssh/src/host/service/version.test.ts
+++ b/packages/dsh-tauri-ssh/src/host/service/version.test.ts
@@@ -1,161 -1,0 +1,160 @@@
+import { readFileSync } from 'node:fs'
+import { describe, expect, it } from 'vitest'
+import {
+ FALLBACK_DSH_TAG,
+ isPreviewTag,
+ OFFICIAL_INSTALL_REPO,
+ OFFICIAL_PKG_REPO,
+ parseGitHubRepo,
+ parseVersionFromTag,
+ pickReleaseTag,
+ pkgRepoOf,
+ RECOMMENDED_DSH_VERSION,
+} from './version'
+
+/** A realistic newest-first release list (test tags republishing included). */
+const RELEASES = [
+ { tag: 'dsh-0.2.0-preview.1-32490000001', prerelease: true },
+ { tag: 'dsh-0.1.5-rc.3-35833820356', prerelease: false },
+ { tag: 'dsh-0.1.2-rc.1-33729514615', prerelease: false },
+ { tag: 'dsh-0.1.1-rc.1-32342588166', prerelease: false },
+ { tag: 'dsh-0.1.0-rc.8-32342588167', prerelease: false },
+ { tag: 'dsh-0.1.0-rc.8-32331963388', prerelease: false },
+ { tag: 'dsh-0.1.0-beta.1-32490000002', prerelease: false },
+]
+
+describe('parseVersionFromTag', () => {
+ it('extracts the semver from build-id tags', () => {
+ expect(parseVersionFromTag('dsh-0.1.2-rc.1-33729514615')).toBe('0.1.2-rc.1')
+ expect(parseVersionFromTag('dsh-0.1.0-rc.8-32342588167')).toBe('0.1.0-rc.8')
+ // Bare dsh-prefixed tags always lose their last dash segment (the build-id
+ // convention) — matching the retired Rust parser exactly.
+ expect(parseVersionFromTag('dsh-0.1.2-rc.1')).toBe('0.1.2')
+ })
+
+ it('handles src tags and rejects tags without a version', () => {
+ expect(parseVersionFromTag('dsh-src-0.1.2-alpha.1-33260039971')).toBe('0.1.2-alpha.1')
+ expect(parseVersionFromTag('src-0.1.2-alpha.1')).toBe('0.1.2-alpha.1')
+ expect(parseVersionFromTag('v99')).toBeUndefined()
+ expect(parseVersionFromTag('')).toBeUndefined()
+ })
+})
+
+describe('isPreviewTag', () => {
+ it('flags non-rc pre-release markers only', () => {
+ expect(isPreviewTag('dsh-0.2.0-preview.1-1')).toBe(true)
+ expect(isPreviewTag('dsh-0.1.0-beta.1-2')).toBe(true)
+ expect(isPreviewTag('dsh-0.1.2-rc.1-33729514615')).toBe(false)
+ expect(isPreviewTag('dsh-0.1.2-33729514615')).toBe(false)
+ expect(isPreviewTag('not-a-tag')).toBe(false)
+ })
+})
+
+describe('pickReleaseTag', () => {
+ it('resolves the recommended version onto its release tag (recommended path)', () => {
+ const resolved = pickReleaseTag(RELEASES)
+ expect(resolved).toMatchObject({ tag: 'dsh-0.1.5-rc.3-35833820356', version: RECOMMENDED_DSH_VERSION, source: 'recommended' })
+ expect(resolved.notes).toEqual([])
+ })
+
+ it('dedupes republished versions keeping the newest-listed tag', () => {
+ const resolved = pickReleaseTag(RELEASES, { recommended: '0.1.0-rc.8' })
+ expect(resolved.tag).toBe('dsh-0.1.0-rc.8-32342588167')
+ })
+
+ it('prefers the non-src republish of a version (newest-first listing)', () => {
+ // Mirrors the live pkg repo: `dsh-0.1.2-alpha.4` (newer) and the older
+ // `dsh-src-0.1.2-alpha.4` parse to the same version; newest-first order
+ // must keep the `dsh-` variant.
+ const srcPair = [
+ { tag: 'dsh-0.1.2-alpha.4-33260040123', prerelease: false },
+ { tag: 'dsh-src-0.1.2-alpha.4-33260039971', prerelease: false },
+ ]
+ expect(pickReleaseTag(srcPair, { recommended: '0.1.2-alpha.4' }).tag).toBe('dsh-0.1.2-alpha.4-33260040123')
+ })
+
+ it('honors an explicit tag pin, listed or not', () => {
+ expect(pickReleaseTag(RELEASES, { ref: 'dsh-0.1.1-rc.1-32342588166' })).toMatchObject({
+ tag: 'dsh-0.1.1-rc.1-32342588166',
+ source: 'pin',
+ })
+ const unlisted = pickReleaseTag(RELEASES, { ref: 'dsh-0.1.1-rc.2-999' })
+ expect(unlisted.source).toBe('pin')
+ expect(unlisted.notes[0]).toContain('不在 release 列表')
+ })
+
+ it('honors an explicit version pin', () => {
+ expect(pickReleaseTag(RELEASES, { ref: '0.1.1-rc.1' })).toMatchObject({
+ tag: 'dsh-0.1.1-rc.1-32342588166',
+ version: '0.1.1-rc.1',
+ source: 'pin',
+ })
+ })
+
+ it('falls back to the newest stable release when the recommended version is absent', () => {
+ const resolved = pickReleaseTag(RELEASES, { recommended: '0.3.0' })
+ expect(resolved.source).toBe('latest-stable')
+ expect(resolved.tag).toBe('dsh-0.1.5-rc.3-35833820356')
+ expect(resolved.notes[0]).toContain('回退最新稳定')
+ })
+
+ it('skips preview releases in the stable fallback', () => {
+ const previewTop = [
+ { tag: 'dsh-0.2.0-preview.1-1', prerelease: true },
+ { tag: 'dsh-0.1.2-rc.1-33729514615', prerelease: false },
+ ]
+ expect(pickReleaseTag(previewTop, { recommended: '0.9.9' }).tag).toBe('dsh-0.1.2-rc.1-33729514615')
+ })
+
+ it('falls back to the known stable tag when the release list is unavailable', () => {
+ const resolved = pickReleaseTag(undefined)
+ expect(resolved).toMatchObject({ tag: FALLBACK_DSH_TAG, source: 'fallback' })
+ expect(resolved.notes[0]).toContain('回退已知稳定 tag')
+ })
+
+ it('falls back when the list is empty or everything is a preview', () => {
+ expect(pickReleaseTag([]).source).toBe('fallback')
+ expect(pickReleaseTag([{ tag: 'dsh-0.2.0-preview.1-1', prerelease: true }]).source).toBe('fallback')
+ })
+
+ it('notes an unresolvable version pin before falling back', () => {
+ const resolved = pickReleaseTag(RELEASES, { ref: '9.9.9' })
+ expect(resolved.source).toBe('recommended')
+ expect(resolved.notes[0]).toContain('回退推荐/最新稳定版')
+ })
+})
+
+describe('recommended version lockstep', () => {
- it('follows the desktop mainline version-recommend.json', () => {
- const manifest = JSON.parse(
- readFileSync(new URL('../../../../../src-tauri/resources/version-recommend.json', import.meta.url), 'utf8'),
- ) as { dsh: string }
- expect(RECOMMENDED_DSH_VERSION).toBe(manifest.dsh)
++ it('follows the desktop mainline manifest.jsonc', () => {
++ const raw = readFileSync(new URL('../../../../../src-tauri/resources/manifest.jsonc', import.meta.url), 'utf8')
++ const manifest = JSON.parse(raw.replace(/^\s*\/\/.*$/gm, '')) as { engines: { dsh: { recommend: string } } }
++ expect(RECOMMENDED_DSH_VERSION).toBe(manifest.engines.dsh.recommend)
+ })
+})
+
+describe('install source repository mapping', () => {
+ it('anchors the official repository at the verified org', () => {
+ expect(OFFICIAL_INSTALL_REPO).toBe('https://github.com/deepseek-ai/deepseek-harness.git')
+ expect(pkgRepoOf()).toBe(OFFICIAL_PKG_REPO)
+ expect(pkgRepoOf('')).toBe(OFFICIAL_PKG_REPO)
+ // The official anchor (and its legacy wrong-org spelling) map onto the packaging repo.
+ expect(pkgRepoOf('https://github.com/deepseek-ai/deepseek-harness.git')).toBe(OFFICIAL_PKG_REPO)
+ expect(pkgRepoOf('https://github.com/deepseek-harness/deepseek-harness.git')).toBe(OFFICIAL_PKG_REPO)
+ })
+
+ it('uses a configured fork or mirror as the release repository directly', () => {
+ expect(pkgRepoOf('https://github.com/my-org/deepseek-harness-pkg')).toBe('my-org/deepseek-harness-pkg')
+ expect(pkgRepoOf('https://github.com/my-org/deepseek-harness-pkg.git')).toBe('my-org/deepseek-harness-pkg')
+ expect(pkgRepoOf('my-org/deepseek-harness-pkg')).toBe('my-org/deepseek-harness-pkg')
+ })
+
+ it('rejects unparseable repository strings onto the official source', () => {
+ expect(pkgRepoOf('not a repo at all')).toBe(OFFICIAL_PKG_REPO)
+ })
+
+ it('parses GitHub URLs and bare owner/name pairs', () => {
+ expect(parseGitHubRepo('https://github.com/a/b')).toBe('a/b')
+ expect(parseGitHubRepo('http://github.com/a/b.git/')).toBe('a/b')
+ expect(parseGitHubRepo('[email protected]:a/b')).toBeUndefined()
+ })
+})
diff --cc packages/dsh-tauri-ssh/src/host/service/version.ts
index 10019807,00000000..062113fe
mode 100644,000000..100644
--- a/packages/dsh-tauri-ssh/src/host/service/version.ts
+++ b/packages/dsh-tauri-ssh/src/host/service/version.ts
@@@ -1,272 -1,0 +1,273 @@@
+/**
+ * DSH version selection and download-metadata pinning, ported from the
+ * retired Rust engine's semantics (`service/download/github.rs` +
- * `config/version_recommend.rs`): never "latest 直下" — resolve the
++ * `src-tauri/resources/manifest.jsonc`'s `engines.dsh.recommend`): never
++ * "latest 直下" — resolve the
+ * recommended version onto a concrete release tag, pin that tag's asset URL
+ * and trusted digest, and on resolution failure fall back to a known stable
+ * tag while reporting why. Also owns the install-source repository mapping
+ * (`installRepo` config → the GitHub repository hosting the packaged
+ * releases).
+ * @module dsh-tauri-ssh/host/service/version
+ */
+
+/** One packaged release as the GitHub API lists it. */
+export interface DshPkgReleaseMeta {
+ tag: string
+ /** GitHub's Pre-release label for the tag. */
+ prerelease: boolean
+}
+
+/** How a release tag was chosen. */
+export type DshTagSource = 'pin' | 'recommended' | 'latest-stable' | 'fallback'
+
+/** The outcome of release-tag resolution. */
+export interface ResolvedDshTag {
+ tag: string
+ /** The parsed semver (empty when the tag carries none). */
+ version: string
+ source: DshTagSource
+ /** Human-readable notes for every departure from the primary choice. */
+ notes: string[]
+}
+
+/**
+ * The recommended DSH version pinned for remote installs. Kept in lockstep
- * with the desktop mainline's `src-tauri/resources/version-recommend.json`
- * (both name the version this desktop generation is verified against);
- * installs pin this version instead of following whatever "latest" happens
- * to be.
++ * with the desktop mainline's `src-tauri/resources/manifest.jsonc`
++ * (`engines.dsh.recommend`, both name the version this desktop generation is
++ * verified against); installs pin this version instead of following whatever
++ * "latest" happens to be.
+ */
+export const RECOMMENDED_DSH_VERSION = '0.1.5-rc.3'
+
+/**
+ * The last known-good packaged release tag, used when version resolution
+ * fails (offline, rate-limited, or the recommended version vanished). A
+ * concrete tag — never an unknown version.
+ */
+export const FALLBACK_DSH_TAG = 'dsh-0.1.5-rc.3-35833820356'
+
+/** The official DSH project repository (org verified on GitHub). */
+export const OFFICIAL_INSTALL_REPO = 'https://github.com/deepseek-ai/deepseek-harness.git'
+
+/** The GitHub repository hosting the packaged DSH binary releases. */
+export const OFFICIAL_PKG_REPO = 'dsh-tauri-desk/deepseek-harness-pkg'
+
+/**
+ * Map the `installRepo` config onto the GitHub `owner/name` repository whose
+ * releases the binary install downloads from. The official anchor (and the
+ * legacy wrong-org spelling it replaces) maps onto the official packaging
+ * repository; any other configured repository is used as-is, so forks and
+ * mirrors of the packaging repo work.
+ * @param installRepo - the configured install repository (URL or `owner/name`).
+ * @returns the `owner/name` release repository.
+ */
+export function pkgRepoOf(installRepo?: string): string {
+ const configured = installRepo === undefined || installRepo.trim() === '' ? undefined : installRepo.trim()
+ if (configured === undefined)
+ return OFFICIAL_PKG_REPO
+ const parsed = parseGitHubRepo(configured)
+ if (parsed === undefined)
+ return OFFICIAL_PKG_REPO
+ if (parsed === 'deepseek-ai/deepseek-harness' || parsed === 'deepseek-harness/deepseek-harness')
+ return OFFICIAL_PKG_REPO
+ return parsed
+}
+
+/** The `owner/name` of a GitHub repository URL (`.git` suffix tolerated). */
+export function parseGitHubRepo(value: string): string | undefined {
+ const match = /^(?:https?:\/\/)?(?:www\.)?github\.com\/([^/]+)\/([^/]+?)(?:\.git)?\/?$/u.exec(value)
+ if (match === null) {
+ // A bare `owner/name` is accepted for local mirrors expressed concisely.
+ const bare = /^([\w.-]+)\/([\w.-]+)$/u.exec(value)
+ return bare === null ? undefined : `${bare[1]}/${bare[2]}`
+ }
+ return `${match[1] ?? ''}/${match[2] ?? ''}`
+}
+
+/**
+ * Parse the DSH semver out of a packaged release tag: `dsh-0.1.2-rc.1-<build>`
+ * (the trailing build id is dropped) and `dsh-src-0.1.2-alpha.1-<build>`
+ * yield the version with its prerelease segment intact. A bare dsh-prefixed
+ * tag still loses its last dash segment — the build-id convention applied
+ * unconditionally, matching the retired Rust parser — so bare
+ * `dsh-0.1.2-rc.1` yields `0.1.2` (the `rc.1` segment is dropped); only a
+ * bare `src-<version>` tag passes through as-is.
+ * @param tag - the release tag.
+ * @returns the version string, or undefined when the tag carries none.
+ */
+export function parseVersionFromTag(tag: string): string | undefined {
+ const hasDshPrefix = tag.startsWith('dsh-')
+ const stripped = hasDshPrefix ? tag.slice('dsh-'.length) : tag
+ if (stripped.startsWith('src-')) {
+ const rest = stripped.slice('src-'.length)
+ // `dsh-src-<version>-<build>`: drop the build id; bare `src-<version>`: as-is.
+ const version = hasDshPrefix ? rest.split('-').slice(0, -1).join('-') : rest
+ return version === '' ? undefined : version
+ }
+ if (!hasDshPrefix)
+ return undefined
+ const version = stripped.split('-').slice(0, -1).join('-')
+ return version === '' ? undefined : version
+}
+
+/** Pre-release markers that make a tag a preview (rc does not — rc ships). */
+const PREVIEW_MARKERS = ['preview', 'beta', 'alpha', 'canary', 'next'] as const
+
+/**
+ * Whether a tag is a preview release (its version's pre-release segment
+ * carries a non-rc preview marker). Preview releases never win the
+ * "latest stable" fallback.
+ * @param tag - the release tag.
+ */
+export function isPreviewTag(tag: string): boolean {
+ const version = parseVersionFromTag(tag)
+ if (version === undefined)
+ return false
+ const pre = version.split('-').slice(1).join('-')
+ if (pre === '')
+ return false
+ return pre.split('.').some(id => PREVIEW_MARKERS.some(marker => id.startsWith(marker)))
+}
+
+/**
+ * Resolve the install tag from the release list (pure — the network fetch is
+ * injected). Resolution order: the configured pin (`ref`, a tag or version),
+ * the {@link RECOMMENDED_DSH_VERSION} match, the newest stable release, and
+ * finally the {@link FALLBACK_DSH_TAG} constant when no list was available.
+ * Every departure from the primary choice carries a human-readable note.
+ * @param metas - the packaged release list (newest first), or undefined when
+ * the listing itself failed.
+ * @param options - the pin (`ref`) and the recommended version override.
+ * @param options.ref - the configured pin: a full release tag or a semver.
+ * @param options.recommended - the recommended version (defaults to the constant).
+ * @returns the resolved tag, its version, the resolution source, and notes.
+ */
+export function pickReleaseTag(
+ metas: DshPkgReleaseMeta[] | undefined,
+ options: { ref?: string | undefined, recommended?: string | undefined } = {},
+): ResolvedDshTag {
+ const recommended = options.recommended ?? RECOMMENDED_DSH_VERSION
+ const notes: string[] = []
+ const ref = options.ref === undefined || options.ref.trim() === '' ? undefined : options.ref.trim()
+ if (ref !== undefined) {
+ if (ref.startsWith('dsh-')) {
+ const listed = metas?.some(meta => meta.tag === ref) ?? false
+ if (!listed)
+ notes.push(`pin tag ${ref} 不在 release 列表中(列表截断或来源异常),按 pin 直用`)
+ const version = parseVersionFromTag(ref) ?? ''
+ return { tag: ref, version, source: 'pin', notes }
+ }
+ const pinned = metas?.find(meta => parseVersionFromTag(meta.tag) === ref)
+ if (pinned !== undefined)
+ return { tag: pinned.tag, version: ref, source: 'pin', notes }
+ notes.push(`版本 pin ${ref} 未找到匹配 release,回退推荐/最新稳定版`)
+ }
+ if (metas === undefined || metas.length === 0) {
+ notes.push('release 列表不可用(网络/限流),回退已知稳定 tag')
+ return { tag: FALLBACK_DSH_TAG, version: parseVersionFromTag(FALLBACK_DSH_TAG) ?? '', source: 'fallback', notes }
+ }
+ // Dedupe by version keeping the first-listed tag: GitHub lists releases
+ // newest-first (created_at descending, verified against the pkg repo), so
+ // the first tag of a version is its newest republish — e.g. `dsh-…` wins
+ // over an older `dsh-src-…` that parses to the same version.
+ const byVersion = new Map<string, DshPkgReleaseMeta>()
+ for (const meta of metas) {
+ const version = parseVersionFromTag(meta.tag)
+ if (version === undefined)
+ continue
+ if (!byVersion.has(version))
+ byVersion.set(version, meta)
+ }
+ const recommendedMeta = byVersion.get(recommended)
+ if (recommendedMeta !== undefined)
+ return { tag: recommendedMeta.tag, version: recommended, source: 'recommended', notes }
+ const fallback = metas.find(meta => !meta.prerelease && !isPreviewTag(meta.tag))
+ if (fallback === undefined) {
+ notes.push('推荐版本不在 release 列表且无稳定 release,回退已知稳定 tag')
+ return { tag: FALLBACK_DSH_TAG, version: parseVersionFromTag(FALLBACK_DSH_TAG) ?? '', source: 'fallback', notes }
+ }
+ notes.push(`推荐版本 ${recommended} 不在 release 列表,回退最新稳定 ${fallback.tag}`)
+ return { tag: fallback.tag, version: parseVersionFromTag(fallback.tag) ?? '', source: 'latest-stable', notes }
+}
+
+/** One packaged release asset as GitHub reports it. */
+export interface GithubAsset {
+ name: string
+ url: string
+ /** Trusted digest (`sha256:<hex>`), when GitHub computed one. */
+ digest?: string
+}
+
+/** Fetch JSON with a deadline; a non-2xx fails with the status. */
+async function fetchJson(url: string, headers: Record<string, string>, timeoutMs: number): Promise<unknown> {
+ const response = await fetch(url, { headers, signal: AbortSignal.timeout(timeoutMs) })
+ if (!response.ok)
+ throw new Error(`GET ${url} → HTTP ${response.status}`)
+ return await response.json() as unknown
+}
+
+/** List the packaged releases (newest first) from the GitHub API. */
+export async function listGithubReleases(repo: string, timeoutMs = 15_000): Promise<DshPkgReleaseMeta[]> {
+ const json = await fetchJson(
+ `https://api.github.com/repos/${repo}/releases?per_page=100`,
+ { 'accept': 'application/vnd.github+json', 'user-agent': 'dsh-tauri-ssh' },
+ timeoutMs,
+ )
+ if (!Array.isArray(json))
+ throw new Error(`unexpected releases payload from ${repo}`)
+ return json
+ .filter((entry): entry is { tag_name: string, draft: boolean, prerelease: boolean } =>
+ typeof entry === 'object' && entry !== null && typeof (entry as { tag_name?: unknown }).tag_name === 'string')
+ .filter(entry => !entry.draft)
+ .map(entry => ({ tag: entry.tag_name, prerelease: entry.prerelease }))
+}
+
+/** Fetch one tag's release assets from the GitHub API. */
+export async function listGithubAssets(repo: string, tag: string, timeoutMs = 15_000): Promise<GithubAsset[]> {
+ const json = await fetchJson(
+ `https://api.github.com/repos/${repo}/releases/tags/${encodeURIComponent(tag)}`,
+ { 'accept': 'application/vnd.github+json', 'user-agent': 'dsh-tauri-ssh' },
+ timeoutMs,
+ )
+ const assets = (json as { assets?: unknown }).assets
+ if (!Array.isArray(assets))
+ throw new Error(`unexpected release payload for ${tag}`)
+ return assets
+ .filter((asset): asset is { name: string, browser_download_url: string, digest?: unknown } =>
+ typeof asset === 'object' && asset !== null && typeof (asset as { name?: unknown }).name === 'string')
+ .map(asset => ({
+ name: asset.name,
+ url: asset.browser_download_url,
+ ...typeof asset.digest === 'string' ? { digest: asset.digest } : {},
+ }))
+}
+
+/**
+ * Resolve the `npm-tgz` DSH asset metadata for one version from the npm
+ * registry (official → npmmirror fallback): the deterministic tarball URL
+ * pair and the packument's trusted integrity digest.
+ * @param packageName - the scoped package name (`@deepseek-ai/dsh`).
+ * @param version - the resolved version.
+ * @param timeoutMs - per-request deadline.
+ * @returns the tarball URL (official), its mirror, and the `sha512` integrity.
+ */
+export async function npmDistMetadata(
+ packageName: string,
+ version: string,
+ timeoutMs = 15_000,
+): Promise<{ url: string, mirrorUrl: string, integrity?: string }> {
+ const headers = { accept: 'application/json' }
+ const packument = await fetchJson(`https://registry.npmjs.org/${packageName}`, headers, timeoutMs)
+ .catch(() => fetchJson(`https://registry.npmmirror.com/${packageName}`, headers, timeoutMs))
+ const dist = (packument as { versions?: Record<string, { dist?: { tarball?: unknown, integrity?: unknown } }> })
+ ?.versions?.[version]
+ ?.dist
+ if (dist === undefined || typeof dist.tarball !== 'string')
+ throw new Error(`npm registry carries no ${packageName}@${version}`)
+ return {
+ url: dist.tarball,
+ mirrorUrl: dist.tarball.replace('https://registry.npmjs.org/', 'https://registry.npmmirror.com/'),
+ ...typeof dist.integrity === 'string' ? { integrity: dist.integrity } : {},
+ }
+}
diff --cc src-tauri/resources/manifest.jsonc
index 00000000,e801f312..2dd49994
mode 000000,100644..100644
--- a/src-tauri/resources/manifest.jsonc
+++ b/src-tauri/resources/manifest.jsonc
@@@ -1,0 -1,235 +1,249 @@@
+ {
+ "engines": {
+ "dsh": {
+ "recommend": "0.1.5-rc.3",
+ "minimum": "0.1.5-rc.1"
+ },
+ "node": {
+ "version": ">=22.22.0"
+ },
+ "pnpm": {
+ "version": ">=11.7.0",
+ "sha256": "deafa7ec98a1218b6a047289b92fbe2395c1e22d3495bb711653013218ee15ee"
+ },
+ "git": {
+ "version": ">2.53.0.2",
+ "sha256": {
+ "x64": "d4bf83d6a860ccae9af44e508e1e00a39f09db6fa78a9ba5543b94d87ca22a29",
+ "arm64": "842d50edc6bbcf39693e60a8ebb9dabb89b96b932b63aae12d218522b3e497f3"
+ }
+ }
+ },
+ "dependencies": {
+ // 依赖映射规范:AppData 的 dependencies.json 只记录每个依赖的安装根
+ // (null = 用系统环境);入口相对路径与默认托管根以本表为准。
+ // managedRoot / 映射值支持三种形态:
+ // $AppData/... AppData 数据目录(debug 构建为 <base>/dev 的同级)
+ // $Resources/... 安装包资源目录(`resources/...` 为等价旧写法)
+ // 绝对路径 任意位置(如加载本地捆绑版内核)
+ "node": {
+ "engine": ">=22.22.0",
+ "entry": {
+ "windows": "node.exe",
+ "default": "bin/node"
+ },
+ "managedRoot": "$AppData/runtime",
+ "overridable": true
+ },
+ "pnpm": {
+ "engine": ">=11.7.0",
+ "entry": "bin/pnpm.cjs",
+ "managedRoot": "$AppData/dependencies/pnpm",
+ "overridable": true
+ },
+ "dsh": {
+ "engine": {
+ "recommend": "0.1.5-rc.3",
+ "minimum": "0.1.5-rc.1"
+ },
+ "entry": "node_modules/@deepseek-ai/dsh/lib/bin.js",
+ "managedRoot": "$AppData/dependencies/dsh",
+ "overridable": true
+ },
+ "git": {
+ "engine": ">2.53.0.2",
+ "entry": {
+ "windows": "cmd/git.exe",
+ "default": "bin/git"
+ },
+ "managedRoot": "$AppData/dependencies/git",
+ "overridable": true
+ }
+ },
+ "plugins": {
+ "depercated": [
+ "dsh-win-terminal-inspector",
+ "dsh-session-context-menu",
+ "dsh-notification",
+ "dsh-tauri-panel",
+ "dsh-tauri-turnrewind",
+ "dsh-tauri-connection"
+ ],
+ "built-in": [
+ {
+ "id": "dsh-tauri",
+ "spec": "dsh-tauri",
+ "name": "DSH Tauri",
+ "description": "Message bridge for the DeepSeek Harness desktop shell. Also carries the desktop authentication adaptation: the embedded sandboxed WebView is cross-origin, so it cannot complete the SameSite=Strict browser-session cookie exchange.",
+ "repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri"
+ },
+ {
+ "id": "dsh-tauri-running-changes",
+ "spec": "dsh-tauri-running-changes",
+ "name": "DSH Running Changes",
+ "description": "Turn-level change tracking for the desktop shell: a private Git snapshot per agent turn and an input-dock chip reporting the changed files and +N -M of the turn that is currently running. Restoring files is handled by the recommended dsh-rewind plugin.",
+ "repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-running-changes"
+ },
+ {
+ "id": "dsh-tauri-ui",
+ "spec": "dsh-tauri-ui",
+ "name": "DSH Tauri UI",
+ "description": "Customized Tauri UI plugin for the DeepSeek Harness desktop shell: provides the settings sidebar, settings sections, and shared UI integration points",
+ "repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-ui"
+ },
+ {
+ "id": "dsh-tauri-worktree",
+ "spec": "dsh-tauri-worktree",
+ "name": "DSH Tauri Worktree",
+ "description": "Per-session isolated Git Worktree for the desktop shell: switch a conversation to its own isolated worktree, then check changes back into a local dsh/ branch or discard them.",
+ "repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-worktree"
+ },
+ {
+ "id": "dsh-tauri-panel-extension",
+ "spec": "dsh-tauri-panel-extension",
+ "name": "DSH Tauri Panel Extension",
+ "description": "Skills, MCP, and the plugin market in the DeepSeek Harness desktop extension panel.",
+ "repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-panel-extension"
+ },
+ {
+ "id": "dsh-tauri-panel-scheduler",
+ "spec": "dsh-tauri-panel-scheduler",
+ "name": "DSH Tauri Panel Scheduler",
+ "description": "Scheduled tasks for the DeepSeek Harness desktop panel: create daily/interval/workday/weekly automations, run them in fresh sessions on schedule, and review run history.",
+ "repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-panel-scheduler"
+ },
+ {
+ "id": "dsh-tauri-session",
+ "spec": "dsh-tauri-session",
+ "name": "DSH Tauri Session",
+ "description": "Session archive for the desktop: rewrites the workspace browser's 'delete workspace' action into 'archive workspace', and adds an 'Archived chats' settings page with search, sort, grouping, project filter and unarchive.",
+ "repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-session"
+ },
+ {
+ "id": "dsh-tauri-pet",
+ "spec": "dsh-tauri-pet",
+ "name": "DSH Tauri Pet",
+ "description": "Persistent animated desktop pets with conversation activity states, bubbles, and Chat/Codex pet libraries.",
+ "repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-pet"
+ },
+ {
+ "id": "dsh-tauri-rightclick",
+ "spec": "dsh-tauri-rightclick",
+ "name": "DSH Tauri Rightclick Menu",
+ "description": "Native-style right-click context menu for the desktop shell: quick actions for sessions, workspaces, conversation text, links, and inputs — in-house successor to the deprecated dsh-session-context-menu.",
+ "repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-rightclick"
+ },
+ {
+ "id": "dsh-tauri-model-config",
+ "spec": "dsh-tauri-model-config",
+ "name": "DSH Tauri Model Config",
+ "description": "Model selection and parameter configuration for the DeepSeek Harness desktop shell",
+ "repo": "https://github.com/dsh-tauri-desk/dsh-tauri-plugins/tree/main/packages/dsh-tauri-model-config"
++ },
++ {
++ "id": "dsh-tauri-ssh",
++ "spec": "dsh-tauri-ssh",
++ "name": "DSH Tauri SSH",
++ "description": "Remote-machine host kernel for the desktop: SSH connection management with TOFU host keys, ~/.ssh/config discovery, remote dsh web auto-start, loopback tunnels, and the same-origin /api-ssh route.",
++ "repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ssh"
++ },
++ {
++ "id": "dsh-tauri-ssh-ui",
++ "spec": "dsh-tauri-ssh-ui",
++ "name": "DSH Tauri SSH UI",
++ "description": "Settings page for SSH remote machines: machine CRUD with per-machine identity colors, connect/test/disconnect through the plugin's /api-ssh route, one-click remote dsh install, and the tunnel popup opener.",
++ "repo": "https://github.com/dsh-tauri-desk/deepseek-harness-desktop/tree/main/packages/dsh-tauri-ssh-ui"
+ }
+ ],
+ "preset": [
+ {
+ "id": "dshmarket",
+ "spec": "dshmarket",
+ "name": "DSH Market",
+ "repo": "https://github.com/dsh-market/dsh-market",
+ "description": "Visual plugin market inside DeepSeek Harness — browse, search, and one-click install community plugins.",
+ "recommended": true,
+ "checked": true,
+ "version": "latest"
+ },
+ {
+ "id": "dsh-better-sidebar",
+ "spec": "dsh-better-sidebar",
+ "name": "DSH Better Sidebar",
+ "description": "A VSCode-like right sidebar (explorer / editor / terminal / git / browser), isolated per conversation session. Exposes a service for other plugins to register sidebar tabs and file viewers.",
+ "repo": "https://github.com/omdsh-dev/DSH-better-sidebar",
+ "recommended": true,
+ "checked": true,
+ "version": [
+ {
+ "version": "^0.19.1",
+ "dsh": "^0.1.5-rc.1"
+ },
+ {
+ "version": "^0.21.1",
+ "dsh": "^0.1.7-rc.1"
+ }
+ ]
+ },
+ {
+ "id": "dsh-rewind-plugin",
+ "spec": "dsh-rewind-plugin",
+ "name": "DSH Rewind",
+ "description": "In-window conversation rewind that never forks a new session, with a lightweight workspace backup that restores files together with the rewind.",
+ "repo": "https://github.com/SiriLee/dsh-rewind",
+ "recommended": true,
+ "checked": true,
+ "version": [
+ {
+ "version": "^0.12.2",
+ "dsh": "^0.1.5-rc.1"
+ },
+ {
+ "version": "^0.14.0-beta.1",
+ "dsh": "^0.1.7-rc.1"
+ }
+ ]
+ },
+ {
+ "id": "@xmanrui/dsh-im",
+ "spec": "@xmanrui/dsh-im",
+ "name": "DSH IM",
+ "description": "Connect IM channels (WeChat, Feishu, DingTalk, WeCom, QQ, Slack, Telegram, Discord, WhatsApp, iMessage and more) plus a public AI Office to a local DeepSeek Harness, with bot management in the desktop sidebar.",
+ "repo": "https://github.com/xmanrui/dsh-im",
+ "recommended": true,
+ "checked": false,
+ "version": [
+ {
+ "version": "^4.25.0",
+ "dsh": "^0.1.5-rc.1"
+ },
+ {
+ "version": "^4.28.0",
+ "dsh": "^0.1.7-rc.1"
+ }
+ ]
+ }
+ ]
+ },
+ "pets": {
+ "built-in": [
+ {
+ "id": "maid-deepseek-whale",
+ "name": "Maid DeepSeek Whale",
+ "desc": "一只小小的七比蓝头发的鲸鱼女仆Codex宠物,穿着海军蓝裙子,白色褶边,蓝眼睛,侧鳍和鲸鱼尾巴。",
+ "image": "https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/e1ff8c1e4001878cbb80441262d530e16541f138/dsh-pet/assets/preview/daiji-huxi-xiuxian.gif",
+ "kind": "dsh",
+ "size": 220,
+ "config": "https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/e1ff8c1e4001878cbb80441262d530e16541f138/dsh-pet/assets/config.jsonc",
+ "uri": {
+ "default": "https://raw.githubusercontent.com/PC2005-cloud/dsh-pet/e1ff8c1e4001878cbb80441262d530e16541f138/dsh-pet/assets/webm",
+ "mac": "https://raw.githubusercontent.com/dsh-tauri-desk/dsh-pet-mov/be0f3bb494cb71a4c73f916c0b92d25a3ab4d002/mov"
+ },
+ "ext": {
+ "default": "webm",
+ "mac": "mov"
+ }
+ }
+ ]
+ }
+ }