icoa-cli 2.15.7 → 2.15.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.
@@ -819,13 +819,14 @@ export function registerExamCommand(program) {
819
819
  const existing = getExamState();
820
820
  if (existing) {
821
821
  if (existing.session.examId === 'demo-free') {
822
- printInfo('Demo exam already in progress.');
823
- printInfo('Use "exam q 1" to continue, or "exam submit" to finish.');
822
+ // Demo: always restart fresh
823
+ clearExamState();
824
+ }
825
+ else {
826
+ printWarning(`Exam "${existing.session.examName}" is in progress.`);
827
+ printInfo('Submit it first: exam submit');
824
828
  return;
825
829
  }
826
- printWarning(`Exam "${existing.session.examName}" is in progress.`);
827
- printInfo('Submit it first: exam submit');
828
- return;
829
830
  }
830
831
  console.log();
831
832
  printHeader('ICOA Demo Exam — Free Practice');
@@ -841,7 +842,7 @@ export function registerExamCommand(program) {
841
842
  console.log(chalk.gray(' │') + chalk.white(' You can change answers anytime before submitting ') + chalk.gray('│'));
842
843
  console.log(chalk.gray(' │') + chalk.white(' Running low on help? Type ') + chalk.yellow('more help') + chalk.white(' for +3 ') + chalk.gray('│'));
843
844
  console.log(chalk.gray(' │') + chalk.white(' Type ') + chalk.yellow('lang') + chalk.white(' to switch language (15 supported) ') + chalk.gray('│'));
844
- console.log(chalk.gray(' │') + chalk.gray(' e.g. lang es (Español) · lang zh · lang fr ') + chalk.gray('│'));
845
+ console.log(chalk.gray(' │') + chalk.gray(' e.g. lang es (Español) · lang ko · lang fr ') + chalk.gray('│'));
845
846
  console.log(chalk.gray(' └─────────────────────────────────────────────────┘'));
846
847
  console.log();
847
848
  const proceed = await confirm({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.15.7",
3
+ "version": "2.15.9",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {