Skip to content

Commit 8b10f1d

Browse files
authored
feat: asciinema recordings setup (#8154)
1 parent 12a2acd commit 8b10f1d

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.github/workflows/runloop-blueprint-template.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"system_setup_commands": [
44
"npm i -g @continuedev/cli@latest",
55
"sudo apt update",
6-
"sudo apt install -y ripgrep"
6+
"sudo apt install -y ripgrep",
7+
"sudo apt install asciinema"
78
]
89
}

extensions/cli/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ chat.log
1111
config.yaml
1212

1313
.continue-debug/
14+
15+
*.expect
16+
!demo.expect

extensions/cli/demo.expect

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/expect -f
2+
# Automated demo script for Continue TUI
3+
4+
set timeout 30
5+
log_user 1
6+
7+
# Set terminal environment for better TUI rendering
8+
set env(TERM) "xterm-256color"
9+
10+
# Spawn cn directly inside an asciinema recording session
11+
spawn bash -c "asciinema rec --overwrite demo.cast -c 'npm run start'"
12+
13+
# Wait for TUI to load
14+
sleep 5
15+
16+
# Demo interaction 1: Show help
17+
send "?"
18+
sleep 3
19+
20+
# Demo interaction 2: Close help
21+
send "?"
22+
sleep 2
23+
24+
# Demo interaction 3: Type a message
25+
send "Hello, this is a demo!"
26+
sleep 1
27+
28+
# Submit the message
29+
send "\r"
30+
sleep 3
31+
32+
# Exit the application with Ctrl+C
33+
send "\x03"
34+
sleep 1
35+
36+
expect eof

0 commit comments

Comments
 (0)