MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / buildDoctorReport

Function buildDoctorReport

packages/cli/src/commands/doctor.ts:218–226  ·  view source on GitHub ↗
(outcomes: CheckOutcome[], options: { redact?: boolean } = {})

Source from the content-addressed store, hash-verified

216 * the CLI turns it on for `--json` output.
217 */
218export function buildDoctorReport(outcomes: CheckOutcome[], options: { redact?: boolean } = {}) {
219 const checks = options.redact ? outcomes.map(redactOutcome) : outcomes;
220 return withMeta({
221 ok: checks.every((o) => o.ok),
222 platform: process.platform,
223 arch: process.arch,
224 checks,
225 });
226}
227
228export default defineCommand({
229 meta: { name: "doctor", description: "Check system dependencies and environment" },

Callers 2

runFunction · 0.85
doctor.test.tsFile · 0.85

Calls 1

withMetaFunction · 0.85

Tested by

no test coverage detected