defaultRunRemediation
defaultRunRemediation(
cmd,timeoutMs?):Promise<void>
Defined in: src/diagnostics.ts:81
Default runRemediation: spawn the verbatim command in its OWN process group
(detached), drain stdout/stderr into a bounded sink (so a noisy install can’t
ENOBUFS or block on a full pipe), and SIGKILL the whole group on timeout. Resolves
on exit 0, rejects otherwise — the rejection message is generic (no captured
output / paths / identity ever reaches the caller). timeoutMs is injectable so
tests can exercise the timeout/group-kill path without waiting the real budget.
Parameters
Section titled “Parameters”string
timeoutMs?
Section titled “timeoutMs?”number = REMEDIATION_TIMEOUT_MS
Returns
Section titled “Returns”Promise<void>