qdd-framework 2.1.0 → 2.2.0
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/install.js +11 -0
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -136,12 +136,23 @@ function descargarDesdeRelease({ os, arch, ext, binaryName, binDir }) {
|
|
|
136
136
|
fs.unlinkSync(downloadDest);
|
|
137
137
|
}
|
|
138
138
|
console.log('[QDD] ¡Instalación nativa completada exitosamente!');
|
|
139
|
+
actualizarConsola(path.join(binDir, binaryName));
|
|
139
140
|
} catch (err) {
|
|
140
141
|
console.error('[QDD] Error al extraer el binario:', err.message);
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
|
|
146
|
+
// actualizarConsola deja el panel de Claude Code en la versión recién instalada si el usuario lo activó
|
|
147
|
+
// ('qdd consola activar', RFC 0006 §3.6). Sin activar no hace nada; un error no rompe la instalación.
|
|
148
|
+
function actualizarConsola(bin) {
|
|
149
|
+
try {
|
|
150
|
+
execSync(`"${bin}" consola actualizar --si-activo`, { stdio: 'inherit' });
|
|
151
|
+
} catch (err) {
|
|
152
|
+
console.error('[QDD] No se pudo actualizar el panel de Claude Code:', err.message);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
145
156
|
module.exports = { esArchivo, estaDentroDeNodeModules, resolverBinarioLocal };
|
|
146
157
|
|
|
147
158
|
if (require.main === module) {
|