@heyamiko/amiko-cli 0.8.2 → 0.8.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 CHANGED
@@ -1,4 +1,4 @@
1
- # @heyamiko/amiko-cli (v0.8.1)
1
+ # @heyamiko/amiko-cli (v0.8.3)
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
- ```bash
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,14 @@ 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.3
384
+
385
+ - `post:create --media` and `post:comment --media` — attach media URLs to feed posts and comments.
386
+ - 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.
387
+ - `credits balance` queries amiko-web directly for wallet balances — fewer round-trips on twin containers.
388
+
400
389
  ## License
401
390
 
402
391
  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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyamiko/amiko-cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Amiko CLI — swap tokens, manage credits, bridge cross-chain, and call marketplace agents",
5
5
  "type": "module",
6
6
  "bin": {
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