studio-lumiere-cli 0.1.6 → 0.1.8

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,532 +1,61 @@
1
1
  # Studio Lumiere CLI
2
2
 
3
- Local SDK + CLI for AI-powered jewelry product photography. Generate editorial-quality images, videos, and compositions from reference jewelry photos.
4
-
5
- ```bash
6
- npx studio-lumiere-cli <command> [options]
7
- ```
3
+ Local SDK + CLI for AI-powered jewelry product photography. This package lives
4
+ inside the main repo and pulls its options, templates, and prompt logic from
5
+ the Studio Lumiere source of truth.
8
6
 
9
7
  ## Setup
10
8
 
11
- 1. Install dependencies
12
-
13
9
  ```
10
+ cd studio-cli
14
11
  npm install
15
12
  ```
16
13
 
17
- 2. Create `.env`
14
+ Create `.env` (or copy `studio-cli/.env.example`):
18
15
 
19
16
  ```
20
17
  GEMINI_API_KEY=your_key_here
21
18
  LUMIERE_OUTPUT_DIR=outputs
22
19
  ```
23
20
 
24
- ---
25
-
26
- ## Commands
27
-
28
- | Command | Description |
29
- |---------|-------------|
30
- | [`generate`](#generate) | Generate styled jewelry product images |
31
- | [`refine`](#refine) | Apply refinement instructions to an existing image |
32
- | [`upscale`](#upscale) | Upscale an image to higher resolution |
33
- | [`muse`](#muse) | Create a consistent character reference ("Muse") |
34
- | [`video`](#video) | Generate video from a text prompt |
35
- | [`tired-girl`](#tired-girl) | Generate "before" / casual aesthetic images |
36
- | [`annotate`](#annotate) | Overlay text on an image |
37
- | [`grid`](#grid) | Combine multiple images into a grid layout |
38
- | [`list`](#list) | List available templates, backgrounds, vibes, etc. |
39
-
40
- ---
41
-
42
- ## generate
43
-
44
- Generate styled jewelry product images using AI.
21
+ ## Development
45
22
 
46
- ```bash
47
- lumiere generate --images <paths> --template <id> [options]
48
23
  ```
49
-
50
- ### Required
51
-
52
- | Flag | Description |
53
- |------|-------------|
54
- | `--images <paths>` | Comma-separated input image paths |
55
- | `--template <id>` | Template ID (see [Templates](#templates)) |
56
-
57
- ### Customization
58
-
59
- | Flag | Description |
60
- |------|-------------|
61
- | `--detail <id>` | Primary customization (template-specific) |
62
- | `--secondary-detail <id>` | Secondary customization |
63
- | `--tertiary-detail <id>` | Tertiary customization |
64
- | `--ethnicity <id>` | Model ethnicity |
65
- | `--skin-tone <id>` | Model skin tone |
66
- | `--hair-color <id>` | Model hair color |
67
- | `--background <id>` | Background color/texture |
68
- | `--background-type <id>` | Background type (studio, interior, exterior, texture) |
69
- | `--vibe <id>` | Photography mood/style |
70
- | `--resolution <id>` | Output aspect ratio (default: `portrait`) |
71
- | `--occasion <id>` | Special occasion theme |
72
-
73
- ### Generation
74
-
75
- | Flag | Description |
76
- |------|-------------|
77
- | `--quantity <n>` | Number of images to generate (default: `1`) |
78
- | `--muse-id <id>` | Muse ID for consistent model appearance |
79
- | `--muse-images <paths>` | Comma-separated Muse reference image paths |
80
- | `--no-enhance` | Skip LLM prompt enhancement |
81
-
82
- ### Example
83
-
84
- ```bash
85
- lumiere generate \
86
- --images "ring.jpg" \
87
- --template hand_model \
88
- --detail nail_red \
89
- --background velvet_black \
90
- --vibe golden_hour \
91
- --quantity 4
24
+ npm run dev -- generate --images "ring.jpg" --template hand_model --quantity 2
92
25
  ```
93
26
 
94
- ---
95
-
96
- ## refine
27
+ ## Sync From Studio
97
28
 
98
- Apply refinement instructions to an existing generated image.
29
+ Use this to copy the latest Studio Lumiere prompt and option files into
30
+ `studio-cli/src/studio` before building or running locally:
99
31
 
100
- ```bash
101
- lumiere refine --image <path> --instruction <text> [options]
102
32
  ```
103
-
104
- | Flag | Description |
105
- |------|-------------|
106
- | `--image <path>` | **(required)** Path to image to refine |
107
- | `--instruction <text>` | **(required)** Refinement instruction |
108
- | `--size <percent>` | Resize jewelry to given percentage (e.g. `80` = smaller, `120` = larger) |
109
-
110
- ```bash
111
- lumiere refine --image "output.png" --instruction "make the background warmer"
112
- lumiere refine --image "output.png" --instruction "adjust jewelry" --size 80
33
+ npm run sync
113
34
  ```
114
35
 
115
- ---
116
-
117
- ## upscale
118
-
119
- Upscale an image to higher resolution.
120
-
121
- ```bash
122
- lumiere upscale --image <path> [--scale <n>]
123
- ```
124
-
125
- | Flag | Description |
126
- |------|-------------|
127
- | `--image <path>` | **(required)** Path to image |
128
- | `--scale <n>` | Scale factor (default: `2`) |
129
-
130
- ---
131
-
132
- ## muse
133
-
134
- Create a Muse (consistent character reference) from a source image. Used with the `half_body_muse` template for identity-consistent generations.
135
-
136
- ```bash
137
- lumiere muse --name <name> --source <path> [--variations <n>]
138
- ```
139
-
140
- | Flag | Description |
141
- |------|-------------|
142
- | `--name <name>` | **(required)** Name for the Muse |
143
- | `--source <path>` | **(required)** Path to source image |
144
- | `--variations <n>` | Number of variations to generate (default: `3`) |
145
-
146
- ```bash
147
- lumiere muse --name "Sarah" --source "reference.jpg"
148
- lumiere generate --images "necklace.jpg" --template half_body_muse --muse-id sarah
149
- ```
150
-
151
- ---
152
-
153
- ## video
154
-
155
- Generate a short video from a text prompt.
156
-
157
- ```bash
158
- lumiere video --prompt <text> [options]
159
- ```
160
-
161
- | Flag | Description |
162
- |------|-------------|
163
- | `--prompt <text>` | **(required)** Video description |
164
- | `--aspect <ratio>` | Aspect ratio (`1:1`, `3:4`, `9:16`, `16:9`) |
165
- | `--duration <seconds>` | Duration in seconds |
166
-
167
- Video-enabled templates: `hand_model`, `neck_model`, `ear_model`, `flatlay_creative`, `floating_minimal`, `half_body_muse`.
168
-
169
- ---
170
-
171
- ## tired-girl
172
-
173
- Generate "tired girl" / "before" aesthetic images showing a model in casual, un-styled looks (no jewelry).
174
-
175
- ```bash
176
- lumiere tired-girl [options]
177
- ```
178
-
179
- | Flag | Description |
180
- |------|-------------|
181
- | `--muse-id <id>` | Muse ID for identity reference |
182
- | `--image <path>` | Single reference image (if no Muse) |
183
- | `--styles <ids>` | Comma-separated style IDs |
184
- | `--quantity <n>` | Number of images (default: `1`) |
185
-
186
- ### Available styles
187
-
188
- | ID | Description |
189
- |----|-------------|
190
- | `tired` | Slightly tired, soft under-eye shadows, relaxed expression |
191
- | `morning` | Freshly awake, morning light, sleepy energy |
192
- | `no_makeup` | Completely bare faced |
193
- | `crazy_hair` | Messy, unstyled wild hair |
194
- | `pyjama` | Cozy pajamas or loungewear |
195
-
196
- ```bash
197
- lumiere tired-girl --muse-id sarah --styles "tired,no_makeup" --quantity 2
198
- ```
199
-
200
- ---
201
-
202
- ## annotate
203
-
204
- Overlay text on an image with customizable styling.
205
-
206
- ```bash
207
- lumiere annotate --input <path> --output <path> --text <text> [options]
208
- ```
209
-
210
- ### Required
211
-
212
- | Flag | Description |
213
- |------|-------------|
214
- | `--input <path>` | Input image path |
215
- | `--output <path>` | Output image path |
216
- | `--text <text>` | Text to overlay |
217
-
218
- ### Text styling
219
-
220
- | Flag | Default | Description |
221
- |------|---------|-------------|
222
- | `--font <name>` | `Poppins` | Font family |
223
- | `--size <px>` | auto | Font size in pixels |
224
- | `--weight <n>` | `700` | Font weight |
225
- | `--color <hex>` | `#FFFFFF` | Text color |
226
- | `--stroke-color <value>` | `rgba(0,0,0,0.6)` | Text outline color |
227
- | `--stroke-width <px>` | `fontSize * 0.08` | Text outline width |
228
-
229
- ### Banner
230
-
231
- | Flag | Default | Description |
232
- |------|---------|-------------|
233
- | `--banner` | off | Enable semi-transparent banner behind text |
234
- | `--banner-color <value>` | `rgba(0,0,0,0.45)` | Banner color |
235
- | `--banner-padding <px>` | `fontSize * 0.6` | Banner padding |
236
- | `--banner-radius <px>` | `fontSize * 0.4` | Banner corner radius |
237
-
238
- ### Position
239
-
240
- | Flag | Default | Description |
241
- |------|---------|-------------|
242
- | `--position <pos>` | `bottom-center` | One of: `top-center`, `top-left`, `top-right`, `bottom-center`, `bottom-center-high`, `bottom-left`, `bottom-right`, `center` |
243
- | `--padding <px>` | auto | Padding from edges |
244
- | `--max-width <ratio>` | auto | Max text width as ratio of image width (0-1) |
245
-
246
- ```bash
247
- lumiere annotate \
248
- --input "image.jpg" \
249
- --output "branded.jpg" \
250
- --text "New Collection" \
251
- --position bottom-center \
252
- --banner \
253
- --size 48
254
- ```
255
-
256
- ---
257
-
258
- ## grid
259
-
260
- Combine multiple images into a grid layout.
261
-
262
- ```bash
263
- lumiere grid --inputs <paths> --output <path> [options]
264
- ```
265
-
266
- | Flag | Default | Description |
267
- |------|---------|-------------|
268
- | `--inputs <paths>` | | **(required)** Comma-separated image paths |
269
- | `--output <path>` | | **(required)** Output image path |
270
- | `--columns <n>` | `2` | Number of columns |
271
- | `--rows <n>` | `2` | Number of rows |
272
- | `--padding <px>` | `20` | Padding between tiles |
273
- | `--background <hex>` | `#000000` | Background color |
274
- | `--tile-width <px>` | auto | Fixed tile width |
275
- | `--tile-height <px>` | auto | Fixed tile height |
276
-
277
- ```bash
278
- lumiere grid \
279
- --inputs "img1.jpg,img2.jpg,img3.jpg,img4.jpg" \
280
- --output "grid.jpg" \
281
- --columns 2 --rows 2 \
282
- --padding 10 --background "#FFFFFF"
283
- ```
36
+ ## Commands
284
37
 
285
- ---
38
+ The CLI exposes:
39
+ `generate`, `refine`, `upscale`, `muse`, `video`, `tired-girl`, `annotate`,
40
+ `before-after`, `grid`, `collate`, `list`.
286
41
 
287
- ## list
42
+ For full flag documentation and examples, see:
43
+ `studio-cli/.agents/skills/studio-lumiere-cli/SKILL.md`.
288
44
 
289
- List available options for any category. Output is JSON.
45
+ ## Project Layout
290
46
 
291
- ```bash
292
- lumiere list <type>
293
47
  ```
294
-
295
- | Type | Description |
296
- |------|-------------|
297
- | `templates` | All templates with their customization options |
298
- | `ethnicities` | Model ethnicity options |
299
- | `skin-tones` | Skin tone options |
300
- | `hair-colors` | Hair color options |
301
- | `backgrounds` | Background color/texture options |
302
- | `background-types` | Background type options |
303
- | `vibes` | Photography mood options |
304
- | `resolutions` | Aspect ratio options |
305
- | `occasions` | Special occasion themes |
306
-
307
- ---
308
-
309
- ## Templates
310
-
311
- ### `hand_model` -- Hand Model
312
-
313
- Close-up of a model's hand, wrist, and forearm. Perfect for rings and bracelets.
314
-
315
- | Customization | Options |
316
- |---------------|---------|
317
- | **Nail Polish** (`--detail`) | `nail_nude` Soft Nude, `nail_red` Classic Red, `nail_french` French Manicure, `nail_natural` Natural & Clean, `nail_dark` Noir / Dark |
318
-
319
- ---
320
-
321
- ### `neck_model` -- Neckline Portrait
322
-
323
- Waist-up portrait focusing on the neck and collarbone. Ideal for necklaces and pendants.
324
-
325
- | Customization | Options |
326
- |---------------|---------|
327
- | **Wardrobe** (`--detail`) | `wear_skin` Bare Skin, `wear_silk` White Silk Shirt, `wear_black` Black Turtleneck, `wear_gown` Evening Gown, `wear_kaftan` Modern Kaftan |
328
- | **Makeup** (`--tertiary-detail`) | `makeup_none` Bare, `makeup_minimal` Minimal, `makeup_soft` Soft Glam, `makeup_full` Full Glam, `makeup_editorial` Editorial |
329
-
330
- ---
331
-
332
- ### `ear_model` -- Ear Detail
333
-
334
- Intimate side profile shot. Best for earrings.
335
-
336
- | Customization | Options |
337
- |---------------|---------|
338
- | **Hairstyle** (`--detail`) | `hair_tucked` Tucked Behind Ear, `hair_updo` Elegant Updo, `hair_waves` Loose Waves, `hair_sleek` Sleek & Straight |
339
- | **Makeup** (`--tertiary-detail`) | `makeup_none` Bare, `makeup_minimal` Minimal, `makeup_soft` Soft Glam, `makeup_full` Full Glam, `makeup_editorial` Editorial |
340
-
341
- ---
342
-
343
- ### `flatlay_creative` -- Creative Flatlay
344
-
345
- Artistic still-life composition on a surface. No model. Great for any jewelry type.
346
-
347
- | Customization | Options |
348
- |---------------|---------|
349
- | **Surface** (`--detail`) | `surf_marble` White Marble, `surf_stone` Dark Slate, `surf_velvet` Beige Velvet, `surf_wood` Aged Wood, `surf_sand` Fine Sand, `surf_pedestal` Geometric Pedestal, `surf_riser` Stone Riser |
350
-
351
- ---
352
-
353
- ### `floating_minimal` -- Floating Minimalist
354
-
355
- Jewelry suspended in mid-air with dramatic lighting. No model.
356
-
357
- | Customization | Options |
358
- |---------------|---------|
359
- | **Lighting** (`--detail`) | `light_soft` Soft & Diffused, `light_hard` Hard Contrast, `light_warm` Golden Glow, `light_cool` Cool Steel |
360
-
361
- ---
362
-
363
- ### `half_body_muse` -- The Editorial Muse
364
-
365
- Dynamic waist-up fashion shot. The only template that supports Muse (consistent model identity).
366
-
367
- | Customization | Options |
368
- |---------------|---------|
369
- | **Outfit** (`--detail`) | `outfit_blazer` Power Suit, `outfit_evening` Evening Glamour, `outfit_linen` Resort Linen, `outfit_knit` Cashmere Knit, `outfit_silk` Silk Shirt, `outfit_turtleneck` Turtleneck |
370
- | **Nail Polish** (`--secondary-detail`) | `nail_nude` Soft Nude, `nail_red` Classic Red, `nail_french` French Manicure, `nail_natural` Natural & Clean, `nail_dark` Noir / Dark |
371
- | **Makeup** (`--tertiary-detail`) | `makeup_none` Bare, `makeup_minimal` Minimal, `makeup_soft` Soft Glam, `makeup_full` Full Glam, `makeup_editorial` Editorial |
372
- | **Pose** (quaternary) | `pose_winking`, `pose_grimace`, `pose_teasing`, `pose_kiss`, `pose_laughing`, `pose_pout`, `pose_peace` |
373
-
374
- ---
375
-
376
- ### `romance_proposal` -- Romance & Proposal
377
-
378
- Emotional engagement ring moments with a couple.
379
-
380
- | Customization | Options |
381
- |---------------|---------|
382
- | **Moment** (`--detail`) | `moment_proposal` The Proposal, `moment_said_yes` Just Said Yes, `moment_hand_in_hand` Hand in Hand, `moment_dinner` Intimate Dinner, `moment_promise` The Promise |
383
- | **Setting** (`--secondary-detail`) | `setting_garden` Garden, `setting_restaurant` Candlelit Restaurant, `setting_beach` Beach at Sunset, `setting_home` Cozy at Home, `setting_rooftop` Rooftop City Views, `setting_winter` Winter Snow |
384
- | **Nail Polish** (`--tertiary-detail`) | `nail_nude` Soft Nude, `nail_red` Classic Red, `nail_french` French Manicure, `nail_natural` Natural & Clean, `nail_dark` Noir / Dark |
385
-
386
- ---
387
-
388
- ### `museum_exhibit` -- Museum Exhibit
389
-
390
- Jewelry displayed as a priceless museum artifact. No model.
391
-
392
- | Customization | Options |
393
- |---------------|---------|
394
- | **Museum Style** (`--detail`) | `museum_classical` Classical Gallery, `museum_modern` Modern Art Museum, `museum_baroque` Baroque Palace, `museum_art_deco` Art Deco Gallery |
395
- | **Display Type** (`--secondary-detail`) | `display_vitrine` Glass Vitrine, `display_pedestal` Velvet Pedestal, `display_stand` Open Display, `display_wall` Wall Mount, `display_alcove` Illuminated Alcove |
396
-
397
- ---
398
-
399
- ### `romantic_mood` -- Romantic Mood
400
-
401
- Jewelry styled as a romantic still life with props. No model.
402
-
403
- | Customization | Options |
404
- |---------------|---------|
405
- | **Props** (`--detail`) | `prop_rose_petals` Rose Petals, `prop_candles` Candlelight, `prop_love_letter` Love Letter, `prop_silk_lace` Silk & Lace, `prop_fresh_roses` Fresh Roses, `prop_gift_box` The Gift |
406
- | **Mood** (`--secondary-detail`) | `mood_candlelight` Warm Candlelight, `mood_morning` Soft Morning Light, `mood_moody` Moody & Dark, `mood_golden` Golden Hour Glow, `mood_blush` Blush Pink Haze |
407
-
408
- ---
409
-
410
- ## Global Options
411
-
412
- ### Ethnicities (`--ethnicity`)
413
-
414
- | ID | Name |
415
- |----|------|
416
- | `european` | European |
417
- | `moroccan` | Moroccan |
418
- | `middle_east` | Middle Eastern |
419
- | `african` | African |
420
- | `asian` | East Asian |
421
-
422
- ### Skin Tones (`--skin-tone`)
423
-
424
- | ID | Name |
425
- |----|------|
426
- | `fair` | Porcelain |
427
- | `light` | Light |
428
- | `medium` | Tan |
429
- | `deep` | Deep |
430
- | `dark` | Ebony |
431
-
432
- ### Hair Colors (`--hair-color`)
433
-
434
- | ID | Name |
435
- |----|------|
436
- | `dark` | Dark / Black |
437
- | `brunette` | Brunette |
438
- | `blonde` | Blonde |
439
- | `red` | Red / Auburn |
440
- | `grey` | Silver / Grey |
441
-
442
- ### Backgrounds (`--background`)
443
-
444
- | ID | Name |
445
- |----|------|
446
- | `silk_cream` | Cream Silk |
447
- | `velvet_black` | Midnight Velvet |
448
- | `marble_white` | Carrara Marble |
449
- | `emerald_velvet` | Emerald Velvet |
450
- | `studio_grey` | Studio Grey |
451
- | `warm_beige` | Warm Beige |
452
- | `burgundy_velvet` | Burgundy Velvet |
453
- | `champagne_gold` | Champagne Gold |
454
- | `navy_sapphire` | Navy Sapphire |
455
- | `blush_rose` | Blush Rose |
456
- | `ivory_pearl` | Ivory Pearl |
457
- | `slate_charcoal` | Slate Charcoal |
458
-
459
- ### Background Types (`--background-type`)
460
-
461
- | ID | Name |
462
- |----|------|
463
- | `studio` | Studio Flat |
464
- | `interior` | Luxury Interior |
465
- | `exterior` | Outdoors |
466
- | `texture` | Macro Texture |
467
-
468
- ### Vibes (`--vibe`)
469
-
470
- | ID | Name |
471
- |----|------|
472
- | `golden_hour` | Golden Hour -- warm natural sunlight |
473
- | `moody_chic` | Moody Chic -- dramatic shadows, high contrast |
474
- | `clean_minimal` | Clean Minimal -- bright, airy, minimalist |
475
- | `romantic_soft` | Romantic -- soft focus, pastel tones |
476
-
477
- ### Resolutions (`--resolution`)
478
-
479
- | ID | Aspect Ratio | Best for |
480
- |----|-------------|----------|
481
- | `square` | 1:1 | Instagram Feed |
482
- | `portrait` | 3:4 | Instagram Feed (vertical) |
483
- | `story` | 9:16 | Instagram Stories / Reels |
484
- | `landscape` | 16:9 | Website / Ads |
485
-
486
- ### Occasions (`--occasion`)
487
-
488
- Occasions auto-configure vibe, background, and background type, and inject thematic prompt details.
489
-
490
- | ID | Name |
491
- |----|------|
492
- | `moroccan_wedding` | Moroccan Wedding |
493
- | `eid_fitr` | Eid al-Fitr |
494
- | `eid_adha` | Eid al-Adha |
495
- | `henna_night` | Henna Night |
496
- | `ramadan` | Ramadan |
497
- | `valentines` | Valentine's Day |
498
- | `mothers_day` | Mother's Day |
499
- | `birthday` | Birthday |
500
- | `anniversary` | Anniversary |
501
- | `graduation` | Graduation |
502
- | `christmas` | Christmas |
503
- | `new_year` | New Year |
504
-
505
- ---
506
-
507
- ## SDK Usage
508
-
509
- ```ts
510
- import { generateImages } from "studio-lumiere-cli";
511
-
512
- const result = await generateImages(
513
- { apiKey: "your-key", outputDir: "outputs" },
514
- {
515
- inputImages: ["./ring.jpg"],
516
- quantity: 4,
517
- selections: {
518
- templateId: "hand_model",
519
- detailId: "nail_red",
520
- backgroundId: "velvet_black",
521
- vibeId: "golden_hour",
522
- resolutionId: "portrait",
523
- },
524
- }
525
- );
48
+ studio-cli/
49
+ src/
50
+ cli.ts
51
+ index.ts
52
+ clients/
53
+ config/
54
+ image/
55
+ pipelines/
56
+ prompt/
57
+ storage/
58
+ studio/
59
+ scripts/
60
+ sync-studio.mjs
526
61
  ```
527
-
528
- ## Notes
529
-
530
- - Templates, backgrounds, vibes, and all shared options are synced from the main Studio Lumiere web app at build time (`npm run sync`). The CLI always matches the web app.
531
- - The Muse flow generates variations and stores a local `muses.json` index under your output directory.
532
- - Video generation uses Veo via the Gemini SDK and returns an operation name plus the video file when available.
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import "dotenv/config";
3
3
  import { Command } from "commander";
4
- import { generateImages, refineImage, upscaleImage, generateTiredGirl, createMuse, generateVideo, annotateImage, createImageGrid, TEMPLATES, ETHNICITIES, SKIN_TONES, HAIR_COLORS, BACKGROUNDS, BACKGROUND_TYPES, VIBES, RESOLUTIONS, OCCASIONS } from "./index.js";
4
+ import { generateImages, refineImage, upscaleImage, generateTiredGirl, createMuse, generateVideo, annotateImage, createImageGrid, createBeforeAfter, TEMPLATES, ETHNICITIES, SKIN_TONES, HAIR_COLORS, BACKGROUNDS, BACKGROUND_TYPES, VIBES, PHOTOGRAPHY_STYLES, RESOLUTIONS, OCCASIONS } from "./index.js";
5
5
  const program = new Command();
6
6
  const parseList = (value) => value.split(",").map((v) => v.trim()).filter(Boolean);
7
7
  const loadConfig = () => {
@@ -20,7 +20,7 @@ program
20
20
  .version("0.1.0");
21
21
  program
22
22
  .command("list")
23
- .argument("type", "templates|ethnicities|skin-tones|hair-colors|backgrounds|background-types|vibes|resolutions|occasions")
23
+ .argument("type", "templates|ethnicities|skin-tones|hair-colors|backgrounds|background-types|vibes|photography-styles|resolutions|occasions")
24
24
  .action((type) => {
25
25
  const map = {
26
26
  templates: TEMPLATES,
@@ -30,6 +30,7 @@ program
30
30
  backgrounds: BACKGROUNDS,
31
31
  "background-types": BACKGROUND_TYPES,
32
32
  vibes: VIBES,
33
+ "photography-styles": PHOTOGRAPHY_STYLES,
33
34
  resolutions: RESOLUTIONS,
34
35
  occasions: OCCASIONS
35
36
  };
@@ -46,14 +47,18 @@ program
46
47
  .option("--detail <id>")
47
48
  .option("--secondary-detail <id>")
48
49
  .option("--tertiary-detail <id>")
50
+ .option("--quaternary-detail <id>")
51
+ .option("--quinary-detail <id>")
49
52
  .option("--ethnicity <id>")
50
53
  .option("--skin-tone <id>")
51
54
  .option("--hair-color <id>")
52
55
  .option("--background <id>")
53
56
  .option("--background-type <id>")
54
57
  .option("--vibe <id>")
58
+ .option("--photography-style <id>")
55
59
  .option("--resolution <id>")
56
60
  .option("--occasion <id>")
61
+ .option("--upload-mode <mode>", "stacking|multi_angle|multi_item_single")
57
62
  .option("--quantity <n>", "Number of images", "1")
58
63
  .option("--muse-id <id>")
59
64
  .option("--muse-images <paths>", "Comma-separated muse image paths")
@@ -68,15 +73,19 @@ program
68
73
  detailId: options.detail,
69
74
  secondaryDetailId: options.secondaryDetail,
70
75
  tertiaryDetailId: options.tertiaryDetail,
76
+ quaternaryDetailId: options.quaternaryDetail,
77
+ quinaryDetailId: options.quinaryDetail,
71
78
  ethnicityId: options.ethnicity,
72
79
  skinToneId: options.skinTone,
73
80
  hairColorId: options.hairColor,
74
81
  backgroundId: options.background,
75
82
  backgroundTypeId: options.backgroundType,
76
83
  vibeId: options.vibe,
84
+ photographyStyleId: options.photographyStyle,
77
85
  resolutionId: options.resolution,
78
86
  occasionId: options.occasion
79
87
  },
88
+ uploadMode: options.uploadMode,
80
89
  museId: options.museId,
81
90
  museImagePaths: options.museImages ? parseList(options.museImages) : undefined,
82
91
  enhancePrompt: options.enhance
@@ -189,6 +198,30 @@ program
189
198
  });
190
199
  console.log(options.output);
191
200
  });
201
+ program
202
+ .command("before-after")
203
+ .argument("<layout>", "horizontal|vertical|diagonal|inset")
204
+ .argument("<order>", "before-first|after-first")
205
+ .requiredOption("--before <path>", "Before image path")
206
+ .requiredOption("--after <path>", "After image path")
207
+ .requiredOption("--output <path>", "Output image path")
208
+ .option("--feather <px>", "Blend width in pixels")
209
+ .option("--diagonal-direction <dir>", "Diagonal split direction: tl-br|tr-bl")
210
+ .option("--before-scale <percent>", "Scale before image size (100 = original, horizontal/vertical only)")
211
+ .option("--before-inset-scale <percent>", "Inset size (layout inset, percent of output min side)")
212
+ .option("--before-inset-position <pos>", "Inset position (layout inset): top-left|top-right|bottom-left|bottom-right")
213
+ .action(async (layout, order, options) => {
214
+ await createBeforeAfter(options.before, options.after, options.output, {
215
+ layout,
216
+ order,
217
+ feather: options.feather ? Number(options.feather) : undefined,
218
+ diagonalDirection: options.diagonalDirection,
219
+ beforeScale: options.beforeScale ? Number(options.beforeScale) : undefined,
220
+ beforeInsetScale: options.beforeInsetScale ? Number(options.beforeInsetScale) : undefined,
221
+ beforeInsetPosition: options.beforeInsetPosition
222
+ });
223
+ console.log(options.output);
224
+ });
192
225
  program
193
226
  .command("grid")
194
227
  .requiredOption("--inputs <paths>", "Comma-separated image paths")
@@ -210,5 +243,26 @@ program
210
243
  });
211
244
  console.log(options.output);
212
245
  });
246
+ program
247
+ .command("collate")
248
+ .requiredOption("--inputs <paths>", "Comma-separated image paths")
249
+ .requiredOption("--output <path>", "Output image path")
250
+ .option("--columns <n>", "Number of columns", "2")
251
+ .option("--rows <n>", "Number of rows", "2")
252
+ .option("--padding <px>", "Padding between tiles (default: 20)")
253
+ .option("--background <hex>", "Background color (default: #000000)")
254
+ .option("--tile-width <px>", "Fixed tile width")
255
+ .option("--tile-height <px>", "Fixed tile height")
256
+ .action(async (options) => {
257
+ await createImageGrid(parseList(options.inputs), options.output, {
258
+ columns: Number(options.columns),
259
+ rows: Number(options.rows),
260
+ padding: options.padding ? Number(options.padding) : undefined,
261
+ background: options.background,
262
+ tileWidth: options.tileWidth ? Number(options.tileWidth) : undefined,
263
+ tileHeight: options.tileHeight ? Number(options.tileHeight) : undefined
264
+ });
265
+ console.log(options.output);
266
+ });
213
267
  program.parseAsync();
214
268
  //# sourceMappingURL=cli.js.map