nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Long-Alex/dsh-session-menu-plus
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Three additions to the DeepSeek Harness sidebar Session list: a Session menu on right-click, a read/unread mark, and Session deletion behind a confirmation.
Mark as unread / Mark as read (first row in the menu) flips a mark for that Session: unread rows carry the same green done state dot DSH uses for its own row states, in the row's leading status cell.Export as Markdown (download icon, right after Copy Session ID) and Delete session (danger colour, trash icon, with a separator above it).Export as Markdown downloads session-<uuid>.md and reports Session exported.Delete session asks first: Delete this session?, the Session title, and Cancel / Delete session.Session deleted on success, or one of "still running", "no longer exists", "delete failed".api-session/removed makes the Client drop the row immediately.dsh plugin add dsh-session-menu-plus # from the npm registry
dsh plugin add /path/to/dsh-session-menu-plus # or straight from a checkout
The Harness plugin manager can also install either one. Restart Harness afterwards — Client modules are loaded as a bundle.
One row, one output: a transcript meant to be read.
# <title>, the cwd / model / preset essentials, then ---.## Turn N · <time> section per turn, holding only the prose blocks: **User**, **Assistant**.<details> so long output cannot bury the conversation; arguments and results are each clipped to 4000 characters._No result was recorded._ instead of inventing one.Preconditions:
sessions.flush, so even a running Session exports everything committed up to that moment.sessionPersistence.open(id, 'read') — the same bytes the backend stores; the projection cache is not used.text/markdown.MenuItemButton that closes the menu and requests the export. No submenu: the Session menu opens with closeOnPointerLeave, so a card floating beside it takes the parent away as soon as the pointer moves in, and an absolutely positioned card inside the menu gets clipped by the menu surface.sidebar.workspaces.session.menu.item injects a MenuItemButton (danger colour, trash icon, separator). Selecting it opens a Modal; confirming sends POST /session-menu-plus/delete; both outcomes use the shared Toast. No bespoke dialog, no edited built-in components.MenuItemButton in the menu list; the dot is one component in sidebar.session.row.leading — the 16px cell DSH already gives its own row-state marks (the schedule plugin's clock mark sits there too) — and it is the shared StateDot primitive at state="done", so colour and geometry are the platform's, not ours. The cell only offers itself while the row's primary state is idle, so the dot never competes with a running or pending indicator. Marks live in localStorage under dsh-session-menu-plus:unread and follow the storage event, so two windows agree; nothing is written to the Host.contextmenu gesture is forwarded to that row's own "⋯" trigger, so the menu, focus handling, outside dismissal and shortcuts stay the built-in ones.agents.get(id).status === 'running'.readHeader: live instance → sessionQuery.readSession → sessionPersistence.list.sessions.flush() then detachEntered, so nothing keeps appending to files that are about to disappear.sessionProjectionCache.delete(id).workspaceRegistry.unarchiveSession(id) plus detachSession(id) on every workspace.sessionPersistence.locate(header) gives the transcript path; delete the whole directory when only backend files remain (transcript plus session.lock), otherwise just the transcript.spillStore directory.headers/sessionPaths/missingSessionPaths/invalidSessionPaths) so a stale list cannot re-materialise the row.emit('api-session/removed'); the Client refreshes its Session list.ctx.get(); a missing one degrades to a skipped step rather than a hard dependency. webServer and connection come from ctx.inject.completionUnread chip (that one is runtime-only and has no setter) and it does not sync across machines. Showing that Session clears its own mark — opening a different one leaves it alone — so only Mark as unread ever needs a second gesture.sessionIds / archivedSessionIds / pinnedSessionIds from workspace.json: the platform exposes no removal API for them. A leftover entry is not rendered and has no effect.verification/ holds screenshots from real runs: the right-click menu, the confirmation, the success notice with the row gone, and the refusal when deleting the row that is open.
tests/delete-route.test.js covers the delete route's success / in-use / missing / malformed branches:
node --test tests/ CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session-management。