@umituz/react-native-ai-generation-content 1.25.24 → 1.25.26

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.25.24",
3
+ "version": "1.25.26",
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",
@@ -567,5 +567,6 @@ export interface Scenario {
567
567
  requiresPhoto?: boolean;
568
568
  hidden?: boolean;
569
569
  outputType: ScenarioOutputType;
570
+ model?: string; // AI model from app config
570
571
  enabled?: boolean;
571
572
  }
@@ -43,6 +43,15 @@ async function executeImageGeneration(
43
43
  model: string,
44
44
  onProgress?: (progress: number) => void,
45
45
  ): Promise<{ success: boolean; imageUrl?: string; error?: string }> {
46
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
47
+ console.log("[WizardStrategy] executeImageGeneration ENTRY", {
48
+ receivedModel: model,
49
+ hasPartnerA: !!input.partnerABase64,
50
+ hasPartnerB: !!input.partnerBBase64,
51
+ promptLength: input.prompt.length,
52
+ });
53
+ }
54
+
46
55
  const { providerRegistry } = await import("../../../../infrastructure/services/provider-registry.service");
47
56
 
48
57
  const provider = providerRegistry.getActiveProvider();
@@ -79,7 +88,12 @@ async function executeImageGeneration(
79
88
  };
80
89
 
81
90
  if (typeof __DEV__ !== "undefined" && __DEV__) {
82
- console.log("[WizardStrategy] Starting image generation", { model });
91
+ console.log("[WizardStrategy] ABOUT TO CALL provider.subscribe", {
92
+ model,
93
+ modelType: typeof model,
94
+ modelLength: model?.length,
95
+ imageUrlsCount: imageUrls.length,
96
+ });
83
97
  }
84
98
 
85
99
  let lastStatus = "";
@@ -238,15 +252,25 @@ export const createWizardStrategy = (
238
252
  const outputType = scenario.outputType || "video";
239
253
  const videoFeatureType = getVideoFeatureType(scenario.id);
240
254
 
255
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
256
+ console.log("[WizardStrategy] createWizardStrategy called", {
257
+ scenarioId: scenario.id,
258
+ scenarioModel: scenario.model,
259
+ outputType,
260
+ hasModel: !!scenario.model,
261
+ });
262
+ }
263
+
241
264
  let lastInputRef: WizardGenerationInput | null = null;
242
265
 
243
266
  return {
244
267
  execute: async (input, onProgress) => {
245
268
  if (typeof __DEV__ !== "undefined" && __DEV__) {
246
- console.log("[WizardStrategy] Executing generation", {
269
+ console.log("[WizardStrategy] execute() called", {
247
270
  scenarioId: scenario.id,
248
271
  outputType,
249
- model: scenario.model,
272
+ scenarioModel: scenario.model,
273
+ hasModel: !!scenario.model,
250
274
  });
251
275
  }
252
276
 
@@ -259,6 +283,13 @@ export const createWizardStrategy = (
259
283
  throw new Error("Model is required for image generation. Please configure model in app generation.config.ts");
260
284
  }
261
285
 
286
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
287
+ console.log("[WizardStrategy] About to call executeImageGeneration", {
288
+ model: scenario.model,
289
+ scenarioId: scenario.id,
290
+ });
291
+ }
292
+
262
293
  const imageInput = input as ImageGenerationInput;
263
294
  const result = await executeImageGeneration(imageInput, scenario.model, onProgress);
264
295
 
@@ -98,7 +98,25 @@ export const GenericWizardFlow: React.FC<GenericWizardFlowProps> = ({
98
98
 
99
99
  // Ensure scenario has required fields - use feature config as fallback
100
100
  const validatedScenario = useMemo(() => {
101
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
102
+ console.log("[GenericWizardFlow] Validating scenario", {
103
+ hasScenario: !!scenario,
104
+ scenarioId: scenario?.id,
105
+ hasAiPrompt: scenario?.aiPrompt !== undefined,
106
+ hasModel: !!scenario?.model,
107
+ scenarioModel: scenario?.model,
108
+ outputType: scenario?.outputType,
109
+ });
110
+ }
111
+
101
112
  if (scenario && scenario.id && scenario.aiPrompt !== undefined) {
113
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
114
+ console.log("[GenericWizardFlow] Scenario validation passed", {
115
+ scenarioId: scenario.id,
116
+ model: scenario.model,
117
+ outputType: scenario.outputType,
118
+ });
119
+ }
102
120
  return scenario;
103
121
  }
104
122