@dotrino/vaultd 0.192.0 → 0.193.0

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/lib/src/admin.js CHANGED
@@ -241,7 +241,10 @@ export function createAdminDesk ({
241
241
  // VER UNA PRIVADA (`varsDesk.reveal`). Antes que las demás de variables porque aquí no
242
242
  // viaja ningún destino en claro: va dentro del sobre, y la política es de la bóveda.
243
243
  if (data.op === 'var.reveal.begin' || data.op === 'var.reveal') {
244
- if (!vars || typeof vars.reveal !== 'function') return { ok: false, error: 'admin: this vault cannot show a private variable (update it)' }
244
+ // Se comprueba el método que se va a llamar. Antes se miraba siempre `reveal`, y una
245
+ // bóveda sin `revealBegin` reventaba con un TypeError en vez de decirlo.
246
+ const method = data.op === 'var.reveal.begin' ? 'revealBegin' : 'reveal'
247
+ if (!vars || typeof vars[method] !== 'function') return { ok: false, error: 'admin: this vault cannot show a private variable (update it)' }
245
248
  try {
246
249
  const result = data.op === 'var.reveal.begin'
247
250
  ? await vars.revealBegin({ caller: chk.device, by })
@@ -62,7 +62,11 @@ export const UPDATE_TTL_MS = 24 * 60 * 60 * 1000
62
62
  /** Lo que dura una concesión SIN USARSE. Cada uso la vuelve a poner en una hora. */
63
63
  export const GRANT_TTL_MS = 60 * 60 * 1000
64
64
 
65
- export function createApprovals ({ now = Date.now, pendingTtlMs = PENDING_TTL_MS } = {}) {
65
+ /**
66
+ * `onExpire(pedido)` se llama con CADA pedido que caduca, lo tire quien lo tire: `list` y `take`
67
+ * también barren, y lo que se iban llevando no lo veía nadie.
68
+ */
69
+ export function createApprovals ({ now = Date.now, pendingTtlMs = PENDING_TTL_MS, onExpire = null } = {}) {
66
70
  /** id → { id, ns, device, deviceId, label, ek, ctx, ts, exp, from } */
67
71
  const pending = new Map()
68
72
  /**
@@ -110,6 +114,7 @@ export function createApprovals ({ now = Date.now, pendingTtlMs = PENDING_TTL_MS
110
114
  sweep () {
111
115
  const t = now(); const gone = []
112
116
  for (const [id, p] of pending) if (p.exp <= t) { pending.delete(id); gone.push(publicOf(p)) }
117
+ if (onExpire) for (const g of gone) onExpire(g)
113
118
  return gone
114
119
  }
115
120
  }
@@ -5,4 +5,4 @@
5
5
  * si no coincide con la del paquete: una versión anunciada que no es la que corre es peor
6
6
  * que no anunciar ninguna.
7
7
  */
8
- export const LIB_VERSION = '0.120.0'
8
+ export const LIB_VERSION = '0.121.0'
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * LO QUE LA BÓVEDA TIENE QUE CONTARLE A QUIEN APRUEBA, y que no es un pedido.
3
3
  *
4
- * Son tres. Dos de la bóveda o de uno de sus aparatos: «me actualicé» y «hay versión nueva y
4
+ * Lo que se cuenta: «me actualicé», «hay versión nueva y necesita permisos de administrador»,
5
+ * un incidente de emparejamiento, el ancla de la bitácora, lo entregado sin aprobación y los
6
+ * pedidos que se cerraron (`answered`). Los dos primeros, de la bóveda o de uno de sus aparatos: «me actualicé» y «hay versión nueva y
5
7
  * necesita permisos de administrador: instálala a mano» (`update-needs-root`). (`ev: 'updated'`, dueño 2026-10-08: «las actualizaciones, que se
6
8
  * envíe una notificación de que ocurrieron a los aprobadores»). Sale como aviso por el
7
9
  * proxio, pero el timbre de una app nativa llega VACÍO —lo leen Google y Apple—, así que la
@@ -22,7 +24,15 @@ export const NOTICE_TTL_MS = 24 * 60 * 60 * 1000
22
24
  * (`docs/pairing-protocol.md` §1.7). No pide nada: no hay a quién bloquear, porque ninguno
23
25
  * entró. Lo cuenta, con el ID y la máquina de los dos.
24
26
  */
25
- export const NOTICE_EVS = ['updated', 'update-needs-root', 'pairing-contested', 'log-anchor', 'delivered']
27
+ export const NOTICE_EVS = ['updated', 'update-needs-root', 'pairing-contested', 'log-anchor', 'delivered', 'answered']
28
+ /**
29
+ * `answered`: un pedido que se cerró —aprobado, denegado, bloqueado, ignorado, retirado o
30
+ * caducado—, con quién lo contestó (`by`, el ID del aparato) si fue alguien (dueño, 2026-11-05:
31
+ * «las notificaciones llegan pero al abrirlas en la app no hay restos de nada; el vault debe
32
+ * mostrarme en la pantalla de aprobaciones el movimiento de las últimas 24 horas»). Un pedido
33
+ * contestado salía de la lista y no quedaba nada que enseñar junto al aviso que ya había sonado.
34
+ */
35
+ export const ANSWER_OUTCOMES = ['approved', 'denied', 'blocked', 'ignored', 'withdrawn', 'expired']
26
36
  /**
27
37
  * `delivered`: un aparato con `unattended` se llevó claves de un cajón (`kind: 'secrets'`) o
28
38
  * una contraseña (`kind: 'passwords'`) sin que nadie aprobara, porque no le hacía falta (dueño,
@@ -65,7 +75,7 @@ export function openNotices ({ disk, now = Date.now }) {
65
75
  * administrador). `product`: qué (`@dotrino/vaultd` es la propia bóveda);
66
76
  * `deviceId`/`label`: el aparato, si fue uno.
67
77
  */
68
- add (ev, { version, from = null, product = '@dotrino/vaultd', deviceId = null, label = null, devices = null, logSeq = null, head = null, tsa = null, ns = null, kind = null }) {
78
+ add (ev, { version, from = null, product = '@dotrino/vaultd', deviceId = null, label = null, devices = null, logSeq = null, head = null, tsa = null, ns = null, kind = null, outcome = null, by = null, request = null }) {
69
79
  if (!NOTICE_EVS.includes(ev)) throw fail('bad-notice', `unknown notice: ${ev}`)
70
80
  if (ev === 'delivered') {
71
81
  if (!DELIVERED_KINDS.includes(kind)) throw fail('bad-notice', `${ev}: kind must be one of ${DELIVERED_KINDS.join(', ')}`)
@@ -87,6 +97,22 @@ export function openNotices ({ disk, now = Date.now }) {
87
97
  save()
88
98
  return n
89
99
  }
100
+ if (ev === 'answered') {
101
+ if (!ANSWER_OUTCOMES.includes(outcome)) throw fail('bad-notice', `${ev}: outcome must be one of ${ANSWER_OUTCOMES.join(', ')}`)
102
+ if (typeof kind !== 'string' || !kind) throw fail('bad-notice', `${ev}: the kind of request is required`)
103
+ const n = {
104
+ id: newId(), ev, outcome, kind,
105
+ ns: typeof ns === 'string' ? ns : null,
106
+ deviceId: typeof deviceId === 'string' ? deviceId : null,
107
+ label: typeof label === 'string' ? label : '',
108
+ by: typeof by === 'string' && by ? by : null,
109
+ request: typeof request === 'string' ? request : null,
110
+ ts: now()
111
+ }
112
+ items = [...items.filter(alive), n]
113
+ save()
114
+ return n
115
+ }
90
116
  if (ev === 'pairing-contested') {
91
117
  if (!Array.isArray(devices) || devices.length < 2) throw fail('bad-notice', `${ev}: the devices that answered are required`)
92
118
  const n = {
@@ -1448,7 +1448,10 @@ export function openSecretsStore (disk, { sealer = null, recipients = null, sign
1448
1448
  dev: {},
1449
1449
  recovery: { pub: pair.pub, priv: await sealer.sealMaster(pair.priv, keyOr(adminKey)) },
1450
1450
  // El histórico empieza aquí: de lo de antes no se guardó ninguna versión previa.
1451
- history: []
1451
+ history: [],
1452
+ // Las lápidas se conservan. Faltaba el campo, y el primer `delete` tras convertir
1453
+ // reventaba en `_drop` (`data.deleted[owner]` sobre `undefined`) hasta reiniciar.
1454
+ deleted: data.deleted
1452
1455
  }
1453
1456
  const antes = {}
1454
1457
  const noKey = {}
@@ -200,7 +200,18 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
200
200
  if (r.skipped) log(`[vault] ${why}: ${r.skipped} unmarked envelope(s) that the account key does not open were left as they are`)
201
201
  return r
202
202
  }
203
- const approvals = createApprovals()
203
+ const approvals = createApprovals({ onExpire: (p) => noteAnswered(p, 'expired') })
204
+ /**
205
+ * EL RASTRO DE UN PEDIDO CERRADO, para Pedidos (`notices`, 24 h). El aviso del teléfono ya sonó;
206
+ * sin esto, al abrir la app el pedido no estaba y no quedaba nada que lo explicara.
207
+ *
208
+ * No cambia lo que se decidió: si no se puede apuntar se dice en el log, y la respuesta sigue.
209
+ */
210
+ function noteAnswered (pend, outcome, by = null) {
211
+ try {
212
+ notices.add('answered', { outcome, kind: pend.kind || 'read', ns: pend.ns || null, deviceId: pend.deviceId || null, label: pend.label || '', by, request: pend.id || null })
213
+ } catch (e) { log(`[vault] could not note that request ${pend.id} was ${outcome}: ${e.message}`) }
214
+ }
204
215
  /**
205
216
  * LO QUE YA SE APROBÓ: comando + carpeta, por una hora desde el último uso.
206
217
  *
@@ -2212,6 +2223,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
2212
2223
  }
2213
2224
  if (op === 'deny') {
2214
2225
  audit('incident.ignored', { device: pend.deviceId, kind: pend.ctx?.kind || null, id, by })
2226
+ noteAnswered(pend, 'ignored', by)
2215
2227
  log(`[vault] incident ${id} about ${pend.deviceId} ignored by ${by}`)
2216
2228
  return answer({ op: 'deny.result', id, ok: true })
2217
2229
  }
@@ -2220,6 +2232,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
2220
2232
  // le quedaba sería un bloqueo de mentira.
2221
2233
  const cut = grants.revokeAll({ device: pend.device })
2222
2234
  audit('blocked', { device: pend.deviceId, kind: pend.ctx?.kind || null, id, by, grants: cut })
2235
+ noteAnswered(pend, 'blocked', by)
2223
2236
  log(`[vault] BLOCKED ${pend.deviceId}${pend.label ? ` (${pend.label})` : ''} by ${by} after incident ${id} · unblock with: dotrino-vault unblock ${pend.deviceId}`)
2224
2237
  // Se avisa a todos: los agentes (la terminal) traen la lista con el acta al recibirlo
2225
2238
  // y le cierran la sesión que tenga abierta. Sin esto el bloqueo esperaba al tic de 5 min.
@@ -2236,6 +2249,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
2236
2249
  const ok = op === 'approve'
2237
2250
  const what = pend.kind === 'write' ? 'vars' : pend.kind === 'update' ? 'update' : 'passwords'
2238
2251
  audit(ok ? `${what}.approved` : `${what}.denied`, { device: pend.deviceId, ns: pend.ns, id, by })
2252
+ noteAnswered(pend, ok ? 'approved' : 'denied', by)
2239
2253
  log(`[vault] ${what}: request ${pend.id} of ${pend.deviceId} ${ok ? 'approved' : 'DENIED'} by ${by}`)
2240
2254
  // Lo aprobado SE HACE AQUÍ (una escritura se aplica ahora), y si falla quien aprobó
2241
2255
  // tiene que enterarse: decirle «hecho» a algo que no se guardó es el peor resultado.
@@ -2248,6 +2262,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
2248
2262
  }
2249
2263
  if (op === 'deny') {
2250
2264
  audit('secrets.denied', { device: pend.deviceId, ns: pend.ns, id, by })
2265
+ noteAnswered(pend, 'denied', by)
2251
2266
  log(`[vault] ${pend.ns}: request of ${pend.deviceId} DENIED by ${by}`)
2252
2267
  try {
2253
2268
  const plain = { type: MSG.ERROR, error: `unauthorized: denied — the "${pend.ns}" request was denied from ${by}` }
@@ -2269,6 +2284,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
2269
2284
  // que unos pedidos dejan de timbrar y otros no, sin ninguna explicación a mano.
2270
2285
  const grant = grants.grant({ ns: pend.ns, device: pend.device, deviceId: pend.deviceId, ctx: pend.ctx, by })
2271
2286
  audit('secrets.approved', { device: pend.deviceId, ns: pend.ns, id, by, ...(grant ? { grant: grant.id } : {}) })
2287
+ noteAnswered(pend, 'approved', by)
2272
2288
  log(`[vault] ${pend.ns}: request of ${pend.deviceId} approved by ${by}`)
2273
2289
  log(grant
2274
2290
  ? `[vault] ${pend.ns}: "${commandLine(pend.ctx, 80)}" approved for ${Math.round(GRANT_TTL_MS / 60000)} min from its last use (grant ${grant.id})`
@@ -2943,6 +2959,16 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
2943
2959
  })
2944
2960
  }
2945
2961
  function scheduleDeviceNotice (pub) { schedule('dev:' + pub, () => notifyDeviceChange(pub)) }
2962
+ /**
2963
+ * El aviso del cajón que se tocó: el de un namespace o el de un aparato. `varsDesk` escribe en
2964
+ * los dos, y avisaba siempre al namespace —con `ns` null cuando el cajón era de un aparato—,
2965
+ * así que el aparato no se enteraba de que su configuración había cambiado.
2966
+ */
2967
+ function noticeFor (ns, pub) {
2968
+ if (ns) return scheduleNotice(ns)
2969
+ if (!pub) throw new Error('vars: a drawer needs its ns or its device pub')
2970
+ scheduleDeviceNotice(pub)
2971
+ }
2946
2972
 
2947
2973
  function schedule (key, fn) {
2948
2974
  clearTimeout(pendingNotices.get(key))
@@ -3450,7 +3476,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
3450
3476
  await checkAuthor(owner, key, sealed, caller, { allowOverwrite: ask })
3451
3477
  await checkRecipients(owner, sealed.wraps, !!isPublic)
3452
3478
  await secrets.putSealed(owner, key, sealed, { by: who, public: isPublic })
3453
- audit('secret.set', { ns: ns || null, key, sealed: true }); scheduleNotice(ns)
3479
+ audit('secret.set', { ns: ns || null, key, sealed: true }); noticeFor(ns, pub)
3454
3480
  await settleDebts(owner)
3455
3481
  }
3456
3482
  // Comprobado ANTES de dejarlo en espera: un sobre malo falla al guardarlo, no cinco
@@ -3522,7 +3548,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
3522
3548
  await secrets.putSealed(owner, it.key, it.sealed, { by: who, public: !!it.public })
3523
3549
  keys.push(it.key)
3524
3550
  }
3525
- audit('secret.setMany', { ns: ns || null, keys }); scheduleNotice(ns)
3551
+ audit('secret.setMany', { ns: ns || null, keys }); noticeFor(ns, pub)
3526
3552
  await settleDebts(owner)
3527
3553
  }
3528
3554
  const pending = await holdWrite({ caller, ns, pub, keys: items.map((it) => it.key), apply, ask })
@@ -5103,6 +5129,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
5103
5129
  const retire = () => {
5104
5130
  if (!pendId || !waiters.delete(pendId)) return
5105
5131
  const pend = approvals.take(pendId)
5132
+ if (pend) noteAnswered(pend, 'withdrawn')
5106
5133
  audit('update.withdrawn', { device: pend?.deviceId || null, ns: 'vault', id: pendId })
5107
5134
  log(`[vault] update: request ${pendId} withdrawn`)
5108
5135
  settle(false)
@@ -5128,7 +5155,8 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
5128
5155
  // La bóveda de contraseñas (`passwords.js`). Aquí SÍ se lista: es donde está la
5129
5156
  // llave. Lo que no puede es listarla un aparato.
5130
5157
  passwordDevices,
5131
- passwordsVault: () => passwords?.vault || null,
5158
+ // (Aquí estaba `passwordsVault`, que siempre daba null: el mostrador sellado ya no tiene
5159
+ // `vault` —no hay llave que guardar— y nadie lo llamaba. Quitado, no arreglado.)
5132
5160
  // La política de las contraseñas, para quien atiende su propio almacén (la extensión).
5133
5161
  passwordsNeedApproval,
5134
5162
  approvePasswordRequest,
@@ -66,3 +66,20 @@ export function formatDeviceInfo (info) {
66
66
  const w = Math.max(...rows.map(([k]) => k.length))
67
67
  return rows.map(([k, v]) => `${(k + ':').padEnd(w + 2)}${v}`).join('\n')
68
68
  }
69
+
70
+ /**
71
+ * Cómo se describe el papel (cert) de un servicio: por el ACTA a la que se ató, o, si es del
72
+ * modelo viejo, con la fecha en que vence — lo único que todavía caduca. Sin ninguna de las
73
+ * dos se dice `?`. Antes `dotrino-env enroll` hacía `new Date(undefined).toISOString()` en la
74
+ * rama vieja, que lanza RangeError justo al terminar de enrolar.
75
+ *
76
+ * @param {{ seq?: unknown, exp?: unknown } | null | undefined} cert
77
+ * @param {{ old?: string }} [words] cómo se llama el modelo viejo en la salida
78
+ * @returns {string}
79
+ */
80
+ export function describePaper (cert, { old = 'modelo viejo' } = {}) {
81
+ if (typeof cert?.seq === 'number') return `acta #${cert.seq}`
82
+ if (typeof cert?.exp === 'number' && Number.isFinite(cert.exp)) return `${old} · vence ${new Date(cert.exp).toISOString().slice(0, 10)}`
83
+ return '?'
84
+ }
85
+
package/lib/src/env.js CHANGED
@@ -114,11 +114,13 @@ export function resolveNs (ns) {
114
114
  return ns
115
115
  }
116
116
  const found = listEnrolled()
117
- if (found.length === 1) return found[0]
117
+ // `listEnrolled` da `{ vault, ns }`: lo que se devuelve es el ns. Devolvía el objeto entero,
118
+ // y `serviceDir` lo rechazaba como «invalid ns» justo en el caso «el único enrolado».
119
+ if (found.length === 1) return found[0].ns
118
120
  if (found.length === 0) {
119
121
  throw new Error('no service enrolled on this machine: run `npx dotrino-env enroll --ns <your-app>`')
120
122
  }
121
- throw new Error(`several services are enrolled (${found.join(', ')}): pick one with DOTRINO_NS=<ns> or loadEnv({ ns })`)
123
+ throw new Error(`several services are enrolled (${found.map((e) => e.vault ? `${e.vault}/${e.ns}` : e.ns).join(', ')}): pick one with DOTRINO_NS=<ns> or loadEnv({ ns })`)
122
124
  }
123
125
 
124
126
  /**
@@ -501,10 +501,12 @@ export function createLoginDesk ({ load, save, now = () => Date.now(), opaque =
501
501
  export async function createPasswordLogin ({ user, password, label, caps, begin, finish, opaque = opaqueClientePorDefecto } = {}) {
502
502
  if (!isValidUser(user)) throw Object.assign(new Error('invalid user name'), { code: 'bad-user' })
503
503
  if (typeof password !== 'string' || !password) throw Object.assign(new Error('a password is required'), { code: 'no-password' })
504
- const start = opaque.registrationStart({ password })
504
+ // `opaque` se inyecta, y el resto de este archivo ya lo espera con `await`: una
505
+ // implementación asíncrona devolvía aquí una promesa y `start.request` salía `undefined`.
506
+ const start = await opaque.registrationStart({ password })
505
507
  const begun = await begin({ user, request: start.request })
506
508
  // La bóveda contesta con su mitad; el registro se termina AQUÍ, con la contraseña.
507
- const fin = opaque.registrationFinish({ state: start.state, response: begun.response, password })
509
+ const fin = await opaque.registrationFinish({ state: start.state, response: begun.response, password })
508
510
  const device = await makeDeviceKey({ label })
509
511
  const enc = await makeDeviceEncKey()
510
512
  const blob = await sealDeviceKeys(fin.exportKey, { sign: device.privateJwk, enc: enc.encPrivateJwk })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotrino/vaultd",
3
- "version": "0.192.0",
3
+ "version": "0.193.0",
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/tui/app.js CHANGED
@@ -1153,7 +1153,7 @@ async function refreshMembers (term, st) {
1153
1153
  * que nadie está mirando.
1154
1154
  */
1155
1155
  async function refreshLogins (term, st, api = vc) {
1156
- const r = await guard(term, st, L(st).refreshing, () => api.listLogins(activeId(st)))
1156
+ const r = await guard(term, st, L(st).loadingLogins, () => api.listLogins(activeId(st)))
1157
1157
  if (r.ok) st.logins = r.v
1158
1158
  else st.logins = []
1159
1159
  }
@@ -2217,7 +2217,7 @@ async function onKeySecrets (term, st, key) {
2217
2217
  function promptRenameVariable (term, st, cur) {
2218
2218
  const i = L(st)
2219
2219
  setInput(st, {
2220
- label: i.renameLabel(cur.key),
2220
+ label: i.renameVarLabel(cur.key),
2221
2221
  hint: i.renameHint,
2222
2222
  value: cur.key,
2223
2223
  onSubmit: async (newer) => {
package/src/tui/i18n.js CHANGED
@@ -262,6 +262,7 @@ const es = {
262
262
  loadingDevices: 'Cargando dispositivos…',
263
263
  loadingSecrets: 'Cargando secretos…',
264
264
  loadingVaults: 'Cargando bóvedas…',
265
+ loadingLogins: 'Cargando los inicios de sesión…',
265
266
  switchingVault: 'Cambiando de bóveda…',
266
267
  vaultNowActive: (name) => `Bóveda activa: ${name}`,
267
268
  newVaultLabel: 'Nombre de la nueva bóveda',
@@ -388,9 +389,8 @@ const es = {
388
389
  newVarPrivateAsk: '¿Es privada?',
389
390
  makePublicConfirm: '¿Hacerla pública?',
390
391
  changingVisibility: 'Cambiando…',
391
- renameLabel: (k) => `Nuevo nombre para ${k}`,
392
+ renameVarLabel: (k) => `Nuevo nombre para ${k}`,
392
393
  renameHint: 'MAYUSCULAS_CON_GUION_BAJO · el valor no se toca · Esc cancela',
393
- renaming: 'Renombrando…',
394
394
  renamed: (a, b) => `${a} ahora se llama ${b} — el servicio que la lee se reinicia; si busca el nombre viejo, ya no lo encuentra`,
395
395
  nowPublic: 'Pública: se entrega sin pedirte permiso',
396
396
  nowPrivate: 'Privada: para entregarla te pide permiso',
@@ -813,6 +813,7 @@ const en = {
813
813
  loadingDevices: 'Loading devices…',
814
814
  loadingSecrets: 'Loading secrets…',
815
815
  loadingVaults: 'Loading vaults…',
816
+ loadingLogins: 'Loading the sign-ins…',
816
817
  switchingVault: 'Switching vault…',
817
818
  vaultNowActive: (name) => `Active vault: ${name}`,
818
819
  newVaultLabel: 'Name of the new vault',
@@ -926,9 +927,8 @@ const en = {
926
927
  newVarPrivateAsk: 'Is it private?',
927
928
  makePublicConfirm: 'Make it public?',
928
929
  changingVisibility: 'Changing…',
929
- renameLabel: (k) => `New name for ${k}`,
930
+ renameVarLabel: (k) => `New name for ${k}`,
930
931
  renameHint: 'UPPERCASE_WITH_UNDERSCORES · the value is not touched · Esc cancels',
931
- renaming: 'Renaming…',
932
932
  renamed: (a, b) => `${a} is now ${b} — the service that reads it restarts; if it looks for the old name, it will not find it`,
933
933
  nowPublic: 'Public: handed over without asking you',
934
934
  nowPrivate: 'Private: handing it over asks you first',