@heyamiko/amiko-cli 0.11.0-beta.2 → 0.12.0-beta.1
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 +84 -2
- package/dist/index.js +3718 -1194
- package/package.json +1 -1
- package/skills/SKILL.md +8 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @heyamiko/amiko-cli (v0.11.0-beta.
|
|
1
|
+
# @heyamiko/amiko-cli (v0.11.0-beta.3)
|
|
2
2
|
|
|
3
3
|
Manage wallets, credits, swaps, MPP marketplace services, and your Amiko twin (identity, documents, voice, avatar, friends, feed) from the terminal. Works for both human users and AI agents running on OpenClaw.
|
|
4
4
|
|
|
@@ -116,6 +116,88 @@ Pricing is OpenAI pass-through × 1.30 markup, paid in AMIKO at the live AMIKO/U
|
|
|
116
116
|
|
|
117
117
|
Image generation typically takes 20–60s. In non-TTY environments (agents, piped shells), the CLI prints a `…still working (Ns elapsed)` tick to stderr every 3s so the parent process can tell it hasn't hung.
|
|
118
118
|
|
|
119
|
+
## Create Studio
|
|
120
|
+
|
|
121
|
+
The CLI half of the platform's Create Studio. `amiko create` generates media through Amiko's own authenticated endpoints (not the raw MPP pay-per-call surface `amiko markets` uses). Generation runs **asynchronously** and is **charged on success** from your twin's wallet — a failed or timed-out generation is never billed, and there's no up-front payment.
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
amiko create image "a sunset over mountains" # default gpt-image-2, 1:1
|
|
125
|
+
amiko create image "logo" --aspect 16:9 --model gpt-image-2 # widescreen
|
|
126
|
+
amiko create video "a whale in space" --resolution 768P --seconds 6
|
|
127
|
+
amiko create tts "Hello world" --voice 21m00Tcm4TlvDq8ikWAM
|
|
128
|
+
amiko create music "lo-fi chill beat" --duration 30000
|
|
129
|
+
amiko create music --lyrics "..." --instrumental # instrumental
|
|
130
|
+
amiko create sfx "thunder and heavy rain" --duration 5
|
|
131
|
+
amiko create image "banner" --raw # raw JSON
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Modes: `image`, `video`, `tts`, `music`, `sfx` (mirrors the platform Create Studio).
|
|
135
|
+
|
|
136
|
+
**Common flags (all subcommands):**
|
|
137
|
+
|
|
138
|
+
| Flag | Description |
|
|
139
|
+
|------|-------------|
|
|
140
|
+
| `--token <symbol>` | Charge token: `AMIKO`, `USDC`, `USDT`, `SOL` (default: auto, AMIKO-first) |
|
|
141
|
+
| `--yes` | Skip the pre-spend confirmation (required in non-interactive shells) |
|
|
142
|
+
| `--raw` | Output the raw job result as JSON |
|
|
143
|
+
|
|
144
|
+
**`amiko create image <prompt>`**
|
|
145
|
+
|
|
146
|
+
| Flag | Default | Description |
|
|
147
|
+
|------|---------|-------------|
|
|
148
|
+
| `--model <model>` | `gpt-image-2` | Image model |
|
|
149
|
+
| `--aspect <ratio>` | `1:1` | Aspect ratio: `1:1`, `16:9`, `9:16`, `4:3`, `3:4` |
|
|
150
|
+
|
|
151
|
+
**`amiko create video <prompt>`**
|
|
152
|
+
|
|
153
|
+
| Flag | Default | Description |
|
|
154
|
+
|------|---------|-------------|
|
|
155
|
+
| `--model <model>` | `MiniMax-Hailuo-2.3-Fast` | Video model |
|
|
156
|
+
| `--resolution <res>` | `768P` | `512P`, `720P`, `768P`, `1080P` |
|
|
157
|
+
| `--seconds <n>` | `6` | Clip length: `6` or `10` |
|
|
158
|
+
| `--aspect <ratio>` | — | Aspect ratio (provider-dependent) |
|
|
159
|
+
| `--first-frame <url>` | — | Image-to-video: first frame URL or data URI |
|
|
160
|
+
|
|
161
|
+
**`amiko create tts <text>`**
|
|
162
|
+
|
|
163
|
+
| Flag | Default | Description |
|
|
164
|
+
|------|---------|-------------|
|
|
165
|
+
| `--model <model>` | `eleven_multilingual_v2` | TTS model id |
|
|
166
|
+
| `--voice <voiceId>` | `21m00Tcm4TlvDq8ikWAM` | Voice id |
|
|
167
|
+
|
|
168
|
+
**`amiko create music [prompt]`** — pass a prompt and/or `--lyrics`
|
|
169
|
+
|
|
170
|
+
| Flag | Default | Description |
|
|
171
|
+
|------|---------|-------------|
|
|
172
|
+
| `--model <model>` | `music-2.6` | `music_v1`, `music-2.6`, `music-cover` |
|
|
173
|
+
| `--lyrics <lyrics>` | — | Lyrics (optional) |
|
|
174
|
+
| `--duration <ms>` | — | Length in milliseconds |
|
|
175
|
+
| `--instrumental` | — | Instrumental (no vocals) |
|
|
176
|
+
|
|
177
|
+
**`amiko create sfx <text>`**
|
|
178
|
+
|
|
179
|
+
| Flag | Default | Description |
|
|
180
|
+
|------|---------|-------------|
|
|
181
|
+
| `--duration <seconds>` | — | Clip length in seconds |
|
|
182
|
+
|
|
183
|
+
### How it works (and getting the result)
|
|
184
|
+
|
|
185
|
+
The CLI **submits the job, then blocks and polls until it finishes** (video can take several minutes), printing the asset URL, whether you were charged, and the charge tx on success. In non-TTY environments it prints a `…still generating (Ns elapsed)` tick to stderr. `--raw` prints the full job result as JSON.
|
|
186
|
+
|
|
187
|
+
If the poll window elapses (10 min for video, 5 min otherwise) the CLI does **not** treat it as failure — the generation may still complete server-side. It prints the **job id**; retrieve the finished asset with either:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
amiko create status <jobId> # re-query that job (queryable ~24h)
|
|
191
|
+
amiko create media # list your recent generations (permanent)
|
|
192
|
+
amiko create media --service video --limit 5
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
- **`amiko create status <jobId>`** — re-polls the job once and prints its status / asset. Jobs stay queryable for ~24h.
|
|
196
|
+
- **`amiko create media`** — lists your recent Create Studio generations (URL, type, model, prompt, date). `--service <type>` filters, `--limit <n>` caps (max 50), `--raw` for JSON. Use this once a job id has expired, or just to browse.
|
|
197
|
+
- **Web:** `https://platform.heyamiko.com/media`
|
|
198
|
+
|
|
199
|
+
> `amiko markets image` still exists and is unchanged — it's the direct MPP pay-per-call path (pre-pay in AMIKO). Use `amiko create` for the Create Studio experience (async, charge-on-success); use `amiko markets` for raw MPP endpoints.
|
|
200
|
+
|
|
119
201
|
## Amazon
|
|
120
202
|
|
|
121
203
|
```bash
|
|
@@ -391,7 +473,7 @@ npm publish
|
|
|
391
473
|
|
|
392
474
|
## Changelog
|
|
393
475
|
|
|
394
|
-
### 0.11.0-beta.
|
|
476
|
+
### 0.11.0-beta.3
|
|
395
477
|
|
|
396
478
|
- **`amiko composio` removed (breaking).** The Composio OAuth-connection commands (`composio connect`, `composio disconnect`) are gone — `src/commands/composio.ts` deleted, `composio` command group dropped from `src/index.ts`. SKILL.md frontmatter, command-groups list, `--yes`-gated list, and the dedicated `## Composio` block are all removed; README's lead paragraph, architecture tree, destructive-ops list, Platform-table row, and Composio code-block example are updated to match. Scripts that called `amiko composio ...` will now error with "unknown command".
|
|
397
479
|
|