feat: asciinema recordings setup (#8154)
This commit is contained in:
parent
12a2acd874
commit
8b10f1dd46
3 changed files with 41 additions and 1 deletions
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
3
extensions/cli/.gitignore
vendored
3
extensions/cli/.gitignore
vendored
|
|
@ -11,3 +11,6 @@ chat.log
|
|||
config.yaml
|
||||
|
||||
.continue-debug/
|
||||
|
||||
*.expect
|
||||
!demo.expect
|
||||
36
extensions/cli/demo.expect
Normal file
36
extensions/cli/demo.expect
Normal 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
|
||||
Loading…
Add table
Reference in a new issue