nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:The932/dsh-session-delete
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Adds the missing Delete session action to the DSH Web sidebar.
Each Session's "…" menu gains a red Delete session row (order 500, after archive). Choosing it opens a confirmation dialog; confirming permanently removes that Session's local data and drops the row from every connected page.
git clone https://github.com/The932/dsh-session-delete
dsh plugin --profile desktop add "link:<repo path>"
Or point the Harness Plugin Manager at the cloned directory (Add → install from
a local package directory) and enable the dsh-session-delete bundle. Restart
the Harness once after installation; then refresh the page if the row does not
appear immediately.
Requirements: the Web profile (dsh Desktop or a Web build) with the shipped
Session Controller, Workspace and Locale plugins — that is the default
composition. Developed and tested on Windows with the Desktop build.
| Data | Location |
|---|---|
| Session log | <sessionPersistence.root>/<project-encoding>/<sessionId>/ (the whole directory) |
| Cached view state | <DSH_HOME>/storages/session_projcache/sessions/<sessionId>.json[*] |
Nothing else is touched. Workspace ordering, pin and archive sets may keep the old id; they are id sets and simply skip an id with no Session.
api-session/removed relay, and the conversation panel is cleared when it
was showing that Session.POST /dsh-session-delete/api with {"sessionId": "..."}, same-origin, gated by
ctx.connection.requestRejection() (fails closed when the trust fence is
unavailable). Session ids are validated against
^[A-Za-z0-9][A-Za-z0-9._-]{0,199}$ before any path is built, and every removal
is confined to a <root>/<one-level>/<id> path.
node tests/core.test.mjs
node tests/host.test.mjs
core.test.mjs exercises the storage logic against temporary directories:
identity validation, directory discovery, selective removal, the projection
cache, the outside-the-root refusal, and the tombstone document. host.test.mjs
drives the real request handler through a fake Cordis context: the trust fence,
the request body, every refusal code, storage deletion, tombstone cleanup, the
deferred sweep on activation, and the forwarded removal event.
Run the files directly — node --test spawns child processes, which the
workspace sandbox blocks.
index.js — Host half: the authenticated endpoint and the deferred sweep.client.js — browser half: the menu row, the dialog, and the styles.core.js — path-safe storage operations, shared with the tests.cordis.patch.yml — the bundle patch that inserts the Host row.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session-management。