Promise-based tmux client for Node-compatible runtimes.
Construct once with optional TmuxClientConfig, then call any command as
a method — each returns a Promise that resolves with the command's result or
rejects with a tagged error (TmuxServerNotRunning, TmuxTargetNotFound,
TmuxCommandError, TmuxParseError, TmuxCommandOptionsError,
TmuxClientConfigError, …). The constructor itself never throws; invalid
config surfaces as a TmuxClientConfigError rejection on the first command.
For the Effect-native API (no Promise boundary, typed error channel), use
TmuxClient.layer from tmux.ts/effect instead.
Promise-based tmux client for Node-compatible runtimes.
Construct once with optional TmuxClientConfig, then call any command as a method — each returns a
Promisethat resolves with the command's result or rejects with a tagged error (TmuxServerNotRunning,TmuxTargetNotFound,TmuxCommandError,TmuxParseError,TmuxCommandOptionsError,TmuxClientConfigError, …). The constructor itself never throws; invalid config surfaces as aTmuxClientConfigErrorrejection on the first command.For the Effect-native API (no Promise boundary, typed error channel), use
TmuxClient.layerfromtmux.ts/effectinstead.