@oxis-dev/tessra 2.19.8 → 2.19.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.
- package/package.json +2 -2
- package/scripts/postinstall.js +15 -69
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxis-dev/tessra",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.9",
|
|
4
4
|
"description": "MCP server for AI coding tools and agents. Provides semantic codebase context for Cursor, Claude Code, Codex, Copilot, Antigravity, and CLI workflows without requiring full file uploads.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": {
|
|
@@ -59,4 +59,4 @@
|
|
|
59
59
|
"LICENSE",
|
|
60
60
|
"README.md"
|
|
61
61
|
]
|
|
62
|
-
}
|
|
62
|
+
}
|
package/scripts/postinstall.js
CHANGED
|
@@ -184,14 +184,6 @@ function getGlobalBinDir() {
|
|
|
184
184
|
return process.platform === 'win32' ? prefix : path.join(prefix, 'bin');
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
function printManualFix(binDir) {
|
|
188
|
-
if (process.platform === 'win32') {
|
|
189
|
-
console.warn(`tessra: agrega esta ruta a tu PATH de usuario: ${binDir}`);
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
console.warn(`tessra: agrega esta linea a tu shell profile: export PATH="$PATH:${binDir}"`);
|
|
194
|
-
}
|
|
195
187
|
|
|
196
188
|
function repairWindowsUserPath(binDir) {
|
|
197
189
|
const currentUserPath = execFileSync(
|
|
@@ -345,9 +337,7 @@ function installLinuxLocalBin(binaryPath) {
|
|
|
345
337
|
|
|
346
338
|
fs.copyFileSync(binaryPath, destPath);
|
|
347
339
|
fs.chmodSync(destPath, 0o755);
|
|
348
|
-
|
|
349
|
-
} catch (err) {
|
|
350
|
-
console.warn(`tessra: no se pudo copiar binario en ${destPath}: ${err.message}`);
|
|
340
|
+
} catch (_) {
|
|
351
341
|
return; // si no pudo copiar, no tiene sentido agregar al PATH
|
|
352
342
|
}
|
|
353
343
|
|
|
@@ -373,55 +363,15 @@ function installLinuxLocalBin(binaryPath) {
|
|
|
373
363
|
|
|
374
364
|
function ensureGlobalBinOnPath() {
|
|
375
365
|
const binDir = getGlobalBinDir();
|
|
376
|
-
if (!binDir)
|
|
377
|
-
console.warn('tessra: no se pudo inferir el directorio global de npm para verificar PATH.');
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
if (pathContains(binDir, process.env.PATH || '')) {
|
|
382
|
-
console.log(`tessra: comando global disponible en PATH (${binDir}).`);
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
366
|
+
if (!binDir || pathContains(binDir, process.env.PATH || '')) return;
|
|
385
367
|
|
|
386
368
|
if (process.platform === 'win32') {
|
|
387
|
-
try {
|
|
388
|
-
|
|
389
|
-
if (result.changed) {
|
|
390
|
-
console.log('tessra: PATH reparado en Windows.');
|
|
391
|
-
} else {
|
|
392
|
-
console.log('tessra: PATH de usuario ya estaba configurado en Windows.');
|
|
393
|
-
}
|
|
394
|
-
console.log('tessra: abre una PowerShell nueva y ejecuta: tessra --version');
|
|
395
|
-
return;
|
|
396
|
-
} catch (err) {
|
|
397
|
-
console.warn('tessra: no se pudo reparar PATH automaticamente en Windows.');
|
|
398
|
-
console.warn(`tessra: ${err.message}`);
|
|
399
|
-
printManualFix(binDir);
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
369
|
+
try { repairWindowsUserPath(binDir); } catch (_) { /* la caja ya indica abrir ventana nueva */ }
|
|
370
|
+
return;
|
|
402
371
|
}
|
|
403
372
|
|
|
404
373
|
if (process.platform === 'linux') {
|
|
405
|
-
try {
|
|
406
|
-
const result = repairLinuxShellPath(binDir);
|
|
407
|
-
if (result.changed) {
|
|
408
|
-
console.log(`tessra: PATH reparado en Linux via ${result.profilePaths.join(', ')}.`);
|
|
409
|
-
console.log(`tessra: para usarlo en esta terminal ejecuta: source ${result.profilePath}`);
|
|
410
|
-
console.log('tessra: en una terminal nueva ya deberia reconocer: tessra --version');
|
|
411
|
-
} else if (result.configured) {
|
|
412
|
-
console.log(`tessra: PATH ya configurado en Linux via ${result.profilePaths.join(', ')}.`);
|
|
413
|
-
console.log(`tessra: si esta terminal no lo ve aun, ejecuta: source ${result.profilePath}`);
|
|
414
|
-
} else {
|
|
415
|
-
console.warn('tessra: no se aplico auto-fix de PATH en Linux.');
|
|
416
|
-
printManualFix(binDir);
|
|
417
|
-
}
|
|
418
|
-
return;
|
|
419
|
-
} catch (err) {
|
|
420
|
-
console.warn('tessra: no se pudo reparar PATH automaticamente en Linux.');
|
|
421
|
-
console.warn(`tessra: ${err.message}`);
|
|
422
|
-
printManualFix(binDir);
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
374
|
+
try { repairLinuxShellPath(binDir); } catch (_) { /* no fatal */ }
|
|
425
375
|
}
|
|
426
376
|
}
|
|
427
377
|
|
|
@@ -449,10 +399,10 @@ function printInstallSummary() {
|
|
|
449
399
|
box([
|
|
450
400
|
title,
|
|
451
401
|
'',
|
|
452
|
-
'
|
|
402
|
+
'Open a new terminal and run:',
|
|
453
403
|
' tessra --help',
|
|
454
404
|
'',
|
|
455
|
-
'
|
|
405
|
+
'Or activate it in this session without closing:',
|
|
456
406
|
' source ~/.bashrc (bash)',
|
|
457
407
|
' source ~/.zshrc (zsh)',
|
|
458
408
|
]);
|
|
@@ -460,20 +410,20 @@ function printInstallSummary() {
|
|
|
460
410
|
box([
|
|
461
411
|
title,
|
|
462
412
|
'',
|
|
463
|
-
'
|
|
413
|
+
'Open a new terminal and run:',
|
|
464
414
|
' tessra --help',
|
|
465
415
|
'',
|
|
466
|
-
'
|
|
467
|
-
' source ~/.zshrc (zsh, macOS
|
|
416
|
+
'Or activate it in this session without closing:',
|
|
417
|
+
' source ~/.zshrc (zsh, macOS default)',
|
|
468
418
|
' source ~/.bash_profile (bash)',
|
|
469
419
|
]);
|
|
470
420
|
} else if (platform === 'win32') {
|
|
471
421
|
box([
|
|
472
422
|
title,
|
|
473
423
|
'',
|
|
474
|
-
'PATH
|
|
475
|
-
'
|
|
476
|
-
'
|
|
424
|
+
'PATH updated on Windows.',
|
|
425
|
+
'Open a new PowerShell or CMD window',
|
|
426
|
+
'and run: tessra --help',
|
|
477
427
|
]);
|
|
478
428
|
}
|
|
479
429
|
}
|
|
@@ -482,16 +432,12 @@ function printInstallSummary() {
|
|
|
482
432
|
|
|
483
433
|
async function main() {
|
|
484
434
|
// Saltar en entornos CI que solo construyen el paquete (no instalan)
|
|
485
|
-
if (process.env.TESSRA_SKIP_POSTINSTALL)
|
|
486
|
-
console.log('tessra: TESSRA_SKIP_POSTINSTALL activo — omitiendo descarga del binario.');
|
|
487
|
-
return;
|
|
488
|
-
}
|
|
435
|
+
if (process.env.TESSRA_SKIP_POSTINSTALL) return;
|
|
489
436
|
|
|
490
437
|
const { asset, dest, tar } = getPlatformAsset();
|
|
491
438
|
const url = `${S3_BASE}/v${VERSION}/${asset}`;
|
|
492
439
|
|
|
493
|
-
console.log(`
|
|
494
|
-
console.log(`tessra: ${url}`);
|
|
440
|
+
console.log(`Downloading Tessra ${VERSION} for ${process.platform}/${process.arch}...`);
|
|
495
441
|
|
|
496
442
|
// Asegurar que el directorio bin/ existe
|
|
497
443
|
if (!fs.existsSync(BIN_DIR)) {
|