-
Notifications
You must be signed in to change notification settings - Fork 268
docs: Add readme demo #265
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
482f314
feat: add --pretty search output and an indexing progress bar
Pringled ec311f9
docs: add a "See it in action" demo GIF to the README
Pringled fe7af96
chore: commit the VHS scripts that generate the demo GIFs
Pringled eee0b8c
Merge remote-tracking branch 'origin/main' into add-readme-demo
Pringled 43edff9
Merge remote-tracking branch 'origin/main' into add-readme-demo
Pringled a0db372
chore: move demo tapes to scripts/demo and add a runnable record script
Pringled c96d1ea
feat: switch README demo to pydantic and smooth the indexing progress…
Pringled 7cc5de9
chore: shrink README demo terminal to 672px
Pringled 0122f55
docs: place demo GIF under the README intro
Pringled 47d91e5
docs: point README demo GIFs at main like the other images
Pringled b8f170d
feat: show installer paths relative to ~ and re-record the demo
Pringled a2645ec
chore: rename README demo GIFs from tour-* to demo-*
Pringled File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| Output "assets/images/demo-dark.gif" | ||
|
|
||
| Set Shell "bash" | ||
| Set FontSize 18 | ||
| Set Width 1200 | ||
| Set Height 672 | ||
| Set Theme "Catppuccin Mocha" | ||
| Set Padding 20 | ||
| Set Margin 30 | ||
| Set MarginFill "#11111b" | ||
| Set BorderRadius 12 | ||
| Set WindowBar Colorful | ||
| Set WindowBarSize 36 | ||
| Set TypingSpeed 45ms | ||
|
|
||
| Hide | ||
| Type "exec env -i HOME=$DEMO_HOME PATH=$SEMBLE_BIN_DIR:/usr/bin:/bin TERM=xterm-256color /bin/bash --norc --noprofile" | ||
| Enter | ||
| Sleep 800ms | ||
| Type "cd $HOME; PS1='$ '; clear" | ||
| Enter | ||
| Sleep 300ms | ||
| Show | ||
|
|
||
| Type "semble install" | ||
| Enter | ||
| Sleep 1200ms | ||
| Enter | ||
| Sleep 500ms | ||
| Enter | ||
| Sleep 500ms | ||
| Enter | ||
| Sleep 2200ms | ||
|
|
||
| Hide | ||
| Type "clear" | ||
| Enter | ||
| Sleep 300ms | ||
| Show | ||
|
|
||
| Type "cd pydantic" | ||
| Enter | ||
| Sleep 600ms | ||
|
|
||
| Type@25ms `semble search "Where is snake_case converted to camelCase?" -k 1 --format text` | ||
| Enter | ||
| Wait@60s /\$\s*$/ | ||
| Sleep 3500ms | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| Output "assets/images/demo-light.gif" | ||
|
|
||
| Set Shell "bash" | ||
| Set FontSize 18 | ||
| Set Width 1200 | ||
| Set Height 672 | ||
| Set Theme "Catppuccin Latte" | ||
| Set Padding 20 | ||
| Set Margin 30 | ||
| Set MarginFill "#eff1f5" | ||
| Set BorderRadius 12 | ||
| Set WindowBar Colorful | ||
| Set WindowBarSize 36 | ||
| Set TypingSpeed 45ms | ||
|
|
||
| Hide | ||
| Type "exec env -i HOME=$DEMO_HOME PATH=$SEMBLE_BIN_DIR:/usr/bin:/bin TERM=xterm-256color /bin/bash --norc --noprofile" | ||
| Enter | ||
| Sleep 800ms | ||
| Type "cd $HOME; PS1='$ '; clear" | ||
| Enter | ||
| Sleep 300ms | ||
| Show | ||
|
|
||
| Type "semble install" | ||
| Enter | ||
| Sleep 1200ms | ||
| Enter | ||
| Sleep 500ms | ||
| Enter | ||
| Sleep 500ms | ||
| Enter | ||
| Sleep 2200ms | ||
|
|
||
| Hide | ||
| Type "clear" | ||
| Enter | ||
| Sleep 300ms | ||
| Show | ||
|
|
||
| Type "cd pydantic" | ||
| Enter | ||
| Sleep 600ms | ||
|
|
||
| Type@25ms `semble search "Where is snake_case converted to camelCase?" -k 1 --format text` | ||
| Enter | ||
| Wait@60s /\$\s*$/ | ||
| Sleep 3500ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| #!/usr/bin/env bash | ||
| # Records the README demo GIFs (assets/images/demo-{dark,light}.gif) from dark.tape and light.tape. | ||
| set -euo pipefail | ||
|
|
||
| cd "$(dirname "$0")/../.." | ||
| command -v vhs >/dev/null || { echo "vhs not found, install it with: brew install vhs" >&2; exit 1; } | ||
| [ -x .venv/bin/semble ] || { echo ".venv/bin/semble not found, run: make install" >&2; exit 1; } | ||
| export SEMBLE_BIN_DIR="$PWD/.venv/bin" | ||
|
|
||
| seed=$(mktemp -d) | ||
| dark=$(mktemp -d) | ||
| light=$(mktemp -d) | ||
| trap 'rm -rf "$seed" "$dark" "$light"' EXIT | ||
|
|
||
| # Create an isolated $HOME with agent config dirs so `semble install` detects some agents. | ||
| mkdir -p "$seed"/.claude "$seed"/.cursor "$seed"/.codex | ||
| git -c advice.detachedHead=false clone -q --depth 1 --branch v2.13.5 https://github.com/pydantic/pydantic "$seed/pydantic" | ||
| # Warm the model cache so the recording doesn't hit the network or print an HF Hub warning. | ||
| env -i HOME="$seed" PATH="$SEMBLE_BIN_DIR:/usr/bin:/bin" "$SEMBLE_BIN_DIR/semble" search x "$seed/pydantic" -k 1 >/dev/null | ||
|
|
||
| # Record the demo for both dark and light themes. Each home gets its own agent dirs and repo copy, but shares the | ||
| # seed's .cache: grammar dylibs load slowly the first time from a new path, which stalls the start of indexing. | ||
| for home in "$dark" "$light"; do | ||
| mkdir -p "$home"/.claude "$home"/.cursor "$home"/.codex | ||
| cp -R "$seed/pydantic" "$home/pydantic" | ||
| ln -s "$seed/.cache" "$home/.cache" | ||
| done | ||
| DEMO_HOME="$dark" vhs scripts/demo/dark.tape >/dev/null & | ||
| dark_pid=$! | ||
| DEMO_HOME="$light" vhs scripts/demo/light.tape >/dev/null & | ||
| light_pid=$! | ||
| wait "$dark_pid" | ||
| wait "$light_pid" | ||
|
Pringled marked this conversation as resolved.
|
||
| echo "Recorded assets/images/demo-dark.gif and assets/images/demo-light.gif" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.