@haystackeditor/cli 0.4.0 → 0.5.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.
@@ -62,20 +62,33 @@ export async function initCommand(options) {
62
62
  console.log(chalk.green(`✓ Created ${commandPath} (use /haystack in Claude Code)\n`));
63
63
  // Security validation
64
64
  await runSecurityCheck(configPath);
65
- // Explain purpose and next steps
65
+ // Print the prompt for the AI agent to follow
66
66
  console.log(chalk.cyan('━'.repeat(70)));
67
- console.log(chalk.cyan.bold('\n📋 WHAT IS HAYSTACK?\n'));
68
- console.log(chalk.white('When a PR is opened, Haystack spins up your app in a sandbox and'));
69
- console.log(chalk.white('an AI agent verifies the changes work correctly by:\n'));
70
- console.log(chalk.white(' Frontend: Navigating pages, clicking buttons, taking screenshots'));
71
- console.log(chalk.white(' • Backend: Calling API endpoints, checking responses\n'));
72
- console.log(chalk.white('The "flows" in .haystack.yml tell the agent WHAT to verify.\n'));
73
- console.log(chalk.cyan.bold('⚠️ ACTION REQUIRED:\n'));
74
- console.log(chalk.white('The config above only has dev server settings. You MUST add flows.\n'));
75
- console.log(chalk.white.bold('1. Run: cat .agents/skills/haystack.md'));
76
- console.log(chalk.white.bold('2. Read the "Codebase Discovery Guide" section'));
77
- console.log(chalk.white.bold('3. Follow it to discover features and add flows to .haystack.yml\n'));
78
- console.log(chalk.dim('Without flows, Haystack has nothing to verify.\n'));
67
+ console.log(chalk.cyan.bold('\n📋 NEXT STEP: Add verification flows\n'));
68
+ console.log(chalk.white('The config has dev server settings. Now add flows to tell Haystack'));
69
+ console.log(chalk.white('what to verify when PRs are opened.\n'));
70
+ console.log(chalk.yellow.bold('Give this prompt to your AI coding agent:\n'));
71
+ console.log(chalk.cyan(''.repeat(70)));
72
+ console.log(`
73
+ ${chalk.white('Add Haystack verification flows to .haystack.yml')}
74
+
75
+ ${chalk.bold('STEP 1: Understand the app')}
76
+ - Read src/App.tsx and the main components
77
+ - Write 2 sentences: What does this app do? What's the core feature?
78
+
79
+ ${chalk.bold('STEP 2: Identify what PRs would touch')}
80
+ - List the 5 most important UI areas that PRs change
81
+ - These need the most thorough flows
82
+
83
+ ${chalk.bold('STEP 3: Add flows')}
84
+ - Read .agents/skills/haystack.md for the flow format
85
+ - Add flows for the 5 core areas first, then secondary pages
86
+
87
+ ${chalk.bold('STEP 4: Validate')}
88
+ - grep "#root" .haystack.yml | wc -l ${chalk.dim('(must be 0)')}
89
+ - grep -c "action: click" .haystack.yml ${chalk.dim('(must be ≥3)')}
90
+ - Confirm the core feature from Step 1 has flows
91
+ `);
79
92
  console.log(chalk.cyan('━'.repeat(70)));
80
93
  return;
81
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haystackeditor/cli",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Set up Haystack verification for your project",
5
5
  "type": "module",
6
6
  "bin": {