@elisym/mcp 0.26.0 → 0.26.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.
package/dist/index.js CHANGED
@@ -2758,7 +2758,9 @@ async function executePaymentFlow(agent, paymentRequest, jobId, providerPubkey,
2758
2758
  expectedRecipient
2759
2759
  );
2760
2760
  if (validation !== null) {
2761
- throw new Error(`Payment validation failed: ${validation.message}`);
2761
+ throw new Error(
2762
+ `Payment validation failed: ${sanitizeUntrusted(validation.message, "text").text}`
2763
+ );
2762
2764
  }
2763
2765
  if (!agent.solanaKeypair) {
2764
2766
  throw new Error("Solana payments not configured for this agent.");
@@ -6551,7 +6553,9 @@ Future delegated spend is stopped once this lands.`
6551
6553
  input.expected_solana_recipient
6552
6554
  );
6553
6555
  if (validation !== null) {
6554
- return errorResult(`Payment validation failed: ${validation.message}`);
6556
+ return errorResult(
6557
+ `Payment validation failed: ${sanitizeUntrusted(validation.message, "text").text}`
6558
+ );
6555
6559
  }
6556
6560
  const sendAsset = resolveAssetFromPaymentRequest(requestData);
6557
6561
  if (sendAsset.token !== input.expected_asset) {