rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:JuneLearn/dsh-session-import
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Need to restore a DeepSeek Harness conversation on another computer, another
deployment, or a new workspace? This plugin reads .zip archives and bare
.jsonl logs produced by DSH /export, validates their structure and SHA-256
fingerprint, and restores the content as a new DSH session. The complete
workflow is available from an Import conversation dialog on the new-session
page.
gpt-image-2 text-to-image and image-to-image support to DSH..zip archives and bare .jsonl session logs produced by DSH
/export.expectedHash match.dryRun=1 validation and immediate open=1
session resume.npm and npx.dsh plugin invokes it in the
profile directory to install or remove plugins.registry.npmjs.org and github.com. Configure a
working network proxy if npm or GitHub is unavailable or unstable.Check the basic environment first:
node --version
npx --version
git --version
corepack enable
pnpm --version
If corepack enable fails with a permission error, run it once from an
Administrator PowerShell. Alternatively, use another option from the
pnpm installation guide.
If downloads fail with ECONNRESET, ETIMEDOUT, or a GitHub connection error,
set a proxy for the current PowerShell window. Port 7890 is only an example;
replace it with your proxy's actual port:
$proxy = "http://127.0.0.1:7890"
$env:HTTP_PROXY = $proxy
$env:HTTPS_PROXY = $proxy
$env:npm_config_proxy = $proxy
$env:npm_config_https_proxy = $proxy
These variables only affect the current PowerShell window and disappear when it is closed.
This method does not require a DeepSeek Harness source checkout or a global
dsh installation, but Git and pnpm must already be available:
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add github:JuneLearn/dsh-session-import
Start Web through the same package runner after installation:
npx --yes -p @deepseek-ai/dsh dsh web
Enter the DeepSeek Harness source root. Install its dependencies once, then install the plugin:
cd D:\deepseek-harness
pnpm install
pnpm dsh plugin --profile web add github:JuneLearn/dsh-session-import
Start Web from that source directory afterward:
cd D:\deepseek-harness
pnpm dsh web
The package's dsh.bundle declaration adds the plugin to the Web profile
automatically. Neither method requires editing cordis.patch.yml. Web listens
on http://127.0.0.1:3080 by default.
Link the working tree directly into the Web profile while developing locally:
cd D:\deepseek-harness
pnpm dsh plugin --profile web add "D:\CodexFile\临时文件夹\dsh-session-import"
pnpm dsh web
After a local link install, source changes normally require only a dsh web
restart and browser refresh rather than another installation.
Run the corresponding installation command again. No uninstall or manual profile-patch maintenance is required.
npx method:
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add github:JuneLearn/dsh-session-import
pnpm source method:
cd D:\deepseek-harness
pnpm dsh plugin --profile web add github:JuneLearn/dsh-session-import
npx method:
npx --yes -p @deepseek-ai/dsh dsh plugin --profile web remove dsh-session-import
pnpm source method:
cd D:\deepseek-harness
pnpm dsh plugin --profile web remove dsh-session-import
Uninstalling the plugin does not remove sessions that were already imported.
Restart dsh web; the import button and HTTP endpoints are then removed.
.zip / .jsonl file produced by DSH /export.The control row is approximately:
[Select workspace] [Standard mode] [Import conversation]
The plugin also exposes local HTTP endpoints. See the complete API documentation for parameters and response formats.
subagents/ logs and media/ files are counted but are not currently
imported with the root session.surfaceOp, and
sourceEventSeqs.| Symptom | Cause and action |
|---|---|
| Import conversation is missing | Open the new-session page, restart dsh web, then press Ctrl+F5 |
loaded without registering |
An old client bundle is cached; update the plugin, restart DSH, and hard-refresh |
400 bad-file |
The file is not valid ZIP/JSONL, or is damaged, encrypted, oversized, or unsupported |
409 hash-mismatch |
The uploaded file does not match the expected SHA-256 fingerprint |
422 structure |
Events are broken or references are invalid; failed imported artifacts are rolled back |
403 not-imported |
The target was not registered by this plugin process, or DSH has restarted |
503 persistence / workspace |
The active profile lacks required persistence or workspace services |
npm test
npm run check
npm pack --dry-run
tests/plugin.test.mjs covers log and ZIP parsing, structural validation,
sequence remapping, transactional rollback, deletion protection, client helper
functions, module identity, and package metadata.
The current release targets the public session format, dual-end plugin,
WebServer, workspace, and session-persistence interfaces of DeepSeek Harness
0.1.0-rc.6. Harness is still in Developer Preview. If an upgrade breaks the
plugin, check event types, message envelopes, Host service names, and the
dsh.client.inject declaration first.
This project is based on the MIT-licensed kinyokun/dsh-session-import. Thanks to kinyokun for the original work. The upstream copyright and license notice remain in LICENSE. See NOTICE and the upstream comparison for attribution and a detailed change summary.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。