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 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
- ### Desde GitHub (Recomendado)
25
+ ### Con NPX (Recomendado)
26
26
  ```bash
27
- npx github:goat1990/elsabro --global
27
+ npx elsabro --global
28
28
  ```
29
29
 
30
30
  ### Con PNPM
31
31
  ```bash
32
- pnpm dlx github:goat1990/elsabro --global
32
+ pnpm dlx elsabro --global
33
33
  ```
34
34
 
35
35
  ### Con BUN
36
36
  ```bash
37
- bunx github:goat1990/elsabro --global
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 github:goat1990/elsabro --update
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 github:goat1990/elsabro --uninstall
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
- // Add hook configurations
401
- settings.hooks = settings.hooks || {};
402
- settings.hooks.postToolUse = settings.hooks.postToolUse || [];
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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elsabro",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Sistema de desarrollo AI-powered para Claude Code - El mejor asistente para crear apps sin experiencia previa",
5
5
  "bin": {
6
6
  "elsabro": "bin/install.js"