@umituz/react-native-ai-generation-content 1.89.29 → 1.89.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-ai-generation-content",
3
- "version": "1.89.29",
3
+ "version": "1.89.31",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -12,6 +12,7 @@
12
12
  * - Mood filter generation
13
13
  */
14
14
 
15
+ import type { GenerationTarget } from "../../../exports/presentation";
15
16
  import {
16
17
  resolveCoupleInput,
17
18
  prependContext,
@@ -20,15 +21,6 @@ import {
20
21
  } from "../../prompts";
21
22
  import { getAppearanceContext } from "./appearance-analysis";
22
23
 
23
- /**
24
- * Generation target configuration
25
- * TODO: Import from app config when available
26
- */
27
- const GENERATION_TARGETS = {
28
- imageCoupleMultiRef: { model: "p-image-edit", providerId: "pruna" },
29
- imageSingleEdit: { model: "p-image-edit", providerId: "pruna" },
30
- } as const;
31
-
32
24
  /**
33
25
  * Couple generation input parameters
34
26
  */
@@ -49,7 +41,7 @@ export interface CoupleGenerationInputParams {
49
41
  * Couple generation result
50
42
  */
51
43
  export interface CoupleGenerationInput {
52
- target: string;
44
+ target: GenerationTarget;
53
45
  prompt: string;
54
46
  params: Record<string, unknown>;
55
47
  }
@@ -122,8 +114,8 @@ export async function buildCoupleGenerationInput(
122
114
  partner1PhotoUri,
123
115
  partner2PhotoUri,
124
116
  isCoupleMode,
125
- GENERATION_TARGETS.imageSingleEdit,
126
- GENERATION_TARGETS.imageCoupleMultiRef,
117
+ { model: "p-image-edit", providerId: "pruna" }, // Single target
118
+ { model: "p-image-edit", providerId: "pruna" }, // Couple target
127
119
  );
128
120
 
129
121
  // 6. BUILD PARAMS - Wardrobe formatında
@@ -186,8 +178,8 @@ export async function buildScenarioGenerationInput(
186
178
  partner1PhotoUri,
187
179
  partner2PhotoUri,
188
180
  isCoupleMode,
189
- GENERATION_TARGETS.imageSingleEdit,
190
- GENERATION_TARGETS.imageCoupleMultiRef,
181
+ { model: "p-image-edit", providerId: "pruna" }, // Single target
182
+ { model: "p-image-edit", providerId: "pruna" }, // Couple target
191
183
  );
192
184
 
193
185
  // 5. BUILD PARAMS - Scenario formatında