Skip to content

Releases: nixuejun888/dsh-plugin-session-delete

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 16 Oct 07:07

Full Changelog: v0.2.0...v0.2.1

v0.2.0 — first public release

Choose a tag to compare

@nixuejun888 nixuejun888 released this 16 Oct 06:57

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.