-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdemo.tape
More file actions
63 lines (53 loc) · 1.47 KB
/
Copy pathdemo.tape
File metadata and controls
63 lines (53 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# demo.tape — generates the README demo GIF.
#
# vhs demo.tape # writes demo.gif in the repo root
#
# Requires:
# - vhs https://github.com/charmbracelet/vhs (brew install vhs)
# - patent on PATH (cargo install --path .)
# - Ollama running for the full AI verdict (`ollama serve`); without it the
# TUI still renders with a similarity-only verdict, or add `--fast` below.
#
# The GIF is served to the README via its raw.githubusercontent.com URL, so
# commit demo.gif after generating it. It's excluded from the crate tarball.
Output demo.gif
Set Shell "bash"
Set FontSize 18
Set Width 1200
Set Height 720
Set Padding 24
Set Theme "Dracula"
# Let the prompt settle before typing.
Sleep 1s
Type `patent "interactive cli to kill whatever's on a port"`
Sleep 600ms
Enter
# Search → ranking → verdict happen off-screen (Hide) so the README loop isn't
# half spinner. The command + Enter stay visible above; the TUI just appears.
# Bump the sleep if your machine or model is slower (warm ~5.5s, cold ~9s).
Hide
Sleep 10s
Show
# Scroll through the ranked matches.
Down@350ms 5
Sleep 700ms
# Enter opens the detail popup — full description, popularity, and URL.
Enter
Sleep 2800ms
Escape
Sleep 500ms
# `s` re-ranks: similarity → popularity → name (watch the table title).
Type "s"
Sleep 1600ms
Type "s"
Sleep 1600ms
Type "s"
Sleep 1000ms
# Peek at the keybindings overlay, then close it.
Type "?"
Sleep 2200ms
Escape
Sleep 500ms
# Quit cleanly.
Type "q"
Sleep 1s