@heyamiko/amiko-cli 0.7.1 → 0.7.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/dist/index.js +2 -1
- package/package.json +2 -3
- package/skills/SKILL.md +18 -8
- package/openclaw.plugin.json +0 -8
package/dist/index.js
CHANGED
|
@@ -74952,7 +74952,8 @@ function registerSwapCommand(program2) {
|
|
|
74952
74952
|
inputMint: input.mint,
|
|
74953
74953
|
outputMint: output.mint,
|
|
74954
74954
|
amount: amount2,
|
|
74955
|
-
slippageBps: parseInt(opts.slippage)
|
|
74955
|
+
slippageBps: parseInt(opts.slippage),
|
|
74956
|
+
quoteResponse: quote
|
|
74956
74957
|
})
|
|
74957
74958
|
});
|
|
74958
74959
|
if (!swapRes.ok) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heyamiko/amiko-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Amiko CLI — swap tokens, manage credits, bridge cross-chain, and call marketplace agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
-
"skills"
|
|
18
|
-
"openclaw.plugin.json"
|
|
17
|
+
"skills"
|
|
19
18
|
],
|
|
20
19
|
"keywords": [
|
|
21
20
|
"amiko",
|
package/skills/SKILL.md
CHANGED
|
@@ -11,22 +11,32 @@ The `amiko` CLI is installed globally. Auth and payments are automatic via `.ami
|
|
|
11
11
|
|
|
12
12
|
## Critical Rules
|
|
13
13
|
|
|
14
|
-
1. **
|
|
15
|
-
2. **Never
|
|
16
|
-
3. **
|
|
17
|
-
4. **
|
|
14
|
+
1. **Always confirm before spending.** Never run topup, swap, search, image, or any paid command without asking the user first. Show them what it will cost and wait for explicit approval.
|
|
15
|
+
2. **Never retry a failed command.** If a command returns an error, report it and stop. Every paid call costs tokens even on failure.
|
|
16
|
+
3. **Never suggest `amiko login` or `amiko connect`.** These commands don't exist. Auth is automatic via `.amiko.json`.
|
|
17
|
+
4. **Check balance before expensive operations.** Run `amiko credits balance` first if unsure about funds.
|
|
18
|
+
5. **Payments are automatic.** AMIKO tokens are transferred from your agent wallet on Solana for each paid service call.
|
|
18
19
|
|
|
19
20
|
## Commands
|
|
20
21
|
|
|
21
22
|
### Credits & Wallet
|
|
22
23
|
|
|
24
|
+
**Credits are NOT tokens.** 10,000 credits = $1.00 USD. The `topup` command's `<amount>` argument is in **credits**, not tokens. The CLI automatically converts credits to the equivalent token amount using live Jupiter prices.
|
|
25
|
+
|
|
23
26
|
```bash
|
|
24
27
|
amiko credits balance # credit balance + wallet balances
|
|
25
|
-
amiko credits topup 10000 --token AMIKO --yes #
|
|
26
|
-
amiko credits topup
|
|
28
|
+
amiko credits topup 10000 --token AMIKO --yes # buy 10,000 credits (~$1) paying in AMIKO from wallet
|
|
29
|
+
amiko credits topup 50000 --token USDC --yes # buy 50,000 credits (~$5) paying in USDC from wallet
|
|
30
|
+
amiko credits topup 10000 --token SOL --yes # buy 10,000 credits (~$1) paying in SOL from wallet
|
|
27
31
|
```
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
**How topup works:**
|
|
34
|
+
1. You specify credits (e.g. 10000 = $1.00)
|
|
35
|
+
2. CLI fetches live token price via Jupiter
|
|
36
|
+
3. Transfers the equivalent token amount from your agent wallet to treasury
|
|
37
|
+
4. Verifies on-chain and credits your account
|
|
38
|
+
|
|
39
|
+
Supported tokens: AMIKO, SOL, USDC, USDT. All payments come from your agent's Solana wallet.
|
|
30
40
|
|
|
31
41
|
### Search (1 AMIKO)
|
|
32
42
|
|
|
@@ -115,4 +125,4 @@ amiko --help # all commands
|
|
|
115
125
|
| Text-to-speech | 1 AMIKO | `amiko service tts <voiceId> "<text>"` |
|
|
116
126
|
| Swap quote | Free | `amiko swap quote ...` |
|
|
117
127
|
| Swap execute | Gas only | `amiko swap send ...` |
|
|
118
|
-
| Credit top-up |
|
|
128
|
+
| Credit top-up | Amount in credits (10,000 = $1) | `amiko credits topup <credits>` |
|
package/openclaw.plugin.json
DELETED