6
dsh-plugins (dsh-disk-cleanup)
6starlong/dsh-plugins/packages/dsh-disk-cleanup
将 Shell 临时文件移出工作区,并补齐对临时目录的写入权限,通过系统提示词说明临时文件落点,再按保留天数清理过期的临时文件和无主附件。
安装
dsh plugin --profile web add github:6starlong/dsh-plugins该插件位于仓库的 packages/dsh-disk-cleanup 子路径下。
README
@6starlong/dsh-plugins
Starlong 的 DSH 插件套件:一个插件,多个可独立开关的模块。
Install
dsh plugin --profile <profile> add @6starlong/dsh-plugins
安装后重启 DSH 生效。
Structure
dsh-plugins/
├─ cordis.patch.yml # 插件行,插入 profile
├─ lib/
│ ├─ index.js # 入口,装配模块
│ ├─ index.d.ts
│ ├─ config.js # 设置页 schema
│ ├─ client.js # 客户端注入
│ ├─ core/ # 模块共享代码
│ └─ modules/ # 功能模块
├─ locale/
├─ test/
└─ README.md
Modules
| 模块 | 作用 |
|---|---|
| @6starlong/dsh-disk-cleanup | shell 临时目录注入、scratch 授权、系统提示与过期清理 |
| session-manager | 会话管理:闲置会话自动归档、自动删除;会话右键永久删除,并联清理直系孤儿子代理 |
| mnemon-patch | 运行时补丁:mnemon 后台会话的日志落到独立项目目录并固定 1 天保留期,不改第三方包文件 |
配置写在 profile 的 dsh-plugins 条目下,各模块用自己的键;未列字段走默认值:
- id: dsh-plugins
name: '@6starlong/dsh-plugins'
config:
dsh-disk-cleanup:
enabled: true
session-manager:
enabled: true