Skip to content

Commit d74bdfd

Browse files
committed
Release 402bot 0.3.0
1 parent 998a1ff commit d74bdfd

7 files changed

Lines changed: 3817 additions & 555 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,17 @@ jobs:
2828
node-version: 22
2929
registry-url: https://registry.npmjs.org
3030

31+
- name: Install dependencies
32+
run: bun install --frozen-lockfile || bun install
33+
3134
- name: Run focused 402bot tests
3235
run: bun test tests/402bot-cli.test.ts
3336

37+
- name: Smoke test CLI entrypoints
38+
run: |
39+
node index.js --help
40+
node index.js config get --json
41+
3442
- name: Verify tag matches package version
3543
if: github.event_name == 'push'
3644
shell: bash

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,31 @@
22

33
`402bot` is a product CLI for `402.bot`, backed by [`x402-proxy`](https://github.com/cascade-protocol/x402-proxy).
44

5-
It keeps wallet setup, x402 payment handling, MCP proxying, and spend history from `x402-proxy`, but adds higher-level commands for discovery, inspection, recipes, docs crawls, wallet dossiers, market workflows, and agent setup.
5+
It keeps wallet setup, x402 payment handling, MCP proxying, and spend history from `x402-proxy`, but adds higher-level commands for discovery, inspection, config defaults, docs crawls, wallet dossiers, market workflows, and agent setup.
66

7-
## Discovery And Agent Operations
7+
## Setup, Config, And History
88

99
```bash
1010
402bot setup
1111
402bot status
12+
402bot doctor
1213
402bot wallet
14+
402bot config get
15+
402bot config set campaign-id codex-mcp-setup
16+
402bot config set spend-cap 2
17+
402bot spend --since 7d
18+
402bot history --since 7d --json
19+
402bot completion zsh
20+
```
21+
22+
## Discovery And Agent Operations
23+
24+
```bash
1325

1426
402bot mcp --campaign-id defi-agent-alpha
1527

1628
402bot discover "find the best live Base wallet-intelligence or risk API for an autonomous trading agent"
29+
402bot discover "best Base treasury API" --max-price 0.02 --freshness 6h --trust observed --requires-mcp
1730
402bot inspect weather-alpha
1831
402bot inspect 0x1111111111111111111111111111111111111111
1932
402bot compare "find the best live Base treasury monitoring API"
@@ -32,12 +45,16 @@ It keeps wallet setup, x402 payment handling, MCP proxying, and spend history fr
3245

3346
```bash
3447
402bot wallet dossier 0x1111111111111111111111111111111111111111
35-
402bot wallet dossier 0x1111111111111111111111111111111111111111 --profile polymarket --days 14
48+
402bot wallet dossier 0x1111111111111111111111111111111111111111 --profile treasury
49+
402bot wallet dossier 0x1111111111111111111111111111111111111111 --profile defi-risk
50+
402bot wallet dossier 0x1111111111111111111111111111111111111111 --profile counterparty-map --days 1
51+
402bot wallet dossier 0x1111111111111111111111111111111111111111 --profile prediction-markets --days 14
3652

3753
402bot docs crawl https://docs.uniswap.org
54+
402bot docs crawl https://docs.uniswap.org --profile integration-notes --scope subdomains --depth 2
3855

39-
402bot trade polymarket 12345 --side buy --size 5
40-
402bot trade polymarket 12345 --side sell --amount 10 --kind market
56+
402bot trade polymarket https://polymarket.com/event/example --outcome yes --side buy --size 5
57+
402bot trade polymarket us-recession-in-2026 --outcome no --side sell --amount 10 --kind market
4158

4259
402bot run wallet-research 0x1111111111111111111111111111111111111111
4360
402bot run protocol-diligence https://docs.uniswap.org --question "What are the obvious diligence gaps?"
@@ -51,6 +68,8 @@ It keeps wallet setup, x402 payment handling, MCP proxying, and spend history fr
5168
## Notes
5269

5370
- `mcp` routes to `https://api.402.bot/mcp`
71+
- `config` persists `campaignId`, preferred network, spend caps, favorite wallet, and favorite recipe under `~/.config/402bot`
5472
- read-only discovery and analytics commands hit the public `402.bot` HTTP APIs directly
73+
- `discover`, `inspect`, `compare`, `doctor`, `spend`, `history`, and `completion` support stable `--json` output
5574
- paid execution commands still settle through `x402-proxy`
5675
- `BOT402_API_URL` and `BOT402_MCP_URL` can override the defaults

0 commit comments

Comments
 (0)