skalpel 4.0.22 → 4.0.23

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/package.json +1 -1
  2. package/stats.mjs +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skalpel",
3
- "version": "4.0.22",
3
+ "version": "4.0.23",
4
4
  "description": "Behavioral graph for AI-assisted coding — learns how you work and steers Claude Code + Codex in real time.",
5
5
  "type": "module",
6
6
  "bin": {
package/stats.mjs CHANGED
@@ -63,9 +63,8 @@ for (const ev of Object.keys(counts)) {
63
63
  }
64
64
  const L = lat[ev] || [];
65
65
  if (L.length) {
66
- console.log(
67
- ` latency p50=${pct(L, 50)}ms p95=${pct(L, 95)}ms max=${Math.max(...L)}ms`,
68
- );
66
+ const maxMs = L.reduce((a, b) => (b > a ? b : a), -Infinity);
67
+ console.log(` latency p50=${pct(L, 50)}ms p95=${pct(L, 95)}ms max=${maxMs}ms`);
69
68
  }
70
69
  console.log(
71
70
  ` → inject rate ${((100 * ok) / n).toFixed(1)}% cold-abort rate ${((100 * cold) / n).toFixed(1)}%\n`,