← 返回列表
D

@qing3a/dsh-event-auditor

v0.1.0 · 4 天前发布

Harness 事件流审计面板:观察事件类型、分发模式、计数与最近事件,帮助插件作者理解 harness 内部发生了什么

dshdeepseek-harnessdsh-pluginpluginauditeventsharness

README

dsh-event-auditor

Harness 事件流审计面板:观察事件类型、分发模式、计数与最近事件,帮助插件作者理解 DeepSeek Harness 内部发生了什么。

状态:✅ 已在本地 DSH 源码环境验证运行(2026-08-14)。v0.3:settings 热改 + headless dump + waterfall 运行时捕获实证(74 事件/12 waterfall 全部捕获,mock-llm 方案)。

功能

  • 监听 22 个 harness emit 事件(agent 生命周期 / 会话 / 工具 / subagent / 配置)

  • v0.2:监听 10 个 waterfall 事件(tools/execute、approval/request、fs/write-intent、llm/stream 等,观察性透传 next())

  • v0.3:settings 面板热改(installSettingsSection,实时开关分组无需重启)、headless dump(DSH_EVENT_AUDIT_DUMP

  • 按事件名与分发模式计数,环形缓冲保留最近 500 条

  • /audit 面板(纯静态页)+ /api/audit/events JSON 接口(支持 ?since= 增量)

  • 分组开关(agent/session/tools/subagent/config/waterfall;config 默认关闭)
  • 安装

    ```bash

    开发模式(需 Node >= 22 + pnpm)


    git clone https://github.com/your-handle/dsh-event-auditor.git
    cd dsh-event-auditor && p

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

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

    元数据

    License
    MIT
    npm
    @qing3a/dsh-event-auditor
    Repo
    git+https://github.com/qing3a/dsh-event-auditor.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}