icoa-cli 1.7.1 → 1.7.2
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/commands/env.js +33 -3
- package/dist/index.js +1 -1
- package/dist/repl.js +1 -1
- package/package.json +1 -1
package/dist/commands/env.js
CHANGED
|
@@ -263,10 +263,40 @@ async function installAll() {
|
|
|
263
263
|
console.log();
|
|
264
264
|
const os = platform();
|
|
265
265
|
const pipFlag = os === 'darwin' || os === 'linux' ? '--break-system-packages' : '';
|
|
266
|
-
// Python version
|
|
266
|
+
// Python version check — install 3.12 if needed
|
|
267
267
|
const pyVer = getPythonMajorMinor();
|
|
268
|
-
if (pyVer
|
|
269
|
-
console.log(chalk.yellow(`
|
|
268
|
+
if (pyVer !== '3.12') {
|
|
269
|
+
console.log(chalk.yellow(` Python ${pyVer || 'not found'} — installing Python 3.12...`));
|
|
270
|
+
try {
|
|
271
|
+
if (os === 'darwin') {
|
|
272
|
+
execSync('brew install python@3.12', { stdio: 'inherit' });
|
|
273
|
+
// Link python3.12 as default python3
|
|
274
|
+
try {
|
|
275
|
+
execSync('brew link --overwrite python@3.12', { stdio: 'ignore' });
|
|
276
|
+
}
|
|
277
|
+
catch { /* ok */ }
|
|
278
|
+
console.log(chalk.green(' ✓ Python 3.12 installed'));
|
|
279
|
+
console.log(chalk.gray(' Use: /opt/homebrew/opt/python@3.12/bin/python3.12'));
|
|
280
|
+
console.log(chalk.gray(' Or: brew link --overwrite python@3.12'));
|
|
281
|
+
}
|
|
282
|
+
else if (os === 'linux') {
|
|
283
|
+
execSync('sudo apt-get update && sudo apt-get install -y python3.12 python3.12-venv python3.12-dev', { stdio: 'inherit' });
|
|
284
|
+
console.log(chalk.green(' ✓ Python 3.12 installed'));
|
|
285
|
+
console.log(chalk.gray(' Set default: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1'));
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
execSync('choco install -y python312', { stdio: 'inherit' });
|
|
289
|
+
console.log(chalk.green(' ✓ Python 3.12 installed'));
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
catch {
|
|
293
|
+
console.log(chalk.red(' ✗ Failed to install Python 3.12'));
|
|
294
|
+
console.log(chalk.gray(` Manual install: ${os === 'darwin' ? 'brew install python@3.12' : os === 'linux' ? 'sudo apt install python3.12' : 'choco install python312'}`));
|
|
295
|
+
}
|
|
296
|
+
console.log();
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
console.log(chalk.green(` ✓ Python 3.12 (${getVersion('python3')})`));
|
|
270
300
|
console.log();
|
|
271
301
|
}
|
|
272
302
|
// Install system tools via brew (macOS) / apt (Linux) / choco (Windows)
|
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 v1.7.
|
|
39
|
+
${chalk.gray('CLI-Native Competition Terminal v1.7.2')}
|
|
40
40
|
|
|
41
41
|
${LINE}
|
|
42
42
|
`;
|
package/dist/repl.js
CHANGED
|
@@ -6,7 +6,7 @@ import { isActivated, activateToken, isFreeCommand, isDeviceMatch, recordExit, r
|
|
|
6
6
|
import { resetTerminalTheme } from './lib/theme.js';
|
|
7
7
|
import { ensureSandbox, runInSandbox, isDockerAvailable } from './lib/sandbox.js';
|
|
8
8
|
const INTERCEPT = '__REPL_NO_EXIT__';
|
|
9
|
-
const VERSION = '1.7.
|
|
9
|
+
const VERSION = '1.7.2';
|
|
10
10
|
export async function startRepl(program, resumeMode) {
|
|
11
11
|
const config = getConfig();
|
|
12
12
|
const connected = isConnected();
|