nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:liufeicc/dsh-session-delete
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Local DSH bundle: a Delete session row in the sidebar session menu that permanently removes one Session.
sidebar.workspaces.session.menu.item row (id: session-delete, order 500,
right after the shipped archive row) in every Session's "…" menu.shell.overlay confirmation dialog naming the Session, because the action is
irreversible.sessionDeleteUi Client service (ctx.provide), so another Client plugin
can ask for a deletion through this dialog instead of re-implementing it. The
first caller is dsh-split-workspaces, whose pane session dropdown puts one
delete button on every session row. The service is one method:
request({ sessionId, displayTitle, onDeleted }) — it returns false for a
request without a usable sessionId, and onDeleted(sessionId) runs after a
successful (or already-vanished) deletion, which is how the tiled panel releases
the panes that were pinned to that Session.sessionDelete/delete.$DSH_HOME/sessions/<project>/<session-id>/), then clears the derived state
that would keep listing it: the session_projcache file, the pin membership,
and the owning workspace's sessionIds accounting.handleSessionRemoved plus a baseline refresh).agent/pre-step gate reads the durable archive set — so
a queued wake, a goal round, or a schedule tick cannot append into the removed
log and resurrect it. That archival id is deliberately left behind as a
tombstone for exactly that reason; a Session with no live Agent is simply
unarchived instead.missing; the dialog treats that as
done and clears the stale row.sessionDeleteUi is notified after the Client
Session list has been told about the removal, and a callback that throws is
logged rather than failing the deletion: the log is already gone at that point,
so a callback error must not be reported as a failed delete.guarded: true in the Host outcome means the Session had a live
Agent, so archival protected the deletion; missing means no log was found.dsh-session-query-sqlite) drops the vanished log on its own
reconciliation.import @deepseek-ai/* packages: the profile
links this directory, Node resolves the linked package's real path, and the dsh
installation is not on that path. The Host half therefore writes the Typert
marker and typertRemote binding by hand (what @Remote(...) plus
TypertRemoteService normally produce) and registers the value with
ctx.provide; the Client half hand-writes the matching InvocationDescriptor
for ctx.remote.$mount.strict, and the Client Typert registry
additionally requires a strict codec to carry a create() schema factory. The
input codec therefore ships a permissive pass-through factory that nothing
re-validates — the Host operation checks its own input. Dropping create makes
the mount reject and the dialog report that deletion is not ready.index.js — the Host half: the deletion operation, its refusals, and the
hand-written Remote binding.client.js — the Client half: menu row, confirmation dialog, the
sessionDeleteUi service entry point, Remote mount.cordis.patch.yml — inserts the single Host row.locale/{en,zh}.json — Plugin Manager display metadata.icon.svg — Plugin Manager artwork.All three run offline against the installed Harness and use only temporary directories:
node test/delete-contract.mjs — the operation's own semantics against a fake
Context: the running refusal, the archival guard (and its tombstone) for a live
Agent, directory discovery, removal, cleanup steps, and the Remote
marker/binding shape.node test/client-mount.mjs — loads client.js through the browser module
loader, then validates the captured $mount contribution with the real
Client Typert registry and mounts it on the real Client Gateway (stubbed
transport), asserting that the namespace becomes visible to ctx.get and that
calls reach the wire as sessionDelete/delete with request.sessionId and
request.stopActivity. It includes a negative control proving the registry
rejects a strict codec without a schema factory. It also drives the
sessionDeleteUi service the way a sibling plugin does — refused empty request,
accepted real one, the dialog rendered from the store it wrote, its destructive
button pressed — and asserts the Host call and the onDeleted notification.node test/host-endpoint.mjs — drives the real Host Gateway's invoke()
against the real registry, so the hand-written SRC discovery path is exercised
for the plain, missing, refused-running, and stop-and-delete cases, and the
Session log directory is really removed.Each test skips its Harness-dependent checks (with the reason printed) when
@deepseek-ai/* cannot be resolved from $DSH_PROFILE_DIR.
A profile links this directory (link: in the profile's package.json). The
Client half is served from disk, so editing client.js is live after a page
reload. The Host half is a Node module imported once by the Loader, and since no
module roots are watched (hmr.config.root: []), editing index.js takes
effect only after the Harness process restarts — re-mounting the row re-runs
the cached module, it does not re-read the file.
This project is released under the MIT License. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session。