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, update status, core dependencies,
optional dependencies). Release-age suffixes stay omitted so --version
remains offline; update status comes only from the fresh local cache.