Skip to content

v1.3.0 — Local-direct execution

Latest

Choose a tag to compare

@devload devload released this 15 Apr 07:55
· 1 commit to main since this release

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());