@heyamiko/amiko-cli 0.7.10 → 0.8.0
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 +64 -4
- package/dist/index.js +1308 -91
- package/package.json +3 -2
- package/skills/SKILL.md +74 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# @heyamiko/amiko-cli (v0.
|
|
1
|
+
# @heyamiko/amiko-cli (v0.8.0)
|
|
2
2
|
|
|
3
|
-
Manage wallets, credits, swaps,
|
|
3
|
+
Manage wallets, credits, swaps, MPP marketplace services, and your Amiko twin (identity, documents, voice, avatar, friends, feed, Composio apps) from the terminal. Works for both human users and AI agents running on OpenClaw.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -323,21 +323,81 @@ src/
|
|
|
323
323
|
│ ├── discovery.ts # MPP service info
|
|
324
324
|
│ ├── login.ts # Privy browser login
|
|
325
325
|
│ ├── config.ts # config management
|
|
326
|
-
│
|
|
326
|
+
│ ├── update.ts # self-update
|
|
327
|
+
│ ├── accounts.ts # accounts, info (twin identity readout)
|
|
328
|
+
│ ├── twin.ts # twin:update (name/description/public)
|
|
329
|
+
│ ├── docs.ts # RAG documents (list, upload, delete, presign)
|
|
330
|
+
│ ├── voice.ts # voice:design, voice:create, voice:clone, voice:reset
|
|
331
|
+
│ ├── avatar.ts # avatar:update
|
|
332
|
+
│ ├── friends.ts # friends list, add, accept, remove
|
|
333
|
+
│ ├── feed.ts # feed, post:comment
|
|
334
|
+
│ └── composio.ts # composio:connect, composio:disconnect
|
|
327
335
|
└── lib/
|
|
328
336
|
├── config.ts # ~/.amiko/config.json
|
|
329
337
|
├── agent-config.ts # .amiko.json reader + auth resolution
|
|
330
338
|
├── api.ts # HTTP client (MPP + billing)
|
|
331
|
-
├──
|
|
339
|
+
├── amiko-web.ts # HTTP client for amiko-web (twin + social REST)
|
|
340
|
+
├── twin-context.ts # resolveTwinId (--twin | .amiko.json | config.twinId)
|
|
341
|
+
├── file-input.ts # path | https URL | stdin → Buffer + mime
|
|
342
|
+
├── format.ts # terminal output helpers + renderOutput(--json)
|
|
343
|
+
├── confirm.ts # requireApproval + confirmDestructive
|
|
332
344
|
├── mpp-topup.ts # MPP SDK topup helper
|
|
333
345
|
├── across.ts # Across Protocol bridge
|
|
334
346
|
└── tempo.ts # Tempo chain helpers
|
|
335
347
|
```
|
|
336
348
|
|
|
349
|
+
## Twin & Social Commands (v0.8.0)
|
|
350
|
+
|
|
351
|
+
The CLI also manages the twin's identity, documents, voice, avatar, friends, feed, and Composio connections via the amiko-web platform API.
|
|
352
|
+
|
|
353
|
+
```bash
|
|
354
|
+
# Identity
|
|
355
|
+
amiko accounts # show resolved identity (mode, platform, user, twin, wallets)
|
|
356
|
+
amiko info # fetch twin info (name, description, voice, avatar, visibility)
|
|
357
|
+
amiko twin:update --name "New Name"
|
|
358
|
+
amiko twin:update --description "Bio"
|
|
359
|
+
amiko twin:update --public true --yes # change public visibility (destructive)
|
|
360
|
+
|
|
361
|
+
# Documents (RAG)
|
|
362
|
+
amiko docs # list
|
|
363
|
+
amiko docs:upload ./notes.pdf # path, URL, or `- --stdin`
|
|
364
|
+
amiko docs:delete <docId> --yes
|
|
365
|
+
amiko docs:presign ./file.pdf # presigned S3 URL only
|
|
366
|
+
|
|
367
|
+
# Voice
|
|
368
|
+
amiko voice:design --description "warm, low, male, confident, measured"
|
|
369
|
+
amiko voice:create --sample <generated_voice_id>
|
|
370
|
+
amiko voice:clone ./me.mp3
|
|
371
|
+
amiko voice:reset --yes
|
|
372
|
+
|
|
373
|
+
# Avatar
|
|
374
|
+
amiko avatar:update --file ./portrait.png --yes
|
|
375
|
+
|
|
376
|
+
# Friends
|
|
377
|
+
amiko friends # list
|
|
378
|
+
amiko friends:add --id <userId>
|
|
379
|
+
amiko friends:accept <friendshipId>
|
|
380
|
+
amiko friends:remove <friendshipId> --yes
|
|
381
|
+
|
|
382
|
+
# Feed & posts
|
|
383
|
+
amiko feed # friends feed (default)
|
|
384
|
+
amiko feed --type for_you --limit 20
|
|
385
|
+
amiko post:comment --id <postId> --comment "great post"
|
|
386
|
+
|
|
387
|
+
# Composio
|
|
388
|
+
amiko composio:connect --app gmail # prints OAuth URL
|
|
389
|
+
amiko composio:disconnect --app gmail --yes
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
Every new command accepts `--json` for structured output and `--twin <id>` where a target twin is needed.
|
|
393
|
+
|
|
394
|
+
**Destructive or identity-changing commands** (`docs:delete`, `friends:remove`, `composio:disconnect`, `voice:reset`, `avatar:update`, `twin:update --public`) prompt for confirmation in a TTY and require `--yes` in non-interactive shells.
|
|
395
|
+
|
|
337
396
|
## API Endpoints
|
|
338
397
|
|
|
339
398
|
| Client | Base URL | Purpose |
|
|
340
399
|
|--------|----------|---------|
|
|
400
|
+
| Amiko Web | `platform.heyamiko.com` | Twin identity, docs, voice, avatar, friends, feed, Composio |
|
|
341
401
|
| MPP API | `mpp.amikomarkets.com` | Marketplace services, search, image, audio |
|
|
342
402
|
| Billing API | `billing.heyamiko.com` | Credits, topup, wallet balances, keys |
|
|
343
403
|
|