dsh-command-delete
其他 活跃维护

dsh-command-delete

wang122818/dsh-command-delete

该斜杠命令插件支持输入对应指令快速删除无效会话与工作区项目,操作逻辑简洁,直接适配主流协作指令体系,无需额外复杂配置,轻量无冗余依赖,开箱即用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
7 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:wang122818/dsh-command-delete
git clone https://github.com/wang122818/dsh-command-delete.git
git clone git@github.com:wang122818/dsh-command-delete.git
README.md main

dsh-command-delete

DSH commands for removing a project registration and deleting a persisted session.

Web UI

The Web bundle adds a trash icon in the sidebar footer. It opens a management panel with project and session lists. Every destructive action has a confirmation dialog.

Project deletion removes only the DSH workspace registration; the directory and session logs remain. Session deletion permanently removes the persisted session log and refuses live/open sessions.

Commands

/delete-project <workspaceId>
/delete-workspace <workspaceId>
/delete-session <sessionId>

/delete-workspace is an alias for /delete-project.

Project deletion uses DSH's workspace registry. It removes only the DSH project/workspace registration. The project directory and all session logs remain on disk.

Session deletion removes the persisted JSONL session directory. It refuses to remove a session that is still owned by a live Agent. The current DSH release does not expose a public session-delete lifecycle, so live/open sessions are intentionally not deleted by this plugin.

Install from this checkout

From the directory that contains this package:

dsh plugin --profile default add .

Use the profile name you normally run with instead of default when needed. Restart DSH after installing the bundle.

With no id, each command prints the available IDs:

/delete-project
/delete-session