Run one herdr CLI command scoped to session and return the parsed JSON result.
Every invocation carries --session explicitly so no call can ever hit the ambient/default
Herdr session. A JSON {error} becomes a HerdrCliError; missing/non-JSON output
throws — except for void: true commands (send-keys, report-metadata), which herdr
acknowledges with a bare exit 0 and no output.
Run one herdr CLI command scoped to
sessionand return the parsed JSONresult. Every invocation carries--sessionexplicitly so no call can ever hit the ambient/default Herdr session. A JSON{error}becomes a HerdrCliError; missing/non-JSON output throws — except forvoid: truecommands (send-keys, report-metadata), which herdr acknowledges with a bare exit 0 and no output.