插件目录 / UI & Skins / dsh-event-auditor
dsh-event-auditor
已验证 · 实测可装 qing3a
功能简介
DeepSeek Harness 事件流审计面板插件:观察事件类型/分发模式/计数/最近事件,帮助插件作者理解 harness 内部
可用 — 实测通过,早期项目
DeepSeek Harness 事件流审计面板插件:观察事件类型/分发模式/计数/最近事件,帮助插件作者理解 harness 内部 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
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/eventsJSON 接口(支持?since=增量)- 分组开关(agent/session/tools/subagent/config/waterfall;config 默认关闭)
安装
# 生产安装(npm,agent 可直接执行)
dsh plugin --profile <profile> add @qing3a/dsh-event-auditor
dsh --profile <profile>
# 打开 http://localhost:<port>/audit
# 开发模式(需 Node >= 22 + pnpm)
git clone https://github.com/qing3a/dsh-event-auditor.git
cd dsh-event-auditor && pnpm install && pnpm build
cd <path-to-deepseek-harness>
dsh plugin --profile <profile> add link:$(pwd)/dsh-event-auditor
卸载
dsh plugin --profile <profile> remove @qing3a/dsh-event-auditor
配置
| 键 | 默认 | 说明 |
|---|---|---|
enabled |
true |
总开关 |
bufferSize |
500 |
环形缓冲上限 |
truncateAt |
4096 |
单条参数序列化上限(字节) |
groups.agent/session/tools/subagent |
true |
分组开关 |
groups.config |
false |
配置类事件默认关闭 |
groups.waterfall |
true |
waterfall 事件观察(v0.2) |
事件来源
事件清单与声明位置:docs/event-producer-consumer.zh.md(仓库生成内容)。
waterfall 事件(tools/execute、approval/request 等)v0.2 已启用,签名逐条从源码确认(next 均无参),观察性透传 next()。
许可
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-event-auditor」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:qing3a/dsh-event-auditor Headless(CLI)profile:
dsh plugin --profile headless add github:qing3a/dsh-event-auditor 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
改变 dsh 的外观或交互方式——一套主题、皮肤或新面板,重塑工作区。
适合谁
在 web UI 里一待几小时、想让它按自己的习惯好看又好用的人。
二次开发建议
皮肤、面板和主题 token 是扩展点——写新皮肤、加面板,或与上游配色同步 token。