@hoilab/ada-cli 0.84.18 → 0.84.19

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.
@@ -5398,6 +5398,30 @@ export class InteractiveMode {
5398
5398
  show([`🗑️ '${name}' removed from the project vault.`]);
5399
5399
  return;
5400
5400
  }
5401
+ case "use": {
5402
+ const available = vault.list();
5403
+ if (available.length === 0) {
5404
+ show(["Vault vacío. Usa /vault unlock y /vault add <name>."]);
5405
+ return;
5406
+ }
5407
+ if (!name) {
5408
+ const names = available
5409
+ .map((e) => ` ${e.name} (${e.source === "session" ? "sesión" : "proyecto"}${e.category ? " · " + e.category : ""})`)
5410
+ .join("\n");
5411
+ show([
5412
+ "Secretos disponibles:",
5413
+ names,
5414
+ "",
5415
+ "Usa /vault use <name> para obtener la referencia, o escribe @vault:<name> directamente en el chat.",
5416
+ ]);
5417
+ return;
5418
+ }
5419
+ const exists = available.some((e) => e.name === name);
5420
+ show(exists
5421
+ ? [`Listo. Escribe esto en el chat: @vault:${name}`, "El agente recibirá el valor; nunca se persiste en la sesión."]
5422
+ : [`No existe el secreto '${name}'. /vault list para verlos.`]);
5423
+ return;
5424
+ }
5401
5425
  case "list":
5402
5426
  case "status":
5403
5427
  default: {