@umituz/react-native-ai-generation-content 1.25.24 → 1.25.25
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.
|
|
3
|
+
"version": "1.25.25",
|
|
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",
|
|
@@ -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]
|
|
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]
|
|
269
|
+
console.log("[WizardStrategy] execute() called", {
|
|
247
270
|
scenarioId: scenario.id,
|
|
248
271
|
outputType,
|
|
249
|
-
|
|
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
|
|