dsh-sleep-send
Manifest valid★ 4DSH Web Scheduled Send plugin: provides a "Scheduled Send" button and configuration panel to the right of the input box, supporting smart time slots, custom date and time, and multiple scheduled tasks. Tasks are persisted via localStorage and automatically restored after a page refresh.
dsh-sleep-send
DSH Web 的定时发送 Cordis 客户端插件:在输入框右侧提供「定时发送」按钮与配置面板,支持智能时段、自定义日期时间、多个定时任务,并通过 localStorage 持久化任务,刷新页面后自动恢复。
🕐 "sleep-send" —— 把消息"睡"到合适的时刻再发送:默认只在 12:00–14:00 与 18:00–次日 08:00 这类得体时段内自动挑最近的时间发出,也可以完全自定义日期与时刻。
功能
- 输入框右侧按钮:
conversation.input.right槽位,紧挨发送按钮;空草稿禁用、输入后激活。 - 智能时段(默认):在
12:00 – 14:00、18:00 – 次日 08:00两个时段内自动选取最近的可发送时间(当前时间 + 2 分钟起;不在时段内则取下一时段起点)。 - 自定义日期时间:时间选择器 + 日期快捷(今天 / 明天 / 后天)+ 原生日期选择器(过去日期不可选);已过时间自动顺延一天;发送时间按具体日期显示(如
8月19日 周三 12:00)。 - 多个定时任务:确认后追加任务并清空输入框(输入框恢复自由,可连续排队多条);弹窗内可查看 / 逐个删除已设定任务;工具行芯片显示任务数徽标 + 下次发送时间 + 实时倒计时。
- localStorage 持久化(
dsh.sched-send.v1):任务与自定义偏好刷新后自动恢复;恢复时未到期任务保留、15 分钟内过期的自动补发、更早的过期任务丢弃。 - 防误覆盖:到点发送前若输入框内容已被修改,自动取消本次发送而不是覆盖新内容。
- 无障碍与性能:全部可交互元素带
:focus-visible焦点环;动画遵循prefers-reduced-motion;脉冲动画仅使用 transform/opacity。
截图
| 工具行按钮与武装芯片 | 配置弹窗(智能时段) | 配置弹窗(自定义日期时间) |
|---|---|---|
![]() | ![]() | ![]() |
截图为清新天蓝主题;替换
docs/screenshots/下同名文件即可更新。
安装
已发布到 npm,一条命令安装到你的 web profile:
dsh plugin --profile web add dsh-sleep-send
- 本地开发安装:
dsh plugin --profile web add file:D:\projects\github\sleep-send - 或直接通过 git:
dsh plugin --profile web add github:Awu12277/dsh-sleep-send - 安装后重启
dsh web生效;卸载:dsh plugin --profile web remove dsh-sleep-send
也可以作为普通库安装(源码 / 集成参考):
npm install dsh-sleep-send
包结构(DSH web 插件协议):
dsh-sleep-send/
├── index.js # host 侧 cordis 插件骨架(纯 client 插件,无 host 逻辑)
├── client.js # 浏览器端:window.__ModuleLoader__.load({ id, factory })
├── cordis.patch.yml # bundle patch:注册 dsh-sleep-send 条目
└── package.json # dsh.bundle.patch + dsh.client.platform: "web"
运行环境
- DSH Web(DeepSeek Harness 的浏览器界面)。client bundle 运行于浏览器页面:
require("react")获取 React;apply(ctx)中的ctx为 client root context;- 通过
ctx.get("slots")访问conversation.input.right与conversation.input.overlay槽位; - 调度定时器优先使用 cordis
timer服务,缺失时自动降级为浏览器定时器; - 任务与偏好持久化在
localStorage['dsh.sched-send.v1'],刷新页面后自动恢复。
- 纯 ESM、零运行时依赖、无需构建。
使用
- 在输入框输入消息;
- 点击输入框右侧的 ⏰ 定时(或 ⚙ 配置)打开配置面板;
- 选择 智能时段 或 自定义时间(含日期快捷 / 日期选择器);
- 点击 加入 · HH:MM 发送 —— 任务加入列表,输入框自动清空,可继续输入下一条并排队;
- 工具行芯片显示最近任务时间与实时倒计时;点击 ✕ 取消全部任务;
- 到点后消息自动发送;等待期间若修改了输入框内容,该任务自动取消(不会覆盖新输入)。
持久化与恢复
- 存储键:
localStorage['dsh.sched-send.v1'],内容为{ mode, custom, schedules }; - 每次任务增删 / 到期发送后即时写回;
- 页面刷新并重新激活插件后,自动认领本会话的持久化任务:
- 未到期任务保留并继续倒计时;
- 15 分钟内过期的任务立即补发;
- 更早的过期任务丢弃(避免刷新后补发陈旧消息)。
数据与隐私
- 所有任务仅保存在当前浏览器的
localStorage中,不上传任何服务器; - 更换浏览器 / 无痕窗口 / 清除站点数据会丢失任务。
开发
npm test # node --check src/index.js
License
Compatibility
Versions
| Latest version | Published | Size |
|---|---|---|
| 1.0.0 | — | — |
| 1.1.0 | — | — |
| 1.2.0 | — | — |
| 1.2.1 | — | — |
| 1.2.2 | — | — |
| 1.2.3 | — | — |
Comments
Loading…
Similar plugins
by 1250589385
DSH 快捷发送插件:在输入框下方、上下文进度旁提供可自定义的快捷指令按钮,一键把预设文字直接发送到当前对话,省去重复打字;每条指令的名称、字号、透明度、模块化形状与发送内容均可就地编辑,右键按钮组可拖动换位置。修复上下文进度与累计使用区域被挤压后无法点击的问题。
★ 0
MIT
JavaScript
Oct 23, 2026
dsh plugin --profile web add dsh-quick-sendby lnyuqian
DSH Web 插件:输入框快捷输入(闪电笔),权限切换旁一键选预设提示词直接发送,提示词可增删改并持久化到项目根目录
★ 0
↓ 41/wk
MIT
JavaScript
Oct 17, 2026
dsh plugin --profile web add dsh-quick-promptsby 534119219
DSH 定时任务插件:侧栏「定时任务」入口,cron 定时执行 shell / python / node 脚本、Skill 与 Agent 任务;支持 chicheng-push 与 messaging-core 推送通知、会话归档、移动端适配。
★ 7
MIT
JavaScript
Aug 26, 2026
dsh plugin --profile web add chicheng-cronby WestFox-AwA
DSH Web 插件:在输入框按回车时,先由『传话 AI』把你的话改写成一条可直接发给工作 AI 的命令——档位/权限/上下文可调,并按任务难度自行决定编排强度,确认后再发送
★ 109
BSD-3-Clause
JavaScript
Oct 17, 2026
dsh plugin --profile web add @dsh-external/dsh-prompt-optimizerby masknull
DSH 事件通知插件:AI 回合完成、权限申请、提问、出错、开始运行等 5 种场景发生时,向 Webhook 发送自定义 HTTP 通知,支持 GET/POST、预设字段/自定义文本、type+type_cn、发送日志
★ 0
MIT
JavaScript
Sep 25, 2026
dsh plugin --profile web add dsh-webhook-notifierby WuJiaoJue
In-session scheduled messages on top of the dsh-schedule engine: an input-bar timer panel with smart time slots, a pending-send dock with per-item cancel and inline edit, a /later command that sends w
★ 2
↓ 396/wk
MIT
JavaScript
Sep 23, 2026
dsh plugin --profile web add dsh-later

