@umituz/react-native-ai-generation-content 1.41.1 → 1.41.3
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.41.
|
|
3
|
+
"version": "1.41.3",
|
|
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",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@umituz/react-native-design-system": "^2.9.50",
|
|
70
70
|
"@umituz/react-native-firebase": "^1.13.87",
|
|
71
71
|
"@umituz/react-native-localization": "*",
|
|
72
|
-
"@umituz/react-native-subscription": "
|
|
72
|
+
"@umituz/react-native-subscription": "^2.27.23",
|
|
73
73
|
"eslint": "^9.0.0",
|
|
74
74
|
"expo-apple-authentication": "^8.0.8",
|
|
75
75
|
"expo-application": "^7.0.8",
|
package/src/domains/generation/wizard/infrastructure/strategies/shared/unified-prompt-builder.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Unified Prompt Builder
|
|
3
3
|
* Single prompt building logic for ALL generation types (image & video)
|
|
4
4
|
* Uses MultiPersonPromptStructure for photo-based scenarios
|
|
5
|
-
* Uses
|
|
5
|
+
* Uses createPhotorealisticPrompt for text-only scenarios
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { createMultiPersonPrompt } from "../../../../../prompts/domain/entities/MultiPersonPromptStructure";
|
|
9
|
-
import {
|
|
9
|
+
import { createPhotorealisticPrompt } from "../../../../../prompts/domain/entities/BasePromptStructure";
|
|
10
10
|
|
|
11
11
|
export interface BuildPromptOptions {
|
|
12
12
|
/** Base scenario prompt (aiPrompt from scenario config) */
|
|
@@ -20,14 +20,14 @@ export interface BuildPromptOptions {
|
|
|
20
20
|
/**
|
|
21
21
|
* Build unified prompt for any generation type
|
|
22
22
|
* - Photo-based: Uses createMultiPersonPrompt with @image1, @image2 references
|
|
23
|
-
* - Text-only: Uses
|
|
23
|
+
* - Text-only: Uses createPhotorealisticPrompt with identity preservation
|
|
24
24
|
*/
|
|
25
25
|
export function buildUnifiedPrompt(options: BuildPromptOptions): string {
|
|
26
26
|
const { basePrompt, photoCount, interactionStyle } = options;
|
|
27
27
|
|
|
28
28
|
// Text-only generation (no photos)
|
|
29
29
|
if (photoCount === 0) {
|
|
30
|
-
return
|
|
30
|
+
return createPhotorealisticPrompt(basePrompt, {
|
|
31
31
|
includeIdentityPreservation: false,
|
|
32
32
|
includePhotoRealism: true,
|
|
33
33
|
includePoseGuidelines: true,
|