mirror of
https://github.com/hansjone/dsh-ops-cron.git
synced 2026-10-12 00:23:18 +08:00
Initial commit: scheduled tasks plugin for DeepSeek Harness
Sidebar jobs under New Session, isolated run history, cron/at schedules, and model-facing cron_* tools.
This commit is contained in:
commit
ef8ff6e10d
22 changed files with 5711 additions and 0 deletions
32
README.md
Normal file
32
README.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# dsh-cron-tasks
|
||||
|
||||
DeepSeek Harness 插件:**定时任务**。
|
||||
|
||||
- 左侧侧边栏 **「新会话」按钮正下方** 的 **「定时任务」** 入口:查看、创建、暂停/恢复、删除、立即运行
|
||||
- **设置 → 插件 → 插件配置** 里的调度策略(启用、默认时区、历史保留、重叠/漏跑)
|
||||
- 到点后 **新开 root Session** 跑自包含提示词;运行会话 **不出现在工作区列表**,只留在 **定时任务历史**
|
||||
|
||||
产品契约见 [docs/PRD.md](docs/PRD.md)。本轮实现经验见 [docs/NOTES.md](docs/NOTES.md)。
|
||||
|
||||
## 行为
|
||||
|
||||
- 日程:一次性 `at`(ISO 8601)或循环 5 字段 cron,IANA 时区
|
||||
- 重叠:同一任务已有 `queued`/`running` 则记 `skipped`,不开第二场
|
||||
- 漏跑:Host 宕机期间错过的节拍 **不补跑**(不是 OS daemon)
|
||||
- 提示词按不可信内容包裹,消息来源是 `plugin`,不伪装成人手输入
|
||||
|
||||
## 安装
|
||||
|
||||
```sh
|
||||
# 拷到运行时目录后再 file: 安装(不要用 link:)
|
||||
dsh plugin --profile web add file:$HOME/.dsh/plugins/dsh-cron-tasks
|
||||
dsh plugin --profile desktop add file:$HOME/.dsh/plugins/dsh-cron-tasks
|
||||
```
|
||||
|
||||
改 bundle 后 **重启** 对应 profile。`dsh --profile web --dump-config` 应能看到 `id: dsh-cron-tasks`。
|
||||
|
||||
## 开发
|
||||
|
||||
```sh
|
||||
node --test test/*.test.js
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue