Pular para o conteúdo principal
6

dsh-starlong (dsh-disk-cleanup)

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

Moves Shell temporary files out of the workspace, grants write access to the temp directory, explains where temporary files go via the system prompt, and cleans up expired temporary files and orphaned attachments on a schedule. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Instalar

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

Este plugin está no subdiretório packages/dsh-disk-cleanup do repositório.

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

Plugins relacionados