Member Junction
    Preparing search index...

    Generates and saves comprehensive diagnostic reports.

    const generator = new ReportGenerator();
    const reportPath = await generator.Generate({
    Environment: diagnostics.Environment,
    InstallState: state.ToJSON(),
    EventLog: logger.Entries,
    TargetDir: '/path/to/install',
    Trigger: 'install-failure',
    });
    console.log(`Report saved to: ${reportPath}`);
    Index

    Constructors

    Methods

    • Check which key files exist in the target directory.

      Parameters

      • targetDir: string

        The install directory to check.

      Returns Promise<{ Description: string; Exists: boolean; Path: string }[]>

      Array of file checks with existence status.

    • 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.

      Parameters

      • targetDir: string

        The install directory to scan.

      Returns Promise<ConfigFileSnapshot[]>

      Array of config file snapshots for inclusion in the report.