@dotrino/terminal-agent 0.31.0 → 0.32.0
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/bin/terminal.js +4 -5
- package/package.json +1 -1
package/bin/terminal.js
CHANGED
|
@@ -437,9 +437,9 @@ function interactive (conn, first, dir) {
|
|
|
437
437
|
// LA CERRÓ OTRA PANTALLA (el teléfono, la web, el panel de otra ventana): esta ventana no
|
|
438
438
|
// se va — nadie aquí pidió cerrarla, y cerrarla dejaba al usuario sin ventana. Pasa a una
|
|
439
439
|
// consola que YA existe: primero una que no mire nadie; si todas se miran, la primera igual.
|
|
440
|
-
//
|
|
441
|
-
//
|
|
442
|
-
//
|
|
440
|
+
// NUNCA crea una nueva (dueño, 2026-10-08: para no llenarse de consolas que nadie mira): si la
|
|
441
|
+
// máquina se quedó sin ninguna, la ventana se cierra. Igual si la shell terminó sola (`exit`)
|
|
442
|
+
// o la cerró esta misma ventana, como cualquier terminal.
|
|
443
443
|
if (m.closedBy === 'other') {
|
|
444
444
|
const closed = consoleId
|
|
445
445
|
consoleId = null
|
|
@@ -449,8 +449,7 @@ function interactive (conn, first, dir) {
|
|
|
449
449
|
const rest = r.list.filter((c) => c.id !== closed)
|
|
450
450
|
const other = rest.find((c) => !c.watchers.length) || rest[0]
|
|
451
451
|
if (other) return switchTo({ type: 'attach', id: other.id })
|
|
452
|
-
|
|
453
|
-
out.write(`\x1b[2m${t('Otra pantalla cerró esta consola. Esta es una nueva.', 'Another screen closed this console. This is a new one.')}\x1b[0m\r\n`)
|
|
452
|
+
finish(m.code || 0)
|
|
454
453
|
})
|
|
455
454
|
return
|
|
456
455
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/terminal-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Dotrino Terminal: las ventanas de esta máquina (dotrino-terminal) y su agente, que deja abrir esas mismas consolas desde los otros aparatos de tu cuenta, cifrado punto a punto.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|