{"_id":"@all3cn/dsh-qa-suite","_rev":"3-d7e2918fddcad3f7b8ac78884b15d644","name":"@all3cn/dsh-qa-suite","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@all3cn/dsh-qa-suite","version":"0.1.0","license":"MIT","_id":"@all3cn/dsh-qa-suite@0.1.0","maintainers":[{"name":"y3ng","email":"157233893@qq.com"}],"dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dist":{"shasum":"cce89569c698c062ef736d4df9bddf18e19a6ec8","tarball":"https://registry.npmjs.org/@all3cn/dsh-qa-suite/-/dsh-qa-suite-0.1.0.tgz","fileCount":13,"integrity":"sha512-Iy3sovbVj/UftUi958tA6voRIR1ndYDJ7HIjOMH5QMxOLN3x/BMzblvO+HRYfe+QFq9K8Y+e8l6lnLR7tDGs5A==","signatures":[{"sig":"MEYCIQDwH240KPyV2OFmubW2LJfsYMRYNSApti0Y9q2BwBO70AIhAJy35QMF9W0FZc0XPjHWIKaHq6C0yUPap977cO2vmgl6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63559},"main":"index.js","type":"module","engines":{"node":">=20.3"},"exports":{".":"./index.js","./lib/core.js":"./lib/core.js","./package.json":"./package.json"},"gitHead":"f7d222950f162c4cc4b0adfd0d8a7e7087983c54","scripts":{"test":"node --test 'tests/*.test.mjs'"},"_npmUser":{"name":"y3ng","email":"157233893@qq.com"},"deprecated":"Renamed: use @all3cn/dsh-qa-suite-n23","_npmVersion":"11.16.0","description":"DSH 质量套件插件：模型编辑 TS 源后自动 tsc --noEmit 诊断（code_check 工具）+ /code-review 多镜头本地代码审查命令（吸收自 a179-sanae/dsh-code-check 与 JasonFreeLab/dsh-command-code-review）","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-llm":"^0.1.0-rc.6","@deepseek-ai/dsh-tools":"^0.1.0-rc.6","@deepseek-ai/dsh-commands":"^0.1.1-rc.2"},"_npmOperationalInternal":{"tmp":"tmp/dsh-qa-suite_0.1.0_1788278406641_0.3975765002849365","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-09-01T16:00:06.452Z","modified":"2026-09-01T16:50:56.591Z","0.1.0":"2026-09-01T16:00:06.774Z"},"license":"MIT","description":"DSH 质量套件插件：模型编辑 TS 源后自动 tsc --noEmit 诊断（code_check 工具）+ /code-review 多镜头本地代码审查命令（吸收自 a179-sanae/dsh-code-check 与 JasonFreeLab/dsh-command-code-review）","maintainers":[{"name":"y3ng","email":"157233893@qq.com"}],"readme":"# @all3cn/dsh-qa-suite\n\nDSH 质量套件插件（host 侧，无 UI 半区）。一个包合并两份上游能力：\n\n## 能力\n\n### 1. code_check 工具（自动类型检查）\n\n吸收自 `a179-sanae/dsh-code-check`（BSD-3-Clause）。\n\n- 监听 `fs/observed` 事件：模型经 `edit` / `write` 工具改动 `.ts` / `.tsx` / `.mts` / `.cts` 文件后触发。\n- 按项目防抖（默认 800ms）后台运行 `node <tsc> --noEmit -p <tsconfig> --pretty false`：\n  spawn 数组形态、无 shell 参与、显式超时（默认 60s）+ abort。\n- 项目自动发现：自改动文件向上找最近的 `tsconfig.json`（跳过 node_modules）；\n  首次使用时按调用方工作区扫描。\n- 诊断缓存在内存（LRU，容量 cacheCap），模型随时调用 `code_check` 工具读取报告；\n  支持 `paths` 相对路径过滤与 `run: true` 强制重跑。\n\n### 2. /code-review 命令（多镜头本地代码审查）\n\n吸收自 `JasonFreeLab/dsh-command-code-review`（MIT），PR / gh 回评模式已删除，\n仅保留本地审查模式。\n\n- `/code-review [审查请求] [--out <dir>]`：五镜头（dsh.md 合规 / bug 正确性 /\n  历史上下文 / 安全 / 注释合规）并行审查，去重后单代理打置信度（0-100）与\n  严重度（blocker/major/minor/nit），按阈值（默认 80）过滤后汇报。\n- 报告落盘 `outDir`（默认 `reports/code-review`）：Markdown 报告 + JSON sidecar。\n- 空输入 = 审查当前未提交变更（git diff + git diff --cached）。\n\n## 配置（cordis.patch.yml）\n\n| 键 | 默认 | 说明 |\n|---|---|---|\n| `debounceMs` | `800` | 最后一次编辑后到 tsc 启动的防抖窗口（ms） |\n| `triggerTools` | `['edit','write']` | 触发检查的工具 actor 名 |\n| `tscTimeoutMs` | `60000` | 单次 tsc 超时（ms） |\n| `autoLenses` | `false` | 自适应镜头（按范围关键词自动加开 perf/security） |\n| `outDir` | `reports/code-review` | 审查报告输出目录 |\n\n另支持（经 resolveConfig 默认值）：`enabled`、`includeExtensions`、`maxDiagnostics`、\n`extraArgs`、`cacheCap`、`threshold`、`lenses`。\n\n## 测试\n\n```bash\nnode --test tests/\n```\n\n## 归属\n\n本插件吸收合并了两个上游项目，许可证与版权声明见 `UPSTREAM.md`、`LICENSE`、\n`THIRD-PARTY-NOTICES.md`。\n","readmeFilename":"README.md"}