Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Simplify text recording by removing interactive tape validation
Maximilian Roos5d4c53d8f5b7
diff --git a/docs/demos/CLAUDE.md b/docs/demos/CLAUDE.mdindex d6b3f051a..353b0ee60 100644--- a/docs/demos/CLAUDE.md+++ b/docs/demos/CLAUDE.md@@ -24,8 +24,11 @@ Tape files use template variables (`{{FONTSIZE}}`, `{{WIDTH}}`, `{{HEIGHT}}`) so```bash./docs/demos/build docs # Doc site demos (1600x900, light + dark)./docs/demos/build social # Social media demos (1200x700, light only)+./docs/demos/build docs --text # Text output instead of GIFs```+Text output captures terminal frames as plain text. Works for all demos, though interactive demos (TUI navigation, Zellij tabs) produce less useful output since the visual interactions don't translate to text.+Regenerate a single demo:```bashdiff --git a/docs/demos/build b/docs/demos/buildindex 71e56f460..70d39e392 100755--- a/docs/demos/build+++ b/docs/demos/build@@ -32,7 +32,7 @@ from shared import (setup_claude_code_config, setup_zellij_config, setup_fish_config,check_dependencies, setup_demo_output, record_all_themes,SIZE_DOCS, SIZE_SOCIAL,- is_interactive_tape, record_text, build_tape_replacements,+ record_text, build_tape_replacements,)REPO_ROOT = SCRIPT_DIR.parent.parent@@ -313,8 +313,6 @@ def record_demo(if not tape_path.exists():raise FileNotFoundError(f"{tape_file} not found")- if text_mode and is_interactive_tape(tape_path):- raise ValueError("interactive demo (has TUI/Zellij)")vhs_binary = VHS_KEYSTROKES if vhs_type == "vhs-keystrokes" else "vhs"@@ -375,7 +373,7 @@ Examples:./build docs Build all doc site demos (light + dark)./build social Build all social media demos (light only)./build docs --only wt-merge Build specific demo for docs- ./build docs --text Build text output for non-interactive demos+ ./build docs --text Build text output instead of GIFs./build social --only wt-zellij-omnibus --shell Debug shell for demo""")@@ -385,7 +383,7 @@ Examples:parser.add_argument("--shell", action="store_true",help="Build demo and spawn interactive shell for debugging (requires --only)")parser.add_argument("--text", action="store_true",- help="Record text output instead of GIFs (skips interactive demos)")+ help="Record text output instead of GIFs")parser.add_argument("--sequential", action="store_true",help="Record demos sequentially instead of in parallel")args = parser.parse_args()diff --git a/docs/demos/shared/lib.py b/docs/demos/shared/lib.pyindex 2fe2febbd..79e35d3ef 100644--- a/docs/demos/shared/lib.py+++ b/docs/demos/shared/lib.py@@ -740,12 +740,9 @@ def record_text(vhs_binary: VHS binary to useRaises:- ValueError: If tape is interactive (caller should check first)subprocess.CalledProcessError: If VHS failsRuntimeError: If VHS succeeds but output file not created"""- if is_interactive_tape(tape_path):- raise ValueError(f"Cannot record text for interactive tape: {tape_path}")# Render tape with variable substitutionrendered = render_tape(tape_path, replacements, repo_root)