rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:mehdinikzad68/dsh-session-manager
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | فارسی
Session deletion for the DeepSeek Harness (DSH) Web GUI.
DSH can archive sessions but never delete them — the shipped persistence layer has no deletion API, and workspace deletion keeps every session log on disk. This plugin fills that gap:
… menu gets a Delete… row (after the
shipped Copy Session ID), with a confirmation dialog.rm — deleted session directories are moved to
$DSH_HOME/trash/sessions/<timestamp>--<id>/ with a manifest.json, so the
settings page can Restore them until you Empty trash.┌──────────────────────┐ same-origin fetch ┌─────────────────────────────┐
│ lib/client.js │ ───────────────────▶ │ lib/index.js (Host half) │
│ • menu slot row │ /session-manager-… │ • authenticated HTTP route │
│ • settings page │ ◀────────────────── │ • workspaceRegistry │
└──────────────────────┘ JSON │ • sessionPersistence │
│ • archive → move to trash │
└─────────────────────────────┘
Third-party client bundles get no package RPC channel in DSH (the Remote
namespaces are fixed at build time), so the two halves talk over the plugin's
own HTTP route registered through ctx.webServer — the documented
route-owner pattern. Every request passes the same browser trust fence as the
shipped /api route (ctx.connection.requestRejection), so only an
authenticated DSH page can call it; the browser's signed cookie rides the
same-origin fetch automatically.
Deletion flow per session: refuse if live → archive through
workspaceRegistry.archiveSession (so the row leaves the sidebar's default
Hide archived view immediately) → rename the session directory into the
trash → drop the empty project directory. Workspace purge: refuse if any of
its sessions is live → workspaceRegistry.delete → move every session
directory of that path to the trash.
Install straight from this repository — a Git address is a valid plugin spec:
dsh plugin --profile web add https://github.com/mehdinikzad68/dsh-session-manager
or paste the same URL into the Web GUI's Plugins → Add plugin dialog. For a
local checkout, pass the package directory's path instead. The bundle is
enabled on install: profiles with patchReload: live mount it without a
restart, while startup-only profiles (such as the Desktop profile) need one
DSH restart.
$DSH_HOME/sessions (default ~/.dsh/sessions).
A profile that configures a different persistence root is not detected
(v0.1).restore recreates the directory (and unarchives if we archived it), but a
workspace whose registration was purged must be re-registered by opening
the folder again.Feature ideas on deck, roughly in order — several inspired by the community plugin dsh-session-manager by hkkz9522:
MIT © Mehdi Nikzad
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。