Demonstrates all three execution styles:
execStreamfor live stdout/stderr streamingexecPipefor bidirectional stdin/stdout/stderr without PTYexecInteractivefor an interactive PTY shell
From the repository root:
cd examples/typescript/exec_modes
npm install
npm run start- The interactive section requires a TTY (
process.stdin.isTTYandprocess.stdout.isTTY). - In non-interactive environments, the script still runs stream + pipe and skips interactive mode.
- This example imports the local SDK source from
sdk/typescript/srcso it tracks unreleased APIs in this repo. - If your PATH
matchlockis an older release, setMATCHLOCK_BINto your local build (for exampleMATCHLOCK_BIN=../../../bin/matchlock npm run start).