@obul.ai/obulx 0.2.0 → 0.2.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.
- package/README.md +8 -0
- package/dist/cli.js +0 -0
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -7,6 +7,11 @@ Obul x402 CLI and library.
|
|
|
7
7
|
npm install -g @obul.ai/obulx
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
+
Direct x402 mode (non-proxy) requires installing the optional addon:
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g @obul.ai/obulx-x402
|
|
13
|
+
```
|
|
14
|
+
|
|
10
15
|
## What It Does
|
|
11
16
|
`obulx` is a CLI for calling x402-protected endpoints. It supports:
|
|
12
17
|
- Proxy mode (via Obul proxy) API key auth.
|
|
@@ -55,6 +60,7 @@ obulx --obul-proxy https://proxy.devnet.obul.ai/proxy \
|
|
|
55
60
|
Direct x402 mode:
|
|
56
61
|
```bash
|
|
57
62
|
export OBUL_X402_PRIVATE_KEY="0x..."
|
|
63
|
+
npm install -g @obul.ai/obulx-x402
|
|
58
64
|
|
|
59
65
|
obulx --network base --auto-approve-limit 1000 \
|
|
60
66
|
https://x402.example.com/resource
|
|
@@ -63,6 +69,7 @@ obulx --network base --auto-approve-limit 1000 \
|
|
|
63
69
|
Direct mode with network priority and asset filter:
|
|
64
70
|
```bash
|
|
65
71
|
export OBUL_X402_PRIVATE_KEY="0x..."
|
|
72
|
+
npm install -g @obul.ai/obulx-x402
|
|
66
73
|
|
|
67
74
|
obulx --network base,optimism --asset 0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 \
|
|
68
75
|
--auto-approve-limit 1000 \
|
|
@@ -77,6 +84,7 @@ obulx -vv --obul-proxy https://proxy.devnet.obul.ai/proxy \
|
|
|
77
84
|
|
|
78
85
|
Verbose output (probe + final in direct mode):
|
|
79
86
|
```bash
|
|
87
|
+
npm install -g @obul.ai/obulx-x402
|
|
80
88
|
obulx -vvv --network base --auto-approve-limit 1000 \
|
|
81
89
|
https://x402.example.com/resource
|
|
82
90
|
```
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@obul.ai/obulx",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Obul x402 CLI and library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,10 +17,7 @@
|
|
|
17
17
|
"build": "tsc -p tsconfig.json",
|
|
18
18
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
19
19
|
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"x402-fetch": "^0.6.0",
|
|
22
|
-
"viem": "^2.21.26"
|
|
23
|
-
},
|
|
20
|
+
"dependencies": {},
|
|
24
21
|
"devDependencies": {
|
|
25
22
|
"@types/node": "^20.11.30"
|
|
26
23
|
}
|