YiHarvest/dsh-failure-capsule ↗★ 7
dsh-failure-capsule
为会话生成本地优先的失败证据压缩包 适合需要捕获工具错误、Git 状态或运行异常以进行调试分析的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YiHarvest/dsh-failure-capsule說明文件
閱讀完整 README ↗使用当前插件
这个 bundle 是常驻观察型插件:安装、按需配置,然后使用普通解压和文本工具检查生成的 ZIP。
# 验证最终组合配置
dsh --profile web --dump-config
## 配置
在后续 profile patch 中用相同 id 覆盖 bundle row:
```yaml
- id: failure-capsule
name: dsh-failure-capsule
config:
outputDir: .dsh/failure-capsules
maxEvents: 80
maxGitBytes: 524288
captureGit: true
capturePlugins: true
triggerOnToolError: true
triggerOnTurnFailure: true
triggerOnAborted: false
triggerOnAgentError: true
resolveSourceMaps: true
maxSourceMapBytes: 4194304
| 字段 | 默认值 | 接受范围 |
|---|---|---|
outputDir | .dsh/failure-capsules | 非空相对或绝对路径,不得包含 NUL |
maxEvents | 80 | 1..10000 的整数 |
maxGitBytes | 524288 | 1024..16777216 的整数 |
captureGit | true | 布尔值 |
capturePlugins | true | 布尔值 |
triggerOnToolError | true | 布尔值 |
triggerOnTurnFailure | true | 布尔值 |
triggerOnAborted | false | 布尔值 |
triggerOnAgentError | true | 布尔值 |
resolveSourceMaps | true | 布尔值 |
maxSourceMapBytes | 4194304 | 1024..67108864 的整数 |
无效配置会让插件加载失败,不会静默改变行为。