sickbay 1.5.0 → 1.7.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/{DiffApp-VVB6Q2F3.js → DiffApp-D73JA3XI.js} +4 -3
- package/dist/{DoctorApp-ZRMEYFRT.js → DoctorApp-GS3J4DMZ.js} +6 -5
- package/dist/{FixApp-UAHFPOJS.js → FixApp-YZ3CLMFB.js} +6 -5
- package/dist/{StatsApp-3MLDHZ5C.js → StatsApp-DRXR7JNK.js} +6 -5
- package/dist/{TrendApp-N5AYGTQF.js → TrendApp-JFDKGNXF.js} +6 -5
- package/dist/{TuiApp-XWUQZX42.js → TuiApp-WCBES43B.js} +17 -16
- package/dist/{ai-7DGOLNJX.js → ai-3LAZ6FTQ.js} +2 -0
- package/dist/{badge-KQ73KEIN.js → badge-XXUVOLVT.js} +2 -0
- package/dist/{chunk-T552XMJO.js → chunk-4B76LQAW.js} +646 -203
- package/dist/{chunk-PMGLCTYQ.js → chunk-LBA7NZIO.js} +1 -1
- package/dist/{chunk-YBVU46HP.js → chunk-MH54MN56.js} +1 -1
- package/dist/chunk-QGM4M3NI.js +37 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.js +7 -0
- package/dist/{dist-ESNXUFHV.js → dist-PGYV4EWK.js} +16 -3
- package/dist/{history-XLNVZEDI.js → history-BRXZYAUW.js} +1 -0
- package/dist/index.js +35 -34
- package/dist/{init-FLDYCXHA.js → init-IQDCNRIK.js} +58 -3
- package/dist/jiti-CG52ZJTF.js +3049 -0
- package/dist/resolve-package-JTAJL7Y2.js +10 -0
- package/dist/{update-check-M7IFOMLJ.js → update-check-YUUHLHGJ.js} +1 -0
- package/dist/web/assets/{index-DcTmzVWB.js → index-1WfmAzox.js} +2 -2
- package/dist/web/assets/index-1WfmAzox.js.map +1 -0
- package/dist/web/index.html +1 -1
- package/dist/{web-XBUBGSTP.js → web-KVY53X2F.js} +2 -0
- package/package.json +5 -1
- package/dist/resolve-package-3FI7DU3Q.js +0 -9
- package/dist/web/assets/index-DcTmzVWB.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Header
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MH54MN56.js";
|
|
4
|
+
import "./chunk-QGM4M3NI.js";
|
|
4
5
|
|
|
5
6
|
// src/components/DiffApp.tsx
|
|
6
7
|
import React, { useState, useEffect } from "react";
|
|
@@ -119,14 +120,14 @@ function DiffApp({ projectPath, branch, jsonOutput, checks, verbose }) {
|
|
|
119
120
|
useEffect(() => {
|
|
120
121
|
(async () => {
|
|
121
122
|
try {
|
|
122
|
-
const { runSickbay } = await import("./dist-
|
|
123
|
+
const { runSickbay } = await import("./dist-PGYV4EWK.js");
|
|
123
124
|
const currentReport = await runSickbay({
|
|
124
125
|
projectPath,
|
|
125
126
|
checks,
|
|
126
127
|
verbose
|
|
127
128
|
});
|
|
128
129
|
try {
|
|
129
|
-
const { saveEntry, saveLastReport } = await import("./history-
|
|
130
|
+
const { saveEntry, saveLastReport } = await import("./history-BRXZYAUW.js");
|
|
130
131
|
saveEntry(currentReport);
|
|
131
132
|
saveLastReport(currentReport);
|
|
132
133
|
} catch {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Header
|
|
3
|
-
} from "./chunk-YBVU46HP.js";
|
|
4
1
|
import {
|
|
5
2
|
shortName
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LBA7NZIO.js";
|
|
4
|
+
import {
|
|
5
|
+
Header
|
|
6
|
+
} from "./chunk-MH54MN56.js";
|
|
7
7
|
import {
|
|
8
8
|
detectPackageManager,
|
|
9
9
|
detectProject
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4B76LQAW.js";
|
|
11
|
+
import "./chunk-QGM4M3NI.js";
|
|
11
12
|
|
|
12
13
|
// src/components/DoctorApp.tsx
|
|
13
14
|
import React, { useState, useEffect } from "react";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
shortName
|
|
3
|
+
} from "./chunk-LBA7NZIO.js";
|
|
1
4
|
import {
|
|
2
5
|
ProgressList
|
|
3
6
|
} from "./chunk-MBVA75EM.js";
|
|
4
7
|
import {
|
|
5
8
|
Header
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
shortName
|
|
9
|
-
} from "./chunk-PMGLCTYQ.js";
|
|
9
|
+
} from "./chunk-MH54MN56.js";
|
|
10
10
|
import {
|
|
11
11
|
runSickbay
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4B76LQAW.js";
|
|
13
|
+
import "./chunk-QGM4M3NI.js";
|
|
13
14
|
|
|
14
15
|
// src/components/FixApp.tsx
|
|
15
16
|
import React, { useState, useEffect, useCallback } from "react";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Header
|
|
3
|
-
} from "./chunk-YBVU46HP.js";
|
|
4
1
|
import {
|
|
5
2
|
shortName
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LBA7NZIO.js";
|
|
4
|
+
import {
|
|
5
|
+
Header
|
|
6
|
+
} from "./chunk-MH54MN56.js";
|
|
7
7
|
import {
|
|
8
8
|
detectProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4B76LQAW.js";
|
|
10
|
+
import "./chunk-QGM4M3NI.js";
|
|
10
11
|
|
|
11
12
|
// src/components/StatsApp.tsx
|
|
12
13
|
import React, { useState, useEffect } from "react";
|
|
@@ -2,17 +2,18 @@ import {
|
|
|
2
2
|
sparkline,
|
|
3
3
|
trendArrow
|
|
4
4
|
} from "./chunk-SHO3ZXTH.js";
|
|
5
|
+
import {
|
|
6
|
+
shortName
|
|
7
|
+
} from "./chunk-LBA7NZIO.js";
|
|
5
8
|
import {
|
|
6
9
|
Header
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MH54MN56.js";
|
|
11
|
+
import "./chunk-4B76LQAW.js";
|
|
8
12
|
import {
|
|
9
13
|
detectRegressions,
|
|
10
14
|
loadHistory
|
|
11
15
|
} from "./chunk-3OR2GFVE.js";
|
|
12
|
-
import
|
|
13
|
-
shortName
|
|
14
|
-
} from "./chunk-PMGLCTYQ.js";
|
|
15
|
-
import "./chunk-T552XMJO.js";
|
|
16
|
+
import "./chunk-QGM4M3NI.js";
|
|
16
17
|
|
|
17
18
|
// src/components/TrendApp.tsx
|
|
18
19
|
import React, { useState, useEffect } from "react";
|
|
@@ -6,18 +6,19 @@ import {
|
|
|
6
6
|
LOADING_MESSAGES,
|
|
7
7
|
UpdateNotice
|
|
8
8
|
} from "./chunk-TYG7ZQBP.js";
|
|
9
|
-
import {
|
|
10
|
-
checkForUpdate
|
|
11
|
-
} from "./chunk-TWCTPAXQ.js";
|
|
12
|
-
import {
|
|
13
|
-
loadHistory
|
|
14
|
-
} from "./chunk-3OR2GFVE.js";
|
|
15
9
|
import {
|
|
16
10
|
buildSummary,
|
|
17
11
|
detectMonorepo,
|
|
18
12
|
runSickbay,
|
|
19
13
|
runSickbayMonorepo
|
|
20
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4B76LQAW.js";
|
|
15
|
+
import {
|
|
16
|
+
loadHistory
|
|
17
|
+
} from "./chunk-3OR2GFVE.js";
|
|
18
|
+
import {
|
|
19
|
+
checkForUpdate
|
|
20
|
+
} from "./chunk-TWCTPAXQ.js";
|
|
21
|
+
import "./chunk-QGM4M3NI.js";
|
|
21
22
|
|
|
22
23
|
// src/components/tui/TuiApp.tsx
|
|
23
24
|
import React11, { useState as useState8, useEffect as useEffect7, useCallback as useCallback2, useRef as useRef5 } from "react";
|
|
@@ -362,7 +363,7 @@ function useSickbayRunner({ projectPath, checks, quotes }) {
|
|
|
362
363
|
setMonorepoReport(null);
|
|
363
364
|
setReport(result);
|
|
364
365
|
try {
|
|
365
|
-
const { saveEntry } = await import("./history-
|
|
366
|
+
const { saveEntry } = await import("./history-BRXZYAUW.js");
|
|
366
367
|
saveEntry(result);
|
|
367
368
|
} catch {
|
|
368
369
|
}
|
|
@@ -579,7 +580,7 @@ function ScorePanel({ report, previousScore, animate = true }) {
|
|
|
579
580
|
return /* @__PURE__ */ React9.createElement(Box9, null, /* @__PURE__ */ React9.createElement(Text9, { dimColor: true }, "Waiting for scan..."));
|
|
580
581
|
}
|
|
581
582
|
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)));
|
|
583
|
+
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
584
|
}
|
|
584
585
|
|
|
585
586
|
// src/components/tui/TrendPanel.tsx
|
|
@@ -689,7 +690,7 @@ function TuiApp({
|
|
|
689
690
|
return () => timers.forEach(clearTimeout);
|
|
690
691
|
}, []);
|
|
691
692
|
useEffect7(() => {
|
|
692
|
-
checkForUpdate("1.
|
|
693
|
+
checkForUpdate("1.6.0").then((info) => {
|
|
693
694
|
if (info) setUpdateInfo(info);
|
|
694
695
|
});
|
|
695
696
|
}, []);
|
|
@@ -710,13 +711,13 @@ function TuiApp({
|
|
|
710
711
|
if (prevScore !== null) setPreviousScore(prevScore);
|
|
711
712
|
setLastScanTime(/* @__PURE__ */ new Date());
|
|
712
713
|
try {
|
|
713
|
-
const { saveLastReport } = await import("./history-
|
|
714
|
+
const { saveLastReport } = await import("./history-BRXZYAUW.js");
|
|
714
715
|
saveLastReport(result);
|
|
715
716
|
} catch {
|
|
716
717
|
}
|
|
717
718
|
try {
|
|
718
|
-
const { getDependencyTree } = await import("./dist-
|
|
719
|
-
const { saveDepTree } = await import("./history-
|
|
719
|
+
const { getDependencyTree } = await import("./dist-PGYV4EWK.js");
|
|
720
|
+
const { saveDepTree } = await import("./history-BRXZYAUW.js");
|
|
720
721
|
const tree = await getDependencyTree(projectPath, result.projectInfo.packageManager);
|
|
721
722
|
saveDepTree(projectPath, tree);
|
|
722
723
|
} catch {
|
|
@@ -732,7 +733,7 @@ function TuiApp({
|
|
|
732
733
|
setTimeout(() => setScoreFlash(void 0), 600);
|
|
733
734
|
}
|
|
734
735
|
try {
|
|
735
|
-
const { loadHistory: loadHistory2, detectRegressions } = await import("./history-
|
|
736
|
+
const { loadHistory: loadHistory2, detectRegressions } = await import("./history-BRXZYAUW.js");
|
|
736
737
|
const history = loadHistory2(projectPath);
|
|
737
738
|
if (history) {
|
|
738
739
|
const regressions = detectRegressions(history.entries);
|
|
@@ -819,11 +820,11 @@ function TuiApp({
|
|
|
819
820
|
const webReport = monorepoReportRef.current ?? reportRef.current;
|
|
820
821
|
if (!webReport) return;
|
|
821
822
|
try {
|
|
822
|
-
const { serveWeb } = await import("./web-
|
|
823
|
+
const { serveWeb } = await import("./web-KVY53X2F.js");
|
|
823
824
|
const { default: openBrowser } = await import("open");
|
|
824
825
|
let aiService;
|
|
825
826
|
if (withAI && process.env.ANTHROPIC_API_KEY && !monorepoReportRef.current) {
|
|
826
|
-
const { createAIService } = await import("./ai-
|
|
827
|
+
const { createAIService } = await import("./ai-3LAZ6FTQ.js");
|
|
827
828
|
aiService = createAIService(process.env.ANTHROPIC_API_KEY);
|
|
828
829
|
addActivity("info", "Launching web dashboard with AI...");
|
|
829
830
|
} else {
|