icoa-cli 2.15.10 → 2.15.11

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.
@@ -12,7 +12,7 @@ function drawProgress(percent, label) {
12
12
  const empty = width - filled;
13
13
  const bar = chalk.green('█'.repeat(filled)) + chalk.gray('░'.repeat(empty));
14
14
  const pct = String(percent).padStart(3) + '%';
15
- process.stdout.write(`\r ${bar} ${pct} ${chalk.gray(label)}`);
15
+ process.stdout.write(`\r\x1b[2K ${bar} ${pct} ${chalk.gray(label)}`);
16
16
  }
17
17
  function requireExamConnection() {
18
18
  const config = getConfig();
@@ -866,11 +866,10 @@ export function registerExamCommand(program) {
866
866
  await sleep(150);
867
867
  drawProgress(100, 'Ready!');
868
868
  console.log();
869
- saveExamState({ session, questions: DEMO_QUESTIONS, answers: {} });
870
869
  console.log();
870
+ saveExamState({ session, questions: DEMO_QUESTIONS, answers: {} });
871
871
  printKeyValue('Questions', '30');
872
- printKeyValue('Duration', '30 minutes');
873
- printTimeRemaining();
872
+ printKeyValue('Duration', 'No time limit');
874
873
  // Show first question
875
874
  printQuestion(DEMO_QUESTIONS[0]);
876
875
  console.log(chalk.gray(' Commands: exam q <n> | exam answer <n> <A-D> | exam review | exam submit'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.15.10",
3
+ "version": "2.15.11",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {