nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Hyna-hla/DSH-DELETE
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Recoverable conversation deletion for DeepSeek Harness: adds a Delete conversation item to the session row … menu and registers the /delete-conversation human command. After confirmation the target Session enters a deletion queue and is immediately hidden from the list through the Workspace persisted archive projection; on the next DSH startup the plugin validates the Session's full lifecycle before the Web Workspace builds its session index, then atomically moves its log directory into a recoverable trash.
Derived from omdsh-dev/dsh-essential (MIT, Copyright (c) 2026 ExDragine). This repository renames the package / Remote IDs / UI class names to
dsh-deleteand adds astateDirdefault (~/.dsh/conversation-trash) so marketplace one-click installs need no manual config.
DSH's Session persistence is append-only and the public services expose no delete method; an active Agent's destroy handle belongs to its creator only. The plugin cannot safely move logs out from under an active writer. Deletion therefore happens in two phases: the running process only writes a durable request and hides the row immediately; the next startup completes the log move before any session recovery. This boundary avoids log rebuilds, partial writes, and lifecycle races.
This repository ships built artifacts (lib/), so marketplace one-click install needs no build and no config:
DSH-DELETE, click Installnode /path/to/DSH/apps/cli/lib/bin.js plugin --profile web add /path/to/DSH-DELETE
Restart DSH afterwards. The bundle mounts dsh-delete and makes the Web Workspace wait for the conversationDeletion service to finish startup recovery before building the Session index.
- insert:
- id: dsh-delete
name: dsh-delete
config:
stateDir: /absolute/path/to/conversation-trash
- id: workspace
inject: [conversationDeletion]
stateDir must be absolute and outside Session artifact directories; it defaults to ~/.dsh/conversation-trash.
… menu in the session list and choose Delete conversation. Confirmation is an in-page card (title "Confirm deleting this conversation?", actions "Cancel / Delete conversation") — no native browser dialogs./delete-conversation CONFIRM (deletes the current conversation); /delete-conversation <session-id> CONFIRM (deletes another conversation by Session id).After confirming, restart DSH; logs are moved to <stateDir>/trash/<session-lifecycle-key>/. deletion.json inside records the original directory.
Stop DSH, delete the deletion.json inside the recovery directory, then move that directory back to originalDirectory. Do not recover while DSH is running.
| Field | Type | Default | Description |
|---|---|---|---|
stateDir |
string | ~/.dsh/conversation-trash |
Directory holding pending requests and the recoverable trash; must be absolute and outside Session artifact directories |
commandName |
string | delete-conversation |
Optional human-command alias (no leading /); the menu always uses the stable /delete-conversation |
CONFIRM; nothing is written without it.sessionId, createdAt, and cwd; a reused id will not delete a new Session lifecycle.rename, never unlink of Session logs; post-move crashes are recoverable.Requires Node ^22.19.0 || >=24.0.0 (tsdown needs Promise.withResolvers). On Windows keep the Node 22+ used for building first in PATH:
pnpm install
pnpm add -D -w unrun # optional peer of tsdown; must be explicit when autoInstallPeers=false
pnpm run build
pnpm run verify:self-contained
pnpm run typecheck
pnpm test
MIT. Original copyright belongs to dsh-essential (Copyright (c) 2026 ExDragine); see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session-management。