@oxis-dev/tessra 2.19.9 → 2.19.22
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 +1 -1
- package/scripts/postinstall.js +26 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxis-dev/tessra",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.22",
|
|
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": {
|
package/scripts/postinstall.js
CHANGED
|
@@ -361,6 +361,29 @@ function installLinuxLocalBin(binaryPath) {
|
|
|
361
361
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
+
// Copia el binario nativo a ~/.tessra/bin/tessra (ruta estable que usan los IDE configs).
|
|
365
|
+
// Es independiente de nvm, node, o la versión de npm — el comando en settings.json apunta aquí.
|
|
366
|
+
function installTessraHomeBin(binaryPath) {
|
|
367
|
+
const home = process.env.HOME || process.env.USERPROFILE;
|
|
368
|
+
if (!home) return;
|
|
369
|
+
|
|
370
|
+
const binDir = path.join(home, '.tessra', 'bin');
|
|
371
|
+
const binName = process.platform === 'win32' ? 'tessra.exe' : 'tessra';
|
|
372
|
+
const destPath = path.join(binDir, binName);
|
|
373
|
+
|
|
374
|
+
try {
|
|
375
|
+
if (!fs.existsSync(binDir)) {
|
|
376
|
+
fs.mkdirSync(binDir, { recursive: true });
|
|
377
|
+
}
|
|
378
|
+
fs.copyFileSync(binaryPath, destPath);
|
|
379
|
+
if (process.platform !== 'win32') {
|
|
380
|
+
fs.chmodSync(destPath, 0o755);
|
|
381
|
+
}
|
|
382
|
+
} catch (_) {
|
|
383
|
+
// No fatal — ide_config.rs cae a current_exe() si esta ruta no existe
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
364
387
|
function ensureGlobalBinOnPath() {
|
|
365
388
|
const binDir = getGlobalBinDir();
|
|
366
389
|
if (!binDir || pathContains(binDir, process.env.PATH || '')) return;
|
|
@@ -470,6 +493,9 @@ async function main() {
|
|
|
470
493
|
installLinuxLocalBin(dest);
|
|
471
494
|
}
|
|
472
495
|
|
|
496
|
+
// Instalar en ~/.tessra/bin/tessra — ruta estable que usan los IDE configs
|
|
497
|
+
installTessraHomeBin(dest);
|
|
498
|
+
|
|
473
499
|
ensureGlobalBinOnPath();
|
|
474
500
|
printInstallSummary();
|
|
475
501
|
}
|