buildcrew 1.8.1 → 1.8.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.
Files changed (2) hide show
  1. package/bin/setup.js +23 -2
  2. package/package.json +1 -1
package/bin/setup.js CHANGED
@@ -27,6 +27,14 @@ async function exists(path) {
27
27
  try { await access(path); return true; } catch { return false; }
28
28
  }
29
29
 
30
+ async function ask(question) {
31
+ const { createInterface } = await import("readline");
32
+ const rl = createInterface({ input: process.stdin, output: process.stdout });
33
+ return new Promise(resolve => {
34
+ rl.question(question, answer => { rl.close(); resolve(answer.trim().toLowerCase()); });
35
+ });
36
+ }
37
+
30
38
  // ─── Template registry ───
31
39
 
32
40
  const TEMPLATES = {
@@ -455,9 +463,22 @@ async function runInstall(force) {
455
463
  const { execSync } = await import("child_process");
456
464
  const mcpList = execSync("claude mcp list 2>/dev/null", { encoding: "utf8" });
457
465
  if (!mcpList.includes("playwright")) {
458
- log(` ${RED}${BOLD}Required:${RESET} Playwright MCP is needed for browser testing agents:`);
459
- log(` ${BOLD}claude mcp add playwright -- npx @anthropic-ai/mcp-server-playwright${RESET}\n`);
466
+ log(`\n ${YELLOW}Playwright MCP${RESET} is needed for browser testing agents.`);
460
467
  log(` ${DIM}Used by: browser-qa, design-reviewer, canary-monitor, designer${RESET}\n`);
468
+ const answer = await ask(` Install Playwright MCP now? ${BOLD}(Y/n)${RESET} `);
469
+ if (answer === "" || answer === "y" || answer === "yes") {
470
+ log(`\n ${DIM}Running: claude mcp add playwright -- npx @anthropic-ai/mcp-server-playwright${RESET}\n`);
471
+ try {
472
+ execSync("claude mcp add playwright -- npx @anthropic-ai/mcp-server-playwright", { stdio: "inherit" });
473
+ log(`\n ${GREEN}${BOLD}Playwright MCP installed!${RESET}\n`);
474
+ } catch {
475
+ log(`\n ${RED}Failed to install.${RESET} Run manually:`);
476
+ log(` ${BOLD}claude mcp add playwright -- npx @anthropic-ai/mcp-server-playwright${RESET}\n`);
477
+ }
478
+ } else {
479
+ log(`\n ${DIM}Skipped. Install later with:${RESET}`);
480
+ log(` ${BOLD}claude mcp add playwright -- npx @anthropic-ai/mcp-server-playwright${RESET}\n`);
481
+ }
461
482
  } else {
462
483
  log(` ${GREEN}Playwright MCP:${RESET} installed ✓\n`);
463
484
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildcrew",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "15 AI agents for Claude Code — full development lifecycle from product thinking to production monitoring",
5
5
  "homepage": "https://buildcrew-landing.vercel.app",
6
6
  "author": "z1nun",