fix(alibaba): quote a CLI's JSON error message, not its braces

bl failed with exit 3 and wrote its error as JSON on stderr: {"error": {"message": "No console access token found.", "hint": "Run `bl auth login --console`."}} and the failure reason took the body's first line, so the tray showed "bailian CLI failed (exit 3): {" — less useful than the exit code alone. A JSON body now contributes its error.message and error.hint (the action the user needs); a plain-text body keeps its first non-empty line; JSON without a message leaves the reason as the bare exit code. Mirrored in the TypeScript reference with tests on both.

c7211f29 parent ddcf76ec +64 −5
browse files