uluckystar/dsh-schedule-tasks

uluckystar★ 2TypeScript最后同步: 2026-08-14

在 GitHub 打开

DSH 定时任务插件:标准 cron 5 段式调度 + shell/通知触发动作 + Web 侧边栏管理面板。by MyDSH 社区 (mydsh.dev)

README 摘要

dsh-schedule-tasks 定时任务插件 为 DeepSeek Harness(DSH)Web GUI 提供 标准 cron 调度 + 任务管理面板 的外部插件: - 调度 :自研 5 段式 cron 解析(分 时 日 月 周)+ ctx.timer 调度循环(base bundle 已装 cordis-plugin-timer ),本地时间语义。 - 触发动作(第一版) : - shell :在宿主机器上执行一条 shell 命令( /bin/sh -c ,可配超时与工作目录,输出截断记录)。 - notify :站内通知(记录一条通知型执行日志,面板可见)。 - 持久化 :storage-domain 域 schedule tasks (storage-json → $DSH HOME/storages/ ,原子写,崩溃安全)。 - UI :Web 侧边栏底部(Settings 旁) sidebar.footer.action 槽按钮 + 浮层面板,支持任务列表(名称/cron/状态/下次触发/上次结果)、新建/编辑/启停/删除/手动触发/执行日志(每任务环形缓冲)。 - 通信 :宿主 ScheduleTasksGateway extends TypertRemoteService ( scheduleTasks Remote 命名空间);浏览器端手写 strict-codec 贡献经 ctx.remote.$mount 挂载; 第一版 UI 轮询(面板打开时每 5s) ,不改仓库事件白名单。 目录结构 环境要求 - Node ≥ 22、pnpm ≥ 10。 - @deepseek-ai/ 包不发布到公共 registry(pre-release), 开发期构建 需要 DSH 源码 checkout(默认 /Volumes/aigo/work/deepseek-harness ,可用环境变量 DSH CHECKOUT 覆盖)。构建工具链(tsdown/typescript/lightningcss/react/zod) 来自公共 registry。 构建命令 产物: lib/index.js (host 入口,default export 服务类)、 lib/client.js (浏览器 CJS closure-factory: window. ModuleLoader .load({ id: "dsh-schedule-tasks", ... }) ,react 等走模块表 external,zod 已内联)、 lib/types/ (类型声明)。 安装到 profile(加载说明) dsh plugin add 把包 pnpm 装入 profile 并对账进 dsh.profile.bundles 层; cordis.patch.yml 的…

在 GitHub 查看完整 README →
皮肤/UIdsh-pluginsidebar

分类