npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@all3cn/dsh-qa-suite-n23

v0.1.0

Published

DSH 质量套件插件:模型编辑 TS 源后自动 tsc --noEmit 诊断(code_check 工具)+ /code-review 多镜头本地代码审查命令(吸收自 a179-sanae/dsh-code-check 与 JasonFreeLab/dsh-command-code-review)

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。

测试

node --test tests/

归属

本插件吸收合并了两个上游项目,许可证与版权声明见 UPSTREAM.md、LICENSE、 THIRD-PARTY-NOTICES.md。