ai-sprint-kit 2.1.8 → 2.1.10

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 CHANGED
@@ -43,19 +43,19 @@ const {
43
43
  const messages = require('../lib/messages');
44
44
  const packageJson = require('../package.json');
45
45
 
46
- // Create readline interface for user prompts
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
- // Write prompt to stderr (unbuffered) for visibility
55
- process.stderr.write(prompt);
56
- // Read input using readline
57
- rl.question('', (answer) => {
58
- resolve(answer);
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
59
  });
60
60
  });
61
61
  }
@@ -187,7 +187,6 @@ program
187
187
  const setupMcp = await question('Configure MCP servers now? (y/N): ');
188
188
  if (setupMcp.toLowerCase() === 'y') {
189
189
  console.log();
190
- rl.close(); // Close ai-sprint's rl to avoid conflicts
191
190
  const mcpScript = path.join(targetDir, '.claude', 'scripts', 'setup-mcp.js');
192
191
  try {
193
192
  const { runMcpSetup } = require(mcpScript);
@@ -197,7 +196,6 @@ program
197
196
  }
198
197
  } else {
199
198
  console.log(chalk.gray('\nRun later: ai-sprint setup-mcp\n'));
200
- rl.close(); // Close readline interface
201
199
  }
202
200
  } catch (error) {
203
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
- { src: 'ai_context', dest: 'ai_context' },
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' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-sprint-kit",
3
- "version": "2.1.8",
3
+ "version": "2.1.10",
4
4
  "description": "CLI installer for AI Sprint autonomous development framework - requires license",
5
5
  "main": "lib/installer.js",
6
6
  "bin": {