Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Extract shared VHS tape setup into reusable Source files
Maximilian Roos88734db48f3d
diff --git a/docs/demos/build b/docs/demos/buildindex 2149cada9..7abc60247 100755--- a/docs/demos/build+++ b/docs/demos/build@@ -333,7 +333,7 @@ def record_demo(if text_mode:output_txt = mode_out_dir / f"{output_name}.txt"- record_text(env, tape_path, output_txt, replacements)+ record_text(env, tape_path, output_txt, replacements, REPO_ROOT)print(f"✓ {output_name}: Text saved to {output_txt}")else:output_gifs = {}diff --git a/docs/demos/shared/lib.py b/docs/demos/shared/lib.pyindex 3b8e5aa2e..8114c77bf 100644--- a/docs/demos/shared/lib.py+++ b/docs/demos/shared/lib.py@@ -84,27 +84,34 @@ def git(args, cwd=None, env=None):run(["git"] + args, cwd=cwd, env=env)-def render_tape(template_path: Path, output_path: Path, replacements: dict) -> bool:- """Render a VHS tape template with variable substitutions.+def render_tape(template_path: Path, replacements: dict, repo_root: Path) -> str | None:+ """Render a VHS tape template with Source inlining and variable substitutions.Args:template_path: Path to the .tape template file- output_path: Path to write the rendered .tape filereplacements: Dict of {{VAR}} -> value replacements+ repo_root: Root of the repository (for resolving Source paths)Returns:- True if successful, False if template doesn't exist+ Rendered tape content, or None if template doesn't exist"""if not template_path.exists():print(f"Warning: {template_path} not found, skipping VHS recording")- return False+ return None- template = template_path.read_text()- rendered = template+ rendered = template_path.read_text()++ # Inline Source directives (VHS doesn't support them, we handle it)+ def inline_source(match):+ source_path = repo_root / match.group(1).strip().strip('"')+ return source_path.read_text()++ rendered = re.sub(r'^Source\s+(.+)$', inline_source, rendered, flags=re.MULTILINE)++ # Apply template variable replacementsfor key, value in replacements.items():rendered = rendered.replace(f"{{{{{key}}}}}", str(value))- output_path.write_text(rendered)- return True+ return rendereddef record_vhs(tape_path: Path, vhs_binary: str = "vhs"):@@ -713,23 +720,21 @@ def record_text(demo_env: DemoEnv,tape_path: Path,output_txt: Path,- replacements: dict = None,+ replacements: dict,+ repo_root: Path,vhs_binary: str = "vhs",) -> None:"""Record text output by rendering tape via VHS.Uses VHS with .txt output to capture authentic shell session including- real prompts and command output. The output contains frame-by-frame- terminal snapshots separated by 80-char lines of dashes.-- Note: VHS text output is fixed at 80 characters wide regardless of- Set Width. Content wider than 80 chars will be truncated.+ real prompts and command output.Args:demo_env: Demo environmenttape_path: Path to VHS tape fileoutput_txt: Path to write text output- replacements: Template variable replacements (e.g., {{DEMO_REPO}} -> path)+ replacements: Template variable replacements+ repo_root: Root of the repository (for resolving Source paths)vhs_binary: VHS binary to useRaises:@@ -740,60 +745,29 @@ def record_text(if is_interactive_tape(tape_path):raise ValueError(f"Cannot record text for interactive tape: {tape_path}")- # Create a text-output tape by modifying the template- tape_content = tape_path.read_text()-- # Apply template replacements first- if replacements:- for key, value in replacements.items():- tape_content = tape_content.replace(f"{{{{{key}}}}}", str(value))+ # Render tape with variable substitution+ rendered = render_tape(tape_path, replacements, repo_root)+ if not rendered:+ raise RuntimeError(f"Failed to render tape: {tape_path}")- # Replace Output directive to use .txt (must be absolute path)+ # Modify for text outputtemp_txt = (demo_env.out_dir / ".text-output.txt").resolve()- tape_content = re.sub(- r'^Output\s+"[^"]+"',- f'Output "{temp_txt}"',- tape_content,- flags=re.MULTILINE,- )-- # VHS text output requires minimum 120x120 dimensions- tape_content = re.sub(- r'^Set Width .*$',- 'Set Width 120',- tape_content,- flags=re.MULTILINE,- )- tape_content = re.sub(- r'^Set Height .*$',- 'Set Height 120',- tape_content,- flags=re.MULTILINE,- )- # Remove visual settings not meaningful for text output- # Padding especially breaks text capture (reduces effective terminal width)+ rendered = re.sub(r'^Output\s+"[^"]+"', f'Output "{temp_txt}"', rendered, flags=re.MULTILINE)+ rendered = re.sub(r'^Set Width .*$', 'Set Width 120', rendered, flags=re.MULTILINE)+ rendered = re.sub(r'^Set Height .*$', 'Set Height 120', rendered, flags=re.MULTILINE)for setting in ["FontSize", "Theme", "Padding"]:- tape_content = re.sub(- rf'^Set {setting} .*$\n?',- '',- tape_content,- flags=re.MULTILINE,- )-- # Write rendered tape (resolve for consistent VHS execution)- tape_rendered = (demo_env.out_dir / ".text-rendered.tape").resolve()- tape_rendered.write_text(tape_content)+ rendered = re.sub(rf'^Set {setting} .*$\n?', '', rendered, flags=re.MULTILINE)- # Run VHS (let CalledProcessError propagate)+ # Write and run+ tape_rendered = (demo_env.out_dir / ".text-rendered.tape").resolve()+ tape_rendered.write_text(rendered)try:run([vhs_binary, str(tape_rendered)], check=True)finally:tape_rendered.unlink(missing_ok=True)- # Copy output to final locationif not temp_txt.exists():raise RuntimeError(f"VHS succeeded but output file not created: {temp_txt}")-shutil.copy(temp_txt, output_txt)temp_txt.unlink()@@ -812,12 +786,17 @@ SIZE_DOCS = DemoSize(width=1600, height=900, fontsize=24) # More content fordef build_tape_replacements(demo_env: DemoEnv, repo_root: Path) -> dict:- """Build base template variable replacements for tape rendering.+ """Build template variable replacements for tape rendering.Used by both GIF recording and text recording to ensure consistency.All paths are resolved to absolute paths for VHS compatibility.++ Tapes use Source directives for shared content:+ - Source shared-setup.tape: VHS Set directives (at top, before Output)+ - Source shared-commands.tape: Env vars and shell setup (after Require)"""starship_config = (demo_env.out_dir / "starship.toml").resolve()+return {"DEMO_REPO": demo_env.repo.resolve(),"DEMO_HOME": demo_env.home.resolve(),@@ -863,9 +842,11 @@ def record_all_themes("FONTSIZE": size.fontsize,}- if not render_tape(tape_template, tape_rendered, replacements):+ rendered = render_tape(tape_template, replacements, repo_root)+ if not rendered:continue+ tape_rendered.write_text(rendered)print(f"\nRecording {theme_name} GIF...")record_vhs(tape_rendered, vhs_binary)tape_rendered.unlink(missing_ok=True)diff --git a/docs/demos/tapes/shared-commands.tape b/docs/demos/tapes/shared-commands.tapenew file mode 100644index 000000000..28cad34d1--- /dev/null+++ b/docs/demos/tapes/shared-commands.tape@@ -0,0 +1,24 @@+# Environment variables and shell setup - Source after Require+Env GIT_TERMINAL_PROMPT "0"+Env DEMO_REPO "{{DEMO_REPO}}"+Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"+Env CARGO_HOME "{{REAL_HOME}}/.cargo"+Env HOME "{{DEMO_HOME}}"+Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"+Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"++Hide+Type "set -g fish_autosuggestion_enabled 0"+Enter+Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"+Enter+Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"+Enter+Type "starship init fish | source"+Enter+Type "wt config shell init fish | source"+Enter+Type "source ~/.config/fish/completions/wt.fish"+Enter+Type "cd $DEMO_REPO"+Enterdiff --git a/docs/demos/tapes/shared-setup.tape b/docs/demos/tapes/shared-setup.tapenew file mode 100644index 000000000..308f83732--- /dev/null+++ b/docs/demos/tapes/shared-setup.tape@@ -0,0 +1,12 @@+# VHS settings - must be at very top of tape before Output+Set Shell "fish"+Set FontSize {{FONTSIZE}}+Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"+Set Width {{WIDTH}}+Set Height {{HEIGHT}}+Set Theme {{THEME}}+Set Padding 18+Set LineHeight 1.12+Set TypingSpeed 28ms+Set CursorBlink false+Set Framerate 30diff --git a/docs/demos/tapes/wt-commit.tape b/docs/demos/tapes/wt-commit.tapeindex 98a3a4589..cfd8e5565 100644--- a/docs/demos/tapes/wt-commit.tape+++ b/docs/demos/tapes/wt-commit.tape@@ -1,41 +1,12 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"+Source docs/demos/tapes/shared-commands.tape-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-EnterType "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-core.tape b/docs/demos/tapes/wt-core.tapeindex 36a848281..5e762cb8b 100644--- a/docs/demos/tapes/wt-core.tape+++ b/docs/demos/tapes/wt-core.tape@@ -1,43 +1,12 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"+Source docs/demos/tapes/shared-commands.tape-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "source ~/.config/fish/completions/wt.fish"-Enter-Type "cd $DEMO_REPO"-EnterType "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-devserver.tape b/docs/demos/tapes/wt-devserver.tapeindex d45f0eff8..21debc56c 100644--- a/docs/demos/tapes/wt-devserver.tape+++ b/docs/demos/tapes/wt-devserver.tape@@ -1,41 +1,12 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"--Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-Enter+Source docs/demos/tapes/shared-commands.tape+Type "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-hooks.tape b/docs/demos/tapes/wt-hooks.tapeindex 211a1a594..ea07c3992 100644--- a/docs/demos/tapes/wt-hooks.tape+++ b/docs/demos/tapes/wt-hooks.tape@@ -1,41 +1,12 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"--Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-Enter+Source docs/demos/tapes/shared-commands.tape+Type "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-list-remove.tape b/docs/demos/tapes/wt-list-remove.tapeindex 5b16422cf..74e5c187f 100644--- a/docs/demos/tapes/wt-list-remove.tape+++ b/docs/demos/tapes/wt-list-remove.tape@@ -1,43 +1,12 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"+Source docs/demos/tapes/shared-commands.tape-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "source ~/.config/fish/completions/wt.fish"-Enter-Type "cd $DEMO_REPO"-EnterType "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-list.tape b/docs/demos/tapes/wt-list.tapeindex 23c96b3f6..c2e6337be 100644--- a/docs/demos/tapes/wt-list.tape+++ b/docs/demos/tapes/wt-list.tape@@ -1,41 +1,12 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"--Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-Enter+Source docs/demos/tapes/shared-commands.tape+Type "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-merge.tape b/docs/demos/tapes/wt-merge.tapeindex 40da0bcf3..005429f20 100644--- a/docs/demos/tapes/wt-merge.tape+++ b/docs/demos/tapes/wt-merge.tape@@ -1,43 +1,16 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30+Source docs/demos/tapes/shared-commands.tape-Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"Env NEXTEST_STATUS_LEVEL "none"Env NEXTEST_FINAL_STATUS_LEVEL "flaky"Env NEXTEST_NO_FAIL_FAST "1"-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-EnterType "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-select-short.tape b/docs/demos/tapes/wt-select-short.tapeindex c8b1e4fc1..31b1f91a0 100644--- a/docs/demos/tapes/wt-select-short.tape+++ b/docs/demos/tapes/wt-select-short.tape@@ -1,41 +1,12 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"+Source docs/demos/tapes/shared-commands.tape-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-EnterType "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-select.tape b/docs/demos/tapes/wt-select.tapeindex baf3c91ee..719e034a6 100644--- a/docs/demos/tapes/wt-select.tape+++ b/docs/demos/tapes/wt-select.tape@@ -1,40 +1,12 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"+Source docs/demos/tapes/shared-commands.tape-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-EnterType "clear"EnterSleep 500msdiff --git a/docs/demos/tapes/wt-statusline.tape b/docs/demos/tapes/wt-statusline.tapeindex caa60db88..8c1942819 100644--- a/docs/demos/tapes/wt-statusline.tape+++ b/docs/demos/tapes/wt-statusline.tape@@ -1,42 +1,14 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30+Source docs/demos/tapes/shared-commands.tape-Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"Env ANTHROPIC_API_KEY "{{ANTHROPIC_API_KEY}}"-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-Enter# Pre-install marketplace plugin before recordingType "claude plugin marketplace add anthropics/claude-plugins-official"Enterdiff --git a/docs/demos/tapes/wt-switch.tape b/docs/demos/tapes/wt-switch.tapeindex b10869fe7..830edd720 100644--- a/docs/demos/tapes/wt-switch.tape+++ b/docs/demos/tapes/wt-switch.tape@@ -1,42 +1,14 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"Require wtRequire git-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30+Source docs/demos/tapes/shared-commands.tape-Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"Env ANTHROPIC_API_KEY "{{ANTHROPIC_API_KEY}}"-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "cd $DEMO_REPO"-Enter# Pre-install marketplace plugin before recordingType "claude plugin marketplace add anthropics/claude-plugins-official"Enterdiff --git a/docs/demos/tapes/wt-zellij-omnibus.tape b/docs/demos/tapes/wt-zellij-omnibus.tapeindex 18c04faab..1064ca947 100644--- a/docs/demos/tapes/wt-zellij-omnibus.tape+++ b/docs/demos/tapes/wt-zellij-omnibus.tape@@ -1,3 +1,5 @@+Source docs/demos/tapes/shared-setup.tape+Output "{{OUTPUT_GIF}}"# OMNIBUS DEMO: Comprehensive worktrunk showcase@@ -31,46 +33,14 @@ Require wtRequire gitRequire zellij-Set Shell "fish"-Set FontSize {{FONTSIZE}}-Set FontFamily "Geist Mono, Berkeley Mono, Fira Code, JetBrains Mono, Menlo, Apple Color Emoji"-Set Width {{WIDTH}}-Set Height {{HEIGHT}}-Set Theme {{THEME}}-Set Padding 18-Set LineHeight 1.12-Set TypingSpeed 28ms-Set CursorBlink false-Set Framerate 30--Env DEMO_REPO "{{DEMO_REPO}}"-Env RUSTUP_HOME "{{REAL_HOME}}/.rustup"-Env CARGO_HOME "{{REAL_HOME}}/.cargo"-Env HOME "{{DEMO_HOME}}"-Env XDG_CONFIG_HOME "{{DEMO_HOME}}/.config"-Env STARSHIP_CONFIG "{{STARSHIP_CONFIG}}"-Env GIT_TERMINAL_PROMPT "0"+Source docs/demos/tapes/shared-commands.tape+Env ANTHROPIC_API_KEY "{{ANTHROPIC_API_KEY}}"-Hide-Type "set -g fish_autosuggestion_enabled 0"-Enter-Type "set -gx LANG en_US.UTF-8; set -gx LC_ALL en_US.UTF-8"-Enter-Type "set -gx PATH {{TARGET_DEBUG}} $HOME/bin $PATH"-Enter-Type "starship init fish | source"-Enter-Type "wt config shell init fish | source"-Enter-Type "source ~/.config/fish/completions/wt.fish"-Enter# Pre-install marketplace plugin before recordingType "claude plugin marketplace add anthropics/claude-plugins-official"EnterSleep 5s-Type "cd $DEMO_REPO"-Enter# Start Zellij before showingType "zellij"Enter