@clipit-ai/cli 0.2.9 → 0.2.10

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/clipit.mjs +44 -1
  2. package/package.json +1 -1
package/bin/clipit.mjs CHANGED
@@ -9,7 +9,7 @@ import path from 'node:path';
9
9
  import process from 'node:process';
10
10
  import { fileURLToPath } from 'node:url';
11
11
 
12
- const VERSION = '0.2.9';
12
+ const VERSION = '0.2.10';
13
13
  const DEFAULT_BASE_URL = 'https://clipit.dev';
14
14
  const DEFAULT_SCOPES = [
15
15
  'clippy_agent',
@@ -485,6 +485,46 @@ function usage() {
485
485
  }
486
486
 
487
487
  function commandUsage(command, subcommand) {
488
+ if (command === 'clips' && subcommand === 'initialize-snapshot') {
489
+ return [
490
+ 'Usage:',
491
+ ' clipit clips initialize-snapshot <clipId> [options]',
492
+ '',
493
+ 'Required:',
494
+ ' <clipId> Clip to initialize or safely reinitialize',
495
+ '',
496
+ 'Optional:',
497
+ ' --aspect-ratio <ratio> 16:9, 9:16, 1:1, or 4:5',
498
+ ' --fit-background <mode> black or blur',
499
+ ' --quality <quality> standard, high, or 4k',
500
+ ' --captions <true|false> Explicitly enable or disable captions',
501
+ ' --caption-style <style> bold, minimal, neon, or classic',
502
+ ' --params <json|@file> Supply the full initializer request, including captionPresetId',
503
+ ' --profile <name> Named ClipIt credential profile',
504
+ ' --json Emit machine-readable JSON',
505
+ '',
506
+ 'Omitted snapshot settings preserve the clip\'s exact current editor state.',
507
+ ].join('\n');
508
+ }
509
+ if (command === 'exports' && subcommand === 'start') {
510
+ return [
511
+ 'Usage:',
512
+ ' clipit exports start --clip-id <id> --confirm [options]',
513
+ '',
514
+ 'Required:',
515
+ ' --clip-id <id> Clip to export from its verified current snapshot',
516
+ ' --confirm Confirm the export mutation',
517
+ '',
518
+ 'Optional:',
519
+ ' --params <json|@file> Additional export settings',
520
+ ' --idempotency-key <key> Stable retry identity; generated when omitted',
521
+ ' --max-credits <n> Refuse an estimated client charge above this amount',
522
+ ' --profile <name> Named ClipIt credential profile',
523
+ ' --json Emit machine-readable JSON',
524
+ '',
525
+ 'The CLI pins the current editor version and state hash before starting the export.',
526
+ ].join('\n');
527
+ }
488
528
  if (command === 'social' && subcommand === 'schedule') {
489
529
  return [
490
530
  'Usage:',
@@ -1808,6 +1848,9 @@ async function runTool(config, options, functionName) {
1808
1848
  return;
1809
1849
  }
1810
1850
  output(outputResult, options);
1851
+ if (result?.success === false) {
1852
+ process.exitCode = EXIT.SERVER;
1853
+ }
1811
1854
  }
1812
1855
 
1813
1856
  function workflowEndpoint(jobId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipit-ai/cli",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "ClipIt CLI for connecting shell-capable agents to ClipIt.",
5
5
  "type": "module",
6
6
  "bin": {