@vibecodeqa/cli 0.35.9 → 0.36.0

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/dist/cli.js CHANGED
@@ -832,14 +832,15 @@ async function main() {
832
832
  if (!patterns?.length)
833
833
  continue;
834
834
  c.issues = c.issues.filter((i) => {
835
- if (!i.file)
835
+ if (!i.file || typeof i.file !== "string")
836
836
  return true;
837
+ const f = i.file;
837
838
  return !patterns.some((p) => {
838
839
  if (p.endsWith("/**"))
839
- return i.file.startsWith(p.slice(0, -3) + "/");
840
+ return f.startsWith(p.slice(0, -3) + "/");
840
841
  if (p.startsWith("*"))
841
- return i.file.endsWith(p.slice(1));
842
- return i.file.startsWith(p);
842
+ return f.endsWith(p.slice(1));
843
+ return f.startsWith(p);
843
844
  });
844
845
  });
845
846
  }
@@ -124,7 +124,7 @@ export function generateArchSVG(details) {
124
124
  nodesSvg += `<text x="${pos.x + size + 3}" y="${pos.y + 3}" fill="${labelColor}" font-size="${fontSize}" font-weight="${isGod ? "700" : "400"}">${name}</text>`;
125
125
  }
126
126
  if (!isLarge && (fanIn > 2 || fanOut > 5)) {
127
- nodesSvg += `<text x="${pos.x + size + 5}" y="${pos.y + 13}" fill="#555" font-size="7">${fanIn}\u2190 ${fanOut}\u2192</text>`;
127
+ nodesSvg += `<text x="${pos.x + size + 5}" y="${pos.y + 13}" fill="#888" font-size="7">${fanIn}\u2190 ${fanOut}\u2192</text>`;
128
128
  }
129
129
  }
130
130
  // Legend
@@ -28,8 +28,10 @@ function detectPR(cwd) {
28
28
  const event = JSON.parse(readFileSync(eventPath, "utf-8"));
29
29
  const pr = event.pull_request || event.issue;
30
30
  if (pr?.number && process.env.GITHUB_REPOSITORY) {
31
- const [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
32
- return { owner, repo, prNumber: pr.number };
31
+ const parts = process.env.GITHUB_REPOSITORY.split("/");
32
+ if (parts.length >= 2) {
33
+ return { owner: parts[0], repo: parts[1], prNumber: pr.number };
34
+ }
33
35
  }
34
36
  }
35
37
  catch {
@@ -87,7 +87,7 @@ export function generatePages(report, historyDir) {
87
87
  const meta = getCheckMeta(c.name);
88
88
  const badge = premium
89
89
  ? `<span style="color:#6366f1">PRO</span>`
90
- : `<span style="color:${sk ? "#555" : gc(c.grade)}">${sk ? "\u2014" : c.grade} ${sk ? "" : c.score}</span>`;
90
+ : `<span style="color:${sk ? "var(--dim)" : gc(c.grade)}">${sk ? "\u2014" : c.grade} ${sk ? "" : c.score}</span>`;
91
91
  sb += `<a class="side-check" href="${cs.file}#${c.name}" title="${e(meta.label)}">${badge} ${e(meta.label)}</a>`;
92
92
  }
93
93
  }
@@ -3,7 +3,7 @@ export function buildRing(score, color) {
3
3
  const r = 42;
4
4
  const c = 2 * Math.PI * r;
5
5
  const off = c - (score / 100) * c;
6
- return `<svg viewBox="0 0 100 100" style="width:100px;height:100px"><circle cx="50" cy="50" r="${r}" fill="none" stroke="#1e1e24" stroke-width="7"/><circle cx="50" cy="50" r="${r}" fill="none" stroke="${color}" stroke-width="7" stroke-dasharray="${c}" stroke-dashoffset="${off}" stroke-linecap="round" transform="rotate(-90 50 50)"/></svg>`;
6
+ return `<svg viewBox="0 0 100 100" style="width:100px;height:100px"><circle cx="50" cy="50" r="${r}" fill="none" stroke="#444" stroke-width="7"/><circle cx="50" cy="50" r="${r}" fill="none" stroke="${color}" stroke-width="7" stroke-dasharray="${c}" stroke-dashoffset="${off}" stroke-linecap="round" transform="rotate(-90 50 50)"/></svg>`;
7
7
  }
8
8
  export function buildRadar(items) {
9
9
  const n = items.length;
@@ -17,12 +17,12 @@ export function buildRadar(items) {
17
17
  const pts = items
18
18
  .map((_, i) => `${cx + rr * Math.cos(i * step - Math.PI / 2)},${cy + rr * Math.sin(i * step - Math.PI / 2)}`)
19
19
  .join(" ");
20
- grid += `<polygon points="${pts}" fill="none" stroke="#1e1e24" stroke-width="0.7"/>`;
20
+ grid += `<polygon points="${pts}" fill="none" stroke="#444" stroke-width="0.7"/>`;
21
21
  }
22
22
  let axes = "";
23
23
  for (let i = 0; i < n; i++) {
24
24
  const a = i * step - Math.PI / 2;
25
- axes += `<line x1="${cx}" y1="${cy}" x2="${cx + r * Math.cos(a)}" y2="${cy + r * Math.sin(a)}" stroke="#1e1e24" stroke-width="0.7"/>`;
25
+ axes += `<line x1="${cx}" y1="${cy}" x2="${cx + r * Math.cos(a)}" y2="${cy + r * Math.sin(a)}" stroke="#444" stroke-width="0.7"/>`;
26
26
  const lx = cx + (r + 16) * Math.cos(a);
27
27
  const ly = cy + (r + 16) * Math.sin(a);
28
28
  axes += `<text x="${lx}" y="${ly}" text-anchor="middle" dominant-baseline="middle" fill="#6b7280" font-size="9" font-weight="600">${items[i].label}</text>`;
@@ -60,8 +60,8 @@ export function buildTimeline(entries, opts) {
60
60
  let grid = "";
61
61
  for (const v of [25, 50, 75]) {
62
62
  const y = yScale(v).toFixed(1);
63
- grid += `<line x1="${pad.left}" y1="${y}" x2="${pad.left + w}" y2="${y}" stroke="#1e1e24" stroke-width="0.7"/>`;
64
- grid += `<text x="${pad.left - 6}" y="${y}" text-anchor="end" dominant-baseline="middle" fill="#555" font-size="8">${v}</text>`;
63
+ grid += `<line x1="${pad.left}" y1="${y}" x2="${pad.left + w}" y2="${y}" stroke="#444" stroke-width="0.7"/>`;
64
+ grid += `<text x="${pad.left - 6}" y="${y}" text-anchor="end" dominant-baseline="middle" fill="#888" font-size="8">${v}</text>`;
65
65
  }
66
66
  // Score line + dots
67
67
  const points = entries.map((e, i) => `${xScale(i).toFixed(1)},${yScale(e.score).toFixed(1)}`).join(" ");
@@ -77,7 +77,7 @@ export function buildTimeline(entries, opts) {
77
77
  const labelIndices = entries.length <= 3 ? entries.map((_, i) => i) : [0, Math.floor(entries.length / 2), entries.length - 1];
78
78
  for (const i of labelIndices) {
79
79
  const label = entries[i].timestamp.split("T")[0].slice(5); // MM-DD
80
- xLabels += `<text x="${xScale(i).toFixed(1)}" y="${height - 4}" text-anchor="middle" fill="#555" font-size="7">${label}</text>`;
80
+ xLabels += `<text x="${xScale(i).toFixed(1)}" y="${height - 4}" text-anchor="middle" fill="#888" font-size="7">${label}</text>`;
81
81
  }
82
82
  // Gradient fill under the line
83
83
  const areaPoints = `${xScale(0).toFixed(1)},${yScale(0).toFixed(1)} ${points} ${xScale(entries.length - 1).toFixed(1)},${yScale(0).toFixed(1)}`;
@@ -131,7 +131,7 @@ export function buildBadge(score, grade) {
131
131
  <linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
132
132
  <clipPath id="r"><rect width="${totalW}" height="${h}" rx="${r}" fill="#fff"/></clipPath>
133
133
  <g clip-path="url(#r)">
134
- <rect width="${labelW}" height="${h}" fill="#555"/>
134
+ <rect width="${labelW}" height="${h}" fill="#888"/>
135
135
  <rect x="${labelW}" width="${valueW}" height="${h}" fill="${color}"/>
136
136
  <rect width="${totalW}" height="${h}" fill="url(#s)"/>
137
137
  </g>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibecodeqa/cli",
3
- "version": "0.35.9",
3
+ "version": "0.36.0",
4
4
  "description": "Code health scanner for the AI coding era. 25 checks, zero config, full report.",
5
5
  "type": "module",
6
6
  "bin": {