makaron-cli 0.5.3 → 0.5.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 +19 -6
- package/SKILL.md +17 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Makaron CLI — Agent Integration Skill
|
|
2
2
|
|
|
3
|
+
> **makaron.app** is for humans. **makaron-cli** is for AI agents.
|
|
4
|
+
|
|
3
5
|
Makaron is a multimodal AI creative agent. You talk to it via `makaron chat`, and it produces images, videos, music, and animated designs — all saved to a persistent project.
|
|
4
6
|
|
|
5
7
|
## Setup
|
|
@@ -7,12 +9,23 @@ Makaron is a multimodal AI creative agent. You talk to it via `makaron chat`, an
|
|
|
7
9
|
```bash
|
|
8
10
|
npm install -g makaron-cli
|
|
9
11
|
# or use directly: npx makaron-cli
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Get your API key
|
|
10
15
|
|
|
16
|
+
1. Go to [makaron.app](https://makaron.app) and log in
|
|
17
|
+
2. Open the menu (top-right)
|
|
18
|
+
3. Click **Get API Key**
|
|
19
|
+
4. Copy your `mk_live_...` key
|
|
20
|
+
|
|
21
|
+
```bash
|
|
11
22
|
export MAKARON_API_KEY=mk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
12
23
|
```
|
|
13
24
|
|
|
14
25
|
Verify: `npx makaron-cli list` should show projects.
|
|
15
26
|
|
|
27
|
+
> **Agent Self-Registration**: Coming soon — agents will be able to register and obtain API keys programmatically without human login.
|
|
28
|
+
|
|
16
29
|
## Core Workflow
|
|
17
30
|
|
|
18
31
|
```bash
|
|
@@ -181,7 +194,7 @@ type MakaronOutput =
|
|
|
181
194
|
| Add/remove elements | "add a cat on the table" / "remove background person" |
|
|
182
195
|
| Text-to-image | "generate a cyberpunk cityscape" |
|
|
183
196
|
| Video from image | "create a 5 second video of her walking" |
|
|
184
|
-
| Video with model | "
|
|
197
|
+
| Video with model | "use seedance model, make a 5s video" |
|
|
185
198
|
| Background music | "add calm piano music" |
|
|
186
199
|
| Motion design | "create an Instagram story with animated text" |
|
|
187
200
|
| Multi-step | "edit the photo then make a video from it" |
|
|
@@ -191,15 +204,15 @@ type MakaronOutput =
|
|
|
191
204
|
When serving end-users in a chat environment (Feishu, Slack, Discord), use this proactive message pattern:
|
|
192
205
|
|
|
193
206
|
```bash
|
|
194
|
-
# 1. Immediately
|
|
195
|
-
send_message "
|
|
207
|
+
# 1. Immediately acknowledge the user
|
|
208
|
+
send_message "Got it! Working on it now..."
|
|
196
209
|
|
|
197
210
|
# 2. Create project + submit (one command)
|
|
198
211
|
RUN_ID=$(npx makaron-cli chat --project auto --image photo.jpg -b "make it cinematic and create a 5s video")
|
|
199
212
|
|
|
200
213
|
# 3. Send project link proactively
|
|
201
214
|
PROJECT_URL=$(npx makaron-cli responses get $RUN_ID --pick project_url)
|
|
202
|
-
send_message "
|
|
215
|
+
send_message "Project created: $PROJECT_URL"
|
|
203
216
|
|
|
204
217
|
# 4. Watch and send each artifact as it appears
|
|
205
218
|
npx makaron-cli responses watch $RUN_ID --jsonl | while read -r line; do
|
|
@@ -215,7 +228,7 @@ npx makaron-cli responses watch $RUN_ID --jsonl | while read -r line; do
|
|
|
215
228
|
# Video ready — send as media
|
|
216
229
|
send_video "$URL"
|
|
217
230
|
elif [ "$EVENT" = "done" ]; then
|
|
218
|
-
send_message "
|
|
231
|
+
send_message "All done!"
|
|
219
232
|
fi
|
|
220
233
|
done
|
|
221
234
|
```
|
|
@@ -223,7 +236,7 @@ done
|
|
|
223
236
|
**Key principles for service agents:**
|
|
224
237
|
- **Proactive, not reactive**: Don't wait for the full run to finish. Send progress messages and artifacts as they appear.
|
|
225
238
|
- **Media over links**: When possible, send images/videos as native media in the chat (download URL and upload as attachment), not just paste the URL.
|
|
226
|
-
- **Immediate acknowledgment**: Reply
|
|
239
|
+
- **Immediate acknowledgment**: Reply within 1 second of receiving user request. Don't make users wait for project creation.
|
|
227
240
|
- **Project link early**: Send the project URL right after creation so users can check anytime.
|
|
228
241
|
- **Stream artifacts**: Use `watch --jsonl` to push each artifact the moment it's ready. An image at 15s should reach the user at 15s, not after the video finishes at 5 minutes.
|
|
229
242
|
|
package/SKILL.md
CHANGED
|
@@ -5,16 +5,27 @@ description: Use Makaron CLI to generate AI images, videos, music, and motion de
|
|
|
5
5
|
|
|
6
6
|
# Makaron CLI — Agent Integration Skill
|
|
7
7
|
|
|
8
|
+
> **makaron.app** is for humans. **makaron-cli** is for AI agents.
|
|
9
|
+
|
|
8
10
|
Makaron is a multimodal AI creative agent. You talk to it via `makaron chat`, and it produces images, videos, music, and animated designs — all saved to a persistent project.
|
|
9
11
|
|
|
10
12
|
## Setup
|
|
11
13
|
|
|
14
|
+
### Get your API key
|
|
15
|
+
|
|
16
|
+
1. Go to [makaron.app](https://makaron.app) and log in
|
|
17
|
+
2. Open the menu (top-right)
|
|
18
|
+
3. Click **Get API Key**
|
|
19
|
+
4. Copy your `mk_live_...` key
|
|
20
|
+
|
|
12
21
|
```bash
|
|
13
22
|
export MAKARON_API_KEY=mk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
14
23
|
```
|
|
15
24
|
|
|
16
25
|
Verify: `npx makaron-cli list` should show projects.
|
|
17
26
|
|
|
27
|
+
> **Agent Self-Registration**: Coming soon — agents will be able to register and obtain API keys programmatically without human login.
|
|
28
|
+
|
|
18
29
|
## Core Workflow
|
|
19
30
|
|
|
20
31
|
```bash
|
|
@@ -183,7 +194,7 @@ type MakaronOutput =
|
|
|
183
194
|
| Add/remove elements | "add a cat on the table" / "remove background person" |
|
|
184
195
|
| Text-to-image | "generate a cyberpunk cityscape" |
|
|
185
196
|
| Video from image | "create a 5 second video of her walking" |
|
|
186
|
-
| Video with model | "
|
|
197
|
+
| Video with model | "use seedance model, make a 5s video" |
|
|
187
198
|
| Background music | "add calm piano music" |
|
|
188
199
|
| Motion design | "create an Instagram story with animated text" |
|
|
189
200
|
| Multi-step | "edit the photo then make a video from it" |
|
|
@@ -193,15 +204,15 @@ type MakaronOutput =
|
|
|
193
204
|
When serving end-users in a chat environment (Feishu, Slack, Discord), use this proactive message pattern:
|
|
194
205
|
|
|
195
206
|
```bash
|
|
196
|
-
# 1. Immediately
|
|
197
|
-
send_message "
|
|
207
|
+
# 1. Immediately acknowledge the user
|
|
208
|
+
send_message "Got it! Working on it now..."
|
|
198
209
|
|
|
199
210
|
# 2. Create project + submit (one command)
|
|
200
211
|
RUN_ID=$(npx makaron-cli chat --project auto --image photo.jpg -b "make it cinematic and create a 5s video")
|
|
201
212
|
|
|
202
213
|
# 3. Send project link proactively
|
|
203
214
|
PROJECT_URL=$(npx makaron-cli responses get $RUN_ID --pick project_url)
|
|
204
|
-
send_message "
|
|
215
|
+
send_message "Project created: $PROJECT_URL"
|
|
205
216
|
|
|
206
217
|
# 4. Watch and send each artifact as it appears
|
|
207
218
|
npx makaron-cli responses watch $RUN_ID --jsonl | while read -r line; do
|
|
@@ -217,7 +228,7 @@ npx makaron-cli responses watch $RUN_ID --jsonl | while read -r line; do
|
|
|
217
228
|
# Video ready — send as media
|
|
218
229
|
send_video "$URL"
|
|
219
230
|
elif [ "$EVENT" = "done" ]; then
|
|
220
|
-
send_message "
|
|
231
|
+
send_message "All done!"
|
|
221
232
|
fi
|
|
222
233
|
done
|
|
223
234
|
```
|
|
@@ -225,7 +236,7 @@ done
|
|
|
225
236
|
**Key principles for service agents:**
|
|
226
237
|
- **Proactive, not reactive**: Don't wait for the full run to finish. Send progress messages and artifacts as they appear.
|
|
227
238
|
- **Media over links**: When possible, send images/videos as native media in the chat (download URL and upload as attachment), not just paste the URL.
|
|
228
|
-
- **Immediate acknowledgment**: Reply
|
|
239
|
+
- **Immediate acknowledgment**: Reply within 1 second of receiving user request. Don't make users wait for project creation.
|
|
229
240
|
- **Project link early**: Send the project URL right after creation so users can check anytime.
|
|
230
241
|
- **Stream artifacts**: Use `watch --jsonl` to push each artifact the moment it's ready. An image at 15s should reach the user at 15s, not after the video finishes at 5 minutes.
|
|
231
242
|
|