agentic-loop 3.2.0 → 3.2.2

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.
@@ -306,7 +306,7 @@ For frontend stories, acceptance criteria MUST include:
306
306
  - "Required elements render" (specify which: header, form, button, etc.)
307
307
  - "Works on mobile viewport (375px)"
308
308
 
309
- These get verified by Playwright, not just code review.
309
+ These get verified by Playwright tests and MCP browser tools.
310
310
 
311
311
  ### Test Steps - CRITICAL
312
312
  **Test steps MUST be executable shell commands.** Ralph runs them with bash.
@@ -352,7 +352,7 @@ The Playwright test file can check:
352
352
  ]
353
353
  ```
354
354
 
355
- **If a step can't be automated**, leave it out of testSteps and put it in acceptanceCriteria instead. Ralph will verify acceptanceCriteria via code review, not by running commands.
355
+ **If a step can't be automated**, leave it out of testSteps and put it in acceptanceCriteria instead. Claude will verify acceptanceCriteria visually using MCP browser tools.
356
356
 
357
357
  ### Architecture Guidelines
358
358
  - **Domain-driven directories** - Group by feature (`src/contact/`) not type (`src/components/`)
@@ -283,4 +283,4 @@ The Playwright test file can check:
283
283
  ]
284
284
  ```
285
285
 
286
- **If a step can't be automated**, leave it out of testSteps and put it in acceptanceCriteria instead. Ralph will verify acceptanceCriteria via code review, not by running commands.
286
+ **If a step can't be automated**, leave it out of testSteps and put it in acceptanceCriteria instead. Claude will verify acceptanceCriteria visually using MCP browser tools.
package/README.md CHANGED
@@ -45,8 +45,7 @@ claude --dangerously-skip-permissions
45
45
 
46
46
  **Terminal 2 - Ralph Loop:**
47
47
  ```bash
48
- npx agentic-loop run # Execute PRDs autonomously
49
- npx agentic-loop run --fast # Skip code review (~2x faster)
48
+ npx agentic-loop run # Execute PRDs autonomously
50
49
  ```
51
50
 
52
51
  > **Tip:** Use two terminals. Plan with Claude in one, run Ralph in the other.
@@ -61,8 +60,8 @@ npx agentic-loop run --fast # Skip code review (~2x faster)
61
60
  ├─────────────────────────────────────────────────────────────┤
62
61
  │ 1. Read prd.json → find next story where passes=false │
63
62
  │ 2. Build prompt (story + context + failures + signs) │
64
- │ 3. Spawn Claude with prompt
65
- │ 4. Run verification (lint, tests, browser, code review)
63
+ │ 3. Spawn Claude with prompt + MCP browser tools
64
+ │ 4. Run verification (lint, tests, testSteps)
66
65
  │ 5. Pass? → commit, next story │
67
66
  │ Fail? → save error, retry with failure context │
68
67
  │ 6. Repeat until all stories pass │
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-loop",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "Autonomous AI coding loop - PRD-driven development with Claude Code",
5
5
  "author": "Allie Jones <allie@allthrive.ai>",
6
6
  "license": "MIT",
package/ralph/setup.sh CHANGED
@@ -40,8 +40,7 @@ ralph_setup() {
40
40
  echo " /idea 'your feature' # Generate a PRD"
41
41
  echo ""
42
42
  echo " --- Terminal 2: Ralph Loop ---"
43
- echo " npx agentic-loop run # Execute PRDs autonomously"
44
- echo " npx agentic-loop run --fast # Skip code review (~2x faster)"
43
+ echo " npx agentic-loop run # Execute PRDs autonomously"
45
44
  echo ""
46
45
  }
47
46
 
@@ -359,7 +358,7 @@ setup_mcp() {
359
358
  tmp=$(mktemp)
360
359
  jq '.mcpServers["playwright"] = {
361
360
  "command": "npx",
362
- "args": ["-y", "@anthropic-ai/mcp-server-playwright"]
361
+ "args": ["-y", "@playwright/mcp@latest"]
363
362
  }' "$claude_json" > "$tmp" && mv "$tmp" "$claude_json"
364
363
  echo " Added playwright MCP server (browser automation & testing)"
365
364
  added_any=true
@@ -407,20 +406,18 @@ setup_test_credentials() {
407
406
  read -r -s -p " Test user password: " test_password
408
407
  echo ""
409
408
 
410
- # Add to .env (append or update)
409
+ # Add to .env (remove old entries first, then append)
411
410
  if grep -q "^RALPH_TEST_USER=" .env 2>/dev/null; then
412
- # Update existing
411
+ # Remove old entries
413
412
  local tmp
414
413
  tmp=$(mktemp)
415
- sed "s/^RALPH_TEST_USER=.*/RALPH_TEST_USER=$test_email/" .env > "$tmp" && mv "$tmp" .env
416
- sed "s/^RALPH_TEST_PASSWORD=.*/RALPH_TEST_PASSWORD=$test_password/" .env > "$tmp" && mv "$tmp" .env
417
- else
418
- # Append new
419
- echo "" >> .env
420
- echo "# Test credentials for browser automation (auto-added by agentic-loop)" >> .env
421
- echo "RALPH_TEST_USER=$test_email" >> .env
422
- echo "RALPH_TEST_PASSWORD=$test_password" >> .env
414
+ grep -v "^RALPH_TEST_USER=\|^RALPH_TEST_PASSWORD=" .env > "$tmp" && mv "$tmp" .env
423
415
  fi
416
+ # Append new (using printf to handle special characters safely)
417
+ echo "" >> .env
418
+ echo "# Test credentials for browser automation (auto-added by agentic-loop)" >> .env
419
+ printf 'RALPH_TEST_USER=%s\n' "$test_email" >> .env
420
+ printf 'RALPH_TEST_PASSWORD=%s\n' "$test_password" >> .env
424
421
 
425
422
  echo " Saved credentials to .env"
426
423
  echo ""
@@ -31,15 +31,14 @@ For each story, you must:
31
31
  **You have browser tools - USE THEM to verify your work:**
32
32
 
33
33
  **Playwright MCP** (testing & automation):
34
- - `browser_navigate` - Go to a URL and get page content
35
- - `browser_screenshot` - Take a screenshot to verify UI
36
- - `browser_click` - Click elements to test interactions
37
- - `browser_type` - Fill in forms to test inputs
38
- - `browser_snapshot` - Get accessibility tree for a11y testing
34
+ - Navigate to URLs and verify page content
35
+ - Take screenshots to verify UI renders correctly
36
+ - Click elements and fill forms to test interactions
37
+ - Get accessibility snapshots for a11y testing
39
38
 
40
39
  **Chrome DevTools MCP** (debugging & inspection):
41
- - Inspect DOM, check console for errors
42
- - Debug network requests
40
+ - Inspect DOM elements and check console for errors
41
+ - Debug network requests and responses
43
42
  - Check element styles and computed properties
44
43
 
45
44
  **Do NOT say you're done until:**