callx402 1.0.5 → 1.0.6
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Release callx402@1.0.6: npm metadata rewrite — buyer-language description and expanded discovery keywords. No code changes.
|
|
@@ -7,7 +7,7 @@ on:
|
|
|
7
7
|
push:
|
|
8
8
|
branches: [main]
|
|
9
9
|
paths:
|
|
10
|
-
- '.github/release-intent/callx402-v1.0.
|
|
10
|
+
- '.github/release-intent/callx402-v1.0.6.txt'
|
|
11
11
|
|
|
12
12
|
permissions:
|
|
13
13
|
id-token: write
|
|
@@ -28,11 +28,11 @@ jobs:
|
|
|
28
28
|
- run: npm pack --dry-run
|
|
29
29
|
- name: Confirm release version
|
|
30
30
|
run: |
|
|
31
|
-
node -e "if (require('./package.json').version !== '1.0.
|
|
31
|
+
node -e "if (require('./package.json').version !== '1.0.6') process.exit(1)"
|
|
32
32
|
- name: Check whether version is already published
|
|
33
33
|
id: published
|
|
34
34
|
run: |
|
|
35
|
-
if npm view callx402@1.0.
|
|
35
|
+
if npm view callx402@1.0.6 version >/dev/null 2>&1; then
|
|
36
36
|
echo "exists=true" >> "$GITHUB_OUTPUT"
|
|
37
37
|
else
|
|
38
38
|
echo "exists=false" >> "$GITHUB_OUTPUT"
|
|
@@ -52,6 +52,6 @@ jobs:
|
|
|
52
52
|
env:
|
|
53
53
|
GH_TOKEN: ${{ github.token }}
|
|
54
54
|
run: |
|
|
55
|
-
if ! gh release view v1.0.
|
|
56
|
-
gh release create v1.0.
|
|
55
|
+
if ! gh release view v1.0.6 --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
|
|
56
|
+
gh release create v1.0.6 --repo "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" --title "callx402 v1.0.6" --notes "Published callx402 v1.0.6 to npm. See https://github.com/Payloadhq/callx402/releases/tag/v1.0.6"
|
|
57
57
|
fi
|
package/README.md
CHANGED
|
@@ -282,6 +282,18 @@ callx402 works out of the box. There are two modes:
|
|
|
282
282
|
A bare `npm install callx402` gives you the hosted mode — no separate tree,
|
|
283
283
|
no config, no keys. The v2 tree is never required for standard use.
|
|
284
284
|
|
|
285
|
+
## How payment works
|
|
286
|
+
|
|
287
|
+
Hosted paid actions settle through Payload's signed-redemption flow, not a generic x402 facilitator:
|
|
288
|
+
|
|
289
|
+
1. Get a free quote for the action: the exact price, before any payment.
|
|
290
|
+
2. Call the action and read the x402 v2 `402` challenge: USDC on Base, the amount, and the `payTo` address.
|
|
291
|
+
3. Pay the quoted amount to `payTo` from your own wallet.
|
|
292
|
+
4. Redeem the original quote with the payment tx hash and an EIP-191 signed authorization from the paying wallet. A public tx hash alone never authorizes an action.
|
|
293
|
+
5. The rail verifies the payment exactly once on-chain and returns the result.
|
|
294
|
+
|
|
295
|
+
The full redemption contract is documented in [docs/signed-redemption.md](docs/signed-redemption.md). The free local tier above never charges and never moves money.
|
|
296
|
+
|
|
285
297
|
## Paid one-off diagnostics (no subscription)
|
|
286
298
|
|
|
287
299
|
The CLI and MCP tools above are the **free local tier**: read-only
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"callx402": "./bin/callx402.js"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {},
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "free local MCP diagnostics for failed x402 payments, plus hosted per-action diagnostics paid in USDC on Base",
|
|
8
8
|
"engines": {
|
|
9
9
|
"node": ">=18"
|
|
10
10
|
},
|
|
@@ -14,7 +14,15 @@
|
|
|
14
14
|
"mcp",
|
|
15
15
|
"cli",
|
|
16
16
|
"agents",
|
|
17
|
-
"payments"
|
|
17
|
+
"payments",
|
|
18
|
+
"diagnostics",
|
|
19
|
+
"debugging",
|
|
20
|
+
"troubleshooting",
|
|
21
|
+
"402",
|
|
22
|
+
"failed-payments",
|
|
23
|
+
"usdc",
|
|
24
|
+
"base",
|
|
25
|
+
"model-context-protocol"
|
|
18
26
|
],
|
|
19
27
|
"license": "MIT",
|
|
20
28
|
"main": "./sdk/js/index.js",
|
|
@@ -27,6 +35,6 @@
|
|
|
27
35
|
"smoke": "node bin/callx402.js status --json",
|
|
28
36
|
"test": "node --test test/*.test.js"
|
|
29
37
|
},
|
|
30
|
-
"version": "1.0.
|
|
38
|
+
"version": "1.0.6",
|
|
31
39
|
"mcpName": "io.github.payload-tools/callx402"
|
|
32
40
|
}
|
package/server.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"transport": {
|
|
11
11
|
"type": "stdio"
|
|
12
12
|
},
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.6"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
16
|
"repository": {
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"url": "https://github.com/Payloadhq/callx402"
|
|
19
19
|
},
|
|
20
20
|
"title": "callx402 MCP server",
|
|
21
|
-
"version": "1.0.
|
|
21
|
+
"version": "1.0.6",
|
|
22
22
|
"websiteUrl": "https://github.com/Payloadhq/callx402"
|
|
23
23
|
}
|