sickbay 1.7.1 → 1.7.2

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-O77KS7KE.js";
3
+ } from "./chunk-J2EJZWTP.js";
4
4
 
5
5
  // src/components/DiffApp.tsx
6
6
  import React, { useState, useEffect } from "react";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GTNHWGY5.js";
4
4
  import {
5
5
  Header
6
- } from "./chunk-O77KS7KE.js";
6
+ } from "./chunk-J2EJZWTP.js";
7
7
  import {
8
8
  detectPackageManager,
9
9
  detectProject
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-MBVA75EM.js";
7
7
  import {
8
8
  Header
9
- } from "./chunk-O77KS7KE.js";
9
+ } from "./chunk-J2EJZWTP.js";
10
10
  import {
11
11
  runSickbay
12
12
  } from "./chunk-O26ERRN2.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GTNHWGY5.js";
4
4
  import {
5
5
  Header
6
- } from "./chunk-O77KS7KE.js";
6
+ } from "./chunk-J2EJZWTP.js";
7
7
  import {
8
8
  detectProject
9
9
  } from "./chunk-O26ERRN2.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-GTNHWGY5.js";
8
8
  import {
9
9
  Header
10
- } from "./chunk-O77KS7KE.js";
10
+ } from "./chunk-J2EJZWTP.js";
11
11
  import "./chunk-O26ERRN2.js";
12
12
  import {
13
13
  detectRegressions,
@@ -689,7 +689,7 @@ function TuiApp({
689
689
  return () => timers.forEach(clearTimeout);
690
690
  }, []);
691
691
  useEffect7(() => {
692
- checkForUpdate("1.7.0").then((info) => {
692
+ checkForUpdate("1.7.1").then((info) => {
693
693
  if (info) setUpdateInfo(info);
694
694
  });
695
695
  }, []);
@@ -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.0")), 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.7.1")), 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 {
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-TYG7ZQBP.js";
9
9
  import {
10
10
  Header
11
- } from "./chunk-O77KS7KE.js";
11
+ } from "./chunk-J2EJZWTP.js";
12
12
  import {
13
13
  getScoreEmoji,
14
14
  runSickbay,
@@ -303,7 +303,7 @@ if (existsSync(globalConfigPath)) {
303
303
  }
304
304
  config({ debug: false, quiet: true });
305
305
  var program = new Command();
306
- program.name("sickbay").description("React project health check CLI").version("1.7.0", "-v, --version").enablePositionalOptions().passThroughOptions().option("-p, --path <path>", "project path to analyze", process.cwd()).option("-c, --checks <checks>", "comma-separated list of checks to run").option("--package <name>", "scope to a single named package (monorepo only)").option("--json", "output raw JSON report").option("--web", "open web dashboard after scan").option("--no-ai", "disable AI features").option("--no-quotes", "suppress personality quotes in output").option("--verbose", "show verbose output").action(async (options) => {
306
+ program.name("sickbay").description("React project health check CLI").version("1.7.1", "-v, --version").enablePositionalOptions().passThroughOptions().option("-p, --path <path>", "project path to analyze", process.cwd()).option("-c, --checks <checks>", "comma-separated list of checks to run").option("--package <name>", "scope to a single named package (monorepo only)").option("--json", "output raw JSON report").option("--web", "open web dashboard after scan").option("--no-ai", "disable AI features").option("--no-quotes", "suppress personality quotes in output").option("--verbose", "show verbose output").action(async (options) => {
307
307
  if (options.path && options.path !== process.cwd()) {
308
308
  const projectEnvPath = join(options.path, ".env");
309
309
  if (existsSync(projectEnvPath)) {
@@ -313,7 +313,7 @@ program.name("sickbay").description("React project health check CLI").version("1
313
313
  const updatePromise = (async () => {
314
314
  try {
315
315
  const { checkForUpdate } = await import("./update-check-M7IFOMLJ.js");
316
- return await checkForUpdate("1.7.0");
316
+ return await checkForUpdate("1.7.1");
317
317
  } catch {
318
318
  return null;
319
319
  }
@@ -406,7 +406,7 @@ program.name("sickbay").description("React project health check CLI").version("1
406
406
  );
407
407
  });
408
408
  program.command("init").description("Initialize .sickbay/ folder and run an initial baseline scan").option("-p, --path <path>", "project path to initialize", process.cwd()).action(async (options) => {
409
- const { initSickbay } = await import("./init-F7CN356W.js");
409
+ const { initSickbay } = await import("./init-NAO4S7IP.js");
410
410
  await initSickbay(options.path);
411
411
  });
412
412
  program.command("fix").description("Interactively fix issues found by sickbay scan").option("-p, --path <path>", "project path to analyze", process.cwd()).option("-c, --checks <checks>", "comma-separated list of checks to run").option("--package <name>", "scope to a single package (monorepo only)").option("--all", "apply all available fixes without prompting").option("--dry-run", "show what would be fixed without executing").option("--verbose", "show verbose output").action(async (options) => {
@@ -418,7 +418,7 @@ program.command("fix").description("Interactively fix issues found by sickbay sc
418
418
  }
419
419
  const { resolveProject } = await import("./resolve-package-PF56UGTP.js");
420
420
  const resolution = await resolveProject(options.path, options.package);
421
- const { FixApp } = await import("./FixApp-6I7YP3X3.js");
421
+ const { FixApp } = await import("./FixApp-DO75A35F.js");
422
422
  const checks = options.checks ? options.checks.split(",").map((s) => s.trim()) : void 0;
423
423
  const projectPath = resolution.isMonorepo ? resolution.targetPath ?? options.path : resolution.targetPath;
424
424
  render(
@@ -444,7 +444,7 @@ program.command("trend").description("Show score history and trends over time").
444
444
  const { resolveProject } = await import("./resolve-package-PF56UGTP.js");
445
445
  const resolution = await resolveProject(options.path, options.package);
446
446
  const projectPath = resolution.isMonorepo ? resolution.targetPath ?? options.path : resolution.targetPath;
447
- const { TrendApp } = await import("./TrendApp-YO2JOGIS.js");
447
+ const { TrendApp } = await import("./TrendApp-RQTELT4G.js");
448
448
  render(
449
449
  React6.createElement(TrendApp, {
450
450
  projectPath,
@@ -466,7 +466,7 @@ program.command("stats").description("Show a quick codebase overview and project
466
466
  const { resolveProject } = await import("./resolve-package-PF56UGTP.js");
467
467
  const resolution = await resolveProject(options.path, options.package);
468
468
  const projectPath = resolution.isMonorepo ? resolution.targetPath ?? options.path : resolution.targetPath;
469
- const { StatsApp } = await import("./StatsApp-SEZZMUE3.js");
469
+ const { StatsApp } = await import("./StatsApp-ZU3M6ZEU.js");
470
470
  render(
471
471
  React6.createElement(StatsApp, {
472
472
  projectPath,
@@ -478,7 +478,7 @@ program.command("stats").description("Show a quick codebase overview and project
478
478
  );
479
479
  });
480
480
  program.command("tui").description("Launch the persistent developer dashboard").option("-p, --path <path>", "project path to monitor", process.cwd()).option("--no-watch", "disable file-watching auto-refresh").option("--no-quotes", "suppress personality quotes in output").option("--refresh <seconds>", "auto-refresh interval in seconds", "300").option("-c, --checks <checks>", "comma-separated list of checks to run").action(async (options) => {
481
- const { TuiApp } = await import("./TuiApp-L62KV4TM.js");
481
+ const { TuiApp } = await import("./TuiApp-Z5SKIJ6G.js");
482
482
  const checks = options.checks ? options.checks.split(",").map((s) => s.trim()) : void 0;
483
483
  render(
484
484
  React6.createElement(TuiApp, {
@@ -501,7 +501,7 @@ program.command("doctor").description("Diagnose project setup and configuration
501
501
  const { resolveProject } = await import("./resolve-package-PF56UGTP.js");
502
502
  const resolution = await resolveProject(options.path, options.package);
503
503
  const projectPath = resolution.isMonorepo ? resolution.targetPath ?? options.path : resolution.targetPath;
504
- const { DoctorApp } = await import("./DoctorApp-ZYWU7BJU.js");
504
+ const { DoctorApp } = await import("./DoctorApp-VNX6BNDX.js");
505
505
  render(
506
506
  React6.createElement(DoctorApp, {
507
507
  projectPath,
@@ -549,7 +549,7 @@ program.command("diff <branch>").description("Compare health score against anoth
549
549
  }
550
550
  }
551
551
  const checks = options.checks ? options.checks.split(",").map((s) => s.trim()) : void 0;
552
- const { DiffApp } = await import("./DiffApp-6DCOQNOE.js");
552
+ const { DiffApp } = await import("./DiffApp-G6CSKRKY.js");
553
553
  render(
554
554
  React6.createElement(DiffApp, {
555
555
  projectPath: options.path,
@@ -48,13 +48,13 @@ ${lines.join("\n")}`);
48
48
  const checkLines = checkLineGroups.join("\n\n");
49
49
  const template = `// Threshold overrides, suppressions, and more:
50
50
  // https://nebulord-dev.github.io/sickbay/guide/configuration
51
- import { defineConfig } from 'sickbay/config'
52
51
 
53
- export default defineConfig({
52
+ /** @type {import('sickbay/config').SickbayConfig} */
53
+ export default {
54
54
  checks: {
55
55
  ${checkLines}
56
56
  },
57
- })
57
+ }
58
58
  `;
59
59
  writeFileSync(configPath, template);
60
60
  console.log(`Created sickbay.config.ts`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sickbay",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Zero-config health check CLI for JavaScript and TypeScript projects",
5
5
  "license": "MIT",
6
6
  "repository": {