← 返回列表
D

dsh-tool-app-verify

v0.1.0 · 3 天前发布

DSH plugin: browser & Electron UI operation and verification — actions, assertions, and visual regression testing.

dsh-plugindeepseek-harnessbrowserelectrontestingvisual-regressionplaywright

README

dsh-tool-app-verify



DSH 插件:Browser & Electron UI 操作与验证——让 Agent 像 QA 一样驱动应用并断言行为。

功能



Action 工具(操作应用):
  • app_launch — 启动浏览器或 Electron 应用

  • app_click — 点击元素

  • app_type — 输入文本

  • app_navigate — 导航(goto/back/forward/reload)

  • app_close — 关闭会话


  • Assert 工具(验证行为):
  • app_verify — 断言元素状态(存在/可见/文本/属性)

  • app_screenshot — 截图(可保存为基线)

  • app_screenshot_diff — 视觉回归:对比当前截图与基线,返回差异百分比和高亮图

  • app_accessibility — 获取 accessibility tree 快照


  • 安装



    bash
    
    dsh plugin add dsh-tool-app-verify


    配置



    ```yaml
  • id: app-verify

  • plugin: dsh-tool-app-verify
    config:
    mode: browser # browser | electron
    headless: true
    timeout: 30000
    baselinePath: .app-verify/baselines
    diffThreshold: 0.1 # pixelmatch 容差
    viewport

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ❓ 未知 metadata 缺失
    dsh@0.1.0 ❓ 未知
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-tool-app-verify
    Repo
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {}