@icarusmx/creta 0.8.1 → 0.8.2
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/.claude/settings.local.json +2 -1
- package/bin/creta.js +2 -23
- package/package.json +1 -1
package/bin/creta.js
CHANGED
|
@@ -778,27 +778,7 @@ async function startEnunciadosSelectorInteractive() {
|
|
|
778
778
|
const highlight = isSelected ? '\x1b[36m' : '\x1b[37m' // cyan for selected, white for normal
|
|
779
779
|
const reset = '\x1b[0m'
|
|
780
780
|
|
|
781
|
-
console.log(`${highlight}${prefix}${index + 1}.
|
|
782
|
-
|
|
783
|
-
if (isSelected) {
|
|
784
|
-
// Show full text for selected option with word wrapping
|
|
785
|
-
const maxWidth = 66
|
|
786
|
-
const words = enunciado.texto.split(' ')
|
|
787
|
-
let currentLine = ' "'
|
|
788
|
-
|
|
789
|
-
words.forEach(word => {
|
|
790
|
-
if (currentLine.length + word.length + 1 <= maxWidth) {
|
|
791
|
-
currentLine += (currentLine === ' "' ? '' : ' ') + word
|
|
792
|
-
} else {
|
|
793
|
-
console.log(`${highlight}${currentLine}${reset}`)
|
|
794
|
-
currentLine = ' ' + word
|
|
795
|
-
}
|
|
796
|
-
})
|
|
797
|
-
|
|
798
|
-
if (currentLine.length > 6) {
|
|
799
|
-
console.log(`${highlight}${currentLine}"${reset}`)
|
|
800
|
-
}
|
|
801
|
-
}
|
|
781
|
+
console.log(`${highlight}${prefix}${index + 1}. ${enunciado.texto}${reset}`)
|
|
802
782
|
console.log("")
|
|
803
783
|
})
|
|
804
784
|
}
|
|
@@ -874,8 +854,7 @@ async function startEnunciadosSelectorFallback() {
|
|
|
874
854
|
console.log("")
|
|
875
855
|
|
|
876
856
|
ENUNCIADOS.forEach((enunciado, index) => {
|
|
877
|
-
console.log(`${index + 1}.
|
|
878
|
-
console.log(` "${enunciado.texto}"`)
|
|
857
|
+
console.log(`${index + 1}. ${enunciado.texto}`)
|
|
879
858
|
console.log("")
|
|
880
859
|
})
|
|
881
860
|
|