其他
完整应用
deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
检查 DSH 更新的插件,提供更新日志、自动备份功能。
latest 和 next dist-tag# 从本地目录安装
dsh plugin add ./dsh-check-update
# 或者发布到 npm 后安装
dsh plugin add dsh-check-update
在 cordis.patch.yml 中配置:
- insert:
- id: check-update
name: dsh-check-update
config:
# 基础配置
distTag: latest
checkOnStart: true
checkIntervalMinutes: 240
autoStage: true
applyOnExit: true
relaunch: false
# 新增配置
showChangelog: true
autoBackup: true
backupKeepCount: 5
updateMode: auto-download
latest dist-tagnext dist-tag| 选项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
distTag |
string | latest |
npm dist-tag |
checkOnStart |
boolean | true |
启动时检查更新 |
checkIntervalMinutes |
number | 240 |
检查间隔(分钟) |
autoStage |
boolean | true |
自动暂存更新 |
applyOnExit |
boolean | true |
退出时应用更新 |
relaunch |
boolean | false |
更新后自动重启 |
showChangelog |
boolean | true |
显示更新日志 |
autoBackup |
boolean | true |
自动备份 |
backupKeepCount |
number | 5 |
保留备份数量 |
updateMode |
string | auto-download |
更新模式:auto-download(自动下载+自动应用)/ auto-download-manual(自动下载+手动应用)/ manual(手动下载+应用) |
dsh-check-update/
├── lib/
│ ├── index.js # 主插件逻辑
│ ├── updater.js # 更新核心逻辑
│ ├── backup.js # 备份管理模块
│ ├── modes.js # 更新模式定义与行为映射(auto-download / auto-download-manual / manual)
│ ├── settings.js # 用户设置(版本通道/更新模式)持久化
│ └── client.js # 客户端界面
├── test/
│ └── modes.test.js # 更新模式与设置持久化单元测试
├── bin/
│ └── apply-update.js # 更新应用脚本
├── cordis.patch.yml # Cordis 配置文件
├── package.json # 包配置
└── README.md # 本文档
@deepseek-ai/cordis: ^4.0.1@deepseek-ai/schemastery: ^3.18.1npm test
欢迎提交 Issue 和 Pull Request!
MIT License
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。