quotacap 0.0.10 → 0.0.11

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.
@@ -17,8 +17,10 @@ export function renderQuotasTable(quotas, advisories = []) {
17
17
  const resets = q.resetsAt ? formatResetDate(q.resetsAt) : "—";
18
18
  const daysLeft = a?.daysLeft != null ? a.daysLeft.toFixed(1) : "—";
19
19
  const ideal = a?.idealRate != null ? `${Math.round(a.idealRate)}%/day` : "—";
20
- const burn = a?.burnMeasured ? `${a.burnRate.toFixed(1)}%/day` : a != null ? "collecting…" : "—";
21
- const icon = a?.status === "at risk" ? "⚠️" : a != null ? "✅" : "—";
20
+ const burn = a?.burnMeasured ? `${a.burnRate.toFixed(1)}%/day` : "—";
21
+ // Text-presentation glyphs (no emoji variation selector): single cell
22
+ // wide, so markdown column alignment survives terminal renderers.
23
+ const icon = a?.status === "at risk" ? "⚠" : a != null ? "✔" : "—";
22
24
  const waste = a?.wastePct != null ? `${Math.round(a.wastePct)}%` : "—";
23
25
  return `| ${q.provider} | ${used}% | ${100 - used}% | ${resets} | ${daysLeft} | ${ideal} | ${burn} | ${icon} | ${waste} |`;
24
26
  });
@@ -17,8 +17,10 @@ export function renderQuotasTable(quotas, advisories = []) {
17
17
  const resets = q.resetsAt ? formatResetDate(q.resetsAt) : "—";
18
18
  const daysLeft = a?.daysLeft != null ? a.daysLeft.toFixed(1) : "—";
19
19
  const ideal = a?.idealRate != null ? `${Math.round(a.idealRate)}%/day` : "—";
20
- const burn = a?.burnMeasured ? `${a.burnRate.toFixed(1)}%/day` : a != null ? "collecting…" : "—";
21
- const icon = a?.status === "at risk" ? "⚠️" : a != null ? "✅" : "—";
20
+ const burn = a?.burnMeasured ? `${a.burnRate.toFixed(1)}%/day` : "—";
21
+ // Text-presentation glyphs (no emoji variation selector): single cell
22
+ // wide, so markdown column alignment survives terminal renderers.
23
+ const icon = a?.status === "at risk" ? "⚠" : a != null ? "✔" : "—";
22
24
  const waste = a?.wastePct != null ? `${Math.round(a.wastePct)}%` : "—";
23
25
  return `| ${q.provider} | ${used}% | ${100 - used}% | ${resets} | ${daysLeft} | ${ideal} | ${burn} | ${icon} | ${waste} |`;
24
26
  });
@@ -1,2 +1,2 @@
1
1
  // generated by scripts/build-embed.mjs — do not edit
2
- export const VERSION = "0.0.10";
2
+ export const VERSION = "0.0.11";
@@ -12,8 +12,8 @@ describe("format table", () => {
12
12
  ];
13
13
  const table = renderQuotasTable(quotas, advisories);
14
14
  expect(table).toMatch(/\| Provider \| Used \| Remaining \| Resets \| Days left \| Ideal daily burn \| Burn rate \| Status \| Waste if unused \|/);
15
- expect(table).toMatch(/\| kimi \| 16% \| 84% \|.*\| 3.0 \| 28%\/day \| 40.0%\/day \| ⚠️ \| 78% \|/);
16
- expect(table).toMatch(/\| claude \| 37% \| 63% \|.*\| 5.5 \| 12%\/day \| collecting… \| \| 53% \|/);
15
+ expect(table).toMatch(/\| kimi \| 16% \| 84% \|.*\| 3.0 \| 28%\/day \| 40.0%\/day \| \| 78% \|/);
16
+ expect(table).toMatch(/\| claude \| 37% \| 63% \|.*\| 5.5 \| 12%\/day \| \| \| 53% \|/);
17
17
  });
18
18
  it("renders quota-only rows with placeholders when no advisories exist", () => {
19
19
  const quotas = [{ provider: "kimi", usedPct: 16, resetsAt: "2026-09-01T09:02:00+10:00" }];
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by scripts/build-embed.mjs — do not edit
2
- export const VERSION = "0.0.10";
2
+ export const VERSION = "0.0.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quotacap",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",