确定性注释审查 harness(cmr),程序决定审什么、agent 负责推理: - 轻量状态机提取注释(Java/TS/JS/Vue/SQL/YAML/Shell/Python),过程性模式分级 P0/P1/P2/INFO - 分层规则(CLI/项目/用户/内置)、全库 scan 与 Git 增量 diff(工作区/分支/提交) - 悬空引用两级判定:确认失效 P0(附近似候选与查找依据)与待核实 P1(外部路径/构建产物/跨仓裸文件名) - testdata/corpus 56 条人工判定样例库 + 记分卡回归门禁;npm test 30/30
17 lines
548 B
JSON
17 lines
548 B
JSON
{
|
|
"name": "comment-review",
|
|
"version": "1.0.0",
|
|
"description": "Deterministic comment-review harness. Extracts comments, detects process-narration pollution (dates, versions, review history, attribution), and emits a review spec for host agents. Architecture modeled on alibaba/open-code-review delegation mode: the program decides WHAT to review, the agent reasons.",
|
|
"bin": {
|
|
"cmr": "bin/cmr.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"test": "node --test"
|
|
}
|
|
}
|