kumanana66/dsh-automation0

dsh-automation

RPA-style scheduled web automation for DeepSeek Harness: record browser operations, turn them into a requirements doc, let the LLM generate Python + Playwright code, then schedule execution with run records and email notifications.

包名
dsh-automation
版本
0.1.0
最近更新
2026年9月1日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kumanana66/dsh-automation

使用流程

  1. 打开 Harness Web UI(默认 http://127.0.0.1:3080)→ 设置 → 自动化任务
  2. 点「新建自动化任务」:
    • 方式 A:录制操作 — 输入起始网址点「开始录制」,会弹出一个可见的 Chrome 窗口,你在里面正常操作(点击/输入/翻页),每一步自动截图。按 F9 或点浮动「停止录制」按钮结束,然后点「生成需求文档」。
    • 方式 B:手动写需求 — 跳过录制直接编写需求文档。
  3. 微调需求文档(可编辑)。
  4. 点「生成自动化代码」→ LLM 生成 Python + Playwright 脚本(可编辑)。
  5. 运行配置:下载/获取内容的保存目录、运行记录存储目录、通知邮箱。
  6. 触发器:cron(如 0 9 * * * 每天 9 点)/ 间隔 / 一次性 / 仅手动。
  7. 保存。任务到点自动执行;每次运行生成一份 .md 运行记录,可选 SMTP 邮件通知。

配置

  • LLM:复用 harness 的 ctx.llm(provider 如 deepseek-official / ali),不单独消耗 API key;留空自动选择。
  • Python:生成脚本用 python 配置的执行(默认 D:\Anaconda3\python.exe),需 pip install playwrightplaywright install chromium
  • 邮件:SMTP 配置(host/port/账号/授权码)+ 收件邮箱。agent-mail MCP 适配器可后续接入(代码中 notifier.notify 是唯一出口)。