@debugg-ai/debugg-ai-mcp 3.9.0 → 3.9.1
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.
|
@@ -591,10 +591,24 @@ async function testPageChangesHandlerInner(input, context, rawProgressCallback)
|
|
|
591
591
|
});
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
// Evaluation:
|
|
594
|
+
// Evaluation: RELAY the backend's block; derive one only for older backends.
|
|
595
|
+
//
|
|
596
|
+
// The backend computes `evaluation` from the SAME verdict as the headline
|
|
597
|
+
// outcome (sentinal-sk5sl.1) precisely so one payload cannot say
|
|
598
|
+
// outcome='inconclusive' at the top and evaluation.outcome='unknown'
|
|
599
|
+
// underneath. Rebuilding it here from raw subworkflow node output
|
|
600
|
+
// reintroduced that contradiction client-side, and worse: the node's
|
|
601
|
+
// `success` is a bare boolean, so "could not determine" arrived as
|
|
602
|
+
// passed:false. The backend deliberately sends passed:null for
|
|
603
|
+
// inconclusive — an undetermined run is not a failed one.
|
|
604
|
+
//
|
|
605
|
+
// Deriving from nodes stays ONLY as the pre-contract fallback.
|
|
595
606
|
const evalNode = nodes.find(n => n.nodeType === 'brain.evaluate');
|
|
596
607
|
let evaluation;
|
|
597
|
-
if (
|
|
608
|
+
if (finalExecution.evaluation && typeof finalExecution.evaluation === 'object') {
|
|
609
|
+
evaluation = finalExecution.evaluation;
|
|
610
|
+
}
|
|
611
|
+
else if (evalNode?.outputData) {
|
|
598
612
|
evaluation = {
|
|
599
613
|
passed: evalNode.outputData.passed,
|
|
600
614
|
outcome: evalNode.outputData.outcome,
|