ai-sprint-kit 2.1.7 → 2.1.9
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/bin/ai-sprint.js +12 -9
- package/lib/installer.js +1 -1
- package/package.json +1 -1
package/bin/ai-sprint.js
CHANGED
|
@@ -43,15 +43,20 @@ const {
|
|
|
43
43
|
const messages = require('../lib/messages');
|
|
44
44
|
const packageJson = require('../package.json');
|
|
45
45
|
|
|
46
|
-
//
|
|
47
|
-
const rl = readline.createInterface({
|
|
48
|
-
input: process.stdin,
|
|
49
|
-
output: process.stdout
|
|
50
|
-
});
|
|
51
|
-
|
|
46
|
+
// Helper function for user prompts
|
|
52
47
|
function question(prompt) {
|
|
53
48
|
return new Promise(resolve => {
|
|
54
|
-
|
|
49
|
+
// Create fresh readline interface for each question
|
|
50
|
+
// Use stderr for output to avoid conflicts with ora (which uses stdout)
|
|
51
|
+
const rl = readline.createInterface({
|
|
52
|
+
input: process.stdin,
|
|
53
|
+
output: process.stderr
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
rl.question(prompt, (answer) => {
|
|
57
|
+
rl.close();
|
|
58
|
+
resolve(answer.trim());
|
|
59
|
+
});
|
|
55
60
|
});
|
|
56
61
|
}
|
|
57
62
|
|
|
@@ -182,7 +187,6 @@ program
|
|
|
182
187
|
const setupMcp = await question('Configure MCP servers now? (y/N): ');
|
|
183
188
|
if (setupMcp.toLowerCase() === 'y') {
|
|
184
189
|
console.log();
|
|
185
|
-
rl.close(); // Close ai-sprint's rl to avoid conflicts
|
|
186
190
|
const mcpScript = path.join(targetDir, '.claude', 'scripts', 'setup-mcp.js');
|
|
187
191
|
try {
|
|
188
192
|
const { runMcpSetup } = require(mcpScript);
|
|
@@ -192,7 +196,6 @@ program
|
|
|
192
196
|
}
|
|
193
197
|
} else {
|
|
194
198
|
console.log(chalk.gray('\nRun later: ai-sprint setup-mcp\n'));
|
|
195
|
-
rl.close(); // Close readline interface
|
|
196
199
|
}
|
|
197
200
|
} catch (error) {
|
|
198
201
|
progress.failStep(2, error.message);
|
package/lib/installer.js
CHANGED
|
@@ -34,7 +34,7 @@ async function cloneProRepo(targetDir) {
|
|
|
34
34
|
async function copyProContent(sourceDir, targetDir, force = false) {
|
|
35
35
|
const items = [
|
|
36
36
|
{ src: '.claude', dest: '.claude' },
|
|
37
|
-
|
|
37
|
+
// ai_context is NOT copied - preserve user's plans, reports, memory
|
|
38
38
|
{ src: 'CLAUDE.md', dest: 'CLAUDE.md' },
|
|
39
39
|
{ src: 'README.md', dest: 'AI-SPRINT-README.md' },
|
|
40
40
|
{ src: 'docs', dest: '.claude/docs' },
|