nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ajsney764-blip/dsh-session-batch
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (DSH) plugin that adds a sidebar panel for deleting the chat records of many conversations at once, optionally together with the files each conversation produced, and that reports an honest session status: actually running versus merely kept in host memory.
Deletion is permanent. Nothing goes to a recycle bin.
The harness ships archive, not delete: the persistence seam deliberately offers no removal API, so session logs accumulate under $DSH_HOME/sessions forever. And its sidebar cannot tell you why a conversation looks "in use" — a session that was merely opened once stays in host memory for the life of the process, which no page refresh clears.
Artifact attribution — working out which workspace files a conversation actually produced — is a separate, much harder problem, and dsh-session-artifacts already solves it well (create-only evidence, per-command time windows, cross-session uniqueness, DSH-home and package fences). This plugin does not re-implement any of that. When that plugin is installed, this one delegates to its exported functions verbatim.
Running (a turn, owned jobs, subagents or scheduled reminders are active, read from the harness' own workspace/session-activity waterfall) versus In memory (the host still holds the Session object; refreshing will not change it, restarting the app will).0.2.x with the connection, sessionQuery and workspaceRegistry services (every shipped web composition has them).dsh-session-artifacts >= 0.7.0 for artifact removal. Without it the artifact checkbox is hidden and only chat records are deleted.# from npm (once published)
dsh plugin --profile <profile> add dsh-session-batch
# from a local checkout
dsh plugin --profile <profile> add <absolute-path-to-this-repo>
Then fully restart DSH: host-side code is only loaded at startup.
The Desktop shell owns its profile exclusively, so dsh plugin refuses to touch it. scripts/install-when-closed.ps1 performs the swap while the app is closed and verifies the result:
# fully quit DeepSeek Harness first
pwsh -ExecutionPolicy Bypass -File scripts/install-when-closed.ps1 -WaitForExit
It edits the profile manifest, runs the bundled pnpm, force-syncs the runtime files, checks their SHA-256 against the source, and restarts the app. scripts/rollback-when-closed.ps1 reverts to the manifest it backed up.
stop work ─► detach workspace ─► remove artifacts ─► remove logs ─► drop cache ─► tombstone
(official seams) (companion plugin) (verified) (best effort)
workspace/session-activity is asked whether the session does work; if it does, workspace/session-stop is invoked and the answer is polled for up to 8 seconds. Still busy? The purge is refused and nothing is touched.dsh-session-artifacts; the union is deduped by path.rm, so the removal is re-checked on disk and retried up to four times. Whatever still comes back is queued in $DSH_HOME/session-batch/pending.json and retried on the next start — files by path, since by then the log is gone.$DSH_HOME/session-batch/removed.json and hidden from the panel until the host genuinely forgets them. If the host still lists an id, the panel says so instead of pretending the deletion failed./, \, . or .. are rejected; one request handles at most 200 sessions.| Resource | this plugin | dsh-session-artifacts |
|---|---|---|
| Sidebar panel | sidebar.panellist id session-batch, main key session-batch |
none |
| Session row menu | unused | sidebar.workspaces.session.menu.item id dsh-session-artifacts.delete |
| Host services | connection, sessionQuery, workspaceRegistry |
webServer, sessionPersistence, agents |
No slot or service is contested, so both can be installed together. The only overlap is that both can remove a session record; whichever runs first wins and the other finds nothing to do.
present without creating them).$DSH_HOME.These are dsh-session-artifacts' rules, inherited by delegation, and they are deliberate: a conversation that handed you a file you already owned must not make that file disposable.
npm test # both suites, no dependencies required
npm run test:host # route-level behaviour against stub services
npm run test:client # render-level behaviour against a miniature React
Both suites run with nothing but Node: the host suite points $DSH_HOME at a temporary directory and stubs the harness services, while the client suite supplies a tiny React implementation plus a stub fetch and drives real render passes. Neither needs DSH installed, which is why CI can run them on Linux and Windows.
See docs/architecture.md for the design and invariants, and docs/self-review.md for the defect log from the review pass that produced 0.2.1.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。