Skip to main content

cli_version_event

Function cli_version_event 

Source
pub fn cli_version_event(version: &ResolvedVersion) -> Event
Expand description

Wrap a resolved version response in a protocol result event.

This delegates to crate::build_cli_version rather than assembling its own payload. There is one version shape — {code, name, version} plus display_name/build when the registry carries them — and it is the same one the Go, Python, and TypeScript SDKs emit.