icoa-cli 2.15.8 → 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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.15.8",
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": {