@haven_ai/sdk 0.0.0-dev.202609272032.679e797 → 0.0.0-dev.202609281335.705f436

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.
@@ -1969,7 +1969,7 @@ declare function buildSweepAuthorizationMessage(auth: SweepAuthorization): strin
1969
1969
  * This SDK's own version. Owned by `scripts/release-bump.mjs`, which rewrites
1970
1970
  * it with the package version on every release — never hand-edit it.
1971
1971
  */
1972
- declare const SDK_VERSION = "0.0.0-dev.202609272032.679e797";
1972
+ declare const SDK_VERSION = "0.0.0-dev.202609281335.705f436";
1973
1973
  /** The request header every published Haven client sends. */
1974
1974
  declare const HAVEN_CLIENT_HEADER = "X-Haven-Client";
1975
1975
  /** `<package>/<version>` — the value of {@link HAVEN_CLIENT_HEADER}. */
@@ -2188,6 +2188,28 @@ declare function connectorRerunCommand(args?: string, options?: {
2188
2188
  channel?: string;
2189
2189
  npxFlags?: string;
2190
2190
  }): string;
2191
+ /**
2192
+ * The command every UPGRADE hint names (#3412): `npx -y @haven_ai/connect@<channel> --doctor`.
2193
+ *
2194
+ * A bare connector re-run is a SETUP command — on a machine that is already
2195
+ * set up it stops at "Missing --setup <hv_setup_...> setup token", so an
2196
+ * outdated signer, local MCP or connector told to "re-run the connector" was
2197
+ * handed a dead end. The flagless doctor works as pasted on an existing
2198
+ * install (#3210: it resolves the runtime from the setup record), diagnoses an
2199
+ * outdated signer, and prints the exact `--doctor --repair` line for the agent
2200
+ * it describes — with `--credentials-dir` whenever more than one agent lives on
2201
+ * the machine, so the repair cannot land on a different agent.
2202
+ *
2203
+ * `-y` because an upgrade hint is often run by an agent in a non-interactive
2204
+ * shell. `@haven_ai/core`'s `upgradeCommandFor` (the backend's
2205
+ * `client_update.upgrade_command`) cannot import this package, so it carries a
2206
+ * copy; `packages/backend/src/__tests__/connector-upgrade-command-parity.test.ts`
2207
+ * fails if the two ever disagree. Setup-time hints (identity restore,
2208
+ * mid-setup retry) legitimately stay on {@link connectorRerunCommand}.
2209
+ */
2210
+ declare function connectorUpgradeCommand(options?: {
2211
+ channel?: string;
2212
+ }): string;
2191
2213
 
2192
2214
  /**
2193
2215
  * The Node.js floor Haven's published packages support (#1161).
@@ -3023,4 +3045,4 @@ declare function encodeBase64Json(value: unknown): string;
3023
3045
  */
3024
3046
  declare function decodeBase64Json<T>(value: string, label?: string): T;
3025
3047
 
3026
- export { AgentPaymentPhase as $, type AgentPaymentWarning as A, type ResumeAuthorizedX402Input as B, type CloseTaskBudgetResult as C, type ResumeX402PaymentInput as D, type X402ResumeState as E, type X402McpTransport as F, type X402MerchantCallContext as G, type HavenClientConfig as H, HavenError as I, AGENT_PAYMENT_FAILURE_CODE_VALUES as J, AGENT_PAYMENT_NEXT_ACTION_VALUES as K, AGENT_PAYMENT_PHASE_VALUES as L, AGENT_PAYMENT_RAIL_VALUES as M, type AgentNextStep as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, type AgentPaymentEnumSchema as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AgentPaymentFailureCode as U, AgentPaymentFailureCodeDescriptions as V, AgentPaymentFailureCodeSchema as W, type X402PaymentRequired as X, AgentPaymentNextAction as Y, AgentPaymentNextActionDescriptions as Z, AgentPaymentNextActionSchema as _, type HavenClientUpdate as a, type SweepExpectedAuth as a$, AgentPaymentPhaseDescriptions as a0, AgentPaymentPhaseSchema as a1, AgentPaymentRail as a2, AgentPaymentRailDescriptions as a3, AgentPaymentRailSchema as a4, type AgentPaymentSummary as a5, AgentPaymentWarningCode as a6, type AgentPurchaseSummary as a7, CONNECTOR_PACKAGE_NAME as a8, type CatalogSubmissionAccepted as a9, NEXT_TOOL_SERVER_NAMES as aA, NEXT_TOOL_SERVER_ROLES as aB, type NextStep as aC, type NextStepArguments as aD, type NextStepHandoff as aE, type NextStepInput as aF, type NextStepTarget as aG, type NextStepTargets as aH, type NextToolServerRole as aI, PACKED_USER_OPERATION_FIELDS as aJ, type PaymentFee as aK, type PaymentNextAction as aL, type PaymentPhase as aM, type PaymentStatus as aN, ROOT_AUTHORITY as aO, SDK_CLIENT_IDENTITY as aP, SDK_VERSION as aQ, SIGNER_UPDATE_FALLBACK as aR, SWEEP_BASE_CHAIN_ID as aS, SWEEP_BASE_SEPOLIA_CHAIN_ID as aT, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aU, SWEEP_BASE_USDC_ADDRESS as aV, type SettlementChildExpectation as aW, SignerRefusalCode as aX, type SweepConfirmation as aY, type SweepEip712Domain as aZ, type SweepEntry as a_, DEFAULT_CONFIRMATION_TIMEOUT_MS as aa, DEFAULT_NEXT_TOOL_BY_ACTION as ab, DIRECT_SIGN_CONTEXT_VERSION as ac, ENTRY_POINT_V07 as ad, ERC7710_ASSET_TRANSFER_METHOD as ae, HAVEN_CLIENT_HEADER as af, HAVEN_CONNECTOR_CHANNEL as ag, HAVEN_MINIMUM_NODE_VERSION as ah, HYBRID_DELEGATOR_DOMAIN_NAME as ai, HYBRID_DELEGATOR_DOMAIN_VERSION as aj, type HavenAgentAllowanceSummary as ak, type HavenAgentReadiness as al, type HavenAllowance as am, HavenApiError as an, type HavenCatalogMerchant as ao, type HavenListScope as ap, HavenPaymentStateError as aq, HavenSigningError as ar, HavenTimeoutError as as, HavenTypedDataRefusedError as at, HavenUnsupportedSignerVersionError as au, HavenUserOpBindingError as av, HavenZeroSettlementHashError as aw, MAX_TASK_BUDGET_TTL_SECONDS as ax, type MachinePaymentRail as ay, MerchantTimeoutError as az, type PaymentResult as b, selectStandardPaymentOption as b$, type SweepPreparation as b0, type SweepSubmitResult as b1, type SweepTypedData as b2, TRANSFER_WITH_AUTHORIZATION_TYPES as b3, TYPED_DATA_NOT_ALLOWED as b4, type TaskBudgetCloseExpectation as b5, type TaskChildExpectation as b6, type TaskChildTypedData as b7, type UnsupportedNodeVersionMessageOptions as b8, X402AlreadySettledError as b9, createNextStepBuilder as bA, decodeBase64Json as bB, decodeBase64Utf8 as bC, defaultNextToolFor as bD, deriveDelegateAccountAddress as bE, encodeBase64Json as bF, encodeBase64Utf8 as bG, encodePaymentProof as bH, hashDelegation as bI, havenClientIdentity as bJ, isConnectorChannel as bK, isErc7710Option as bL, isPackedUserOperationTypedData as bM, isSupportedNodeVersion as bN, isSweepableChain as bO, isTaskChildTypedData as bP, normalizePaymentRequired as bQ, packedUserOperationHash as bR, parseNextTool as bS, parsePaymentRequired as bT, parsePaymentRequiredResponse as bU, readClientUpdate as bV, renderNextTool as bW, resolveConnectorChannel as bX, resolveTokenFromAddress as bY, selectErc7710PaymentOption as bZ, selectPaymentOption as b_, type X402ExpectedAuth as ba, type X402ExpectedContext as bb, type X402PaymentHeaderContext as bc, X402PaymentHeaderValidationError as bd, type X402PaymentOption as be, type X402RequestSnapshot as bf, type X402SchemeSelection as bg, X402TaskBudgetMismatchError as bh, X402UnexpectedStatusError as bi, X402_LEGACY_PAYMENT_HEADER_NAME as bj, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bk, X402_PAYMENT_HEADER_NAME as bl, X402_PAYMENT_HEADER_NAMES_SENT as bm, X402_PAYMENT_REQUIRED_HEADER_NAME as bn, X402_PAYMENT_RESPONSE_HEADER_NAME as bo, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as bp, assertBoundDirectPaymentUserOp as bq, assertOwnTaskBudgetCloseUserOp as br, assertOwnTaskChild as bs, assertUserOpTypedDataBinding as bt, buildSweepAuthorizationMessage as bu, buildSweepTypedData as bv, buildX402ExpectedMessage as bw, compareNodeVersions as bx, connectorRerunCommand as by, connectorSpec as bz, type PaymentIntent as c, selectX402SettlementScheme as c0, signerUpdateFallback as c1, sweepUsdcAddress as c2, sweepUsdcDomain as c3, toStandardPaymentRequirements as c4, unsupportedNodeVersionMessage as c5, validateStandardX402PaymentHeader as c6, verifySettlementChild as c7, x402AssetTransferMethod as c8, x402AuthorizationAmount as c9, x402FacilitatorAddresses as ca, x402V2PaymentEnvelope as cb, CAVEAT_ENFORCERS as cc, CAVEAT_TYPEHASH as cd, DELEGATION_MANAGER as ce, DELEGATION_TYPEHASH as cf, DIRECT_PAYMENT_CHAIN_IDS as cg, type DelegationForHashing as ch, EXECUTE_ABI as ci, HYBRID_DELEGATOR_IMPLEMENTATION as cj, MAX_SETTLEMENT_WINDOW_SECONDS as ck, SIMPLE_FACTORY_ADDRESS as cl, type SettlementChildTypedData as cm, assertFundingLegPaysDelegate as cn, assertOwnSettlementChild as co, chainIdForNetwork as cp, isSettlementChildTypedData as cq, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type PaymentResumeState as u, type X402Receipt as v, type X402Quote as w, type X402Erc7710Settlement as x, type X402McpCallContext as y, type SignData as z };
3048
+ export { AgentPaymentPhase as $, type AgentPaymentWarning as A, type ResumeAuthorizedX402Input as B, type CloseTaskBudgetResult as C, type ResumeX402PaymentInput as D, type X402ResumeState as E, type X402McpTransport as F, type X402MerchantCallContext as G, type HavenClientConfig as H, HavenError as I, AGENT_PAYMENT_FAILURE_CODE_VALUES as J, AGENT_PAYMENT_NEXT_ACTION_VALUES as K, AGENT_PAYMENT_PHASE_VALUES as L, AGENT_PAYMENT_RAIL_VALUES as M, type AgentNextStep as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, type AgentPaymentEnumSchema as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AgentPaymentFailureCode as U, AgentPaymentFailureCodeDescriptions as V, AgentPaymentFailureCodeSchema as W, type X402PaymentRequired as X, AgentPaymentNextAction as Y, AgentPaymentNextActionDescriptions as Z, AgentPaymentNextActionSchema as _, type HavenClientUpdate as a, type SweepExpectedAuth as a$, AgentPaymentPhaseDescriptions as a0, AgentPaymentPhaseSchema as a1, AgentPaymentRail as a2, AgentPaymentRailDescriptions as a3, AgentPaymentRailSchema as a4, type AgentPaymentSummary as a5, AgentPaymentWarningCode as a6, type AgentPurchaseSummary as a7, CONNECTOR_PACKAGE_NAME as a8, type CatalogSubmissionAccepted as a9, NEXT_TOOL_SERVER_NAMES as aA, NEXT_TOOL_SERVER_ROLES as aB, type NextStep as aC, type NextStepArguments as aD, type NextStepHandoff as aE, type NextStepInput as aF, type NextStepTarget as aG, type NextStepTargets as aH, type NextToolServerRole as aI, PACKED_USER_OPERATION_FIELDS as aJ, type PaymentFee as aK, type PaymentNextAction as aL, type PaymentPhase as aM, type PaymentStatus as aN, ROOT_AUTHORITY as aO, SDK_CLIENT_IDENTITY as aP, SDK_VERSION as aQ, SIGNER_UPDATE_FALLBACK as aR, SWEEP_BASE_CHAIN_ID as aS, SWEEP_BASE_SEPOLIA_CHAIN_ID as aT, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aU, SWEEP_BASE_USDC_ADDRESS as aV, type SettlementChildExpectation as aW, SignerRefusalCode as aX, type SweepConfirmation as aY, type SweepEip712Domain as aZ, type SweepEntry as a_, DEFAULT_CONFIRMATION_TIMEOUT_MS as aa, DEFAULT_NEXT_TOOL_BY_ACTION as ab, DIRECT_SIGN_CONTEXT_VERSION as ac, ENTRY_POINT_V07 as ad, ERC7710_ASSET_TRANSFER_METHOD as ae, HAVEN_CLIENT_HEADER as af, HAVEN_CONNECTOR_CHANNEL as ag, HAVEN_MINIMUM_NODE_VERSION as ah, HYBRID_DELEGATOR_DOMAIN_NAME as ai, HYBRID_DELEGATOR_DOMAIN_VERSION as aj, type HavenAgentAllowanceSummary as ak, type HavenAgentReadiness as al, type HavenAllowance as am, HavenApiError as an, type HavenCatalogMerchant as ao, type HavenListScope as ap, HavenPaymentStateError as aq, HavenSigningError as ar, HavenTimeoutError as as, HavenTypedDataRefusedError as at, HavenUnsupportedSignerVersionError as au, HavenUserOpBindingError as av, HavenZeroSettlementHashError as aw, MAX_TASK_BUDGET_TTL_SECONDS as ax, type MachinePaymentRail as ay, MerchantTimeoutError as az, type PaymentResult as b, selectPaymentOption as b$, type SweepPreparation as b0, type SweepSubmitResult as b1, type SweepTypedData as b2, TRANSFER_WITH_AUTHORIZATION_TYPES as b3, TYPED_DATA_NOT_ALLOWED as b4, type TaskBudgetCloseExpectation as b5, type TaskChildExpectation as b6, type TaskChildTypedData as b7, type UnsupportedNodeVersionMessageOptions as b8, X402AlreadySettledError as b9, connectorUpgradeCommand as bA, createNextStepBuilder as bB, decodeBase64Json as bC, decodeBase64Utf8 as bD, defaultNextToolFor as bE, deriveDelegateAccountAddress as bF, encodeBase64Json as bG, encodeBase64Utf8 as bH, encodePaymentProof as bI, hashDelegation as bJ, havenClientIdentity as bK, isConnectorChannel as bL, isErc7710Option as bM, isPackedUserOperationTypedData as bN, isSupportedNodeVersion as bO, isSweepableChain as bP, isTaskChildTypedData as bQ, normalizePaymentRequired as bR, packedUserOperationHash as bS, parseNextTool as bT, parsePaymentRequired as bU, parsePaymentRequiredResponse as bV, readClientUpdate as bW, renderNextTool as bX, resolveConnectorChannel as bY, resolveTokenFromAddress as bZ, selectErc7710PaymentOption as b_, type X402ExpectedAuth as ba, type X402ExpectedContext as bb, type X402PaymentHeaderContext as bc, X402PaymentHeaderValidationError as bd, type X402PaymentOption as be, type X402RequestSnapshot as bf, type X402SchemeSelection as bg, X402TaskBudgetMismatchError as bh, X402UnexpectedStatusError as bi, X402_LEGACY_PAYMENT_HEADER_NAME as bj, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bk, X402_PAYMENT_HEADER_NAME as bl, X402_PAYMENT_HEADER_NAMES_SENT as bm, X402_PAYMENT_REQUIRED_HEADER_NAME as bn, X402_PAYMENT_RESPONSE_HEADER_NAME as bo, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as bp, assertBoundDirectPaymentUserOp as bq, assertOwnTaskBudgetCloseUserOp as br, assertOwnTaskChild as bs, assertUserOpTypedDataBinding as bt, buildSweepAuthorizationMessage as bu, buildSweepTypedData as bv, buildX402ExpectedMessage as bw, compareNodeVersions as bx, connectorRerunCommand as by, connectorSpec as bz, type PaymentIntent as c, selectStandardPaymentOption as c0, selectX402SettlementScheme as c1, signerUpdateFallback as c2, sweepUsdcAddress as c3, sweepUsdcDomain as c4, toStandardPaymentRequirements as c5, unsupportedNodeVersionMessage as c6, validateStandardX402PaymentHeader as c7, verifySettlementChild as c8, x402AssetTransferMethod as c9, x402AuthorizationAmount as ca, x402FacilitatorAddresses as cb, x402V2PaymentEnvelope as cc, CAVEAT_ENFORCERS as cd, CAVEAT_TYPEHASH as ce, DELEGATION_MANAGER as cf, DELEGATION_TYPEHASH as cg, DIRECT_PAYMENT_CHAIN_IDS as ch, type DelegationForHashing as ci, EXECUTE_ABI as cj, HYBRID_DELEGATOR_IMPLEMENTATION as ck, MAX_SETTLEMENT_WINDOW_SECONDS as cl, SIMPLE_FACTORY_ADDRESS as cm, type SettlementChildTypedData as cn, assertFundingLegPaysDelegate as co, assertOwnSettlementChild as cp, chainIdForNetwork as cq, isSettlementChildTypedData as cr, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type PaymentResumeState as u, type X402Receipt as v, type X402Quote as w, type X402Erc7710Settlement as x, type X402McpCallContext as y, type SignData as z };
@@ -1969,7 +1969,7 @@ declare function buildSweepAuthorizationMessage(auth: SweepAuthorization): strin
1969
1969
  * This SDK's own version. Owned by `scripts/release-bump.mjs`, which rewrites
1970
1970
  * it with the package version on every release — never hand-edit it.
1971
1971
  */
1972
- declare const SDK_VERSION = "0.0.0-dev.202609272032.679e797";
1972
+ declare const SDK_VERSION = "0.0.0-dev.202609281335.705f436";
1973
1973
  /** The request header every published Haven client sends. */
1974
1974
  declare const HAVEN_CLIENT_HEADER = "X-Haven-Client";
1975
1975
  /** `<package>/<version>` — the value of {@link HAVEN_CLIENT_HEADER}. */
@@ -2188,6 +2188,28 @@ declare function connectorRerunCommand(args?: string, options?: {
2188
2188
  channel?: string;
2189
2189
  npxFlags?: string;
2190
2190
  }): string;
2191
+ /**
2192
+ * The command every UPGRADE hint names (#3412): `npx -y @haven_ai/connect@<channel> --doctor`.
2193
+ *
2194
+ * A bare connector re-run is a SETUP command — on a machine that is already
2195
+ * set up it stops at "Missing --setup <hv_setup_...> setup token", so an
2196
+ * outdated signer, local MCP or connector told to "re-run the connector" was
2197
+ * handed a dead end. The flagless doctor works as pasted on an existing
2198
+ * install (#3210: it resolves the runtime from the setup record), diagnoses an
2199
+ * outdated signer, and prints the exact `--doctor --repair` line for the agent
2200
+ * it describes — with `--credentials-dir` whenever more than one agent lives on
2201
+ * the machine, so the repair cannot land on a different agent.
2202
+ *
2203
+ * `-y` because an upgrade hint is often run by an agent in a non-interactive
2204
+ * shell. `@haven_ai/core`'s `upgradeCommandFor` (the backend's
2205
+ * `client_update.upgrade_command`) cannot import this package, so it carries a
2206
+ * copy; `packages/backend/src/__tests__/connector-upgrade-command-parity.test.ts`
2207
+ * fails if the two ever disagree. Setup-time hints (identity restore,
2208
+ * mid-setup retry) legitimately stay on {@link connectorRerunCommand}.
2209
+ */
2210
+ declare function connectorUpgradeCommand(options?: {
2211
+ channel?: string;
2212
+ }): string;
2191
2213
 
2192
2214
  /**
2193
2215
  * The Node.js floor Haven's published packages support (#1161).
@@ -3023,4 +3045,4 @@ declare function encodeBase64Json(value: unknown): string;
3023
3045
  */
3024
3046
  declare function decodeBase64Json<T>(value: string, label?: string): T;
3025
3047
 
3026
- export { AgentPaymentPhase as $, type AgentPaymentWarning as A, type ResumeAuthorizedX402Input as B, type CloseTaskBudgetResult as C, type ResumeX402PaymentInput as D, type X402ResumeState as E, type X402McpTransport as F, type X402MerchantCallContext as G, type HavenClientConfig as H, HavenError as I, AGENT_PAYMENT_FAILURE_CODE_VALUES as J, AGENT_PAYMENT_NEXT_ACTION_VALUES as K, AGENT_PAYMENT_PHASE_VALUES as L, AGENT_PAYMENT_RAIL_VALUES as M, type AgentNextStep as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, type AgentPaymentEnumSchema as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AgentPaymentFailureCode as U, AgentPaymentFailureCodeDescriptions as V, AgentPaymentFailureCodeSchema as W, type X402PaymentRequired as X, AgentPaymentNextAction as Y, AgentPaymentNextActionDescriptions as Z, AgentPaymentNextActionSchema as _, type HavenClientUpdate as a, type SweepExpectedAuth as a$, AgentPaymentPhaseDescriptions as a0, AgentPaymentPhaseSchema as a1, AgentPaymentRail as a2, AgentPaymentRailDescriptions as a3, AgentPaymentRailSchema as a4, type AgentPaymentSummary as a5, AgentPaymentWarningCode as a6, type AgentPurchaseSummary as a7, CONNECTOR_PACKAGE_NAME as a8, type CatalogSubmissionAccepted as a9, NEXT_TOOL_SERVER_NAMES as aA, NEXT_TOOL_SERVER_ROLES as aB, type NextStep as aC, type NextStepArguments as aD, type NextStepHandoff as aE, type NextStepInput as aF, type NextStepTarget as aG, type NextStepTargets as aH, type NextToolServerRole as aI, PACKED_USER_OPERATION_FIELDS as aJ, type PaymentFee as aK, type PaymentNextAction as aL, type PaymentPhase as aM, type PaymentStatus as aN, ROOT_AUTHORITY as aO, SDK_CLIENT_IDENTITY as aP, SDK_VERSION as aQ, SIGNER_UPDATE_FALLBACK as aR, SWEEP_BASE_CHAIN_ID as aS, SWEEP_BASE_SEPOLIA_CHAIN_ID as aT, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aU, SWEEP_BASE_USDC_ADDRESS as aV, type SettlementChildExpectation as aW, SignerRefusalCode as aX, type SweepConfirmation as aY, type SweepEip712Domain as aZ, type SweepEntry as a_, DEFAULT_CONFIRMATION_TIMEOUT_MS as aa, DEFAULT_NEXT_TOOL_BY_ACTION as ab, DIRECT_SIGN_CONTEXT_VERSION as ac, ENTRY_POINT_V07 as ad, ERC7710_ASSET_TRANSFER_METHOD as ae, HAVEN_CLIENT_HEADER as af, HAVEN_CONNECTOR_CHANNEL as ag, HAVEN_MINIMUM_NODE_VERSION as ah, HYBRID_DELEGATOR_DOMAIN_NAME as ai, HYBRID_DELEGATOR_DOMAIN_VERSION as aj, type HavenAgentAllowanceSummary as ak, type HavenAgentReadiness as al, type HavenAllowance as am, HavenApiError as an, type HavenCatalogMerchant as ao, type HavenListScope as ap, HavenPaymentStateError as aq, HavenSigningError as ar, HavenTimeoutError as as, HavenTypedDataRefusedError as at, HavenUnsupportedSignerVersionError as au, HavenUserOpBindingError as av, HavenZeroSettlementHashError as aw, MAX_TASK_BUDGET_TTL_SECONDS as ax, type MachinePaymentRail as ay, MerchantTimeoutError as az, type PaymentResult as b, selectStandardPaymentOption as b$, type SweepPreparation as b0, type SweepSubmitResult as b1, type SweepTypedData as b2, TRANSFER_WITH_AUTHORIZATION_TYPES as b3, TYPED_DATA_NOT_ALLOWED as b4, type TaskBudgetCloseExpectation as b5, type TaskChildExpectation as b6, type TaskChildTypedData as b7, type UnsupportedNodeVersionMessageOptions as b8, X402AlreadySettledError as b9, createNextStepBuilder as bA, decodeBase64Json as bB, decodeBase64Utf8 as bC, defaultNextToolFor as bD, deriveDelegateAccountAddress as bE, encodeBase64Json as bF, encodeBase64Utf8 as bG, encodePaymentProof as bH, hashDelegation as bI, havenClientIdentity as bJ, isConnectorChannel as bK, isErc7710Option as bL, isPackedUserOperationTypedData as bM, isSupportedNodeVersion as bN, isSweepableChain as bO, isTaskChildTypedData as bP, normalizePaymentRequired as bQ, packedUserOperationHash as bR, parseNextTool as bS, parsePaymentRequired as bT, parsePaymentRequiredResponse as bU, readClientUpdate as bV, renderNextTool as bW, resolveConnectorChannel as bX, resolveTokenFromAddress as bY, selectErc7710PaymentOption as bZ, selectPaymentOption as b_, type X402ExpectedAuth as ba, type X402ExpectedContext as bb, type X402PaymentHeaderContext as bc, X402PaymentHeaderValidationError as bd, type X402PaymentOption as be, type X402RequestSnapshot as bf, type X402SchemeSelection as bg, X402TaskBudgetMismatchError as bh, X402UnexpectedStatusError as bi, X402_LEGACY_PAYMENT_HEADER_NAME as bj, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bk, X402_PAYMENT_HEADER_NAME as bl, X402_PAYMENT_HEADER_NAMES_SENT as bm, X402_PAYMENT_REQUIRED_HEADER_NAME as bn, X402_PAYMENT_RESPONSE_HEADER_NAME as bo, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as bp, assertBoundDirectPaymentUserOp as bq, assertOwnTaskBudgetCloseUserOp as br, assertOwnTaskChild as bs, assertUserOpTypedDataBinding as bt, buildSweepAuthorizationMessage as bu, buildSweepTypedData as bv, buildX402ExpectedMessage as bw, compareNodeVersions as bx, connectorRerunCommand as by, connectorSpec as bz, type PaymentIntent as c, selectX402SettlementScheme as c0, signerUpdateFallback as c1, sweepUsdcAddress as c2, sweepUsdcDomain as c3, toStandardPaymentRequirements as c4, unsupportedNodeVersionMessage as c5, validateStandardX402PaymentHeader as c6, verifySettlementChild as c7, x402AssetTransferMethod as c8, x402AuthorizationAmount as c9, x402FacilitatorAddresses as ca, x402V2PaymentEnvelope as cb, CAVEAT_ENFORCERS as cc, CAVEAT_TYPEHASH as cd, DELEGATION_MANAGER as ce, DELEGATION_TYPEHASH as cf, DIRECT_PAYMENT_CHAIN_IDS as cg, type DelegationForHashing as ch, EXECUTE_ABI as ci, HYBRID_DELEGATOR_IMPLEMENTATION as cj, MAX_SETTLEMENT_WINDOW_SECONDS as ck, SIMPLE_FACTORY_ADDRESS as cl, type SettlementChildTypedData as cm, assertFundingLegPaysDelegate as cn, assertOwnSettlementChild as co, chainIdForNetwork as cp, isSettlementChildTypedData as cq, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type PaymentResumeState as u, type X402Receipt as v, type X402Quote as w, type X402Erc7710Settlement as x, type X402McpCallContext as y, type SignData as z };
3048
+ export { AgentPaymentPhase as $, type AgentPaymentWarning as A, type ResumeAuthorizedX402Input as B, type CloseTaskBudgetResult as C, type ResumeX402PaymentInput as D, type X402ResumeState as E, type X402McpTransport as F, type X402MerchantCallContext as G, type HavenClientConfig as H, HavenError as I, AGENT_PAYMENT_FAILURE_CODE_VALUES as J, AGENT_PAYMENT_NEXT_ACTION_VALUES as K, AGENT_PAYMENT_PHASE_VALUES as L, AGENT_PAYMENT_RAIL_VALUES as M, type AgentNextStep as N, type OpenTaskBudgetResult as O, type PaymentRequest as P, type AgentPaymentEnumSchema as Q, type RawPaymentParties as R, type SweepResult as S, type TaskBudgetSignContext as T, AgentPaymentFailureCode as U, AgentPaymentFailureCodeDescriptions as V, AgentPaymentFailureCodeSchema as W, type X402PaymentRequired as X, AgentPaymentNextAction as Y, AgentPaymentNextActionDescriptions as Z, AgentPaymentNextActionSchema as _, type HavenClientUpdate as a, type SweepExpectedAuth as a$, AgentPaymentPhaseDescriptions as a0, AgentPaymentPhaseSchema as a1, AgentPaymentRail as a2, AgentPaymentRailDescriptions as a3, AgentPaymentRailSchema as a4, type AgentPaymentSummary as a5, AgentPaymentWarningCode as a6, type AgentPurchaseSummary as a7, CONNECTOR_PACKAGE_NAME as a8, type CatalogSubmissionAccepted as a9, NEXT_TOOL_SERVER_NAMES as aA, NEXT_TOOL_SERVER_ROLES as aB, type NextStep as aC, type NextStepArguments as aD, type NextStepHandoff as aE, type NextStepInput as aF, type NextStepTarget as aG, type NextStepTargets as aH, type NextToolServerRole as aI, PACKED_USER_OPERATION_FIELDS as aJ, type PaymentFee as aK, type PaymentNextAction as aL, type PaymentPhase as aM, type PaymentStatus as aN, ROOT_AUTHORITY as aO, SDK_CLIENT_IDENTITY as aP, SDK_VERSION as aQ, SIGNER_UPDATE_FALLBACK as aR, SWEEP_BASE_CHAIN_ID as aS, SWEEP_BASE_SEPOLIA_CHAIN_ID as aT, SWEEP_BASE_SEPOLIA_USDC_ADDRESS as aU, SWEEP_BASE_USDC_ADDRESS as aV, type SettlementChildExpectation as aW, SignerRefusalCode as aX, type SweepConfirmation as aY, type SweepEip712Domain as aZ, type SweepEntry as a_, DEFAULT_CONFIRMATION_TIMEOUT_MS as aa, DEFAULT_NEXT_TOOL_BY_ACTION as ab, DIRECT_SIGN_CONTEXT_VERSION as ac, ENTRY_POINT_V07 as ad, ERC7710_ASSET_TRANSFER_METHOD as ae, HAVEN_CLIENT_HEADER as af, HAVEN_CONNECTOR_CHANNEL as ag, HAVEN_MINIMUM_NODE_VERSION as ah, HYBRID_DELEGATOR_DOMAIN_NAME as ai, HYBRID_DELEGATOR_DOMAIN_VERSION as aj, type HavenAgentAllowanceSummary as ak, type HavenAgentReadiness as al, type HavenAllowance as am, HavenApiError as an, type HavenCatalogMerchant as ao, type HavenListScope as ap, HavenPaymentStateError as aq, HavenSigningError as ar, HavenTimeoutError as as, HavenTypedDataRefusedError as at, HavenUnsupportedSignerVersionError as au, HavenUserOpBindingError as av, HavenZeroSettlementHashError as aw, MAX_TASK_BUDGET_TTL_SECONDS as ax, type MachinePaymentRail as ay, MerchantTimeoutError as az, type PaymentResult as b, selectPaymentOption as b$, type SweepPreparation as b0, type SweepSubmitResult as b1, type SweepTypedData as b2, TRANSFER_WITH_AUTHORIZATION_TYPES as b3, TYPED_DATA_NOT_ALLOWED as b4, type TaskBudgetCloseExpectation as b5, type TaskChildExpectation as b6, type TaskChildTypedData as b7, type UnsupportedNodeVersionMessageOptions as b8, X402AlreadySettledError as b9, connectorUpgradeCommand as bA, createNextStepBuilder as bB, decodeBase64Json as bC, decodeBase64Utf8 as bD, defaultNextToolFor as bE, deriveDelegateAccountAddress as bF, encodeBase64Json as bG, encodeBase64Utf8 as bH, encodePaymentProof as bI, hashDelegation as bJ, havenClientIdentity as bK, isConnectorChannel as bL, isErc7710Option as bM, isPackedUserOperationTypedData as bN, isSupportedNodeVersion as bO, isSweepableChain as bP, isTaskChildTypedData as bQ, normalizePaymentRequired as bR, packedUserOperationHash as bS, parseNextTool as bT, parsePaymentRequired as bU, parsePaymentRequiredResponse as bV, readClientUpdate as bW, renderNextTool as bX, resolveConnectorChannel as bY, resolveTokenFromAddress as bZ, selectErc7710PaymentOption as b_, type X402ExpectedAuth as ba, type X402ExpectedContext as bb, type X402PaymentHeaderContext as bc, X402PaymentHeaderValidationError as bd, type X402PaymentOption as be, type X402RequestSnapshot as bf, type X402SchemeSelection as bg, X402TaskBudgetMismatchError as bh, X402UnexpectedStatusError as bi, X402_LEGACY_PAYMENT_HEADER_NAME as bj, X402_MAX_AUTHORIZATION_WINDOW_SECONDS as bk, X402_PAYMENT_HEADER_NAME as bl, X402_PAYMENT_HEADER_NAMES_SENT as bm, X402_PAYMENT_REQUIRED_HEADER_NAME as bn, X402_PAYMENT_RESPONSE_HEADER_NAME as bo, X402_SETTLEMENT_FORWARD_MARGIN_SECONDS as bp, assertBoundDirectPaymentUserOp as bq, assertOwnTaskBudgetCloseUserOp as br, assertOwnTaskChild as bs, assertUserOpTypedDataBinding as bt, buildSweepAuthorizationMessage as bu, buildSweepTypedData as bv, buildX402ExpectedMessage as bw, compareNodeVersions as bx, connectorRerunCommand as by, connectorSpec as bz, type PaymentIntent as c, selectStandardPaymentOption as c0, selectX402SettlementScheme as c1, signerUpdateFallback as c2, sweepUsdcAddress as c3, sweepUsdcDomain as c4, toStandardPaymentRequirements as c5, unsupportedNodeVersionMessage as c6, validateStandardX402PaymentHeader as c7, verifySettlementChild as c8, x402AssetTransferMethod as c9, x402AuthorizationAmount as ca, x402FacilitatorAddresses as cb, x402V2PaymentEnvelope as cc, CAVEAT_ENFORCERS as cd, CAVEAT_TYPEHASH as ce, DELEGATION_MANAGER as cf, DELEGATION_TYPEHASH as cg, DIRECT_PAYMENT_CHAIN_IDS as ch, type DelegationForHashing as ci, EXECUTE_ABI as cj, HYBRID_DELEGATOR_IMPLEMENTATION as ck, MAX_SETTLEMENT_WINDOW_SECONDS as cl, SIMPLE_FACTORY_ADDRESS as cm, type SettlementChildTypedData as cn, assertFundingLegPaysDelegate as co, assertOwnSettlementChild as cp, chainIdForNetwork as cq, isSettlementChildTypedData as cr, type X402AuthorizationOptions as d, type X402Intent as e, type PaymentStatusResult as f, type HavenAgent as g, type HavenAgentSummary as h, type SweepPrepareResponse as i, type SweepAuthorization as j, type SweepSubmitResponse as k, type HavenAllowanceSummary as l, type HavenBalanceCoverage as m, type PostPurchaseAllowanceSummary as n, type HavenCatalogEntry as o, type HavenCatalogSubmission as p, type HavenPaymentReceipt as q, type HavenPaymentReceiptsPage as r, type HavenTaskBudget as s, type SubmitTaskBudgetResult as t, type PaymentResumeState as u, type X402Receipt as v, type X402Quote as w, type X402Erc7710Settlement as x, type X402McpCallContext as y, type SignData as z };
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkVJA3OQWY_cjs = require('./chunk-VJA3OQWY.cjs');
3
+ var chunkDIZIO4QD_cjs = require('./chunk-DIZIO4QD.cjs');
4
4
  var viem = require('viem');
5
5
  var crypto = require('crypto');
6
6
 
7
7
  var TYPED_DATA_NOT_ALLOWED = "TYPED_DATA_NOT_ALLOWED";
8
- var HavenTypedDataRefusedError = class extends chunkVJA3OQWY_cjs.HavenSigningError {
8
+ var HavenTypedDataRefusedError = class extends chunkDIZIO4QD_cjs.HavenSigningError {
9
9
  constructor(message) {
10
10
  super(message);
11
11
  this.code = TYPED_DATA_NOT_ALLOWED;
@@ -46,7 +46,7 @@ function assertBoundDirectPaymentUserOp(typedData, delegateAddress) {
46
46
  `This signer only signs direct payments on chains the delegation rail has pinned contracts for (${[...DIRECT_PAYMENT_CHAIN_IDS].join(", ")}); this typed data names chain ${String(domain.chainId)}. Refusing.`
47
47
  );
48
48
  }
49
- const ownAccount = chunkVJA3OQWY_cjs.deriveDelegateAccountAddress(delegateAddress);
49
+ const ownAccount = chunkDIZIO4QD_cjs.deriveDelegateAccountAddress(delegateAddress);
50
50
  const sender = typeof message.sender === "string" ? message.sender : "";
51
51
  if (sender.toLowerCase() !== ownAccount.toLowerCase()) {
52
52
  throw new HavenTypedDataRefusedError(
@@ -76,9 +76,9 @@ function assertBoundDirectPaymentUserOp(typedData, delegateAddress) {
76
76
  "This UserOperation's execute() call does not re-encode to the exact callData bytes (trailing or non-canonical bytes). Refusing."
77
77
  );
78
78
  }
79
- if (decoded.target.toLowerCase() !== chunkVJA3OQWY_cjs.DELEGATION_MANAGER.toLowerCase()) {
79
+ if (decoded.target.toLowerCase() !== chunkDIZIO4QD_cjs.DELEGATION_MANAGER.toLowerCase()) {
80
80
  throw new HavenTypedDataRefusedError(
81
- `This UserOperation's execute() calls ${decoded.target}, not the DelegationManager (${chunkVJA3OQWY_cjs.DELEGATION_MANAGER}). A direct payment only ever redeems the agent's own budget delegation \u2014 refusing what looks like a self-call (e.g. transferOwnership, updateSigners, upgradeToAndCall) or a call to an unrelated contract.`
81
+ `This UserOperation's execute() calls ${decoded.target}, not the DelegationManager (${chunkDIZIO4QD_cjs.DELEGATION_MANAGER}). A direct payment only ever redeems the agent's own budget delegation \u2014 refusing what looks like a self-call (e.g. transferOwnership, updateSigners, upgradeToAndCall) or a call to an unrelated contract.`
82
82
  );
83
83
  }
84
84
  if (decoded.value !== 0n) {
@@ -87,20 +87,20 @@ function assertBoundDirectPaymentUserOp(typedData, delegateAddress) {
87
87
  );
88
88
  }
89
89
  try {
90
- chunkVJA3OQWY_cjs.assertRedeemsOwnBudgetDelegation(decoded.callData, ownAccount);
90
+ chunkDIZIO4QD_cjs.assertRedeemsOwnBudgetDelegation(decoded.callData, ownAccount);
91
91
  } catch (err) {
92
92
  throw new HavenTypedDataRefusedError(err instanceof Error ? err.message : String(err));
93
93
  }
94
94
  }
95
95
  function assertOwnSettlementChild(typedData, expectation, delegateAddress) {
96
96
  try {
97
- chunkVJA3OQWY_cjs.verifySettlementChild(typedData, {
97
+ chunkDIZIO4QD_cjs.verifySettlementChild(typedData, {
98
98
  ...expectation,
99
- delegatorAccount: chunkVJA3OQWY_cjs.deriveDelegateAccountAddress(delegateAddress)
99
+ delegatorAccount: chunkDIZIO4QD_cjs.deriveDelegateAccountAddress(delegateAddress)
100
100
  });
101
101
  } catch (err) {
102
102
  if (err instanceof HavenTypedDataRefusedError) throw err;
103
- if (err instanceof chunkVJA3OQWY_cjs.HavenSigningError) throw new HavenTypedDataRefusedError(err.message);
103
+ if (err instanceof chunkDIZIO4QD_cjs.HavenSigningError) throw new HavenTypedDataRefusedError(err.message);
104
104
  throw new HavenTypedDataRefusedError(
105
105
  `Refusing to sign the x402 settlement child: it is malformed (${err instanceof Error ? err.message : String(err)}).`
106
106
  );
@@ -129,7 +129,7 @@ function assertFundingLegPaysDelegate(typedData, expected) {
129
129
  try {
130
130
  const { args: executeArgs } = viem.decodeFunctionData({ abi: EXECUTE_ABI, data: message.callData });
131
131
  const inner = executeArgs[0].callData;
132
- const { args } = viem.decodeFunctionData({ abi: chunkVJA3OQWY_cjs.REDEEM_DELEGATIONS_ABI, data: inner });
132
+ const { args } = viem.decodeFunctionData({ abi: chunkDIZIO4QD_cjs.REDEEM_DELEGATIONS_ABI, data: inner });
133
133
  const executions = args[2];
134
134
  executionCallData = executions[0];
135
135
  } catch {
@@ -248,7 +248,7 @@ var TRANSFER_WITH_AUTHORIZATION_TYPES = {
248
248
  function sweepUsdcAddress(chainId) {
249
249
  const address = USDC_ADDRESS_BY_CHAIN[chainId];
250
250
  if (!address) {
251
- throw new chunkVJA3OQWY_cjs.HavenSigningError(
251
+ throw new chunkDIZIO4QD_cjs.HavenSigningError(
252
252
  `Sweep is not supported on chain ${chainId}. Supported: ${SWEEPABLE_CHAIN_IDS.join(", ")}.`
253
253
  );
254
254
  }
@@ -257,7 +257,7 @@ function sweepUsdcAddress(chainId) {
257
257
  function sweepUsdcDomain(chainId) {
258
258
  const domain = USDC_EIP712_DOMAIN_BY_CHAIN[chainId];
259
259
  if (!domain) {
260
- throw new chunkVJA3OQWY_cjs.HavenSigningError(
260
+ throw new chunkDIZIO4QD_cjs.HavenSigningError(
261
261
  `Sweep is not supported on chain ${chainId}. Supported: ${SWEEPABLE_CHAIN_IDS.join(", ")}.`
262
262
  );
263
263
  }
@@ -270,12 +270,12 @@ function buildSweepTypedData(auth) {
270
270
  const domain = sweepUsdcDomain(auth.chainId);
271
271
  const expectedToken = sweepUsdcAddress(auth.chainId);
272
272
  if (!sameAddress(auth.token, expectedToken)) {
273
- throw new chunkVJA3OQWY_cjs.HavenSigningError(
273
+ throw new chunkDIZIO4QD_cjs.HavenSigningError(
274
274
  `Sweep token ${auth.token} is not the canonical USDC contract for chain ${auth.chainId}.`
275
275
  );
276
276
  }
277
277
  if (!/^0x[0-9a-fA-F]{64}$/.test(auth.nonce)) {
278
- throw new chunkVJA3OQWY_cjs.HavenSigningError("Sweep nonce must be a 0x-prefixed 32-byte hex string.");
278
+ throw new chunkDIZIO4QD_cjs.HavenSigningError("Sweep nonce must be a 0x-prefixed 32-byte hex string.");
279
279
  }
280
280
  return {
281
281
  domain,
@@ -779,7 +779,7 @@ function stableStringify2(value) {
779
779
  }
780
780
 
781
781
  // src/client-identity.ts
782
- var SDK_VERSION = "0.0.0-dev.202609272032.679e797";
782
+ var SDK_VERSION = "0.0.0-dev.202609281335.705f436";
783
783
  var HAVEN_CLIENT_HEADER = "X-Haven-Client";
784
784
  function havenClientIdentity(pkg, version) {
785
785
  return `${pkg}/${version}`;
@@ -946,10 +946,10 @@ function assertOwnTaskChild(typedData, expected, delegateAddress, now = Date.now
946
946
  if (td?.primaryType !== "Delegation") {
947
947
  refuseTaskChild("it is not a Delegation payload", `primaryType was '${String(td?.primaryType)}'.`);
948
948
  }
949
- if (!same(td.domain?.verifyingContract, chunkVJA3OQWY_cjs.DELEGATION_MANAGER)) {
949
+ if (!same(td.domain?.verifyingContract, chunkDIZIO4QD_cjs.DELEGATION_MANAGER)) {
950
950
  refuseTaskChild(
951
951
  "the EIP-712 domain names an unknown DelegationManager",
952
- `Expected ${chunkVJA3OQWY_cjs.DELEGATION_MANAGER}, got ${td.domain?.verifyingContract}.`
952
+ `Expected ${chunkDIZIO4QD_cjs.DELEGATION_MANAGER}, got ${td.domain?.verifyingContract}.`
953
953
  );
954
954
  }
955
955
  if (td.domain?.name !== DELEGATION_DOMAIN_NAME || td.domain?.version !== DELEGATION_DOMAIN_VERSION) {
@@ -977,7 +977,7 @@ function assertOwnTaskChild(typedData, expected, delegateAddress, now = Date.now
977
977
  `Expected chain ${expected.chainId}; the child says ${td.domain?.chainId}.`
978
978
  );
979
979
  }
980
- const ownAccount = chunkVJA3OQWY_cjs.deriveDelegateAccountAddress(delegateAddress);
980
+ const ownAccount = chunkDIZIO4QD_cjs.deriveDelegateAccountAddress(delegateAddress);
981
981
  const delegator = td.message?.delegator;
982
982
  if (typeof delegator !== "string" || !same(delegator, ownAccount)) {
983
983
  refuseTaskChild(
@@ -996,7 +996,7 @@ function assertOwnTaskChild(typedData, expected, delegateAddress, now = Date.now
996
996
  if (typeof authority !== "string" || !/^0x[0-9a-fA-F]{64}$/.test(authority)) {
997
997
  refuseTaskChild("its authority is not a 32-byte delegation hash", `Got ${String(authority)}.`);
998
998
  }
999
- if (authority.toLowerCase() === chunkVJA3OQWY_cjs.ROOT_AUTHORITY) {
999
+ if (authority.toLowerCase() === chunkDIZIO4QD_cjs.ROOT_AUTHORITY) {
1000
1000
  refuseTaskChild(
1001
1001
  "it is a ROOT delegation, not a re-delegation of the agent budget",
1002
1002
  "A task budget always chains under the agent budget delegation."
@@ -1009,7 +1009,7 @@ function assertOwnTaskChild(typedData, expected, delegateAddress, now = Date.now
1009
1009
  );
1010
1010
  }
1011
1011
  const caveats = td.message?.caveats ?? [];
1012
- const transfer = findCaveat(caveats, chunkVJA3OQWY_cjs.CAVEAT_ENFORCERS.erc20TransferAmount);
1012
+ const transfer = findCaveat(caveats, chunkDIZIO4QD_cjs.CAVEAT_ENFORCERS.erc20TransferAmount);
1013
1013
  if (!transfer) {
1014
1014
  refuseTaskChild(
1015
1015
  "it has no ERC-20 transfer-amount caveat",
@@ -1027,7 +1027,7 @@ function assertOwnTaskChild(typedData, expected, delegateAddress, now = Date.now
1027
1027
  `Expected ${expected.maxAmountAtomic}; the child allows ${amount.toString()}.`
1028
1028
  );
1029
1029
  }
1030
- const timestamp = findCaveat(caveats, chunkVJA3OQWY_cjs.CAVEAT_ENFORCERS.timestamp);
1030
+ const timestamp = findCaveat(caveats, chunkDIZIO4QD_cjs.CAVEAT_ENFORCERS.timestamp);
1031
1031
  if (!timestamp) {
1032
1032
  refuseTaskChild("it never expires", "A task-budget child without a timestamp caveat is open-ended.");
1033
1033
  }
@@ -1048,7 +1048,7 @@ function assertOwnTaskChild(typedData, expected, delegateAddress, now = Date.now
1048
1048
  `Expected ${expected.expiresAt}; the child says ${beforeThreshold}.`
1049
1049
  );
1050
1050
  }
1051
- const calldata = findCaveat(caveats, chunkVJA3OQWY_cjs.CAVEAT_ENFORCERS.allowedCalldata);
1051
+ const calldata = findCaveat(caveats, chunkDIZIO4QD_cjs.CAVEAT_ENFORCERS.allowedCalldata);
1052
1052
  if (expected.recipientAddress) {
1053
1053
  if (!calldata) {
1054
1054
  refuseTaskChild(
@@ -1085,7 +1085,7 @@ var DISABLE_DELEGATION_ABI = [
1085
1085
  {
1086
1086
  type: "function",
1087
1087
  name: "disableDelegation",
1088
- inputs: [{ name: "delegation", type: "tuple", components: chunkVJA3OQWY_cjs.DELEGATION_TUPLE_COMPONENTS }],
1088
+ inputs: [{ name: "delegation", type: "tuple", components: chunkDIZIO4QD_cjs.DELEGATION_TUPLE_COMPONENTS }],
1089
1089
  outputs: [],
1090
1090
  stateMutability: "nonpayable"
1091
1091
  }
@@ -1104,7 +1104,7 @@ function assertOwnTaskBudgetCloseUserOp(typedData, expected, delegateAddress) {
1104
1104
  `This signer only signs a task-budget close on chains the delegation rail has pinned contracts for (${[...DIRECT_PAYMENT_CHAIN_IDS].join(", ")}); this typed data names chain ${String(domain.chainId)}. Refusing.`
1105
1105
  );
1106
1106
  }
1107
- const ownAccount = chunkVJA3OQWY_cjs.deriveDelegateAccountAddress(delegateAddress);
1107
+ const ownAccount = chunkDIZIO4QD_cjs.deriveDelegateAccountAddress(delegateAddress);
1108
1108
  const sender = typeof message.sender === "string" ? message.sender : "";
1109
1109
  if (sender.toLowerCase() !== ownAccount.toLowerCase()) {
1110
1110
  throw new HavenTypedDataRefusedError(
@@ -1127,9 +1127,9 @@ function assertOwnTaskBudgetCloseUserOp(typedData, expected, delegateAddress) {
1127
1127
  "This close UserOperation's execute() call does not re-encode to the exact callData bytes (trailing or non-canonical bytes). Refusing."
1128
1128
  );
1129
1129
  }
1130
- if (decoded.target.toLowerCase() !== chunkVJA3OQWY_cjs.DELEGATION_MANAGER.toLowerCase()) {
1130
+ if (decoded.target.toLowerCase() !== chunkDIZIO4QD_cjs.DELEGATION_MANAGER.toLowerCase()) {
1131
1131
  throw new HavenTypedDataRefusedError(
1132
- `This close UserOperation's execute() calls ${decoded.target}, not the DelegationManager (${chunkVJA3OQWY_cjs.DELEGATION_MANAGER}). Refusing what looks like a self-call or a call to an unrelated contract.`
1132
+ `This close UserOperation's execute() calls ${decoded.target}, not the DelegationManager (${chunkDIZIO4QD_cjs.DELEGATION_MANAGER}). Refusing what looks like a self-call or a call to an unrelated contract.`
1133
1133
  );
1134
1134
  }
1135
1135
  if (decoded.value !== 0n) {
@@ -1166,7 +1166,7 @@ function assertOwnTaskBudgetCloseUserOp(typedData, expected, delegateAddress) {
1166
1166
  `This close UserOperation disables a delegation granted to ${delegation.delegate}, not this signer's own account (${ownAccount}) \u2014 a task-budget child is always self-delegated. Refusing.`
1167
1167
  );
1168
1168
  }
1169
- if (delegation.authority.toLowerCase() === chunkVJA3OQWY_cjs.ROOT_AUTHORITY) {
1169
+ if (delegation.authority.toLowerCase() === chunkDIZIO4QD_cjs.ROOT_AUTHORITY) {
1170
1170
  throw new HavenTypedDataRefusedError(
1171
1171
  "This close UserOperation disables a ROOT delegation, not a re-delegation of the agent budget. A task-budget child always chains under the agent budget delegation. Refusing."
1172
1172
  );
@@ -1282,5 +1282,5 @@ exports.x402FacilitatorAddresses = x402FacilitatorAddresses;
1282
1282
  exports.x402PaymentHeaderNamesFor = x402PaymentHeaderNamesFor;
1283
1283
  exports.x402PaymentHeaderNamesSent = x402PaymentHeaderNamesSent;
1284
1284
  exports.x402V2PaymentEnvelope = x402V2PaymentEnvelope;
1285
- //# sourceMappingURL=chunk-U4DQ3APD.cjs.map
1286
- //# sourceMappingURL=chunk-U4DQ3APD.cjs.map
1285
+ //# sourceMappingURL=chunk-6GNVF774.cjs.map
1286
+ //# sourceMappingURL=chunk-6GNVF774.cjs.map