sickbay 1.7.5 → 1.9.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.
Files changed (29) hide show
  1. package/dist/{DiffApp-6ALNMFOT.js → DiffApp-6JTHT66G.js} +4 -3
  2. package/dist/{DoctorApp-XDSVZUFD.js → DoctorApp-QP2JA42Y.js} +4 -3
  3. package/dist/{FixApp-KLSCU2W3.js → FixApp-EMLSGLUF.js} +4 -3
  4. package/dist/{StatsApp-AYIELKMZ.js → StatsApp-6TMVFIPJ.js} +4 -3
  5. package/dist/{TrendApp-FH7FV3ID.js → TrendApp-UUKM3VHV.js} +4 -3
  6. package/dist/{TuiApp-TK44JMFI.js → TuiApp-N5HXMA7R.js} +10 -9
  7. package/dist/{ai-7DGOLNJX.js → ai-K5VFVZO7.js} +2 -0
  8. package/dist/{badge-KQ73KEIN.js → badge-AO2FZVHJ.js} +2 -0
  9. package/dist/chunk-JSBRDJBE.js +30 -0
  10. package/dist/{chunk-IHD3GBCE.js → chunk-JZHTDA5H.js} +1 -1
  11. package/dist/{chunk-CHJ4O7AA.js → chunk-MAE65RTT.js} +1 -1
  12. package/dist/{chunk-FEOQ6TWI.js → chunk-QFPMRJF7.js} +2003 -74
  13. package/dist/config.js +2 -1
  14. package/dist/{dist-ZNY63JZW.js → dist-3KGGZO3D.js} +12 -1
  15. package/dist/{history-XLNVZEDI.js → history-KXLC45VS.js} +1 -0
  16. package/dist/index.js +34 -33
  17. package/dist/{init-LTMLZWIF.js → init-MN5WJKAP.js} +2 -1
  18. package/dist/resolve-package-I5S7QLCP.js +10 -0
  19. package/dist/{update-check-M7IFOMLJ.js → update-check-QLG6GA4Z.js} +1 -0
  20. package/dist/web/assets/index-Cnyzux7n.js +15 -0
  21. package/dist/web/assets/index-Cnyzux7n.js.map +1 -0
  22. package/dist/web/assets/index-jCSA2h1m.css +2 -0
  23. package/dist/web/index.html +2 -2
  24. package/dist/{web-XBUBGSTP.js → web-DTMGZLAU.js} +20 -0
  25. package/package.json +1 -1
  26. package/dist/resolve-package-KZ4Q6AFH.js +0 -9
  27. package/dist/web/assets/index-1WfmAzox.js +0 -14
  28. package/dist/web/assets/index-1WfmAzox.js.map +0 -1
  29. package/dist/web/assets/index-C9H1WQDO.css +0 -2
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  Header
3
- } from "./chunk-CHJ4O7AA.js";
3
+ } from "./chunk-MAE65RTT.js";
4
+ import "./chunk-JSBRDJBE.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-ZNY63JZW.js");
123
+ const { runSickbay } = await import("./dist-3KGGZO3D.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-XLNVZEDI.js");
130
+ const { saveEntry, saveLastReport } = await import("./history-KXLC45VS.js");
130
131
  saveEntry(currentReport);
131
132
  saveLastReport(currentReport);
132
133
  } catch {
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  shortName
3
- } from "./chunk-IHD3GBCE.js";
3
+ } from "./chunk-JZHTDA5H.js";
4
4
  import {
5
5
  Header
6
- } from "./chunk-CHJ4O7AA.js";
6
+ } from "./chunk-MAE65RTT.js";
7
7
  import {
8
8
  detectPackageManager,
9
9
  detectProject
10
- } from "./chunk-FEOQ6TWI.js";
10
+ } from "./chunk-QFPMRJF7.js";
11
+ import "./chunk-JSBRDJBE.js";
11
12
 
12
13
  // src/components/DoctorApp.tsx
13
14
  import React, { useState, useEffect } from "react";
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  shortName
3
- } from "./chunk-IHD3GBCE.js";
3
+ } from "./chunk-JZHTDA5H.js";
4
4
  import {
5
5
  ProgressList
6
6
  } from "./chunk-MBVA75EM.js";
7
7
  import {
8
8
  Header
9
- } from "./chunk-CHJ4O7AA.js";
9
+ } from "./chunk-MAE65RTT.js";
10
10
  import {
11
11
  runSickbay
12
- } from "./chunk-FEOQ6TWI.js";
12
+ } from "./chunk-QFPMRJF7.js";
13
+ import "./chunk-JSBRDJBE.js";
13
14
 
14
15
  // src/components/FixApp.tsx
15
16
  import React, { useState, useEffect, useCallback } from "react";
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  shortName
3
- } from "./chunk-IHD3GBCE.js";
3
+ } from "./chunk-JZHTDA5H.js";
4
4
  import {
5
5
  Header
6
- } from "./chunk-CHJ4O7AA.js";
6
+ } from "./chunk-MAE65RTT.js";
7
7
  import {
8
8
  detectProject
9
- } from "./chunk-FEOQ6TWI.js";
9
+ } from "./chunk-QFPMRJF7.js";
10
+ import "./chunk-JSBRDJBE.js";
10
11
 
11
12
  // src/components/StatsApp.tsx
12
13
  import React, { useState, useEffect } from "react";
@@ -4,15 +4,16 @@ import {
4
4
  } from "./chunk-SHO3ZXTH.js";
5
5
  import {
6
6
  shortName
7
- } from "./chunk-IHD3GBCE.js";
7
+ } from "./chunk-JZHTDA5H.js";
8
8
  import {
9
9
  Header
10
- } from "./chunk-CHJ4O7AA.js";
11
- import "./chunk-FEOQ6TWI.js";
10
+ } from "./chunk-MAE65RTT.js";
11
+ import "./chunk-QFPMRJF7.js";
12
12
  import {
13
13
  detectRegressions,
14
14
  loadHistory
15
15
  } from "./chunk-3OR2GFVE.js";
16
+ import "./chunk-JSBRDJBE.js";
16
17
 
17
18
  // src/components/TrendApp.tsx
18
19
  import React, { useState, useEffect } from "react";
@@ -14,10 +14,11 @@ import {
14
14
  detectMonorepo,
15
15
  runSickbay,
16
16
  runSickbayMonorepo
17
- } from "./chunk-FEOQ6TWI.js";
17
+ } from "./chunk-QFPMRJF7.js";
18
18
  import {
19
19
  loadHistory
20
20
  } from "./chunk-3OR2GFVE.js";
21
+ import "./chunk-JSBRDJBE.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-XLNVZEDI.js");
366
+ const { saveEntry } = await import("./history-KXLC45VS.js");
366
367
  saveEntry(result);
367
368
  } catch {
368
369
  }
@@ -689,7 +690,7 @@ function TuiApp({
689
690
  return () => timers.forEach(clearTimeout);
690
691
  }, []);
691
692
  useEffect7(() => {
692
- checkForUpdate("1.7.4").then((info) => {
693
+ checkForUpdate("1.8.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-XLNVZEDI.js");
714
+ const { saveLastReport } = await import("./history-KXLC45VS.js");
714
715
  saveLastReport(result);
715
716
  } catch {
716
717
  }
717
718
  try {
718
- const { getDependencyTree } = await import("./dist-ZNY63JZW.js");
719
- const { saveDepTree } = await import("./history-XLNVZEDI.js");
719
+ const { getDependencyTree } = await import("./dist-3KGGZO3D.js");
720
+ const { saveDepTree } = await import("./history-KXLC45VS.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-XLNVZEDI.js");
736
+ const { loadHistory: loadHistory2, detectRegressions } = await import("./history-KXLC45VS.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-XBUBGSTP.js");
823
+ const { serveWeb } = await import("./web-DTMGZLAU.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-7DGOLNJX.js");
827
+ const { createAIService } = await import("./ai-K5VFVZO7.js");
827
828
  aiService = createAIService(process.env.ANTHROPIC_API_KEY);
828
829
  addActivity("info", "Launching web dashboard with AI...");
829
830
  } else {
@@ -1,3 +1,5 @@
1
+ import "./chunk-JSBRDJBE.js";
2
+
1
3
  // src/services/ai.ts
2
4
  import Anthropic from "@anthropic-ai/sdk";
3
5
  function createAIService(apiKey) {
@@ -1,3 +1,5 @@
1
+ import "./chunk-JSBRDJBE.js";
2
+
1
3
  // src/commands/badge.ts
2
4
  import { existsSync, readFileSync } from "fs";
3
5
  import { join } from "path";
@@ -0,0 +1,30 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ export {
28
+ __commonJS,
29
+ __toESM
30
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  detectMonorepo
3
- } from "./chunk-FEOQ6TWI.js";
3
+ } from "./chunk-QFPMRJF7.js";
4
4
 
5
5
  // src/lib/resolve-package.ts
6
6
  import { readFileSync } from "fs";
@@ -11,7 +11,7 @@ var ASCII_ART = `
11
11
  A vitals health check for your app
12
12
  `.trim();
13
13
  function Header({ projectName }) {
14
- return /* @__PURE__ */ React.createElement(Box, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ React.createElement(Text, { color: "green" }, ASCII_ART), /* @__PURE__ */ React.createElement(Box, { marginTop: 1 }, /* @__PURE__ */ React.createElement(Text, { dimColor: true }, " v", "1.7.4")), projectName && /* @__PURE__ */ React.createElement(Box, { marginTop: 1 }, /* @__PURE__ */ React.createElement(Text, { dimColor: true }, " Analyzing "), /* @__PURE__ */ React.createElement(Text, { bold: true, color: "white" }, projectName)));
14
+ return /* @__PURE__ */ React.createElement(Box, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ React.createElement(Text, { color: "green" }, ASCII_ART), /* @__PURE__ */ React.createElement(Box, { marginTop: 1 }, /* @__PURE__ */ React.createElement(Text, { dimColor: true }, " v", "1.8.0")), projectName && /* @__PURE__ */ React.createElement(Box, { marginTop: 1 }, /* @__PURE__ */ React.createElement(Text, { dimColor: true }, " Analyzing "), /* @__PURE__ */ React.createElement(Text, { bold: true, color: "white" }, projectName)));
15
15
  }
16
16
 
17
17
  export {