-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat: asciinema recordings setup #8154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 issues found across 3 files
Prompt for AI agents (all 2 issues)
Understand the root cause of the following 2 issues and fix them.
<file name=".github/workflows/runloop-blueprint-template.json">
<violation number="1" location=".github/workflows/runloop-blueprint-template.json:7">
Add the -y flag to this apt install command so the workflow doesn't block waiting for interactive confirmation.</violation>
</file>
<file name="extensions/cli/demo.expect">
<violation number="1" location="extensions/cli/demo.expect:11">
Running `npm run start` here resolves to the repo-root package.json, which has no start script, so the TUI never starts when this script executes from the root. Please target the CLI package before starting the recording.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
| "sudo apt update", | ||
| "sudo apt install -y ripgrep" | ||
| "sudo apt install -y ripgrep", | ||
| "sudo apt install asciinema" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the -y flag to this apt install command so the workflow doesn't block waiting for interactive confirmation.
Prompt for AI agents
Address the following comment on .github/workflows/runloop-blueprint-template.json at line 7:
<comment>Add the -y flag to this apt install command so the workflow doesn't block waiting for interactive confirmation.</comment>
<file context>
@@ -3,6 +3,7 @@
"sudo apt update",
- "sudo apt install -y ripgrep"
+ "sudo apt install -y ripgrep",
+ "sudo apt install asciinema"
]
}
</file context>
| "sudo apt install asciinema" | |
| "sudo apt install -y asciinema" |
| 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'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running npm run start here resolves to the repo-root package.json, which has no start script, so the TUI never starts when this script executes from the root. Please target the CLI package before starting the recording.
Prompt for AI agents
Address the following comment on extensions/cli/demo.expect at line 11:
<comment>Running `npm run start` here resolves to the repo-root package.json, which has no start script, so the TUI never starts when this script executes from the root. Please target the CLI package before starting the recording.</comment>
<file context>
@@ -0,0 +1,36 @@
+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
</file context>
| spawn bash -c "asciinema rec --overwrite demo.cast -c 'npm run start'" | |
| spawn bash -c "asciinema rec --overwrite demo.cast -c 'npm --prefix extensions/cli run start'" |
|
🎉 This PR is included in version 1.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.28.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
scripts necessary for this workflow to work: https://hub.continue.dev/continuedev/asciinema-recording
Summary by cubic
Sets up automated asciinema recording for the Continue CLI/TUI so we can generate consistent terminal demos. Adds an Expect script to drive the TUI and produce a demo.cast.
New Features
Dependencies