dsh-git-badge 0.5.2 → 0.5.3

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/lib/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -135,7 +135,8 @@ function parseStatusV2(out) {
135
135
  if (line.startsWith("# branch.head ")) branch = line.slice(14).trim();
136
136
  else if (line.startsWith("# branch.upstream ")) upstream = line.slice(18).trim();
137
137
  else if (line.startsWith("# branch.ab ")) {
138
- const [, plus, minus] = line.slice(12).trim().split(" ");
138
+ // no elision comma: element 0 IS "+ahead", element 1 is "-behind"
139
+ const [plus, minus] = line.slice(12).trim().split(" ");
139
140
  const a = Number.parseInt((plus ?? "").slice(1), 10);
140
141
  const b = Number.parseInt((minus ?? "").slice(1), 10);
141
142
  if (Number.isFinite(a)) ahead = a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-git-badge",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Git status badges for DeepSeek Harness: sidebar workspace rows (via the sidebar.workspaces.row seam) and an input-row chip showing the current conversation's workspace git state. Event-driven freshness over SSE.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",