Repository navigation
Releases
Releases · dsh-pulse/dsh-hermes-bridge
v0.2.0
0.2.0 (2026-08-24)
feat(M3) — 断线自动恢复 + 夜间托管 / crash recovery + overnight hosting
- 任务队列 JSONL 持久化(
~/.dsh/hermes-bridge/tasks.jsonl,config.queueFile可改),每次状态变更追加落盘,崩溃最多丢最后一行。 - 启动时自动恢复:
queued续跑;running(重启中断)带原sessionId重新入队 →ctx.agents.resume续接会话继续;runCount超maxRuns(默认 2)判失败防重启循环;done/failed 仅保留供查询,文件按内存态重写(有界)。 - 配合 dsh 服务器 systemd
Restart=always:晚上布置的任务,夜里服务器重启后队列自动接着跑,完成即推微信。 - 新配置:
queueFile/maxRuns/recoverOnStart;GET /v1/tasks/:id返回runCount。 - 版本号:
/v1/health与启动日志暴露version(单一来源 package.json)。 - Durable JSONL task queue (path configurable), crash-tolerant append; startup auto-recovery resumes interrupted
runningtasks via their originalsessionId(ctx.agents.resume), guards restart loops withmaxRuns, rewrites the file to match memory on boot. Works with the dsh server's systemd auto-restart to keep overnight tasks running through restarts. Version surfaced in/v1/healthand the boot log.
test
- 纳入 M0/M1/M2 隔离测试(含 Node 18 全局 Web Crypto 垫片),新增
npm test脚本与 GitHub Actions 测试工作流。 - M0/M1/M2 isolated tests (Node 18 global Web Crypto shim),
npm testscript, GitHub Actions test workflow. - 修复测试对本机 hermes 路径的依赖:改用假 hermes stub(延迟失败),重试断言在 CI 上确定成立。
- Fix the tests' dependence on a machine-local hermes path: a fake hermes stub (delayed failure) makes the retry assertion deterministic on CI.
- 修复 M0/M1 测试写生产队列文件:改用临时队列路径 + 关闭恢复。
- M0/M1 tests use a temp queue path and disable recovery so they never touch the production
~/.dsh/hermes-bridge/tasks.jsonl.
v0.1.0
0.1.0 (2026-08-18)
feat(M0) — 出站推送最小闭环 / outbound push minimum loop
POST /v1/notify+GET /v1/health,Bearer 认证,hermes send零 shell 推送,token/凭据脱敏。- Outbound notify + health endpoints, bearer auth, zero-shell
hermes sendpush, credential redaction.
feat(M1) — 入站调度 + 会话复用 / inbound dispatch + session reuse
POST /v1/tasks入站、任务队列、状态机(queued/running/done/failed)、按 cwd 常驻会话池、resume 接管指定会话、cwd 白名单、ctx.jobs登记(Web UI 可见)。- Inbound task dispatch, task queue with state machine, per-cwd persistent session pool, resume takeover, cwd whitelist,
ctx.jobsregistration.
fix(M1)
- agent 任务真实执行修复 + 状态推送增强。
- Real agent task execution fix + richer status pushback.
chore(M2) — npm 包化 / npm packaging
- scoped 包名
@dsh-pulse/dsh-hermes-bridge、README/DEVELOPMENT 双语、publishConfig.access=public、MIT license。 - Scoped package name, bilingual README/DEVELOPMENT, public publish config, MIT license.