snapfail 0.0.27 → 0.0.28

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/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1829,10 +1829,11 @@ function formatIncidentList(data, total, status) {
1829
1829
  cyan(truncate(g2.id, 12)),
1830
1830
  truncate(g2.title, 38),
1831
1831
  String(g2.count),
1832
+ g2.affectedUsers > 0 ? String(g2.affectedUsers) : dim("\u2014"),
1832
1833
  g2.environments.join(","),
1833
1834
  relativeTime(g2.lastSeen)
1834
1835
  ]);
1835
- const table = formatTable(rows, ["ID", "TITLE", "COUNT", "ENV", "LAST SEEN"]);
1836
+ const table = formatTable(rows, ["ID", "TITLE", "COUNT", "USERS", "ENV", "LAST SEEN"]);
1836
1837
  const summary = `
1837
1838
  ${bold(String(total))} ${status ?? "unresolved"} incident${total !== 1 ? "s" : ""}`;
1838
1839
  return table + summary;
@@ -1902,7 +1903,7 @@ function formatLLMContext(group, samples) {
1902
1903
  function formatIncidentDetail(group, sample) {
1903
1904
  const lines = [];
1904
1905
  lines.push(bold(`${group.errorType}: ${truncate(group.title, 80)}`));
1905
- lines.push(`${dim("Status:")} ${group.status} ${dim("\xB7")} ${group.count} occurrences ${dim("\xB7")} ${group.environments.join(", ")}`);
1906
+ lines.push(`${dim("Status:")} ${group.status} ${dim("\xB7")} ${group.count} occurrences ${dim("\xB7")} ${group.affectedUsers > 0 ? `${group.affectedUsers} users ${dim("\xB7")} ` : ""}${group.environments.join(", ")}`);
1906
1907
  lines.push(`${dim("First seen:")} ${new Date(group.firstSeen).toISOString().slice(0, 10)} ${dim("\xB7")} ${dim("Last seen:")} ${relativeTime(group.lastSeen)}`);
1907
1908
  if (sample.stackFrames.length > 0) {
1908
1909
  lines.push("");
@@ -2959,7 +2960,7 @@ function printHelp(command) {
2959
2960
  // package.json
2960
2961
  var package_default = {
2961
2962
  name: "snapfail",
2962
- version: "0.0.27",
2963
+ version: "0.0.28",
2963
2964
  type: "module",
2964
2965
  description: "CLI for snapfail \u2014 project setup, incident inspection and AI diagnostics",
2965
2966
  license: "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snapfail",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "description": "CLI for snapfail — project setup, incident inspection and AI diagnostics",
6
6
  "license": "MIT",