@icarusmx/creta 0.7.1 → 0.7.3

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/bin/creta.js +7 -19
  2. package/package.json +1 -1
package/bin/creta.js CHANGED
@@ -579,26 +579,14 @@ function showHelp() {
579
579
  }
580
580
 
581
581
  async function startEnunciadosSelector() {
582
- // Debug TTY detection
583
- const hasSetRawMode = typeof process.stdin.setRawMode === 'function'
584
- const isOutputTTY = process.stdout.isTTY
585
- const isInputTTY = process.stdin.isTTY
586
-
587
- // DEBUG: Show detection values for troubleshooting
588
- // console.log(`DEBUG: hasSetRawMode=${hasSetRawMode}, isOutputTTY=${isOutputTTY}, isInputTTY=${isInputTTY}`)
589
-
590
- // Try interactive mode unless explicitly disabled
591
- if (hasSetRawMode && !process.env.CRETA_NO_INTERACTIVE) {
592
- try {
593
- return await startEnunciadosSelectorInteractive()
594
- } catch (error) {
595
- // If interactive mode fails, fall back to numbered selection
596
- console.log('\nCambiando a modo de selección numérica...\n')
597
- }
582
+ // Always try interactive mode first, fall back only if it fails
583
+ try {
584
+ return await startEnunciadosSelectorInteractive()
585
+ } catch (error) {
586
+ // If interactive mode fails, fall back to numbered selection
587
+ console.log('\nModo interactivo no disponible, usando selección numérica...\n')
588
+ return await startEnunciadosSelectorFallback()
598
589
  }
599
-
600
- // Fallback to numbered selection
601
- return await startEnunciadosSelectorFallback()
602
590
  }
603
591
 
604
592
  async function startEnunciadosSelectorInteractive() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icarusmx/creta",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Salgamos de este laberinto.",
5
5
  "type": "module",
6
6
  "bin": {