studio-lumiere-cli 0.1.4 → 0.1.6

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 (61) hide show
  1. package/README.md +482 -46
  2. package/dist/config/constants.d.ts +1 -63
  3. package/dist/config/constants.js +3 -1004
  4. package/dist/config/constants.js.map +1 -1
  5. package/dist/pipelines/generateImages.js +10 -4
  6. package/dist/pipelines/generateImages.js.map +1 -1
  7. package/dist/storage/files.js +4 -1
  8. package/dist/storage/files.js.map +1 -1
  9. package/dist/studio/constants.d.ts +71 -0
  10. package/dist/studio/constants.js +1082 -0
  11. package/dist/studio/constants.js.map +1 -0
  12. package/dist/studio/promptBuilder.d.ts +4 -0
  13. package/dist/studio/promptBuilder.js +348 -0
  14. package/dist/studio/promptBuilder.js.map +1 -0
  15. package/dist/studio/types.d.ts +155 -0
  16. package/dist/studio/types.js +2 -0
  17. package/dist/studio/types.js.map +1 -0
  18. package/dist/types.d.ts +2 -49
  19. package/package.json +9 -3
  20. package/scripts/sync-studio.mjs +16 -0
  21. package/.agents/skills/generate-images/SKILL.md +0 -121
  22. package/.env.example +0 -2
  23. package/AGENTS.md +0 -66
  24. package/examples/generate.d.ts +0 -1
  25. package/examples/generate.js +0 -28
  26. package/examples/generate.js.map +0 -1
  27. package/examples/generate.ts +0 -30
  28. package/examples/muse.d.ts +0 -1
  29. package/examples/muse.js +0 -18
  30. package/examples/muse.js.map +0 -1
  31. package/examples/muse.ts +0 -20
  32. package/examples/video.d.ts +0 -1
  33. package/examples/video.js +0 -18
  34. package/examples/video.js.map +0 -1
  35. package/examples/video.ts +0 -20
  36. package/logo-round.png +0 -0
  37. package/logo.jpeg +0 -0
  38. package/skills/studio-lumiere-cli/SKILL.md +0 -212
  39. package/skills/studio-lumiere-cli/agents/openai.yaml +0 -4
  40. package/src/cli.ts +0 -259
  41. package/src/clients/geminiClient.ts +0 -168
  42. package/src/config/constants.ts +0 -1105
  43. package/src/config/options.ts +0 -15
  44. package/src/config/templates.ts +0 -4
  45. package/src/config/tiredGirl.ts +0 -11
  46. package/src/image/annotate.ts +0 -139
  47. package/src/image/grid.ts +0 -58
  48. package/src/index.ts +0 -27
  49. package/src/pipelines/createMuse.ts +0 -76
  50. package/src/pipelines/generateImages.ts +0 -203
  51. package/src/pipelines/generateTiredGirl.ts +0 -86
  52. package/src/pipelines/generateVideo.ts +0 -36
  53. package/src/pipelines/refineImage.ts +0 -36
  54. package/src/pipelines/resolve.ts +0 -88
  55. package/src/pipelines/upscaleImage.ts +0 -30
  56. package/src/prompt/buildPrompt.ts +0 -380
  57. package/src/prompt/tiredGirlPrompt.ts +0 -35
  58. package/src/storage/files.ts +0 -44
  59. package/src/storage/museStore.ts +0 -31
  60. package/src/types.ts +0 -198
  61. package/tsconfig.json +0 -15
package/src/types.ts DELETED
@@ -1,198 +0,0 @@
1
- export type AspectRatio = "1:1" | "3:4" | "4:3" | "9:16" | "16:9";
2
-
3
- export interface Option {
4
- id: string;
5
- name: string;
6
- value: string;
7
- visualColor?: string;
8
- visualImage?: string;
9
- }
10
-
11
- export interface Template {
12
- id: string;
13
- name: string;
14
- description: string;
15
- visualUrl?: string;
16
- basePrompt: string;
17
- customizationLabel?: string;
18
- customizationOptions?: Option[];
19
- secondaryCustomizationLabel?: string;
20
- secondaryCustomizationOptions?: Option[];
21
- tertiaryCustomizationLabel?: string;
22
- tertiaryCustomizationOptions?: Option[];
23
- isAdminOnly?: boolean;
24
- museEnabled?: boolean;
25
- videoEnabled?: boolean;
26
- }
27
-
28
- export interface Resolution {
29
- id: string;
30
- label: string;
31
- aspectRatio: AspectRatio;
32
- icon?: string;
33
- description: string;
34
- instagramUse: string;
35
- }
36
-
37
- export interface OccasionTheme {
38
- id: string;
39
- name: string;
40
- icon: string;
41
- description: string;
42
- autoConfig: {
43
- vibe: string;
44
- background: string;
45
- backgroundType: string;
46
- };
47
- promptDetails?: {
48
- setting: string;
49
- atmosphere: string;
50
- colorPalette: string;
51
- culturalElements: string;
52
- styling: string;
53
- };
54
- }
55
-
56
- export interface GenerationSelections {
57
- templateId: string;
58
- detailId?: string;
59
- secondaryDetailId?: string;
60
- tertiaryDetailId?: string;
61
- ethnicityId?: string;
62
- skinToneId?: string;
63
- hairColorId?: string;
64
- backgroundId?: string;
65
- backgroundTypeId?: string;
66
- vibeId?: string;
67
- resolutionId?: string;
68
- occasionId?: string;
69
- }
70
-
71
- export interface GenerationRequest {
72
- inputImages: string[];
73
- quantity?: number;
74
- selections: GenerationSelections;
75
- styleHint?: string;
76
- museId?: string;
77
- museImagePaths?: string[];
78
- outputDir?: string;
79
- enhancePrompt?: boolean;
80
- }
81
-
82
- export interface GenerationResult {
83
- prompt: string;
84
- enhancedPrompt?: string;
85
- outputImages: string[];
86
- logPath: string;
87
- }
88
-
89
- export interface RefineRequest {
90
- inputImage: string;
91
- instruction: string;
92
- sizeAdjustment?: number;
93
- outputDir?: string;
94
- }
95
-
96
- export interface UpscaleRequest {
97
- inputImage: string;
98
- scale?: number;
99
- outputDir?: string;
100
- }
101
-
102
- export interface MuseRecord {
103
- id: string;
104
- name: string;
105
- imagePaths: string[];
106
- createdAt: string;
107
- }
108
-
109
- export interface CreateMuseRequest {
110
- name: string;
111
- sourceImage: string;
112
- variations?: number;
113
- outputDir?: string;
114
- }
115
-
116
- export interface CreateMuseResult {
117
- muse: MuseRecord;
118
- variationPaths: string[];
119
- logPath: string;
120
- }
121
-
122
- export interface VideoRequest {
123
- prompt: string;
124
- imageInput?: string;
125
- durationSeconds?: number;
126
- aspectRatio?: AspectRatio;
127
- outputDir?: string;
128
- }
129
-
130
- export interface VideoResult {
131
- operationName?: string;
132
- videoPath?: string;
133
- logPath: string;
134
- }
135
-
136
- export interface TiredGirlRequest {
137
- inputImage?: string;
138
- museId?: string;
139
- styleIds?: string[];
140
- quantity?: number;
141
- outputDir?: string;
142
- }
143
-
144
- export interface TiredGirlResult {
145
- outputImages: string[];
146
- logPath: string;
147
- }
148
-
149
- export type TextPosition =
150
- | "top-center"
151
- | "top-left"
152
- | "top-right"
153
- | "bottom-center"
154
- | "bottom-center-high"
155
- | "bottom-left"
156
- | "bottom-right"
157
- | "center";
158
-
159
- export interface TextOverlayOptions {
160
- fontFamily?: string;
161
- fontSize?: number;
162
- fontWeight?: number;
163
- color?: string;
164
- strokeColor?: string;
165
- strokeWidth?: number;
166
- banner?: boolean;
167
- bannerColor?: string;
168
- bannerPadding?: number;
169
- bannerRadius?: number;
170
- position?: TextPosition;
171
- padding?: number;
172
- maxWidthRatio?: number;
173
- }
174
-
175
- export interface GridOptions {
176
- columns: number;
177
- rows: number;
178
- padding?: number;
179
- background?: string;
180
- tileWidth?: number;
181
- tileHeight?: number;
182
- }
183
-
184
- export interface LumiereConfig {
185
- apiKey: string;
186
- outputDir: string;
187
- models?: {
188
- prompt?: string;
189
- image?: string;
190
- video?: string;
191
- };
192
- retry?: {
193
- maxRetries?: number;
194
- baseDelayMs?: number;
195
- maxDelayMs?: number;
196
- };
197
- }
198
-
package/tsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "module": "NodeNext",
5
- "moduleResolution": "NodeNext",
6
- "outDir": "dist",
7
- "rootDir": "src",
8
- "declaration": true,
9
- "sourceMap": true,
10
- "strict": true,
11
- "esModuleInterop": true,
12
- "skipLibCheck": true
13
- },
14
- "include": ["src"]
15
- }