@dotrino/terminal-agent 0.37.0 → 0.37.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/bin/terminal.js +2 -1
- package/package.json +1 -1
package/bin/terminal.js
CHANGED
|
@@ -522,7 +522,8 @@ function interactive (conn, first, dir) {
|
|
|
522
522
|
request(conn, { type: 'list' }, 'consoles').then((r) => {
|
|
523
523
|
if (r.type !== 'consoles') return // un `fail`: ya lo atendió el manejador de abajo
|
|
524
524
|
const rest = r.list.filter((c) => c.id !== closed)
|
|
525
|
-
|
|
525
|
+
// Desatendida EN ESTA MÁQUINA: que la mire otro aparato no la hace atendida aquí.
|
|
526
|
+
const other = rest.find((c) => !c.watchers.length) || rest.find((c) => !c.watchers.some((w) => w.origin === 'local')) || rest[0]
|
|
526
527
|
if (other) return switchTo({ type: 'attach', id: other.id })
|
|
527
528
|
empty = true
|
|
528
529
|
shellTitle = ''; remote = new Set(); showTitle()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/terminal-agent",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.1",
|
|
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": {
|