a179-sanae/dsh-code-check ↗★ 1
@a179-sanae/dsh-code-check
DeepSeek Harness 自动类型检查与 Linter 诊断插件:在模型编辑代码后,后台运行 tsc 并通过工具报告错误。
AI 分析
核心用途是自动检测模型修改代码后引入的错误。适合使用 DSH 进行代码编写与重构的开发者,能及时发现类型或语法中断。依赖本地 tsc 环境。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:a179-sanae/dsh-code-check说明文档
阅读完整 README ↗配置
全部可选,默认值如下:
| Key | 默认值 | 含义 |
|---|---|---|
enabled | true | 后台监听总开关。 |
debounceMs | 800 | 最后一次编辑后的防抖窗口(毫秒)。 |
triggerTools | ['edit', 'write'] | 触发检查的工具 actor 名单。 |
includeExtensions | ['.ts', '.tsx', '.mts', '.cts'] | 触发检查的文件扩展名。 |
maxDiagnostics | 120 | 单份报告最多展示的诊断数。 |
tscTimeoutMs | 60000 | 单次 tsc 超时。 |
extraArgs | ['--incremental'] | tsc --noEmit -p 之后的附加参数。 |
cacheCap | 200 | 缓存项目上限(最久未检查的先淘汰)。 |
通过 profile patch 层覆盖,例如: