@stellar-agent/x402-client 0.4.1 → 0.4.3
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 +25 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -3,3 +3,28 @@
|
|
|
3
3
|
Local x402-style client support for the Testnet demo.
|
|
4
4
|
|
|
5
5
|
This package implements a concrete local `402 -> policy -> Testnet payment -> retry with proof` flow. It is not a full facilitator-backed Soroban auth-entry x402 implementation yet.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @stellar-agent/x402-client
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## CLI Entry Points
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
stellar-agent testnet scenario x402-payment --json
|
|
17
|
+
stellar-agent pay x402 http://127.0.0.1:PORT/paid-report --allow-localhost-demo --json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Safety
|
|
21
|
+
|
|
22
|
+
- This package is for local Testnet demos.
|
|
23
|
+
- Production facilitator-backed x402 support is intentionally out of scope for `0.4.x`.
|
|
24
|
+
- Payment policy and receipts are handled by the CLI flow before and after Testnet payment submission.
|
|
25
|
+
|
|
26
|
+
## Links
|
|
27
|
+
|
|
28
|
+
- GitHub: https://github.com/someone-in-texas/Stellar-Agent
|
|
29
|
+
- Testnet quickstart: https://github.com/someone-in-texas/Stellar-Agent/blob/main/docs/quickstart-testnet.md
|
|
30
|
+
- npm CLI package: https://www.npmjs.com/package/@stellar-agent/cli
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stellar-agent/x402-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Local Testnet x402-style payment demo client and server helpers for Stellar Agent Bridge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/someone-in-texas/Stellar-Agent/issues"
|
|
14
14
|
},
|
|
15
|
-
"homepage": "https://github.com/someone-in-texas/Stellar-Agent#readme",
|
|
15
|
+
"homepage": "https://github.com/someone-in-texas/Stellar-Agent/tree/main/packages/x402-client#readme",
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=22"
|
|
18
18
|
},
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"test": "vitest run"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@stellar-agent/core": "0.4.
|
|
36
|
-
"@stellar-agent/ledger-logger": "0.4.
|
|
37
|
-
"@stellar-agent/policy": "0.4.
|
|
38
|
-
"@stellar-agent/stellar": "0.4.
|
|
35
|
+
"@stellar-agent/core": "0.4.3",
|
|
36
|
+
"@stellar-agent/ledger-logger": "0.4.3",
|
|
37
|
+
"@stellar-agent/policy": "0.4.3",
|
|
38
|
+
"@stellar-agent/stellar": "0.4.3"
|
|
39
39
|
}
|
|
40
40
|
}
|