@clef-sh/agent 0.1.7-beta.43 → 0.1.7-beta.45

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/agent.cjs CHANGED
@@ -183539,9 +183539,7 @@ var AgeDecryptor = class {
183539
183539
  const { Decrypter } = await Promise.resolve().then(() => __toESM(require_age_encryption()));
183540
183540
  const d = new Decrypter();
183541
183541
  d.addIdentity(privateKey);
183542
- const isAgePem = ciphertext.startsWith("age-encryption.org/v1\n");
183543
- const input = isAgePem ? ciphertext : Buffer.from(ciphertext, "base64");
183544
- return d.decrypt(input, "text");
183542
+ return d.decrypt(Buffer.from(ciphertext, "base64"), "text");
183545
183543
  }
183546
183544
  /**
183547
183545
  * Resolve the age private key from either an inline value or a file path.
@@ -184480,7 +184478,7 @@ var Daemon = class {
184480
184478
  };
184481
184479
 
184482
184480
  // package.json
184483
- var version5 = "0.1.7-beta.43";
184481
+ var version5 = "0.1.7-beta.45";
184484
184482
 
184485
184483
  // src/main.ts
184486
184484
  async function main() {