Bridge between external runners and the morie R command registry
Source:R/stat_bridge.R
morie_stat_bridge.RdR port of morie.stat_bridge. Exposes the same three modes
available on the Python side — registry enumeration, a formatted
help dump, and command execution — so an external runner (e.g.
the Go TIDE TUI, a shell pipeline) can drive morie's R surface via
Rscript -e 'rmorie::stat_bridge_main(...)'.
Details
Two layers are provided:
Programmatic helpers (
stat_bridge_registry_json,stat_bridge_help,stat_bridge_exec) callable from ordinary R code.A dispatcher (
stat_bridge_main) that mimics the command-line entry point of the Python module so the same invocation pattern works from either runtime.