usepilot 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -15
- package/cli/index.js +3895 -2074
- package/dist/{mount-BiOBwGgJ.js → mount-DXYP_y3R.js} +12864 -8886
- package/dist/pilot-auto.js +1 -1
- package/dist/pilot.js +1 -1
- package/package.json +3 -1
- package/types/index.d.ts +7 -2
package/README.md
CHANGED
|
@@ -6,39 +6,39 @@ Pilot turns the page you're building into a design surface for your agents. You
|
|
|
6
6
|
|
|
7
7
|
- **Edit.** Select an element, type a property the way you'd type a Tailwind class (`pt`, `w`, `gap-x`), and set it with a visual control.
|
|
8
8
|
- **Ask for a change.** Click an element with the comment tool and say what you want, in your own words, with a screenshot or a file if it helps. The agent makes the change and tells you in a line what it did.
|
|
9
|
-
- **
|
|
9
|
+
- **Use your skills.** Type `/` in the comment box to pick one of your agent's skills (yours, or your team's), and the agent uses it for your comment. Pilot adds two of its own: **Make responsive** makes the element work at every screen width, and on a component, **Props** lists the props you can change.
|
|
10
10
|
|
|
11
11
|
> **Early preview (0.x).** It works, and things will change between versions.
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
|
-
Pilot
|
|
15
|
+
Pilot works with **Claude Code**, **Codex** or **Cursor**, on your agent's usual plan.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| Claude Code | `curl -fsSL https://claude.ai/install.sh \| bash` | `claude auth login` |
|
|
20
|
-
| Codex | `npm install -g @openai/codex` | `codex login` |
|
|
21
|
-
| Cursor | `curl https://cursor.com/install -fsS \| bash` | `cursor-agent login` |
|
|
17
|
+
1. **Sign in to your agent in a terminal**, once per computer. Pilot uses your agent's terminal app, not its chat window. Open a terminal and run the two lines for your agent: the first installs it, the second opens your browser to sign in.
|
|
22
18
|
|
|
23
|
-
|
|
19
|
+
- **Claude Code:** `curl -fsSL https://claude.ai/install.sh | bash`, then `claude auth login`
|
|
20
|
+
- **Codex:** `npm install -g @openai/codex`, then `codex login`
|
|
21
|
+
- **Cursor:** `curl https://cursor.com/install -fsS | bash`, then `cursor-agent login`
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
Already using your agent in a terminal? Skip this step.
|
|
24
|
+
|
|
25
|
+
2. **Add Pilot to your project.** Paste this into your agent's chat, in the project:
|
|
26
26
|
|
|
27
27
|
```
|
|
28
28
|
Set up Pilot in this project: run `npx usepilot@latest init` and follow what it prints.
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
It
|
|
31
|
+
It adds Pilot to your app, only while you develop: it never ships to your live site.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
3. **Start Pilot** each time you design. In a terminal, in your project's folder:
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
36
|
npx usepilot
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Keep it open next to your app, and open your app: Pilot appears on every page. Edit and press Send, or leave a comment: Pilot asks your agent to make the change, and the terminal shows its progress. It uses the agent you set Pilot up with (`npx usepilot --agent codex` switches).
|
|
40
40
|
|
|
41
|
-
**What
|
|
41
|
+
**What your agent can do:** edit your project's files, and anything you've already set it to always allow. Anything it would normally ask your permission for is refused, since no one is there to answer: its reply tells you.
|
|
42
42
|
|
|
43
43
|
Pilot needs `npx usepilot` running: without it, the toolbar says so. **Option+P** (Alt+P on Windows and Linux) opens or hides Pilot in your app.
|
|
44
44
|
|
|
@@ -55,7 +55,7 @@ Then restart your app's dev server and `npx usepilot`. Updating from 0.13 or ear
|
|
|
55
55
|
### If something doesn't work
|
|
56
56
|
|
|
57
57
|
- **The toolbar doesn't appear.** Pilot only loads in development, in the browser. Ask your agent to check where `usepilot/auto` is imported. The shortcut is ignored while you're typing in a text field.
|
|
58
|
-
- **The toolbar says "Pilot isn't running for
|
|
58
|
+
- **The toolbar says "Pilot isn't running for …".** Run `npx usepilot` in your project's folder, and keep it running. If it is running, its terminal says why it left the page: another project's page, or a page set up before 0.15 (ask your agent to run `npx usepilot@latest update`).
|
|
59
59
|
- **The toolbar says your agent isn't signed in**, or couldn't do a job. Sign in with the command above; the terminal running `npx usepilot` shows what the agent said.
|
|
60
60
|
|
|
61
61
|
## Using Pilot
|
|
@@ -67,7 +67,7 @@ Then restart your app's dev server and `npx usepilot`. Updating from 0.13 or ear
|
|
|
67
67
|
- Type `hover:` to change the hover state.
|
|
68
68
|
- Type `/` to see every modifier.
|
|
69
69
|
4. **Send** your changes to the agent with the toolbar's Send button. Keep designing while it works. Each change stays previewed until it's really in your code.
|
|
70
|
-
5. **Ask for a change** with the speech-bubble tool: click an element (Shift+click for several) and tell the agent what to change. Type `/` there
|
|
70
|
+
5. **Ask for a change** with the speech-bubble tool: click an element (Shift+click for several) and tell the agent what to change. Type `/` there to use one of your skills.
|
|
71
71
|
6. **Edit text** in place: with the cursor tool on, double-click it.
|
|
72
72
|
|
|
73
73
|
Your changes survive reloads in the same browser tab. Close Pilot with the toolbar's last button.
|
|
@@ -81,6 +81,7 @@ mountPilot({
|
|
|
81
81
|
shortcut: "alt+p", // or "ctrl+shift+e", or false
|
|
82
82
|
launch: false, // true: open on load
|
|
83
83
|
nameAttributes: ["data-block"], // attributes your project names elements with
|
|
84
|
+
project: "my-app", // your package.json's name: npx usepilot runs for its own project's pages
|
|
84
85
|
});
|
|
85
86
|
```
|
|
86
87
|
|