跳过主要内容
6

dsh-starlong (dsh-disk-cleanup)

6starlong/dsh-starlong/packages/dsh-disk-cleanup

将 Shell 临时文件移出工作区,并补齐对临时目录的写入权限,通过系统提示词说明临时文件落点,再按保留天数清理过期的临时文件和无主附件。它的 HTTP 路由没有 DSH 的访问检查,浏览器里打开的网页可以调用它们。

安装

dsh plugin --profile web add github:6starlong/dsh-starlong

该插件位于仓库的 packages/dsh-disk-cleanup 子路径下。

README

dsh-starlong

npm

Starlong 的 DSH 固执己见套件:一个插件,多个可独立开关的模块。

Install

dsh plugin --profile <profile> add dsh-starlong

安装后重启 DSH 生效。

Structure

dsh-starlong/
├─ cordis.patch.yml      # 插件行,插入 profile
├─ lib/
│  ├─ index.js           # 入口,装配模块
│  ├─ index.d.ts
│  ├─ config.js          # 设置页 schema
│  ├─ client.js          # 客户端注入
│  ├─ core/              # 模块共享代码
│  └─ modules/           # 功能模块
├─ locale/
├─ test/
└─ README.md

Modules

模块作用
dsh-disk-cleanupshell 临时目录注入、scratch 授权、系统提示与过期清理
session-manager会话管理:闲置会话自动归档、自动删除;会话右键永久删除,并联清理直系孤儿子代理
mnemon-patch运行时补丁:mnemon 后台会话的日志落到独立项目目录并固定 1 天保留期,不改第三方包文件

配置写在 profile 的 dsh-starlong 条目下,各模块用自己的键;未列字段走默认值:

- id: dsh-starlong
  name: 'dsh-starlong'
  config:
    dsh-disk-cleanup:
      enabled: true
    session-manager:
      enabled: true

License

MIT

相关插件