@dotrino/remote-agent 0.7.0 → 0.7.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/package.json +1 -1
- package/src/link.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/remote-agent",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Middleware compartido del ecosistema Dotrino para apps de agente remoto cifrado punto a punto (handshake E2E, emparejamiento SAS con vault, revocación, descubrimiento). Lo consumen dotrino-terminal (PTY) y dotrino-ia (chat con IA).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
package/src/link.js
CHANGED
|
@@ -120,7 +120,13 @@ export function identityFromLink (link, { dir = dataDir() } = {}) {
|
|
|
120
120
|
},
|
|
121
121
|
async getVaultCert () { return { cert: link.cert } },
|
|
122
122
|
async vaultStatus () {
|
|
123
|
-
|
|
123
|
+
// `seq` es lo que describe un papel ahora; `exp` solo lo llevan los del modelo viejo
|
|
124
|
+
// y se sigue dando mientras existan, para que quien mire sepa que le falta migrar.
|
|
125
|
+
return {
|
|
126
|
+
paired: true, master: link.iss, proxy, deviceId: await pubkeyId(device.publickey),
|
|
127
|
+
seq: link.cert?.seq ?? null,
|
|
128
|
+
...(typeof link.cert?.exp === 'number' ? { exp: link.cert.exp, legacy: true } : {})
|
|
129
|
+
}
|
|
124
130
|
},
|
|
125
131
|
async listVaultDevices () {
|
|
126
132
|
// SIN `sinceSeq`: un agente no guarda el acta ni la encadena —no hay una sola línea
|