feat: asciinema recordings setup (#8154)

This commit is contained in:
Nate Sesti 2025-10-08 22:08:17 -07:00 • committed by GitHub
parent 12a2acd874
commit 8b10f1dd46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 41 additions and 1 deletions

View file

@ -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"
]
}

View file

@ -11,3 +11,6 @@ chat.log
config.yaml
.continue-debug/
*.expect
!demo.expect

View file

@ -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