@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.
- package/dist/commands/init.js +26 -13
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -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
|
-
//
|
|
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📋
|
|
68
|
-
console.log(chalk.white('
|
|
69
|
-
console.log(chalk.white('
|
|
70
|
-
console.log(chalk.
|
|
71
|
-
console.log(chalk.
|
|
72
|
-
console.log(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
}
|