nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:4wgtty4zm7-a11y/dsh-session-recycle-tools
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Adds two entries to the DeepSeek Harness web sidebar, stacked above the settings row at the bottom left:
☑ Batch delete <- this plugin
🗑 Recycle bin <- this plugin
⚙ Settings <- the host's own row
The sidebar's built-in archive writes workspaces.archivedSessionIds and shares one "archived" view. This plugin does
not touch it: the two coexist and neither knows about the other.
| Host archive | This recycle bin | |
|---|---|---|
| Recorded in | archivedSessionIds in the workspace record |
the plugin's own list in localStorage (dsh-session-tools.trash.v1) |
| Hiding | the host filters the row | the plugin wraps uiWorkspace.isSessionVisible; only ids in its own list return false |
| Restore | unarchive through the host | delete the id from the list; the session is back immediately |
| Relationship | unaware of the recycle bin | calls the host's original filter unchanged, then intersects it with its own set |
How client.js does it:
apply() resolves ctx.get('uiWorkspace') and replaces isSessionVisible with
(id) => trash.has(id) ? false : original(id), restoring the original in the ctx.effect cleanup. Whatever the host
already filtered (a workbench session filter, for example) still runs through original(id) with the same meaning.uiWorkspace.sessionVisibility is bumped so the sidebar tree recomputes its rows.uiWorkspace.deleteSession(), the same path as "permanently delete session" in the session context menu.Known cost: the list lives in the browser's localStorage for the current origin (http://127.0.0.1:<port>). Clearing
site data or switching ports empties the recycle bin; the only consequence is that those sessions reappear in the list,
and no content is lost.
The host half is a single loader row whose only job is to let dsh-client-modules see this package's dsh.client
declaration and serve client.js to the page. The plugin registers no host service, route, or tool, so the model cannot
see it.
.
|- package.json # dsh.bundle.patch + dsh.client { platform: 'web' }
|- cordis.patch.yml # one insert line: - id: dsh-session-recycle-tools
|- lib/index.js # host half: an empty apply()
|- client.js # the two buttons and the two dialogs
|- screenshots.json # 1-8 storefront screenshots
|- assets/icon-180.png # 180x180 storefront tile
Host capabilities client.js relies on:
| Purpose | Source |
|---|---|
| Session summaries | ctx.get('sessions').list (ids / byId, including running) |
| Workspace grouping | ctx.get('workspaces').list (items[].sessionIds) |
| Hide and restore | wrap uiWorkspace.isSessionVisible and bump uiWorkspace.sessionVisibility |
| Permanent delete | uiWorkspace.deleteSession() |
| The recycle-bin list | the plugin's own localStorage key |
| Registration | sidebar.footer.action (a list slot, one row above sidebar.settings); dialogs use shell.overlay |
| Icons, buttons, checkboxes, dialog | @deepseek-ai/dsh-client-ui-primitives |
| Entry | Dialog | What it does |
|---|---|---|
| Batch delete | every session, grouped by workspace, with a search box | check sessions (whole group or all), then move them into the recycle bin, which is the only action here |
| Recycle bin | sessions in the list, grouped by workspace, newest first | restore one or all; permanently delete one or empty the bin |
Both dialogs are 1240px wide and follow the application body text: 20px title, 16px description, 16px session title, 14px timestamps and paths, 15px buttons.
dsh plugin --profile web add github:4wgtty4zm7-a11y/dsh-session-recycle-tools
Then restart the running DSH web service. No host tool, route, or configuration is added.
Requires a DSH build that serves client plugins through dsh-client-modules and exposes uiWorkspace with
isSessionVisible, sessionVisibility, and deleteSession. If isSessionVisible is missing, the plugin still records
the list and says so in the dialog rather than hiding anything silently.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。