diff --git a/.claude/skills/screencast/SKILL.md b/.claude/skills/screencast/SKILL.md index 22058eb6bf..dab7b875b4 100644 --- a/.claude/skills/screencast/SKILL.md +++ b/.claude/skills/screencast/SKILL.md @@ -1,21 +1,45 @@ --- name: screencast -description: Make a short narrated video screencast of a Sheprd feature, recorded in a virtual Mac, voiced by ElevenLabs in English and French, in the classic and Moonframe windows, with a captioned cut for Twitter/X and an .srt for YouTube. Use when the user asks for a screencast, demo video, feature video, or a clip of what a release adds for Twitter/X, YouTube, or the website. +description: Make a short narrated video screencast of a Sheprd feature, recorded in a virtual Mac in the Moonframe window, voiced by ElevenLabs in English and French, with smooth pointer moves, click rings, a lower-third title, an .srt for YouTube, a captioned cut for Twitter/X, and a page on sheprd.org/features. Use when the user asks for a screencast, demo video, feature video, the basics tour, or a clip of what a release adds for Twitter/X, YouTube, or the website. --- # Feature screencasts -One feature, one video of 30 seconds at most, per window and language. The -tooling lives in `scripts/screencast/` (read its `README.md` first): a feature -file says what to do in the app and what to say, and `screencast.py` voices -it, records it once per window in the `agent-test` machine, and renders the -MP4s. Never record the user's own desktop: their display is shared and their -workspaces are private. +One feature, one video of about 30 seconds (the basics tour runs longer), in +the Moonframe window, in English and French. The tooling lives in +`scripts/screencast/` (read its `README.md` first). A feature is a steps file +and a transcript; `screencast.py` voices it, records it in the `screencast` +virtual Mac, and renders the MP4s; `website/tools/features.py` puts them on +the site. Never record or drive the user's own desktop: their display is +shared and their workspaces are private. + +## What every video looks like + +These are the owner's choices; keep them for every new video. + +- **Moonframe window only**, at 1920x1080, 60 fps, 16:9 with no bars. +- **No macOS menu bar**: the machine hides it (auto-hide Always), so the + window fills the frame. A video about a feature in a menu shows it for itself. +- **Pointer**: one size bigger than normal, and it glides to each target + (`machine/hover.c`), never jumps. +- **Clicks** show a thin ring that grows and fades, placed on the click + itself. A click that only gives a pane the keyboard before a shortcut is + `"quiet"` and shows none, so no ring appears for no visible reason. +- **Title**: a lower third at the bottom, white text with a soft shadow, no + box, during the first sentence. +- **Narration**: ElevenLabs `eleven_v4`, River in English, Julien in French + (native accents only), at speed 0.9 with a second's pause after each + sentence. No burned-in captions in the main cuts; the `.srt` is for YouTube. +- **Shortcuts**: when the narration says a macOS key, the Windows and Linux + keys show on screen in the narration's language. +- **Tidy window**: close splits, pages and dialogs once they have been shown, + so the window does not fill up. +- **Cover**: the page's still is a calm frame that shows the feature, picked + by `poster` (seconds) in `website/features.json`, never a frame mid-click. ## 1. Pick the feature -For a release, read what it adds, then agree on one feature per video with -the user: +For a release, read what it adds and agree on one feature per video: ```sh gh release view -R sheprd-labs/sheprd --json tagName,body -q '.tagName, .body' @@ -24,112 +48,105 @@ gh release view -R sheprd-labs/sheprd --json tagName,body -q '.tagName, .body' `design/sheprd-website/assets/features.js` lists every feature with a one-line description, which makes a good first narration line. -## 2. Put the build in the machine +## 2. Prepare the machine -The machine must run the build that has the feature, at -`/Users/admin/Apps/Sheprd.app`. Keep the one it replaces in `~/Apps/old`. +The `screencast` virtual Mac is reserved for this (pinned in repo memory); it +is made from the `screencast-base` image. Check it with `sheprd machine list` +(running, 2560x1440) and `sheprd machine agent screencast` (both permissions), +and take a screenshot: awake, unlocked, nothing else in front. Use the dev +app's `sheprd` (`$SHEPRD`), not an older one on PATH. -- **A published release:** download `sheprd-VERSION-macos-universal.app.tar.gz` - with `gh release download`, then push it in as below. -- **Unreleased `main`:** build outside a Git worktree, or the window shows a - worktree banner: `git archive HEAD | tar -x -C DIR`, symlink a warm - `target/` into `DIR`, then `just bundle` there. +```sh +set -a; source .envrc; set +a # ELEVENLABS_API_KEY; git-ignored, never print it +python3 scripts/screencast/machine/prepare.py --app target/release/Sheprd.app --sign-ins +``` -Push a file in through the agent: `base64 | split -a 4 -b 190000`, then per -chunk `sheprd machine exec agent-test -- sh -c 'printf %s "$1" | base64 -D >> -/tmp/Sheprd.zip' _ "$(cat CHUNK)"`. Compare `shasum` on both sides before -unpacking. Quit Sheprd in the machine first (bring it to the front with `open -~/Apps/Sheprd.app`, then `machine key agent-test cmd+q`). +`prepare.py` runs `machine/setup.sh` in the guest (no sleep or lock, hidden +menu bar and Dock, Claude Code and Codex, the scripted demo agent as +`~/.local/bin/gemini`, the `~/code/forecast` demo repo, Sheprd's settings), +installs the pointer helper, installs a build with `--app`, and copies Claude +and Codex sign-ins without refresh tokens (Claude's last a few hours). Build +the app outside a Git worktree, or it shows a worktree banner: `git archive +HEAD | tar -x -C DIR`, symlink a warm `target/` into `DIR`, `just bundle`. +The pointer size cannot be scripted (macOS protects it): set Accessibility > +Display > Pointer size one step up by hand once, then save a new image. -## 3. Check the machine +If the machine is lost, `sheprd machine new screencast --from screencast-base` +brings it back. Another session may run its own VM beside it; macOS allows two. -- `sheprd machine list`: `agent-test` running at 2560x1440. `sheprd machine - agent agent-test` answers with both permissions. -- Take a `machine screenshot` and look at it: awake, unlocked (password - `admin`), no Finder window or dialog in front, and no other session using - the machine. If another agent's build or tabs are there, ask before - replacing them. +## 3. Write the feature -## 4. Write the feature file +Two files in `scripts/screencast/features/`, copied from `themes.*`: -Copy `scripts/screencast/features/themes.json` to `features/NAME.json`: +- `NAME.md`, the transcript: `# Title`, a `fr:` line, then one `## N` section + per segment with `en:` and `fr:` lines. Edit it to change what is said. +- `NAME.json`, the steps: `setup` (reset state, open the demo; not recorded), + `segments` (one `actions` list per transcript section), `teardown`. -- `title`: shown over the first segment, per language. -- `setup`: puts the app in a known state before recording: reset what the - last run changed, open a clean terminal. Not recorded. -- `segments`: 4 to 6, each one sentence in `say` (en and fr, plus the other - languages' text so they are ready) and the `actions` shown while it plays: - `["key", "cmd+shift+p"]`, `["type", "text"]`, `["slowtype", "text", 0.05]`, - `["click", x, y]` in screenshot pixels, `["wait", seconds]`, - `["repeat", n, [actions]]`, `["exec", "shell command"]` run in the - machine (to reopen the app mid-take, for example). -- `"fill": false` skips Window > Fill when the window already fills the - screen (see Gotchas). -- `teardown`: undo what the video changed, such as the theme. +Set `"fill": false` when the window already fills the screen. -Narration: plain words a new user understands, the action before the result, -no keyboard-shortcut captions on visible buttons. Keep the total of the -longest takes under about 25 seconds; the script prints segment times. +Actions: `["key", "cmd+shift+p"]`, `["type", "text"]`, `["slowtype", "t", 0.05]`, +`["click", x, y]` (add `"right"` and/or `"quiet"`), `["hover", x, y]`, +`["wait", s]`, `["repeat", n, [...]]`, `["exec", "shell in the guest"]`. +Coordinates are the guest screenshot's pixels (2560x1440); a +`{"moonframe": [x, y]}` map stands in when windows differ. A segment saying a +macOS key gets `"shortcut": "ctrl-shift-p"`, looked up in +`crates/sheprd-commands/src/shortcuts/linux.rs` (Windows takes Linux's unless +`windows.rs` overrides); they are rarely just Cmd for Ctrl. -Work out every click position from a screenshot first, and walk the steps by -hand with `sheprd machine key/type/click` and a screenshot after each, before -recording. +Narrate what the viewer is about to see, in plain words, one idea per +sentence. Walk every step by hand with `machine click/key/type` and a +screenshot after each before recording, and again after any layout change +(the menu bar's height moves everything). -## 5. Record and render +## 4. Record and render ```sh -set -a; source .envrc; set +a # ELEVENLABS_API_KEY; .envrc is git-ignored python3 scripts/screencast/screencast.py scripts/screencast/features/NAME.json python3 scripts/screencast/screencast.py scripts/screencast/features/NAME.json \ - --skip-record --captions --langs en # the Twitter/X cut from the same take + --skip-record --captions --langs en # the Twitter/X cut from the same take ``` -The key lives in the `.envrc` of the checkout that made the first videos; -copy that line, never print the key. Defaults: both windows -(`--window classic,moonframe`), English and French, River in English and -Julien in French (`scripts/screencast/README.md`, Voices). Spoken lines are -cached, so re-renders cost no characters. - -Outputs, under `target/screencasts/WINDOW/elevenlabs-river/`: +A take: launch Sheprd fresh and Fill the window, run `setup`, start the +recorder, hide Sheprd for a moment as a sync mark (cut with the warm-up), play +the segments, run `teardown`, copy the movie out. A render takes seconds; +`--skip-record` re-renders after a transcript edit if each sentence still fits +its slot, and refuses otherwise. Outputs land in +`target/screencasts/moonframe/elevenlabs-river/NAME.LANG.mp4` and `.srt`. -| File | For | -| --- | --- | -| `NAME.LANG.mp4` | YouTube and the website, no captions | -| `NAME.LANG.srt` | YouTube's subtitle upload | -| `NAME.en.captioned.mp4` | Twitter/X, which autoplays muted | +## 5. Check before showing anyone -All are 1920x1080 H.264 with AAC, which Twitter/X, YouTube and the site take -as is. +- A contact sheet of the whole video: `ffmpeg -i OUT.mp4 -vf + "fps=1/2,scale=240:-1,tile=8x9" -frames:v 1 sheet.png`. +- Every click: the frames just before and after it, cropped around the + point. The ring must sit under the hand pointer as the element reacts, + never before the target appears or after it has gone. +- Nothing else on screen: no menu bar, Finder, dialog, lock screen, error, + or the user's data. If the app shows a bug, stop and report it (or hand it + to another agent) rather than recording around it. -## 6. Check before showing anyone - -Tile the video and look at every second against the narration: +## 6. Publish ```sh -ffmpeg -v error -i OUT.mp4 -vf "fps=1,scale=240:-1,tile=6x5" -frames:v 1 tile.png +cd website && python3 tools/features.py publish && python3 tools/features.py build +python3 tools/features.py posters # after changing a `poster` alone ``` -Each action must appear while its sentence plays, with nothing else on screen -(no Finder, dialog, or error in the status bar). If the app shows a bug, stop -and tell the user rather than recording around it. - -## 7. Hand it over - -Push the MP4s to the orphan `screencast-previews` branch (under -`FEATURE/WINDOW/`) and link the GitHub pages, which play on a phone. Posting to -Twitter/X or YouTube, or publishing the website, is the user's call: never do -it without their explicit go-ahead for that post. +Page copy, order and `poster` live in `website/features.json`; the tour is its +`tour` entry. Serve `website/site` locally to look (another session may hold +port 8765). Push previews to the orphan `screencast-previews` branch for the +phone. Videos are committed through Git LFS. Posting to Twitter/X or YouTube, +or deploying the site, is the user's call. ## Gotchas -- `screencapture -v` writes a frame only when the screen changes and its movie - ends at the last one; the script turns on the menu bar clock's seconds so it - keeps going. It can also take about ten seconds to start, which the script - waits for and trims. -- Command-Q and keys go to the front app: bring Sheprd to the front with - `open ~/Apps/Sheprd.app` before them. A click on the desktop raises Finder. -- After a dialog closes or the app relaunches, click inside the window - before typing. +- `screencapture -v` writes frames only on screen changes, drops its last + seconds when stopped, and can take seconds to start: the script keeps the + menu bar clock ticking, waits 16 s, and aligns on the sync mark, never on + the movie's end. +- Keys and Command-Q go to the front app: the script brings Sheprd forward + first. A click on the desktop raises Finder; after a dialog or relaunch, + click in the window before typing. - Window > Fill (`ctrl+fn+f`) maximizes; a title bar double-click toggles. Sheprd Agent can leave Control held after it, so every later click opens a context menu and typing sends control characters. Restart Sheprd Agent @@ -142,10 +159,13 @@ it without their explicit go-ahead for that post. left over as root; it comes forward whenever Sheprd quits. - A feature that needs a reboot is two feature files recorded on either side of it (`tmux-sessions.json`, `tmux-reboot.json`), joined afterwards. -- A theme set in a run sticks: `setup` must reset it. -- `machine exec` keeps only the last 64 KB of output and refuses `rm` inside - `sh -c`; truncate with `cp /dev/null FILE`. `osascript` hangs on a hidden - permission prompt: don't use it. -- Moonframe can draw with Rune only in apps written wholly in Luau. Sheprd's - terminals and pages are a GPUI view, so there is no Rune version of Sheprd - to record yet. +- After the pointer rests on the status bar's CPU meter, the next click on + the device footer is swallowed unless the pointer leaves the meter about + 3 s before (being fixed separately); move away right after pointing. +- Sheprd opens local pages only outside hidden folders, so demo pages come + from `~/code/forecast`, not a worktree under `~/.herdr`. +- The agent button starts the agent used last: setups run `sheprd chat new + gemini` first so the scripted agent answers. +- `machine exec` keeps the last 64 KB of output, refuses `rm` in `sh -c` + (use `cp /dev/null`), and sometimes drops a connection (the copy retries). + `osascript` hangs on a hidden permission prompt: avoid it. diff --git a/crates/sheprd-gpui/src/review/view/panels.rs b/crates/sheprd-gpui/src/review/view/panels.rs index ed568246c2..b1822c00cc 100644 --- a/crates/sheprd-gpui/src/review/view/panels.rs +++ b/crates/sheprd-gpui/src/review/view/panels.rs @@ -1,14 +1,14 @@ //! Whether a review shows its file list and its notes beside the diff. A -//! review narrower than `NARROW` gives the diff all its room until the user -//! says otherwise with the header's icons; a note being written always shows -//! the notes, so the composer is never hidden. +//! review narrower than `NARROW`, as on a laptop, gives the diff all its room +//! until the user says otherwise with the header's icons; a note being +//! written always shows the notes, so the composer is never hidden. use super::Review; use crate::{SheprdWindow, browser::TabId, i18n::fl}; use gpui::{prelude::*, *}; use std::{cell::Cell, rc::Rc}; /// Below this width, in pixels, a review starts with both panels hidden. -pub(super) const NARROW: f32 = 1000.; +pub(super) const NARROW: f32 = 1600.; /// A side panel of a review. #[derive(Clone, Copy, Debug, PartialEq, Eq)] diff --git a/crates/sheprd-gpui/src/review/view/tests.rs b/crates/sheprd-gpui/src/review/view/tests.rs index ca381cb515..17ded04252 100644 --- a/crates/sheprd-gpui/src/review/view/tests.rs +++ b/crates/sheprd-gpui/src/review/view/tests.rs @@ -246,6 +246,7 @@ mod en_xa; mod files; mod find_again; mod keys; +mod laptop_width; mod layout; mod loading; mod origin; diff --git a/crates/sheprd-gpui/src/review/view/tests/editor.rs b/crates/sheprd-gpui/src/review/view/tests/editor.rs index ee455bc309..e585a59425 100644 --- a/crates/sheprd-gpui/src/review/view/tests/editor.rs +++ b/crates/sheprd-gpui/src/review/view/tests/editor.rs @@ -85,7 +85,7 @@ fn a_clicked_line_opens_while_it_is_in_view(cx: &mut gpui::TestAppContext) { #[gpui::test] fn e_on_a_clicked_file_in_the_list_opens_that_file(cx: &mut gpui::TestAppContext) { let (view, cx) = window(cx, None); - cx.simulate_resize(gpui::size(gpui::px(1600.), gpui::px(900.))); + cx.simulate_resize(gpui::size(gpui::px(2200.), gpui::px(900.))); let files = super::files::many_files(); cx.update(|window, cx| view.update(cx, |view, cx| view.seed_review(files, window, cx))); draw(cx); @@ -110,7 +110,7 @@ fn e_on_a_clicked_file_in_the_list_opens_that_file(cx: &mut gpui::TestAppContext #[gpui::test] fn the_header_button_opens_its_file_but_a_deleted_file_has_none(cx: &mut gpui::TestAppContext) { let (view, cx) = window(cx, None); - cx.simulate_resize(gpui::size(gpui::px(1600.), gpui::px(900.))); + cx.simulate_resize(gpui::size(gpui::px(2200.), gpui::px(900.))); let diff = Diff::parse( "diff --git a/kept.rs b/kept.rs\n--- a/kept.rs\n+++ b/kept.rs\n@@ -1,1 +1,1 @@\n-a\n+b\n\ diff --git a/gone.rs b/gone.rs\ndeleted file mode 100644\n--- a/gone.rs\n+++ /dev/null\n\ diff --git a/crates/sheprd-gpui/src/review/view/tests/files.rs b/crates/sheprd-gpui/src/review/view/tests/files.rs index d2cdae6f0b..a512e740a7 100644 --- a/crates/sheprd-gpui/src/review/view/tests/files.rs +++ b/crates/sheprd-gpui/src/review/view/tests/files.rs @@ -33,7 +33,7 @@ pub(super) fn many_files() -> Loaded { #[gpui::test] fn clicking_a_file_brings_it_to_the_top_in_either_layout(cx: &mut gpui::TestAppContext) { let (view, cx) = window(cx, None); - cx.simulate_resize(gpui::size(px(1600.), px(900.))); + cx.simulate_resize(gpui::size(px(2200.), px(900.))); cx.update(|window, cx| view.update(cx, |view, cx| view.seed_review(many_files(), window, cx))); draw(cx); draw(cx); @@ -75,7 +75,7 @@ fn clicking_a_file_brings_it_to_the_top_in_either_layout(cx: &mut gpui::TestAppC #[gpui::test] fn folders_close_filters_narrow_and_viewed_files_fold(cx: &mut gpui::TestAppContext) { let (view, cx) = window(cx, None); - cx.simulate_resize(gpui::size(px(1600.), px(900.))); + cx.simulate_resize(gpui::size(px(2200.), px(900.))); cx.update(|window, cx| view.update(cx, |view, cx| view.seed_review(many_files(), window, cx))); draw(cx); // `src/` holds two files; closed, they leave the list. @@ -130,7 +130,7 @@ fn folders_close_filters_narrow_and_viewed_files_fold(cx: &mut gpui::TestAppCont #[gpui::test] fn the_arrows_pick_a_file_and_enter_shows_it(cx: &mut gpui::TestAppContext) { let (view, cx) = window(cx, None); - cx.simulate_resize(gpui::size(px(1600.), px(900.))); + cx.simulate_resize(gpui::size(px(2200.), px(900.))); cx.update(|window, cx| view.update(cx, |view, cx| view.seed_review(many_files(), window, cx))); draw(cx); let first = cx.debug_bounds("review-file-0").unwrap(); diff --git a/crates/sheprd-gpui/src/review/view/tests/laptop_width.rs b/crates/sheprd-gpui/src/review/view/tests/laptop_width.rs new file mode 100644 index 0000000000..8841950b78 --- /dev/null +++ b/crates/sheprd-gpui/src/review/view/tests/laptop_width.rs @@ -0,0 +1,23 @@ +use super::{changes, window}; + +fn draw(cx: &mut gpui::VisualTestContext) { + cx.update(|window, cx| crate::sidebar::layout_tests::full_draw(window, cx).clear(cx)); +} + +/// A laptop-sized window gives the diff all its room: both side panels +/// start hidden, as on a small screen, until the header's icons ask. +#[gpui::test] +fn a_laptop_wide_review_opens_on_the_diff_alone(cx: &mut gpui::TestAppContext) { + let (view, cx) = window(cx, None); + cx.simulate_resize(gpui::size(gpui::px(1280.), gpui::px(800.))); + cx.update(|window, cx| { + view.update(cx, |view, cx| { + view.seed_review(changes(), window, cx); + }) + }); + draw(cx); + draw(cx); + assert!(cx.debug_bounds("review-files").is_none()); + assert!(cx.debug_bounds("review-notes").is_none()); + assert!(cx.debug_bounds("review-toggle-files").is_some()); +} diff --git a/crates/sheprd-gpui/src/review/view/tests/resize.rs b/crates/sheprd-gpui/src/review/view/tests/resize.rs index a37fab1ef5..3d9ae80136 100644 --- a/crates/sheprd-gpui/src/review/view/tests/resize.rs +++ b/crates/sheprd-gpui/src/review/view/tests/resize.rs @@ -144,7 +144,7 @@ fn a_narrow_review_hides_its_panels_until_asked(cx: &mut gpui::TestAppContext) { #[gpui::test] fn a_wide_review_shows_its_panels_unless_hidden(cx: &mut gpui::TestAppContext) { let (view, cx) = window(cx, None); - cx.simulate_resize(gpui::size(px(1600.), px(900.))); + cx.simulate_resize(gpui::size(px(2200.), px(900.))); cx.update(|window, cx| { view.update(cx, |view, cx| { view.seed_review(changes(), window, cx); diff --git a/scripts/screencast/README.md b/scripts/screencast/README.md index 821c800172..e07bdcc58f 100644 --- a/scripts/screencast/README.md +++ b/scripts/screencast/README.md @@ -16,7 +16,9 @@ up. Add a window there (Rune is planned) with its arguments and the share of the screen its maximized window fills. - `features/NAME.json`: the steps Sheprd is driven through (`sheprd machine - key/type/click`) and the narration of each segment in every language. + key/type/click/exec`), one list per segment. +- `features/NAME.md`: the transcript: the title and each segment's sentence + in every language (`transcript.py`). Edit it to change what a video says. - `screencast.py`: voices every segment, records the machine once with each segment as long as its longest take, then renders `target/screencasts/WINDOW/elevenlabs-VOICE/NAME.LANG.mp4` and an `.srt` per @@ -29,6 +31,10 @@ Videos committed to the repository (the website's clips, for example) are stored with Git LFS (`.gitattributes`): run `git lfs install` once per machine before committing one. +A segment that names a macOS shortcut also carries `shortcut`, the Windows +and Linux keys (`"ctrl-shift-p"`, from `crates/sheprd-commands`), shown on +screen in the narration's language while it plays. + ## Voices Chosen by listening to tryouts on 2026-11-22. The model is `eleven_v4`, with diff --git a/scripts/screencast/features/agent-chat.json b/scripts/screencast/features/agent-chat.json new file mode 100644 index 0000000000..548e7e15d0 --- /dev/null +++ b/scripts/screencast/features/agent-chat.json @@ -0,0 +1,49 @@ +{ + "id": "agent-chat", + "feature": "ACP chats", + "windows": ["moonframe"], + "setup": [ + ["exec", "cd ~/code/forecast && git show HEAD:forecast.py > forecast.py"], + ["click", 1400, 680, "quiet"], + ["type", "cd ~/code/forecast && export PATH=\"$HOME/Apps/Sheprd.app/Contents/MacOS:$PATH\" && PS1='%1~ % ' && clear"], + ["key", "return"], + ["wait", 1] + ], + "segments": [ + {"actions": [ + ["click", 1300, 700, "quiet"], + ["type", "ls"], + ["key", "return"], + ["wait", 0.8], + ["hover", 920, 140] + ]}, + {"actions": [ + ["click", 655, 33], + ["wait", 2.5] + ]}, + {"actions": [ + ["click", 1025, 1314], + ["wait", 2], + ["click", 910, 1150], + ["wait", 2] + ]}, + {"actions": [ + ["click", 1230, 1250, "quiet"], + ["type", "Add a --json flag to the forecast command"], + ["wait", 0.5], + ["key", "return"] + ]}, + {"actions": [ + ["click", 655, 635], + ["wait", 1] + ]}, + {"actions": [ + ["hover", 1235, 944] + ]} + ], + "teardown": [ + ["click", 760, 33], + ["wait", 1] + ], + "click_offset": -0.24 +} diff --git a/scripts/screencast/features/agent-chat.md b/scripts/screencast/features/agent-chat.md new file mode 100644 index 0000000000..379cf6ee51 --- /dev/null +++ b/scripts/screencast/features/agent-chat.md @@ -0,0 +1,26 @@ +# Native agent chats +fr: Des chats natifs avec vos agents + +## 1 +en: Sheprd runs your coding agents in native chats, beside your terminal. +fr: Sheprd fait tourner vos agents de code dans de vrais chats, à côté de votre terminal. + +## 2 +en: Start one with the agent button, right next to the new tab button. +fr: Lancez-en un avec le bouton d'agent, juste à côté du bouton de nouvel onglet. + +## 3 +en: Switch agents any time: Claude, Codex, Gemini, or any other you have installed. +fr: Changez d'agent à tout moment : Claude, Codex, Gemini, ou tout autre agent installé. + +## 4 +en: Ask for what you need. The agent reads your code, makes the change and runs the tests. +fr: Demandez ce qu'il vous faut. L'agent lit votre code, fait la modification et lance les tests. + +## 5 +en: Every step is a card: what it read, the lines it changed, and what the tests said. +fr: Chaque étape est une carte : ce qu'il a lu, les lignes modifiées, et le résultat des tests. + +## 6 +en: And the answer arrives formatted, ready for you to review. +fr: Et la réponse arrive mise en forme, prête à être relue. diff --git a/scripts/screencast/features/automations.json b/scripts/screencast/features/automations.json new file mode 100644 index 0000000000..37f3c01c66 --- /dev/null +++ b/scripts/screencast/features/automations.json @@ -0,0 +1,43 @@ +{ + "id": "automations", + "feature": "Schedule the forecast tests", + "windows": ["moonframe"], + "setup": [ + ["exec", "cd ~/code/forecast && mkdir -p .herdr/automations && printf '%s\\n' 'herdr.caps { agents_per_run = 0, tokens_per_day = 0, wall_time = \"5m\" }' '' 'herdr.at(\"08:00\", function()' ' sh(\"python3 -m unittest\")' 'end)' > .herdr/automations/morning-tests.luau && ~/Apps/Sheprd.app/Contents/MacOS/sheprd-automate check .herdr/automations/morning-tests.luau && ~/Apps/Sheprd.app/Contents/MacOS/sheprd-automate repo add ."], + ["click", 1400, 680, "quiet"], + ["type", "cd ~/code/forecast && export PATH=\"$HOME/Apps/Sheprd.app/Contents/MacOS:$PATH\" && PS1='%1~ % ' && clear"], + ["key", "return"], + ["wait", 1] + ], + "segments": [ + {"actions": [ + ["click", 1300, 700, "quiet"], + ["type", "python3 -m unittest"], + ["key", "return"], + ["wait", 1], + ["hover", 750, 199] + ]}, + {"actions": [ + ["type", "cat .herdr/automations/morning-tests.luau"], + ["key", "return"], + ["wait", 1], + ["hover", 930, 448] + ]}, + {"actions": [ + ["click", 42, 473], + ["wait", 1.5], + ["click", 282, 301], + ["wait", 1], + ["hover", 980, 624] + ]}, + {"actions": [ + ["click", 2385, 272], + ["wait", 3.5], + ["click", 1524, 1013] + ]} + ], + "teardown": [ + ["click", 2516, 206], + ["click", 41, 115] + ] +} diff --git a/scripts/screencast/features/automations.md b/scripts/screencast/features/automations.md new file mode 100644 index 0000000000..53c8a10a0d --- /dev/null +++ b/scripts/screencast/features/automations.md @@ -0,0 +1,18 @@ +# Schedule the forecast tests +fr: Programmer les tests de prévisions + +## 1 +en: This project has a small test suite. A scheduled automation can run it each morning. +fr: Ce projet contient quelques tests. Une automatisation peut les lancer chaque matin. + +## 2 +en: The Luau file sets the time and names the test command. Both live with the project. +fr: Le fichier Luau indique l’heure et la commande de test. Ces deux réglages sont conservés dans le projet. + +## 3 +en: Open the automation to read the plan. Check the schedule and the command before approving it. +fr: Ouvrez l’automatisation pour lire le plan. Vérifiez l’horaire et la commande avant de donner votre accord. + +## 4 +en: Approval applies to this version of the script on this machine. Editing it asks for approval again. +fr: Votre accord vaut pour cette version du script sur cette machine. Si le script change, Sheprd redemande votre accord. diff --git a/scripts/screencast/features/browser-tabs.json b/scripts/screencast/features/browser-tabs.json new file mode 100644 index 0000000000..159a2e3534 --- /dev/null +++ b/scripts/screencast/features/browser-tabs.json @@ -0,0 +1,41 @@ +{ + "id": "browser-tabs", + "feature": "Browser annotations", + "windows": ["moonframe"], + "click_offset": -0.23, + "setup": [ + ["exec", "sed -i '' 's/background: #2f9e5b/background: #8a8f98/' ~/code/forecast/index.html && cd ~/code/forecast && ~/Apps/Sheprd.app/Contents/MacOS/sheprd chat new gemini"], + ["wait", 4] + ], + "segments": [ + {"actions": [ + ["type", "Show me the page preview"], + ["key", "return"], + ["wait", 3] + ]}, + {"actions": [ + ["click", 2400, 102], + ["wait", 0.9], + ["click", 1766, 927] + ]}, + {"actions": [ + ["type", "Make this button green"], + ["wait", 0.8], + ["click", 2040, 550] + ]}, + {"actions": [ + ["wait", 0.5], + ["click", 2064, 1356], + ["wait", 2] + ]}, + {"actions": [ + ["click", 2400, 102], + ["wait", 3.5], + ["click", 1758, 33] + ]} + ], + "teardown": [ + ["click", 760, 34], + ["exec", "sed -i '' 's/background: #2f9e5b/background: #8a8f98/' ~/code/forecast/index.html"] + ] +} diff --git a/scripts/screencast/features/browser-tabs.md b/scripts/screencast/features/browser-tabs.md new file mode 100644 index 0000000000..ff2b5efb3a --- /dev/null +++ b/scripts/screencast/features/browser-tabs.md @@ -0,0 +1,22 @@ +# Send feedback on a preview +fr: Annoter un aperçu pour l’agent + +## 1 +en: Ask for a preview to see the forecast page beside the chat. +fr: Demandez un aperçu pour voir la page de prévisions à côté du chat. + +## 2 +en: Choose Annotate, then click the button you want to change. +fr: Choisissez « Annotate », puis cliquez sur le bouton à modifier. + +## 3 +en: Describe the change and add the note. The number on the page marks the exact button. +fr: Décrivez la modification et ajoutez la note. Le numéro sur la page repère le bouton que vous avez choisi. + +## 4 +en: Send the note to the agent that opened the page. It gets your words along with the element you picked. +fr: Envoyez la note à l’agent qui a ouvert la page. Il reçoit votre demande avec l’élément que vous avez désigné. + +## 5 +en: Here the button turns green on reload. Close the preview to return to the conversation. +fr: Ici, le bouton devient vert au rechargement. Fermez l’aperçu pour revenir à la conversation. diff --git a/scripts/screencast/features/checkpoints.json b/scripts/screencast/features/checkpoints.json new file mode 100644 index 0000000000..d2979cf30a --- /dev/null +++ b/scripts/screencast/features/checkpoints.json @@ -0,0 +1,36 @@ +{ + "id": "checkpoints", + "feature": "Restore a checkpoint", + "windows": ["moonframe"], + "click_offset": -0.22, + "setup": [ + ["exec", "cd ~/code/forecast && ~/Apps/Sheprd.app/Contents/MacOS/sheprd checkpoint create 'Before changing the forecast' && printf '\\n# Show the forecast as JSON\\n' >> forecast.py"], + ["click", 1400, 680, "quiet"], + ["type", "cd ~/code/forecast && clear && git diff -- forecast.py"], + ["key", "return"] + ], + "segments": [ + {"actions": [ + ["click", 231, 242, "right"], + ["wait", 0.6], + ["click", 395, 675] + ]}, + {"actions": [ + ["hover", 1260, 723], + ["wait", 1], + ["click", 1682, 722] + ]}, + {"actions": [ + ["wait", 0.8], + ["click", 1642, 900] + ]}, + {"actions": [ + ["hover", 1330, 696], + ["wait", 3], + ["click", 1653, 857], + ["click", 1400, 680, "quiet"], + ["type", "clear && git diff --stat -- forecast.py"], + ["key", "return"] + ]} + ] +} diff --git a/scripts/screencast/features/checkpoints.md b/scripts/screencast/features/checkpoints.md new file mode 100644 index 0000000000..2c298da682 --- /dev/null +++ b/scripts/screencast/features/checkpoints.md @@ -0,0 +1,18 @@ +# Undo an agent’s changes +fr: Revenir en arrière après une modification + +## 1 +en: The forecast file has an edit. To try the earlier version again, open Checkpoints from the workspace menu. +fr: Le fichier de prévisions a été modifié. Pour retrouver la version précédente, ouvrez « Checkpoints » dans le menu du projet. + +## 2 +en: Hover over the checkpoint saved before the edit, then click its restore arrow. +fr: Survolez le point enregistré avant la modification, puis cliquez sur la flèche de restauration. + +## 3 +en: Confirm the restore to put the files and the branch back where they were. +fr: Confirmez la restauration pour retrouver les fichiers et la branche dans leur état précédent. + +## 4 +en: Sheprd saves the state you just left, too. You can return to it from this list. +fr: Sheprd garde aussi une copie de l’état que vous venez de quitter. Vous pouvez le retrouver dans cette liste. diff --git a/scripts/screencast/features/command-palette.json b/scripts/screencast/features/command-palette.json new file mode 100644 index 0000000000..10a8ecea39 --- /dev/null +++ b/scripts/screencast/features/command-palette.json @@ -0,0 +1,48 @@ +{ + "id": "command-palette", + "feature": "Command palette", + "windows": ["moonframe"], + "setup": [ + ["click", 1400, 680, "quiet"], + ["type", "cd ~/code/forecast && clear && git status --short -- forecast.py"], + ["key", "return"], + ["wait", 1] + ], + "segments": [ + {"actions": [ + ["wait", 0.6] + ]}, + {"shortcut": "ctrl-shift-p", "actions": [ + ["click", 1400, 680, "quiet"], + ["key", "cmd+shift+p"], + ["wait", 1], + ["key", "down"], + ["wait", 0.5], + ["key", "down"] + ]}, + {"actions": [ + ["slowtype", "review", 0.07], + ["wait", 0.8], + ["key", "return"], + ["wait", 1.8], + ["click", 826, 33], + ["wait", 0.7] + ]}, + {"actions": [ + ["click", 1350, 680, "quiet"], + ["key", "cmd+shift+p"], + ["wait", 0.8], + ["click", 876, 318], + ["wait", 0.6], + ["key", "down"], + ["wait", 0.5], + ["key", "down"] + ]}, + {"actions": [ + ["wait", 0.8], + ["key", "escape"], + ["wait", 0.6] + ]} + ], + "click_offset": -0.29 +} diff --git a/scripts/screencast/features/command-palette.md b/scripts/screencast/features/command-palette.md new file mode 100644 index 0000000000..72f176e46e --- /dev/null +++ b/scripts/screencast/features/command-palette.md @@ -0,0 +1,22 @@ +# The command palette +fr: La palette de commandes + +## 1 +en: Everything in Sheprd is a few keystrokes away, in the command palette. +fr: Dans Sheprd, tout est à quelques touches, dans la palette de commandes. + +## 2 +en: Press Command Shift P: workspaces, terminals, agents and commands, in one list. +fr: Appuyez sur Commande Majuscule P : espaces de travail, terminaux, agents et commandes, dans une seule liste. + +## 3 +en: Type a few letters and press Return to open Review Changes. +fr: Tapez quelques lettres et appuyez sur Entrée pour ouvrir la revue des modifications. + +## 4 +en: The chips at the top narrow the list, for example to commands only. +fr: Les filtres du haut réduisent la liste, par exemple aux seules commandes. + +## 5 +en: Escape closes it, right where you left off. +fr: Échap la ferme, et vous reprenez là où vous en étiez. diff --git a/scripts/screencast/features/fan-out.md b/scripts/screencast/features/fan-out.md new file mode 100644 index 0000000000..087cfdbdf3 --- /dev/null +++ b/scripts/screencast/features/fan-out.md @@ -0,0 +1,18 @@ +# Try two approaches to one task +fr: Essayer deux approches en parallèle + +## 1 +en: Open Fan out from the forecast workspace to give two agents the same task. +fr: Dans le menu du projet de prévisions, choisissez « Fan out » pour confier la même tâche à deux agents. + +## 2 +en: Describe the change once, then choose the agents that should try it. +fr: Décrivez la modification une seule fois, puis choisissez les agents qui vont s’en charger. + +## 3 +en: Start the run. Each agent gets its own branch and folder, so both can edit the same file independently. +fr: Lancez le travail. Chaque agent dispose de sa propre branche et de son propre dossier. Les deux peuvent modifier le même fichier en parallèle. + +## 4 +en: Open each result to compare the changes before choosing which branch to keep. +fr: Ouvrez les résultats pour comparer les modifications avant de choisir la branche à conserver. diff --git a/scripts/screencast/features/listening-ports.md b/scripts/screencast/features/listening-ports.md new file mode 100644 index 0000000000..e202b7e3a4 --- /dev/null +++ b/scripts/screencast/features/listening-ports.md @@ -0,0 +1,18 @@ +# Find the server behind a port +fr: Retrouver le serveur derrière un port + +## 1 +en: Start a local server from the forecast terminal. Its port appears beside the workspace. +fr: Lancez un serveur local depuis le terminal du projet météo. Son port apparaît à côté du projet. + +## 2 +en: Open the port to preview the page the server is serving. +fr: Ouvrez ce port pour afficher la page que le serveur met à disposition. + +## 3 +en: The Ports view shows which process owns the listener and the folder it started in. +fr: La vue « Ports » indique quel processus écoute sur ce port et depuis quel dossier il a démarré. + +## 4 +en: Stop the forecast server in its terminal. Its port disappears from the workspace. +fr: Arrêtez le serveur dans son terminal. Le port disparaît de la barre latérale. diff --git a/scripts/screencast/features/mods.md b/scripts/screencast/features/mods.md new file mode 100644 index 0000000000..0bd8b990ed --- /dev/null +++ b/scripts/screencast/features/mods.md @@ -0,0 +1,14 @@ +# Add a status bar item +fr: Ajouter un élément à la barre d’état + +## 1 +en: A small Luau mod can put a project tool in the status bar. +fr: Un petit module en Luau permet d’ajouter un outil à la barre d’état. + +## 2 +en: The manifest chooses where the mod appears. Its view defines the text you see. +fr: Le manifeste indique où le module apparaît. Sa vue définit le texte affiché. + +## 3 +en: Change the label and save the file. Watch the status bar update while the terminal stays open. +fr: Modifiez le libellé et enregistrez le fichier. Le texte change dans la barre d’état et le terminal reste ouvert. diff --git a/scripts/screencast/features/new-worktree.json b/scripts/screencast/features/new-worktree.json new file mode 100644 index 0000000000..8367e3eb2b --- /dev/null +++ b/scripts/screencast/features/new-worktree.json @@ -0,0 +1,47 @@ +{ + "id": "new-worktree", + "feature": "A worktree from an existing branch", + "windows": ["moonframe"], + "click_offset": -0.85, + "setup": [ + ["exec", "cd ~/code/forecast && { git show-ref --verify --quiet refs/heads/forecast-json || git branch forecast-json HEAD; }"], + ["click", 1400, 680, "quiet"], + ["type", "cd ~/code/forecast && clear"], + ["key", "return"], + ["wait", 3] + ], + "segments": [ + {"actions": [ + ["click", 231, 242, "right"], + ["wait", 0.7], + ["click", 350, 415] + ]}, + {"actions": [ + ["type", "forecast-json"] + ]}, + {"actions": [ + ["hover", 1078, 627], + ["wait", 1.4], + ["click", 1741, 1224] + ]}, + {"actions": [ + ["click", 285, 362, "right"], + ["wait", 0.5], + ["click", 411, 854], + ["type", "Add JSON output"], + ["wait", 0.7], + ["click", 1610, 875], + ["wait", 2], + ["hover", 520, 475], + ["wait", 3] + ]} + ], + "teardown": [ + ["exec", "cd ~/.herdr/worktrees/forecast/forecast-json && ~/Apps/Sheprd.app/Contents/MacOS/sheprd notes clear"], + ["click", 285, 362, "right"], + ["wait", 0.6], + ["click", 505, 1039], + ["wait", 0.6], + ["click", 1652, 887] + ] +} diff --git a/scripts/screencast/features/new-worktree.md b/scripts/screencast/features/new-worktree.md new file mode 100644 index 0000000000..dcee773d24 --- /dev/null +++ b/scripts/screencast/features/new-worktree.md @@ -0,0 +1,18 @@ +# Start a worktree from a branch +fr: Ouvrir une branche dans son propre dossier + +## 1 +en: Let’s work on JSON output for the forecast app. Open New worktree from the workspace menu. +fr: Ajoutons une sortie JSON aux prévisions. Dans le menu du projet, choisissez « New worktree ». + +## 2 +en: Enter the name of the branch you want to resume. Here, it’s forecast-json. +fr: Saisissez le nom de la branche que vous voulez reprendre. Ici, c’est forecast-json. + +## 3 +en: Choose a shell or an installed agent for the first pane. We’ll open a terminal on this branch. +fr: Choisissez un terminal ou un agent installé pour le premier volet. Ouvrons un terminal sur cette branche. + +## 4 +en: Add a note to the new checkout. Its first line appears under the branch in the sidebar. +fr: Ajoutez une note au nouveau dossier de travail. Sa première ligne apparaît sous la branche dans la barre latérale. diff --git a/scripts/screencast/features/repository-memory.json b/scripts/screencast/features/repository-memory.json new file mode 100644 index 0000000000..096b95282e --- /dev/null +++ b/scripts/screencast/features/repository-memory.json @@ -0,0 +1,46 @@ +{ + "id": "repository-memory", + "feature": "Repository memory", + "windows": ["moonframe"], + "setup": [ + ["exec", "root=$(mktemp -d /tmp/forecast-memory.XXXXXX) && git clone -q ~/code/forecast \"$root/forecast\" && git -C \"$root/forecast\" worktree add -qb json-output ../forecast-json && printf '%s' \"$root\" > /tmp/screencast-memory-root"], + ["click", 1300, 700, "quiet"], + ["type", "cd \"$(cat /tmp/screencast-memory-root)/forecast\" && export PATH=\"$HOME/Apps/Sheprd.app/Contents/MacOS:$PATH\" && PS1='%1~ % ' && clear"], + ["key", "return"] + ], + "segments": [ + {"actions": [ + ["click", 1300, 700, "quiet"], + ["type", "ls"], + ["key", "return"] + ]}, + {"actions": [ + ["type", "sheprd memory add 'Sample forecast data lives in days.json.'"], + ["key", "return"], + ["wait", 0.8], + ["hover", 850, 206] + ]}, + {"actions": [ + ["type", "cd ../forecast-json"], + ["key", "return"], + ["wait", 0.7], + ["type", "sheprd memory search forecast"], + ["key", "return"], + ["wait", 0.8], + ["hover", 960, 326] + ]}, + {"actions": [ + ["type", "sheprd memory get 1"], + ["key", "return"], + ["wait", 1.5], + ["hover", 690, 445] + ]} + ], + "teardown": [ + ["type", "cd ~ && exec zsh -l"], + ["key", "return"], + ["wait", 0.5], + ["type", "clear"], + ["key", "return"] + ] +} diff --git a/scripts/screencast/features/repository-memory.md b/scripts/screencast/features/repository-memory.md new file mode 100644 index 0000000000..36bfee56da --- /dev/null +++ b/scripts/screencast/features/repository-memory.md @@ -0,0 +1,18 @@ +# Leave a note for the next agent +fr: Transmettre une information au prochain agent + +## 1 +en: Where does this project get its sample forecast? Save the answer once in repository memory. +fr: D’où viennent les données de cet exemple météo ? Enregistrez la réponse dans la mémoire du dépôt. + +## 2 +en: From the checkout, add a fact naming the sample data file. +fr: Depuis le dossier du projet, ajoutez une entrée qui indique le nom du fichier de données. + +## 3 +en: Switch to another worktree of the same repository and search for forecast. The fact comes back here, too. +fr: Passez à un autre dossier de travail du même dépôt et recherchez le mot « forecast ». Vous y retrouvez la même entrée. + +## 4 +en: Use the entry number to read the full note. The next agent can find it the same way. +fr: Utilisez le numéro de l’entrée pour lire la note entière. Le prochain agent pourra la retrouver de la même manière. diff --git a/scripts/screencast/features/review-changes.json b/scripts/screencast/features/review-changes.json new file mode 100644 index 0000000000..e2ef04e7a3 --- /dev/null +++ b/scripts/screencast/features/review-changes.json @@ -0,0 +1,50 @@ +{ + "id": "review-changes", + "feature": "Review Changes", + "setup": [ + ["exec", "cd ~/code/forecast && git show HEAD:forecast.py > forecast.py"], + ["exec", "printf '%s\\n' '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"session/prompt\",\"params\":{\"sessionId\":\"s1\"}}' | ~/.local/bin/gemini >/dev/null"], + ["click", 1400, 680, "quiet"], + ["type", "cd ~/code/forecast && clear && git diff --stat -- forecast.py"], + ["key", "return"], + ["wait", 1] + ], + "segments": [ + {"actions": []}, + {"actions": [ + ["wait", 0.4], + ["key", "cmd+shift+p"], + ["wait", 0.8], + ["slowtype", "review", 0.03], + ["wait", 0.6], + ["key", "return"] + ]}, + {"actions": [ + ["click", 1905, 102], + ["wait", 0.6], + ["hover", 1970, 480] + ]}, + {"actions": [ + ["click", 1663, 478], + ["wait", 0.8], + ["type", "Add a test for JSON output."], + ["wait", 0.8], + ["click", 2036, 277] + ]}, + {"actions": [ + ["click", 2420, 159], + ["wait", 1], + ["hover", 1700, 715] + ]} + ], + "teardown": [ + ["click", 2420, 159], + ["click", 1930, 103], + ["wait", 0.6], + ["click", 2529, 169], + ["wait", 0.5], + ["click", 826, 33] + ], + "windows": ["moonframe"], + "click_offset": -0.58 +} diff --git a/scripts/screencast/features/review-changes.md b/scripts/screencast/features/review-changes.md new file mode 100644 index 0000000000..43a1ae4abe --- /dev/null +++ b/scripts/screencast/features/review-changes.md @@ -0,0 +1,22 @@ +# Review Changes +fr: Relire les changements + +## 1 +en: Before you ship what an agent wrote, review it in Sheprd. +fr: Avant de livrer ce qu'un agent a écrit, relisez-le dans Sheprd. + +## 2 +en: Open Review Changes from the palette: every file the work touched. +fr: Ouvrez « Relire les changements » depuis la palette : chaque fichier modifié. + +## 3 +en: Each change sits beside the code it replaces. +fr: Chaque modification s'affiche face au code qu'elle remplace. + +## 4 +en: Click a line number to leave a note for the agent. +fr: Cliquez sur un numéro de ligne pour laisser une note à l'agent. + +## 5 +en: Then mark the file viewed, and move on to the next. +fr: Puis marquez le fichier comme vu, et passez au suivant. diff --git a/scripts/screencast/features/split-panes.md b/scripts/screencast/features/split-panes.md new file mode 100644 index 0000000000..602582a7c1 --- /dev/null +++ b/scripts/screencast/features/split-panes.md @@ -0,0 +1,18 @@ +# Two panes, one tab +fr: Deux volets dans un onglet + +## 1 +en: Keep the forecast output in view while you work in another shell. +fr: Gardez les prévisions sous les yeux pendant que vous travaillez dans un autre terminal. + +## 2 +en: Press Command D to split the tab. Each side has its own terminal. +fr: Appuyez sur Commande D pour diviser l’onglet. Chaque volet dispose de son propre terminal. + +## 3 +en: Open the tab layout setting. Classic gives each pane a header. Pills puts a small label in the corner. +fr: Ouvrez le réglage de présentation des onglets. « Classic » ajoute un en-tête à chaque volet. « Pills » place une petite étiquette dans le coin. + +## 4 +en: Choose Curved to see the rounded panes. Close the second shell when you want the full width again. +fr: Choisissez « Curved » pour arrondir les volets. Fermez le deuxième terminal pour retrouver toute la largeur de la fenêtre. diff --git a/scripts/screencast/features/text-shortcuts.json b/scripts/screencast/features/text-shortcuts.json new file mode 100644 index 0000000000..2e06762c8c --- /dev/null +++ b/scripts/screencast/features/text-shortcuts.json @@ -0,0 +1,52 @@ +{ + "id": "text-shortcuts", + "feature": "Reuse a prompt in chat", + "windows": ["moonframe"], + "setup": [ + ["exec", "cd ~/code/forecast && ~/Apps/Sheprd.app/Contents/MacOS/sheprd chat new gemini"], + ["wait", 3] + ], + "segments": [ + {"actions": [ + ["wait", 2], + ["click", 901, 1314], + ["wait", 1] + ]}, + {"actions": [ + ["click", 948, 1151], + ["wait", 0.8], + ["click", 2137, 365], + ["wait", 0.5], + ["type", "Weekly review"], + ["click", 1250, 674, "quiet"], + ["type", "Review the tests and flag missing cases."], + ["wait", 1], + ["click", 2107, 744] + ]}, + {"actions": [ + ["click", 352, 33], + ["wait", 0.8], + ["click", 1150, 1250, "quiet"], + ["type", "forecast.py: "], + ["click", 901, 1314] + ]}, + {"actions": [ + ["wait", 0.8], + ["click", 963, 1048], + ["wait", 1], + ["hover", 1550, 1225] + ]} + ], + "teardown": [ + ["click", 901, 1314], + ["wait", 0.6], + ["click", 948, 1151], + ["wait", 0.8], + ["click", 2125, 556], + ["wait", 0.6], + ["click", 352, 33], + ["wait", 0.6], + ["click", 760, 33] + ], + "click_offset": -0.4 +} diff --git a/scripts/screencast/features/text-shortcuts.md b/scripts/screencast/features/text-shortcuts.md new file mode 100644 index 0000000000..65b76f53bf --- /dev/null +++ b/scripts/screencast/features/text-shortcuts.md @@ -0,0 +1,18 @@ +# Reuse a prompt in chat +fr: Réutiliser une consigne dans un chat + +## 1 +en: If you ask for the same review each week, save the prompt in Text Shortcuts. +fr: Si vous demandez la même revue chaque semaine, enregistrez votre consigne dans « Text Shortcuts ». + +## 2 +en: Give it a short label and write the instructions you want to reuse. +fr: Donnez-lui un nom court, puis saisissez les instructions à réutiliser. + +## 3 +en: Back in chat, start a draft with the file you want reviewed, then open the shortcuts beside the composer. +fr: De retour dans le chat, saisissez le nom du fichier à examiner, puis ouvrez les raccourcis à côté du champ de saisie. + +## 4 +en: Pick your review instructions. They’re added to your draft, ready to send together. +fr: Choisissez votre consigne de revue. Elle s’ajoute au brouillon, et vous pouvez envoyer le tout à l’agent. diff --git a/scripts/screencast/features/themes.json b/scripts/screencast/features/themes.json index c2947a5d8f..f4592d5d7d 100644 --- a/scripts/screencast/features/themes.json +++ b/scripts/screencast/features/themes.json @@ -1,290 +1,49 @@ { "id": "themes", - "feature": "Hundreds of themes", - "title": { - "en": "Themes with live preview", - "fr": "Thèmes avec aperçu en direct", - "es": "Temas con vista previa en vivo", - "de": "Themes mit Live-Vorschau", - "pt-BR": "Temas com pré-visualização ao vivo", - "ja": "ライブプレビュー付きのテーマ", - "zh-CN": "实时预览的主题" - }, + "feature": "Themes with live preview", + "windows": ["moonframe"], "setup": [ - [ - "key", - "escape" - ], - [ - "click", - 1600, - 700 - ], - [ - "key", - "ctrl+c" - ], - [ - "key", - "cmd+shift+p" - ], - [ - "wait", - 0.6 - ], - [ - "type", - "themes" - ], - [ - "wait", - 0.6 - ], - [ - "key", - "return" - ], - [ - "wait", - 0.8 - ], - [ - "type", - "default" - ], - [ - "wait", - 0.8 - ], - [ - "key", - "return" - ], - [ - "wait", - 0.8 - ], - [ - "click", - 1600, - 700 - ], - [ - "type", - "clear; cd /System/Library; ls -G" - ], - [ - "key", - "return" - ], - [ - "wait", - 1.5 - ] + ["exec", "sed -i '' 's/^theme = .*/theme = \"Default\"/' ~/.config/herdr/config-gpui.local.toml"], + ["click", 1400, 680, "quiet"], + ["type", "cd ~/code/forecast && clear && python3 forecast.py paris"], + ["key", "return"], + ["wait", 1] ], "segments": [ - { - "say": { - "en": "Sheprd lets you change its whole look in seconds.", - "fr": "Sheprd change entièrement d'apparence en quelques secondes.", - "es": "Sheprd cambia todo su aspecto en segundos.", - "de": "Sheprd ändert sein ganzes Aussehen in Sekunden.", - "pt-BR": "O Sheprd muda todo o visual em segundos.", - "ja": "Sheprd の見た目は、数秒でまるごと変えられます。", - "zh-CN": "几秒钟就能改变 Sheprd 的整体外观。" - }, - "actions": [] - }, - { - "say": { - "en": "Open the command palette with Command Shift P, and search for themes.", - "fr": "Ouvrez la palette de commandes avec Commande Majuscule P, puis cherchez « thèmes ».", - "es": "Abre la paleta de comandos con Comando Mayúsculas P y busca «temas».", - "de": "Öffnen Sie die Befehlspalette mit Befehl Umschalt P und suchen Sie nach Themes.", - "pt-BR": "Abra a paleta de comandos com Command Shift P e procure por temas.", - "ja": "Command Shift P でコマンドパレットを開き、テーマを検索します。", - "zh-CN": "按 Command Shift P 打开命令面板,搜索“主题”。" - }, - "actions": [ - [ - "wait", - 0.8 - ], - [ - "key", - "cmd+shift+p" - ], - [ - "wait", - 0.7 - ], - [ - "slowtype", - "themes", - 0.05 - ], - [ - "wait", - 0.5 - ], - [ - "key", - "return" - ] - ] - }, - { - "say": { - "en": "Move through the list: every theme previews live, across the whole window.", - "fr": "Parcourez la liste : chaque thème s'applique en direct à toute la fenêtre.", - "es": "Recorre la lista: cada tema se previsualiza en vivo en toda la ventana.", - "de": "Gehen Sie die Liste durch: Jedes Theme erscheint sofort im ganzen Fenster.", - "pt-BR": "Percorra a lista: cada tema aparece ao vivo na janela inteira.", - "ja": "リストを移動すると、各テーマがウィンドウ全体にすぐ反映されます。", - "zh-CN": "在列表中移动,每个主题都会实时应用到整个窗口。" - }, - "actions": [ - [ - "wait", - 0.2 - ], - [ - "key", - "up" - ], - [ - "wait", - 0.25 - ], - [ - "key", - "up" - ], - [ - "wait", - 0.25 - ], - [ - "key", - "up" - ], - [ - "wait", - 1.3 - ], - [ - "key", - "up" - ], - [ - "wait", - 0.2 - ], - [ - "key", - "up" - ], - [ - "wait", - 0.2 - ], - [ - "key", - "up" - ], - [ - "wait", - 0.8 - ] - ] - }, - { - "say": { - "en": "Type to filter, then press Return to keep the one you like.", - "fr": "Tapez pour filtrer, puis appuyez sur Entrée pour garder celui qui vous plaît.", - "es": "Escribe para filtrar y pulsa Intro para quedarte con el que te guste.", - "de": "Tippen Sie zum Filtern und drücken Sie Return, um Ihr Lieblings-Theme zu behalten.", - "pt-BR": "Digite para filtrar e pressione Return para ficar com o que você gostou.", - "ja": "入力して絞り込み、Return キーで気に入ったテーマを保存します。", - "zh-CN": "输入文字进行筛选,按回车键保留你喜欢的主题。" - }, - "actions": [ - [ - "wait", - 0.4 - ], - [ - "slowtype", - "github l", - 0.02 - ], - [ - "wait", - 0.9 - ], - [ - "key", - "return" - ] - ] - }, - { - "say": { - "en": "It's saved, and you can change it again anytime.", - "fr": "C'est enregistré, et vous pouvez en changer à tout moment.", - "es": "Queda guardado, y puedes cambiarlo cuando quieras.", - "de": "Es ist gespeichert, und Sie können es jederzeit wieder ändern.", - "pt-BR": "Fica salvo, e você pode mudar quando quiser.", - "ja": "設定は保存され、いつでも変更できます。", - "zh-CN": "设置会被保存,你随时都可以再次更改。" - }, - "actions": [] - } + {"actions": [ + ["wait", 0.6] + ]}, + {"shortcut": "ctrl-shift-p", "actions": [ + ["click", 1400, 680, "quiet"], + ["key", "cmd+shift+p"], + ["wait", 0.7], + ["slowtype", "themes", 0.08], + ["wait", 0.7], + ["click", 653, 390], + ["wait", 0.7] + ]}, + {"actions": [ + ["hover", 951, 512], + ["wait", 1.1], + ["hover", 951, 659], + ["wait", 1.1], + ["hover", 951, 732], + ["wait", 1.1] + ]}, + {"actions": [ + ["slowtype", "github l", 0.1], + ["wait", 1.1], + ["key", "return"], + ["wait", 1] + ]}, + {"actions": [ + ["hover", 1600, 820], + ["wait", 1.2] + ]} ], "teardown": [ - [ - "key", - "escape" - ], - [ - "key", - "cmd+shift+p" - ], - [ - "wait", - 0.6 - ], - [ - "type", - "themes" - ], - [ - "wait", - 0.6 - ], - [ - "key", - "return" - ], - [ - "wait", - 0.8 - ], - [ - "type", - "default" - ], - [ - "wait", - 0.8 - ], - [ - "key", - "return" - ], - [ - "wait", - 0.8 - ] - ] + ["exec", "sed -i '' 's/^theme = .*/theme = \"Default\"/' ~/.config/herdr/config-gpui.local.toml"], + ["wait", 1] + ], + "click_offset": -0.58 } diff --git a/scripts/screencast/features/themes.md b/scripts/screencast/features/themes.md new file mode 100644 index 0000000000..688da77112 --- /dev/null +++ b/scripts/screencast/features/themes.md @@ -0,0 +1,52 @@ +# Themes with live preview +fr: Thèmes avec aperçu en direct +es: Temas con vista previa en vivo +de: Themes mit Live-Vorschau +pt-BR: Temas com pré-visualização ao vivo +ja: ライブプレビュー付きのテーマ +zh-CN: 实时预览的主题 + +## 1 +en: Sheprd lets you change its whole look in seconds. +fr: Sheprd change entièrement d'apparence en quelques secondes. +es: Sheprd cambia todo su aspecto en segundos. +de: Sheprd ändert sein ganzes Aussehen in Sekunden. +pt-BR: O Sheprd muda todo o visual em segundos. +ja: Sheprd の見た目は、数秒でまるごと変えられます。 +zh-CN: 几秒钟就能改变 Sheprd 的整体外观。 + +## 2 +en: Open the command palette with Command Shift P, and search for themes. +fr: Ouvrez la palette de commandes avec Commande Majuscule P, puis cherchez « thèmes ». +es: Abre la paleta de comandos con Comando Mayúsculas P y busca «temas». +de: Öffnen Sie die Befehlspalette mit Befehl Umschalt P und suchen Sie nach Themes. +pt-BR: Abra a paleta de comandos com Command Shift P e procure por temas. +ja: Command Shift P でコマンドパレットを開き、テーマを検索します。 +zh-CN: 按 Command Shift P 打开命令面板,搜索“主题”。 + +## 3 +en: Move through the list: every theme previews live, across the whole window. +fr: Parcourez la liste : chaque thème s'applique en direct à toute la fenêtre. +es: Recorre la lista: cada tema se previsualiza en vivo en toda la ventana. +de: Gehen Sie die Liste durch: Jedes Theme erscheint sofort im ganzen Fenster. +pt-BR: Percorra a lista: cada tema aparece ao vivo na janela inteira. +ja: リストを移動すると、各テーマがウィンドウ全体にすぐ反映されます。 +zh-CN: 在列表中移动,每个主题都会实时应用到整个窗口。 + +## 4 +en: Type to filter, then press Return to keep the one you like. +fr: Tapez pour filtrer, puis appuyez sur Entrée pour garder celui qui vous plaît. +es: Escribe para filtrar y pulsa Intro para quedarte con el que te guste. +de: Tippen Sie zum Filtern und drücken Sie Return, um Ihr Lieblings-Theme zu behalten. +pt-BR: Digite para filtrar e pressione Return para ficar com o que você gostou. +ja: 入力して絞り込み、Return キーで気に入ったテーマを保存します。 +zh-CN: 输入文字进行筛选,按回车键保留你喜欢的主题。 + +## 5 +en: It's saved, and you can change it again anytime. +fr: C'est enregistré, et vous pouvez en changer à tout moment. +es: Queda guardado, y puedes cambiarlo cuando quieras. +de: Es ist gespeichert, und Sie können es jederzeit wieder ändern. +pt-BR: Fica salvo, e você pode mudar quando quiser. +ja: 設定は保存され、いつでも変更できます。 +zh-CN: 设置会被保存,你随时都可以再次更改。 diff --git a/scripts/screencast/features/tour.json b/scripts/screencast/features/tour.json new file mode 100644 index 0000000000..9220074823 --- /dev/null +++ b/scripts/screencast/features/tour.json @@ -0,0 +1,749 @@ +{ + "id": "tour", + "feature": "A tour of Sheprd", + "_comment": "Starts with one space, admin, then opens the demo repo as the forecast space (not shown). Positions are the Moonframe window's at 2560x1440 with the macOS menu bar auto-hidden (machine/setup); the classic window's are measured separately where they differ.", + "setup": [ + [ + "exec", + "cd ~/code/forecast && git reset -q --hard && git clean -qfd; for w in $(git worktree list --porcelain | awk '/^worktree /{print $2}' | tail -n +2); do git worktree remove --force \"$w\"; done; git branch -D json-output 2>/dev/null; cp ~/.config/herdr/screencast.toml ~/.config/herdr/config-gpui.local.toml; sleep 1" + ], + [ + "key", + "escape" + ], + [ + "click", + 1600, + 700 + ], + [ + "key", + "ctrl+c" + ], + [ + "click", + 1600, + 700 + ], + [ + "key", + "cmd+shift+p" + ], + [ + "wait", + 0.9 + ], + [ + "click", + 1024, + 289 + ], + [ + "wait", + 0.8 + ], + [ + "type", + "forecast" + ], + [ + "wait", + 0.8 + ], + [ + "key", + "return" + ], + [ + "wait", + 2.5 + ], + [ + "wait", + 1 + ], + [ + "exec", + "cd ~/code/forecast && ~/Apps/Sheprd.app/Contents/MacOS/sheprd chat new gemini >/dev/null; sleep 4" + ], + [ + "click", + 1900, + 600 + ], + [ + "key", + "cmd+w" + ], + [ + "wait", + 1.5 + ], + [ + "click", + 1600, + 700 + ], + [ + "type", + "clear" + ], + [ + "key", + "return" + ], + [ + "wait", + 1 + ] + ], + "segments": [ + { + "actions": [] + }, + { + "actions": [ + [ + "wait", + 0.6 + ], + [ + "hover", + 230, + 330 + ], + [ + "wait", + 1.6 + ], + [ + "hover", + 230, + 800 + ] + ] + }, + { + "actions": [ + [ + "wait", + 0.5 + ], + [ + "click", + 151, + 684 + ], + [ + "wait", + 1.2 + ] + ] + }, + { + "actions": [ + [ + "wait", + 0.2 + ], + [ + "click", + 220, + 325, + "right" + ], + [ + "wait", + 1.2 + ], + [ + "click", + 341, + 504 + ], + [ + "wait", + 1.4 + ], + [ + "type", + "json-output" + ], + [ + "wait", + 0.6 + ], + [ + "click", + 1741, + 1221 + ], + [ + "wait", + 2 + ] + ] + }, + { + "actions": [ + [ + "wait", + 0.4 + ], + [ + "click", + 883, + 33 + ], + [ + "wait", + 2.6 + ], + [ + "click", + 1032, + 1314 + ], + [ + "wait", + 1.6 + ], + [ + "key", + "escape" + ] + ] + }, + { + "actions": [ + [ + "click", + 1700, + 1249 + ], + [ + "type", + "Add a --json flag to the forecast command" + ], + [ + "wait", + 0.4 + ], + [ + "key", + "return" + ] + ] + }, + { + "actions": [ + [ + "wait", + 1.2 + ], + [ + "click", + 2509, + 105 + ], + [ + "wait", + 2.6 + ], + [ + "click", + 2483, + 112 + ] + ] + }, + { + "actions": [ + [ + "wait", + 0.4 + ], + [ + "click", + 1300, + 700, + "quiet" + ], + [ + "key", + "cmd+d" + ], + [ + "wait", + 1.6 + ] + ], + "shortcut": "ctrl-shift-d" + }, + { + "actions": [ + [ + "click", + 2000, + 700, + "quiet" + ], + [ + "key", + "cmd+w" + ], + [ + "wait", + 0.8 + ], + [ + "wait", + 0.3 + ], + [ + "click", + 41, + 189 + ], + [ + "wait", + 1.3 + ], + [ + "click", + 41, + 261 + ], + [ + "wait", + 1.3 + ], + [ + "click", + 41, + 333 + ], + [ + "wait", + 1.3 + ], + [ + "click", + 41, + 691 + ], + [ + "wait", + 1.3 + ], + [ + "click", + 41, + 115 + ] + ] + }, + { + "actions": [ + [ + "wait", + 0.4 + ], + [ + "hover", + 1790, + 1415 + ], + [ + "wait", + 2 + ], + [ + "hover", + 1300, + 900 + ] + ] + }, + { + "actions": [ + [ + "wait", + 0.3 + ], + [ + "click", + 233, + 1398 + ], + [ + "wait", + 4 + ], + [ + "key", + "escape" + ] + ] + }, + { + "actions": [ + [ + "wait", + 0.3 + ], + [ + "click", + 640, + 1252 + ], + [ + "type", + "Show me the page preview" + ], + [ + "key", + "return" + ], + [ + "wait", + 3 + ] + ] + }, + { + "actions": [ + [ + "wait", + 0.2 + ], + [ + "click", + 2398, + 103 + ], + [ + "wait", + 1.2 + ], + [ + "click", + 1766, + 927 + ], + [ + "wait", + 1.2 + ], + [ + "click", + 2240, + 494 + ], + [ + "type", + "Make this button green" + ], + [ + "wait", + 0.4 + ], + [ + "click", + 2040, + 550 + ], + [ + "wait", + 0.8 + ], + [ + "click", + 2063, + 1357 + ] + ] + }, + { + "actions": [ + [ + "wait", + 3.5 + ] + ] + }, + { + "actions": [ + [ + "key", + "escape" + ], + [ + "key", + "escape" + ], + [ + "key", + "cmd+w" + ], + [ + "wait", + 0.8 + ], + [ + "wait", + 0.3 + ], + [ + "click", + 41, + 1390 + ], + [ + "wait", + 1.8 + ], + [ + "hover", + 1280, + 1015 + ], + [ + "wait", + 1.6 + ], + [ + "hover", + 1640, + 1170 + ], + [ + "wait", + 1.6 + ], + [ + "hover", + 900, + 1300 + ] + ] + }, + { + "actions": [ + [ + "click", + 460, + 393 + ], + [ + "wait", + 1.6 + ], + [ + "click", + 470, + 456 + ], + [ + "wait", + 0.8 + ], + [ + "click", + 956, + 880 + ], + [ + "wait", + 1.3 + ], + [ + "click", + 495, + 780 + ], + [ + "wait", + 0.8 + ], + [ + "click", + 1972, + 362 + ], + [ + "wait", + 1.4 + ], + [ + "key", + "cmd+w" + ] + ] + }, + { + "actions": [] + } + ], + "teardown": [ + [ + "key", + "escape" + ], + [ + "key", + "cmd+w" + ], + [ + "key", + "escape" + ], + [ + "key", + "escape" + ], + [ + "click", + 1600, + 1000 + ], + [ + "key", + "cmd+shift+p" + ], + [ + "wait", + 0.8 + ], + [ + "type", + "close workspace" + ], + [ + "wait", + 0.8 + ], + [ + "key", + "return" + ], + [ + "wait", + 1.2 + ], + [ + "type", + "close" + ], + [ + "key", + "return" + ], + [ + "wait", + 1.5 + ], + [ + "key", + "escape" + ], + [ + "key", + "escape" + ], + [ + "click", + 1600, + 1000 + ], + [ + "key", + "cmd+shift+p" + ], + [ + "wait", + 0.8 + ], + [ + "type", + "close workspace" + ], + [ + "wait", + 0.8 + ], + [ + "key", + "return" + ], + [ + "wait", + 1.2 + ], + [ + "type", + "close" + ], + [ + "key", + "return" + ], + [ + "wait", + 1.5 + ], + [ + "key", + "escape" + ], + [ + "key", + "escape" + ], + [ + "click", + 1600, + 1000 + ], + [ + "key", + "cmd+shift+p" + ], + [ + "wait", + 0.8 + ], + [ + "type", + "close workspace" + ], + [ + "wait", + 0.8 + ], + [ + "key", + "return" + ], + [ + "wait", + 1.2 + ], + [ + "type", + "close" + ], + [ + "key", + "return" + ], + [ + "wait", + 1.5 + ], + [ + "exec", + "cd ~/code/forecast && git reset -q --hard && git clean -qfd; for w in $(git worktree list --porcelain | awk '/^worktree /{print $2}' | tail -n +2); do git worktree remove --force \"$w\"; done; git branch -D json-output 2>/dev/null; cp ~/.config/herdr/screencast.toml ~/.config/herdr/config-gpui.local.toml; sleep 1" + ] + ] +} diff --git a/scripts/screencast/features/tour.md b/scripts/screencast/features/tour.md new file mode 100644 index 0000000000..c62305a810 --- /dev/null +++ b/scripts/screencast/features/tour.md @@ -0,0 +1,70 @@ +# Welcome to Sheprd +fr: Bienvenue dans Sheprd + +## 1 +en: This is Sheprd: your terminals and your coding agents, together in one window. +fr: Voici Sheprd : vos terminaux et vos agents de code, réunis dans une seule fenêtre. + +## 2 +en: On the left are your spaces, one per project, and below them every agent at work. +fr: À gauche, vos espaces, un par projet, et en dessous chaque agent au travail. + +## 3 +en: Click new to start a fresh space. +fr: Cliquez sur « new » pour créer un nouvel espace. + +## 4 +en: For a repository, a new worktree gives an agent its own branch and folder to work in. +fr: Dans un dépôt, un nouveau worktree donne à un agent sa propre branche et son propre dossier. + +## 5 +en: The agent button, next to the new tab button, opens a chat with Claude, Codex, Gemini or another agent. +fr: Le bouton d'agent, à côté du bouton de nouvel onglet, ouvre un chat avec Claude, Codex, Gemini ou un autre agent. + +## 6 +en: Ask for a change, and follow every file it reads, every edit and every test. +fr: Demandez une modification, et suivez chaque fichier lu, chaque modification et chaque test. + +## 7 +en: A chat is a native view of an agent running in a terminal. This button shows that terminal, and Chat brings the chat back. +fr: Un chat est une vue native d'un agent qui tourne dans un terminal. Ce bouton affiche ce terminal, et « Chat » ramène le chat. + +## 8 +en: Each space holds tabs, and each tab can split into panes, side by side. +fr: Chaque espace contient des onglets, et chaque onglet peut se diviser en volets, côte à côte. + +## 9 +en: The activity bar opens more: an overview of your agents, pull requests, issues, usage and more. +fr: La barre d'activité donne accès au reste : une vue d'ensemble de vos agents, les pull requests, les tickets, l'utilisation, et plus. + +## 10 +en: The status bar keeps an eye on the machine, and shows your plan usage when you turn it on. +fr: La barre d'état surveille la machine, et affiche l'utilisation de vos abonnements si vous l'activez. + +## 11 +en: Devices lists every machine you work on. Add SSH hosts or cloud machines, and their agents show up here too. +fr: « Devices » liste chaque machine sur laquelle vous travaillez. Ajoutez des hôtes SSH ou des machines cloud, et leurs agents apparaissent ici aussi. + +## 12 +en: Agents can open web pages beside you too. Ask for a preview, and the page opens in a tab. +fr: Les agents peuvent aussi ouvrir des pages web à côté de vous. Demandez un aperçu, et la page s'ouvre dans un onglet. + +## 13 +en: Annotate it: click anything on the page, write what should change, and send it to the agent. +fr: Annotez-la : cliquez sur n'importe quel élément, écrivez ce qui doit changer, et envoyez-le à l'agent. + +## 14 +en: The agent gets your note, makes the change, and the page reloads. +fr: L'agent reçoit votre note, fait la modification, et la page se recharge. + +## 15 +en: Settings opens on themes: hover one to try it on the whole window. +fr: Les réglages s'ouvrent sur les thèmes : survolez-en un pour l'essayer sur toute la fenêtre. + +## 16 +en: Pick the sidebar layout, the status indicators, and how tabs look. +fr: Choisissez la disposition de la barre latérale, les indicateurs d'état, et l'apparence des onglets. + +## 17 +en: That's the tour. Every feature has its own short guide below. +fr: Voilà pour la visite. Chaque fonctionnalité a son propre petit guide ci-dessous. diff --git a/scripts/screencast/machine/acp_stub.py b/scripts/screencast/machine/acp_stub.py new file mode 100644 index 0000000000..7d190d571f --- /dev/null +++ b/scripts/screencast/machine/acp_stub.py @@ -0,0 +1,130 @@ +#!/usr/bin/env python3 +"""A scripted ACP agent for Sheprd's screencasts: it speaks the Agent Client +Protocol over stdio and, whatever it is asked, streams one rehearsed turn that +reads a file, edits it for real, and runs the tests. Never a real agent.""" +import json, os, sys, time + +# The checkout the chat runs in (a worktree of it, too), else the demo repo. +REPO = os.getcwd() if os.path.exists("forecast.py") else os.path.expanduser("~/code/forecast") +FILE = os.path.join(REPO, "forecast.py") +OLD = '''def show(days): + for day in days: + print(f"{day['date']} {day['high']}°/{day['low']}° {day['sky']}") +''' +NEW = '''def show(days, as_json=False): + if as_json: + print(json.dumps(days, indent=2)) + return + for day in days: + print(f"{day['date']} {day['high']}°/{day['low']}° {day['sky']}") +''' + +def send(obj): + sys.stdout.write(json.dumps(obj) + "\n") + sys.stdout.flush() + +def update(sid, u): + send({"jsonrpc": "2.0", "method": "session/update", + "params": {"sessionId": sid, "update": u}}) + +def say(sid, text, kind="agent_message_chunk", pace=0.035): + for word in text.split(" "): + update(sid, {"sessionUpdate": kind, "content": {"type": "text", "text": word + " "}}) + time.sleep(pace) + +def prompt_text(params): + parts = params.get("prompt") or [] + return " ".join(p.get("text", "") for p in parts if isinstance(p, dict)) + + +SHEPRD = os.path.expanduser("~/Apps/Sheprd.app/Contents/MacOS/sheprd") +# Sheprd opens local pages only outside hidden folders, and worktrees live +# under ~/.herdr: the page is always the main checkout's. +PAGE = os.path.expanduser("~/code/forecast/index.html") + + +def preview(sid): + """Opens the demo page in a Sheprd browser tab, tied to this chat, so the + notes made on it come back here.""" + say(sid, "Opening the page so you can look at it.", "agent_thought_chunk", 0.02) + update(sid, {"sessionUpdate": "tool_call", "toolCallId": "p1", "title": "sheprd browser open index.html", + "kind": "execute", "status": "in_progress"}) + os.system(f"{SHEPRD} browser open {PAGE} >/tmp/screencast-browser.log 2>&1") + time.sleep(0.6) + update(sid, {"sessionUpdate": "tool_call_update", "toolCallId": "p1", "status": "completed"}) + say(sid, "It's open beside us. **Annotate** the page and send me your notes.\n\n") + # Wait for the notes as an agent does, then act on them in the same turn. + update(sid, {"sessionUpdate": "tool_call", "toolCallId": "p2", "title": "sheprd browser feedback --wait", + "kind": "execute", "status": "in_progress"}) + notes = os.popen(f"{SHEPRD} browser feedback --wait 240 2>/dev/null").read() + update(sid, {"sessionUpdate": "tool_call_update", "toolCallId": "p2", "status": "completed", + "content": [{"type": "content", "content": {"type": "text", + "text": "1 note: Make this button green"}}]}) + if notes.strip(): + feedback(sid) + + +def feedback(sid): + """Acts on notes sent from the page: turns the button green, then reloads.""" + say(sid, "Your note is on the Get daily updates button.", "agent_thought_chunk", 0.02) + old, new = "background: #8a8f98;", "background: #2f9e5b;" + update(sid, {"sessionUpdate": "tool_call", "toolCallId": "f1", "title": "Edit index.html", + "kind": "edit", "status": "in_progress", "locations": [{"path": PAGE}], + "content": [{"type": "diff", "path": PAGE, "oldText": old, "newText": new}]}) + source = open(PAGE).read() + open(PAGE, "w").write(source.replace(old, new)) + time.sleep(0.5) + update(sid, {"sessionUpdate": "tool_call_update", "toolCallId": "f1", "status": "completed"}) + os.system(f"{SHEPRD} browser reload >/dev/null 2>&1") + say(sid, "Done: the button is green now, and the page has reloaded.") + + +def turn(sid): + say(sid, "Let me look at how the forecast is printed.", "agent_thought_chunk", 0.02) + update(sid, {"sessionUpdate": "tool_call", "toolCallId": "t1", "title": "Read forecast.py", + "kind": "read", "status": "in_progress", "locations": [{"path": FILE}]}) + time.sleep(0.6) + update(sid, {"sessionUpdate": "tool_call_update", "toolCallId": "t1", "status": "completed"}) + say(sid, "`show()` prints a table. I'll add an `as_json` switch and a `--json` flag.\n\n") + source = open(FILE).read() + update(sid, {"sessionUpdate": "tool_call", "toolCallId": "t2", "title": "Edit forecast.py", + "kind": "edit", "status": "in_progress", "locations": [{"path": FILE}], + "content": [{"type": "diff", "path": FILE, "oldText": OLD, "newText": NEW}]}) + time.sleep(0.5) + if OLD in source: + source = source.replace(OLD, NEW).replace( + ' show(fetch(args.city))', + ' show(fetch(args.city), as_json=args.json)').replace( + ' parser.add_argument("city")', + ' parser.add_argument("city")\n parser.add_argument("--json", action="store_true")') + open(FILE, "w").write(source) + update(sid, {"sessionUpdate": "tool_call_update", "toolCallId": "t2", "status": "completed"}) + update(sid, {"sessionUpdate": "tool_call", "toolCallId": "t3", "title": "python3 -m unittest", + "kind": "execute", "status": "in_progress"}) + time.sleep(0.8) + update(sid, {"sessionUpdate": "tool_call_update", "toolCallId": "t3", "status": "completed", + "content": [{"type": "content", "content": {"type": "text", "text": "Ran 4 tests in 0.002s\n\nOK"}}]}) + say(sid, "Done. `forecast paris --json` now prints the days as JSON, and **all 4 tests pass**.") + +for line in sys.stdin: + try: + msg = json.loads(line) + except ValueError: + continue + method, mid = msg.get("method"), msg.get("id") + if method == "initialize": + send({"jsonrpc": "2.0", "id": mid, "result": {"protocolVersion": 1, "agentCapabilities": {}}}) + elif method == "session/new": + send({"jsonrpc": "2.0", "id": mid, "result": {"sessionId": "s1"}}) + elif method == "session/prompt": + text = prompt_text(msg["params"]).lower() + sid = msg["params"]["sessionId"] + # Prompts arrive with Sheprd's own context around them, so only the + # demo's preview request is matched; notes come through the wait. + if "show me the page preview" in text: + preview(sid) + else: + turn(sid) + send({"jsonrpc": "2.0", "id": mid, "result": {"stopReason": "end_turn"}}) + elif mid is not None: + send({"jsonrpc": "2.0", "id": mid, "error": {"code": -32601, "message": "Method not found"}}) diff --git a/scripts/screencast/machine/days.json b/scripts/screencast/machine/days.json new file mode 100644 index 0000000000..0c43c023d7 --- /dev/null +++ b/scripts/screencast/machine/days.json @@ -0,0 +1,66 @@ +{ + "paris": [ + { + "date": "Mon", + "high": 14, + "low": 8, + "sky": "cloudy" + }, + { + "date": "Tue", + "high": 16, + "low": 9, + "sky": "sunny" + }, + { + "date": "Wed", + "high": 13, + "low": 7, + "sky": "rain" + }, + { + "date": "Thu", + "high": 15, + "low": 8, + "sky": "sunny" + }, + { + "date": "Fri", + "high": 17, + "low": 10, + "sky": "sunny" + } + ], + "lyon": [ + { + "date": "Mon", + "high": 14, + "low": 8, + "sky": "cloudy" + }, + { + "date": "Tue", + "high": 16, + "low": 9, + "sky": "sunny" + }, + { + "date": "Wed", + "high": 13, + "low": 7, + "sky": "rain" + }, + { + "date": "Thu", + "high": 15, + "low": 8, + "sky": "sunny" + }, + { + "date": "Fri", + "high": 17, + "low": 10, + "sky": "sunny" + } + ] +} \ No newline at end of file diff --git a/scripts/screencast/machine/forecast.py b/scripts/screencast/machine/forecast.py new file mode 100644 index 0000000000..741e99d69b --- /dev/null +++ b/scripts/screencast/machine/forecast.py @@ -0,0 +1,25 @@ +"""Five-day forecast for a city, from the sample data in days.json.""" +import argparse +import json +from pathlib import Path + + +def fetch(city): + data = json.loads(Path(__file__).with_name("days.json").read_text()) + return data[city.lower()] + + +def show(days): + for day in days: + print(f"{day['date']} {day['high']}°/{day['low']}° {day['sky']}") + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("city") + args = parser.parse_args() + show(fetch(args.city)) + + +if __name__ == "__main__": + main() diff --git a/scripts/screencast/machine/hover.c b/scripts/screencast/machine/hover.c new file mode 100644 index 0000000000..82e5c9e3ce --- /dev/null +++ b/scripts/screencast/machine/hover.c @@ -0,0 +1,42 @@ +/* Glides the pointer to x, y (in points) inside the machine, as a hand would + * before clicking, so a video shows it travel rather than jump, and the app + * under it has redrawn its hover by the time Sheprd Agent clicks (the + * agent's own click moves and presses 8 ms apart, which a busy machine does + * not redraw in). Runs through `sheprd machine exec`, so it acts with the + * agent's Accessibility permission. + * hover X Y [MILLISECONDS] (default 450; 0 jumps) + * cc -O2 -o hover hover.c -framework ApplicationServices */ +#include +#include +#include +#include + +static void move_to(CGEventSourceRef source, CGPoint point) { + CGEventRef move = CGEventCreateMouseEvent(source, kCGEventMouseMoved, point, kCGMouseButtonLeft); + if (!move) return; + CGEventPost(kCGHIDEventTap, move); + CFRelease(move); +} + +int main(int argc, char **argv) { + if (argc < 3) return 2; + CGPoint to = CGPointMake(atof(argv[1]), atof(argv[2])); + int ms = argc > 3 ? atoi(argv[3]) : 450; + CGEventSourceRef source = CGEventSourceCreate(kCGEventSourceStateHIDSystemState); + CGEventRef now = CGEventCreate(NULL); + CGPoint from = now ? CGEventGetLocation(now) : to; + if (now) CFRelease(now); + double distance = hypot(to.x - from.x, to.y - from.y); + /* Short hops take less time, so small moves do not crawl. */ + if (distance < 400) ms = (int)(ms * (0.4 + 0.6 * distance / 400)); + int steps = ms / 8; + for (int i = 1; i <= steps; i++) { + double t = (double)i / steps; + double eased = t < 0.5 ? 4 * t * t * t : 1 - pow(-2 * t + 2, 3) / 2; /* ease in-out */ + move_to(source, CGPointMake(from.x + (to.x - from.x) * eased, from.y + (to.y - from.y) * eased)); + usleep(8000); + } + move_to(source, to); + if (source) CFRelease(source); + return 0; +} diff --git a/scripts/screencast/machine/index.html b/scripts/screencast/machine/index.html new file mode 100644 index 0000000000..09761bd8d2 --- /dev/null +++ b/scripts/screencast/machine/index.html @@ -0,0 +1,24 @@ + +Forecast + + +

Paris

+

Five-day forecast

+
+
Mon☁️
14° / 8°
+
Tue☀️
16° / 9°
+
Wed🌧️
13° / 7°
+
Thu☀️
15° / 8°
+
Fri☀️
17° / 10°
+
+ + diff --git a/scripts/screencast/machine/prepare.py b/scripts/screencast/machine/prepare.py new file mode 100644 index 0000000000..50e4acd2eb --- /dev/null +++ b/scripts/screencast/machine/prepare.py @@ -0,0 +1,117 @@ +#!/usr/bin/env python3 +"""Make a virtual Mac ready for feature screencasts, from this computer. + + prepare.py [--machine NAME] [--app PATH/Sheprd.app] [--sign-ins] + +The machine needs Sheprd Agent installed with both its permissions (a person +does that once, at the machine's screen). Then this script: + +- pushes setup.sh, the scripted demo agent and the demo repository in, and + runs setup.sh there (settings, Claude Code, Codex, the demo repository); +- with --app, installs that Sheprd build at ~/Apps/Sheprd.app, keeping the + previous one in ~/Apps/old, and opens it; +- with --sign-ins, copies this computer's Claude Code and Codex sign-ins in, + access tokens only: without their refresh tokens the machine can never + rotate them and sign this computer out. Claude's lasts a few hours; run + --sign-ins again before a recording session. Other tokens stored beside + them, such as MCP servers', are never copied. + +Save the result as an image afterwards (`sheprd machine image save`) so a lost +machine is one `sheprd machine new NAME --from IMAGE` away. +""" + +import argparse +import base64 +import json +import os +import shutil +import subprocess +import sys +import tempfile +from pathlib import Path + +HERE = Path(__file__).resolve().parent +SHEPRD = (os.environ.get("SHEPRD") or shutil.which("sheprd") + or "/Applications/Sheprd.app/Contents/MacOS/sheprd") +CHUNK = 190_000 # base64 characters per exec: control messages cap at 256 KB +DEST = "/tmp/screencast-machine" + + +def machine(name, *args, timeout=120): + return subprocess.run([SHEPRD, "machine", "exec", name, "--timeout", str(timeout), "--", *args], + check=True, capture_output=True, text=True).stdout + + +def push(name, local, remote): + data = base64.b64encode(Path(local).read_bytes()).decode() + machine(name, "sh", "-c", 'mkdir -p "$(dirname "$1")"; cp /dev/null "$1"', "_", remote) + for i in range(0, len(data), CHUNK): + machine(name, "sh", "-c", 'printf %s "$1" | base64 -D >> "$2"', "_", + data[i:i + CHUNK], remote) + + +def install_hover(name): + """Builds hover.c here (the machine may have no compiler) and installs it + as ~/.local/bin/screencast-hover, signed for the machine.""" + with tempfile.TemporaryDirectory() as tmp: + binary = Path(tmp) / "hover" + subprocess.run(["/usr/bin/clang", "-O2", "-arch", "arm64", "-o", str(binary), + str(HERE / "hover.c"), "-framework", "ApplicationServices"], check=True) + push(name, binary, "/tmp/screencast-hover") + machine(name, "sh", "-c", "install -m 755 /tmp/screencast-hover ~/.local/bin/screencast-hover" + " && codesign -f -s - ~/.local/bin/screencast-hover") + + +def install_app(name, app): + with tempfile.TemporaryDirectory() as tmp: + archive = Path(tmp) / "Sheprd.zip" + subprocess.run(["ditto", "-c", "-k", "--keepParent", str(app), str(archive)], check=True) + print(f"pushing {archive.stat().st_size // 1_000_000} MB") + push(name, archive, "/tmp/Sheprd.zip") + machine(name, "sh", "-c", + "pkill -x sheprd; sleep 2; mkdir -p ~/Apps/old; " + "[ -d ~/Apps/Sheprd.app ] && mv ~/Apps/Sheprd.app ~/Apps/old/Sheprd-$(date +%s).app; " + "ditto -x -k /tmp/Sheprd.zip ~/Apps/ && open ~/Apps/Sheprd.app", timeout=300) + + +def sign_ins(name): + codex = Path.home() / ".codex/auth.json" + if codex.exists(): + auth = json.loads(codex.read_text()) + auth.get("tokens", {})["refresh_token"] = "" + machine(name, "sh", "-c", 'umask 077; mkdir -p ~/.codex; printf %s "$1" > ~/.codex/auth.json', + "_", json.dumps(auth)) + print("copied Codex's sign-in (no refresh token)") + found = subprocess.run(["security", "find-generic-password", "-s", "Claude Code-credentials", + "-a", os.environ.get("USER", ""), "-w"], + capture_output=True, text=True, timeout=10) + if found.returncode == 0: + oauth = json.loads(found.stdout)["claudeAiOauth"] + oauth.pop("refreshToken", None) + oauth.pop("refreshTokenExpiresAt", None) + machine(name, "sh", "-c", + 'security add-generic-password -U -s "Claude Code-credentials" -a "$USER" -w "$1"', + "_", json.dumps({"claudeAiOauth": oauth})) + print("copied Claude Code's sign-in (no refresh token)") + + +def main(): + p = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) + p.add_argument("--machine", default="screencast") + p.add_argument("--app", type=Path, help="a Sheprd.app to install in the machine") + p.add_argument("--sign-ins", action="store_true", help="copy Claude Code and Codex sign-ins") + a = p.parse_args() + for f in ("setup.sh", "acp_stub.py", "forecast.py", "days.json", "test_forecast.py", "index.html"): + push(a.machine, HERE / f, f"{DEST}/{f}") + print(machine(a.machine, "sh", f"{DEST}/setup.sh", timeout=600).strip()) + install_hover(a.machine) + if a.app: + install_app(a.machine, a.app) + if a.sign_ins: + sign_ins(a.machine) + + +if __name__ == "__main__": + if sys.platform != "darwin": + sys.exit("prepare.py runs on the Mac that hosts the machine") + main() diff --git a/scripts/screencast/machine/setup.sh b/scripts/screencast/machine/setup.sh new file mode 100644 index 0000000000..457ad73d04 --- /dev/null +++ b/scripts/screencast/machine/setup.sh @@ -0,0 +1,94 @@ +#!/bin/sh +# Prepares a virtual Mac for feature screencasts. Runs inside the machine as +# its user, from the folder prepare.py pushed this file and its siblings to: +# sheprd machine exec NAME -- sh /tmp/screencast-machine/setup.sh +# Idempotent: safe to run again. Never touches sign-ins; prepare.py copies +# those separately. +set -eu +here=$(cd "$(dirname "$0")" && pwd) + +# Stay awake and unlocked while recording. +defaults -currentHost write com.apple.screensaver idleTime 0 +# A sleeping display locks the machine and a take then types into the lock +# screen: never sleep or lock, also after a restart, where caffeinate is gone. +echo admin | sudo -S pmset -a displaysleep 0 sleep 0 disksleep 0 2>/dev/null || true +echo admin | sudo -S sysadminctl -screenLock off -password admin 2>/dev/null || true +pkill -x caffeinate 2>/dev/null || true +nohup caffeinate -dimsu >/dev/null 2>&1 & + +# A clean desktop: the Dock out of the way, desktop widgets hidden, and a +# ticking menu bar clock so screencapture keeps writing frames. +defaults write com.apple.dock autohide -bool true +defaults write com.apple.WindowManager StandardHideWidgets -bool true +defaults write com.apple.menuextra.clock ShowSeconds -bool true +# Hide the macOS menu bar so the window fills a 16:9 frame (System Settings > +# Menu Bar > Automatically hide: Always, which needs a log-out to apply). A +# video of a feature in a menu sets it back for itself. The larger pointer +# (Accessibility > Display > Pointer size, one step) cannot be set from a +# script: macOS protects that setting, so it is set by hand once. +defaults write NSGlobalDomain _HIHideMenuBar -bool true +defaults write NSGlobalDomain AppleMenuBarVisibleInFullscreen -bool false +killall Dock ControlCenter 2>/dev/null || true + +# The agents a chat can pick: real Claude Code and Codex, plus the scripted +# demo agent under Gemini's name, which every recorded chat uses. +mkdir -p "$HOME/.local/bin" +if [ ! -x "$HOME/.local/bin/claude" ]; then + curl -fsSL https://claude.ai/install.sh | bash >/dev/null +fi +if [ ! -x "$HOME/.local/bin/codex" ]; then + url=https://github.com/openai/codex/releases/latest/download/codex-aarch64-apple-darwin.tar.gz + curl -fsSL -o /tmp/codex.tgz "$url" + tar xzf /tmp/codex.tgz -C /tmp + mv /tmp/codex-aarch64-apple-darwin "$HOME/.local/bin/codex" + chmod +x "$HOME/.local/bin/codex" +fi +# ~/.local/bin, because sheprd-acp looks there whatever PATH Sheprd was +# started with (an app opened by Finder or `open` gets launchd's, not a shell's). +cp "$here/acp_stub.py" "$HOME/.local/bin/gemini" +chmod +x "$HOME/.local/bin/gemini" + +# The demo repository the videos work in, reset by each feature's setup. +repo="$HOME/code/forecast" +if [ ! -d "$repo/.git" ]; then + mkdir -p "$repo" + cp "$here/forecast.py" "$here/days.json" "$here/test_forecast.py" "$here/index.html" "$repo/" + printf '__pycache__/\n' > "$repo/.gitignore" + git -C "$repo" init -q -b main + git -C "$repo" config user.name "Ada Lovelace" + git -C "$repo" config user.email ada@example.com + git -C "$repo" add -A + git -C "$repo" commit -qm "Five-day forecast from sample data" +fi +# Older recording images have the forecast command but predate the browser demo. +if [ ! -e "$repo/index.html" ]; then + cp "$here/index.html" "$repo/" + git -C "$repo" add -- index.html + git -C "$repo" commit -qm "Add the forecast preview" -- index.html +fi + +# Sheprd's settings for recordings: the readable Default theme, Herdr 2 +# terminals, chats that find the agents above, and no plan usage, which +# would show the signed-in accounts' limits. +config="$HOME/.config/herdr" +mkdir -p "$config" +# Kept as screencast.toml too: a video that changes settings copies it back +# over config-gpui.local.toml in its teardown. +cat > "$config/screencast.toml" <<'EOF' +# Screencast machine (scripts/screencast/machine/setup.sh). Saved changes reload. +layout = "comfortable-rounded" +theme = "Default" +herdr_2_terminals = true + +[chat.env] +PATH = "/Users/admin/.local/bin:/usr/bin:/bin:/usr/sbin:/sbin" + +[usage] +show = false + +# The palette's Projects list, which a video's setup opens the demo repo from. +[palette] +project_roots = ["~/code"] +EOF +cp "$config/screencast.toml" "$config/config-gpui.local.toml" +echo "machine ready: $(~/.local/bin/claude --version 2>/dev/null | head -1), $(~/.local/bin/codex --version 2>/dev/null)" diff --git a/scripts/screencast/machine/test_forecast.py b/scripts/screencast/machine/test_forecast.py new file mode 100644 index 0000000000..60ba160ee6 --- /dev/null +++ b/scripts/screencast/machine/test_forecast.py @@ -0,0 +1,21 @@ +import unittest +import forecast + + +class Forecast(unittest.TestCase): + def test_five_days(self): + self.assertEqual(len(forecast.fetch("Paris")), 5) + + def test_case(self): + self.assertEqual(forecast.fetch("PARIS"), forecast.fetch("paris")) + + def test_fields(self): + self.assertEqual(set(forecast.fetch("lyon")[0]), {"date", "high", "low", "sky"}) + + def test_unknown(self): + with self.assertRaises(KeyError): + forecast.fetch("atlantis") + + +if __name__ == "__main__": + unittest.main() diff --git a/scripts/screencast/screencast.py b/scripts/screencast/screencast.py index 493259af95..c022769b38 100644 --- a/scripts/screencast/screencast.py +++ b/scripts/screencast/screencast.py @@ -37,6 +37,7 @@ ) sys.path.insert(0, str(Path(__file__).resolve().parent)) +import transcript # noqa: E402 import tts # noqa: E402 # Narration exists for every language in tts.LANGUAGE_NAMES; videos are made @@ -47,22 +48,26 @@ CJK_FONT = "/System/Library/Fonts/Hiragino Sans GB.ttc" WIDTH, HEIGHT = 1920, 1080 +# The guest screen refreshes at 60 Hz, which YouTube and X also play at most. +FPS = 60 LEAD_IN = 1.0 # seconds of screen before the first segment # screencapture can take seconds to start recording, so wait this long before # the first segment and trim what it caught before LEAD_IN. -WARMUP = 12.0 -GAP = 0.5 # silence after each segment's voice +WARMUP = 16.0 +GAP = 1.0 # silence after each segment's voice, to take in what was shown TAIL = 1.5 # seconds after the last segment CHUNK = 45000 # bytes per pulled chunk; base64 of it stays under the exec output cap -APP = "~/Apps/Sheprd.app" # where the machine keeps the build being recorded +APP = "~/Apps/Sheprd.app" +# Moves the pointer in the machine (machine/hover.c, installed by prepare.py). +HOVER = "/Users/admin/.local/bin/screencast-hover" # where the machine keeps the build being recorded # Each window the app can open, as the arguments that open it and the share of # the guest screen's height, from the top, the maximized window fills (the # rest is desktop). A video is recorded once per window asked for, so people # can pick the one they use. Rune is to come. WINDOWS = { - "classic": (["--args", "--classic"], 1.0), "moonframe": (["--env", "SHEPRD_MOONFRAME=1"], 1.0), + "classic": (["--args", "--classic"], 1.0), } @@ -108,7 +113,23 @@ def speak(spec, providers, langs, work, cache): # --- recording ------------------------------------------------------------- +# The window being recorded, for steps that differ between windows. +WINDOW = None +# Where a click's ring starts against the click's logged time: the click +# command returns some time after the press lands, and the pointer is always +# on its target 0.2 s before pressing, so a little early never precedes it. +RECORDER_LAG = -0.15 +# Clicks made while recording, as (monotonic time, x, y) in screenshot pixels, +# so the render can mark where each lands. +CLICKS = [] + + def act(name, action): + """Run one step of a feature file in the machine. + + `click` and `hover` take x, y, or a {window: [x, y]} map when the windows lay the + target out differently; `exec` runs a shell command in the machine as the + logged-in user, for setup the interface cannot do reliably.""" kind, *args = action if kind == "wait": time.sleep(args[0]) @@ -121,9 +142,28 @@ def act(name, action): machine(name, "type", ch) time.sleep(args[1]) elif kind == "click": - machine(name, "click", str(args[0]), str(args[1])) + # ["click", x, y] plus "right" and/or "quiet"; a {window: [x, y]} map + # stands for x, y where the windows differ. + point, extra = (args[0][WINDOW], args[1:]) if isinstance(args[0], dict) else (args[:2], args[2:]) + x, y = point + # Point first and let the app redraw under the pointer: Sheprd + # Agent presses 8 ms after moving, which a busy machine has not + # redrawn in, so the press would land on the old hover. + machine(name, "exec", "--", HOVER, str(x / 2), str(y / 2)) + time.sleep(0.2) + sent = time.monotonic() + machine(name, "click", str(x), str(y), *(["--right"] if "right" in extra else [])) + # The press lands while the command runs: take its middle. A "quiet" + # click only gives a pane the keyboard before a shortcut, which shows + # nothing to point at, so it gets no ring. + if "quiet" not in extra: + CLICKS.append(((sent + time.monotonic()) / 2, x, y)) + elif kind == "hover": + # Point at something without clicking: a theme previews, a tooltip + # shows, or the viewer's eye follows the pointer there. + x, y = args[0][WINDOW] if isinstance(args[0], dict) else args + machine(name, "exec", "--", HOVER, str(x / 2), str(y / 2)) elif kind == "exec": - # A shell command in the machine, such as reopening the app. machine(name, "exec", "--", "sh", "-c", args[0]) elif kind == "repeat": for _ in range(args[0]): @@ -195,13 +235,22 @@ def record(spec, name, slots, work): if not recorder.isdigit(): sys.exit(f"screencapture did not start in the machine: {recorder}") t0 = time.monotonic() + CLICKS.clear() def stop(): # SIGINT makes screencapture finish the movie; only this run's recorder. machine(name, "exec", "--", "sh", "-c", f"kill -INT {recorder}; sleep 2") try: - time.sleep(WARMUP) + # A sync mark the render finds: Sheprd hides at a known moment, the + # screen turns to the bright desktop, and it comes back. It falls in + # the warm-up, which the render cuts. + time.sleep(WARMUP - 4) + mark = time.monotonic() - t0 + machine(name, "key", "cmd+h") + time.sleep(1.2) + machine(name, "exec", "--", "sh", "-c", f"open {APP}") + time.sleep(2.8) starts = [] for seg, slot in zip(spec["segments"], slots): begin = time.monotonic() @@ -228,19 +277,59 @@ def stop(): raw = work / "screen.mov" pull(name, movie, raw) - # The movie ends when it was stopped; place segment starts on its clock. - offset = duration(raw) - stopped + # Place the segment starts and clicks on the movie's clock by the sync + # mark; the movie's end is not reliable, as stopping the recorder drops + # its last seconds. + seen = mark_time(raw, mark) + if seen is None: + print("no sync mark found; aligning on the movie's end", file=sys.stderr) + offset = duration(raw) - stopped + else: + offset = seen - mark starts = [s + offset for s in starts] - (work / "timing.json").write_text(json.dumps({"starts": starts, "slots": slots})) + clicks = [[at - t0 + offset, x, y] for at, x, y in CLICKS if at - t0 < stopped] + (work / "timing.json").write_text(json.dumps({"starts": starts, "slots": slots, + "clicks": clicks})) return starts +def mark_time(movie, around): + """When the screen first turns bright (Sheprd hidden, the desktop showing) + in the movie, searching from 4 s before to 8 s after `around` seconds.""" + out = subprocess.run( + ["ffmpeg", "-v", "error", "-ss", f"{max(0.0, around - 4):.2f}", "-t", "12", "-i", str(movie), + "-vf", "scale=320:-1,signalstats,metadata=print:key=lavfi.signalstats.YAVG:file=-", + "-f", "null", "-"], capture_output=True, text=True, check=True).stdout + frames, at = [], None + for line in out.splitlines(): + if line.startswith("frame:"): + at = float(line.split("pts_time:")[1]) + max(0.0, around - 4) + elif "YAVG=" in line and at is not None: + frames.append((at, float(line.split("=")[1]))) + if len(frames) < 2: + return None + dark = min(y for _, y in frames) + bright = max(y for _, y in frames) + if bright - dark < 25: + return None + return next(t for t, y in frames if y > (dark + bright) / 2) + + def pull(name, remote, local): size = int(machine(name, "exec", "--", "stat", "-f", "%z", remote).strip()) with open(local, "wb") as f: for i in range((size + CHUNK - 1) // CHUNK): - out = machine(name, "exec", "--", "sh", "-c", - f"dd if={remote} bs={CHUNK} skip={i} count=1 2>/dev/null | base64") + # The agent's connection drops now and then; a chunk is asked again + # rather than losing a whole take. + for attempt in range(4): + try: + out = machine(name, "exec", "--", "sh", "-c", + f"dd if={remote} bs={CHUNK} skip={i} count=1 2>/dev/null | base64") + break + except subprocess.CalledProcessError: + if attempt == 3: + raise + time.sleep(2) f.write(base64.b64decode(out)) if local.stat().st_size != size: sys.exit(f"pulled {local.stat().st_size} of {size} bytes") @@ -263,9 +352,37 @@ def caption(text, lang, path, size, width): def title_card(text, lang, path): - run("magick", "-background", "#000000b0", "-fill", "white", "-font", font(lang), - "-pointsize", "64", f"label:{text}", "-bordercolor", "#000000b0", - "-border", "40x24", str(path)) + """The video's title as a lower third: white text on no box, lifted off + the screen behind it by a soft shadow rather than a black band.""" + run("magick", "-background", "none", "-fill", "white", "-font", font(lang), + "-pointsize", "58", f"label:{text}", "-bordercolor", "none", "-border", "40x30", + "(", "+clone", "-background", "black", "-shadow", "85x10+0+3", ")", + "+swap", "-background", "none", "-layers", "merge", "+repage", + "(", "+clone", "-background", "black", "-shadow", "55x26+0+0", ")", + "+swap", "-background", "none", "-layers", "merge", "+repage", f"PNG32:{path}") + + +# How a segment's `shortcut` (the other platforms' keys, as the command catalog +# names them: "ctrl-shift-p") is labelled while the narration says the macOS +# one. Windows takes Linux's keys (crates/sheprd-commands/src/shortcuts). +SHORTCUT_PREFIX = {"en": "On Windows and Linux:", "fr": "Sous Windows et Linux :"} +KEY_NAMES = { + "en": {"ctrl": "Ctrl", "shift": "Shift", "alt": "Alt"}, + "fr": {"ctrl": "Ctrl", "shift": "Maj", "alt": "Alt"}, +} + + +def shortcut_label(keys, lang, path): + names = KEY_NAMES.get(lang, KEY_NAMES["en"]) + keys = " + ".join(names.get(k, k.upper()) for k in keys.split("-")) + prefix = SHORTCUT_PREFIX.get(lang, SHORTCUT_PREFIX["en"]) + run("magick", "-background", "none", "-font", font(lang), + "(", "-fill", "#c8c8d0", "-pointsize", "34", f"label:{prefix} ", ")", + "(", "-fill", "white", "-pointsize", "44", f"label:{keys}", ")", + "-gravity", "center", "+append", + "-bordercolor", "none", "-border", "34x18", + "(", "+clone", "-alpha", "off", "-fill", "#15161ce6", "-colorize", "100", ")", + "+swap", "-compose", "over", "-composite", str(path)) def srt_time(t): @@ -273,7 +390,33 @@ def srt_time(t): return f"{ms // 3600000:02}:{ms // 60000 % 60:02}:{ms // 1000 % 60:02},{ms % 1000:03}" -def render(spec, provider, lang, starts, work, window, out, captions=False, crop=None): +# A click shows as a thin ring that grows from the pointer and fades, as +# Screen Studio and similar apps mark clicks: RING_FRAMES images, each shown +# for one frame in turn, from a small opaque ring to a wide faint one. +RING_FRAMES = 14 +RING_BOX = 96 + + +def ring_frames(folder): + paths = [] + for i in range(RING_FRAMES): + t = i / (RING_FRAMES - 1) + eased = 1 - (1 - t) ** 3 + radius = 9 + eased * 34 + alpha = (1 - t) ** 1.4 + c = RING_BOX / 2 + path = folder / f"ring{i:02d}.png" + run("magick", "-size", f"{RING_BOX}x{RING_BOX}", "xc:none", "-fill", "none", + "-stroke", f"rgba(255,255,255,{alpha * 0.95:.3f})", "-strokewidth", "3", + "-draw", f"circle {c},{c} {c + radius:.1f},{c}", + "-stroke", f"rgba(0,0,0,{alpha * 0.35:.3f})", "-strokewidth", "1", + "-draw", f"circle {c},{c} {c + radius + 2:.1f},{c}", f"PNG32:{path}") + paths.append(path) + return paths + + +def render(spec, provider, lang, starts, work, window, out, captions=False, crop=None, + clicks=()): """Render one language and voice of the recording in work/WINDOW.""" screen = work / window / "screen.mov" crop = crop or WINDOWS[window][1] @@ -281,6 +424,8 @@ def render(spec, provider, lang, starts, work, window, out, captions=False, crop # before that is cut. head = max(0.0, starts[0] - LEAD_IN) starts = [start - head for start in starts] + click_offset = spec.get("click_offset", RECORDER_LAG) + clicks = [(at - head + click_offset, x, y) for at, x, y in clicks if at - head > 0] d = work / window / "render" / slug(provider) / lang d.mkdir(parents=True, exist_ok=True) title_card(spec["title"][lang], lang, d / "title.png") @@ -290,30 +435,58 @@ def render(spec, provider, lang, starts, work, window, out, captions=False, crop # Keep the top `crop` of the guest screen (the window, not the desktop below). # screencapture writes a frame only when the screen changes: make the # rate constant before cutting the warm-up, and hold the last frame. - f"[0:v]fps=30,trim=start={head:.3f},setpts=PTS-STARTPTS," - f"tpad=stop_mode=clone:stop_duration=5,crop=iw:ih*{crop}:0:0,scale={WIDTH}:{HEIGHT}:force_original_aspect_ratio=decrease," + f"[0:v]fps={FPS},trim=start={head:.3f},setpts=PTS-STARTPTS," + f"tpad=stop_mode=clone:stop=-1,crop=iw:ih*{crop}:0:0,scale={WIDTH}:{HEIGHT}:force_original_aspect_ratio=decrease," f"pad={WIDTH}:{HEIGHT}:(ow-iw)/2:(oh-ih)/2:color=0x101014[v0]", - f"[v0][1:v]overlay=(W-w)/2:150:shortest=1:enable='lt(t,{starts[1]:.3f})'[v1]", + f"[v0][1:v]overlay=(W-w)/2:H-h-40:shortest=1:enable='lt(t,{starts[1]:.3f})'[v1]", ] srt, audio_labels = [], [] + end_time = duration(screen) - head last = "v1" burned = 0 for i, seg in enumerate(spec["segments"]): length = duration(voice_file(work, provider, lang, i)) start, end = starts[i], starts[i] + length + GAP + # A static guest may emit its last frame before the voice finishes. + end_time = max(end_time, end) srt.append(f"{i + 1}\n{srt_time(start)} --> {srt_time(end)}\n{seg['say'][lang]}\n") - if not captions: - continue - cap = d / f"cap{i}.png" - caption(seg["say"][lang], lang, cap, 46, WIDTH - 360) - inputs += ["-loop", "1", "-i", str(cap)] - n = 2 + burned + overlays = [] + if captions: + cap = d / f"cap{i}.png" + caption(seg["say"][lang], lang, cap, 46, WIDTH - 360) + overlays.append((cap, "H-h-70")) + if seg.get("shortcut"): + # Always shown: viewers on Windows and Linux need their own keys + # whether or not the narration is captioned. + key = d / f"key{i}.png" + shortcut_label(seg["shortcut"], lang, key) + overlays.append((key, "H-h-190" if captions else "H-h-70")) + for image, y in overlays: + inputs += ["-loop", "1", "-i", str(image)] + n = 2 + burned + burned += 1 + filters.append( + f"[{last}][{n}:v]overlay=(W-w)/2:{y}:shortest=1:" + f"enable='between(t,{start:.3f},{end:.3f})'[v{n}]" + ) + last = f"v{n}" + # Each click: the ring frames as one short clip, shifted to the click's + # time and placed at its point. One overlay per click keeps the render + # fast. Guest pixels map to the video by the scale the screen was fitted + # with (full width kept). + if clicks: + scale = WIDTH / 2560 + ring_frames(d) + inputs += ["-framerate", str(FPS / 2), "-i", str(d / "ring%02d.png")] + ring = 2 + burned burned += 1 - filters.append( - f"[{last}][{n}:v]overlay=(W-w)/2:H-h-70:shortest=1:" - f"enable='between(t,{start:.3f},{end:.3f})'[v{n}]" - ) - last = f"v{n}" + filters.append(f"[{ring}:v]format=rgba,split={len(clicks)}" + + "".join(f"[r{k}]" for k in range(len(clicks)))) + for k, (at, x, y) in enumerate(clicks): + ox, oy = x * scale - RING_BOX / 2, y * scale - RING_BOX / 2 + filters.append(f"[r{k}]setpts=PTS-STARTPTS+{at:.3f}/TB[rs{k}]") + filters.append(f"[{last}][rs{k}]overlay={ox:.0f}:{oy:.0f}:eof_action=pass[c{k}]") + last = f"c{k}" base = 2 + burned for i in range(len(spec["segments"])): inputs += ["-i", str(voice_file(work, provider, lang, i))] @@ -334,7 +507,7 @@ def render(spec, provider, lang, starts, work, window, out, captions=False, crop "-filter_complex", ";".join(filters), "-map", f"[{last}]", "-map", "[aout]", "-c:v", "libx264", "-preset", "slow", "-crf", "20", "-pix_fmt", "yuv420p", "-c:a", "aac", "-b:a", "160k", "-movflags", "+faststart", - "-t", f"{duration(screen) - head:.3f}", str(mp4)) + "-t", f"{end_time:.3f}", str(mp4)) (mp4.parent / f"{spec['id']}.{lang}.srt").write_text("\n".join(srt)) return mp4 @@ -355,10 +528,11 @@ def fits(recorded, wanted, window): def main(): p = argparse.ArgumentParser() p.add_argument("feature", type=Path) - p.add_argument("--machine", default="agent-test") + p.add_argument("--machine", default="screencast") p.add_argument("--out", type=Path, default=Path("target/screencasts")) p.add_argument("--langs", default=",".join(LANGS)) - p.add_argument("--window", default=",".join(WINDOWS), + # Feature guides use Moonframe by default. + p.add_argument("--window", default="moonframe", help=f"comma-separated windows to record: {', '.join(WINDOWS)}") p.add_argument("--tts", default="elevenlabs:river", help=f"comma-separated voices to render: {', '.join(tts.PROVIDERS)}") @@ -371,7 +545,7 @@ def main(): help="re-render from the last recording") a = p.parse_args() - spec = json.loads(a.feature.read_text()) + spec = transcript.load(a.feature) langs = a.langs.split(",") work = a.out / "work" / spec["id"] work.mkdir(parents=True, exist_ok=True) @@ -386,7 +560,14 @@ def main(): unknown = [w for w in windows if w not in WINDOWS] if unknown: sys.exit(f"unknown window {', '.join(unknown)}: {', '.join(WINDOWS)}") + # A feature may name the windows it can be shown in, such as one whose + # page only draws in some. + windows = [w for w in windows if w in spec.get("windows", WINDOWS)] + if not windows: + sys.exit(f"{spec['id']} is recorded in {', '.join(spec['windows'])} only") + global WINDOW for window in windows: + WINDOW = window if a.skip_record: saved = json.loads((work / window / "timing.json").read_text()) fits(saved["slots"], slots, window) @@ -394,11 +575,12 @@ def main(): else: launch(a.machine, window, work / window, spec.get("fill", True)) starts = record(spec, a.machine, slots, work / window) + clicks = json.loads((work / window / "timing.json").read_text()).get("clicks", []) print(window, "segments start at", ", ".join(f"{s:.1f}s" for s in starts)) for provider in providers: for lang in langs: print(render(spec, provider, lang, starts, work, window, a.out, - a.captions, a.crop)) + a.captions, a.crop, clicks)) if __name__ == "__main__": diff --git a/scripts/screencast/transcript.py b/scripts/screencast/transcript.py new file mode 100644 index 0000000000..8b9f5992c6 --- /dev/null +++ b/scripts/screencast/transcript.py @@ -0,0 +1,74 @@ +"""A feature's narration, kept apart from its steps so it is easy to edit. + +features/NAME.json says what happens on screen; features/NAME.md says what is +said over it, one numbered section per segment of the JSON, in order: + + # Title in English + fr: Titre en français + + ## 1 + en: The first sentence. + fr: La première phrase. + +The title's own line is English; other languages follow as `lang: text` +lines, as do each segment's sentences. A segment's notes for whoever edits +it can follow as plain lines and are ignored. +""" + +import json +import re +from pathlib import Path + +LINE = re.compile(r"^([a-z]{2}(?:-[A-Z]{2})?):\s*(.+)$") + + +class Error(ValueError): + pass + + +def parse(text, path="transcript"): + title, segments, current = {}, [], None + for number, raw in enumerate(text.splitlines(), 1): + line = raw.strip() + if line.startswith("## "): + current = {} + segments.append(current) + elif line.startswith("# "): + title["en"] = line[2:].strip() + current = title + elif current is not None and (match := LINE.match(line)): + current[match.group(1)] = match.group(2).strip() + elif line and current is None: + raise Error(f"{path}:{number}: text before the title") + if "en" not in title: + raise Error(f"{path}: no '# Title' line") + for i, say in enumerate(segments, 1): + if "en" not in say: + raise Error(f"{path}: segment {i} has no 'en:' line") + return title, segments + + +def render(spec): + """The Markdown for a spec whose narration is still in its JSON.""" + lines = [f"# {spec['title']['en']}"] + lines += [f"{k}: {v}" for k, v in spec["title"].items() if k != "en"] + for i, seg in enumerate(spec["segments"], 1): + lines += ["", f"## {i}"] + [f"{k}: {v}" for k, v in seg["say"].items()] + return "\n".join(lines) + "\n" + + +def load(path): + """features/NAME.json with its narration from features/NAME.md.""" + path = Path(path) + spec = json.loads(path.read_text()) + md = path.with_suffix(".md") + if not md.exists(): + return spec + title, segments = parse(md.read_text(), md) + if len(segments) != len(spec["segments"]): + raise Error(f"{md}: {len(segments)} segments, but {path.name} has " + f"{len(spec['segments'])}") + spec["title"] = title + for seg, say in zip(spec["segments"], segments): + seg["say"] = say + return spec diff --git a/scripts/screencast/tts.py b/scripts/screencast/tts.py index 88b8692d70..bc6ed73612 100644 --- a/scripts/screencast/tts.py +++ b/scripts/screencast/tts.py @@ -45,6 +45,9 @@ "river": "SAz9YHcvj6GT2YYXdXww", } ELEVENLABS_DEFAULT_VOICE = ELEVENLABS_VOICES["river"] +# A little slower than the voices' natural pace (0.7-1.2): the videos explain +# things a viewer sees for the first time. +ELEVENLABS_SPEED = 0.9 # A native voice for a language beats the voice named on the command line: the # English voices speak French with a Canadian accent. ELEVENLABS_NATIVE = { @@ -96,6 +99,7 @@ def _elevenlabs(text, lang, voice): "text": text, "model_id": ELEVENLABS_MODEL, "language_code": ELEVENLABS_LANGUAGE.get(lang, lang), + "voice_settings": {"speed": ELEVENLABS_SPEED}, } headers = {"xi-api-key": key, "Content-Type": "application/json", "Accept": "audio/mpeg"} @@ -122,7 +126,8 @@ def synthesize(provider, text, lang, path, cache): else: voice = _elevenlabs_voice(provider, lang) model = ELEVENLABS_MODEL - key = f"{model}\0{voice}\0{lang}\0{text}" + speed = ELEVENLABS_SPEED if provider.startswith("elevenlabs") else 1.0 + key = f"{model}\0{voice}\0{lang}\0{text}" + (f"\0{speed}" if speed != 1.0 else "") cached = Path(cache) / f"{hashlib.sha256(key.encode()).hexdigest()[:32]}.mp3" if not cached.exists(): cached.parent.mkdir(parents=True, exist_ok=True) diff --git a/website/docs/chat.md b/website/docs/chat.md index e8b9049491..93c97c1ea0 100644 --- a/website/docs/chat.md +++ b/website/docs/chat.md @@ -88,7 +88,7 @@ ANTHROPIC_BASE_URL = "https://llm.example.com" The rows and buttons show once the app has found `sheprd-acp`, first beside its own executable and then on the login shell's `PATH`. -In a Herdr 2 tab, starting a chat splits the pane in use and runs the chat beside it, so a tab can hold several chats along with plain terminals. The chat view comes back after a restart and shows in every window that shows the pane. A chat in a terminal on another machine keeps its terminal view, as does a `sheprd-acp` started by hand in a Herdr 2 pane. +In a Herdr 2 tab, the agent button next to the new tab button opens the chat in a tab of its own, in the same workspace and folder, as it does with Herdr 1. Starting one from the command palette or `sheprd chat new` splits the pane in use instead and runs the chat beside it, so a tab can hold several chats along with plain terminals. The chat view comes back after a restart and shows in every window that shows the pane. A chat in a terminal on another machine keeps its terminal view, as does a `sheprd-acp` started by hand in a Herdr 2 pane. ## Moving a terminal agent into a chat diff --git a/website/features.json b/website/features.json new file mode 100644 index 0000000000..28f1aa8a15 --- /dev/null +++ b/website/features.json @@ -0,0 +1,462 @@ +{ + "_comment": "The feature guides on sheprd.org/features, in the order shown. Each id names its screencast, scripts/screencast/features/ID.json, whose narration is the page's transcript. Run website/tools/features.py after changing this file or a clip. `poster` (seconds) picks the still a page shows before playing; change it and run `features.py posters`.", + "features": [ + { + "id": "agent-chat", + "category": "Agents", + "kicker": "Native agent chats", + "headline": "Talk to your agents.
See their work.", + "dek": "Claude, Codex, Gemini and more in a real chat beside the terminal. Switch agents any time; every read, edit and test run is a card you can open.", + "description": "Run Claude, Codex, Gemini and other coding agents in native chats beside your terminal, switch between them, and follow each step.", + "chapters": [ + [ + 1, + "Start a chat" + ], + [ + 2, + "Switch agents" + ], + [ + 3, + "Watch it work" + ], + [ + 5, + "Read the answer" + ] + ], + "how": [ + [ + "Start a chat", + "Click the agent button next to the new tab button. It starts the agent you used last; hover it to pick another." + ], + [ + "Pick your agent", + "The agent menu under the message box switches the chat to Claude, Codex, Gemini, Copilot, OpenCode, Kimi or Pi, whichever you have installed." + ], + [ + "Follow every step", + "Each read, edit and command shows as a card with its files and output, so nothing happens out of sight." + ] + ], + "docs": [ + "/docs/chat/", + "Agent chats" + ], + "keywords": "ACP agent chat claude codex gemini copilot opencode kimi pi switch agent assistant conversation prompt tool calls", + "poster": 32 + }, + { + "id": "review-changes", + "category": "Review", + "kicker": "Review Changes", + "headline": "Read it
before it ships.", + "dek": "Every file an agent touched, beside the code it replaces, with notes that go straight back to the agent.", + "description": "Review an agent's changes file by file, leave notes on lines, and mark files viewed.", + "chapters": [ + [ + 1, + "Open the review" + ], + [ + 3, + "Leave a note" + ], + [ + 4, + "Mark it viewed" + ] + ], + "how": [ + [ + "Open Review Changes", + "Search for it in the command palette. It lists every file with uncommitted changes, or everything since the base branch." + ], + [ + "Note what should change", + "Click a line number, describe the change and add the note. Notes go to the workspace's agent." + ], + [ + "Keep track", + "Mark each file viewed once it looks right, and hide viewed files to see what is left." + ] + ], + "docs": [ + "/docs/review/", + "Review and commit" + ], + "keywords": "diff git code review notes comments uncommitted branch viewed", + "poster": 13.75 + }, + { + "id": "command-palette", + "category": "Navigation", + "kicker": "The command palette", + "headline": "Everything,
one shortcut away.", + "dek": "Workspaces, terminals, agents and every command in one list. Type a few letters, press Return.", + "description": "Find any workspace, terminal, agent or command in Sheprd's command palette.", + "chapters": [ + [ + 1, + "Open the palette" + ], + [ + 2, + "Run a command" + ], + [ + 3, + "Filter the list" + ] + ], + "how": [ + [ + "Open it", + "Press Command Shift P (Control Shift P on Linux and Windows)." + ], + [ + "Type and go", + "A few letters find a workspace, a terminal, an agent or a command. Return runs it." + ], + [ + "Narrow it down", + "The chips at the top keep only navigation, commands, projects or notes." + ] + ], + "docs": [ + "/docs/keyboard/", + "Keyboard and commands" + ], + "keywords": "search shortcut keyboard actions commands navigation quick open", + "poster": 27.6 + }, + { + "id": "browser-tabs", + "category": "Browser", + "kicker": "Browser annotations", + "headline": "Show your agent
which button you mean.", + "dek": "Pin a note to a button in the live preview. The agent gets your request and the element it belongs to in one message.", + "description": "Annotate a local browser preview, send the selected element to its agent, and see the page reload after the edit.", + "chapters": [ + [ + 0, + "Open the preview" + ], + [ + 1, + "Pick an element" + ], + [ + 2, + "Add a note" + ], + [ + 3, + "Send to the agent" + ], + [ + 4, + "See the edit" + ] + ], + "how": [ + [ + "Ask for a preview", + "Have the agent open the local page with sheprd browser open. The preview opens beside the chat." + ], + [ + "Pick the button", + "Choose Annotate and click a page element. Describe the change and choose Add note to pin it." + ], + [ + "Send your feedback", + "Choose Send to agent. Sheprd includes the element and the note so the agent can find the exact button." + ] + ], + "docs": [ + "/docs/browser/", + "Browser tabs" + ], + "keywords": "web page preview localhost annotate notes webview url", + "poster": 15.0 + }, + { + "id": "themes", + "category": "Appearance", + "kicker": "Themes with live preview", + "headline": "Make yourself
at home.", + "dek": "Dark, light, or somewhere in between. Preview a theme across the whole window before you make it yours.", + "description": "See your workspace change as you browse themes, then keep the one you like.", + "chapters": [ + [ + 1, + "Open the picker" + ], + [ + 2, + "Preview live" + ], + [ + 3, + "Find your theme" + ] + ], + "how": [ + [ + "Open the theme picker", + "Search for themes in the command palette, or open Settings, Theme." + ], + [ + "See it before you settle", + "Move through the list and the whole window changes. Try a light theme, then a dark one." + ], + [ + "Keep the one you like", + "Type to filter, then press Return to keep it." + ] + ], + "docs": [ + "/docs/appearance/", + "Appearance" + ], + "keywords": "theme colors dark light mode color scheme appearance ghostty", + "poster": 15.45 + }, + { + "id": "new-worktree", + "category": "Workspaces", + "kicker": "Git worktrees", + "headline": "Open a branch in its own folder.", + "dek": "Resume a branch in a separate checkout and leave a reminder beside it in the workspace list.", + "description": "Create a Git worktree from an existing branch, choose its first pane and save a checkout note in Sheprd.", + "chapters": [ + [ + 0, + "Open New worktree" + ], + [ + 1, + "Name the branch" + ], + [ + 2, + "Choose the first pane" + ], + [ + 3, + "Add a note" + ] + ], + "how": [ + [ + "Open the workspace menu", + "Right-click the repository in the sidebar and choose New worktree." + ], + [ + "Resume a branch", + "Enter the branch name, select Terminal for the first pane and click Create." + ], + [ + "Leave a reminder", + "Open the new checkout’s menu, choose Note and save your text. Its first line appears below the branch." + ] + ], + "docs": [ + "/docs/worktrees/", + "Worktrees" + ], + "keywords": "git worktree branch checkout terminal workspace note sidebar", + "poster": 27.8 + }, + { + "id": "checkpoints", + "category": "Workspaces", + "kicker": "Checkpoints", + "headline": "Go back to a saved checkout.", + "dek": "Inspect a checkpoint and restore the files on your branch. Sheprd saves the state you leave so you can return to it.", + "description": "Restore a saved Git checkout and find the checkpoint Sheprd creates before the restore.", + "chapters": [ + [ + 0, + "Inspect the edit" + ], + [ + 1, + "Choose a checkpoint" + ], + [ + 2, + "Restore the checkout" + ], + [ + 3, + "Find the saved state" + ] + ], + "how": [ + [ + "Open the timeline", + "Right-click the workspace and choose Checkpoints." + ], + [ + "Restore an earlier version", + "Hover over a saved checkpoint and click its restore arrow. Read the confirmation and click Restore." + ], + [ + "Find the state you left", + "The timeline gains a checkpoint named Before restoring a checkpoint." + ] + ], + "docs": [ + "/docs/review/#checkpoints", + "Review and Git" + ], + "keywords": "checkpoint restore undo agent changes snapshot branch files", + "poster": 20 + }, + { + "id": "repository-memory", + "category": "Agents", + "kicker": "Repository memory", + "headline": "Keep a project fact across worktrees.", + "dek": "Save where the forecast fixture lives, switch checkouts and retrieve the same note by its entry number.", + "description": "Save, search and read facts shared by a Git repository’s worktrees in Sheprd.", + "chapters": [ + [ + 0, + "Inspect the checkout" + ], + [ + 1, + "Save a fact" + ], + [ + 2, + "Search from another worktree" + ], + [ + 3, + "Read the entry" + ] + ], + "how": [ + [ + "Add the fact", + "Run sheprd memory add with the text from a checkout of the project." + ], + [ + "Search another worktree", + "Switch to a worktree of the same repository and run sheprd memory search with a word from the entry." + ], + [ + "Read the whole note", + "Use the number in the results with sheprd memory get." + ] + ], + "docs": [ + "/docs/cli/#worktrees-and-agents", + "Repository memory commands" + ], + "keywords": "agents repository memory fact search note worktrees cli", + "poster": 25 + }, + { + "id": "automations", + "category": "Automations", + "kicker": "Scheduled automations", + "headline": "Schedule the forecast tests.", + "dek": "Define a daily test run in a Luau file and review its schedule and command in Sheprd.", + "description": "Review a scheduled test automation, its limits and the approval tied to this version of the script.", + "chapters": [ + [ + 0, + "Run the tests" + ], + [ + 1, + "Read the schedule" + ], + [ + 2, + "Open the plan" + ], + [ + 3, + "Review approval" + ] + ], + "how": [ + [ + "Keep the script with the project", + "Place the Luau file under .herdr/automations and add the repository with sheprd-automate repo add." + ], + [ + "Read the plan", + "Select the script in Automations to see its schedule, command and limits." + ], + [ + "Review the exact version", + "Choose Review and approve to inspect the host, path and content hash. Editing the script requires a new approval." + ] + ], + "docs": [ + "/docs/automations/", + "Automations" + ], + "keywords": "Luau automation daily schedule tests approval limits", + "poster": 18.5 + }, + { + "id": "text-shortcuts", + "category": "Agents", + "kicker": "Text shortcuts", + "headline": "Reuse a review prompt in chat.", + "dek": "Give repeated instructions a short label and insert them alongside the filename in your draft.", + "description": "Save reusable chat instructions in Sheprd and insert a text shortcut into an existing draft.", + "chapters": [ + [ + 0, + "Open the shortcut editor" + ], + [ + 1, + "Save the review prompt" + ], + [ + 2, + "Start a draft" + ], + [ + 3, + "Insert the shortcut" + ] + ], + "how": [ + [ + "Edit your shortcuts", + "Open the shortcuts button beside the chat composer and choose Edit Shortcuts." + ], + [ + "Save the instructions", + "Click Add, enter a title and the text to reuse, then save." + ], + [ + "Add it to a draft", + "Type the filename first and pick your shortcut from the composer. The instructions are appended to your message." + ] + ], + "docs": [ + "/docs/chat/", + "Agent chats" + ], + "keywords": "chat prompt text shortcuts composer weekly review reusable draft", + "poster": 21.5 + } + ], + "tour": { + "id": "tour", + "description": "The basics in under a minute: workspaces and terminals, an agent chat, reviewing its change, and the command palette.", + "poster": 74.0 + } +} diff --git a/website/site/assets/feature-clips/agent-chat.jpg b/website/site/assets/feature-clips/agent-chat.jpg new file mode 100644 index 0000000000..73f9d8833d Binary files /dev/null and b/website/site/assets/feature-clips/agent-chat.jpg differ diff --git a/website/site/assets/feature-clips/agent-chat.moonframe.en.mp4 b/website/site/assets/feature-clips/agent-chat.moonframe.en.mp4 new file mode 100644 index 0000000000..406359928e --- /dev/null +++ b/website/site/assets/feature-clips/agent-chat.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:558b616903e7b15703729d3f3112d256baebb4346146134be49420d16175a9f1 +size 1450074 diff --git a/website/site/assets/feature-clips/agent-chat.moonframe.en.vtt b/website/site/assets/feature-clips/agent-chat.moonframe.en.vtt new file mode 100644 index 0000000000..46c9af368f --- /dev/null +++ b/website/site/assets/feature-clips/agent-chat.moonframe.en.vtt @@ -0,0 +1,25 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:06.000 +Sheprd runs your coding agents in native chats, beside your terminal. + +2 +00:00:06.247 --> 00:00:11.087 +Start one with the agent button, right next to the new tab button. + +3 +00:00:11.417 --> 00:00:18.097 +Switch agents any time: Claude, Codex, Gemini, or any other you have installed. + +4 +00:00:20.164 --> 00:00:26.524 +Ask for what you need. The agent reads your code, makes the change and runs the tests. + +5 +00:00:26.524 --> 00:00:33.124 +Every step is a card: what it read, the lines it changed, and what the tests said. + +6 +00:00:33.131 --> 00:00:37.651 +And the answer arrives formatted, ready for you to review. diff --git a/website/site/assets/feature-clips/agent-chat.moonframe.fr.mp4 b/website/site/assets/feature-clips/agent-chat.moonframe.fr.mp4 new file mode 100644 index 0000000000..4dd9c4533a --- /dev/null +++ b/website/site/assets/feature-clips/agent-chat.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cdc5d8716c4bbdd166f6d0e77b43b3207d7ae60e235161c54308f5d07ceec6f0 +size 1444698 diff --git a/website/site/assets/feature-clips/agent-chat.moonframe.fr.vtt b/website/site/assets/feature-clips/agent-chat.moonframe.fr.vtt new file mode 100644 index 0000000000..712698a330 --- /dev/null +++ b/website/site/assets/feature-clips/agent-chat.moonframe.fr.vtt @@ -0,0 +1,25 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:06.240 +Sheprd fait tourner vos agents de code dans de vrais chats, à côté de votre terminal. + +2 +00:00:06.247 --> 00:00:11.407 +Lancez-en un avec le bouton d'agent, juste à côté du bouton de nouvel onglet. + +3 +00:00:11.417 --> 00:00:17.697 +Changez d'agent à tout moment : Claude, Codex, Gemini, ou tout autre agent installé. + +4 +00:00:20.164 --> 00:00:26.284 +Demandez ce qu'il vous faut. L'agent lit votre code, fait la modification et lance les tests. + +5 +00:00:26.524 --> 00:00:32.964 +Chaque étape est une carte : ce qu'il a lu, les lignes modifiées, et le résultat des tests. + +6 +00:00:33.131 --> 00:00:37.571 +Et la réponse arrive mise en forme, prête à être relue. diff --git a/website/site/assets/feature-clips/automations.jpg b/website/site/assets/feature-clips/automations.jpg new file mode 100644 index 0000000000..c43c4c3b4d Binary files /dev/null and b/website/site/assets/feature-clips/automations.jpg differ diff --git a/website/site/assets/feature-clips/automations.moonframe.en.mp4 b/website/site/assets/feature-clips/automations.moonframe.en.mp4 new file mode 100644 index 0000000000..c334b8d3d3 --- /dev/null +++ b/website/site/assets/feature-clips/automations.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95e3f59106497496f3c90360ea0408048bfa7f7df9e5050eb00b579f37e5f9d7 +size 1256870 diff --git a/website/site/assets/feature-clips/automations.moonframe.en.vtt b/website/site/assets/feature-clips/automations.moonframe.en.vtt new file mode 100644 index 0000000000..4b103e74ff --- /dev/null +++ b/website/site/assets/feature-clips/automations.moonframe.en.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:07.120 +This project has a small test suite. A scheduled automation can run it each morning. + +2 +00:00:07.124 --> 00:00:13.484 +The Luau file sets the time and names the test command. Both live with the project. + +3 +00:00:13.488 --> 00:00:19.928 +Open the automation to read the plan. Check the schedule and the command before approving it. + +4 +00:00:19.930 --> 00:00:26.850 +Approval applies to this version of the script on this machine. Editing it asks for approval again. diff --git a/website/site/assets/feature-clips/automations.moonframe.fr.mp4 b/website/site/assets/feature-clips/automations.moonframe.fr.mp4 new file mode 100644 index 0000000000..a2d6202fa9 --- /dev/null +++ b/website/site/assets/feature-clips/automations.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc0ef27ddf06488a6933daffbaf2af53ecacac94494faac44eed305d530b9cd2 +size 1250416 diff --git a/website/site/assets/feature-clips/automations.moonframe.fr.vtt b/website/site/assets/feature-clips/automations.moonframe.fr.vtt new file mode 100644 index 0000000000..33ac22baf9 --- /dev/null +++ b/website/site/assets/feature-clips/automations.moonframe.fr.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:06.240 +Ce projet contient quelques tests. Une automatisation peut les lancer chaque matin. + +2 +00:00:07.124 --> 00:00:13.484 +Le fichier Luau indique l’heure et la commande de test. Ces deux réglages sont conservés dans le projet. + +3 +00:00:13.488 --> 00:00:19.928 +Ouvrez l’automatisation pour lire le plan. Vérifiez l’horaire et la commande avant de donner votre accord. + +4 +00:00:19.930 --> 00:00:27.410 +Votre accord vaut pour cette version du script sur cette machine. Si le script change, Sheprd redemande votre accord. diff --git a/website/site/assets/feature-clips/browser-tabs.jpg b/website/site/assets/feature-clips/browser-tabs.jpg new file mode 100644 index 0000000000..c2c47a561b Binary files /dev/null and b/website/site/assets/feature-clips/browser-tabs.jpg differ diff --git a/website/site/assets/feature-clips/browser-tabs.moonframe.en.mp4 b/website/site/assets/feature-clips/browser-tabs.moonframe.en.mp4 new file mode 100644 index 0000000000..c87708ea1c --- /dev/null +++ b/website/site/assets/feature-clips/browser-tabs.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d975cec7bdf5191d0ad1227f8fe14e47620bd92b7728389e65f538b34312eb35 +size 1688844 diff --git a/website/site/assets/feature-clips/browser-tabs.moonframe.en.vtt b/website/site/assets/feature-clips/browser-tabs.moonframe.en.vtt new file mode 100644 index 0000000000..1cc2fac0f1 --- /dev/null +++ b/website/site/assets/feature-clips/browser-tabs.moonframe.en.vtt @@ -0,0 +1,21 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:05.520 +Ask for a preview to see the forecast page beside the chat. + +2 +00:00:05.604 --> 00:00:10.284 +Choose Annotate, then click the button you want to change. + +3 +00:00:10.368 --> 00:00:16.728 +Describe the change and add the note. The number on the page marks the exact button. + +4 +00:00:17.450 --> 00:00:23.970 +Send the note to the agent that opened the page. It gets your words along with the element you picked. + +5 +00:00:23.975 --> 00:00:30.335 +Here the button turns green on reload. Close the preview to return to the conversation. diff --git a/website/site/assets/feature-clips/browser-tabs.moonframe.fr.mp4 b/website/site/assets/feature-clips/browser-tabs.moonframe.fr.mp4 new file mode 100644 index 0000000000..eecd25c1e8 --- /dev/null +++ b/website/site/assets/feature-clips/browser-tabs.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04c68b013845c8059f92d31e2bfff196677140a23f750ec35ec0124ef750ca5d +size 1697083 diff --git a/website/site/assets/feature-clips/browser-tabs.moonframe.fr.vtt b/website/site/assets/feature-clips/browser-tabs.moonframe.fr.vtt new file mode 100644 index 0000000000..e1acf8b7d6 --- /dev/null +++ b/website/site/assets/feature-clips/browser-tabs.moonframe.fr.vtt @@ -0,0 +1,21 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:05.600 +Demandez un aperçu pour voir la page de prévisions à côté du chat. + +2 +00:00:05.604 --> 00:00:10.364 +Choisissez « Annotate », puis cliquez sur le bouton à modifier. + +3 +00:00:10.368 --> 00:00:17.448 +Décrivez la modification et ajoutez la note. Le numéro sur la page repère le bouton que vous avez choisi. + +4 +00:00:17.450 --> 00:00:23.890 +Envoyez la note à l’agent qui a ouvert la page. Il reçoit votre demande avec l’élément que vous avez désigné. + +5 +00:00:23.975 --> 00:00:30.175 +Ici, le bouton devient vert au rechargement. Fermez l’aperçu pour revenir à la conversation. diff --git a/website/site/assets/feature-clips/checkpoints.jpg b/website/site/assets/feature-clips/checkpoints.jpg new file mode 100644 index 0000000000..b42dea7ef2 Binary files /dev/null and b/website/site/assets/feature-clips/checkpoints.jpg differ diff --git a/website/site/assets/feature-clips/checkpoints.moonframe.en.mp4 b/website/site/assets/feature-clips/checkpoints.moonframe.en.mp4 new file mode 100644 index 0000000000..f89b48d1b5 --- /dev/null +++ b/website/site/assets/feature-clips/checkpoints.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84c8bd1b9356238c58e3823a0f35116607ee4f04a2b2a554cb1750b670f2283a +size 1181456 diff --git a/website/site/assets/feature-clips/checkpoints.moonframe.en.vtt b/website/site/assets/feature-clips/checkpoints.moonframe.en.vtt new file mode 100644 index 0000000000..6cabb0b112 --- /dev/null +++ b/website/site/assets/feature-clips/checkpoints.moonframe.en.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:08.560 +The forecast file has an edit. To try the earlier version again, open Checkpoints from the workspace menu. + +2 +00:00:08.729 --> 00:00:14.289 +Hover over the checkpoint saved before the edit, then click its restore arrow. + +3 +00:00:15.015 --> 00:00:19.935 +Confirm the restore to put the files and the branch back where they were. + +4 +00:00:20.423 --> 00:00:26.223 +Sheprd saves the state you just left, too. You can return to it from this list. diff --git a/website/site/assets/feature-clips/checkpoints.moonframe.fr.mp4 b/website/site/assets/feature-clips/checkpoints.moonframe.fr.mp4 new file mode 100644 index 0000000000..5a5fc041b5 --- /dev/null +++ b/website/site/assets/feature-clips/checkpoints.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6ebad671e425c74a72e7a63f3d221e75e696a97218a29cb84764a63b9a3d589 +size 1222635 diff --git a/website/site/assets/feature-clips/checkpoints.moonframe.fr.vtt b/website/site/assets/feature-clips/checkpoints.moonframe.fr.vtt new file mode 100644 index 0000000000..200e3daed3 --- /dev/null +++ b/website/site/assets/feature-clips/checkpoints.moonframe.fr.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:08.720 +Le fichier de prévisions a été modifié. Pour retrouver la version précédente, ouvrez « Checkpoints » dans le menu du projet. + +2 +00:00:08.729 --> 00:00:15.009 +Survolez le point enregistré avant la modification, puis cliquez sur la flèche de restauration. + +3 +00:00:15.015 --> 00:00:20.415 +Confirmez la restauration pour retrouver les fichiers et la branche dans leur état précédent. + +4 +00:00:20.423 --> 00:00:26.383 +Sheprd garde aussi une copie de l’état que vous venez de quitter. Vous pouvez le retrouver dans cette liste. diff --git a/website/site/assets/feature-clips/command-palette.jpg b/website/site/assets/feature-clips/command-palette.jpg new file mode 100644 index 0000000000..bdde47834f Binary files /dev/null and b/website/site/assets/feature-clips/command-palette.jpg differ diff --git a/website/site/assets/feature-clips/command-palette.moonframe.en.mp4 b/website/site/assets/feature-clips/command-palette.moonframe.en.mp4 new file mode 100644 index 0000000000..134642fce5 --- /dev/null +++ b/website/site/assets/feature-clips/command-palette.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c1da61ddcd4b9e7148ff164158074aedeb51f2cc823146c18149f637978c330 +size 1386723 diff --git a/website/site/assets/feature-clips/command-palette.moonframe.en.vtt b/website/site/assets/feature-clips/command-palette.moonframe.en.vtt new file mode 100644 index 0000000000..df659be87e --- /dev/null +++ b/website/site/assets/feature-clips/command-palette.moonframe.en.vtt @@ -0,0 +1,21 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:06.080 +Everything in Sheprd is a few keystrokes away, in the command palette. + +2 +00:00:06.088 --> 00:00:13.488 +Press Command Shift P: workspaces, terminals, agents and commands, in one list. + +3 +00:00:14.456 --> 00:00:19.456 +Type a few letters and press Return to open Review Changes. + +4 +00:00:22.549 --> 00:00:28.269 +The chips at the top narrow the list, for example to commands only. + +5 +00:00:28.711 --> 00:00:32.591 +Escape closes it, right where you left off. diff --git a/website/site/assets/feature-clips/command-palette.moonframe.fr.mp4 b/website/site/assets/feature-clips/command-palette.moonframe.fr.mp4 new file mode 100644 index 0000000000..b3ae78f2de --- /dev/null +++ b/website/site/assets/feature-clips/command-palette.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57c798b9c7b73320f4308a4e1b4ce1990e2ec6a0b8643979fa2cb5442a17232b +size 1398258 diff --git a/website/site/assets/feature-clips/command-palette.moonframe.fr.vtt b/website/site/assets/feature-clips/command-palette.moonframe.fr.vtt new file mode 100644 index 0000000000..b9ee21574d --- /dev/null +++ b/website/site/assets/feature-clips/command-palette.moonframe.fr.vtt @@ -0,0 +1,21 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:05.520 +Dans Sheprd, tout est à quelques touches, dans la palette de commandes. + +2 +00:00:06.088 --> 00:00:14.448 +Appuyez sur Commande Majuscule P : espaces de travail, terminaux, agents et commandes, dans une seule liste. + +3 +00:00:14.456 --> 00:00:20.016 +Tapez quelques lettres et appuyez sur Entrée pour ouvrir la revue des modifications. + +4 +00:00:22.549 --> 00:00:27.549 +Les filtres du haut réduisent la liste, par exemple aux seules commandes. + +5 +00:00:28.711 --> 00:00:32.671 +Échap la ferme, et vous reprenez là où vous en étiez. diff --git a/website/site/assets/feature-clips/manifest.json b/website/site/assets/feature-clips/manifest.json new file mode 100644 index 0000000000..2019620dc3 --- /dev/null +++ b/website/site/assets/feature-clips/manifest.json @@ -0,0 +1,197 @@ +{ + "agent-chat": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 37.7, + "starts": [ + 1.0, + 6.25, + 11.42, + 20.16, + 26.52, + 33.13 + ] + }, + "review-changes": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 24.6, + "starts": [ + 1.0, + 5.68, + 11.01, + 15.21, + 20.29 + ] + }, + "command-palette": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 32.6, + "starts": [ + 1.0, + 6.09, + 14.46, + 22.55, + 28.71 + ] + }, + "browser-tabs": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 30.3, + "starts": [ + 1.0, + 5.6, + 10.37, + 17.45, + 23.98 + ] + }, + "themes": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 27.6, + "starts": [ + 1.0, + 5.13, + 12.24, + 18.12, + 23.66 + ] + }, + "new-worktree": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 28.5, + "starts": [ + 1.0, + 8.09, + 14.77, + 21.45 + ] + }, + "checkpoints": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 26.2, + "starts": [ + 1.0, + 8.73, + 15.02, + 20.42 + ] + }, + "repository-memory": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 26.6, + "starts": [ + 1.0, + 7.6, + 13.09, + 20.81 + ] + }, + "automations": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 26.9, + "starts": [ + 1.0, + 7.12, + 13.49, + 19.93 + ] + }, + "text-shortcuts": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 28.0, + "starts": [ + 1.0, + 7.29, + 15.02, + 22.43 + ] + }, + "tour": { + "windows": [ + "moonframe" + ], + "langs": [ + "en", + "fr" + ], + "length": 125.3, + "starts": [ + 1.0, + 7.28, + 13.88, + 17.77, + 25.75, + 33.95, + 40.55, + 49.08, + 55.2, + 66.23, + 71.96, + 80.96, + 87.73, + 96.1, + 101.34, + 110.41, + 120.54 + ] + } +} diff --git a/website/site/assets/feature-clips/new-worktree.jpg b/website/site/assets/feature-clips/new-worktree.jpg new file mode 100644 index 0000000000..8ae2074137 Binary files /dev/null and b/website/site/assets/feature-clips/new-worktree.jpg differ diff --git a/website/site/assets/feature-clips/new-worktree.moonframe.en.mp4 b/website/site/assets/feature-clips/new-worktree.moonframe.en.mp4 new file mode 100644 index 0000000000..64b8ec4651 --- /dev/null +++ b/website/site/assets/feature-clips/new-worktree.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a6277009318112a9fc09e00d8fef21a3ce0917acfc1197aa9dc7764404812e7 +size 1204966 diff --git a/website/site/assets/feature-clips/new-worktree.moonframe.en.vtt b/website/site/assets/feature-clips/new-worktree.moonframe.en.vtt new file mode 100644 index 0000000000..d7e0eaa2ff --- /dev/null +++ b/website/site/assets/feature-clips/new-worktree.moonframe.en.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:07.600 +Let’s work on JSON output for the forecast app. Open New worktree from the workspace menu. + +2 +00:00:08.085 --> 00:00:14.605 +Enter the name of the branch you want to resume. Here, it’s forecast-json. + +3 +00:00:14.765 --> 00:00:21.445 +Choose a shell or an installed agent for the first pane. We’ll open a terminal on this branch. + +4 +00:00:21.446 --> 00:00:27.486 +Add a note to the new checkout. Its first line appears under the branch in the sidebar. diff --git a/website/site/assets/feature-clips/new-worktree.moonframe.fr.mp4 b/website/site/assets/feature-clips/new-worktree.moonframe.fr.mp4 new file mode 100644 index 0000000000..70bfaf8579 --- /dev/null +++ b/website/site/assets/feature-clips/new-worktree.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f910948d39e8bb939f8c8e4686efeb18a69db9cc8b3a65bde7ed34c224288a3e +size 1230117 diff --git a/website/site/assets/feature-clips/new-worktree.moonframe.fr.vtt b/website/site/assets/feature-clips/new-worktree.moonframe.fr.vtt new file mode 100644 index 0000000000..a1d72e6a93 --- /dev/null +++ b/website/site/assets/feature-clips/new-worktree.moonframe.fr.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:08.080 +Ajoutons une sortie JSON aux prévisions. Dans le menu du projet, choisissez « New worktree ». + +2 +00:00:08.085 --> 00:00:14.765 +Saisissez le nom de la branche que vous voulez reprendre. Ici, c’est forecast-json. + +3 +00:00:14.765 --> 00:00:21.445 +Choisissez un terminal ou un agent installé pour le premier volet. Ouvrons un terminal sur cette branche. + +4 +00:00:21.446 --> 00:00:27.886 +Ajoutez une note au nouveau dossier de travail. Sa première ligne apparaît sous la branche dans la barre latérale. diff --git a/website/site/assets/feature-clips/repository-memory.jpg b/website/site/assets/feature-clips/repository-memory.jpg new file mode 100644 index 0000000000..c175fddae0 Binary files /dev/null and b/website/site/assets/feature-clips/repository-memory.jpg differ diff --git a/website/site/assets/feature-clips/repository-memory.moonframe.en.mp4 b/website/site/assets/feature-clips/repository-memory.moonframe.en.mp4 new file mode 100644 index 0000000000..52a206fd78 --- /dev/null +++ b/website/site/assets/feature-clips/repository-memory.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:682f6023de4168b074b938928be726925b579aeb3562bb37f59c06561877ba01 +size 923040 diff --git a/website/site/assets/feature-clips/repository-memory.moonframe.en.vtt b/website/site/assets/feature-clips/repository-memory.moonframe.en.vtt new file mode 100644 index 0000000000..f92c0d6ee6 --- /dev/null +++ b/website/site/assets/feature-clips/repository-memory.moonframe.en.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:07.600 +Where does this project get its sample forecast? Save the answer once in repository memory. + +2 +00:00:07.603 --> 00:00:12.123 +From the checkout, add a fact naming the sample data file. + +3 +00:00:13.088 --> 00:00:20.808 +Switch to another worktree of the same repository and search for forecast. The fact comes back here, too. + +4 +00:00:20.813 --> 00:00:26.613 +Use the entry number to read the full note. The next agent can find it the same way. diff --git a/website/site/assets/feature-clips/repository-memory.moonframe.fr.mp4 b/website/site/assets/feature-clips/repository-memory.moonframe.fr.mp4 new file mode 100644 index 0000000000..7ea753468b --- /dev/null +++ b/website/site/assets/feature-clips/repository-memory.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ee9538134b9deb6d7cbcff5aca10be7f7b51e14f85bb61adf3278dcced84dc8 +size 953113 diff --git a/website/site/assets/feature-clips/repository-memory.moonframe.fr.vtt b/website/site/assets/feature-clips/repository-memory.moonframe.fr.vtt new file mode 100644 index 0000000000..05ae6068d5 --- /dev/null +++ b/website/site/assets/feature-clips/repository-memory.moonframe.fr.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:06.800 +D’où viennent les données de cet exemple météo ? Enregistrez la réponse dans la mémoire du dépôt. + +2 +00:00:07.603 --> 00:00:13.083 +Depuis le dossier du projet, ajoutez une entrée qui indique le nom du fichier de données. + +3 +00:00:13.088 --> 00:00:20.488 +Passez à un autre dossier de travail du même dépôt et recherchez le mot « forecast ». Vous y retrouvez la même entrée. + +4 +00:00:20.813 --> 00:00:27.733 +Utilisez le numéro de l’entrée pour lire la note entière. Le prochain agent pourra la retrouver de la même manière. diff --git a/website/site/assets/feature-clips/review-changes.jpg b/website/site/assets/feature-clips/review-changes.jpg new file mode 100644 index 0000000000..4b7bd0ba84 Binary files /dev/null and b/website/site/assets/feature-clips/review-changes.jpg differ diff --git a/website/site/assets/feature-clips/review-changes.moonframe.en.mp4 b/website/site/assets/feature-clips/review-changes.moonframe.en.mp4 new file mode 100644 index 0000000000..6afbf0d5ab --- /dev/null +++ b/website/site/assets/feature-clips/review-changes.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81ffb2160ecd644184bafe29754550a3398bafd1365ca09d353a32d0c283ea0a +size 1587305 diff --git a/website/site/assets/feature-clips/review-changes.moonframe.en.vtt b/website/site/assets/feature-clips/review-changes.moonframe.en.vtt new file mode 100644 index 0000000000..a28343d2a4 --- /dev/null +++ b/website/site/assets/feature-clips/review-changes.moonframe.en.vtt @@ -0,0 +1,21 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:05.680 +Before you ship what an agent wrote, review it in Sheprd. + +2 +00:00:05.680 --> 00:00:11.000 +Open Review Changes from the palette: every file the work touched. + +3 +00:00:11.005 --> 00:00:14.965 +Each change sits beside the code it replaces. + +4 +00:00:15.211 --> 00:00:18.851 +Click a line number to leave a note for the agent. + +5 +00:00:20.286 --> 00:00:24.646 +Then mark the file viewed, and move on to the next. diff --git a/website/site/assets/feature-clips/review-changes.moonframe.fr.mp4 b/website/site/assets/feature-clips/review-changes.moonframe.fr.mp4 new file mode 100644 index 0000000000..05eba65239 --- /dev/null +++ b/website/site/assets/feature-clips/review-changes.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d4f9de63ae24791d179f16f9588870722c78e1271c05ed04b1c08d14f4c748b +size 1588551 diff --git a/website/site/assets/feature-clips/review-changes.moonframe.fr.vtt b/website/site/assets/feature-clips/review-changes.moonframe.fr.vtt new file mode 100644 index 0000000000..482ecffcba --- /dev/null +++ b/website/site/assets/feature-clips/review-changes.moonframe.fr.vtt @@ -0,0 +1,21 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:05.600 +Avant de livrer ce qu'un agent a écrit, relisez-le dans Sheprd. + +2 +00:00:05.680 --> 00:00:10.760 +Ouvrez « Relire les changements » depuis la palette : chaque fichier modifié. + +3 +00:00:11.005 --> 00:00:15.205 +Chaque modification s'affiche face au code qu'elle remplace. + +4 +00:00:15.211 --> 00:00:19.251 +Cliquez sur un numéro de ligne pour laisser une note à l'agent. + +5 +00:00:20.286 --> 00:00:24.406 +Puis marquez le fichier comme vu, et passez au suivant. diff --git a/website/site/assets/feature-clips/text-shortcuts.jpg b/website/site/assets/feature-clips/text-shortcuts.jpg new file mode 100644 index 0000000000..a3e406b776 Binary files /dev/null and b/website/site/assets/feature-clips/text-shortcuts.jpg differ diff --git a/website/site/assets/feature-clips/text-shortcuts.moonframe.en.mp4 b/website/site/assets/feature-clips/text-shortcuts.moonframe.en.mp4 new file mode 100644 index 0000000000..6f21c210c3 --- /dev/null +++ b/website/site/assets/feature-clips/text-shortcuts.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4c097825955d9df2926c27cbcb5676165f7ba069ac1d121baf763fcfc99b5cd +size 1160780 diff --git a/website/site/assets/feature-clips/text-shortcuts.moonframe.en.vtt b/website/site/assets/feature-clips/text-shortcuts.moonframe.en.vtt new file mode 100644 index 0000000000..6f7068b883 --- /dev/null +++ b/website/site/assets/feature-clips/text-shortcuts.moonframe.en.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:06.400 +If you ask for the same review each week, save the prompt in Text Shortcuts. + +2 +00:00:07.290 --> 00:00:11.890 +Give it a short label and write the instructions you want to reuse. + +3 +00:00:15.015 --> 00:00:22.415 +Back in chat, start a draft with the file you want reviewed, then open the shortcuts beside the composer. + +4 +00:00:22.425 --> 00:00:27.985 +Pick your review instructions. They’re added to your draft, ready to send together. diff --git a/website/site/assets/feature-clips/text-shortcuts.moonframe.fr.mp4 b/website/site/assets/feature-clips/text-shortcuts.moonframe.fr.mp4 new file mode 100644 index 0000000000..fcf25d0fab --- /dev/null +++ b/website/site/assets/feature-clips/text-shortcuts.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8f16221891f167489c14ec5b002fe1b455c28204c566ed7128a109173d8857c +size 1222100 diff --git a/website/site/assets/feature-clips/text-shortcuts.moonframe.fr.vtt b/website/site/assets/feature-clips/text-shortcuts.moonframe.fr.vtt new file mode 100644 index 0000000000..b0ea14b99d --- /dev/null +++ b/website/site/assets/feature-clips/text-shortcuts.moonframe.fr.vtt @@ -0,0 +1,17 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:07.280 +Si vous demandez la même revue chaque semaine, enregistrez votre consigne dans « Text Shortcuts ». + +2 +00:00:07.290 --> 00:00:12.130 +Donnez-lui un nom court, puis saisissez les instructions à réutiliser. + +3 +00:00:15.015 --> 00:00:22.175 +De retour dans le chat, saisissez le nom du fichier à examiner, puis ouvrez les raccourcis à côté du champ de saisie. + +4 +00:00:22.425 --> 00:00:28.545 +Choisissez votre consigne de revue. Elle s’ajoute au brouillon, et vous pouvez envoyer le tout à l’agent. diff --git a/website/site/assets/feature-clips/themes.jpg b/website/site/assets/feature-clips/themes.jpg new file mode 100644 index 0000000000..a23aa9a925 Binary files /dev/null and b/website/site/assets/feature-clips/themes.jpg differ diff --git a/website/site/assets/feature-clips/themes.moonframe.en.mp4 b/website/site/assets/feature-clips/themes.moonframe.en.mp4 new file mode 100644 index 0000000000..05fce35261 --- /dev/null +++ b/website/site/assets/feature-clips/themes.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90ed6f2dacd7d05d9df08cbc9df18c89bc8ab5c7efee73a069fd5fc0143b4343 +size 1124334 diff --git a/website/site/assets/feature-clips/themes.moonframe.en.vtt b/website/site/assets/feature-clips/themes.moonframe.en.vtt new file mode 100644 index 0000000000..d39fe48d77 --- /dev/null +++ b/website/site/assets/feature-clips/themes.moonframe.en.vtt @@ -0,0 +1,21 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:05.120 +Sheprd lets you change its whole look in seconds. + +2 +00:00:05.129 --> 00:00:10.849 +Open the command palette with Command Shift P, and search for themes. + +3 +00:00:12.239 --> 00:00:18.119 +Move through the list: every theme previews live, across the whole window. + +4 +00:00:18.121 --> 00:00:22.801 +Type to filter, then press Return to keep the one you like. + +5 +00:00:23.662 --> 00:00:27.622 +It's saved, and you can change it again anytime. diff --git a/website/site/assets/feature-clips/themes.moonframe.fr.mp4 b/website/site/assets/feature-clips/themes.moonframe.fr.mp4 new file mode 100644 index 0000000000..a774b8add6 --- /dev/null +++ b/website/site/assets/feature-clips/themes.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e602a2a0e11159738aacff169ba41e02401bb8a89e942f09a4c91a832eca955 +size 1112780 diff --git a/website/site/assets/feature-clips/themes.moonframe.fr.vtt b/website/site/assets/feature-clips/themes.moonframe.fr.vtt new file mode 100644 index 0000000000..9a7f27c25f --- /dev/null +++ b/website/site/assets/feature-clips/themes.moonframe.fr.vtt @@ -0,0 +1,21 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:05.120 +Sheprd change entièrement d'apparence en quelques secondes. + +2 +00:00:05.129 --> 00:00:11.329 +Ouvrez la palette de commandes avec Commande Majuscule P, puis cherchez « thèmes ». + +3 +00:00:12.239 --> 00:00:17.479 +Parcourez la liste : chaque thème s'applique en direct à toute la fenêtre. + +4 +00:00:18.121 --> 00:00:23.361 +Tapez pour filtrer, puis appuyez sur Entrée pour garder celui qui vous plaît. + +5 +00:00:23.662 --> 00:00:27.622 +C'est enregistré, et vous pouvez en changer à tout moment. diff --git a/website/site/assets/feature-clips/tour.jpg b/website/site/assets/feature-clips/tour.jpg new file mode 100644 index 0000000000..da268d905e Binary files /dev/null and b/website/site/assets/feature-clips/tour.jpg differ diff --git a/website/site/assets/feature-clips/tour.moonframe.en.mp4 b/website/site/assets/feature-clips/tour.moonframe.en.mp4 new file mode 100644 index 0000000000..f6fdbf2b89 --- /dev/null +++ b/website/site/assets/feature-clips/tour.moonframe.en.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac778eb161f1e9474a708daa358752350a9df88f65f62d4d3c8f694d6bc01bf4 +size 6894303 diff --git a/website/site/assets/feature-clips/tour.moonframe.en.vtt b/website/site/assets/feature-clips/tour.moonframe.en.vtt new file mode 100644 index 0000000000..73440a02cf --- /dev/null +++ b/website/site/assets/feature-clips/tour.moonframe.en.vtt @@ -0,0 +1,69 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:07.280 +This is Sheprd: your terminals and your coding agents, together in one window. + +2 +00:00:07.282 --> 00:00:13.882 +On the left are your spaces, one per project, and below them every agent at work. + +3 +00:00:13.883 --> 00:00:17.203 +Click new to start a fresh space. + +4 +00:00:17.767 --> 00:00:24.207 +For a repository, a new worktree gives an agent its own branch and folder to work in. + +5 +00:00:25.751 --> 00:00:33.951 +The agent button, next to the new tab button, opens a chat with Claude, Codex, Gemini or another agent. + +6 +00:00:33.955 --> 00:00:40.555 +Ask for a change, and follow every file it reads, every edit and every test. + +7 +00:00:40.555 --> 00:00:49.075 +A chat is a native view of an agent running in a terminal. This button shows that terminal, and Chat brings the chat back. + +8 +00:00:49.075 --> 00:00:55.115 +Each space holds tabs, and each tab can split into panes, side by side. + +9 +00:00:55.201 --> 00:01:02.921 +The activity bar opens more: an overview of your agents, pull requests, issues, usage and more. + +10 +00:01:06.234 --> 00:01:11.954 +The status bar keeps an eye on the machine, and shows your plan usage when you turn it on. + +11 +00:01:11.959 --> 00:01:20.319 +Devices lists every machine you work on. Add SSH hosts or cloud machines, and their agents show up here too. + +12 +00:01:20.960 --> 00:01:27.560 +Agents can open web pages beside you too. Ask for a preview, and the page opens in a tab. + +13 +00:01:27.726 --> 00:01:34.406 +Annotate it: click anything on the page, write what should change, and send it to the agent. + +14 +00:01:36.100 --> 00:01:41.020 +The agent gets your note, makes the change, and the page reloads. + +15 +00:01:41.341 --> 00:01:46.741 +Settings opens on themes: hover one to try it on the whole window. + +16 +00:01:50.407 --> 00:01:55.727 +Pick the sidebar layout, the status indicators, and how tabs look. + +17 +00:02:00.540 --> 00:02:05.300 +That's the tour. Every feature has its own short guide below. diff --git a/website/site/assets/feature-clips/tour.moonframe.fr.mp4 b/website/site/assets/feature-clips/tour.moonframe.fr.mp4 new file mode 100644 index 0000000000..6e2644ce80 --- /dev/null +++ b/website/site/assets/feature-clips/tour.moonframe.fr.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8c2ebea6b04cf1e0b2cb28cd7b7c6f8caaef1d0aa893b2fa4c864d3247ef858 +size 6935664 diff --git a/website/site/assets/feature-clips/tour.moonframe.fr.vtt b/website/site/assets/feature-clips/tour.moonframe.fr.vtt new file mode 100644 index 0000000000..6fb67d1c6e --- /dev/null +++ b/website/site/assets/feature-clips/tour.moonframe.fr.vtt @@ -0,0 +1,69 @@ +WEBVTT + +1 +00:00:01.000 --> 00:00:06.880 +Voici Sheprd : vos terminaux et vos agents de code, réunis dans une seule fenêtre. + +2 +00:00:07.282 --> 00:00:13.082 +À gauche, vos espaces, un par projet, et en dessous chaque agent au travail. + +3 +00:00:13.883 --> 00:00:17.763 +Cliquez sur « new » pour créer un nouvel espace. + +4 +00:00:17.767 --> 00:00:23.967 +Dans un dépôt, un nouveau worktree donne à un agent sa propre branche et son propre dossier. + +5 +00:00:25.751 --> 00:00:33.311 +Le bouton d'agent, à côté du bouton de nouvel onglet, ouvre un chat avec Claude, Codex, Gemini ou un autre agent. + +6 +00:00:33.955 --> 00:00:40.235 +Demandez une modification, et suivez chaque fichier lu, chaque modification et chaque test. + +7 +00:00:40.555 --> 00:00:49.075 +Un chat est une vue native d'un agent qui tourne dans un terminal. Ce bouton affiche ce terminal, et « Chat » ramène le chat. + +8 +00:00:49.075 --> 00:00:55.195 +Chaque espace contient des onglets, et chaque onglet peut se diviser en volets, côte à côte. + +9 +00:00:55.201 --> 00:01:03.881 +La barre d'activité donne accès au reste : une vue d'ensemble de vos agents, les pull requests, les tickets, l'utilisation, et plus. + +10 +00:01:06.234 --> 00:01:11.954 +La barre d'état surveille la machine, et affiche l'utilisation de vos abonnements si vous l'activez. + +11 +00:01:11.959 --> 00:01:20.959 +« Devices » liste chaque machine sur laquelle vous travaillez. Ajoutez des hôtes SSH ou des machines cloud, et leurs agents apparaissent ici aussi. + +12 +00:01:20.960 --> 00:01:27.720 +Les agents peuvent aussi ouvrir des pages web à côté de vous. Demandez un aperçu, et la page s'ouvre dans un onglet. + +13 +00:01:27.726 --> 00:01:34.406 +Annotez-la : cliquez sur n'importe quel élément, écrivez ce qui doit changer, et envoyez-le à l'agent. + +14 +00:01:36.100 --> 00:01:41.340 +L'agent reçoit votre note, fait la modification, et la page se recharge. + +15 +00:01:41.341 --> 00:01:46.901 +Les réglages s'ouvrent sur les thèmes : survolez-en un pour l'essayer sur toute la fenêtre. + +16 +00:01:50.407 --> 00:01:56.847 +Choisissez la disposition de la barre latérale, les indicateurs d'état, et l'apparence des onglets. + +17 +00:02:00.540 --> 00:02:05.860 +Voilà pour la visite. Chaque fonctionnalité a son propre petit guide ci-dessous. diff --git a/website/site/assets/feature-demo.js b/website/site/assets/feature-demo.js new file mode 100644 index 0000000000..c099a65bf9 --- /dev/null +++ b/website/site/assets/feature-demo.js @@ -0,0 +1,76 @@ +'use strict'; +// A feature page's demo: one recording per window, narrated in each +// language. The window and language buttons swap the clip and keep the +// place; the chapter buttons seek and play. +const demo = document.querySelector('#feature-demo'); +if (demo instanceof HTMLVideoElement) { + const labels = { en: 'English', fr: 'Français' }; + const chosen = { window: demo.dataset.window, lang: 'en' }; + let pending = null; + const play = async () => { + try { + await demo.play(); + } catch (error) { + if (error.name === 'AbortError') return; + // Native controls remain available when the browser blocks playback. + demo.focus(); + } + }; + // Space plays and pauses the demo anywhere on the page, as on video sites, + // instead of scrolling it: also while the video, a chapter, or a window or + // language button has the keyboard. Only typing in a field keeps Space, and + // Enter still presses a focused button. Listening while capturing runs + // before the browser's own handling, so the video never toggles twice. + window.addEventListener('keydown', (event) => { + if (event.key !== ' ' || event.metaKey || event.ctrlKey || event.altKey) return; + const target = event.target; + if (target instanceof HTMLElement + && (target.isContentEditable || ['INPUT', 'TEXTAREA', 'SELECT'].includes(target.tagName))) return; + event.preventDefault(); + event.stopPropagation(); + if (event.repeat) return; + if (pending) pending.playing = !pending.playing; + else if (demo.paused) play(); else demo.pause(); + }, { capture: true }); + document.querySelectorAll('[data-seek]').forEach((button) => { + button.addEventListener('click', () => { + const at = Number(button.dataset.seek); + if (pending) { + pending = { at, playing: true }; + return; + } + demo.currentTime = at; + play(); + }); + }); + demo.addEventListener('loadedmetadata', () => { + if (!pending) return; + const { at, playing } = pending; + pending = null; + demo.currentTime = Math.min(at, demo.duration); + if (playing) play(); + }); + const show = () => { + pending ??= { at: demo.currentTime, playing: !demo.paused }; + const name = `${demo.dataset.clips}.${chosen.window}.${chosen.lang}`; + demo.querySelector('source').src = `${name}.mp4`; + const track = demo.querySelector('track'); + track.src = `${name}.vtt`; + track.srclang = chosen.lang; + track.label = labels[chosen.lang]; + demo.load(); + }; + ['window', 'lang'].forEach((key) => { + const buttons = document.querySelectorAll(`.demo-switches [data-${key}]`); + buttons.forEach((button) => { + button.addEventListener('click', () => { + if (chosen[key] === button.dataset[key]) return; + chosen[key] = button.dataset[key]; + buttons.forEach((other) => { + other.setAttribute('aria-pressed', String(other === button)); + }); + show(); + }); + }); + }); +} diff --git a/website/site/assets/feature-pages.css b/website/site/assets/feature-pages.css new file mode 100644 index 0000000000..cfebe3e510 --- /dev/null +++ b/website/site/assets/feature-pages.css @@ -0,0 +1,95 @@ +.feature-page .masthead a[aria-current] { color: var(--orange); text-decoration: underline; text-underline-offset: 6px; } +.feature-intro { padding: 5rem 0 3.5rem; } +.feature-intro h1, .feature-title h1 { font-size: clamp(3.2rem, 6vw, 5.3rem); } +.feature-dek { color: var(--ink-2); font-size: 1.25rem; line-height: 1.6; margin: 0; } +.feature-spotlight { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: center; padding: 2.5rem 0 4rem; border-top: 1px solid var(--rule); } +.feature-preview { display: block; position: relative; overflow: hidden; border-radius: 10px; background: #202128; box-shadow: 0 16px 35px -20px #23180f70; } +.feature-preview img { display: block; width: 100%; height: auto; transition: transform .25s ease; } +.feature-preview:hover img { transform: scale(1.025); } +.watch-label { display: flex; gap: .8rem; align-items: center; padding: 1rem 1.2rem; background: var(--ink); color: var(--paper); font: 500 .9rem var(--sans); } +.watch-label span:last-child { margin-left: auto; opacity: .7; } +.spotlight-copy h2, .feature-how h2 { font: 500 clamp(2rem, 3vw, 3rem)/1.12 var(--serif); letter-spacing: -.025em; margin: 0 0 1.2rem; } +.spotlight-copy > p:not(.kicker) { color: var(--ink-2); } +.text-link { font: 600 .95rem/1.5 var(--sans); } +.feature-meta { font: .8rem/1.5 var(--sans); margin-top: 1.5rem; } +.feature-note { border-block: 1px solid var(--rule); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; } +.feature-note p { margin: 0; } +.feature-note a { font: .9rem/1.5 var(--sans); } +.feature-footer { display: flex; align-items: center; gap: 1.5rem; padding-block: 3rem; color: var(--ink-2); font: .85rem var(--sans); } +.feature-footer > a:last-child { margin-left: auto; } +.feature-breadcrumb { display: flex; justify-content: space-between; padding: 2rem 0; font: .85rem var(--sans); color: var(--ink-2); } +.feature-breadcrumb a { text-decoration: none; } +.feature-title { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 0 2.3rem; } +.feature-title h1 { margin-bottom: 0; } +.demo { margin: 0; } +.demo video { display: block; width: 100%; aspect-ratio: 16/9; background: #202128; border-radius: 10px; box-shadow: 0 22px 50px -30px #23180f90; } +.demo figcaption { display: flex; justify-content: space-between; gap: .5rem; font: .75rem/1.5 var(--sans); color: var(--ink-2); padding: 1rem 0; } +.demo-switches { display: inline-flex; flex-wrap: wrap; gap: .75rem; } +.demo-langs { display: inline-flex; gap: .25rem; } +.demo-langs button { background: transparent; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); padding: .2rem .7rem; font: 500 .75rem var(--sans); cursor: pointer; } +.demo-langs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); } +.demo-chapters { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--rule); margin-top: .5rem; } +.demo-chapters button { display: flex; gap: .75rem; align-items: center; background: transparent; border: 0; color: var(--ink); padding: 1.3rem 1rem; font: 500 .85rem var(--sans); cursor: pointer; text-align: left; } +.demo-chapters button + button { border-left: 1px solid var(--rule); } +.demo-chapters button:hover { background: var(--paper-2); } +.demo-chapters button > span { color: var(--orange); font: .8rem var(--mono); } +.demo-chapters time { margin-left: auto; color: var(--ink-2); font: .75rem var(--mono); } +.feature-how { display: grid; grid-template-columns: 1fr 1.35fr; gap: 4rem; padding: 4.5rem 0 2.5rem; } +.feature-how ol { list-style: none; counter-reset: steps; padding: 0; margin: 0; } +.feature-how li { counter-increment: steps; position: relative; padding: 0 0 1.5rem 2.7rem; } +.feature-how li::before { content: '0' counter(steps); position: absolute; left: 0; top: .2rem; color: var(--orange); font: .85rem var(--mono); } +.feature-how h3 { font: 600 1rem/1.5 var(--sans); margin: 0 0 .5rem; } +.feature-how li p { color: var(--ink-2); margin: 0; font-size: 1.05rem; } +.demo-transcript { border-block: 1px solid var(--rule); padding: 1.2rem 0; color: var(--ink-2); } +.demo-transcript summary { cursor: pointer; font: 500 .9rem var(--sans); color: var(--ink); } +.demo-transcript p { max-width: 45rem; } +.feature-end { text-align: center; padding: 3rem 0; border-bottom: 1px solid var(--rule); } +.feature-end p { font-size: 1.8rem; margin: 0 0 1rem; } +@media (max-width: 750px) { + .feature-intro { padding-top: 3rem; } + .feature-spotlight, .feature-how { grid-template-columns: 1fr; gap: 2rem; } + .feature-title { display: block; padding-top: .5rem; } + .feature-title .feature-dek { margin-top: 1.5rem; } + .feature-title h1 br, .desktop-break { display: none; } + .feature-dek { font-size: 1.1rem; } + .demo figcaption, .feature-note { align-items: flex-start; flex-direction: column; } + .demo-chapters { grid-template-columns: 1fr; } + .demo-chapters button + button { border-left: 0; border-top: 1px solid var(--rule); } + .feature-footer { flex-wrap: wrap; gap: 1rem; } + .feature-footer p { display: none; } + .feature-page .masthead .repo { display: none; } + .feature-page .masthead ul { gap: .6rem; font-size: .8rem; } + .feature-page .masthead-inner { gap: .5rem; } + .feature-how { padding-top: 3rem; } +} +@media (max-width: 380px) { .feature-page .brand span { display: none; } } +.feature-preview { text-decoration: none; } + +/* The features index: search, category chips, and the card grid. */ +.feature-search { display: block; border-top: 1px solid var(--rule); padding: 2rem 0 1.5rem; } +.feature-search input { width: 100%; box-sizing: border-box; font: 1.15rem/1.4 var(--sans); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: .9rem 1.1rem; } +.feature-search input:focus { outline: 2px solid var(--orange); outline-offset: 2px; } +.feature-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; } +.feature-filters button { background: transparent; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); padding: .3rem .9rem; font: 500 .8rem var(--sans); cursor: pointer; } +.feature-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); } +.feature-count { margin: 1rem 0 0; font: .8rem var(--sans); color: var(--ink-2); } +.feature-grid { list-style: none; margin: 0; padding: 0 0 4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 2.2rem 1.8rem; } +.feature-card[hidden] { display: none; } +.feature-card a { display: flex; flex-direction: column; gap: .45rem; text-decoration: none; color: var(--ink); } +.card-media { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #202128; box-shadow: 0 16px 35px -24px #23180f70; } +.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .25s ease; } +.feature-card a:hover .card-media img { transform: scale(1.03); } +.card-time { position: absolute; left: .7rem; bottom: .7rem; background: #15161ccc; color: #fff; font: 500 .75rem var(--sans); padding: .25rem .6rem; border-radius: 999px; } +.card-meta { margin-top: .6rem; font: .75rem var(--mono); color: var(--orange); } +.card-title { font: 500 1.45rem/1.2 var(--serif); letter-spacing: -.015em; } +.card-dek { color: var(--ink-2); font-size: .98rem; line-height: 1.5; } +.feature-empty { padding: 0 0 4rem; color: var(--ink-2); } + +/* Previous and next guide, at a feature page's foot. */ +.feature-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--rule); padding: 2rem 0; } +.feature-pager a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; font: 500 1.2rem/1.3 var(--serif); color: var(--ink); } +.feature-pager a span { font: .75rem var(--sans); color: var(--ink-2); } +.feature-pager a[rel="next"] { text-align: right; } + +/* The basics tour atop the features index. */ +.tour-demo { padding: 0 0 3rem; } diff --git a/website/site/assets/feature-search.js b/website/site/assets/feature-search.js new file mode 100644 index 0000000000..17216eb358 --- /dev/null +++ b/website/site/assets/feature-search.js @@ -0,0 +1,54 @@ +'use strict'; +// The features index: a search over each guide's title, description, steps +// and narration in every language, plus category chips. The query lives in +// the address (?q=) so a search can be shared; "/" focuses the box. +(() => { + const input = document.querySelector('#feature-query'); + const data = document.querySelector('#feature-index'); + if (!(input instanceof HTMLInputElement) || !data) return; + // Case and accents never matter: "thème" finds "theme" and back. + const fold = (text) => text.normalize('NFD').replace(/[̀-ͯ]/g, '').toLowerCase(); + const entries = JSON.parse(data.textContent).map((entry) => ({ ...entry, text: fold(entry.text) })); + const cards = new Map([...document.querySelectorAll('.feature-card')].map((card) => [card.dataset.id, card])); + const chips = [...document.querySelectorAll('.feature-filters [data-category]')]; + const count = document.querySelector('#feature-count'); + const empty = document.querySelector('#feature-empty'); + let category = ''; + + const apply = () => { + const words = fold(input.value).split(/\s+/).filter(Boolean); + let shown = 0; + for (const entry of entries) { + const match = (!category || entry.category === category) + && words.every((word) => entry.text.includes(word)); + cards.get(entry.id).hidden = !match; + if (match) shown += 1; + } + count.textContent = String(shown); + empty.hidden = shown > 0; + const url = new URL(window.location.href); + if (input.value.trim()) url.searchParams.set('q', input.value.trim()); + else url.searchParams.delete('q'); + window.history.replaceState(null, '', url); + }; + + input.value = new URL(window.location.href).searchParams.get('q') || ''; + input.addEventListener('input', apply); + chips.forEach((chip) => { + chip.addEventListener('click', () => { + category = chip.dataset.category; + chips.forEach((other) => other.setAttribute('aria-pressed', String(other === chip))); + apply(); + }); + }); + document.addEventListener('keydown', (event) => { + if (event.key === '/' && document.activeElement !== input) { + event.preventDefault(); + input.focus(); + } else if (event.key === 'Escape' && document.activeElement === input) { + input.value = ''; + apply(); + } + }); + apply(); +})(); diff --git a/website/site/features/agent-chat/index.html b/website/site/features/agent-chat/index.html new file mode 100644 index 0000000000..689c21db18 --- /dev/null +++ b/website/site/features/agent-chat/index.html @@ -0,0 +1,38 @@ + + + +Native agent chats · Sheprd + + + +
+ +
+
+
← All features01 / Agents
+

Native agent chats

Talk to your agents.
See their work.

Claude, Codex, Gemini and more in a real chat beside the terminal. Switch agents any time; every read, edit and test run is a card you can open.

+
+
38 seconds · narration & captions
+ +

Try it yourself

Native agent chats

Agent chats ↗
  1. Start a chat

    Click the agent button next to the new tab button. It starts the agent you used last; hover it to pick another.

  2. Pick your agent

    The agent menu under the message box switches the chat to Claude, Codex, Gemini, Copilot, OpenCode, Kimi or Pi, whichever you have installed.

  3. Follow every step

    Each read, edit and command shows as a card with its files and output, so nothing happens out of sight.

+
Read the video transcript

Sheprd runs your coding agents in native chats, beside your terminal.

Start one with the agent button, right next to the new tab button.

Switch agents any time: Claude, Codex, Gemini, or any other you have installed.

Ask for what you need. The agent reads your code, makes the change and runs the tests.

Every step is a card: what it read, the lines it changed, and what the tests said.

And the answer arrives formatted, ready for you to review.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/automations/index.html b/website/site/features/automations/index.html new file mode 100644 index 0000000000..3cfd020666 --- /dev/null +++ b/website/site/features/automations/index.html @@ -0,0 +1,38 @@ + + + +Scheduled automations · Sheprd + + + +
+ +
+
+
← All features09 / Automations
+

Scheduled automations

Schedule the forecast tests.

Define a daily test run in a Luau file and review its schedule and command in Sheprd.

+
+
27 seconds · narration & captions
+ +

Try it yourself

Schedule the forecast tests

Automations ↗
  1. Keep the script with the project

    Place the Luau file under .herdr/automations and add the repository with sheprd-automate repo add.

  2. Read the plan

    Select the script in Automations to see its schedule, command and limits.

  3. Review the exact version

    Choose Review and approve to inspect the host, path and content hash. Editing the script requires a new approval.

+
Read the video transcript

This project has a small test suite. A scheduled automation can run it each morning.

The Luau file sets the time and names the test command. Both live with the project.

Open the automation to read the plan. Check the schedule and the command before approving it.

Approval applies to this version of the script on this machine. Editing it asks for approval again.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/browser-tabs/index.html b/website/site/features/browser-tabs/index.html new file mode 100644 index 0000000000..aa11cf186c --- /dev/null +++ b/website/site/features/browser-tabs/index.html @@ -0,0 +1,38 @@ + + + +Browser annotations · Sheprd + + + +
+ +
+
+
← All features04 / Browser
+

Browser annotations

Show your agent
which button you mean.

Pin a note to a button in the live preview. The agent gets your request and the element it belongs to in one message.

+
+
30 seconds · narration & captions
+ +

Try it yourself

Send feedback on a preview

Browser tabs ↗
  1. Ask for a preview

    Have the agent open the local page with sheprd browser open. The preview opens beside the chat.

  2. Pick the button

    Choose Annotate and click a page element. Describe the change and choose Add note to pin it.

  3. Send your feedback

    Choose Send to agent. Sheprd includes the element and the note so the agent can find the exact button.

+
Read the video transcript

Ask for a preview to see the forecast page beside the chat.

Choose Annotate, then click the button you want to change.

Describe the change and add the note. The number on the page marks the exact button.

Send the note to the agent that opened the page. It gets your words along with the element you picked.

Here the button turns green on reload. Close the preview to return to the conversation.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/checkpoints/index.html b/website/site/features/checkpoints/index.html new file mode 100644 index 0000000000..3009466a69 --- /dev/null +++ b/website/site/features/checkpoints/index.html @@ -0,0 +1,38 @@ + + + +Checkpoints · Sheprd + + + +
+ +
+
+
← All features07 / Workspaces
+

Checkpoints

Go back to a saved checkout.

Inspect a checkpoint and restore the files on your branch. Sheprd saves the state you leave so you can return to it.

+
+
26 seconds · narration & captions
+ +

Try it yourself

Undo an agent’s changes

Review and Git ↗
  1. Open the timeline

    Right-click the workspace and choose Checkpoints.

  2. Restore an earlier version

    Hover over a saved checkpoint and click its restore arrow. Read the confirmation and click Restore.

  3. Find the state you left

    The timeline gains a checkpoint named Before restoring a checkpoint.

+
Read the video transcript

The forecast file has an edit. To try the earlier version again, open Checkpoints from the workspace menu.

Hover over the checkpoint saved before the edit, then click its restore arrow.

Confirm the restore to put the files and the branch back where they were.

Sheprd saves the state you just left, too. You can return to it from this list.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/command-palette/index.html b/website/site/features/command-palette/index.html new file mode 100644 index 0000000000..990a0e91cb --- /dev/null +++ b/website/site/features/command-palette/index.html @@ -0,0 +1,38 @@ + + + +The command palette · Sheprd + + + +
+ +
+
+
← All features03 / Navigation
+

The command palette

Everything,
one shortcut away.

Workspaces, terminals, agents and every command in one list. Type a few letters, press Return.

+
+
33 seconds · narration & captions
+ +

Try it yourself

The command palette

Keyboard and commands ↗
  1. Open it

    Press Command Shift P (Control Shift P on Linux and Windows).

  2. Type and go

    A few letters find a workspace, a terminal, an agent or a command. Return runs it.

  3. Narrow it down

    The chips at the top keep only navigation, commands, projects or notes.

+
Read the video transcript

Everything in Sheprd is a few keystrokes away, in the command palette.

Press Command Shift P: workspaces, terminals, agents and commands, in one list.

Type a few letters and press Return to open Review Changes.

The chips at the top narrow the list, for example to commands only.

Escape closes it, right where you left off.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/index.html b/website/site/features/index.html new file mode 100644 index 0000000000..ec26bdee78 --- /dev/null +++ b/website/site/features/index.html @@ -0,0 +1,86 @@ + + + +Features · Sheprd + + + +
+ +
+
+
+

The field guide

+

A little tour.
A lot you can do.

+

Short narrated demos of what Sheprd does, each under half a minute,
in English and French, in the window you use.

+
+
+
New to Sheprd? Start here · 125 seconds
+ + + +
+

10 of 10 features

+
+ + + +
+ + \ No newline at end of file diff --git a/website/site/features/new-worktree/index.html b/website/site/features/new-worktree/index.html new file mode 100644 index 0000000000..cac2925f39 --- /dev/null +++ b/website/site/features/new-worktree/index.html @@ -0,0 +1,38 @@ + + + +Git worktrees · Sheprd + + + +
+ +
+
+
← All features06 / Workspaces
+

Git worktrees

Open a branch in its own folder.

Resume a branch in a separate checkout and leave a reminder beside it in the workspace list.

+
+
28 seconds · narration & captions
+ +

Try it yourself

Start a worktree from a branch

Worktrees ↗
  1. Open the workspace menu

    Right-click the repository in the sidebar and choose New worktree.

  2. Resume a branch

    Enter the branch name, select Terminal for the first pane and click Create.

  3. Leave a reminder

    Open the new checkout’s menu, choose Note and save your text. Its first line appears below the branch.

+
Read the video transcript

Let’s work on JSON output for the forecast app. Open New worktree from the workspace menu.

Enter the name of the branch you want to resume. Here, it’s forecast-json.

Choose a shell or an installed agent for the first pane. We’ll open a terminal on this branch.

Add a note to the new checkout. Its first line appears under the branch in the sidebar.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/repository-memory/index.html b/website/site/features/repository-memory/index.html new file mode 100644 index 0000000000..eccfdfe4e2 --- /dev/null +++ b/website/site/features/repository-memory/index.html @@ -0,0 +1,38 @@ + + + +Repository memory · Sheprd + + + +
+ +
+
+
← All features08 / Agents
+

Repository memory

Keep a project fact across worktrees.

Save where the forecast fixture lives, switch checkouts and retrieve the same note by its entry number.

+
+
27 seconds · narration & captions
+ +

Try it yourself

Leave a note for the next agent

Repository memory commands ↗
  1. Add the fact

    Run sheprd memory add with the text from a checkout of the project.

  2. Search another worktree

    Switch to a worktree of the same repository and run sheprd memory search with a word from the entry.

  3. Read the whole note

    Use the number in the results with sheprd memory get.

+
Read the video transcript

Where does this project get its sample forecast? Save the answer once in repository memory.

From the checkout, add a fact naming the sample data file.

Switch to another worktree of the same repository and search for forecast. The fact comes back here, too.

Use the entry number to read the full note. The next agent can find it the same way.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/review-changes/index.html b/website/site/features/review-changes/index.html new file mode 100644 index 0000000000..af47ab7eb1 --- /dev/null +++ b/website/site/features/review-changes/index.html @@ -0,0 +1,38 @@ + + + +Review Changes · Sheprd + + + +
+ +
+
+
← All features02 / Review
+

Review Changes

Read it
before it ships.

Every file an agent touched, beside the code it replaces, with notes that go straight back to the agent.

+
+
25 seconds · narration & captions
+ +

Try it yourself

Review Changes

Review and commit ↗
  1. Open Review Changes

    Search for it in the command palette. It lists every file with uncommitted changes, or everything since the base branch.

  2. Note what should change

    Click a line number, describe the change and add the note. Notes go to the workspace's agent.

  3. Keep track

    Mark each file viewed once it looks right, and hide viewed files to see what is left.

+
Read the video transcript

Before you ship what an agent wrote, review it in Sheprd.

Open Review Changes from the palette: every file the work touched.

Each change sits beside the code it replaces.

Click a line number to leave a note for the agent.

Then mark the file viewed, and move on to the next.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/text-shortcuts/index.html b/website/site/features/text-shortcuts/index.html new file mode 100644 index 0000000000..95c5e6e247 --- /dev/null +++ b/website/site/features/text-shortcuts/index.html @@ -0,0 +1,38 @@ + + + +Text shortcuts · Sheprd + + + +
+ +
+
+
← All features10 / Agents
+

Text shortcuts

Reuse a review prompt in chat.

Give repeated instructions a short label and insert them alongside the filename in your draft.

+
+
28 seconds · narration & captions
+ +

Try it yourself

Reuse a prompt in chat

Agent chats ↗
  1. Edit your shortcuts

    Open the shortcuts button beside the chat composer and choose Edit Shortcuts.

  2. Save the instructions

    Click Add, enter a title and the text to reuse, then save.

  3. Add it to a draft

    Type the filename first and pick your shortcut from the composer. The instructions are appended to your message.

+
Read the video transcript

If you ask for the same review each week, save the prompt in Text Shortcuts.

Give it a short label and write the instructions you want to reuse.

Back in chat, start a draft with the file you want reviewed, then open the shortcuts beside the composer.

Pick your review instructions. They’re added to your draft, ready to send together.

+ +
+ + \ No newline at end of file diff --git a/website/site/features/themes/index.html b/website/site/features/themes/index.html new file mode 100644 index 0000000000..b2ecc127e6 --- /dev/null +++ b/website/site/features/themes/index.html @@ -0,0 +1,38 @@ + + + +Themes with live preview · Sheprd + + + +
+ +
+
+
← All features05 / Appearance
+

Themes with live preview

Make yourself
at home.

Dark, light, or somewhere in between. Preview a theme across the whole window before you make it yours.

+
+
28 seconds · narration & captions
+ +

Try it yourself

Themes with live preview

Appearance ↗
  1. Open the theme picker

    Search for themes in the command palette, or open Settings, Theme.

  2. See it before you settle

    Move through the list and the whole window changes. Try a light theme, then a dark one.

  3. Keep the one you like

    Type to filter, then press Return to keep it.

+
Read the video transcript

Sheprd lets you change its whole look in seconds.

Open the command palette with Command Shift P, and search for themes.

Move through the list: every theme previews live, across the whole window.

Type to filter, then press Return to keep the one you like.

It's saved, and you can change it again anytime.

+ +
+ + \ No newline at end of file diff --git a/website/site/index.html b/website/site/index.html index 843eb383a2..c13c54ba55 100644 --- a/website/site/index.html +++ b/website/site/index.html @@ -39,6 +39,7 @@