jsonContract exists so a caller can check the shapes it was built against before trusting any other output. There is no way to read it.
$ omnideck --version
omnideck version dev (none) built unknown
Prose only, and it does not mention the contract at all. omnideck version is not a command.
Suggestion
Make --version --json emit the version, commit, build date and jsonContract. A consumer can then check one number at startup and refuse, or degrade, rather than misparsing output from a version it does not understand — which is the entire reason the constant is there.
jsonContractexists so a caller can check the shapes it was built against before trusting any other output. There is no way to read it.Prose only, and it does not mention the contract at all.
omnideck versionis not a command.Suggestion
Make
--version --jsonemit the version, commit, build date andjsonContract. A consumer can then check one number at startup and refuse, or degrade, rather than misparsing output from a version it does not understand — which is the entire reason the constant is there.