@iservu-inc/adf-cli 0.6.0 → 0.7.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.
@@ -567,6 +567,13 @@ class Interviewer {
567
567
 
568
568
  // Get answer using editor for better multi-line support
569
569
  console.log(chalk.gray(' (Your editor will open. Save and close to continue, or leave empty + save to skip)'));
570
+ console.log('');
571
+
572
+ // Show exit shortcut at bottom with padding
573
+ console.log(chalk.gray('─'.repeat(60)));
574
+ console.log(chalk.yellow('šŸ’” TIP: Type "exit" in the editor to save progress and exit (resume anytime with: adf init)'));
575
+ console.log(chalk.gray('─'.repeat(60)));
576
+ console.log('');
570
577
 
571
578
  const { answer } = await inquirer.prompt([
572
579
  {
@@ -589,6 +596,20 @@ class Interviewer {
589
596
  return null; // Signal to skip remaining questions
590
597
  }
591
598
 
599
+ // Handle "exit" keyword - save progress and exit gracefully
600
+ if (answer.toLowerCase().trim() === 'exit') {
601
+ console.log(chalk.yellow('\nšŸ’¾ Saving progress and exiting...'));
602
+
603
+ // Ensure progress is saved
604
+ if (this.progressTracker) {
605
+ await this.progressTracker.save();
606
+ }
607
+
608
+ console.log(chalk.green('āœ“ Progress saved!'));
609
+ console.log(chalk.cyan('Resume anytime with: adf init\n'));
610
+ process.exit(0);
611
+ }
612
+
592
613
  // Analyze answer quality (use AI if available, fallback to heuristic)
593
614
  let qualityMetrics;
594
615
  try {
@@ -675,6 +696,12 @@ class Interviewer {
675
696
  console.log(chalk.yellow(` ${followUp.question}`));
676
697
  console.log(chalk.gray(' (Your editor will open for follow-up answer)\n'));
677
698
 
699
+ // Show exit shortcut at bottom with padding
700
+ console.log(chalk.gray('─'.repeat(60)));
701
+ console.log(chalk.yellow('šŸ’” TIP: Type "exit" in the editor to save progress and exit (resume anytime with: adf init)'));
702
+ console.log(chalk.gray('─'.repeat(60)));
703
+ console.log('');
704
+
678
705
  const { followUpAnswer } = await inquirer.prompt([
679
706
  {
680
707
  type: 'editor',
@@ -686,6 +713,20 @@ class Interviewer {
686
713
  }
687
714
  ]);
688
715
 
716
+ // Handle "exit" keyword - save progress and exit gracefully
717
+ if (followUpAnswer && followUpAnswer.toLowerCase().trim() === 'exit') {
718
+ console.log(chalk.yellow('\nšŸ’¾ Saving progress and exiting...'));
719
+
720
+ // Ensure progress is saved
721
+ if (this.progressTracker) {
722
+ await this.progressTracker.save();
723
+ }
724
+
725
+ console.log(chalk.green('āœ“ Progress saved!'));
726
+ console.log(chalk.cyan('Resume anytime with: adf init\n'));
727
+ process.exit(0);
728
+ }
729
+
689
730
  if (followUpAnswer && followUpAnswer.trim()) {
690
731
  // Combine answers
691
732
  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.0",
4
4
  "description": "CLI tool for AgentDevFramework - AI-assisted development framework with multi-provider AI support",
5
5
  "main": "index.js",
6
6
  "bin": {