Alyosha28/dsh-plugin-updater0

@dsh-external/dsh-plugin-updater

DSH 插件更新中心,支持自动追踪插件版本、比对 npm/GitHub 最新版、一键下载校验、热重启及定期自动检查通知。

AI 分析

核心用途是实现 DSH 插件的自动化版本管理与热更新。适合需要便捷维护大量插件、保持系统最新状态的用户。支持 GitHub Token 配置以避免 API 限流。

套件
@dsh-external/dsh-plugin-updater
版本
0.1.0
授權
BSD-3-Clause
最近更新
2026年8月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Alyosha28/dsh-plugin-updater

配置

字段默认说明
checkIntervalMs21600000(6h)自动检查间隔(≥60s)
notifyNewUpdatestrue发现新更新时写站内通知
allowCoreUpdatesfalse允许更新 DSH 托管核心包(危险)
profileDir自动探测可更新范围 = 该 profile 的 node_modules
githubTokenGitHub token(env GITHUB_TOKEN 亦可用,且不落盘)
fetchTimeoutMs30000单个请求超时

配置持久化于 /storages/dsh-plugin-updater/config.json;通知与 已通知版本记录同目录。