@dotrino/vaultd 0.131.1 → 0.131.2

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 +1 -1
  2. package/src/daemon.js +11 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotrino/vaultd",
3
- "version": "0.131.1",
3
+ "version": "0.131.2",
4
4
  "type": "module",
5
5
  "description": "Certificador personal de Dotrino: daemon headless que custodia la clave maestra y delega capacidades a tus dispositivos por el proxy. Tu CA propia.",
6
6
  "bin": {
package/src/daemon.js CHANGED
@@ -1086,7 +1086,17 @@ export async function runDaemon () {
1086
1086
  console.log(`[vault] update to ${r.version} NOT installed: ${res.reason}${res.file ? ` (file left at ${res.file})` : ''}`)
1087
1087
  return
1088
1088
  }
1089
- console.log(`[vault] update: ${r.version} installed · the service restarts on its own`)
1089
+ // SE REINICIA YA, no cuando lo note el vigilante: este proceso sabe que acaba de cambiar
1090
+ // el binario. Esperar al vigilante (mira cada minuto y exige verlo dos veces) dejaba ~2
1091
+ // minutos con el CLI y la TUI nuevos hablando con el daemon viejo; el dueño abrió la
1092
+ // TUI justo ahí y no arrancó (2026-09-24). Solo bajo systemd, que es quien nos levanta:
1093
+ // sin él, irnos sería quedarnos apagados.
1094
+ if (vigia) {
1095
+ console.log(`[vault] update: ${r.version} installed · restarting now to run it`)
1096
+ shutdown(`updated to ${r.version}`)
1097
+ } else {
1098
+ console.log(`[vault] update: ${r.version} installed · restart the vault to run it`)
1099
+ }
1090
1100
  } catch (e) {
1091
1101
  console.log(`[vault] update to ${r.version} failed: ${e.message}`)
1092
1102
  } finally { actualizando = false }