DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-export-center

d

dsh-export-center

Identified

Batch-export DeepSeek Harness Sessions as restorable archives with attachments and subagents, and move a plugin inventory between machines.

Export center

A DeepSeek Harness plugin that moves work between machines: batch-export the Sessions you pick as restorable archives — logs, subagent sessions, and attachments — and restore them as separate Sessions on another machine. The plugin inventory travels the same way, so a hand-built environment can be reproduced.

中文说明见 docs/DETAIL.md。

What it does

  • Session archives. Pick Sessions individually or by date; each one is read through the official api/session.export route, so the archive carries the canonical session.v4.jsonl log, its subagent logs, and every referenced attachment. The browser wraps them in one container ZIP with a localized README.md and manifest.json.
  • Restore. Import that container on any machine: the Host half writes each log as a new Session with its original creation time and event times, re-saves attachments under their content-addressed ids, rebuilds subagent children, and attaches the roots to the Workspace you choose.
  • Plugin inventory. Export the installed profile bundles as a slim manifest (name, version, spec, sourceKind, enabled) and restore it elsewhere: the panel shows the exact spec it will install, and switches on a bundle that exists but is disabled.
  • Encrypted exports. An optional password writes an AES-GCM-256 .dshbak package (PBKDF2-SHA-256, 210 000 iterations, random salt and IV) instead of a plain ZIP; import asks for the password and refuses the wrong one.
  • Incremental exports. New only packages only the selected Sessions that were never exported here, or changed after their own last successful export. The bookkeeping lives on the Host, so clearing browser storage or switching browsers does not reset it.
  • Duplicate protection. Importing an archive that this machine already restored is skipped by default; a "copy a duplicate anyway" option restores another set when that is really wanted.
  • Preview before writing. Picking an archive asks the Host for a dry-run plan first: it lists the Sessions it would create and writes nothing until you confirm.
  • Migration report. When an import finishes, a dialog shows what was restored or failed, with copy-summary and save-JSON actions; the panel keeps a "last import" line to reopen it.
  • Forked Sessions. A seeded source keeps its flag and its exact inherited cut, so a fork stays a fork after the round trip.
  • Localized exports. File names, the archive README, and the manifest about follow the active interface language. Session content is never translated.

Requirements

  • DeepSeek Harness >=0.2.2-rc.5 <0.3.0.
  • The official Session-log export row (@deepseek-ai/dsh-session-log-export), which the shipped Web bundle mounts.
  • A full DSH restart after installing or updating: the Host half is loaded at boot, and until then the panel reports "Host not loaded".
  • A directory install must live in an ASCII-only path and must not be moved afterwards; the profile stores that literal path as a link.

Install

Add this index URL to Discover, then install Export center there:

https://raw.giteeusercontent.com/lirenmelodic-resonance/dsh-export-center/raw/master/market/index.json

Step-by-step instructions for another machine (including a git-free path): docs/INSTALL.md.

The market entry installs the tagged commit through git+https://, so the target machine needs git. A plain archive is in the releases page for a directory install.

From a checkout:

dsh plugin --profile <name> add <absolute path to this directory>

Then add the bundle dsh-export-center-plugin to the profile's dsh.profile.bundles (or enable it on the Plugins page) and restart DSH.

What it writes

  • New Session logs through sessionPersistence (never edits existing ones).
  • Attachments through the attachment store (content-addressed ids).
  • Workspace membership for the restored roots.
  • Nothing else: no settings, no credentials, no telemetry, no network calls besides the Host routes this plugin serves.

Data format

Container ZIP: manifest.json, README.md, sessions/<sessionId>.zip. Each inner ZIP is the official archive for one Session. The manifest is schema 2 and carries tool, app, locale, exportedAt with a UTC offset, timeZone, counts, packagesDigest, about, and one entry per Session.

Limits

256 MB upload, 64 MB per archive entry, 512 MB inflated per import, 500 Session logs, 500 000 events per log, 200 MB per export batch; packages beyond the 500-package limit are reported as skipped. An archive without a readable central directory, a CRC mismatch, or an over-limit entry fails only that package. Only one import runs at a time (a second answers 409). Both operations can be cancelled.

Encrypted exports

The optional password next to Export writes an .dshbak package instead of a plain ZIP: AES-GCM-256 with a PBKDF2-SHA-256 key (210 000 iterations), a random 16-byte salt, a random 12-byte IV, and the DSHENC1 magic. It must be typed twice, can be revealed for checking, and the ciphertext is decrypted once before the file is saved, so a package that cannot be opened is never written. Import detects the magic and asks for the password; a wrong password fails without uploading anything. The password cannot be recovered.

Tests

node test/run.mjs

The suite ships with the package. No network, no browser, no DSH: it builds real ZIP archives in memory and checks the Host half against honest input, a decompression bomb, a bad CRC, a truncated archive, duplicate imports, subagent depth, attachment fallback, and a seeded fork. A separate check extracts the encryption helpers from client.js and covers the .dshbak round trip and a wrong password.

Security and trust

  • Exports are plain text unless you set a password. They carry every message and attachment of the selected Sessions.
  • An imported archive is untrusted input: its text becomes Session history that later turns read, and its plugin inventory can request installs. Import only files you trust and read the spec list before applying it. Only npm names and the two public git hosts are applied without a separate trust checkbox.
  • The Host never edits existing logs and never writes settings or credentials.

Upgrade from earlier builds

Earlier builds used the bundle name @local/dsh-export-center (or dsh-export-center) with the same row id export-center. Remove that bundle before installing dsh-export-center-plugin, then restart DSH; two bundles with one row id cannot be enabled together.

Development

The Host suite ships with the package and runs anywhere Node is available:

node test/run.mjs

These only exist in a checkout (they need the dev dependencies):

npm install
npm run typecheck     # tsc -p tsconfig.json over index.ts
npm run verify        # typecheck + host build check + files + docs + market + suite
npm run build         # emit index.js, then a deterministic archive in dist/

The Host half lives in index.ts; index.js is its committed build artifact, so an install never needs a compiler.

Source layout

  • src/index.ts — plugin assembly: route registration and services.
  • src/host/ — constants, util, zip (reader, CRC, manifest), state, attachments.
  • src/client/client.js — the browser half.
  • src/vendor/fflate.mjs — vendored library source.

index.js, client.js, host/*.js, and vendor/fflate.mjs are committed build artifacts. npm run build rebuilds them; npm run verify fails when any of them differs from src/.

Known limitations

  • No automated two-instance UI end-to-end. The suite imports a real container with stub services; a real export → import → open round trip is a manual check.
  • Fork resume is unverified. A seeded (isSeeded) Session keeps its flag and inherited cut and opens, but continuing the conversation has not been exercised on a real DSH.
  • The browser half is a single file. It is type-checked, but this environment cannot run a bundler, so it is not split into modules.
  • Import decompresses the whole container. One package is processed at a time, but the container map itself is bounded by the 512 MB limit; export holds the batch plus the finished archive.

License

MIT.

Comments

Loading…

Similar plugins

dsh-session-export

by bwndlct

Export DeepSeek Harness (DSH) sessions to portable Markdown and JSON — dsh plugin

Tools & CapabilitiesSessions & MessagesManifest valid

★ 3

↓ 801/wk

MIT

JavaScript

Aug 14, 2026

dsh plugin --profile web add dsh-session-export

by z1lyA

DSH plugin: manage archived DeepSeek Harness sessions — batch unarchive and safe permanent deletion with attachment reference scanning.

Manifest valid

★ 0

MIT

JavaScript

Nov 3, 2026

dsh plugin --profile web add dsh-session-admin

by mienfong

Move, archive, restore, portable backup/export and import sessions across workspaces in the DeepSeek Harness web UI.

Sessions & MessagesManifest valid

★ 10

↓ 703/wk

MIT

JavaScript

Nov 17, 2026

dsh plugin --profile web add dsh-session-mgr

by yangyongzhen

Export DeepSeek Harness sessions to Markdown for review, blogging and audit. dsh plugin.

Sessions & MessagesModels & ProvidersManifest valid

★ 3

↓ 858/wk

JavaScript

Aug 14, 2026

dsh plugin --profile web add dsh-session-export

by takboo

Native archived-session management for DeepSeek Harness with guarded permanent deletion and fixed batches.

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Oct 10, 2026

dsh plugin --profile web add @takboo/dsh-session-bin

by chen1pengvincent

DSH (DeepSeek Harness) plugin: manage archived sessions — native unarchive, recoverable quarantine, permanent purge, search/filter/sort, retention. 归档会话管理插件。

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Nov 17, 2026

dsh plugin --profile web add dsh-archived-manager