usepilot 0.6.0 → 0.7.1

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 CHANGED
@@ -14,34 +14,38 @@ Then press **Send**. Your agent writes the changes into your code using your pro
14
14
 
15
15
  ## Install
16
16
 
17
- Paste this into your coding agent, in your project. Any agent that supports MCP works: Claude Code, Codex, Cursor, VS Code and others.
17
+ Works with any agent that supports MCP: Claude Code, Codex, Cursor, VS Code and others.
18
18
 
19
- ```
20
- Set up Pilot in this project: run `npx usepilot@latest init` and follow what it prints.
21
- ```
19
+ 1. **Paste this into your agent**, in your project. It installs Pilot and loads it in your app, in development only.
20
+
21
+ ```
22
+ Set up Pilot in this project: run `npx usepilot@latest init --agent <you>`, where <you> is the agent you are (claude-code, cursor, codex, vscode or other), and follow what it prints.
23
+ ```
24
+
25
+ 2. **Open a new chat.** Pilot doesn't work in the chat that installed it. In the new one, ask the agent to **launch Pilot**, or run `/pilot` (`$pilot` in Codex).
22
26
 
23
- The agent installs Pilot as a dev dependency, connects itself to it, and loads it in your app, in development only. Then open a new chat and ask it to **launch Pilot**, or run its `/pilot` command (`$pilot` in Codex). Pilot opens in your app, connected to the agent.
27
+ To work on several things at once, launch Pilot in more chats on the same project: each Send or comment goes to a chat that's free, and two chats never work on the same element at once.
24
28
 
25
- Commit the files it adds, and everyone on the project gets Pilot.
29
+ Your agent is connected once for this machine, with nothing added to the repo. In another project, the same prompt only adds Pilot to that app. Teammates paste it in their own agent. To keep the setup in the repo instead, for a team to commit, the agent adds `--project`.
26
30
 
27
- **No agent?** Run `npx usepilot@latest init` yourself and do the step it prints for loading Pilot. Then press **Option+P** (Alt+P on Windows and Linux) in your app, and **Copy prompt** hands your changes to any chat.
31
+ **No agent?** Run `npx usepilot@latest init --agent other` yourself and do the step it prints for loading Pilot. Then press **Option+P** (Alt+P on Windows and Linux) in your app, and **Copy prompt** hands your changes to any chat.
28
32
 
29
33
  ### If something doesn't work
30
34
 
31
35
  - **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.
32
- - **The agent doesn't know Pilot.** Start a new chat: agents load their MCP servers when a chat starts. Some ask once to approve the project's server: say yes.
33
- - **"Another Pilot version (bridge …) runs on port 4747".** Another open chat runs a different Pilot version. Update with `npx usepilot@latest init` and restart that chat.
36
+ - **The agent doesn't know Pilot.** Start a new chat: agents load their MCP servers when a chat starts. Some ask once to approve the project's server: say yes. In Cursor, if `pilot` shows switched off in Cursor Settings (MCP section), switch it on: Cursor keeps servers set up in a repo off until you do.
37
+ - **Pilot doesn't open, and another project's chat runs an older Pilot.** Pilots before 0.7.0 all used one port, so two projects on different versions blocked each other. Update Pilot in the older project (paste the install prompt there), or close that chat. From 0.7.0, each version has its own port, and projects on different versions run side by side.
34
38
 
35
39
  ## Using Pilot
36
40
 
37
41
  1. **Launch:** ask your agent to launch Pilot, or run `/pilot`. Pilot opens in your app, connected to the agent: everything you send goes to it, and it writes the code while you keep designing. Closed Pilot, or moved to another page? **Option+P** (Alt+P) opens it again, still connected while the agent's chat runs Pilot.
38
- 2. **Select** with the cursor button in the toolbar, then click any element. Its property dialog opens next to it.
42
+ 2. **Select** with the cursor button in the toolbar, then click any element. Its property dialog opens next to it. Shift+click selects several, to edit them together.
39
43
  3. **Search and edit.** Type a property (`p`, `pt`, `w`, `gap`, `display`, `aspect`…), press Tab to go into its editor, then type or drag a value. Cmd/Ctrl+Z undoes.
40
44
  - Type `from-768 ` first to make the change only for some screen widths.
41
45
  - Type `hover:` to change the hover state.
42
46
  - Type `/` to see every modifier.
43
47
  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.
44
- 5. **Ask for a change** with the speech-bubble tool: click an element and tell the agent what to change. Type `/` there for tasks like Make responsive and Break and fix.
48
+ 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 for tasks like Make responsive and Break and fix.
45
49
  6. **Edit text** in place: with the cursor tool on, double-click it.
46
50
 
47
51
  Your changes survive reloads in the same browser tab. Quit with the toolbar's last button.