agentic-loop 3.22.0 → 3.22.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ralph/setup.sh +27 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-loop",
3
- "version": "3.22.0",
3
+ "version": "3.22.1",
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
@@ -307,6 +307,11 @@ setup_gitignore() {
307
307
  ".ralph/last_*"
308
308
  ".ralph/screenshots/"
309
309
  ".ralph/archive/"
310
+ ".ralph/progress.txt"
311
+ ".ralph/tool-log.txt"
312
+ ".ralph/suggested-signs.txt"
313
+ ".ralph/.preflight_cache"
314
+ ".ralph/.lock"
310
315
  ".backups/"
311
316
  ".claude/settings.json"
312
317
  )
@@ -353,9 +358,13 @@ setup_claude_hooks() {
353
358
 
354
359
  # Copy hooks into the project (so they survive package moves)
355
360
  mkdir -p "$project_hooks_dir"
356
- cp "$src_hooks_dir"/*.sh "$project_hooks_dir/" 2>/dev/null || true
357
- chmod +x "$project_hooks_dir"/*.sh 2>/dev/null || true
358
- echo " Copied hooks to $project_hooks_dir/"
361
+ if cp "$src_hooks_dir"/*.sh "$project_hooks_dir/" 2>/dev/null; then
362
+ chmod +x "$project_hooks_dir"/*.sh 2>/dev/null || true
363
+ echo " Copied hooks to $project_hooks_dir/"
364
+ else
365
+ print_warning "Failed to copy hooks from $src_hooks_dir to $project_hooks_dir/"
366
+ echo " Hooks will reference package paths instead (may break after npm update)"
367
+ fi
359
368
 
360
369
  # Note if global hooks exist
361
370
  if [[ -d "$global_hooks_dir" ]] && ls -1 "$global_hooks_dir"/*.sh &>/dev/null; then
@@ -631,12 +640,26 @@ setup_mcp() {
631
640
  tmp=$(mktemp)
632
641
  jq '.mcpServers["chrome-devtools"] = {
633
642
  "command": "npx",
634
- "args": ["chrome-devtools-mcp@latest"]
643
+ "args": ["-y", "chrome-devtools-mcp@latest"]
635
644
  }' "$claude_json" > "$tmp" && mv "$tmp" "$claude_json"
636
645
  echo " Added chrome-devtools MCP server (debugging & inspection)"
637
646
  added_any=true
638
647
  fi
639
648
 
649
+ # Add WebMCP if not configured
650
+ # Allows websites to expose custom MCP tools to Claude via WebSocket
651
+ if ! jq -e '.mcpServers["webmcp"]' "$claude_json" > /dev/null 2>&1; then
652
+ [[ "$added_any" == "false" ]] && echo "Configuring MCP servers..."
653
+ local tmp
654
+ tmp=$(mktemp)
655
+ jq '.mcpServers["webmcp"] = {
656
+ "command": "npx",
657
+ "args": ["-y", "@jason.today/webmcp@latest"]
658
+ }' "$claude_json" > "$tmp" && mv "$tmp" "$claude_json"
659
+ echo " Added WebMCP server (website-exposed tools via WebSocket)"
660
+ added_any=true
661
+ fi
662
+
640
663
  # Ask about test credentials
641
664
  if [[ "$added_any" == "true" ]]; then
642
665
  setup_test_credentials