javi-forge 1.39.2 → 1.39.3

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,3 +1,4 @@
1
+ import React from "react";
1
2
  import { type DoctorOptions } from "../../commands/doctor.js";
2
- export default function DoctorController({ dryRun, refreshContext, }: DoctorOptions): import("react").FunctionComponentElement<import("../../ui/Doctor.js").DoctorProps>;
3
+ export default function DoctorController(options?: DoctorOptions): React.JSX.Element;
3
4
  //# sourceMappingURL=doctor.d.ts.map
@@ -1,7 +1,8 @@
1
- import { createElement, useEffect, useState } from "react";
1
+ import React, { useEffect, useState } from "react";
2
2
  import { runDoctor } from "../../commands/doctor.js";
3
3
  import Doctor from "../../ui/Doctor.js";
4
- export default function DoctorController({ dryRun = false, refreshContext = false, }) {
4
+ export default function DoctorController(options = {}) {
5
+ const { dryRun = false, refreshContext = false } = options;
5
6
  const [result, setResult] = useState(null);
6
7
  const [error, setError] = useState(null);
7
8
  const [loading, setLoading] = useState(true);
@@ -22,6 +23,6 @@ export default function DoctorController({ dryRun = false, refreshContext = fals
22
23
  useEffect(() => {
23
24
  runCheck();
24
25
  }, [dryRun, refreshContext]);
25
- return createElement(Doctor, { loading, result, error, onRerun: runCheck });
26
+ return (React.createElement(Doctor, { loading: loading, result: result, error: error, onRerun: runCheck }));
26
27
  }
27
28
  //# sourceMappingURL=doctor.js.map
package/dist/ui/Doctor.js CHANGED
@@ -82,6 +82,6 @@ export default function Doctor({ loading, result, error, onRerun, }) {
82
82
  check.detail)) : null))))));
83
83
  }))),
84
84
  !loading && (React.createElement(Box, { marginTop: 1 },
85
- React.createElement(Text, { color: theme.muted, dimColor: true }, "Press r to refresh, q to quit")))));
85
+ React.createElement(Text, { color: theme.muted, dimColor: true }, "Press r to rerun checks, q to quit")))));
86
86
  }
87
87
  //# sourceMappingURL=Doctor.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javi-forge",
3
- "version": "1.39.2",
3
+ "version": "1.39.3",
4
4
  "description": "Project scaffolding and AI-ready CI bootstrap",
5
5
  "type": "module",
6
6
  "bin": {