Build the plain-text output for the --version CLI flag.
Includes the CLI and SDK versions and any installed optional dependencies. For editable installs it also reports the source path and the resolved versions of the core LangChain-ecosystem dependencies.
Reports the same version facts as the /version slash command, in the
same section order (versions, editable path, core dependencies, optional
dependencies), but omits its network-dependent release-age suffixes and
update-available hint so --version stays offline.