local-mcp 1.44.4 → 1.44.5
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/download.js +3 -4
- package/package.json +1 -1
package/download.js
CHANGED
|
@@ -102,12 +102,11 @@ async function ensureRuntime() {
|
|
|
102
102
|
const pythonBin = path.join(versionDir, 'bin', 'python3')
|
|
103
103
|
const serverPath = path.join(versionDir, 'server.py')
|
|
104
104
|
|
|
105
|
-
// Ya está en cache — verificar
|
|
106
|
-
|
|
107
|
-
if (fs.existsSync(pythonBin) && fs.existsSync(serverPath) && fs.existsSync(zipPath)) {
|
|
105
|
+
// Ya está en cache — verificar que los archivos esenciales existan
|
|
106
|
+
if (fs.existsSync(pythonBin) && fs.existsSync(serverPath)) {
|
|
108
107
|
return { pythonBin, serverPath, runtimeDir: versionDir }
|
|
109
108
|
}
|
|
110
|
-
// Cache incompleto
|
|
109
|
+
// Cache incompleto → limpiar y re-descargar
|
|
111
110
|
if (fs.existsSync(versionDir)) {
|
|
112
111
|
process.stderr.write(` Cache incompleto — re-descargando...\n`)
|
|
113
112
|
fs.rmSync(versionDir, { recursive: true, force: true })
|
package/package.json
CHANGED