studio-lumiere-cli 0.1.4 → 0.1.5
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/dist/config/constants.d.ts +1 -63
- package/dist/config/constants.js +3 -1004
- package/dist/config/constants.js.map +1 -1
- package/dist/pipelines/generateImages.js +5 -3
- package/dist/pipelines/generateImages.js.map +1 -1
- package/dist/storage/files.js +4 -1
- package/dist/storage/files.js.map +1 -1
- package/dist/studio/constants.d.ts +64 -0
- package/dist/studio/constants.js +1018 -0
- package/dist/studio/constants.js.map +1 -0
- package/dist/studio/promptBuilder.d.ts +4 -0
- package/{src/prompt/buildPrompt.ts → dist/studio/promptBuilder.js} +166 -221
- package/dist/studio/promptBuilder.js.map +1 -0
- package/dist/studio/types.d.ts +155 -0
- package/dist/studio/types.js +2 -0
- package/dist/studio/types.js.map +1 -0
- package/dist/types.d.ts +2 -49
- package/package.json +9 -3
- package/scripts/sync-studio.mjs +16 -0
- package/.agents/skills/generate-images/SKILL.md +0 -121
- package/.env.example +0 -2
- package/AGENTS.md +0 -66
- package/examples/generate.d.ts +0 -1
- package/examples/generate.js +0 -28
- package/examples/generate.js.map +0 -1
- package/examples/generate.ts +0 -30
- package/examples/muse.d.ts +0 -1
- package/examples/muse.js +0 -18
- package/examples/muse.js.map +0 -1
- package/examples/muse.ts +0 -20
- package/examples/video.d.ts +0 -1
- package/examples/video.js +0 -18
- package/examples/video.js.map +0 -1
- package/examples/video.ts +0 -20
- package/logo-round.png +0 -0
- package/logo.jpeg +0 -0
- package/skills/studio-lumiere-cli/SKILL.md +0 -212
- package/skills/studio-lumiere-cli/agents/openai.yaml +0 -4
- package/src/cli.ts +0 -259
- package/src/clients/geminiClient.ts +0 -168
- package/src/config/constants.ts +0 -1105
- package/src/config/options.ts +0 -15
- package/src/config/templates.ts +0 -4
- package/src/config/tiredGirl.ts +0 -11
- package/src/image/annotate.ts +0 -139
- package/src/image/grid.ts +0 -58
- package/src/index.ts +0 -27
- package/src/pipelines/createMuse.ts +0 -76
- package/src/pipelines/generateImages.ts +0 -203
- package/src/pipelines/generateTiredGirl.ts +0 -86
- package/src/pipelines/generateVideo.ts +0 -36
- package/src/pipelines/refineImage.ts +0 -36
- package/src/pipelines/resolve.ts +0 -88
- package/src/pipelines/upscaleImage.ts +0 -30
- package/src/prompt/tiredGirlPrompt.ts +0 -35
- package/src/storage/files.ts +0 -44
- package/src/storage/museStore.ts +0 -31
- package/src/types.ts +0 -198
- package/tsconfig.json +0 -15
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export interface Template {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
visualUrl: string;
|
|
6
|
+
basePrompt: string;
|
|
7
|
+
customizationLabel?: string;
|
|
8
|
+
customizationOptions?: Option[];
|
|
9
|
+
secondaryCustomizationLabel?: string;
|
|
10
|
+
secondaryCustomizationOptions?: Option[];
|
|
11
|
+
tertiaryCustomizationLabel?: string;
|
|
12
|
+
tertiaryCustomizationOptions?: Option[];
|
|
13
|
+
quaternaryCustomizationLabel?: string;
|
|
14
|
+
quaternaryCustomizationOptions?: Option[];
|
|
15
|
+
isAdminOnly?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface Option {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
visualColor?: string;
|
|
22
|
+
visualImage?: string;
|
|
23
|
+
visualSvg?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface Resolution {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
aspectRatio: "1:1" | "3:4" | "4:3" | "9:16" | "16:9";
|
|
29
|
+
icon: string;
|
|
30
|
+
instagramUse: string;
|
|
31
|
+
description: string;
|
|
32
|
+
}
|
|
33
|
+
export interface GenerationState {
|
|
34
|
+
uploadedImages: File[];
|
|
35
|
+
selectedTemplate: string | null;
|
|
36
|
+
selectedDetailId: string | null;
|
|
37
|
+
selectedSecondaryDetailId: string | null;
|
|
38
|
+
selectedTertiaryDetailId: string | null;
|
|
39
|
+
selectedQuaternaryDetailId: string | null;
|
|
40
|
+
selectedEthnicity: string | null;
|
|
41
|
+
selectedSkinTone: string | null;
|
|
42
|
+
selectedHairColor: string | null;
|
|
43
|
+
selectedBackground: string | null;
|
|
44
|
+
selectedBackgroundType: string | null;
|
|
45
|
+
selectedVibe: string | null;
|
|
46
|
+
selectedResolution: string | null;
|
|
47
|
+
imageCount: number;
|
|
48
|
+
selectedOccasion: string | undefined;
|
|
49
|
+
generatedImages: {
|
|
50
|
+
id: string;
|
|
51
|
+
url: string;
|
|
52
|
+
}[];
|
|
53
|
+
isGenerating: boolean;
|
|
54
|
+
regeneratingIndices: number[];
|
|
55
|
+
upscalingIndices: number[];
|
|
56
|
+
upscaledIndices: number[];
|
|
57
|
+
error: string | null;
|
|
58
|
+
selectedMuseId: string | null;
|
|
59
|
+
}
|
|
60
|
+
export interface Muse {
|
|
61
|
+
id: string;
|
|
62
|
+
user_id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
image_1_path: string;
|
|
65
|
+
image_2_path: string;
|
|
66
|
+
image_3_path: string;
|
|
67
|
+
source_template_id?: string;
|
|
68
|
+
source_image_id?: string;
|
|
69
|
+
created_at: string;
|
|
70
|
+
updated_at: string;
|
|
71
|
+
}
|
|
72
|
+
export interface MuseWithSignedUrls extends Muse {
|
|
73
|
+
image_1_url: string;
|
|
74
|
+
image_2_url: string;
|
|
75
|
+
image_3_url: string;
|
|
76
|
+
image_1_thumb_url?: string;
|
|
77
|
+
image_2_thumb_url?: string;
|
|
78
|
+
image_3_thumb_url?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface MuseCreationState {
|
|
81
|
+
sourceImage: {
|
|
82
|
+
id: string;
|
|
83
|
+
url: string;
|
|
84
|
+
templateId: string;
|
|
85
|
+
} | null;
|
|
86
|
+
savedVariations: Array<{
|
|
87
|
+
id: string;
|
|
88
|
+
url: string;
|
|
89
|
+
}>;
|
|
90
|
+
currentBatch: Array<{
|
|
91
|
+
id: string;
|
|
92
|
+
url: string;
|
|
93
|
+
}>;
|
|
94
|
+
isGenerating: boolean;
|
|
95
|
+
error: string | null;
|
|
96
|
+
}
|
|
97
|
+
export interface EligibleCollectionImage {
|
|
98
|
+
id: string;
|
|
99
|
+
url: string;
|
|
100
|
+
thumbnailUrl?: string;
|
|
101
|
+
templateId: string;
|
|
102
|
+
templateName: string;
|
|
103
|
+
createdAt: string;
|
|
104
|
+
}
|
|
105
|
+
export interface VideoGeneration {
|
|
106
|
+
id: string;
|
|
107
|
+
user_id: string;
|
|
108
|
+
source_image_id: string;
|
|
109
|
+
source_image_path: string;
|
|
110
|
+
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
111
|
+
veo_operation_name?: string;
|
|
112
|
+
video_path?: string;
|
|
113
|
+
error_message?: string;
|
|
114
|
+
prompt: string;
|
|
115
|
+
parameters: Record<string, any>;
|
|
116
|
+
resolution: string;
|
|
117
|
+
aspect_ratio: string;
|
|
118
|
+
created_at: string;
|
|
119
|
+
completed_at?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface VideoGenerationWithUrl extends VideoGeneration {
|
|
122
|
+
video_url?: string;
|
|
123
|
+
}
|
|
124
|
+
export interface TryOnLink {
|
|
125
|
+
id: string;
|
|
126
|
+
short_code: string;
|
|
127
|
+
user_id: string;
|
|
128
|
+
collection_log_id: string;
|
|
129
|
+
reference_image_path: string;
|
|
130
|
+
template_id: string;
|
|
131
|
+
generation_params: Record<string, any>;
|
|
132
|
+
click_count: number;
|
|
133
|
+
try_on_count: number;
|
|
134
|
+
is_active: boolean;
|
|
135
|
+
link_type: 'owner' | 'consumer';
|
|
136
|
+
requires_invite_code: boolean;
|
|
137
|
+
expires_at?: string;
|
|
138
|
+
store_url?: string;
|
|
139
|
+
store_name?: string;
|
|
140
|
+
created_at: string;
|
|
141
|
+
updated_at: string;
|
|
142
|
+
}
|
|
143
|
+
export interface TryOnLinkWithUrl extends TryOnLink {
|
|
144
|
+
reference_image_url: string;
|
|
145
|
+
}
|
|
146
|
+
export interface TryOnLinkPublicData {
|
|
147
|
+
short_code: string;
|
|
148
|
+
reference_image_url: string;
|
|
149
|
+
store_name?: string;
|
|
150
|
+
store_url?: string;
|
|
151
|
+
template_id: string;
|
|
152
|
+
is_active: boolean;
|
|
153
|
+
link_type: 'owner' | 'consumer';
|
|
154
|
+
requires_invite_code: boolean;
|
|
155
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/studio/types.ts"],"names":[],"mappings":""}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,53 +1,6 @@
|
|
|
1
|
+
export type { Template, Option, Resolution } from './studio/types.js';
|
|
2
|
+
export type { OccasionTheme } from './studio/constants.js';
|
|
1
3
|
export type AspectRatio = "1:1" | "3:4" | "4:3" | "9:16" | "16:9";
|
|
2
|
-
export interface Option {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
value: string;
|
|
6
|
-
visualColor?: string;
|
|
7
|
-
visualImage?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface Template {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
visualUrl?: string;
|
|
14
|
-
basePrompt: string;
|
|
15
|
-
customizationLabel?: string;
|
|
16
|
-
customizationOptions?: Option[];
|
|
17
|
-
secondaryCustomizationLabel?: string;
|
|
18
|
-
secondaryCustomizationOptions?: Option[];
|
|
19
|
-
tertiaryCustomizationLabel?: string;
|
|
20
|
-
tertiaryCustomizationOptions?: Option[];
|
|
21
|
-
isAdminOnly?: boolean;
|
|
22
|
-
museEnabled?: boolean;
|
|
23
|
-
videoEnabled?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface Resolution {
|
|
26
|
-
id: string;
|
|
27
|
-
label: string;
|
|
28
|
-
aspectRatio: AspectRatio;
|
|
29
|
-
icon?: string;
|
|
30
|
-
description: string;
|
|
31
|
-
instagramUse: string;
|
|
32
|
-
}
|
|
33
|
-
export interface OccasionTheme {
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
icon: string;
|
|
37
|
-
description: string;
|
|
38
|
-
autoConfig: {
|
|
39
|
-
vibe: string;
|
|
40
|
-
background: string;
|
|
41
|
-
backgroundType: string;
|
|
42
|
-
};
|
|
43
|
-
promptDetails?: {
|
|
44
|
-
setting: string;
|
|
45
|
-
atmosphere: string;
|
|
46
|
-
colorPalette: string;
|
|
47
|
-
culturalElements: string;
|
|
48
|
-
styling: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
4
|
export interface GenerationSelections {
|
|
52
5
|
templateId: string;
|
|
53
6
|
detailId?: string;
|
package/package.json
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studio-lumiere-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Local SDK + CLI for Studio Lumiere image and video generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"lumiere": "dist/cli.js"
|
|
8
8
|
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"scripts"
|
|
12
|
+
],
|
|
9
13
|
"scripts": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
14
|
+
"sync": "node scripts/sync-studio.mjs",
|
|
15
|
+
"build": "npm run sync && tsc",
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"dev": "npm run sync && tsx src/cli.ts",
|
|
12
18
|
"generate": "tsx examples/generate.ts",
|
|
13
19
|
"muse": "tsx examples/muse.ts",
|
|
14
20
|
"video": "tsx examples/video.ts"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { cpSync, mkdirSync } from "node:fs";
|
|
2
|
+
import { resolve, dirname } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
|
|
5
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
|
+
const studioRoot = resolve(__dirname, "../../studio-lumiere");
|
|
7
|
+
const destDir = resolve(__dirname, "../src/studio");
|
|
8
|
+
|
|
9
|
+
mkdirSync(destDir, { recursive: true });
|
|
10
|
+
|
|
11
|
+
const files = ["types.ts", "constants.ts", "promptBuilder.ts"];
|
|
12
|
+
for (const file of files) {
|
|
13
|
+
cpSync(resolve(studioRoot, file), resolve(destDir, file));
|
|
14
|
+
console.log(` synced ${file}`);
|
|
15
|
+
}
|
|
16
|
+
console.log("studio sync complete");
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: generate-images
|
|
3
|
-
description: Generate images with the Studio Lumiere CLI (npx studio-lumiere-cli); inputs, outputs, and parameters.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Skill: Generate Images (CLI)
|
|
7
|
-
|
|
8
|
-
This skill covers **CLI usage only** for image generation with Studio Lumiere.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Requirements
|
|
13
|
-
|
|
14
|
-
- Set `GEMINI_API_KEY` in your environment.
|
|
15
|
-
- Optional: set `LUMIERE_OUTPUT_DIR` to change the default output folder (defaults to `outputs`).
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Quick Start
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npx studio-lumiere-cli generate \
|
|
23
|
-
--images ./inputs/ring.jpg \
|
|
24
|
-
--template hand_model \
|
|
25
|
-
--detail nail_nude \
|
|
26
|
-
--ethnicity mena \
|
|
27
|
-
--skin-tone medium \
|
|
28
|
-
--hair-color brunette \
|
|
29
|
-
--background cream_silk \
|
|
30
|
-
--background-type studio \
|
|
31
|
-
--vibe clean \
|
|
32
|
-
--resolution portrait \
|
|
33
|
-
--quantity 1
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## Inputs
|
|
39
|
-
|
|
40
|
-
- `--images` (required): Comma-separated local file paths to jewelry images.
|
|
41
|
-
- `--template` (required): Template ID.
|
|
42
|
-
- Optional style/scene parameters (see below).
|
|
43
|
-
- Optional Muse reference (either `--muse-id` or `--muse-images`).
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Outputs
|
|
48
|
-
|
|
49
|
-
- Generated images are written under:
|
|
50
|
-
- `outputs/generations/<timestamp>/` by default, or
|
|
51
|
-
- `LUMIERE_OUTPUT_DIR/generations/<timestamp>/` if configured.
|
|
52
|
-
- Each run writes a `generation.json` log alongside the images.
|
|
53
|
-
- The CLI prints a JSON result containing `outputImages` and `logPath`.
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## Parameters (generate)
|
|
58
|
-
|
|
59
|
-
Required:
|
|
60
|
-
- `--images <paths>`: Comma-separated list of input image paths.
|
|
61
|
-
- `--template <id>`: Template ID.
|
|
62
|
-
|
|
63
|
-
Optional:
|
|
64
|
-
- `--detail <id>`
|
|
65
|
-
- `--secondary-detail <id>`
|
|
66
|
-
- `--tertiary-detail <id>`
|
|
67
|
-
- `--ethnicity <id>`
|
|
68
|
-
- `--skin-tone <id>`
|
|
69
|
-
- `--hair-color <id>`
|
|
70
|
-
- `--background <id>`
|
|
71
|
-
- `--background-type <id>`
|
|
72
|
-
- `--vibe <id>`
|
|
73
|
-
- `--resolution <id>`
|
|
74
|
-
- `--occasion <id>`
|
|
75
|
-
- `--quantity <n>`: Number of outputs (default `1`).
|
|
76
|
-
- `--muse-id <id>`: Use a stored Muse.
|
|
77
|
-
- `--muse-images <paths>`: Comma-separated Muse image paths.
|
|
78
|
-
- `--no-enhance`: Disable prompt enhancement.
|
|
79
|
-
|
|
80
|
-
---
|
|
81
|
-
|
|
82
|
-
## Find Valid IDs (templates/options)
|
|
83
|
-
|
|
84
|
-
Use the `list` command to see allowed IDs:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
npx studio-lumiere-cli list templates
|
|
88
|
-
npx studio-lumiere-cli list ethnicities
|
|
89
|
-
npx studio-lumiere-cli list skin-tones
|
|
90
|
-
npx studio-lumiere-cli list hair-colors
|
|
91
|
-
npx studio-lumiere-cli list backgrounds
|
|
92
|
-
npx studio-lumiere-cli list background-types
|
|
93
|
-
npx studio-lumiere-cli list vibes
|
|
94
|
-
npx studio-lumiere-cli list resolutions
|
|
95
|
-
npx studio-lumiere-cli list occasions
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## Example (multiple images + muse)
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
npx studio-lumiere-cli generate \
|
|
104
|
-
--images ./inputs/ring.jpg,./inputs/bracelet.jpg \
|
|
105
|
-
--template hand_model \
|
|
106
|
-
--detail nail_nude \
|
|
107
|
-
--resolution portrait \
|
|
108
|
-
--quantity 2 \
|
|
109
|
-
--muse-images ./muses/m1.png,./muses/m2.png
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
End of skill.
|
|
113
|
-
|
|
114
|
-
## Related Skills
|
|
115
|
-
|
|
116
|
-
- `C:\Users\karim\Documents\local-lumiere\.agents\skills\generate-video.md`
|
|
117
|
-
- `C:\Users\karim\Documents\local-lumiere\.agents\skills\refine-images.md`
|
|
118
|
-
- `C:\Users\karim\Documents\local-lumiere\.agents\skills\muse-management.md`
|
|
119
|
-
- `C:\Users\karim\Documents\local-lumiere\.agents\skills\tired-girl.md`
|
|
120
|
-
- `C:\Users\karim\Documents\local-lumiere\.agents\skills\image-grid.md`
|
|
121
|
-
- `C:\Users\karim\Documents\local-lumiere\.agents\skills\config-troubleshooting.md`
|
package/.env.example
DELETED
package/AGENTS.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# AI Agent Workflow & Standards
|
|
2
|
-
|
|
3
|
-
This document outlines the mandatory workflow for all AI agents collaborating on this project. Strictly adhere to these procedures for every brand-new feature or significant task.
|
|
4
|
-
|
|
5
|
-
## Image Overlay Defaults
|
|
6
|
-
|
|
7
|
-
- Logo file: `logo-round.png`
|
|
8
|
-
- Placement: `top-left`
|
|
9
|
-
- Scale: `0.08`
|
|
10
|
-
- Margin: `24`
|
|
11
|
-
- Opacity: `0.75`
|
|
12
|
-
- Script: `node .agents/skills/image-overlay/scripts/overlay-image.js`
|
|
13
|
-
|
|
14
|
-
## 1. Workspace Preparation
|
|
15
|
-
|
|
16
|
-
* **Stories Directory:** All documentation and state tracking for a task must reside in the `stories/` folder.
|
|
17
|
-
* *Action:* Check if the `stories/` folder exists. If not, create it immediately.
|
|
18
|
-
* **Git Branching:** All work must be performed on a dedicated feature branch.
|
|
19
|
-
* *Naming Convention:* `story/<name-of-story>` (e.g., `story/mobile-ui-fix`).
|
|
20
|
-
* *Action:* Create and switch to the new branch before writing any code.
|
|
21
|
-
* *IMPORTANT:* all git commands should be executed one at a time. Don't try to chain them in one command.
|
|
22
|
-
|
|
23
|
-
## 2. The 5-Step Development Process
|
|
24
|
-
|
|
25
|
-
We follow a strict iterative cycle. All outputs from these steps must be documented in a **single file** within the `stories/` folder.
|
|
26
|
-
|
|
27
|
-
**Documentation File Details:**
|
|
28
|
-
* **Location:** `stories/`
|
|
29
|
-
* **Naming Convention:** `YYYY-MM-DD-short-descriptive-name.md` (e.g., `2026-01-25-mobile-ui-refactor.md`).
|
|
30
|
-
* **Format:** Markdown.
|
|
31
|
-
|
|
32
|
-
### Step 1: Spec
|
|
33
|
-
* Analyze the user's request and requirements.
|
|
34
|
-
* Define the scope, goals, and technical constraints.
|
|
35
|
-
* Write this into the documentation file under a `## Spec` header.
|
|
36
|
-
|
|
37
|
-
### Step 2: Plan
|
|
38
|
-
* Break down the implementation into actionable steps.
|
|
39
|
-
* Identify necessary file changes, dependencies, and architectural impacts.
|
|
40
|
-
* Write this into the documentation file under a `## Plan` header.
|
|
41
|
-
|
|
42
|
-
### Step 3: Implement
|
|
43
|
-
* Write the code according to the approved plan.
|
|
44
|
-
* Adhere to existing project patterns, style guides, and tech stack conventions.
|
|
45
|
-
* Log significant actions or decisions in the documentation file under a `## Implementation Log` header.
|
|
46
|
-
|
|
47
|
-
### Step 4: Review
|
|
48
|
-
* Self-critique the code.
|
|
49
|
-
* Run builds, linters, and tests (`npm run build`, `npx tsc --noEmit`, etc.) to verify correctness.
|
|
50
|
-
* Present the results and any findings to the user.
|
|
51
|
-
* Write findings in the documentation file under a `## Review` header.
|
|
52
|
-
|
|
53
|
-
### Step 5: Fix (Iterative Loop)
|
|
54
|
-
* Address issues found in the Review step or feedback provided by the user.
|
|
55
|
-
* **Loop:** Repeat Steps 4 (Review) and 5 (Fix) until the user explicitly confirms the code works and is approved.
|
|
56
|
-
* Log fixes and subsequent reviews in the documentation file.
|
|
57
|
-
|
|
58
|
-
## 3. Completion & Git Workflow
|
|
59
|
-
|
|
60
|
-
Once the work is approved by the user (after the Review/Fix loop):
|
|
61
|
-
|
|
62
|
-
1. **Stage Files:** `git add` all relevant code files and the story documentation file.
|
|
63
|
-
2. **Review Changes:** Use the command `/git:review` to generate a summary of staged changes.
|
|
64
|
-
3. **Commit:** Use the command `/git:commit` to create the commit.
|
|
65
|
-
4. **Push & PR:** Use the command `/git:commit-push-pr` to push the branch and automatically create/open a Pull Request.
|
|
66
|
-
5. **Cleanup:** Use the command `/git:clean-gone` to clean up local branches and synchronize with the remote.
|
package/examples/generate.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
package/examples/generate.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
|
2
|
-
import { generateImages } from "../src/pipelines/generateImages";
|
|
3
|
-
const config = {
|
|
4
|
-
apiKey: process.env.GEMINI_API_KEY || "",
|
|
5
|
-
outputDir: process.env.LUMIERE_OUTPUT_DIR || "outputs"
|
|
6
|
-
};
|
|
7
|
-
const run = async () => {
|
|
8
|
-
if (!config.apiKey)
|
|
9
|
-
throw new Error("Missing GEMINI_API_KEY");
|
|
10
|
-
const result = await generateImages(config, {
|
|
11
|
-
inputImages: ["./inputs/ring.jpg"],
|
|
12
|
-
quantity: 1,
|
|
13
|
-
selections: {
|
|
14
|
-
templateId: "hand_model",
|
|
15
|
-
detailId: "nail_nude",
|
|
16
|
-
ethnicityId: "mena",
|
|
17
|
-
skinToneId: "medium",
|
|
18
|
-
hairColorId: "brunette",
|
|
19
|
-
backgroundId: "cream_silk",
|
|
20
|
-
backgroundTypeId: "studio",
|
|
21
|
-
vibeId: "clean",
|
|
22
|
-
resolutionId: "portrait"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
console.log(result);
|
|
26
|
-
};
|
|
27
|
-
run();
|
|
28
|
-
//# sourceMappingURL=generate.js.map
|
package/examples/generate.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["generate.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE,MAAM,MAAM,GAAkB;IAC5B,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE;IACxC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,SAAS;CACvD,CAAC;AAEF,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE;IACrB,IAAI,CAAC,MAAM,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE;QAC1C,WAAW,EAAE,CAAC,mBAAmB,CAAC;QAClC,QAAQ,EAAE,CAAC;QACX,UAAU,EAAE;YACV,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,MAAM;YACnB,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,UAAU;YACvB,YAAY,EAAE,YAAY;YAC1B,gBAAgB,EAAE,QAAQ;YAC1B,MAAM,EAAE,OAAO;YACf,YAAY,EAAE,UAAU;SACzB;KACF,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,GAAG,EAAE,CAAC"}
|
package/examples/generate.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
|
2
|
-
import { generateImages } from "../src/pipelines/generateImages";
|
|
3
|
-
import { LumiereConfig } from "../src/types";
|
|
4
|
-
|
|
5
|
-
const config: LumiereConfig = {
|
|
6
|
-
apiKey: process.env.GEMINI_API_KEY || "",
|
|
7
|
-
outputDir: process.env.LUMIERE_OUTPUT_DIR || "outputs"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const run = async () => {
|
|
11
|
-
if (!config.apiKey) throw new Error("Missing GEMINI_API_KEY");
|
|
12
|
-
const result = await generateImages(config, {
|
|
13
|
-
inputImages: ["./inputs/ring.jpg"],
|
|
14
|
-
quantity: 1,
|
|
15
|
-
selections: {
|
|
16
|
-
templateId: "hand_model",
|
|
17
|
-
detailId: "nail_nude",
|
|
18
|
-
ethnicityId: "mena",
|
|
19
|
-
skinToneId: "medium",
|
|
20
|
-
hairColorId: "brunette",
|
|
21
|
-
backgroundId: "cream_silk",
|
|
22
|
-
backgroundTypeId: "studio",
|
|
23
|
-
vibeId: "clean",
|
|
24
|
-
resolutionId: "portrait"
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
console.log(result);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
run();
|
package/examples/muse.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
package/examples/muse.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
|
2
|
-
import { createMuse } from "../src/pipelines/createMuse";
|
|
3
|
-
const config = {
|
|
4
|
-
apiKey: process.env.GEMINI_API_KEY || "",
|
|
5
|
-
outputDir: process.env.LUMIERE_OUTPUT_DIR || "outputs"
|
|
6
|
-
};
|
|
7
|
-
const run = async () => {
|
|
8
|
-
if (!config.apiKey)
|
|
9
|
-
throw new Error("Missing GEMINI_API_KEY");
|
|
10
|
-
const result = await createMuse(config, {
|
|
11
|
-
name: "Editorial Muse",
|
|
12
|
-
sourceImage: "./inputs/muse_source.jpg",
|
|
13
|
-
variations: 3
|
|
14
|
-
});
|
|
15
|
-
console.log(result);
|
|
16
|
-
};
|
|
17
|
-
run();
|
|
18
|
-
//# sourceMappingURL=muse.js.map
|
package/examples/muse.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"muse.js","sourceRoot":"","sources":["muse.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,MAAM,MAAM,GAAkB;IAC5B,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE;IACxC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,SAAS;CACvD,CAAC;AAEF,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE;IACrB,IAAI,CAAC,MAAM,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE;QACtC,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,0BAA0B;QACvC,UAAU,EAAE,CAAC;KACd,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,GAAG,EAAE,CAAC"}
|
package/examples/muse.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
|
2
|
-
import { createMuse } from "../src/pipelines/createMuse";
|
|
3
|
-
import { LumiereConfig } from "../src/types";
|
|
4
|
-
|
|
5
|
-
const config: LumiereConfig = {
|
|
6
|
-
apiKey: process.env.GEMINI_API_KEY || "",
|
|
7
|
-
outputDir: process.env.LUMIERE_OUTPUT_DIR || "outputs"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const run = async () => {
|
|
11
|
-
if (!config.apiKey) throw new Error("Missing GEMINI_API_KEY");
|
|
12
|
-
const result = await createMuse(config, {
|
|
13
|
-
name: "Editorial Muse",
|
|
14
|
-
sourceImage: "./inputs/muse_source.jpg",
|
|
15
|
-
variations: 3
|
|
16
|
-
});
|
|
17
|
-
console.log(result);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
run();
|
package/examples/video.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
package/examples/video.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
|
2
|
-
import { generateVideo } from "../src/pipelines/generateVideo";
|
|
3
|
-
const config = {
|
|
4
|
-
apiKey: process.env.GEMINI_API_KEY || "",
|
|
5
|
-
outputDir: process.env.LUMIERE_OUTPUT_DIR || "outputs"
|
|
6
|
-
};
|
|
7
|
-
const run = async () => {
|
|
8
|
-
if (!config.apiKey)
|
|
9
|
-
throw new Error("Missing GEMINI_API_KEY");
|
|
10
|
-
const result = await generateVideo(config, {
|
|
11
|
-
prompt: "A cinematic close-up of a model gently turning her head, earrings catching soft light. High-end jewelry commercial aesthetic.",
|
|
12
|
-
aspectRatio: "9:16",
|
|
13
|
-
durationSeconds: 5
|
|
14
|
-
});
|
|
15
|
-
console.log(result);
|
|
16
|
-
};
|
|
17
|
-
run();
|
|
18
|
-
//# sourceMappingURL=video.js.map
|
package/examples/video.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"video.js","sourceRoot":"","sources":["video.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,MAAM,MAAM,GAAkB;IAC5B,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE;IACxC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,SAAS;CACvD,CAAC;AAEF,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE;IACrB,IAAI,CAAC,MAAM,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,MAAM,EAAE;QACzC,MAAM,EAAE,+HAA+H;QACvI,WAAW,EAAE,MAAM;QACnB,eAAe,EAAE,CAAC;KACnB,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,GAAG,EAAE,CAAC"}
|
package/examples/video.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
|
2
|
-
import { generateVideo } from "../src/pipelines/generateVideo";
|
|
3
|
-
import { LumiereConfig } from "../src/types";
|
|
4
|
-
|
|
5
|
-
const config: LumiereConfig = {
|
|
6
|
-
apiKey: process.env.GEMINI_API_KEY || "",
|
|
7
|
-
outputDir: process.env.LUMIERE_OUTPUT_DIR || "outputs"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const run = async () => {
|
|
11
|
-
if (!config.apiKey) throw new Error("Missing GEMINI_API_KEY");
|
|
12
|
-
const result = await generateVideo(config, {
|
|
13
|
-
prompt: "A cinematic close-up of a model gently turning her head, earrings catching soft light. High-end jewelry commercial aesthetic.",
|
|
14
|
-
aspectRatio: "9:16",
|
|
15
|
-
durationSeconds: 5
|
|
16
|
-
});
|
|
17
|
-
console.log(result);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
run();
|
package/logo-round.png
DELETED
|
Binary file
|
package/logo.jpeg
DELETED
|
Binary file
|