Check which key files exist in the target directory.
The install directory to check.
Array of file checks with existence status.
Generate a markdown diagnostic report and save it to the target directory.
Collected diagnostic data for the report.
Absolute path to the generated report file.
Generate the markdown report content without saving to disk.
Collected diagnostic data for the report.
The full markdown string.
Redact sensitive fields from a config object.
The config to sanitize (not mutated).
A new object with sensitive values replaced by "[REDACTED]".
Snapshot all key configuration files with sensitive values redacted.
Reads .env, environment.ts, and mj.config.cjs files from both
the monorepo layout, redacting passwords and secrets.
The install directory to scan.
Array of config file snapshots for inclusion in the report.
Generates and saves comprehensive diagnostic reports.
Example