@jsleekr/graft 6.0.0 → 6.0.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.
@@ -89,7 +89,8 @@ function formatNodeTokens(nr) {
89
89
  return `${total.toLocaleString()} tok`;
90
90
  }
91
91
  function renderBar(fraction, width) {
92
- const filled = Math.round(fraction * width);
92
+ const clamped = Math.max(0, Math.min(1, fraction));
93
+ const filled = Math.round(clamped * width);
93
94
  const empty = width - filled;
94
95
  const bar = '\u2588'.repeat(filled) + '\u2591'.repeat(empty);
95
96
  return `[${bar}]`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsleekr/graft",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Graft compiler — compile .gft graph DSL to Claude Code harness structures",
5
5
  "type": "module",
6
6
  "license": "MIT",