@vapi-network/core 0.11.0 → 0.12.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.
@@ -47889,7 +47889,7 @@ async function loadOrCreateDeviceKey(args) {
47889
47889
  await args.secrets.set(VAULT_KEY_ACCOUNT, key.toString("base64"));
47890
47890
  return key;
47891
47891
  } catch (error61) {
47892
- throw asVaultError2(error61, "Unable to load or create the device vault key.");
47892
+ throw asVaultError2(error61, deviceKeyFailureMessage(error61, args.secrets.platform));
47893
47893
  }
47894
47894
  });
47895
47895
  }
@@ -48055,6 +48055,12 @@ function parseJson(value) {
48055
48055
  function asVaultError2(error61, message) {
48056
48056
  return error61 instanceof VaultError ? error61 : new VaultError("corrupt", message, { cause: error61 });
48057
48057
  }
48058
+ var HEADLESS_LINUX_HINT = "A server, container or GitHub Codespace usually has no keyring. Run vapi on your own computer, or connect Claude from https://api.vapinetwork.ai/connect.";
48059
+ function deviceKeyFailureMessage(error61, platform) {
48060
+ if (!(error61 instanceof KeystoreError)) return "Unable to load or create the device vault key.";
48061
+ const detail = `Unable to load or create the device vault key: ${error61.message.replace(/\.$/u, "")}.`;
48062
+ return platform === "linux" ? `${detail} ${HEADLESS_LINUX_HINT}` : detail;
48063
+ }
48058
48064
 
48059
48065
  // src/wallet-store.ts
48060
48066
  var agentLinkSchema = external_exports.object({