@umituz/react-native-ai-generation-content 1.17.139 → 1.17.140

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.17.139",
3
+ "version": "1.17.140",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -78,9 +78,21 @@ export async function executeImageToVideo(
78
78
  onProgress?.(30);
79
79
 
80
80
  const input = buildInput(imageBase64, request.motionPrompt, request.options);
81
+
82
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
83
+ // eslint-disable-next-line no-console
84
+ console.log("[ImageToVideo] Input keys:", Object.keys(input));
85
+ }
86
+
81
87
  onProgress?.(40);
82
88
 
83
89
  const result = await provider.run(model, input);
90
+
91
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
92
+ // eslint-disable-next-line no-console
93
+ console.log("[ImageToVideo] Result received:", JSON.stringify(result, null, 2).slice(0, 500));
94
+ }
95
+
84
96
  onProgress?.(90);
85
97
 
86
98
  const extractor = extractResult || defaultExtractResult;
@@ -88,6 +100,10 @@ export async function executeImageToVideo(
88
100
  onProgress?.(100);
89
101
 
90
102
  if (!extracted?.videoUrl) {
103
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
104
+ // eslint-disable-next-line no-console
105
+ console.error("[ImageToVideo] No video URL in extracted result:", extracted);
106
+ }
91
107
  return { success: false, error: "No video in response" };
92
108
  }
93
109
 
@@ -98,11 +114,14 @@ export async function executeImageToVideo(
98
114
  };
99
115
  } catch (error) {
100
116
  const message = error instanceof Error ? error.message : String(error);
117
+ const fullError = error instanceof Error ? error.stack : JSON.stringify(error);
101
118
  if (typeof __DEV__ !== "undefined" && __DEV__) {
102
119
  // eslint-disable-next-line no-console
103
- console.error("[ImageToVideo] Error:", message);
120
+ console.error("[ImageToVideo] Execution error:", message);
121
+ // eslint-disable-next-line no-console
122
+ console.error("[ImageToVideo] Full error:", fullError);
104
123
  }
105
- return { success: false, error: message };
124
+ return { success: false, error: message || "Generation failed" };
106
125
  }
107
126
  }
108
127