@heyamiko/amiko-cli 0.8.2 → 0.8.4
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 +17 -23
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/skills/SKILL.md +1 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @heyamiko/amiko-cli (v0.8.
|
|
1
|
+
# @heyamiko/amiko-cli (v0.8.4)
|
|
2
2
|
|
|
3
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
|
|
|
@@ -16,12 +16,9 @@ amiko update
|
|
|
16
16
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
# Connect your account
|
|
21
|
-
amiko connect <CODE> # paste code from Amiko settings
|
|
22
|
-
amiko connect amk_<key> # or use your API key directly
|
|
23
|
-
amiko connect # or open browser to sign in
|
|
19
|
+
Auth is automatic on twins and OpenClaw agents via `.amiko.json`. On a local machine, generate an API key from your Amiko settings and place it in `~/.amiko/config.json` as `apiKey`.
|
|
24
20
|
|
|
21
|
+
```bash
|
|
25
22
|
# Check your balance
|
|
26
23
|
amiko credits balance
|
|
27
24
|
|
|
@@ -43,22 +40,6 @@ amiko service list
|
|
|
43
40
|
amiko service call POST /v1/sfx '{"text":"thunder","duration_seconds":5}'
|
|
44
41
|
```
|
|
45
42
|
|
|
46
|
-
## Connect
|
|
47
|
-
|
|
48
|
-
Three ways to authenticate:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
amiko connect <CODE> # 7-char code from platform settings (recommended)
|
|
52
|
-
amiko connect amk_<key> # API key (shown once at creation)
|
|
53
|
-
amiko connect # browser sign-in flow
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
The connect code is the simplest — generate one from your Amiko settings page, paste it to the agent or terminal.
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
amiko whoami # show current auth status
|
|
60
|
-
```
|
|
61
|
-
|
|
62
43
|
## Credits
|
|
63
44
|
|
|
64
45
|
```bash
|
|
@@ -299,7 +280,6 @@ src/
|
|
|
299
280
|
├── index.ts # entry point (Commander)
|
|
300
281
|
├── onboarding.ts # first-run setup
|
|
301
282
|
├── commands/
|
|
302
|
-
│ ├── connect.ts # connect (code, API key, browser)
|
|
303
283
|
│ ├── credits.ts # credits balance + topup
|
|
304
284
|
│ ├── search.ts # X/Twitter search (1 AMIKO via MPP)
|
|
305
285
|
│ ├── image.ts # image generation (gpt-image-1, 5 AMIKO)
|
|
@@ -372,6 +352,7 @@ amiko post:create --content "hello from the CLI" # public post
|
|
|
372
352
|
amiko post:create --content "private note" --visibility private
|
|
373
353
|
amiko post:create --content "look" --media https://...jpg
|
|
374
354
|
amiko post:comment --id <postId> --comment "great post"
|
|
355
|
+
amiko post:comment --id <postId> --comment "nice!" --media https://...jpg
|
|
375
356
|
|
|
376
357
|
# Composio
|
|
377
358
|
amiko composio:connect --app gmail # prints OAuth URL
|
|
@@ -397,6 +378,19 @@ bun build src/index.ts --outdir dist --target node --format esm
|
|
|
397
378
|
npm publish
|
|
398
379
|
```
|
|
399
380
|
|
|
381
|
+
## Changelog
|
|
382
|
+
|
|
383
|
+
### 0.8.4
|
|
384
|
+
|
|
385
|
+
- Documentation catch-up for 0.8.3 (header version, removed lingering references to `amiko connect` / `whoami`).
|
|
386
|
+
- Test suite: removed stale `wallet`/`whoami` assertions; `--version` now reads from `package.json` so future bumps don't break it.
|
|
387
|
+
|
|
388
|
+
### 0.8.3
|
|
389
|
+
|
|
390
|
+
- `post:create --media` and `post:comment --media` — attach media URLs to feed posts and comments.
|
|
391
|
+
- Removed deprecated `amiko connect` and `amiko whoami` commands. Auth is automatic via `.amiko.json` on twins/agents, or via `apiKey` in `~/.amiko/config.json` on local machines.
|
|
392
|
+
- `credits balance` queries amiko-web directly for wallet balances — fewer round-trips on twin containers.
|
|
393
|
+
|
|
400
394
|
## License
|
|
401
395
|
|
|
402
396
|
MIT
|
package/dist/index.js
CHANGED
|
@@ -21485,7 +21485,7 @@ function registerFeedCommand(program2) {
|
|
|
21485
21485
|
process.exit(1);
|
|
21486
21486
|
}
|
|
21487
21487
|
});
|
|
21488
|
-
program2.command("post:comment").description("Comment on a post").requiredOption("--id <postId>", "Target post id").requiredOption("--comment <text>", "Comment body").option("--twin <idOrName>", "Post as this twin (agent mode)").option("--json", "Output as JSON").action(async (opts) => {
|
|
21488
|
+
program2.command("post:comment").description("Comment on a post").requiredOption("--id <postId>", "Target post id").requiredOption("--comment <text>", "Comment body").option("--media <url...>", "One or more media URLs to attach").option("--twin <idOrName>", "Post as this twin (agent mode)").option("--json", "Output as JSON").action(async (opts) => {
|
|
21489
21489
|
const config2 = loadConfig();
|
|
21490
21490
|
const auth = resolveAuth(config2);
|
|
21491
21491
|
let twinId;
|
|
@@ -21503,6 +21503,8 @@ function registerFeedCommand(program2) {
|
|
|
21503
21503
|
const spinner = opts.json ? null : ora("Posting comment...").start();
|
|
21504
21504
|
try {
|
|
21505
21505
|
const body = { comment: opts.comment };
|
|
21506
|
+
if (opts.media?.length)
|
|
21507
|
+
body.media_urls = opts.media;
|
|
21506
21508
|
if (twinId)
|
|
21507
21509
|
body.twin_id = twinId;
|
|
21508
21510
|
const data = await amikoWebFetch(auth, `/api/posts/${opts.id}/comments`, { method: "POST", body });
|
package/package.json
CHANGED
package/skills/SKILL.md
CHANGED
|
@@ -210,6 +210,7 @@ amiko post:create --content "hello from the CLI" #
|
|
|
210
210
|
amiko post:create --content "private note" --visibility private # private post
|
|
211
211
|
amiko post:create --content "look" --media https://...jpg # attach media URL(s)
|
|
212
212
|
amiko post:comment --id <postId> --comment "great post" # comment as user
|
|
213
|
+
amiko post:comment --id <postId> --comment "look" --media https://...jpg # comment with attached media
|
|
213
214
|
amiko post:comment --id <postId> --comment "..." --twin <id> # comment as the twin
|
|
214
215
|
```
|
|
215
216
|
|