@iservu-inc/adf-cli 0.6.0 → 0.7.1

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.
@@ -565,17 +565,17 @@ class Interviewer {
565
565
  this.skipTracker.startQuestion(question.id);
566
566
  }
567
567
 
568
- // Get answer using editor for better multi-line support
569
- console.log(chalk.gray(' (Your editor will open. Save and close to continue, or leave empty + save to skip)'));
568
+ console.log('');
569
+ console.log(chalk.gray('─'.repeat(60)));
570
+ console.log(chalk.yellow('šŸ’” Type "skip" to skip • Type "exit" to save & exit (resume with: adf init)'));
571
+ console.log(chalk.gray('─'.repeat(60)));
570
572
 
571
573
  const { answer } = await inquirer.prompt([
572
574
  {
573
- type: 'editor',
575
+ type: 'input',
574
576
  name: 'answer',
575
- message: '',
576
- waitForUseInput: false,
577
- postfix: '.md',
578
- default: ''
577
+ message: 'Your answer:',
578
+ prefix: ''
579
579
  }
580
580
  ]);
581
581
 
@@ -589,6 +589,20 @@ class Interviewer {
589
589
  return null; // Signal to skip remaining questions
590
590
  }
591
591
 
592
+ // Handle "exit" keyword - save progress and exit gracefully
593
+ if (answer.toLowerCase().trim() === 'exit') {
594
+ console.log(chalk.yellow('\nšŸ’¾ Saving progress and exiting...'));
595
+
596
+ // Ensure progress is saved
597
+ if (this.progressTracker) {
598
+ await this.progressTracker.save();
599
+ }
600
+
601
+ console.log(chalk.green('āœ“ Progress saved!'));
602
+ console.log(chalk.cyan('Resume anytime with: adf init\n'));
603
+ process.exit(0);
604
+ }
605
+
592
606
  // Analyze answer quality (use AI if available, fallback to heuristic)
593
607
  let qualityMetrics;
594
608
  try {
@@ -672,20 +686,35 @@ class Interviewer {
672
686
 
673
687
  if (followUp) {
674
688
  console.log(chalk.yellow(`\nšŸ¤– ${followUp.message}`));
675
- console.log(chalk.yellow(` ${followUp.question}`));
676
- console.log(chalk.gray(' (Your editor will open for follow-up answer)\n'));
689
+ console.log(chalk.yellow(` ${followUp.question}\n`));
690
+
691
+ console.log(chalk.gray('─'.repeat(60)));
692
+ console.log(chalk.yellow('šŸ’” Type "exit" to save & exit (resume with: adf init)'));
693
+ console.log(chalk.gray('─'.repeat(60)));
677
694
 
678
695
  const { followUpAnswer } = await inquirer.prompt([
679
696
  {
680
- type: 'editor',
697
+ type: 'input',
681
698
  name: 'followUpAnswer',
682
- message: '',
683
- waitForUseInput: false,
684
- postfix: '.md',
685
- default: ''
699
+ message: 'Follow-up answer:',
700
+ prefix: ''
686
701
  }
687
702
  ]);
688
703
 
704
+ // Handle "exit" keyword - save progress and exit gracefully
705
+ if (followUpAnswer && followUpAnswer.toLowerCase().trim() === 'exit') {
706
+ console.log(chalk.yellow('\nšŸ’¾ Saving progress and exiting...'));
707
+
708
+ // Ensure progress is saved
709
+ if (this.progressTracker) {
710
+ await this.progressTracker.save();
711
+ }
712
+
713
+ console.log(chalk.green('āœ“ Progress saved!'));
714
+ console.log(chalk.cyan('Resume anytime with: adf init\n'));
715
+ process.exit(0);
716
+ }
717
+
689
718
  if (followUpAnswer && followUpAnswer.trim()) {
690
719
  // Combine answers
691
720
  const combined = `${answer} | Follow-up: ${followUpAnswer}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iservu-inc/adf-cli",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "CLI tool for AgentDevFramework - AI-assisted development framework with multi-provider AI support",
5
5
  "main": "index.js",
6
6
  "bin": {