@agent-score/commerce 2.6.7 → 2.7.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 +2 -2
- package/dist/challenge/index.js.map +1 -1
- package/dist/challenge/index.mjs +2 -2
- package/dist/challenge/index.mjs.map +1 -1
- package/dist/{checkout-GcDNDzSK.d.ts → checkout-CIH1UcKZ.d.ts} +15 -2
- package/dist/{checkout-DOd9GDmt.d.mts → checkout-Wc7NUHxZ.d.mts} +15 -2
- package/dist/core.js +2 -2
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +2 -2
- package/dist/core.mjs.map +1 -1
- package/dist/discovery/index.d.mts +4 -4
- package/dist/discovery/index.d.ts +4 -4
- package/dist/identity/express.js +2 -2
- package/dist/identity/express.js.map +1 -1
- package/dist/identity/express.mjs +2 -2
- package/dist/identity/express.mjs.map +1 -1
- package/dist/identity/fastify.js +2 -2
- package/dist/identity/fastify.js.map +1 -1
- package/dist/identity/fastify.mjs +2 -2
- package/dist/identity/fastify.mjs.map +1 -1
- package/dist/identity/hono.js +2 -2
- package/dist/identity/hono.js.map +1 -1
- package/dist/identity/hono.mjs +2 -2
- package/dist/identity/hono.mjs.map +1 -1
- package/dist/identity/nextjs.js +2 -2
- package/dist/identity/nextjs.js.map +1 -1
- package/dist/identity/nextjs.mjs +2 -2
- package/dist/identity/nextjs.mjs.map +1 -1
- package/dist/identity/web.js +2 -2
- package/dist/identity/web.js.map +1 -1
- package/dist/identity/web.mjs +2 -2
- package/dist/identity/web.mjs.map +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +47 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -34
- package/dist/index.mjs.map +1 -1
- package/dist/{network_kind-D2xpo2Fj.d.mts → network_kind-CLdLbqU5.d.mts} +1 -1
- package/dist/{network_kind-BmbWKNud.d.ts → network_kind-toxNABqw.d.ts} +1 -1
- package/dist/payment/index.d.mts +3 -3
- package/dist/payment/index.d.ts +3 -3
- package/dist/payment/index.js +0 -2
- package/dist/payment/index.js.map +1 -1
- package/dist/payment/index.mjs +0 -2
- package/dist/payment/index.mjs.map +1 -1
- package/dist/{pricing-CytRwhC2.d.ts → pricing-Dx3F1VAv.d.ts} +1 -1
- package/dist/{pricing-KHDqMLd7.d.mts → pricing-sfv3CPiY.d.mts} +1 -1
- package/dist/{rail_spec-BFZmW9RN.d.mts → rail_spec-DGdb4Gnd.d.mts} +0 -25
- package/dist/{rail_spec-BFZmW9RN.d.ts → rail_spec-DGdb4Gnd.d.ts} +0 -25
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
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-
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-score/commerce",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.7.0",
|
|
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",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"bun": ">=1.3.0 <2"
|
|
149
149
|
},
|
|
150
150
|
"dependencies": {
|
|
151
|
-
"@agent-score/sdk": "^2.6.
|
|
151
|
+
"@agent-score/sdk": "^2.6.3"
|
|
152
152
|
},
|
|
153
153
|
"overrides": {
|
|
154
154
|
"axios": "^1.15.0",
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"form-data": "^4.0.6"
|
|
167
167
|
},
|
|
168
168
|
"peerDependencies": {
|
|
169
|
-
"@solana/kit": ">=
|
|
170
|
-
"@solana/mpp": ">=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": "^
|
|
209
|
-
"@solana/mpp": "^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",
|
|
@@ -219,15 +219,15 @@
|
|
|
219
219
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
220
220
|
"express": "^5.2.1",
|
|
221
221
|
"fastify": "^5.10.0",
|
|
222
|
-
"hono": "^4.12.
|
|
222
|
+
"hono": "^4.12.30",
|
|
223
223
|
"ioredis": "^5.11.1",
|
|
224
224
|
"jose": "^6.2.3",
|
|
225
|
-
"knip": "^6.
|
|
225
|
+
"knip": "^6.27.0",
|
|
226
226
|
"lefthook": "^2.1.10",
|
|
227
227
|
"mppx": "0.8.6",
|
|
228
228
|
"tsup": "^8.5.1",
|
|
229
229
|
"typescript": "^6.0.3",
|
|
230
|
-
"typescript-eslint": "^8.
|
|
230
|
+
"typescript-eslint": "^8.64.0",
|
|
231
231
|
"viem": "2.54.6",
|
|
232
232
|
"vitest": "^4.1.10"
|
|
233
233
|
},
|