@open-cr-agent/vcs-platform 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/render.js +9 -2
  2. package/package.json +2 -2
package/dist/render.js CHANGED
@@ -129,8 +129,15 @@ export function renderSummary({ report, commented, state, text, unattributed = 0
129
129
  lines.push(`- ${ICON[f.severity]} ${location(f)} **${safeMarkdown(f.title)}** _(${verification(f)}${f.lowConfidence ? ", low confidence" : ""})_: ${safeMarkdown(f.body.replaceAll("\n", " "))}`);
130
130
  }
131
131
  }
132
- if (report.remembered.length > 0) {
133
- lines.push("", `${report.remembered.length} finding(s) matched \`.ocra/memory.json\` and are not repeated.`);
132
+ const fromRepository = report.remembered.filter((e) => e.source === "repository").length;
133
+ const fromAccount = report.remembered.length - fromRepository;
134
+ if (fromRepository > 0) {
135
+ lines.push("", `${fromRepository} finding(s) matched \`.ocra/memory.json\` and are not repeated.`);
136
+ }
137
+ // The reviewer's own account memory can hide findings too; say so, so a
138
+ // suppression nobody on the team chose is visible (ADR-0028).
139
+ if (fromAccount > 0) {
140
+ lines.push("", `${fromAccount} finding(s) matched the reviewing account's ocra Cloud memory and are not repeated.`);
134
141
  }
135
142
  const rereview = report.rereview;
136
143
  if (rereview && rereview.fixed.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-cr-agent/vcs-platform",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "What Open-CR-Agent's code review platform adapters share: the review summary, its state, and who may command ocra",
5
5
  "keywords": [
6
6
  "code-review",
@@ -38,7 +38,7 @@
38
38
  "!dist/**/*.map"
39
39
  ],
40
40
  "dependencies": {
41
- "@open-cr-agent/core": "0.4.0",
41
+ "@open-cr-agent/core": "0.5.0",
42
42
  "zod": "^4.6.5"
43
43
  },
44
44
  "publishConfig": {