DiffSense CLI
mcp-name: io.github.GoldenSupremeSaltedFish/diffsense
定位:PR 阶段的变更风险守门人(Change Risk Gate),针对当前 diff 判断是否引入回归风险。设计目标:少告警、高精度、低延迟、结果可解释。
快速开始
| 场景 | 操作 |
|---|---|
| GitHub PR 审计 | 将 quickstart 中的 GitHub workflow 复制到目标仓库的 .github/workflows/diffsense.yml,提交并创建/更新 PR 即可触发审计。 |
| 本地 diff 审计 | 执行 pip install -e . 后,运行 diffsense replay <path-to-diff>。 |
完整步骤与可选配置见 docs/quickstart.md。所有用户文档与契约索引见 docs/README.md。
推荐配置(可选)
在仓库根目录添加 .diffsense.yaml 可启用 官方推荐配置,适用于大多数团队,无需逐项调参。
文档索引
| 文档 | 说明 |
|---|---|
| docs/README.md | 文档总索引(用户文档与契约列表) |
| quickstart.md | 快速开始:GitHub workflow 与本地审计步骤 |
| recommended-config.md | 官方推荐配置与默认行为承诺 |
| ignoring.md | 忽略规则与误报处理 |
| ci-cache.md | CI 缓存配置与使用 |
| rule-quickstart.md | 自定义规则开发入门(10 分钟上手) |
| signals.md | Signal 列表(规则只消费,不产生) |
| contribute-rules.md | 贡献审计规则(上游 vs 插件) |
10 分钟写一条规则: rule-quickstart.md · diffsense signals
开发与贡献
pip install -e ".[dev]"
pytest tests/ -v
详见 CONTRIBUTING.md。
Metadata
Release files for diffsense 2.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| diffsense-2.3.1.tar.gz | 127.5 kB | Without provenance | Details for diffsense-2.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| diffsense-2.3.1-py3-none-any.whl | Python 3 | none | any | Details for diffsense-2.3.1-py3-none-any.whl |
Total release size: 255.8 kB
Release files / diffsense-2.3.1.tar.gz
| Download URL | diffsense-2.3.1.tar.gz |
|---|---|
| Size | 127.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57db7ddbafe3988ce907ec569b4ac43c3933bde2e6ff91e5b6148fd0e8443fc1
|
|
BLAKE2b-256 checksum How to use checksums |
da1b1116793361091a32e777071b12f927eb1cce9f9f3b76c1cf395527b23ac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Release files / diffsense-2.3.1-py3-none-any.whl
| Download URL | diffsense-2.3.1-py3-none-any.whl |
|---|---|
| Size | 128.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28cb41b5844c448bfde856b2a4366fce93f18fc592d47325c447548737355c08
|
|
BLAKE2b-256 checksum How to use checksums |
2d99efa8cd2fa4d7124d21f70651fd8c7214b5286e961d9575b0a4cde2a732ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for diffsense 2.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.