@dotrino/terminal-agent 0.2.7 → 0.2.8
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/index.js +7 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -48,9 +48,14 @@ export async function startAgent (opts = {}) {
|
|
|
48
48
|
|
|
49
49
|
installNodeGlobals(dir)
|
|
50
50
|
|
|
51
|
+
// PTY nativo con binarios PREBUILT (Linux/macOS/Windows, sin toolchain): el fork
|
|
52
|
+
// `@homebridge/node-pty-prebuilt-multiarch` es API-idéntico a node-pty. Fallback a
|
|
53
|
+
// `node-pty` por si una instalación vieja lo trae.
|
|
51
54
|
let pty
|
|
52
|
-
try { pty = require('node-pty') } catch {
|
|
53
|
-
|
|
55
|
+
try { pty = require('@homebridge/node-pty-prebuilt-multiarch') } catch {
|
|
56
|
+
try { pty = require('node-pty') } catch {
|
|
57
|
+
throw new Error('falta el módulo PTY. Reinstala el agente: `npx @dotrino/terminal-agent` (baja el binario prebuilt).')
|
|
58
|
+
}
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
const { getWebSocketProxyClient } = await import('@dotrino/proxy-client')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/terminal-agent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Agente de Dotrino Terminal: abre una shell (PTY) en la máquina del vault solo para el dispositivo enlazado, vía @dotrino/tunnel y cifrado E2E.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@dotrino/identity": "0.17.0",
|
|
17
17
|
"@dotrino/proxy-client": "0.6.4",
|
|
18
|
-
"node-pty": "
|
|
18
|
+
"@homebridge/node-pty-prebuilt-multiarch": "0.13.1",
|
|
19
19
|
"ws": "8.21.0"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT"
|