uluckystar/dsh-schedule-tasks

插件 ⭐ 2 automation

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

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

安装

schedule-tasks/
├── package.json            # dsh.bundle.patch + dsh.client(web) + exports[./client]
├── cordis.patch.yml        # 组合层补丁:insert schedule-tasks 插件行(含部署配置)
├── tsconfig.json           # host 编译(排除 src/client)
├── tsconfig.client.json    # client 编译(jsx: react-jsx)
├── tsdown.config.ts        # client bundle 构建(复刻仓库 tsdown.client.ts 协议)
├── src/
│   ├── index.ts            # host 入口:默认导出 ScheduleTasksGateway 服务类
│   ├── gateway.ts          # ScheduleTasksGateway:Remote + 调度循环 + shell/notify 执行器
│   ├── cron.ts             # cron 解析与下次触发计算(纯函数、零依赖)
│   ├── spec.ts             # storage-domain 域声明(zod schema)
│   ├── types.ts            # 共享类型(host/client 双 program,零 import)
│   └── client/
│       ├── index.tsx       # 浏览器入口:挂载 Remote 贡献 + 注册 sidebar.footer.action
│       ├── remote.ts       # 手写 scheduleTasks Remote 贡献(strict zod codec + 类型化命名空间)
│       ├── store.ts        # 任务列表快照源(single-flight 轮询读)
│       ├── face.ts         # 槽注入面(hooks + on* 回调)
│       ├── ScheduleTasksPanel.tsx / .module.css   # 面板组件(--dsw-* tokens)
│       └── locales.ts      # 中英文案 + LocaleNamespaceMap 声明
└── scripts/
    ├── link-dsh.mjs        # 开发期把 DSH checkout 包符号链接进 node_modules(类型解析)
    └── verify.mjs          # 离线冒烟验证(cron/schema/bundle/清单)

uluckystar/dsh-schedule-tasks 加入你的 DSH 配置(web profile)即可启用。

README

展开完整 README 收起

README 内容为空。