Sev7een/dsh-plugin-automations ↗★ 1
dsh-plugin-automations
On-time and valley-hour (off-peak) scheduled tasks with daily repeat for the DeepSeek Harness Web profile.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Sev7een/dsh-plugin-automations说明文档
阅读完整 README ↗dsh-plugin-automations
为 DeepSeek Harness Web Profile 提供定时任务:支持准点执行、只在 DeepSeek 谷时段执行的“空闲执行”,以及每天重复执行。
功能特性
- 设置页“定时任务”表单与任务列表,每 5 秒轮询一次。
- 两种执行方式:准点执行和空闲执行(谷时段)。
- 两种重复方式:仅一次和每天执行。
when_idle仅在北京时间高峰09:00-12:00、14:00-18:00之外执行;高峰期内自动顺延至下一个谷时段。- 每天执行保持相同的本地墙钟时间,正确处理跨月和夏令时变化。
- 使用
ctx.storageDomain持久化任务状态。 - 单一串行 Scheduler pump,先持久化
running再启动 Runner。 - 每次执行使用独立 Session,并继承默认 Agent preset、模型和 Host workspace root。
- 固定 30 分钟执行超时,并在启动时明确恢复
host_interrupted任务。 - 严格校验 JSON、请求大小、同源 Origin 和自定义 mutation header。
- 自动化消息标记为
{ kind: 'plugin', plugin: 'dsh-plugin-automations' },不伪装成直接人类输入。
完整行为契约见 SDD.zh-CN.md。
安装
dsh plugin add(推荐)
将插件安装到 Web profile,安装后重启 DSH。
从 GitHub 安装
dsh plugin --profile web add github:Sev7een/dsh-plugin-automations
从 npm 安装
软件包发布到 npm 后使用:
dsh plugin --profile web add dsh-plugin-automations
如果通过 npx 运行 DSH,请使用:
npx @deepseek-ai/dsh plugin --profile web add github:Sev7een/dsh-plugin-automations
检查组合配置并重新启动 Web 应用:
dsh --profile web --dump-config
dsh web
启动后进入 设置 → 定时任务。
从本地源码安装(开发)
git clone https://github.com/Sev7een/dsh-plugin-automations.git
dsh plugin --profile web add ./dsh-plugin-automations
卸载
dsh plugin --profile web remove dsh-plugin-automations