makaron-cli 0.8.1 → 0.8.2

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.
Files changed (2) hide show
  1. package/bin/makaron.mjs +52 -18
  2. package/package.json +1 -1
package/bin/makaron.mjs CHANGED
@@ -1252,6 +1252,48 @@ function saveMcpImage(result, outputPath) {
1252
1252
  return null;
1253
1253
  }
1254
1254
 
1255
+ function wantsHelp(values) {
1256
+ return values.includes('--help') || values.includes('-h');
1257
+ }
1258
+
1259
+ function printResponsesUsage() {
1260
+ console.log(`Responses commands:
1261
+ responses get <runId> Get status and output (JSON)
1262
+ responses get <runId> --wait Poll until completed
1263
+ responses get <runId> --pick <field> Extract: first_image_url, first_video_url, project_url, output
1264
+ responses next <runId> --json New Agent entry: compact timeline + checkpoint guidance
1265
+ responses handle <messageId> --run <runId> --choice approve|revise|ask_user|continue
1266
+ responses deliver <artifactId> --run <runId> Record artifact delivered to the user
1267
+ responses events <runId> --jsonl Emit message/approval/artifact events for external Agents
1268
+ responses timeline <runId> --jsonl Alias for responses events
1269
+ responses timeline <runId> --checkpoint-mode off Disable text-only checkpoints for pure Q&A
1270
+ responses approve <messageId> --run <runId> Record approval for a Makaron message
1271
+ responses revise <messageId> --run <runId> Record revision request for a Makaron message
1272
+ responses ask-user <messageId> --run <runId> Record that the user must decide
1273
+ responses continue <messageId> --run <runId> Record continue decision
1274
+ responses watch <runId> --jsonl Watch until done (incremental events)
1275
+ responses list --project <id> List runs for a project
1276
+ `);
1277
+ }
1278
+
1279
+ function printResponsesSubcommandUsage(sub) {
1280
+ const usages = {
1281
+ get: 'Usage: makaron responses get <runId> [--wait] [--json] [--pick <field>]',
1282
+ watch: 'Usage: makaron responses watch <runId> [--jsonl] [--interval <ms>]',
1283
+ next: 'Usage: makaron responses next <runId> [--json] [--checkpoint-mode service|off] [--no-fail]',
1284
+ events: 'Usage: makaron responses events <runId> [--jsonl] [--compact] [--checkpoint-mode service|off] [--follow] [--interval <ms>] [--fail-on-unapproved]',
1285
+ timeline: 'Usage: makaron responses timeline <runId> [--jsonl] [--compact] [--checkpoint-mode service|off] [--follow] [--interval <ms>] [--fail-on-unapproved]',
1286
+ deliver: 'Usage: makaron responses deliver <artifactId> --run <runId> [--channel <name>] [--message-id <id>] [--note <text>]',
1287
+ handle: 'Usage: makaron responses handle <messageId> --run <runId> --choice approve|revise|ask_user|continue [--note <text>]',
1288
+ approve: 'Usage: makaron responses approve <messageId> --run <runId> [--note <text>]',
1289
+ revise: 'Usage: makaron responses revise <messageId> --run <runId> [--note <text>]',
1290
+ 'ask-user': 'Usage: makaron responses ask-user <messageId> --run <runId> [--note <text>]',
1291
+ continue: 'Usage: makaron responses continue <messageId> --run <runId> [--note <text>]',
1292
+ list: 'Usage: makaron responses list --project <id>',
1293
+ };
1294
+ console.log(usages[sub] || 'Usage: makaron responses --help');
1295
+ }
1296
+
1255
1297
  async function analyzeVideoCli(baseUrl, headers, rawVideo, questionParts) {
1256
1298
  if (!rawVideo) {
1257
1299
  console.error('Usage: makaron analyze --video <file|url> ["question"]');
@@ -1479,8 +1521,16 @@ if (command === '--version' || command === '-v' || command === 'version') {
1479
1521
  }
1480
1522
  }
1481
1523
  } else if (command === 'responses' || command === 'run') {
1482
- const { headers, baseUrl } = getAuth();
1483
1524
  const sub = args[1];
1525
+ if (!sub || sub === '--help' || sub === '-h') {
1526
+ printResponsesUsage();
1527
+ process.exit(0);
1528
+ }
1529
+ if (wantsHelp(args.slice(2))) {
1530
+ printResponsesSubcommandUsage(sub);
1531
+ process.exit(0);
1532
+ }
1533
+ const { headers, baseUrl } = getAuth();
1484
1534
 
1485
1535
  if (sub === 'get') {
1486
1536
  const runId = args[2];
@@ -1616,23 +1666,7 @@ if (command === '--version' || command === '-v' || command === 'version') {
1616
1666
  }
1617
1667
 
1618
1668
  } else {
1619
- console.log(`Responses commands:
1620
- responses get <runId> Get status and output (JSON)
1621
- responses get <runId> --wait Poll until completed
1622
- responses get <runId> --pick <field> Extract: first_image_url, first_video_url, project_url, output
1623
- responses next <runId> --json New Agent entry: compact timeline + checkpoint guidance
1624
- responses handle <messageId> --run <runId> --choice approve|revise|ask_user|continue
1625
- responses deliver <artifactId> --run <runId> Record artifact delivered to the user
1626
- responses events <runId> --jsonl Emit message/approval/artifact events for external Agents
1627
- responses timeline <runId> --jsonl Alias for responses events
1628
- responses timeline <runId> --checkpoint-mode off Disable text-only checkpoints for pure Q&A
1629
- responses approve <messageId> --run <runId> Record approval for a Makaron message
1630
- responses revise <messageId> --run <runId> Record revision request for a Makaron message
1631
- responses ask-user <messageId> --run <runId> Record that the user must decide
1632
- responses continue <messageId> --run <runId> Record continue decision
1633
- responses watch <runId> --jsonl Watch until done (incremental events)
1634
- responses list --project <id> List runs for a project
1635
- `);
1669
+ printResponsesUsage();
1636
1670
  }
1637
1671
  } else if (command === 'list' || command === 'ls') {
1638
1672
  const { headers, baseUrl } = getAuth();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
5
5
  "type": "module",
6
6
  "scripts": {