icoa-cli 2.1.5 → 2.1.6
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.
- package/dist/index.js +1 -1
- package/dist/repl.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ ${LINE}
|
|
|
36
36
|
${chalk.white('Sydney, Australia')} ${chalk.gray('Jun 27 - Jul 2, 2026')}
|
|
37
37
|
${chalk.cyan.underline('https://icoa2026.au')}
|
|
38
38
|
|
|
39
|
-
${chalk.gray('CLI-Native Competition Terminal v2.1.
|
|
39
|
+
${chalk.gray('CLI-Native Competition Terminal v2.1.6')}
|
|
40
40
|
|
|
41
41
|
${LINE}
|
|
42
42
|
`;
|
package/dist/repl.js
CHANGED
|
@@ -26,7 +26,7 @@ const BLOCKED_COMMANDS = new Set([
|
|
|
26
26
|
'iptables', 'ufw', // firewall
|
|
27
27
|
]);
|
|
28
28
|
const INTERCEPT = '__REPL_NO_EXIT__';
|
|
29
|
-
const VERSION = '2.1.
|
|
29
|
+
const VERSION = '2.1.6';
|
|
30
30
|
export async function startRepl(program, resumeMode) {
|
|
31
31
|
const config = getConfig();
|
|
32
32
|
const connected = isConnected();
|
|
@@ -274,7 +274,7 @@ export async function startRepl(program, resumeMode) {
|
|
|
274
274
|
});
|
|
275
275
|
try {
|
|
276
276
|
// Add timeout to prevent REPL from hanging
|
|
277
|
-
const timeout = new Promise((_, reject) => setTimeout(() => reject(new Error('Command timed out')),
|
|
277
|
+
const timeout = new Promise((_, reject) => setTimeout(() => reject(new Error('Command timed out')), 5000));
|
|
278
278
|
await Promise.race([
|
|
279
279
|
program.parseAsync(['node', 'icoa', ...args]),
|
|
280
280
|
timeout,
|
|
@@ -286,7 +286,7 @@ export async function startRepl(program, resumeMode) {
|
|
|
286
286
|
// Command tried to exit — continue REPL
|
|
287
287
|
}
|
|
288
288
|
else if (msg === 'Command timed out') {
|
|
289
|
-
console.log(chalk.yellow(' Command timed out
|
|
289
|
+
console.log(chalk.yellow(' Command timed out. Try again.'));
|
|
290
290
|
}
|
|
291
291
|
else if (msg.includes('commander.unknownCommand')) {
|
|
292
292
|
console.log(chalk.yellow(` Unknown command: ${cmd}. Type 'help' for commands.`));
|