humanish 0.56.0 → 0.57.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/run.d.ts CHANGED
@@ -1045,6 +1045,15 @@ export interface DoctorResult {
1045
1045
  name: string;
1046
1046
  ok: boolean;
1047
1047
  message: string;
1048
+ /**
1049
+ * ADDITIVE + OPTIONAL. `false` means the check never ran — the directory could not be read, so
1050
+ * there is nothing to report about it either way. Absent means it ran and `ok` is its verdict.
1051
+ *
1052
+ * It exists because a failed check and an unrun one used to render identically, and the unrun
1053
+ * rows carried the SUCCESS text: a participant read `missing package.json: package.json is
1054
+ * present and safe to read` off a real screen (labs/tui-self-study.yaml).
1055
+ */
1056
+ checked?: boolean;
1048
1057
  }>;
1049
1058
  }
1050
1059
  /**
package/dist/run.js CHANGED
@@ -2960,10 +2960,10 @@ export async function doctor(cwdInput) {
2960
2960
  const cwdOk = await validateCwd(cwd).then((error) => error === null).catch(() => false);
2961
2961
  if (!cwdOk) {
2962
2962
  const checks = [
2963
- { name: "target cwd", ok: false, message: "target directory exists" },
2964
- { name: "package.json", ok: false, message: "package.json is present and safe to read" },
2965
- { name: "humanish source", ok: false, message: "committed humanish/ source directory is present and safe to read" },
2966
- { name: "runtime ignore", ok: false, message: ".gitignore safely contains .humanish/" }
2963
+ { name: "target cwd", ok: false, message: "this directory does not exist, or humanish cannot read it" },
2964
+ { name: "package.json", ok: false, checked: false, message: "not checked the target directory could not be read" },
2965
+ { name: "humanish source", ok: false, checked: false, message: "not checked the target directory could not be read" },
2966
+ { name: "runtime ignore", ok: false, checked: false, message: "not checked the target directory could not be read" }
2967
2967
  ];
2968
2968
  return { schema: DOCTOR_SCHEMA, ok: false, cwd, checks };
2969
2969
  }
@@ -2974,9 +2974,9 @@ export async function doctor(cwdInput) {
2974
2974
  catch {
2975
2975
  const checks = [
2976
2976
  { name: "target cwd", ok: false, message: "target directory failed containment validation" },
2977
- { name: "package.json", ok: false, message: "package.json is present and safe to read" },
2978
- { name: "humanish source", ok: false, message: "committed humanish/ source directory is present and safe to read" },
2979
- { name: "runtime ignore", ok: false, message: ".gitignore safely contains .humanish/" }
2977
+ { name: "package.json", ok: false, checked: false, message: "not checked containment validation failed first" },
2978
+ { name: "humanish source", ok: false, checked: false, message: "not checked containment validation failed first" },
2979
+ { name: "runtime ignore", ok: false, checked: false, message: "not checked containment validation failed first" }
2980
2980
  ];
2981
2981
  return { schema: DOCTOR_SCHEMA, ok: false, cwd, checks };
2982
2982
  }