usepilot 0.14.0 → 0.15.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 +15 -14
- package/cli/index.js +1124 -946
- package/dist/{mount-BiOBwGgJ.js → mount-CLRI4wJ5.js} +2059 -1971
- package/dist/pilot-auto.js +1 -1
- package/dist/pilot.js +1 -1
- package/package.json +1 -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
|
-
- **Run a task.** Type `/` in the comment box and pick one: **Make responsive** makes the element work at every screen width, and **Break and fix** tries it with odd content (very long text, missing or odd-shaped images) and fixes what breaks.
|
|
9
|
+
- **Run a task.** Type `/` in the comment box and pick one: **Make responsive** makes the element work at every screen width, and **Break and fix** tries it with odd content (very long text, missing or odd-shaped images) and fixes what breaks. Your agent's own skills are there too: pick one and the agent uses it for your comment.
|
|
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
|
|
@@ -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
|
|