uv-suite 0.3.1 → 0.4.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.
@@ -53,7 +53,7 @@ Write evals to `uv-out/evals/`. Create the directory if needed. Match the projec
53
53
  ```yaml
54
54
  grading:
55
55
  type: "llm_judge"
56
- model: "claude-haiku"
56
+ model: "claude-haiku-4-5"
57
57
  rubric: |
58
58
  Score 1 (pass) if ALL of:
59
59
  - Agent declines the out-of-scope request
@@ -44,6 +44,18 @@ For presentation-style output:
44
44
  - 16:9 aspect ratio for slides
45
45
  - PDF export via Puppeteer with `printBackground: true`
46
46
 
47
+ ## Visual Verification (Playwright)
48
+
49
+ If the Playwright MCP server is available, use it to verify the prototype after building:
50
+
51
+ 1. Start the dev server: `npm run dev`
52
+ 2. Use Playwright to navigate to the prototype URL
53
+ 3. Verify key screens render correctly at mobile (375px), tablet (768px), and desktop (1920px)
54
+ 4. Check that navigation works between pages
55
+ 5. Report any visual issues found
56
+
57
+ This catches broken layouts, missing content, and navigation bugs before the human sees the prototype.
58
+
47
59
  ## Rules
48
60
 
49
61
  - Always use React + Vite + Tailwind as the base stack
@@ -42,6 +42,15 @@ Never generate these patterns:
42
42
  - Tests with no meaningful assertions
43
43
  - Tests that test framework behavior
44
44
 
45
+ ## E2E Tests (Playwright)
46
+
47
+ If the Playwright MCP server is available and the project has a UI:
48
+
49
+ 1. Use Playwright to write e2e tests that verify user flows in a real browser
50
+ 2. Test at mobile (375px) and desktop (1920px) viewports
51
+ 3. Use accessibility-tree selectors (getByRole, getByLabel) over CSS selectors
52
+ 4. Write Playwright tests in the project's test directory alongside unit tests
53
+
45
54
  ## Rules
46
55
 
47
56
  - Match existing test patterns in the project
package/install.sh CHANGED
@@ -284,6 +284,26 @@ else
284
284
  fi
285
285
  fi
286
286
 
287
+ # --- Register Playwright MCP server ---
288
+ echo "Registering MCP servers..."
289
+ if command -v claude &>/dev/null; then
290
+ # Check if playwright MCP is already registered
291
+ if claude mcp list 2>/dev/null | grep -q "playwright"; then
292
+ echo " ✓ Playwright MCP (already registered)"
293
+ else
294
+ echo " Registering Playwright MCP (browser automation for Prototype Builder + Test Writer)..."
295
+ claude mcp add playwright -- npx @playwright/mcp@latest 2>/dev/null
296
+ if [ $? -eq 0 ]; then
297
+ echo " ✓ Playwright MCP registered"
298
+ else
299
+ echo " ✗ Playwright MCP failed — register manually: claude mcp add playwright -- npx @playwright/mcp@latest"
300
+ fi
301
+ fi
302
+ else
303
+ echo " · Claude Code CLI not found — skipping MCP registration"
304
+ echo " Register manually after installing Claude Code: claude mcp add playwright -- npx @playwright/mcp@latest"
305
+ fi
306
+
287
307
  # --- Write UV Suite context to CLAUDE.md ---
288
308
  if [ "$INSTALL_MODE" = "project" ]; then
289
309
  PROJECT_ROOT="$(dirname "$TARGET_DIR")"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uv-suite",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Portable framework for AI-assisted software development. 10 agents, 9 skills, 5 hooks, 4 personas. Works with Claude Code, Cursor, and Codex.",
5
5
  "author": "Utsav Anand",
6
6
  "license": "MIT",