sickbay 1.6.0 → 1.7.1

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Header
3
- } from "./chunk-RJSWEQBF.js";
3
+ } from "./chunk-O77KS7KE.js";
4
4
 
5
5
  // src/components/DiffApp.tsx
6
6
  import React, { useState, useEffect } from "react";
@@ -119,7 +119,7 @@ function DiffApp({ projectPath, branch, jsonOutput, checks, verbose }) {
119
119
  useEffect(() => {
120
120
  (async () => {
121
121
  try {
122
- const { runSickbay } = await import("./dist-KJCFDM2M.js");
122
+ const { runSickbay } = await import("./dist-COP53OQ4.js");
123
123
  const currentReport = await runSickbay({
124
124
  projectPath,
125
125
  checks,
@@ -1,13 +1,13 @@
1
- import {
2
- Header
3
- } from "./chunk-RJSWEQBF.js";
4
1
  import {
5
2
  shortName
6
- } from "./chunk-AQAWL2MS.js";
3
+ } from "./chunk-GTNHWGY5.js";
4
+ import {
5
+ Header
6
+ } from "./chunk-O77KS7KE.js";
7
7
  import {
8
8
  detectPackageManager,
9
9
  detectProject
10
- } from "./chunk-3TA3K4Q7.js";
10
+ } from "./chunk-O26ERRN2.js";
11
11
 
12
12
  // src/components/DoctorApp.tsx
13
13
  import React, { useState, useEffect } from "react";
@@ -1,15 +1,15 @@
1
+ import {
2
+ shortName
3
+ } from "./chunk-GTNHWGY5.js";
1
4
  import {
2
5
  ProgressList
3
6
  } from "./chunk-MBVA75EM.js";
4
7
  import {
5
8
  Header
6
- } from "./chunk-RJSWEQBF.js";
7
- import {
8
- shortName
9
- } from "./chunk-AQAWL2MS.js";
9
+ } from "./chunk-O77KS7KE.js";
10
10
  import {
11
11
  runSickbay
12
- } from "./chunk-3TA3K4Q7.js";
12
+ } from "./chunk-O26ERRN2.js";
13
13
 
14
14
  // src/components/FixApp.tsx
15
15
  import React, { useState, useEffect, useCallback } from "react";
@@ -1,12 +1,12 @@
1
- import {
2
- Header
3
- } from "./chunk-RJSWEQBF.js";
4
1
  import {
5
2
  shortName
6
- } from "./chunk-AQAWL2MS.js";
3
+ } from "./chunk-GTNHWGY5.js";
4
+ import {
5
+ Header
6
+ } from "./chunk-O77KS7KE.js";
7
7
  import {
8
8
  detectProject
9
- } from "./chunk-3TA3K4Q7.js";
9
+ } from "./chunk-O26ERRN2.js";
10
10
 
11
11
  // src/components/StatsApp.tsx
12
12
  import React, { useState, useEffect } from "react";
@@ -2,17 +2,17 @@ import {
2
2
  sparkline,
3
3
  trendArrow
4
4
  } from "./chunk-SHO3ZXTH.js";
5
+ import {
6
+ shortName
7
+ } from "./chunk-GTNHWGY5.js";
5
8
  import {
6
9
  Header
7
- } from "./chunk-RJSWEQBF.js";
10
+ } from "./chunk-O77KS7KE.js";
11
+ import "./chunk-O26ERRN2.js";
8
12
  import {
9
13
  detectRegressions,
10
14
  loadHistory
11
15
  } from "./chunk-3OR2GFVE.js";
12
- import {
13
- shortName
14
- } from "./chunk-AQAWL2MS.js";
15
- import "./chunk-3TA3K4Q7.js";
16
16
 
17
17
  // src/components/TrendApp.tsx
18
18
  import React, { useState, useEffect } from "react";
@@ -9,15 +9,15 @@ import {
9
9
  import {
10
10
  checkForUpdate
11
11
  } from "./chunk-TWCTPAXQ.js";
12
- import {
13
- loadHistory
14
- } from "./chunk-3OR2GFVE.js";
15
12
  import {
16
13
  buildSummary,
17
14
  detectMonorepo,
18
15
  runSickbay,
19
16
  runSickbayMonorepo
20
- } from "./chunk-3TA3K4Q7.js";
17
+ } from "./chunk-O26ERRN2.js";
18
+ import {
19
+ loadHistory
20
+ } from "./chunk-3OR2GFVE.js";
21
21
 
22
22
  // src/components/tui/TuiApp.tsx
23
23
  import React11, { useState as useState8, useEffect as useEffect7, useCallback as useCallback2, useRef as useRef5 } from "react";
@@ -579,7 +579,7 @@ function ScorePanel({ report, previousScore, animate = true }) {
579
579
  return /* @__PURE__ */ React9.createElement(Box9, null, /* @__PURE__ */ React9.createElement(Text9, { dimColor: true }, "Waiting for scan..."));
580
580
  }
581
581
  const delta = previousScore !== null ? report.overallScore - previousScore : null;
582
- return /* @__PURE__ */ React9.createElement(Box9, { flexDirection: "column" }, /* @__PURE__ */ React9.createElement(Box9, null, /* @__PURE__ */ React9.createElement(Text9, { color: scoreColor3(displayScore), bold: true }, displayScore, "/100"), /* @__PURE__ */ React9.createElement(Text9, null, " "), /* @__PURE__ */ React9.createElement(Text9, { color: scoreColor3(displayScore) }, scoreBar3(displayScore))), delta !== null && /* @__PURE__ */ React9.createElement(Text9, { dimColor: true }, delta > 0 ? `+${delta}` : delta === 0 ? "\xB10" : `${delta}`, " since last scan"), /* @__PURE__ */ React9.createElement(Box9, { marginTop: 1, flexDirection: "column" }, /* @__PURE__ */ React9.createElement(Box9, null, /* @__PURE__ */ React9.createElement(Text9, { color: "red" }, "\u2717", " ", report.summary.critical, " critical"), /* @__PURE__ */ React9.createElement(Text9, null, " "), /* @__PURE__ */ React9.createElement(Text9, { color: "yellow" }, "\u26A0", " ", report.summary.warnings, " warn"), /* @__PURE__ */ React9.createElement(Text9, null, " "), /* @__PURE__ */ React9.createElement(Text9, { dimColor: true }, "i ", report.summary.info, " info"))), report.quote && /* @__PURE__ */ React9.createElement(Box9, { marginTop: 1 }, /* @__PURE__ */ React9.createElement(Text9, { italic: true, dimColor: true }, '"', report.quote.text, '" \u2014 ', report.quote.source)));
582
+ return /* @__PURE__ */ React9.createElement(Box9, { flexDirection: "column" }, /* @__PURE__ */ React9.createElement(Box9, null, /* @__PURE__ */ React9.createElement(Text9, { color: scoreColor3(displayScore), bold: true }, displayScore, "/100"), /* @__PURE__ */ React9.createElement(Text9, null, " "), /* @__PURE__ */ React9.createElement(Text9, { color: scoreColor3(displayScore) }, scoreBar3(displayScore))), delta !== null && /* @__PURE__ */ React9.createElement(Text9, { dimColor: true }, delta > 0 ? `+${delta}` : delta === 0 ? "\xB10" : `${delta}`, " since last scan"), /* @__PURE__ */ React9.createElement(Box9, { marginTop: 1, flexDirection: "column" }, /* @__PURE__ */ React9.createElement(Box9, null, /* @__PURE__ */ React9.createElement(Text9, { color: "red" }, "\u2717", " ", report.summary.critical, " critical"), /* @__PURE__ */ React9.createElement(Text9, null, " "), /* @__PURE__ */ React9.createElement(Text9, { color: "yellow" }, "\u26A0", " ", report.summary.warnings, " warn"), /* @__PURE__ */ React9.createElement(Text9, null, " "), /* @__PURE__ */ React9.createElement(Text9, { dimColor: true }, "i ", report.summary.info, " info"))), report.quote && /* @__PURE__ */ React9.createElement(Box9, { marginTop: 1 }, /* @__PURE__ */ React9.createElement(Text9, { italic: true, dimColor: true }, '"', report.quote.text, '" \u2014 ', report.quote.source)), report.config?.hasCustomConfig && /* @__PURE__ */ React9.createElement(Text9, { dimColor: true, italic: true }, "Custom config"));
583
583
  }
584
584
 
585
585
  // src/components/tui/TrendPanel.tsx
@@ -689,7 +689,7 @@ function TuiApp({
689
689
  return () => timers.forEach(clearTimeout);
690
690
  }, []);
691
691
  useEffect7(() => {
692
- checkForUpdate("1.5.0").then((info) => {
692
+ checkForUpdate("1.7.0").then((info) => {
693
693
  if (info) setUpdateInfo(info);
694
694
  });
695
695
  }, []);
@@ -715,7 +715,7 @@ function TuiApp({
715
715
  } catch {
716
716
  }
717
717
  try {
718
- const { getDependencyTree } = await import("./dist-KJCFDM2M.js");
718
+ const { getDependencyTree } = await import("./dist-COP53OQ4.js");
719
719
  const { saveDepTree } = await import("./history-XLNVZEDI.js");
720
720
  const tree = await getDependencyTree(projectPath, result.projectInfo.packageManager);
721
721
  saveDepTree(projectPath, tree);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  detectMonorepo
3
- } from "./chunk-3TA3K4Q7.js";
3
+ } from "./chunk-O26ERRN2.js";
4
4
 
5
5
  // src/lib/resolve-package.ts
6
6
  import { readFileSync } from "fs";