README来源: main@0bd85b2c
dsh-starlong
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-cleanup | shell 临时目录注入、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
还没有评论,来写第一条。