@orangepro/orangepro-mcp 0.2.10 → 0.2.11
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.
package/dist/local/score/risk.js
CHANGED
|
@@ -24,6 +24,17 @@ function confirmedBehaviorIds(graph) {
|
|
|
24
24
|
if (nodeKinds.get(e.to_external_id) === "CodeSymbol" || nodeKinds.get(e.to_external_id) === "Requirement")
|
|
25
25
|
ids.add(e.to_external_id);
|
|
26
26
|
}
|
|
27
|
+
// A container type whose every method child is confirmed has no distinct
|
|
28
|
+
// untested surface left — suppress it from the gap ranking rather than
|
|
29
|
+
// listing it as an unlinked candidate above its own proven methods.
|
|
30
|
+
const symbolIds = graph.nodes.filter((n) => n.kind === "CodeSymbol").map((n) => n.external_id);
|
|
31
|
+
for (const id of symbolIds) {
|
|
32
|
+
if (ids.has(id))
|
|
33
|
+
continue;
|
|
34
|
+
const children = symbolIds.filter((s) => s.startsWith(id + "."));
|
|
35
|
+
if (children.length > 0 && children.every((c) => ids.has(c)))
|
|
36
|
+
ids.add(id);
|
|
37
|
+
}
|
|
27
38
|
return ids;
|
|
28
39
|
}
|
|
29
40
|
const GIT_CHURN_BATCH = 200;
|
|
@@ -409,7 +409,7 @@ function riskGeneratedTests(graph, gap, riskIds, isFirstRowForFile) {
|
|
|
409
409
|
// the assertion line stays pure metadata (framework, same-file, disclosure).
|
|
410
410
|
assertion: [
|
|
411
411
|
sameFile ? "same-file target" : "",
|
|
412
|
-
t.framework_hint,
|
|
412
|
+
t.framework_hint || (gap.file.endsWith(".go") ? "go" : ""),
|
|
413
413
|
t.weak_evidence_used ? "weak evidence disclosed" : ""
|
|
414
414
|
]
|
|
415
415
|
.filter(Boolean)
|
|
@@ -826,7 +826,7 @@ function riskRows(risks, graph) {
|
|
|
826
826
|
].filter((c) => Boolean(c)))];
|
|
827
827
|
return {
|
|
828
828
|
generatedTests,
|
|
829
|
-
applicableCategories: riskApplicableConcerns(risk, verb),
|
|
829
|
+
applicableCategories: [...new Set([...riskApplicableConcerns(risk, verb), ...generatedCategories])],
|
|
830
830
|
generatedCategories,
|
|
831
831
|
verb,
|
|
832
832
|
path,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangepro/orangepro-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OrangePro (`opro`) — a local-first, BYOK CLI + MCP server that builds an evidence graph from a local checkout, ingests runtime coverage, and generates grounded tests. Metadata-only exports; no source upload; generated tests stay local.",
|
|
6
6
|
"license": "MIT",
|