For certain actions in the TUI, CLI commands are constructed and executed. This creates a tight-coupling where the TUI breaks when CLI contracts change. Investigate where these couplings exist and construct a shared toolchain (crate, etc) that provides Rust interfaces for the functions that the CLI and TUI can both use to minimize one interface breaking the other.