mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
install --json: logo, spinners, and step output leaked to stdout, corrupting machine-parseable JSON. Add suppressUIToStderr() around the entire install flow, restoring stdout before writing JSON. diff --project --json: spinner and progress display polluted stdout. Skip spinner and progress creation in JSON mode, matching the existing cmdDiffGlobal pattern. uninstall --json: five error paths (discovery failure, no skills found, glob detection, validation, preflight) returned plain-text errors instead of JSON error envelopes. Wrap each with writeJSONError(). Add 8 integration tests (5 new failure cases + 3 confirming existing behavior) with an assertPureJSON helper that validates stdout contains only valid JSON with no leading/trailing noise.