dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:stansz/dsh-session-delete
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Delete a DSH session completely, without taking the Host down with it.
A DSH session is not one file:
| Piece | Path |
|---|---|
Log directory (log + session.lock) |
$DSH_HOME/sessions/<encoded-cwd>/<session-id>/ |
| Projection checkpoint | $DSH_HOME/storages/session_projcache/sessions/<session-id>.json |
| Workspace row (this is the sidebar) | $DSH_HOME/storages/workspace.json |
Deleting the directory in Finder removes the first row and leaves the other two, which is why the session stays listed and then fails to open. Deleting a session whose Agent is still live is the other failure mode: the Agent keeps appending to a log directory that no longer exists.
Global contributions into existing services; nothing shipped is overridden.
session_admin (action: list | inspect | delete)/session-list — every stored session with the flags that decide deletability./session-delete <session-id> [force] — the same operation from the composer.All three call one implementation (deleteSession in index.js).
/session-list
/session-delete session-1a2b3c4d-... # refuses if live/locked
/session-delete session-1a2b3c4d-... force # cancels the turn, then deletes
Or ask the agent, or use the tool:
session_admin action="list"
session_admin action="inspect" sessionId="session-..."
session_admin action="delete" sessionId="session-..." dryRun=true
session_admin action="delete" sessionId="session-..." force=true
dryRun: true reports exactly which paths and rows would go, and whether the delete would
be blocked, without touching anything.
force: true. "Live" comes from
sessionController.list(); "lock-held" is decoded from session.lock and tested with
process.kill(pid, 0), so an Agent in another Host or terminal counts too.$DSH_HOME/sessions
before rmSync, so a bad store value can never delete something else. Buckets are
discovered by scanning for a directory named exactly the session id, never by
reconstructing the cwd encoding.undefined values is
omitted rather than sent.delete is registered as not concurrency-safe: two deletes must not interleave between
inspect and unlink.
None. The store root comes from DSH_HOME, then $DSH_PROFILE_DIR/../.., then ~/.dsh.
This package installs as a link:. The Desktop Host loads a bundled plugin's JavaScript
once and does not re-import a linked package's module generation on set_plugin
enable/disable — so an edit to index.js needs a DSH restart to take effect, even though
install_bundle reports application: applied.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。