@byreal-io/byreal-cli-realclaw 0.3.13 → 0.4.1-beta.2
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 +57 -4
- package/dist/index.cjs +1104 -142
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Byreal Agent Skills
|
|
2
2
|
|
|
3
|
-
> **Note:** This is the **RealClaw** internal branch (`openclaw`). Write commands
|
|
3
|
+
> **Note:** This is the **RealClaw** internal branch (`openclaw`). Write commands emit unsigned transactions by default (back-compat with the pre-Privy CLI); add `--execute` to sign and broadcast on-chain via the Byreal Privy proxy. All write commands require `--wallet-address <address>` (no local keypair setup). Package name: `@byreal-io/byreal-cli-realclaw`.
|
|
4
4
|
|
|
5
5
|
Agent skills for [Byreal](https://byreal.io) — a concentrated liquidity (CLMM) DEX on Solana. Every command supports structured JSON output, and the built-in skill system lets AI agents discover and use all capabilities automatically.
|
|
6
6
|
|
|
@@ -52,14 +52,67 @@ byreal-cli swap execute \
|
|
|
52
52
|
--output-mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
|
|
53
53
|
--amount 0.1 --dry-run
|
|
54
54
|
|
|
55
|
-
#
|
|
56
|
-
byreal-cli
|
|
55
|
+
# Same swap — emit unsigned base64 transaction for an external signer (default, back-compat)
|
|
56
|
+
byreal-cli swap execute \
|
|
57
57
|
--wallet-address <your-wallet-address> \
|
|
58
|
-
--
|
|
58
|
+
--input-mint So11111111111111111111111111111111111111112 \
|
|
59
|
+
--output-mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
|
|
60
|
+
--amount 0.1
|
|
61
|
+
|
|
62
|
+
# Same swap — sign + broadcast on-chain via Privy
|
|
63
|
+
byreal-cli swap execute \
|
|
64
|
+
--wallet-address <your-wallet-address> \
|
|
65
|
+
--input-mint So11111111111111111111111111111111111111112 \
|
|
66
|
+
--output-mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
|
|
67
|
+
--amount 0.1 --execute
|
|
59
68
|
```
|
|
60
69
|
|
|
61
70
|
All commands support `-o json` for structured output.
|
|
62
71
|
|
|
72
|
+
## Execution Modes (write commands)
|
|
73
|
+
|
|
74
|
+
Write commands (`swap execute`, `positions open/close/...`, plugin write commands) support three modes:
|
|
75
|
+
|
|
76
|
+
| Flag | Behavior |
|
|
77
|
+
| -------------- | ---------------------------------------------------------------------------------------------- |
|
|
78
|
+
| (none) | **Default (back-compat)**: emit `{ unsignedTransactions: [base64] }` for an external signer |
|
|
79
|
+
| `--execute` | Sign + broadcast via the Byreal Privy proxy → returns `{ signature, ... }` |
|
|
80
|
+
| `--dry-run` | Preview only, no transaction generated |
|
|
81
|
+
|
|
82
|
+
`--dry-run` and `--execute` are mutually exclusive.
|
|
83
|
+
|
|
84
|
+
### Privy Setup (required for `--execute`)
|
|
85
|
+
|
|
86
|
+
The CLI signs transactions via the Byreal Privy proxy. Configure either:
|
|
87
|
+
|
|
88
|
+
**Option A — multi-wallet config (`~/.openclaw/realclaw-config.json`):**
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"baseUrl": "https://api2.byreal.io",
|
|
93
|
+
"apiBasePath": "/byreal/api/privy-proxy/v1",
|
|
94
|
+
"wallets": [
|
|
95
|
+
{ "address": "<your-solana-pubkey>", "token": "oc_at_...", "type": "solana" }
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Option B — legacy single token:**
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
echo "oc_at_..." > ~/.openclaw/agent_token
|
|
104
|
+
byreal-cli config set privy_proxy_url https://api2.byreal.io
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Option C — environment variables (CI / debug):**
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
export AGENT_TOKEN="oc_at_..."
|
|
111
|
+
export PRIVY_PROXY_URL="https://api2.byreal.io"
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
If Privy is not configured, `--execute` fails fast with `PRIVY_NOT_CONFIGURED` and actionable suggestions; the CLI never silently degrades. Drop `--execute` to keep the default unsigned-transaction output and sign with an external tool.
|
|
115
|
+
|
|
63
116
|
## Commands
|
|
64
117
|
|
|
65
118
|
| Command | Description |
|