@dotrino/remote-agent 0.22.2 → 0.22.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/package.json +3 -3
  2. package/src/agent.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotrino/remote-agent",
3
- "version": "0.22.2",
3
+ "version": "0.22.3",
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",
@@ -47,12 +47,12 @@
47
47
  "p2p"
48
48
  ],
49
49
  "peerDependencies": {
50
- "@dotrino/identity": ">=0.120.0",
50
+ "@dotrino/identity": ">=0.121.4",
51
51
  "@dotrino/proxy-client": ">=0.36.1",
52
52
  "@dotrino/vault": ">=0.85.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@dotrino/identity": "0.120.0",
55
+ "@dotrino/identity": "0.121.4",
56
56
  "@dotrino/proxy-client": "0.36.2",
57
57
  "@dotrino/vault": "0.90.2"
58
58
  }
package/src/agent.js CHANGED
@@ -312,7 +312,7 @@ export async function startRemoteAgent (opts = {}) {
312
312
  if (typeof acta?.seq !== 'number') return
313
313
  const r = await adoptRecord({ link, candidate: acta, me: myPub })
314
314
  if (!r.adopt) {
315
- if (r.reason !== 'misma-acta') {
315
+ if (r.reason !== 'same-record') {
316
316
  audit('record-rejected', { seq: acta.seq, reason: r.reason })
317
317
  if (!opts.quiet) console.error(`[remote-agent] record #${acta.seq} rejected (${r.reason}); keeping the one already trusted`)
318
318
  }