Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,6 @@ commands/ → core/ → protocol/

Entry point: `src/pumpfun_cli/cli.py` → `pyproject.toml` `[project.scripts] pumpfun = "pumpfun_cli.cli:app"`

## Project Structure

```
src/pumpfun_cli/
├── cli.py # Root Typer app, GlobalState, callback, command registration
├── group.py # JsonAwareGroup — allows --json at any argv position
├── crypto.py # AES-256-GCM wallet encryption (scrypt KDF)
├── output.py # render() + error() — TTY-aware output
├── commands/ # Thin CLI layer (config, info, launch, tokens, trade, tx_status, wallet)
├── core/ # Business logic (config, cpmm, info, launch, launchlab, pumpswap, tokens, trade, tx_status, validate, wallet)
└── protocol/ # Solana primitives (address, client, contracts, cpmm, curve, idl_parser, instructions, launchlab, pumpswap, quote, token_account)

tests/
├── test_commands/ # CLI smoke tests
├── test_core/ # Mocked business logic tests
├── test_protocol/ # Unit tests for protocol math/parsing
└── test_surfpool/ # Integration tests (ignored by default)
```

## Code Conventions

**Output:** Use `render(data, json_mode)` for all output — returns `True` if it emitted JSON (non-TTY or `--json`), `False` in TTY mode. Commands use `if not render(...):` to branch into human-readable output. Use `error(msg, hint, exit_code)` for failures — prints to stderr and raises `SystemExit`. Never use `print()`.
Expand Down
Loading