specleap-framework 2.0.5 → 2.0.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup.sh +20 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specleap-framework",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Spec-Driven Development Framework — Transform VSCode, Cursor, JetBrains into spec-first development machines",
5
5
  "keywords": [
6
6
  "spec-driven-development",
package/setup.sh CHANGED
@@ -4,14 +4,26 @@
4
4
 
5
5
  set -e
6
6
 
7
- # Colores
8
- RED='\033[0;31m'
9
- GREEN='\033[0;32m'
10
- YELLOW='\033[1;33m'
11
- BLUE='\033[0;34m'
12
- CYAN='\033[0;36m'
13
- BOLD='\033[1m'
14
- NC='\033[0m'
7
+ # Detectar si el terminal soporta colores
8
+ if [[ -t 1 ]] && command -v tput &>/dev/null && [[ $(tput colors 2>/dev/null || echo 0) -ge 8 ]]; then
9
+ # Terminal con colores
10
+ RED='\033[0;31m'
11
+ GREEN='\033[0;32m'
12
+ YELLOW='\033[1;33m'
13
+ BLUE='\033[0;34m'
14
+ CYAN='\033[0;36m'
15
+ BOLD='\033[1m'
16
+ NC='\033[0m'
17
+ else
18
+ # Terminal sin colores - usar texto plano
19
+ RED=''
20
+ GREEN=''
21
+ YELLOW=''
22
+ BLUE=''
23
+ CYAN=''
24
+ BOLD=''
25
+ NC=''
26
+ fi
15
27
 
16
28
  # Ancho terminal
17
29
  COLS=$(tput cols 2>/dev/null || echo 80)