From 8b10f1dd46222b10759cce445644a6f4baabcfad Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Wed, 8 Oct 2025 22:08:17 -0700 Subject: [PATCH] feat: asciinema recordings setup (#8154) --- .../workflows/runloop-blueprint-template.json | 3 +- extensions/cli/.gitignore | 3 ++ extensions/cli/demo.expect | 36 +++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 extensions/cli/demo.expect diff --git a/.github/workflows/runloop-blueprint-template.json b/.github/workflows/runloop-blueprint-template.json index d0fcf57c1..244897cdd 100644 --- a/.github/workflows/runloop-blueprint-template.json +++ b/.github/workflows/runloop-blueprint-template.json @@ -3,6 +3,7 @@ "system_setup_commands": [ "npm i -g @continuedev/cli@latest", "sudo apt update", - "sudo apt install -y ripgrep" + "sudo apt install -y ripgrep", + "sudo apt install asciinema" ] } diff --git a/extensions/cli/.gitignore b/extensions/cli/.gitignore index dc3410527..f3e655274 100644 --- a/extensions/cli/.gitignore +++ b/extensions/cli/.gitignore @@ -11,3 +11,6 @@ chat.log config.yaml .continue-debug/ + +*.expect +!demo.expect \ No newline at end of file diff --git a/extensions/cli/demo.expect b/extensions/cli/demo.expect new file mode 100644 index 000000000..e762df796 --- /dev/null +++ b/extensions/cli/demo.expect @@ -0,0 +1,36 @@ +#!/usr/bin/expect -f +# Automated demo script for Continue TUI + +set timeout 30 +log_user 1 + +# Set terminal environment for better TUI rendering +set env(TERM) "xterm-256color" + +# Spawn cn directly inside an asciinema recording session +spawn bash -c "asciinema rec --overwrite demo.cast -c 'npm run start'" + +# Wait for TUI to load +sleep 5 + +# Demo interaction 1: Show help +send "?" +sleep 3 + +# Demo interaction 2: Close help +send "?" +sleep 2 + +# Demo interaction 3: Type a message +send "Hello, this is a demo!" +sleep 1 + +# Submit the message +send "\r" +sleep 3 + +# Exit the application with Ctrl+C +send "\x03" +sleep 1 + +expect eof