blackbrake 0.1.0 → 0.1.2

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.
@@ -48,7 +48,7 @@ function parseArgs(argv) {
48
48
  }
49
49
 
50
50
  const plural = (n, one, many = `${one}s`) => `${n.toLocaleString('en-US')} ${n === 1 ? one : many}`;
51
- const fmtBytes = (b) => (b > 1e6 ? `${(b / 1e6).toFixed(0)} MB` : `${Math.max(1, Math.round(b / 1e3))} KB`);
51
+ const fmtBytes = (b) => (b > 1e6 ? `${(b / 1e6).toFixed(0)} MB` : b >= 1e3 ? `${Math.round(b / 1e3)} KB` : `${b} B`);
52
52
  const usd = (n) => `$${n >= 100 ? n.toFixed(0) : n.toFixed(2)}`;
53
53
  const pct = (x) => `${Math.round(x * 100)}%`;
54
54
  const k = (n) => (n >= 1000 ? `${(n / 1000).toFixed(1)}k` : String(n));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blackbrake",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Local, read-only audit of AI coding agent transcripts: exposed secrets, risky add-ons and where your spend concentrates. No network, no writes, no dependencies.",
5
5
  "type": "module",
6
6
  "bin": {