DeepSHPlugins
dsh-plugin-automations 项目预览
GITHUB / COMMUNITY PROJECT

dsh-plugin-automations

Agent 与自动化TypeScriptMIT

设置页定时任务:支持准点或 DeepSeek 谷时段执行、单次/每日重复,并持久化任务状态。

3 StarsSev7een 更新时间 2026-09-08
访问 GitHub 仓库
dsh-plugin-automations 项目预览

项目介绍

中文

设置页定时任务:支持准点或 DeepSeek 谷时段执行、单次/每日重复,并持久化任务状态。

English

Settings-based scheduled tasks that run on time or during DeepSeek off-peak hours, with one-time and daily schedules backed by durable task state.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
Sev7een
仓库
Sev7een/dsh-plugin-automations
GitHub Stars
3
Forks
1
开发语言
TypeScript
许可证
MIT
最近推送
2026-09-08
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

67/ 100
维护活跃
99
文档与实用信息
100
生态关注度
25
安装便捷信号
100
项目声明信号
100

近 3 天仍在更新;README 含完整安装与使用说明;关注度尚低(3)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:Sev7een/dsh-plugin-automations

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

English | 简体中文

dsh-plugin-automations

Scheduled tasks for the DeepSeek Harness Web Profile: run once or on a standard six-field Cron schedule, either on time or during DeepSeek off-peak hours.

Features

  • Settings-page form and task list with 5-second polling.
  • Two execution modes: on time and when idle (valley hours).
  • Two schedule types: once and standard six-field Cron expressions. Cron is evaluated in the host's local timezone.
  • when_idle runs outside Beijing peak hours (09:00-12:00 and 14:00-18:00) and automatically defers to the next valley window.
  • Optional Session title templates support all task fields and Moment-style datetime formats, for example Daily Feed · {{scheduledAt:YYYY-MM-DD}}.
  • Durable task state through ctx.storageDomain.
  • One serialized scheduler pump persists running before launching the runner.
  • Each occurrence uses an ordinary isolated Session with the default Agent preset, model, and Host workspace root.
  • Fixed 30-minute execution timeout and explicit host_interrupted recovery.
  • Strict JSON API validation, request-size limits, same-origin checks, and a custom mutation header.
  • Automated messages use { kind: 'plugin', plugin: 'dsh-plugin-automations' } and never impersonate direct human input.

The full behavioral contract is documented in SDD.zh-CN.md.

Installation

dsh plugin add (recommended)

Install into the Web profile and restart DSH after installation.

From GitHub
dsh plugin --profile web add github:Sev7een/dsh-plugin-automations
From npm

Once the package is published to npm:

dsh plugin --profile web add dsh-plugin-automations

If you run DSH through npx, use the equivalent command:

npx @deepseek-ai/dsh plugin --profile web add github:Sev7een/dsh-plugin-automations

Verify the composed profile and restart the Web app:

dsh --profile web --dump-config
dsh web

Then open Settings → 定时任务 (Scheduled Tasks).

Local checkout (development)

git clone https://github.com/Sev7een/dsh-plugin-automations.git
dsh plugin --profile web add ./dsh-plugin-automations

Remove

dsh plugin --profile web remove dsh-plugin-automations

Usage

Execution modes

ModeBehavior
on_timeCreates an isolated DSH Session and starts as soon as the task is due.
when_idleRuns only outside Beijing peak hours; a task due during peak hours waits for the next valley window.

Schedule types

ScheduleBehavior
onceReaches a terminal state and does not run again.
cronAfter each terminal occurrence, computes the next matching occurrence. A failed occurrence is not retried.

HTTP API

  • POST /dsh-scheduled-tasks/api/v1/tasks
  • Content-Type: application/json
  • X-DSH-Scheduled-Tasks: 1
  • Body: { prompt, schedule, mode, sessionTitleTemplate? }
  • GET /dsh-scheduled-tasks/api/v1/tasks
curl -X POST http://127.0.0.1:3080/dsh-scheduled-tasks/api/v1/tasks \
  -H 'Content-Type: application/json' \
  -H 'X-DSH-Scheduled-Tasks: 1' \
  -d '{
    "prompt": "check project tests",
    "schedule": { "type": "cron", "expression": "0 0 8 * * *" },
    "mode": "on_time",
    "sessionTitleTemplate": "Daily Feed · {{scheduledAt:YYYY-MM-DD}}"
  }'

The MVP has no edit, delete, pause, cancel, retry, or pagination endpoints.

Development

npm install --legacy-peer-deps
npm run check
npm test
npm run build
npm pack --dry-run

--legacy-peer-deps is currently needed for local development because the published @deepseek-ai/dsh-storage-domain package still carries an older peer range than the current DSH Web bundle.

License

MIT

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目