メインコンテンツへスキップ
6

dsh-plugins (dsh-disk-cleanup)

6starlong/dsh-plugins/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.

インストール

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

このプラグインはリポジトリの packages/dsh-disk-cleanup サブディレクトリにあります。

README

@6starlong/dsh-plugins

npm

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-cleanupshell 临时目录注入、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

License

MIT

関連プラグイン