elsabro 2.0.0 → 2.0.1
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/README.md +6 -6
- package/bin/install.js +14 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,19 +22,19 @@ ELSABRO es un sistema de desarrollo AI-powered para Claude Code que te guía pas
|
|
|
22
22
|
|
|
23
23
|
## Instalación
|
|
24
24
|
|
|
25
|
-
###
|
|
25
|
+
### Con NPX (Recomendado)
|
|
26
26
|
```bash
|
|
27
|
-
npx
|
|
27
|
+
npx elsabro --global
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
### Con PNPM
|
|
31
31
|
```bash
|
|
32
|
-
pnpm dlx
|
|
32
|
+
pnpm dlx elsabro --global
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
### Con BUN
|
|
36
36
|
```bash
|
|
37
|
-
bunx
|
|
37
|
+
bunx elsabro --global
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
Después de instalar, abre Claude Code y escribe:
|
|
@@ -221,7 +221,7 @@ Voy a crear tu blog con:
|
|
|
221
221
|
## Actualización
|
|
222
222
|
|
|
223
223
|
```bash
|
|
224
|
-
npx
|
|
224
|
+
npx elsabro --update
|
|
225
225
|
```
|
|
226
226
|
|
|
227
227
|
O desde Claude Code:
|
|
@@ -232,7 +232,7 @@ O desde Claude Code:
|
|
|
232
232
|
## Desinstalación
|
|
233
233
|
|
|
234
234
|
```bash
|
|
235
|
-
npx
|
|
235
|
+
npx elsabro --uninstall
|
|
236
236
|
```
|
|
237
237
|
|
|
238
238
|
## Estructura del Proyecto
|
package/bin/install.js
CHANGED
|
@@ -397,9 +397,20 @@ async function install() {
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
//
|
|
401
|
-
|
|
402
|
-
|
|
400
|
+
// Clean up any empty hooks structure from previous installations
|
|
401
|
+
// Claude Code rejects empty postToolUse arrays/objects
|
|
402
|
+
if (settings.hooks) {
|
|
403
|
+
const ptu = settings.hooks.postToolUse;
|
|
404
|
+
const isEmptyArray = Array.isArray(ptu) && ptu.length === 0;
|
|
405
|
+
const isEmptyObject = ptu && typeof ptu === 'object' && !Array.isArray(ptu) && Object.keys(ptu).length === 0;
|
|
406
|
+
if (isEmptyArray || isEmptyObject) {
|
|
407
|
+
delete settings.hooks.postToolUse;
|
|
408
|
+
}
|
|
409
|
+
// Remove hooks object entirely if empty
|
|
410
|
+
if (Object.keys(settings.hooks).length === 0) {
|
|
411
|
+
delete settings.hooks;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
403
414
|
|
|
404
415
|
// Add version tracking
|
|
405
416
|
settings.elsabro = {
|