@mestreyoda/fabrica 0.1.0 → 0.1.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.
package/dist/index.js CHANGED
@@ -111329,8 +111329,8 @@ import fsSync from "node:fs";
111329
111329
  import path5 from "node:path";
111330
111330
  import { fileURLToPath as fileURLToPath3 } from "node:url";
111331
111331
  function getCurrentVersion() {
111332
- if ("0.1.0") {
111333
- return "0.1.0";
111332
+ if ("0.1.1") {
111333
+ return "0.1.1";
111334
111334
  }
111335
111335
  try {
111336
111336
  const pkgPath = path5.join(THIS_DIR, "..", "..", "package.json");
@@ -140688,16 +140688,32 @@ async function runDoctor(opts) {
140688
140688
  const { ensureDefaultFiles: ensureDefaultFiles2 } = await Promise.resolve().then(() => (init_workspace(), workspace_exports));
140689
140689
  await ensureDefaultFiles2(workspacePath);
140690
140690
  for (const check2 of checks) {
140691
- if (check2.severity === "error" && check2.name.startsWith("file:")) {
140691
+ if (check2.severity !== "error") continue;
140692
+ let recheckOk = false;
140693
+ if (check2.name.startsWith("file:")) {
140692
140694
  const recheckPath = check2.name.replace("file:", "");
140693
140695
  try {
140694
140696
  await fs36.access(recheckPath);
140695
- check2.fixed = true;
140696
- check2.severity = "ok";
140697
- check2.message += " (fixed)";
140698
- fixed++;
140697
+ recheckOk = true;
140699
140698
  } catch {
140700
140699
  }
140700
+ } else if (check2.name.startsWith("dir:")) {
140701
+ const recheckPath = check2.name.replace("dir:", "");
140702
+ try {
140703
+ const stat2 = await fs36.stat(recheckPath);
140704
+ recheckOk = stat2.isDirectory();
140705
+ } catch {
140706
+ }
140707
+ } else if (check2.name === "yaml:workflow") {
140708
+ recheckOk = (await checkWorkflowYaml(dataDir)).severity === "ok";
140709
+ } else if (check2.name === "json:projects") {
140710
+ recheckOk = (await checkProjectsJson(dataDir)).severity === "ok";
140711
+ }
140712
+ if (recheckOk) {
140713
+ check2.fixed = true;
140714
+ check2.severity = "ok";
140715
+ check2.message += " (fixed)";
140716
+ fixed++;
140701
140717
  }
140702
140718
  }
140703
140719
  } catch {