@v1nvn/statusline 0.30.3 → 0.30.4

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/README.md CHANGED
@@ -22,7 +22,7 @@ offers the picker in chat, and writes the pick.
22
22
  In a terminal outside Claude Code — the wizard, the terminal guide:
23
23
 
24
24
  ```sh
25
- npx -y @v1nvn/statusline@0.30.3 configure
25
+ npx -y @v1nvn/statusline@0.30.4 configure
26
26
  ```
27
27
 
28
28
  Pass one stacks the five theme bars: `j/k` focus · `w` width · enter picks.
@@ -44,12 +44,12 @@ another home instead of `$HOME`.
44
44
  | `restore` | both keys back to their pre-lab values from `backup.json`, then deletes the lab data — `--dry-run` prints the plan; `--force` splices over a key changed after the takeover |
45
45
 
46
46
  ```sh
47
- npx -y @v1nvn/statusline@0.30.3 preview --theme rich --plain # chat-safe sketch, nothing written
48
- npx -y @v1nvn/statusline@0.30.3 configure --theme rich # the write — live on the next paint
49
- npx -y @v1nvn/statusline@0.30.3 configure --theme rich --bar percent # one swap on top of the theme
50
- npx -y @v1nvn/statusline@0.30.3 catalog --themes
51
- npx -y @v1nvn/statusline@0.30.3 status
52
- npx -y @v1nvn/statusline@0.30.3 restore
47
+ npx -y @v1nvn/statusline@0.30.4 preview --theme rich --plain # chat-safe sketch, nothing written
48
+ npx -y @v1nvn/statusline@0.30.4 configure --theme rich # the write — live on the next paint
49
+ npx -y @v1nvn/statusline@0.30.4 configure --theme rich --bar percent # one swap on top of the theme
50
+ npx -y @v1nvn/statusline@0.30.4 catalog --themes
51
+ npx -y @v1nvn/statusline@0.30.4 status
52
+ npx -y @v1nvn/statusline@0.30.4 restore
53
53
  ```
54
54
 
55
55
  ## Develop
package/dist/index.js CHANGED
@@ -719,6 +719,7 @@ function barFlatAt(input, w) {
719
719
  const pct = input.row.pct;
720
720
  let f = trunc(pct * w / 100);
721
721
  if (f > w) f = w;
722
+ if (pct > 0 && f === 0) f = 1;
722
723
  return `${pct >= 90 ? RED$1 : pct >= 70 ? YELLOW$1 : GREEN$1}${"█".repeat(f)}${"░".repeat(w - f)}${RESET$1}`;
723
724
  }
724
725
  function barFlat(input) {
@@ -1325,7 +1326,7 @@ function catalog(options) {
1325
1326
  //#region src/cli.ts
1326
1327
  var VERSION = {
1327
1328
  name: "@v1nvn/statusline",
1328
- version: "0.30.3",
1329
+ version: "0.30.4",
1329
1330
  description: "Browse statusline variants and configure the live status line and agent panel — the statusline CLI behind the statusline plugin.",
1330
1331
  type: "module",
1331
1332
  bin: "dist/index.js",