Repository navigation
v0.2.0 — first public release
First public release.
DSH ships no session-deletion API (dsh-session-persistence is append-only and the workspace registry can only archive), so this plugin deletes out-of-band: it archives the session first — the only supported way to make the sidebar row disappear immediately — then moves the session log and its projection cache into a recoverable trash directory, or purges them when you tick 「永久删除」.
Host half — /dsh-session-delete-api (fail-closed auth through connection.admit) plus a dsh_delete_conversation tool; deletion refuses invalid ids, the current session, sessions with live activity (workspace/session-activity waterfall) and concurrent deletes of the same session, and every attempt is appended to an audit journal.
Client half — a hand-written window.__ModuleLoader__ bundle (no build step) adding 删除对话 to the session ... menu and a themed confirm dialog with a permanent-delete option.
Tests — npm test runs the host (88 checks) and client (51 checks) suites with no dependencies; test/e2e-real.mjs is an opt-in reversible end-to-end run against a real session store. CI covers Linux and Windows.
Install by cloning and linking into your DSH profile — not published to npm. Requires DSH 0.2.0-rc.2, and a full DSH restart after installing: both halves load only at startup.