@agent-score/commerce 2.2.0 → 2.3.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/README.md +2 -2
- package/dist/challenge/index.d.mts +3 -3
- package/dist/challenge/index.d.ts +3 -3
- package/dist/challenge/index.js.map +1 -1
- package/dist/challenge/index.mjs.map +1 -1
- package/dist/{checkout-CKQE2QpJ.d.mts → checkout-Ceo1_rVJ.d.mts} +2 -2
- package/dist/{checkout-CfgxgPZL.d.ts → checkout-ChyOi7aU.d.ts} +2 -2
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{default_rails-C5gKZJMI.d.ts → default_rails-DtR_E9N9.d.ts} +1 -1
- package/dist/{default_rails-XFCuRddA.d.mts → default_rails-K25PtWrL.d.mts} +1 -1
- package/dist/discovery/index.d.mts +4 -4
- package/dist/discovery/index.d.ts +4 -4
- package/dist/identity/express.js +1 -1
- package/dist/identity/express.mjs +1 -1
- package/dist/identity/fastify.js +1 -1
- package/dist/identity/fastify.mjs +1 -1
- package/dist/identity/hono.js +1 -1
- package/dist/identity/hono.mjs +1 -1
- package/dist/identity/nextjs.js +1 -1
- package/dist/identity/nextjs.mjs +1 -1
- package/dist/identity/web.js +1 -1
- package/dist/identity/web.mjs +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/dist/payment/index.d.mts +3 -3
- package/dist/payment/index.d.ts +3 -3
- package/dist/payment/index.js +2 -0
- package/dist/payment/index.js.map +1 -1
- package/dist/payment/index.mjs +2 -0
- package/dist/payment/index.mjs.map +1 -1
- package/dist/{pricing-uFGRNoGl.d.ts → pricing-B3-aKxSz.d.ts} +1 -1
- package/dist/{pricing-dSI3ePmE.d.mts → pricing-BReyZiqN.d.mts} +1 -1
- package/dist/{rail_spec-D6qzh3J0.d.mts → rail_spec-B1239jPp.d.mts} +25 -0
- package/dist/{rail_spec-D6qzh3J0.d.ts → rail_spec-B1239jPp.d.ts} +25 -0
- package/dist/stripe-multichain/index.d.mts +61 -11
- package/dist/stripe-multichain/index.d.ts +61 -11
- package/dist/stripe-multichain/index.js +82 -42
- package/dist/stripe-multichain/index.js.map +1 -1
- package/dist/stripe-multichain/index.mjs +81 -42
- package/dist/stripe-multichain/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/core.mjs
CHANGED
|
@@ -202,7 +202,7 @@ function createAgentScoreCore(options) {
|
|
|
202
202
|
} = options;
|
|
203
203
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
204
204
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
205
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
205
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
206
206
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
207
207
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
208
208
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as RecipientLike, T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
1
|
+
import { a as RecipientLike, T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-B1239jPp.js';
|
|
2
2
|
|
|
3
3
|
/** Detects whether a request is a "settle leg" (carries a payment credential)
|
|
4
4
|
* vs a "discovery leg" (no payment credential, expects a 402).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as RecipientLike, T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
1
|
+
import { a as RecipientLike, T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-B1239jPp.mjs';
|
|
2
2
|
|
|
3
3
|
/** Detects whether a request is a "settle leg" (carries a payment credential)
|
|
4
4
|
* vs a "discovery leg" (no payment credential, expects a 402).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as RailKey, C as CompatibleClients } from '../pricing-
|
|
2
|
-
export { g as compatibleClientsByRails } from '../pricing-
|
|
3
|
-
import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-
|
|
4
|
-
import '../rail_spec-
|
|
1
|
+
import { R as RailKey, C as CompatibleClients } from '../pricing-BReyZiqN.mjs';
|
|
2
|
+
export { g as compatibleClientsByRails } from '../pricing-BReyZiqN.mjs';
|
|
3
|
+
import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-Ceo1_rVJ.mjs';
|
|
4
|
+
import '../rail_spec-B1239jPp.mjs';
|
|
5
5
|
import '../core.mjs';
|
|
6
6
|
import '../signer-3FAit11j.mjs';
|
|
7
7
|
import '../x402_server-Ciz2mls2.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as RailKey, C as CompatibleClients } from '../pricing-
|
|
2
|
-
export { g as compatibleClientsByRails } from '../pricing-
|
|
3
|
-
import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-
|
|
4
|
-
import '../rail_spec-
|
|
1
|
+
import { R as RailKey, C as CompatibleClients } from '../pricing-B3-aKxSz.js';
|
|
2
|
+
export { g as compatibleClientsByRails } from '../pricing-B3-aKxSz.js';
|
|
3
|
+
import { C as Checkout, p as UCPServiceBinding, a as AgentScoreGatePolicy } from '../checkout-ChyOi7aU.js';
|
|
4
|
+
import '../rail_spec-B1239jPp.js';
|
|
5
5
|
import '../core.js';
|
|
6
6
|
import '../signer-3FAit11j.js';
|
|
7
7
|
import '../x402_server-Ciz2mls2.js';
|
package/dist/identity/express.js
CHANGED
|
@@ -294,7 +294,7 @@ function createAgentScoreCore(options) {
|
|
|
294
294
|
} = options;
|
|
295
295
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
296
296
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
297
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
297
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
298
298
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
299
299
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
300
300
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -269,7 +269,7 @@ function createAgentScoreCore(options) {
|
|
|
269
269
|
} = options;
|
|
270
270
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
271
271
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
272
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
272
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
273
273
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
274
274
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
275
275
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/fastify.js
CHANGED
|
@@ -295,7 +295,7 @@ function createAgentScoreCore(options) {
|
|
|
295
295
|
} = options;
|
|
296
296
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
297
297
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
298
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
298
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
299
299
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
300
300
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
301
301
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -269,7 +269,7 @@ function createAgentScoreCore(options) {
|
|
|
269
269
|
} = options;
|
|
270
270
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
271
271
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
272
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
272
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
273
273
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
274
274
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
275
275
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/hono.js
CHANGED
|
@@ -294,7 +294,7 @@ function createAgentScoreCore(options) {
|
|
|
294
294
|
} = options;
|
|
295
295
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
296
296
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
297
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
297
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
298
298
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
299
299
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
300
300
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/hono.mjs
CHANGED
|
@@ -269,7 +269,7 @@ function createAgentScoreCore(options) {
|
|
|
269
269
|
} = options;
|
|
270
270
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
271
271
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
272
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
272
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
273
273
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
274
274
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
275
275
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/nextjs.js
CHANGED
|
@@ -315,7 +315,7 @@ function createAgentScoreCore(options) {
|
|
|
315
315
|
} = options;
|
|
316
316
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
317
317
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
318
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
318
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
319
319
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
320
320
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
321
321
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/nextjs.mjs
CHANGED
|
@@ -293,7 +293,7 @@ function createAgentScoreCore(options) {
|
|
|
293
293
|
} = options;
|
|
294
294
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
295
295
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
296
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
296
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
297
297
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
298
298
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
299
299
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/web.js
CHANGED
|
@@ -291,7 +291,7 @@ function createAgentScoreCore(options) {
|
|
|
291
291
|
} = options;
|
|
292
292
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
293
293
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
294
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
294
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
295
295
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
296
296
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
297
297
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/web.mjs
CHANGED
|
@@ -269,7 +269,7 @@ function createAgentScoreCore(options) {
|
|
|
269
269
|
} = options;
|
|
270
270
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
271
271
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
272
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
272
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
273
273
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
274
274
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
275
275
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { VerifyWalletSignerResult, DenialReason } from './core.mjs';
|
|
2
2
|
export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AssessResult, CreateSessionOnMissing, DenialCode, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, SignerVerdict, buildAgentMemoryHint } from './core.mjs';
|
|
3
3
|
export { P as PaymentSigner, S as SignerNetwork, e as extractPaymentSigner, a as extractPaymentSignerFromAuth, b as extractSignerForPrecheck, r as readX402PaymentHeader } from './signer-3FAit11j.mjs';
|
|
4
|
-
import { q as UCPSigningKey, n as UCPProfile } from './checkout-
|
|
5
|
-
export { A as AGENTSCORE_UCP_CAPABILITY, a as AgentScoreGatePolicy, C as Checkout, b as CheckoutContext, c as CheckoutGateConfig, d as CheckoutRailSpec, e as CheckoutRequest, f as CheckoutResult, g as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, h as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, i as PricingFn, j as PricingResult, R as RecipientsFn, k as ReferenceIdFn, l as RunGateFn, S as SettleOutcome, U as UCPCapabilityBinding, m as UCPPaymentHandlerBinding, o as UCPProfileBody, p as UCPServiceBinding, r as buildUCPProfile, s as getIdentityStatus, t as makeMppxComposeHook, u as mppPaymentHandler, v as pricingResult, w as stripeSptPaymentHandler, x as validationEnvelope, y as validationResponseExpress, z as validationResponseFastify, B as validationResponseHono, E as validationResponseNextjs, F as validationResponseWeb, H as x402PaymentHandler } from './checkout-
|
|
4
|
+
import { q as UCPSigningKey, n as UCPProfile } from './checkout-Ceo1_rVJ.mjs';
|
|
5
|
+
export { A as AGENTSCORE_UCP_CAPABILITY, a as AgentScoreGatePolicy, C as Checkout, b as CheckoutContext, c as CheckoutGateConfig, d as CheckoutRailSpec, e as CheckoutRequest, f as CheckoutResult, g as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, h as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, i as PricingFn, j as PricingResult, R as RecipientsFn, k as ReferenceIdFn, l as RunGateFn, S as SettleOutcome, U as UCPCapabilityBinding, m as UCPPaymentHandlerBinding, o as UCPProfileBody, p as UCPServiceBinding, r as buildUCPProfile, s as getIdentityStatus, t as makeMppxComposeHook, u as mppPaymentHandler, v as pricingResult, w as stripeSptPaymentHandler, x as validationEnvelope, y as validationResponseExpress, z as validationResponseFastify, B as validationResponseHono, E as validationResponseNextjs, F as validationResponseWeb, H as x402PaymentHandler } from './checkout-Ceo1_rVJ.mjs';
|
|
6
6
|
export { EnforcementMode, GateResult, IdentityStatus, PolicyBlock, buildGateFromPolicy, runGateWithEnforcement, shippingCountryAllowed, shippingStateAllowed, validateShippingAgainstPolicy } from './identity/policy.mjs';
|
|
7
|
-
import { H as HeadersLike } from './default_rails-
|
|
8
|
-
export { c as buildDefaultCheckoutRails, d as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, e as hasPaymentHeader, g as hasX402Header, l as loadSolanaFeePayer } from './default_rails-
|
|
9
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
10
|
-
export { c as TempoSessionRailSpec } from './rail_spec-
|
|
7
|
+
import { H as HeadersLike } from './default_rails-K25PtWrL.mjs';
|
|
8
|
+
export { c as buildDefaultCheckoutRails, d as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, e as hasPaymentHeader, g as hasX402Header, l as loadSolanaFeePayer } from './default_rails-K25PtWrL.mjs';
|
|
9
|
+
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-B1239jPp.mjs';
|
|
10
|
+
export { c as TempoSessionRailSpec } from './rail_spec-B1239jPp.mjs';
|
|
11
11
|
import { Context } from 'hono';
|
|
12
|
-
import './pricing-
|
|
12
|
+
import './pricing-BReyZiqN.mjs';
|
|
13
13
|
import './x402_server-Ciz2mls2.mjs';
|
|
14
14
|
|
|
15
15
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { VerifyWalletSignerResult, DenialReason } from './core.js';
|
|
2
2
|
export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AssessResult, CreateSessionOnMissing, DenialCode, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, SignerVerdict, buildAgentMemoryHint } from './core.js';
|
|
3
3
|
export { P as PaymentSigner, S as SignerNetwork, e as extractPaymentSigner, a as extractPaymentSignerFromAuth, b as extractSignerForPrecheck, r as readX402PaymentHeader } from './signer-3FAit11j.js';
|
|
4
|
-
import { q as UCPSigningKey, n as UCPProfile } from './checkout-
|
|
5
|
-
export { A as AGENTSCORE_UCP_CAPABILITY, a as AgentScoreGatePolicy, C as Checkout, b as CheckoutContext, c as CheckoutGateConfig, d as CheckoutRailSpec, e as CheckoutRequest, f as CheckoutResult, g as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, h as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, i as PricingFn, j as PricingResult, R as RecipientsFn, k as ReferenceIdFn, l as RunGateFn, S as SettleOutcome, U as UCPCapabilityBinding, m as UCPPaymentHandlerBinding, o as UCPProfileBody, p as UCPServiceBinding, r as buildUCPProfile, s as getIdentityStatus, t as makeMppxComposeHook, u as mppPaymentHandler, v as pricingResult, w as stripeSptPaymentHandler, x as validationEnvelope, y as validationResponseExpress, z as validationResponseFastify, B as validationResponseHono, E as validationResponseNextjs, F as validationResponseWeb, H as x402PaymentHandler } from './checkout-
|
|
4
|
+
import { q as UCPSigningKey, n as UCPProfile } from './checkout-ChyOi7aU.js';
|
|
5
|
+
export { A as AGENTSCORE_UCP_CAPABILITY, a as AgentScoreGatePolicy, C as Checkout, b as CheckoutContext, c as CheckoutGateConfig, d as CheckoutRailSpec, e as CheckoutRequest, f as CheckoutResult, g as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, h as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, i as PricingFn, j as PricingResult, R as RecipientsFn, k as ReferenceIdFn, l as RunGateFn, S as SettleOutcome, U as UCPCapabilityBinding, m as UCPPaymentHandlerBinding, o as UCPProfileBody, p as UCPServiceBinding, r as buildUCPProfile, s as getIdentityStatus, t as makeMppxComposeHook, u as mppPaymentHandler, v as pricingResult, w as stripeSptPaymentHandler, x as validationEnvelope, y as validationResponseExpress, z as validationResponseFastify, B as validationResponseHono, E as validationResponseNextjs, F as validationResponseWeb, H as x402PaymentHandler } from './checkout-ChyOi7aU.js';
|
|
6
6
|
export { EnforcementMode, GateResult, IdentityStatus, PolicyBlock, buildGateFromPolicy, runGateWithEnforcement, shippingCountryAllowed, shippingStateAllowed, validateShippingAgainstPolicy } from './identity/policy.js';
|
|
7
|
-
import { H as HeadersLike } from './default_rails-
|
|
8
|
-
export { c as buildDefaultCheckoutRails, d as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, e as hasPaymentHeader, g as hasX402Header, l as loadSolanaFeePayer } from './default_rails-
|
|
9
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
10
|
-
export { c as TempoSessionRailSpec } from './rail_spec-
|
|
7
|
+
import { H as HeadersLike } from './default_rails-DtR_E9N9.js';
|
|
8
|
+
export { c as buildDefaultCheckoutRails, d as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, e as hasPaymentHeader, g as hasX402Header, l as loadSolanaFeePayer } from './default_rails-DtR_E9N9.js';
|
|
9
|
+
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-B1239jPp.js';
|
|
10
|
+
export { c as TempoSessionRailSpec } from './rail_spec-B1239jPp.js';
|
|
11
11
|
import { Context } from 'hono';
|
|
12
|
-
import './pricing-
|
|
12
|
+
import './pricing-B3-aKxSz.js';
|
|
13
13
|
import './x402_server-Ciz2mls2.js';
|
|
14
14
|
|
|
15
15
|
/**
|
package/dist/index.js
CHANGED
|
@@ -21222,7 +21222,7 @@ function createAgentScoreCore(options) {
|
|
|
21222
21222
|
} = options;
|
|
21223
21223
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
21224
21224
|
const agentMemoryHint = buildAgentMemoryHint();
|
|
21225
|
-
const defaultUa = `@agent-score/commerce@${"2.
|
|
21225
|
+
const defaultUa = `@agent-score/commerce@${"2.3.0"}`;
|
|
21226
21226
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
21227
21227
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
21228
21228
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -22358,11 +22358,13 @@ async function registerSolana(spec) {
|
|
|
22358
22358
|
"createMppxServer: SolanaMppRailSpec requires a string recipient (per-order factories not supported here)."
|
|
22359
22359
|
);
|
|
22360
22360
|
}
|
|
22361
|
+
const ataCreationRequired = spec.ataCreationRequired !== false;
|
|
22361
22362
|
const baseMethod = solanaMpp.charge({
|
|
22362
22363
|
recipient: spec.recipient,
|
|
22363
22364
|
currency: spec.token ?? defaultMint,
|
|
22364
22365
|
decimals: spec.decimals ?? defaultDecimals,
|
|
22365
22366
|
network,
|
|
22367
|
+
...ataCreationRequired ? { splits: [{ recipient: spec.recipient, amount: "0", ataCreationRequired: true }] } : {},
|
|
22366
22368
|
...spec.rpcUrl ? { rpcUrl: spec.rpcUrl } : {},
|
|
22367
22369
|
...spec.signer ? { signer: spec.signer } : {},
|
|
22368
22370
|
...spec.tokenProgram ? { tokenProgram: spec.tokenProgram } : {}
|