Loading...
Loading...
Background knowledge for droid-control workflows -- not invoked directly. Tuistory driver mechanics for terminal TUI automation via virtual PTY.
npx skill4agent add factory-ai/factory-plugins tuistorywaitwait-idlenpm install -g tuistory # or: bun add -g tuistorytmuxasciinemaagg.cast.gifTCTL=${DROID_PLUGIN_ROOT}/bin/tctl
$TCTL launch "droid-dev" -s demo --backend tuistory \
--repo-root /path/to/worktree \
--cols 120 --rows 36 \
--env FORCE_COLOR=3 --env COLORTERM=truecolor
$TCTL -s demo wait ">" --timeout 15000
$TCTL -s demo type "hello"
$TCTL -s demo press enter
$TCTL -s demo snapshot --trim
$TCTL -s demo close--repo-rootdroid-devtctl--env FORCE_COLOR=3 --env COLORTERM=truecolor| Command | Purpose |
|---|---|
| Start a tuistory session |
| Send literal text |
| Send key chord (e.g., |
| Block until text or |
| Block until output stabilizes |
| Print cleaned text ( |
| Tear down session |
--cols <n>--rows <n>--cwd <path>--env KEY=VALUE--record <path>--recordtctlasciinema rectuistory$TCTL launch "droid-dev" -s demo --backend tuistory \
--repo-root /path/to/worktree \
--cols 120 --rows 36 --record /tmp/demo.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolor
# ... interact ...
$TCTL -s demo close # finalizes the .cast$TCTL launch "droid-dev" -s before --backend tuistory \
--repo-root /path/to/baseline-worktree \
--cols 120 --rows 36 --record /tmp/before.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolor
$TCTL launch "droid-dev" -s after --backend tuistory \
--repo-root /path/to/candidate-worktree \
--cols 120 --rows 36 --record /tmp/after.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolorasciinema play /tmp/demo.cast--tmuxtctlTERM=xterm-256colordefault-terminal=tmux-256colorterminal-features=...,xterm-256color:RGBterminal-overrides=...,xterm-256color:TcCOLORTERM=truecolorset-environmentescape-time=50mode-keys=victrl-b [g gshift-gctrl-uctrl-d/qesc$TCTL launch "droid-dev" -s demo --backend tuistory --tmux \
--repo-root /path/to/worktree \
--cols 120 --rows 36 --record /tmp/demo.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolorasciinema recasciinema rectctl --recordasciinema recasciinema recwaitsnapshotclosetuistory launchtuistory--record--backend--repo-root--envtuistory-relaytctl$TCTL -s demo press esc # bail out of a stuck dialog
$TCTL -s demo snapshot --trim # check visible state
$TCTL -s demo close # hard resettctltuistorytuistory--cols--rows-s--record--backend--repo-root--env--tmuxtuistory launch "my-tui-app" -s demo --cols 120 --rows 36
tuistory -s demo wait ">" --timeout 15000
tuistory -s demo snapshot --trim
tuistory -s demo close