@algosuite/vo-mcp 0.2.0-beta.11 → 0.2.0-beta.13

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/dist/index.js CHANGED
@@ -180,6 +180,7 @@ __export(credential_store_exports, {
180
180
  KEYCHAIN_LOCATION: () => KEYCHAIN_LOCATION,
181
181
  credentialPath: () => credentialPath,
182
182
  readStoredCredential: () => readStoredCredential,
183
+ readStoredCredentialKeychainOnly: () => readStoredCredentialKeychainOnly,
183
184
  writeStoredCredential: () => writeStoredCredential
184
185
  });
185
186
  import { homedir as homedir3 } from "node:os";
@@ -238,6 +239,11 @@ function readStoredCredential(env = process.env, keychain = realKeychain) {
238
239
  }
239
240
  return readFromFile(env);
240
241
  }
242
+ function readStoredCredentialKeychainOnly(env = process.env, keychain = realKeychain) {
243
+ if (!keychainEnabled(env, keychain)) return null;
244
+ const raw = keychain.get();
245
+ return raw ? deserialize(raw) : null;
246
+ }
241
247
  function deleteFile(env) {
242
248
  try {
243
249
  rmSync(credentialPath(env), { force: true });