@haven_ai/sdk 0.1.37-alpha.0 → 0.2.0-alpha.0

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
@@ -108,9 +108,14 @@ var AgentPaymentNextAction = {
108
108
  */
109
109
  PaymentWindowExpired: "payment_window_expired",
110
110
  /**
111
- * Stop and tell the user that the originating Safe needs to be funded or
111
+ * Stop and tell the user that the originating account needs to be funded or
112
112
  * the agent's per-token allowance needs to be raised before the payment
113
113
  * can succeed. A user approval will not fix this state on its own.
114
+ *
115
+ * #2908: the wire twin `fund_account_or_raise_allowance`
116
+ * ({@link AgentPaymentNextActionAccountAlias}) means the same thing; the
117
+ * server keeps emitting THIS value until #2914. Compare via
118
+ * {@link canonicalAgentPaymentNextAction}.
114
119
  */
115
120
  FundSafeOrRaiseAllowance: "fund_safe_or_raise_allowance",
116
121
  /**
@@ -120,6 +125,19 @@ var AgentPaymentNextAction = {
120
125
  */
121
126
  SweepStrandedFunds: "sweep_stranded_funds"
122
127
  };
128
+ var AgentPaymentNextActionAccountAlias = {
129
+ /** Account-vocabulary twin of `fund_safe_or_raise_allowance`; same meaning. */
130
+ FundAccountOrRaiseAllowance: "fund_account_or_raise_allowance"
131
+ };
132
+ function canonicalAgentPaymentNextAction(value) {
133
+ if (value === AgentPaymentNextActionAccountAlias.FundAccountOrRaiseAllowance) {
134
+ return AgentPaymentNextAction.FundSafeOrRaiseAllowance;
135
+ }
136
+ return value;
137
+ }
138
+ function isFundAccountOrRaiseAllowance(value) {
139
+ return value === AgentPaymentNextAction.FundSafeOrRaiseAllowance || value === AgentPaymentNextActionAccountAlias.FundAccountOrRaiseAllowance;
140
+ }
123
141
  var AgentPaymentFailureCode = {
124
142
  /** A merchant-authoritative x402 price exceeds the caller's pre-funding max_amount cap. */
125
143
  PriceExceedsMax: "PRICE_EXCEEDS_MAX",
@@ -1126,7 +1144,10 @@ function mapPaymentStatusResult(raw) {
1126
1144
  rail: raw.rail,
1127
1145
  status: raw.status,
1128
1146
  phase: raw.phase,
1129
- nextAction: raw.next_action,
1147
+ // #2908: the account-vocabulary alias collapses onto the canonical value
1148
+ // so every `=== AgentPaymentNextAction.X` downstream keeps working when
1149
+ // the server flips its emit at #2914.
1150
+ nextAction: canonicalAgentPaymentNextAction(raw.next_action),
1130
1151
  amount: raw.amount,
1131
1152
  token: raw.token,
1132
1153
  resourceUrl: raw.resource_url,
@@ -1258,7 +1279,7 @@ function messageForState(label, status, paymentId, nextAction) {
1258
1279
  function paymentStateFromRaw(label, raw) {
1259
1280
  if (!raw.payment_id || !raw.status) return null;
1260
1281
  const phase = raw.phase ?? phaseForStatus(raw.status);
1261
- const nextAction = raw.next_action ?? nextActionForStatus(raw.status);
1282
+ const nextAction = canonicalAgentPaymentNextAction(raw.next_action) ?? nextActionForStatus(raw.status);
1262
1283
  if (!phase || !nextAction) return null;
1263
1284
  const amount = raw.amount ?? raw.requested ?? "";
1264
1285
  const token = raw.token ?? "";
@@ -1581,6 +1602,20 @@ function verifyPaymentReceipt(receipt, recover = defaultRecover) {
1581
1602
  return { verified: true, recoveredSigner: recovered };
1582
1603
  }
1583
1604
 
1605
+ // src/account-naming.ts
1606
+ function readAccountAddress(raw) {
1607
+ return raw.account_address ?? raw.safe_address ?? void 0;
1608
+ }
1609
+ function readAccountId(raw) {
1610
+ return raw.account_id ?? raw.safe_id ?? void 0;
1611
+ }
1612
+ function accountAddressTwins(address) {
1613
+ return { accountAddress: address, safeAddress: address };
1614
+ }
1615
+ function readX402ReceiptPayer(raw) {
1616
+ return raw.payer ?? raw.account_address ?? raw.sign_data?.components?.payer_account ?? raw.safe_address ?? raw.sign_data?.components?.safe;
1617
+ }
1618
+
1584
1619
  // src/account-reads.ts
1585
1620
  function safeBigInt(value) {
1586
1621
  try {
@@ -1639,7 +1674,10 @@ var AccountReads = class {
1639
1674
  const raw = await this.transport.get("/machine-payments/allowances");
1640
1675
  return {
1641
1676
  agentId: raw.agent_id,
1642
- safeAddress: raw.safe_address,
1677
+ // #2908: one mapper, both names, same value — `readAccountAddress`
1678
+ // prefers the server's `account_address` twin and falls back to
1679
+ // `safe_address` for a pre-#2907 server.
1680
+ ...accountAddressTwins(readAccountAddress(raw)),
1643
1681
  delegateAddress: raw.delegate_address,
1644
1682
  chainId: raw.chain_id,
1645
1683
  allowances: raw.allowances.map((allowance) => ({
@@ -1728,7 +1766,10 @@ var AccountReads = class {
1728
1766
  id: raw.id,
1729
1767
  name: raw.name,
1730
1768
  status: raw.status,
1731
- safeAddress: raw.safe_address,
1769
+ // #2908: both camelCase names off whichever snake_case name the server
1770
+ // sent (new first). The hosted MCP's `haven_get_agent` spreads this
1771
+ // object, so this is also the hosted output's dual-emit point.
1772
+ ...accountAddressTwins(readAccountAddress(raw)),
1732
1773
  delegateAddress: raw.delegate_address,
1733
1774
  chainId: raw.chain_id,
1734
1775
  executionRail: raw.execution_rail === "delegation" ? "delegation" : "legacy"
@@ -1778,7 +1819,7 @@ var DelegateSweepApi = class {
1778
1819
  const contract = createErc20Contract(sweepUsdcAddress(agent.chainId), ["function balanceOf(address) view returns (uint256)", "function transfer(address to, uint256 amount) returns (bool)"], wallet);
1779
1820
  const balance2 = await contract.balanceOf(agent.delegateAddress);
1780
1821
  if (balance2 > 0n) {
1781
- const tx = await contract.transfer(agent.safeAddress, balance2);
1822
+ const tx = await contract.transfer(agent.accountAddress, balance2);
1782
1823
  const { txHash, confirmation } = await waitForSweepTx(tx);
1783
1824
  transfers.push({ asset: "USDC", amount: format(balance2, 6), amountAtomic: balance2.toString(), txHash, explorerUrl: this.options.buildExplorerUrl(agent.chainId, txHash), confirmation });
1784
1825
  }
@@ -1788,12 +1829,12 @@ var DelegateSweepApi = class {
1788
1829
  const fee = await provider.getFeeData();
1789
1830
  const send = balance - (fee.maxFeePerGas ?? fee.gasPrice ?? 1000000n) * 21000n * 2n;
1790
1831
  if (send > 0n) {
1791
- const tx = await wallet.sendTransaction({ to: agent.safeAddress, value: send });
1832
+ const tx = await wallet.sendTransaction({ to: agent.accountAddress, value: send });
1792
1833
  const { txHash, confirmation } = await waitForSweepTx(tx);
1793
1834
  transfers.push({ asset: "ETH", amount: format(send, 18), amountAtomic: send.toString(), txHash, explorerUrl: this.options.buildExplorerUrl(agent.chainId, txHash), confirmation });
1794
1835
  }
1795
1836
  }
1796
- return { fromAddress: agent.delegateAddress, toAddress: agent.safeAddress, chainId: agent.chainId, transfers, unconfirmed: transfers.some((t) => t.confirmation === "unconfirmed") };
1837
+ return { fromAddress: agent.delegateAddress, toAddress: agent.accountAddress, chainId: agent.chainId, transfers, unconfirmed: transfers.some((t) => t.confirmation === "unconfirmed") };
1797
1838
  }
1798
1839
  prepareSweep() {
1799
1840
  return this.options.transport.post("/machine-payments/sweep/prepare", {});
@@ -2187,7 +2228,7 @@ var X402FundingLeg = class {
2187
2228
  const to = execResult?.to ?? raw.to ?? this.delegateAddress ?? "";
2188
2229
  const explorerUrl = execResult?.explorer_url ?? raw.explorer_url ?? explorerUrlOrEmpty(chainId, txHash);
2189
2230
  const merchantTo = execResult?.merchant_to ?? raw.merchant_to ?? option.payTo;
2190
- const payer = raw.payer ?? raw.safe_address ?? raw.sign_data?.components.safe;
2231
+ const payer = readX402ReceiptPayer(raw);
2191
2232
  return buildX402Receipt({
2192
2233
  paymentId: raw.payment_id,
2193
2234
  txHash,
@@ -4020,13 +4061,13 @@ var toolDescriptions = {
4020
4061
  summary: "Pay an inspected x402 quote. The delegate key signs locally; Haven only validates and relays signed, on-chain-constrained payment transactions.",
4021
4062
  selectionGuidance: "Do not use this for read-only allowance, budget, spend-limit, remaining-amount, reset-period, or what-can-I-spend questions; use the allowance lookup tool instead.",
4022
4063
  behavior: "Signs the payment locally and returns the merchant response. Settlement is either direct account-to-merchant with no funding leg, or a bridge that first redeems the agent's budget delegation to fund the delegate wallet for an EIP-3009 authorization. A payment outside the on-chain budget is declined before any money moves; nothing is queued for a human to approve later.",
4023
- nextActionGuidance: "Preserve the returned resume_state \u2014 it identifies this payment if you need to ask about it later. This tool performs the merchant retry itself, so do not wait on a signal while the call is in flight. If the process crashes after this call and a later haven_get_payment_status reports nextAction=retry_original_x402_request, Haven's funding leg confirmed but no merchant response was ever recorded \u2014 call the resume tool with the preserved resume_state or payment_id instead of paying again. If the response carries phase=insufficient_funds and nextAction=fund_safe_or_raise_allowance, the payment cannot be retried until the account is funded or the agent budget raised \u2014 stop and tell the user the shortfall reported on the response."
4064
+ nextActionGuidance: "Preserve the returned resume_state \u2014 it identifies this payment if you need to ask about it later. This tool performs the merchant retry itself, so do not wait on a signal while the call is in flight. If the process crashes after this call and a later haven_get_payment_status reports nextAction=retry_original_x402_request, Haven's funding leg confirmed but no merchant response was ever recorded \u2014 call the resume tool with the preserved resume_state or payment_id instead of paying again. If the response carries phase=insufficient_funds and nextAction=fund_safe_or_raise_allowance (or fund_account_or_raise_allowance), the payment cannot be retried until the account is funded or the agent budget raised \u2014 stop and tell the user the shortfall reported on the response."
4024
4065
  },
4025
4066
  payX402OneShot: {
4026
4067
  summary: "Fetch an x402 paid HTTP resource in a single call. Handles the full probe -> pay -> retry round trip and returns the merchant response.",
4027
4068
  selectionGuidance: "Prefer this over the quote+pay split when the agent just wants the paid resource and does not need to inspect the price first. If you already have a quote from haven_quote_x402, use haven_pay_x402_quote instead. Do not use for read-only allowance, budget, spend-limit, remaining-amount, reset-period, or what-can-I-spend questions; use the allowance lookup tool instead.",
4028
4069
  behavior: "Calls the URL, parses any HTTP 402 x402 challenge, signs the payment locally, then retries the original request with the signed payment header (sent under PAYMENT-SIGNATURE, plus the legacy X-PAYMENT on the EIP-3009 path only) and returns the merchant response. Settlement is either direct account-to-merchant with no funding leg, or a bridge that first redeems the agent's budget delegation to fund the delegate wallet for an EIP-3009 authorization. A payment outside the on-chain budget is declined before any money moves; nothing is queued for a human to approve later. If the resource returns a non-402 status, returns it unchanged without contacting Haven.",
4029
- nextActionGuidance: "Preserve the returned resume_state or paymentId \u2014 either identifies this payment if you need to ask about it later. This tool performs the merchant retry itself, so do not wait on a signal while the call is in flight. If the process crashes after this call and a later haven_get_payment_status reports nextAction=retry_original_x402_request, Haven's funding leg confirmed but no merchant response was ever recorded \u2014 call the resume tool with the preserved resume_state or payment_id instead of paying again. If the response carries phase=insufficient_funds and nextAction=fund_safe_or_raise_allowance, the payment cannot be retried until the account is funded or the agent budget raised \u2014 stop and tell the user the shortfall reported on the response."
4070
+ nextActionGuidance: "Preserve the returned resume_state or paymentId \u2014 either identifies this payment if you need to ask about it later. This tool performs the merchant retry itself, so do not wait on a signal while the call is in flight. If the process crashes after this call and a later haven_get_payment_status reports nextAction=retry_original_x402_request, Haven's funding leg confirmed but no merchant response was ever recorded \u2014 call the resume tool with the preserved resume_state or payment_id instead of paying again. If the response carries phase=insufficient_funds and nextAction=fund_safe_or_raise_allowance (or fund_account_or_raise_allowance), the payment cannot be retried until the account is funded or the agent budget raised \u2014 stop and tell the user the shortfall reported on the response."
4030
4071
  },
4031
4072
  resumeX402: {
4032
4073
  summary: "Resume an x402 payment whose Haven-side authorization already succeeded but whose merchant retry did not complete.",
@@ -4050,7 +4091,7 @@ var toolDescriptions = {
4050
4091
  getAgent: {
4051
4092
  summary: "Return the authenticated agent identity AND its live spend authority in one call: Haven wallet, delegate, chain, raw status, spend_authority_readiness, and per-token remaining allowance (atomic + human-readable). The recommended first call in a new session to confirm who you are and whether Haven will let you spend right now.",
4052
4093
  selectionGuidance: "Use this as the one-shot orientation/bootstrap at the start of a session, or whenever you need to confirm identity together with whether the agent can spend right now. For a detailed per-token breakdown (configured vs spent vs reset window) use haven_get_allowances.",
4053
- behavior: `Reads identity plus the live spend-authority snapshot in one shot \u2014 the agent's active on-chain budget delegation. spend_authority_readiness (readiness is a deprecated alias, same value) is "ready" when at least one token has remaining spend authority, "needs_approval" when the agent is active but has none, and "revoked" when the credential is not active. It covers hosted identity + on-chain spend authority ONLY \u2014 the hosted server cannot see the LOCAL signer, so "ready" does not mean the signer can start; verify the signer with a signer tool call or connect --doctor. An over-budget payment is declined before any money moves: there is no approval queue, so ask the owner to grant or raise the budget in Haven rather than waiting for an approval. allowances[] carries remainingAtomic and remainingDisplay per token. Identity fields (id, name, status, safeAddress, delegateAddress, chainId) are unchanged from before.`,
4094
+ behavior: `Reads identity plus the live spend-authority snapshot in one shot \u2014 the agent's active on-chain budget delegation. spend_authority_readiness (readiness is a deprecated alias, same value) is "ready" when at least one token has remaining spend authority, "needs_approval" when the agent is active but has none, and "revoked" when the credential is not active. It covers hosted identity + on-chain spend authority ONLY \u2014 the hosted server cannot see the LOCAL signer, so "ready" does not mean the signer can start; verify the signer with a signer tool call or connect --doctor. An over-budget payment is declined before any money moves: there is no approval queue, so ask the owner to grant or raise the budget in Haven rather than waiting for an approval. allowances[] carries remainingAtomic and remainingDisplay per token. Identity fields: id, name, status, accountAddress (safeAddress: deprecated alias, same value), delegateAddress, chainId.`,
4054
4095
  nextActionGuidance: ""
4055
4096
  },
4056
4097
  getAllowances: {
@@ -4090,9 +4131,9 @@ var toolDescriptions = {
4090
4131
  nextActionGuidance: "Give the verify_token and the well-known instructions (from getCatalogSubmissionStatus) to the merchant so they can publish the proof line, then poll the submission status until it reaches verified_payable or failed."
4091
4132
  },
4092
4133
  sweep_delegate: {
4093
- summary: "Sweep stranded USDC and/or ETH from the delegate wallet back to the originating Safe.",
4134
+ summary: "Sweep stranded USDC and/or ETH from the delegate wallet back to the originating account.",
4094
4135
  selectionGuidance: "Use this when the user instructs you to recover stranded funds on the delegate wallet, or when a payment status returns nextAction=sweep_stranded_funds. Do NOT use for normal payments \u2014 use haven_pay_x402. Do NOT use to read balances only \u2014 use haven_get_allowances.",
4095
- behavior: `Reads the delegate EOA's on-chain USDC and ETH balances. For each non-zero balance, signs and submits a transfer from the delegate EOA to the originating Safe (hardcoded destination). The delegate key signs locally \u2014 Haven never sees it and the backend never constructs signed transactions (CASP/MiCA Red Line #2). Returns tx hashes and recovered amounts. Returns an empty transfers list when nothing is stranded. Each transfer carries confirmation: "confirmed" (a receipt was seen \u2014 the funds are in the Safe) or "unconfirmed" (broadcast but not confirmed within 90 seconds \u2014 still in the mempool, may still land). The top-level unconfirmed flag is true when any transfer is unconfirmed.`,
4136
+ behavior: `Reads the delegate EOA's on-chain USDC and ETH balances. For each non-zero balance, signs and submits a transfer from the delegate EOA to the originating account (hardcoded destination). The delegate key signs locally \u2014 Haven never sees it and the backend never constructs signed transactions (CASP/MiCA Red Line #2). Returns tx hashes and recovered amounts. Returns an empty transfers list when nothing is stranded. Each transfer carries confirmation: "confirmed" (a receipt was seen \u2014 the funds are in the account) or "unconfirmed" (broadcast but not confirmed within 90 seconds \u2014 still in the mempool, may still land). The top-level unconfirmed flag is true when any transfer is unconfirmed.`,
4096
4137
  nextActionGuidance: 'If transfers is non-empty, confirm the amounts with the user. Report a transfer as recovered ONLY when its confirmation is "confirmed". For an "unconfirmed" transfer, tell the user it was submitted but not yet confirmed, give them its txHash and explorerUrl to check, and do not re-run the sweep immediately \u2014 a re-run after it lands will simply find nothing stranded.'
4097
4138
  },
4098
4139
  send: {
@@ -4817,6 +4858,6 @@ function sameUrl(a, b) {
4817
4858
  }
4818
4859
  }
4819
4860
 
4820
- export { AGENT_APPROVAL_RELAY_JSON_SENTENCE, AGENT_APPROVAL_RELAY_PROSE_SENTENCE, AGENT_COMMAND_MODIFICATION_SENTENCE, AGENT_JSON_MODE_SENTENCE, AGENT_LOCAL_KEY_SENTENCE, AGENT_NETWORK_ACCESS_SENTENCE, AGENT_ONBOARDING_PROMPT, AGENT_PAYMENT_FAILURE_CODE_VALUES, AGENT_PAYMENT_NEXT_ACTION_VALUES, AGENT_PAYMENT_PHASE_VALUES, AGENT_PAYMENT_RAIL_VALUES, AGENT_README_SECTION_MD, AGENT_SECRET_HYGIENE_SENTENCE, AGENT_WIRING_COLLISION_RELAY_SENTENCE, AgentPaymentFailureCode, AgentPaymentFailureCodeDescriptions, AgentPaymentFailureCodeSchema, AgentPaymentNextAction, AgentPaymentNextActionDescriptions, AgentPaymentNextActionSchema, AgentPaymentPhase, AgentPaymentPhaseDescriptions, AgentPaymentPhaseSchema, AgentPaymentRail, AgentPaymentRailDescriptions, AgentPaymentRailSchema, AgentPaymentWarningCode, CONNECTOR_PACKAGE_NAME, DEFAULT_CONFIRMATION_TIMEOUT_MS, DISCOVERY_MAX_BYTES, ERC7710_ASSET_TRANSFER_METHOD, HAVEN_AGENT_RUNBOOK_MD, HAVEN_CONNECTOR_CHANNEL, HAVEN_MINIMUM_NODE_VERSION, HAVEN_SKILL_BODY_MD, HAVEN_SKILL_MD, HavenApiError, HavenClient, HavenError, HavenPaymentStateError, HavenSigningError, HavenTimeoutError, HavenUnsupportedSignerVersionError, MERCHANT_DISCOVERY_PATHS, MerchantTimeoutError, RECEIPT_VERSION, SIGNER_UPDATE_FALLBACK, SKILL_FOLDER_NAME, SWEEP_BASE_CHAIN_ID, SWEEP_BASE_SEPOLIA_CHAIN_ID, SWEEP_BASE_SEPOLIA_USDC_ADDRESS, SWEEP_BASE_USDC_ADDRESS, SignerRefusalCode, TRANSFER_WITH_AUTHORIZATION_TYPES, X402AlreadySettledError, X402PaymentHeaderValidationError, X402UnexpectedStatusError, X402_LEGACY_PAYMENT_HEADER_NAME, X402_MAX_AUTHORIZATION_WINDOW_SECONDS, X402_PAYMENT_HEADER_NAME, X402_PAYMENT_HEADER_NAMES_SENT, X402_PAYMENT_REQUIRED_HEADER_NAME, X402_PAYMENT_RESPONSE_HEADER_NAME, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS, addressFromKey, buildSweepAuthorizationMessage, buildSweepTypedData, buildX402ExpectedMessage, compareNodeVersions, composeDescription, connectorRerunCommand, connectorSpec, decodeBase64Json, decodeBase64Utf8, discoverMerchantMcpUrl, encodeBase64Json, encodeBase64Utf8, encodePaymentProof, havenTools, isConnectorChannel, isErc7710Option, isSupportedNodeVersion, isSweepableChain, normalizePaymentRequired, parsePaymentRequired, parsePaymentRequiredResponse, resolveConnectorChannel, resolveTokenFromAddress, sameUrl, selectErc7710PaymentOption, selectPaymentOption, selectStandardPaymentOption, selectX402SettlementScheme, signHash, signUserOpTypedDataForDelegation, signerUpdateFallback, sweepUsdcAddress, sweepUsdcDomain, toStandardPaymentRequirements, toolDescriptions, unsupportedNodeVersionMessage, validateStandardX402PaymentHeader, verifyPaymentReceipt, verifySignature, x402AssetTransferMethod, x402AuthorizationAmount, x402FacilitatorAddresses, x402V2PaymentEnvelope };
4861
+ export { AGENT_APPROVAL_RELAY_JSON_SENTENCE, AGENT_APPROVAL_RELAY_PROSE_SENTENCE, AGENT_COMMAND_MODIFICATION_SENTENCE, AGENT_JSON_MODE_SENTENCE, AGENT_LOCAL_KEY_SENTENCE, AGENT_NETWORK_ACCESS_SENTENCE, AGENT_ONBOARDING_PROMPT, AGENT_PAYMENT_FAILURE_CODE_VALUES, AGENT_PAYMENT_NEXT_ACTION_VALUES, AGENT_PAYMENT_PHASE_VALUES, AGENT_PAYMENT_RAIL_VALUES, AGENT_README_SECTION_MD, AGENT_SECRET_HYGIENE_SENTENCE, AGENT_WIRING_COLLISION_RELAY_SENTENCE, AgentPaymentFailureCode, AgentPaymentFailureCodeDescriptions, AgentPaymentFailureCodeSchema, AgentPaymentNextAction, AgentPaymentNextActionAccountAlias, AgentPaymentNextActionDescriptions, AgentPaymentNextActionSchema, AgentPaymentPhase, AgentPaymentPhaseDescriptions, AgentPaymentPhaseSchema, AgentPaymentRail, AgentPaymentRailDescriptions, AgentPaymentRailSchema, AgentPaymentWarningCode, CONNECTOR_PACKAGE_NAME, DEFAULT_CONFIRMATION_TIMEOUT_MS, DISCOVERY_MAX_BYTES, ERC7710_ASSET_TRANSFER_METHOD, HAVEN_AGENT_RUNBOOK_MD, HAVEN_CONNECTOR_CHANNEL, HAVEN_MINIMUM_NODE_VERSION, HAVEN_SKILL_BODY_MD, HAVEN_SKILL_MD, HavenApiError, HavenClient, HavenError, HavenPaymentStateError, HavenSigningError, HavenTimeoutError, HavenUnsupportedSignerVersionError, MERCHANT_DISCOVERY_PATHS, MerchantTimeoutError, RECEIPT_VERSION, SIGNER_UPDATE_FALLBACK, SKILL_FOLDER_NAME, SWEEP_BASE_CHAIN_ID, SWEEP_BASE_SEPOLIA_CHAIN_ID, SWEEP_BASE_SEPOLIA_USDC_ADDRESS, SWEEP_BASE_USDC_ADDRESS, SignerRefusalCode, TRANSFER_WITH_AUTHORIZATION_TYPES, X402AlreadySettledError, X402PaymentHeaderValidationError, X402UnexpectedStatusError, X402_LEGACY_PAYMENT_HEADER_NAME, X402_MAX_AUTHORIZATION_WINDOW_SECONDS, X402_PAYMENT_HEADER_NAME, X402_PAYMENT_HEADER_NAMES_SENT, X402_PAYMENT_REQUIRED_HEADER_NAME, X402_PAYMENT_RESPONSE_HEADER_NAME, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS, accountAddressTwins, addressFromKey, buildSweepAuthorizationMessage, buildSweepTypedData, buildX402ExpectedMessage, canonicalAgentPaymentNextAction, compareNodeVersions, composeDescription, connectorRerunCommand, connectorSpec, decodeBase64Json, decodeBase64Utf8, discoverMerchantMcpUrl, encodeBase64Json, encodeBase64Utf8, encodePaymentProof, havenTools, isConnectorChannel, isErc7710Option, isFundAccountOrRaiseAllowance, isSupportedNodeVersion, isSweepableChain, normalizePaymentRequired, parsePaymentRequired, parsePaymentRequiredResponse, readAccountAddress, readAccountId, readX402ReceiptPayer, resolveConnectorChannel, resolveTokenFromAddress, sameUrl, selectErc7710PaymentOption, selectPaymentOption, selectStandardPaymentOption, selectX402SettlementScheme, signHash, signUserOpTypedDataForDelegation, signerUpdateFallback, sweepUsdcAddress, sweepUsdcDomain, toStandardPaymentRequirements, toolDescriptions, unsupportedNodeVersionMessage, validateStandardX402PaymentHeader, verifyPaymentReceipt, verifySignature, x402AssetTransferMethod, x402AuthorizationAmount, x402FacilitatorAddresses, x402V2PaymentEnvelope };
4821
4862
  //# sourceMappingURL=index.js.map
4822
4863
  //# sourceMappingURL=index.js.map