Repository navigation
Releases
Releases · CabalSpy/cabalspy-x402
v0.3.0
v0.2.0
Spend limits now hold against x402 v2 servers
The CabalSpy API speaks x402 v2. Earlier versions only read the v1 locations, which meant:
- The price was unreadable, so
maxSpendPerCallwas skipped. The price is now read from thePAYMENT-REQUIREDheader (v1 body as fallback), taking the highest amount across offered networks. - No payment was counted, so
maxSpendTotalnever tripped. Receipts are now read fromPAYMENT-RESPONSE(v1X-PAYMENT-RESPONSEas fallback), and the checked price is recorded because v2 receipts carry no amount.
Behaviour change
A 402 without a readable price is now refused with SpendLimitError (kind: 'unpriced') instead of paid blind. It is only allowed when both limits are Infinity.
Also
- New exports:
readPrice,readReceipt. - README: testnet section corrected —
api.cabalspy.xyztakes mainnet payments only. - Tests: 11 → 19 checks.
🤖 Generated with Claude Code
v0.1.1
- Added the test suite the README describes (
npm test, eleven checks, no wallet or chain needed). - Fixed the repository and issue URLs in package.json.
- README: more than 3,000 labeled wallets; links to cabalspy.xyz/x402, the SDKs, the MCP server and the CabalSpy Terminal.
- Publishing switched to npm Trusted Publishing (no stored token).
No API changes.
v0.1.0
- initial commit of CabalSpy_x402 AI Agent payment.