@heyamiko/amiko-cli 0.7.1 → 0.7.3
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 +2 -0
- package/dist/index.js +2 -1
- package/package.json +2 -3
- package/skills/SKILL.md +28 -8
- package/openclaw.plugin.json +0 -8
package/README.md
CHANGED
|
@@ -200,6 +200,8 @@ openclaw plugins install @heyamiko/amiko-cli
|
|
|
200
200
|
|
|
201
201
|
This registers the CLI's skill file so the agent discovers all commands through the normal skill system. Updates to the CLI (`npm update -g @heyamiko/amiko-cli`) also update the skill docs.
|
|
202
202
|
|
|
203
|
+
> **The skill is documentation, not a tool.** Agents must run `amiko <command>` through their shell/bash execution tool. Weaker models sometimes slugify the skill name (`amiko-cli` → `amiko_cli`) and try to call it as a tool, which fails with `Tool amiko_cli not found`. If you see that error, switch to a model with stronger tool discipline (e.g. Claude Sonnet 4.6) — see `skills/SKILL.md`.
|
|
204
|
+
|
|
203
205
|
### Authentication
|
|
204
206
|
|
|
205
207
|
Agents auto-authenticate via `.amiko.json` — no manual connect needed. The platform writes this file during twin init with wallets, billing config, and twin token.
|
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.3",
|
|
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
|
@@ -7,26 +7,46 @@ metadata: {"openclaw":{"emoji":"🤖","requires":{"bins":["node"]}}}
|
|
|
7
7
|
|
|
8
8
|
# Amiko CLI
|
|
9
9
|
|
|
10
|
+
## How to invoke
|
|
11
|
+
|
|
12
|
+
Run `amiko <command>` via your **shell execution tool** (e.g. `bash`). This skill is a documentation reference, not a callable tool. **Do NOT** try to call `amiko_cli`, `amiko-cli`, `amiko`, or this skill's name as a tool — no such tool exists. The only working invocation is the shell command `amiko`.
|
|
13
|
+
|
|
10
14
|
The `amiko` CLI is installed globally. Auth and payments are automatic via `.amiko.json` — never suggest `amiko login` or `amiko connect`.
|
|
11
15
|
|
|
12
16
|
## Critical Rules
|
|
13
17
|
|
|
14
|
-
1. **
|
|
15
|
-
2. **Never
|
|
16
|
-
3. **
|
|
17
|
-
4. **
|
|
18
|
+
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.
|
|
19
|
+
2. **Never retry a failed command.** If a command returns an error, report it and stop. Every paid call costs tokens even on failure.
|
|
20
|
+
3. **Never suggest `amiko login` or `amiko connect`.** These commands don't exist. Auth is automatic via `.amiko.json`.
|
|
21
|
+
4. **Check balance before expensive operations.** Run `amiko credits balance` first if unsure about funds.
|
|
22
|
+
5. **Payments are automatic.** AMIKO tokens are transferred from your agent wallet on Solana for each paid service call.
|
|
18
23
|
|
|
19
24
|
## Commands
|
|
20
25
|
|
|
21
26
|
### Credits & Wallet
|
|
22
27
|
|
|
28
|
+
**Credits are NOT tokens.** 10,000 credits = $1.00 USD. The `topup` command's `<amount>` argument is always in **credits**, not tokens.
|
|
29
|
+
|
|
30
|
+
**When the user says "top up X AMIKO" or "top up X dollars"** — they mean spend that amount of tokens/dollars. You must convert to credits first:
|
|
31
|
+
- "top up 1 AMIKO" → check AMIKO price (~$0.04), so 1 AMIKO ≈ $0.04 ≈ 400 credits → `amiko credits topup 400 --token AMIKO --yes`
|
|
32
|
+
- "top up $5" → $5 = 50,000 credits → `amiko credits topup 50000 --token AMIKO --yes`
|
|
33
|
+
- "top up 10000 credits" → already in credits → `amiko credits topup 10000 --token AMIKO --yes`
|
|
34
|
+
|
|
35
|
+
Always clarify with the user: "That's X credits (≈$Y), paying Z AMIKO from your wallet. Proceed?"
|
|
36
|
+
|
|
23
37
|
```bash
|
|
24
38
|
amiko credits balance # credit balance + wallet balances
|
|
25
|
-
amiko credits topup 10000 --token AMIKO --yes #
|
|
26
|
-
amiko credits topup
|
|
39
|
+
amiko credits topup 10000 --token AMIKO --yes # buy 10,000 credits (~$1) paying in AMIKO
|
|
40
|
+
amiko credits topup 50000 --token USDC --yes # buy 50,000 credits (~$5) paying in USDC
|
|
27
41
|
```
|
|
28
42
|
|
|
29
|
-
|
|
43
|
+
**How topup works:**
|
|
44
|
+
1. You specify credits (e.g. 10000 = $1.00)
|
|
45
|
+
2. CLI fetches live token price via Jupiter
|
|
46
|
+
3. Transfers the equivalent token amount from your agent wallet to treasury
|
|
47
|
+
4. Verifies on-chain and credits your account
|
|
48
|
+
|
|
49
|
+
Supported tokens: AMIKO, SOL, USDC, USDT. All payments come from your agent's Solana wallet.
|
|
30
50
|
|
|
31
51
|
### Search (1 AMIKO)
|
|
32
52
|
|
|
@@ -115,4 +135,4 @@ amiko --help # all commands
|
|
|
115
135
|
| Text-to-speech | 1 AMIKO | `amiko service tts <voiceId> "<text>"` |
|
|
116
136
|
| Swap quote | Free | `amiko swap quote ...` |
|
|
117
137
|
| Swap execute | Gas only | `amiko swap send ...` |
|
|
118
|
-
| Credit top-up |
|
|
138
|
+
| Credit top-up | Amount in credits (10,000 = $1) | `amiko credits topup <credits>` |
|
package/openclaw.plugin.json
DELETED