synthesisui 0.16.148 → 0.16.150
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/commands/doctor.js +10 -0
- package/dist/repo-state.js +3 -0
- package/package.json +1 -1
package/dist/commands/doctor.js
CHANGED
|
@@ -672,10 +672,20 @@ export async function doctor(opts) {
|
|
|
672
672
|
* today the honest answer was that nobody knew.
|
|
673
673
|
*/
|
|
674
674
|
if (hasSystem && measurable && scopes.length === 0) {
|
|
675
|
+
/**
|
|
676
|
+
* E A CONTAGEM DE COINCIDÊNCIAS VAI JUNTO - ver `crossFamily` em `scan.ts`.
|
|
677
|
+
*
|
|
678
|
+
* É a única classe de bug NOSSO que a plataforma não tinha como ver: ela nasce no casamento entre
|
|
679
|
+
* um valor dele e o nome de um token nosso, então só a máquina dele mede. Zero também é resposta -
|
|
680
|
+
* a biblioteca dele deu 0 de 76 no mesmo dia em que o app deu 14 de 129.
|
|
681
|
+
*/
|
|
682
|
+
const crossFamily = d.findings.filter((f) => f.crossFamily).length;
|
|
675
683
|
await appendEvent(root, {
|
|
676
684
|
kind: "doctor",
|
|
677
685
|
at: new Date().toISOString(),
|
|
678
686
|
coverage: d.coverage,
|
|
687
|
+
named: d.named,
|
|
688
|
+
...(crossFamily > 0 ? { crossFamily } : {}),
|
|
679
689
|
});
|
|
680
690
|
}
|
|
681
691
|
if (hasSystem && scopes.length === 0) {
|
package/dist/repo-state.js
CHANGED
|
@@ -50,6 +50,9 @@ export async function repoStateOf(projectRoot, slug, cli) {
|
|
|
50
50
|
...(typeof doctor?.phantoms === "number"
|
|
51
51
|
? { drifts: doctor.phantoms }
|
|
52
52
|
: {}),
|
|
53
|
+
...(typeof doctor?.crossFamily === "number"
|
|
54
|
+
? { crossFamily: doctor.crossFamily }
|
|
55
|
+
: {}),
|
|
53
56
|
};
|
|
54
57
|
/** Só o `cli` não é estado: sem nada do repo, não há o que reportar. */
|
|
55
58
|
return Object.keys(payload).length > 1 ? payload : null;
|
package/package.json
CHANGED