What's New
SessionCastLocal — one-shot local execution
String output = SessionCastLocal.execOnce(ExecSpec.of("ls -la"));
ScreenData.idle flag
idle() accessor on ScreenData record
- ScreenCapture passes idle state to handler
ScreenCapture.Builder pattern
ScreenCapture sc = ScreenCapture.builder(tmux)
.idleThreshold(Duration.ofSeconds(5))
.build();
Auto local mode
// token null → automatic local mode
var client = SessionCastClient.builder()
.machineId("my-machine")
.build();
client.exec("echo hello"); // runs locally via tmux
ExitPattern support
SessionCastLocal.execOnce(ExecSpec.builder()
.command("npm test")
.exitPattern("\\$\\s*$")
.build());