@agent-score/commerce 2.6.8 → 2.7.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.
Files changed (40) hide show
  1. package/README.md +1 -1
  2. package/dist/challenge/index.d.mts +3 -3
  3. package/dist/challenge/index.d.ts +3 -3
  4. package/dist/challenge/index.js.map +1 -1
  5. package/dist/challenge/index.mjs.map +1 -1
  6. package/dist/{checkout-PjmMESkc.d.mts → checkout-DKq9gV3G.d.mts} +15 -14
  7. package/dist/{checkout-U3tGU1Au.d.ts → checkout-DW7GgRrl.d.ts} +15 -14
  8. package/dist/core.js +1 -1
  9. package/dist/core.mjs +1 -1
  10. package/dist/discovery/index.d.mts +4 -4
  11. package/dist/discovery/index.d.ts +4 -4
  12. package/dist/identity/express.js +1 -1
  13. package/dist/identity/express.mjs +1 -1
  14. package/dist/identity/fastify.js +1 -1
  15. package/dist/identity/fastify.mjs +1 -1
  16. package/dist/identity/hono.js +1 -1
  17. package/dist/identity/hono.mjs +1 -1
  18. package/dist/identity/nextjs.js +1 -1
  19. package/dist/identity/nextjs.mjs +1 -1
  20. package/dist/identity/web.js +1 -1
  21. package/dist/identity/web.mjs +1 -1
  22. package/dist/index.d.mts +7 -7
  23. package/dist/index.d.ts +7 -7
  24. package/dist/index.js +17 -23
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +17 -23
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/{network_kind-D2xpo2Fj.d.mts → network_kind-CLdLbqU5.d.mts} +1 -1
  29. package/dist/{network_kind-BmbWKNud.d.ts → network_kind-toxNABqw.d.ts} +1 -1
  30. package/dist/payment/index.d.mts +3 -3
  31. package/dist/payment/index.d.ts +3 -3
  32. package/dist/payment/index.js +0 -2
  33. package/dist/payment/index.js.map +1 -1
  34. package/dist/payment/index.mjs +0 -2
  35. package/dist/payment/index.mjs.map +1 -1
  36. package/dist/{pricing-CytRwhC2.d.ts → pricing-Dx3F1VAv.d.ts} +1 -1
  37. package/dist/{pricing-KHDqMLd7.d.mts → pricing-sfv3CPiY.d.mts} +1 -1
  38. package/dist/{rail_spec-BFZmW9RN.d.mts → rail_spec-DGdb4Gnd.d.mts} +0 -25
  39. package/dist/{rail_spec-BFZmW9RN.d.ts → rail_spec-DGdb4Gnd.d.ts} +0 -25
  40. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-BFZmW9RN.js';
1
+ import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-DGdb4Gnd.js';
2
2
 
3
3
  interface HowToPayRailEntry {
4
4
  setup?: string[];
@@ -1,4 +1,4 @@
1
- import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-BFZmW9RN.mjs';
1
+ import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-DGdb4Gnd.mjs';
2
2
 
3
3
  interface HowToPayRailEntry {
4
4
  setup?: string[];
@@ -58,31 +58,6 @@ interface SolanaMppRailSpec {
58
58
  rpcUrl?: string;
59
59
  signer?: unknown;
60
60
  tokenProgram?: string;
61
- /** Whether the recipient's ATA may be auto-created on first payment. **Default `true`.**
62
- *
63
- * When `true` (default), the SDK passes
64
- * `splits: [{ recipient, amount: '0', ataCreationRequired: true }]` to
65
- * `solana.charge`, which puts the recipient in the MPP spec §13.6
66
- * `allowedAtaOwners` allow-list. Required on `@solana/mpp >= 0.6.0` with a
67
- * sponsored (fee-payer) setup — without it, every settle that emits a
68
- * `CreateIdempotent` ATA instruction is rejected. On `@solana/mpp 0.5.x`
69
- * the field is unknown and silently ignored, so the default is safe across
70
- * versions.
71
- *
72
- * Opt out (`false`) only when every recipient's ATA is guaranteed to exist
73
- * out-of-band — typically when the merchant pre-creates the ATA from an
74
- * external wallet (one-time USDC transfer of any amount) and refuses to
75
- * let the fee-payer fund creation. Rare; mainly useful for low-margin
76
- * endpoints that use a stable merchant-owned recipient via
77
- * `staticRecipients` and want to guarantee zero rent per call.
78
- *
79
- * Economic note: with rotating recipients (Stripe-multichain per-PI deposit
80
- * addresses), the sponsor pays ~0.002 SOL (~$0.50) of rent per call into
81
- * accounts the merchant can't close. Acceptable when settle amounts
82
- * dominate ($50+ transactions); not viable for sub-dollar merchants —
83
- * those should pair `ataCreationRequired: false` with a static recipient
84
- * whose ATA has been pre-created (one-time external USDC transfer). */
85
- ataCreationRequired?: boolean;
86
61
  }
87
62
  /**
88
63
  * Canonical config for the Stripe SPT rail.
@@ -58,31 +58,6 @@ interface SolanaMppRailSpec {
58
58
  rpcUrl?: string;
59
59
  signer?: unknown;
60
60
  tokenProgram?: string;
61
- /** Whether the recipient's ATA may be auto-created on first payment. **Default `true`.**
62
- *
63
- * When `true` (default), the SDK passes
64
- * `splits: [{ recipient, amount: '0', ataCreationRequired: true }]` to
65
- * `solana.charge`, which puts the recipient in the MPP spec §13.6
66
- * `allowedAtaOwners` allow-list. Required on `@solana/mpp >= 0.6.0` with a
67
- * sponsored (fee-payer) setup — without it, every settle that emits a
68
- * `CreateIdempotent` ATA instruction is rejected. On `@solana/mpp 0.5.x`
69
- * the field is unknown and silently ignored, so the default is safe across
70
- * versions.
71
- *
72
- * Opt out (`false`) only when every recipient's ATA is guaranteed to exist
73
- * out-of-band — typically when the merchant pre-creates the ATA from an
74
- * external wallet (one-time USDC transfer of any amount) and refuses to
75
- * let the fee-payer fund creation. Rare; mainly useful for low-margin
76
- * endpoints that use a stable merchant-owned recipient via
77
- * `staticRecipients` and want to guarantee zero rent per call.
78
- *
79
- * Economic note: with rotating recipients (Stripe-multichain per-PI deposit
80
- * addresses), the sponsor pays ~0.002 SOL (~$0.50) of rent per call into
81
- * accounts the merchant can't close. Acceptable when settle amounts
82
- * dominate ($50+ transactions); not viable for sub-dollar merchants —
83
- * those should pair `ataCreationRequired: false` with a static recipient
84
- * whose ATA has been pre-created (one-time external USDC transfer). */
85
- ataCreationRequired?: boolean;
86
61
  }
87
62
  /**
88
63
  * Canonical config for the Stripe SPT rail.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-score/commerce",
3
- "version": "2.6.8",
3
+ "version": "2.7.1",
4
4
  "description": "Agentic commerce SDK: identity middleware (Hono, Express, Fastify, Next.js, Web Fetch) + payment helpers + 402 builders + discovery + Stripe multichain. The full merchant-side toolkit for AgentScore-powered agentic commerce.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -166,8 +166,8 @@
166
166
  "form-data": "^4.0.6"
167
167
  },
168
168
  "peerDependencies": {
169
- "@solana/kit": ">=6.5.0 <7.0.0",
170
- "@solana/mpp": ">=0.5.0",
169
+ "@solana/kit": ">=7.0.0 <8.0.0",
170
+ "@solana/mpp": ">=0.7.0",
171
171
  "express": ">=4.0.0",
172
172
  "fastify": ">=4.0.0",
173
173
  "hono": ">=4.0.0",
@@ -205,8 +205,8 @@
205
205
  "@a2a-js/sdk": "^0.3.14",
206
206
  "@coinbase/x402": "^2.1.0",
207
207
  "@eslint/js": "^9.39.5",
208
- "@solana/kit": "^6.10.0",
209
- "@solana/mpp": "^0.6.0",
208
+ "@solana/kit": "^7.0.0",
209
+ "@solana/mpp": "^0.7.0",
210
210
  "@types/express": "^5.0.6",
211
211
  "@types/node": "^26.1.1",
212
212
  "@vitest/coverage-v8": "^4.1.10",