rivet-design 0.12.2 → 0.12.3

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.
Files changed (70) hide show
  1. package/README.md +14 -34
  2. package/README.npm.md +14 -34
  3. package/dist/mcp/agent-variants/contracts.d.ts +561 -101
  4. package/dist/mcp/agent-variants/contracts.d.ts.map +1 -1
  5. package/dist/mcp/agent-variants/contracts.js +51 -24
  6. package/dist/mcp/agent-variants/contracts.js.map +1 -1
  7. package/dist/mcp/agent-variants/createZeroToOneTool.d.ts +1 -1
  8. package/dist/mcp/agent-variants/createZeroToOneTool.d.ts.map +1 -1
  9. package/dist/mcp/agent-variants/createZeroToOneTool.js +1 -1
  10. package/dist/mcp/agent-variants/createZeroToOneTool.js.map +1 -1
  11. package/dist/mcp/agent-variants/tools.d.ts +12 -0
  12. package/dist/mcp/agent-variants/tools.d.ts.map +1 -1
  13. package/dist/mcp/agent-variants/tools.js +149 -247
  14. package/dist/mcp/agent-variants/tools.js.map +1 -1
  15. package/dist/mcp/auth/tools.d.ts.map +1 -1
  16. package/dist/mcp/auth/tools.js +2 -3
  17. package/dist/mcp/auth/tools.js.map +1 -1
  18. package/dist/mcp/instructions.d.ts +11 -2
  19. package/dist/mcp/instructions.d.ts.map +1 -1
  20. package/dist/mcp/instructions.js +20 -5
  21. package/dist/mcp/instructions.js.map +1 -1
  22. package/dist/mcp/integrations/tools.d.ts.map +1 -1
  23. package/dist/mcp/integrations/tools.js +33 -22
  24. package/dist/mcp/integrations/tools.js.map +1 -1
  25. package/dist/mcp/server.d.ts.map +1 -1
  26. package/dist/mcp/server.js +31 -13
  27. package/dist/mcp/server.js.map +1 -1
  28. package/dist/mcp/toolAnalytics.d.ts +11 -0
  29. package/dist/mcp/toolAnalytics.d.ts.map +1 -1
  30. package/dist/mcp/toolAnalytics.js +8 -0
  31. package/dist/mcp/toolAnalytics.js.map +1 -1
  32. package/dist/routes/agentVariants.d.ts.map +1 -1
  33. package/dist/routes/agentVariants.js +17 -9
  34. package/dist/routes/agentVariants.js.map +1 -1
  35. package/dist/routes/mcp.d.ts.map +1 -1
  36. package/dist/routes/mcp.js +18 -11
  37. package/dist/routes/mcp.js.map +1 -1
  38. package/dist/services/ConfigManager.d.ts +13 -0
  39. package/dist/services/ConfigManager.d.ts.map +1 -1
  40. package/dist/services/ConfigManager.js +24 -0
  41. package/dist/services/ConfigManager.js.map +1 -1
  42. package/dist/services/TelemetryService.d.ts +4 -0
  43. package/dist/services/TelemetryService.d.ts.map +1 -1
  44. package/dist/services/TelemetryService.js +19 -0
  45. package/dist/services/TelemetryService.js.map +1 -1
  46. package/dist/services/createAgentVariantsOrchestrator.d.ts +16 -0
  47. package/dist/services/createAgentVariantsOrchestrator.d.ts.map +1 -1
  48. package/dist/services/createAgentVariantsOrchestrator.js +60 -2
  49. package/dist/services/createAgentVariantsOrchestrator.js.map +1 -1
  50. package/dist/utils/skills/claude-skill.d.ts +1 -1
  51. package/dist/utils/skills/claude-skill.d.ts.map +1 -1
  52. package/dist/utils/skills/claude-skill.js +16 -6
  53. package/dist/utils/skills/claude-skill.js.map +1 -1
  54. package/dist/utils/skills/cursor-rules.d.ts +1 -1
  55. package/dist/utils/skills/cursor-rules.d.ts.map +1 -1
  56. package/dist/utils/skills/cursor-rules.js +16 -6
  57. package/dist/utils/skills/cursor-rules.js.map +1 -1
  58. package/dist/utils/skills/describe-motion-protocol.d.ts +1 -1
  59. package/dist/utils/skills/describe-motion-protocol.d.ts.map +1 -1
  60. package/dist/utils/skills/describe-motion-protocol.js +1 -1
  61. package/dist/utils/skills/shared-variants-protocol.d.ts +20 -2
  62. package/dist/utils/skills/shared-variants-protocol.d.ts.map +1 -1
  63. package/dist/utils/skills/shared-variants-protocol.js +91 -19
  64. package/dist/utils/skills/shared-variants-protocol.js.map +1 -1
  65. package/package.json +16 -38
  66. package/src/ui/dist/assets/main-CLAqO1bm.js +656 -0
  67. package/src/ui/dist/assets/main-Ke-Q9lWa.css +1 -0
  68. package/src/ui/dist/index.html +2 -2
  69. package/src/ui/dist/assets/main-B26kBifl.js +0 -656
  70. package/src/ui/dist/assets/main-B9-DG2wa.css +0 -1
package/README.md CHANGED
@@ -1,18 +1,15 @@
1
1
  # Rivet
2
2
 
3
- Rivet is a visual editor for your web app that works directly with Claude Code. Select elements in your browser, make visual changes, and send them to Claude as structured code instructions no copy-pasting, no describing what you see.
3
+ Rivet helps you explore multiple design directions for your web app. It generates parallel variants you can compare side by side, refine with precision, and share or implementall from your coding agent.
4
4
 
5
5
  ## How it works
6
6
 
7
- Rivet runs as an MCP server alongside Claude Code. When you open a session:
7
+ Rivet runs as an MCP server alongside your coding agent (Claude Code, Cursor, etc.).
8
8
 
9
- 1. Rivet opens your running app in a visual editor in your browser
10
- 2. You select elements and make design changes colors, spacing, text, layout
11
- 3. Click **Send to Claude** and Rivet sends the changes as structured instructions
12
- 4. Claude applies them to your source files directly
13
- 5. Your dev server hot-reloads and you see the result instantly
14
-
15
- You can make multiple rounds of changes in the same session. Rivet tracks each one and sends them cleanly.
9
+ 1. **Start from your agent.** Use `/rivet` in Claude Code, or tell your agent "Use Rivet variants" or "Explore with Rivet" along with your design request.
10
+ 2. **Connect design references** (optional). Click **Connect design references** in the editor to link your Pinterest or Are.na account. Include relevant pins or boards and Rivet will extract design context from them to inform the variants it generates.
11
+ 3. **Refine with the comment tool.** Select any part of the UI and use the comment tool to make more precise variants of that section, or leave comments describing what you'd like to change within a variant.
12
+ 4. **Share or implement.** When you're happy, click the **Share** button to get a shareable link you can send to a collaborator — or share it back to your coding agent to implement the chosen direction.
16
13
 
17
14
  ## Install
18
15
 
@@ -22,7 +19,7 @@ You can make multiple rounds of changes in the same session. Rivet tracks each o
22
19
  claude mcp add --transport stdio --scope user rivet -- npx -y rivet-design@latest mcp --editor claude
23
20
  ```
24
21
 
25
- **Option 2 — Run Rivets installer** (adds Rivet globally via Claude Code CLI)
22
+ **Option 2 — Run Rivet's installer** (adds Rivet globally via Claude Code CLI)
26
23
 
27
24
  ```bash
28
25
  npx rivet-design install
@@ -32,20 +29,15 @@ No global install required. `npx` pulls the latest version each time.
32
29
 
33
30
  ## Usage
34
31
 
35
- Once installed, ask Claude to open the visual editor:
32
+ Once installed, tell your agent what you want to explore:
36
33
 
37
34
  ```
38
- "Open Rivet so I can make some design changes"
35
+ "Use Rivet variants to explore hero section designs"
36
+ "Explore with Rivet — show me options for the navigation"
37
+ "/rivet redesign the pricing page"
39
38
  ```
40
39
 
41
- Claude will:
42
-
43
- 1. Detect your project framework and dev server port
44
- 2. Open Rivet in your browser
45
- 3. Wait for you to make changes and click **Send to Claude**
46
- 4. Apply the changes to your source files
47
-
48
- Make as many rounds of edits as you need. When you're done, tell Claude to close the session.
40
+ Your agent will open Rivet, generate parallel design directions, and let you compare them side by side in the browser. Use the comment tool to refine, connect Pinterest or Are.na boards for design context, and share or implement when you're ready.
49
41
 
50
42
  ### Supported frameworks
51
43
 
@@ -55,25 +47,13 @@ Make as many rounds of edits as you need. When you're done, tell Claude to close
55
47
  - Remix
56
48
  - SvelteKit
57
49
 
58
- Your dev server needs to be running before opening Rivet. Claude will give you the start command if it isn't.
59
-
60
- ## MCP tools
61
-
62
- Rivet exposes these tools to Claude Code:
63
-
64
- | Tool | Description |
65
- | --------------------- | ------------------------------------------------------------------------- |
66
- | `detect_project` | Detects framework, package manager, and whether the dev server is running |
67
- | `open_visual_editor` | Opens Rivet in the browser and starts a session |
68
- | `watch_for_changes` | Blocks until you click Send to Claude, then returns your changes |
69
- | `get_pending_changes` | Non-blocking check for pending changes |
70
- | `close_visual_editor` | Ends the session and cleans up |
50
+ Your dev server needs to be running before opening Rivet. Your agent will give you the start command if it isn't.
71
51
 
72
52
  ## Requirements
73
53
 
74
54
  - Node.js 18+
75
55
  - A running local dev server (Vite, Next.js, etc.)
76
- - Claude Code
56
+ - Claude Code, Cursor, or another MCP-compatible agent
77
57
 
78
58
  ## License
79
59
 
package/README.npm.md CHANGED
@@ -1,18 +1,15 @@
1
1
  # Rivet
2
2
 
3
- Rivet is a visual editor for your web app that works directly with Claude Code. Select elements in your browser, make visual changes, and send them to Claude as structured code instructions no copy-pasting, no describing what you see.
3
+ Rivet helps you explore multiple design directions for your web app. It generates parallel variants you can compare side by side, refine with precision, and share or implementall from your coding agent.
4
4
 
5
5
  ## How it works
6
6
 
7
- Rivet runs as an MCP server alongside Claude Code. When you open a session:
7
+ Rivet runs as an MCP server alongside your coding agent (Claude Code, Cursor, etc.).
8
8
 
9
- 1. Rivet opens your running app in a visual editor in your browser
10
- 2. You select elements and make design changes colors, spacing, text, layout
11
- 3. Click **Send to Claude** and Rivet sends the changes as structured instructions
12
- 4. Claude applies them to your source files directly
13
- 5. Your dev server hot-reloads and you see the result instantly
14
-
15
- You can make multiple rounds of changes in the same session. Rivet tracks each one and sends them cleanly.
9
+ 1. **Start from your agent.** Use `/rivet` in Claude Code, or tell your agent "Use Rivet variants" or "Explore with Rivet" along with your design request.
10
+ 2. **Connect design references** (optional). Click **Connect design references** in the editor to link your Pinterest or Are.na account. Include relevant pins or boards and Rivet will extract design context from them to inform the variants it generates.
11
+ 3. **Refine with the comment tool.** Select any part of the UI and use the comment tool to make more precise variants of that section, or leave comments describing what you'd like to change within a variant.
12
+ 4. **Share or implement.** When you're happy, click the **Share** button to get a shareable link you can send to a collaborator — or share it back to your coding agent to implement the chosen direction.
16
13
 
17
14
  ## Install
18
15
 
@@ -22,7 +19,7 @@ You can make multiple rounds of changes in the same session. Rivet tracks each o
22
19
  claude mcp add --transport stdio --scope user rivet -- npx -y rivet-design@latest mcp --editor claude
23
20
  ```
24
21
 
25
- **Option 2 — Run Rivets installer** (adds Rivet globally via Claude Code CLI)
22
+ **Option 2 — Run Rivet's installer** (adds Rivet globally via Claude Code CLI)
26
23
 
27
24
  ```bash
28
25
  npx rivet-design install
@@ -32,20 +29,15 @@ No global install required. `npx` pulls the latest version each time.
32
29
 
33
30
  ## Usage
34
31
 
35
- Once installed, ask Claude to open the visual editor:
32
+ Once installed, tell your agent what you want to explore:
36
33
 
37
34
  ```
38
- "Open Rivet so I can make some design changes"
35
+ "Use Rivet variants to explore hero section designs"
36
+ "Explore with Rivet — show me options for the navigation"
37
+ "/rivet redesign the pricing page"
39
38
  ```
40
39
 
41
- Claude will:
42
-
43
- 1. Detect your project framework and dev server port
44
- 2. Open Rivet in your browser
45
- 3. Wait for you to make changes and click **Send to Claude**
46
- 4. Apply the changes to your source files
47
-
48
- Make as many rounds of edits as you need. When you're done, tell Claude to close the session.
40
+ Your agent will open Rivet, generate parallel design directions, and let you compare them side by side in the browser. Use the comment tool to refine, connect Pinterest or Are.na boards for design context, and share or implement when you're ready.
49
41
 
50
42
  ### Supported frameworks
51
43
 
@@ -55,25 +47,13 @@ Make as many rounds of edits as you need. When you're done, tell Claude to close
55
47
  - Remix
56
48
  - SvelteKit
57
49
 
58
- Your dev server needs to be running before opening Rivet. Claude will give you the start command if it isn't.
59
-
60
- ## MCP tools
61
-
62
- Rivet exposes these tools to Claude Code:
63
-
64
- | Tool | Description |
65
- | --------------------- | ------------------------------------------------------------------------- |
66
- | `detect_project` | Detects framework, package manager, and whether the dev server is running |
67
- | `open_visual_editor` | Opens Rivet in the browser and starts a session |
68
- | `watch_for_changes` | Blocks until you click Send to Claude, then returns your changes |
69
- | `get_pending_changes` | Non-blocking check for pending changes |
70
- | `close_visual_editor` | Ends the session and cleans up |
50
+ Your dev server needs to be running before opening Rivet. Your agent will give you the start command if it isn't.
71
51
 
72
52
  ## Requirements
73
53
 
74
54
  - Node.js 18+
75
55
  - A running local dev server (Vite, Next.js, etc.)
76
- - Claude Code
56
+ - Claude Code, Cursor, or another MCP-compatible agent
77
57
 
78
58
  ## License
79
59