tewip-ai 0.70.11 → 0.70.12
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/outlets/views/digest.js +17 -1
- package/package.json +1 -1
|
@@ -43,10 +43,26 @@ export function digestView(allItems, allSummaries, dataset) {
|
|
|
43
43
|
counts.set(i.diagnosis.category, (counts.get(i.diagnosis.category) ?? 0) + 1);
|
|
44
44
|
return [...counts.entries()].sort((a, b) => b[1] - a[1])[0]?.[0];
|
|
45
45
|
};
|
|
46
|
+
// Was there an earlier half to compare the later one against?
|
|
47
|
+
//
|
|
48
|
+
// The window is split at the median run time, and `half()` puts anything not strictly before the
|
|
49
|
+
// median into the later half - so with a single run the **earlier half is empty by construction**,
|
|
50
|
+
// no row can ever appear, and the digest said:
|
|
51
|
+
//
|
|
52
|
+
// Comparing 2026-09-16 to 2026-09-16 with 2026-09-16 to 2026-09-16, over all 1 runs.
|
|
53
|
+
// No area got noticeably worse.
|
|
54
|
+
//
|
|
55
|
+
// A window compared against itself, reported as reassurance. "Nothing got worse" and "nothing
|
|
56
|
+
// could have been shown to get worse" are different statements, and a lead reading a weekly note
|
|
57
|
+
// has no way to tell them apart. Found by running `note` on a one-run history.
|
|
58
|
+
const earlier = summaries.filter((s) => half(s.startedAt) === 0).length;
|
|
59
|
+
const comparable = earlier > 0 && summaries.length - earlier > 0;
|
|
46
60
|
const markdown = [
|
|
47
61
|
'# Risk digest',
|
|
48
62
|
'',
|
|
49
|
-
|
|
63
|
+
comparable
|
|
64
|
+
? `Comparing ${period(0)} with ${period(1)}, over ${scope}. ${rows.length === 0 ? 'No area got noticeably worse.' : `${rows.length} area(s) got worse.`}`
|
|
65
|
+
: `**Nothing to compare yet.** ${summaries.length === 1 ? 'One run is kept here' : `${summaries.length} run(s) are kept here, all at the same moment`}, so there is no earlier period to measure a later one against - this is not a report that nothing got worse. Keep a few more runs and ask again.`,
|
|
50
66
|
'',
|
|
51
67
|
sourceNote(dataset),
|
|
52
68
|
'',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tewip-ai",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.12",
|
|
4
4
|
"mcpName": "io.github.hmamut39/tewip",
|
|
5
5
|
"description": "Tewip finds why each failing test failed - real bug, flaky test, environment, test data or changed selector - for any stack, from the command line, CI, or your editor.",
|
|
6
6
|
"keywords": [
|