icoa-cli 2.19.7 → 2.19.8

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.
Files changed (2) hide show
  1. package/dist/repl.js +6 -0
  2. package/package.json +1 -1
package/dist/repl.js CHANGED
@@ -594,6 +594,10 @@ export async function startRepl(program, resumeMode) {
594
594
  }
595
595
  processing = true;
596
596
  const args = mapCommand(input);
597
+ // Pause REPL readline for commands that read stdin (join)
598
+ const needsPause = args[0] === 'ctf' && args[1] === 'join';
599
+ if (needsPause)
600
+ rl.pause();
597
601
  process.exit = (() => {
598
602
  throw new Error(INTERCEPT);
599
603
  });
@@ -618,6 +622,8 @@ export async function startRepl(program, resumeMode) {
618
622
  finally {
619
623
  process.exit = realExit;
620
624
  processing = false;
625
+ if (needsPause)
626
+ rl.resume();
621
627
  }
622
628
  // Switch prompt if entering chat/challenge mode
623
629
  if (isChatActive()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.19.7",
3
+ "version": "2.19.8",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {