Bundle
@all3cn/dsh-qa-suite-n23
DSH 质量套件插件:模型编辑 TS 源后自动 tsc --noEmit 诊断(code_check 工具)+ /code-review 多镜头本地代码审查命令(吸收自 a179-sanae/dsh-code-check 与 JasonFreeLab/dsh-command-code-review)
- Source
- All3nCN
- License
- MIT
- Updated
- Updated 5 days ago
Readme
# @all3cn/dsh-qa-suite-n23 DSH 质量套件插件(host 侧,无 UI 半区)。一个包合并两份上游能力: ## 能力 ### 1. code_check 工具(自动类型检查) 吸收自 `a179-sanae/dsh-code-check`(BSD-3-Clause)。 - 监听 `fs/observed` 事件:模型经 `edit` / `write` 工具改动 `.ts` / `.tsx` / `.mts` / `.cts` 文件后触发。 - 按项目防抖(默认 800ms)后台运行 `node <tsc> --noEmit -p <tsconfig> --pretty false`: spawn 数组形态、无 shell 参与、显式超时(默认 60s)+ abort。 - 项目自动发现:自改动文件向上找最近的 `tsconfig.json`(跳过 node_modules); 首次使用时按调用方工作区扫描。 - 诊断缓存在内存(LRU,容量 cacheCap),模型随时调用 `code_check` 工具读取报告; 支持 `paths` 相对路径过滤与 `run: true` 强制重跑。 ### 2. /code-review 命令(多镜头本地代码审查) 吸收自 `JasonFreeLab/dsh-command-code-review`(MIT),PR / gh 回评模式已删除, 仅保留本地审查模式。 - `/code-review [审查请求] [--out <dir>]`:五镜头(dsh.md 合规 / bug 正确性 / 历史上下文 / 安全 / 注释合规)并行审查,去重后单代理打置信度(0-100)与 严重度(blocker/major/minor/nit),按阈值(默认 80)过滤后汇报。 - 报告落盘 `outDir`(默认 `reports/code-review`):Markdown 报告 + JSON sidecar。 - 空输入 = 审查当前未提交变更(git diff + git diff --cached)。 ## 配置(cordis.patch.yml) | 键 | 默认 | 说明 | |---|---|---| | `debounceMs` | `800` | 最后一次编辑后到 tsc 启动的防抖窗口(ms) | | `triggerTools` | `['edit','write']` | 触发检查的工具 actor 名 | | `tscTimeoutMs` | `60000` | 单次 tsc 超时(ms) | | `autoLenses` | `false` | 自适应镜头(按范围关键词自动加开 perf/security) | | `outDir` | `reports/code-review` | 审查报告输出目录 | 另支持(经 resolveConfig 默认值):`enabled`、`includeExtensions`、`maxDiagnostics`、 `extraArgs`、`cacheCap`、`threshold`、`lenses`。 ## 测试 ```bash node --test tests/ ``` ## 归属 本插件吸收合并了两个上游项目,许可证与版权声明见 `UPSTREAM.md`、`LICENSE`、 `THIRD-PARTY-NOTICES.md`。
Install
dsh plugin --profile web add github:All3nCN/dsh-qa-suite-N23#8f473567166944bf9ea94afaad294ced49034691
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install all3cn-dsh-qa-suite-n23 from the hub