@umituz/react-native-ai-pruna-provider 1.0.58 → 1.0.60
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.
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Sets up or updates the @umituz/react-native-ai-pruna-provider package in a React Native app.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Pruna AI Provider Setup Skill
|
|
6
|
+
|
|
7
|
+
When this workflow/skill is invoked, follow these explicit instructions to configure `@umituz/react-native-ai-pruna-provider` for text-to-image and image-to-video AI generation capabilities.
|
|
8
|
+
|
|
9
|
+
## Step 1: Check and Update `package.json`
|
|
10
|
+
- Locate the project's `package.json`.
|
|
11
|
+
- Check if `@umituz/react-native-ai-pruna-provider` is installed.
|
|
12
|
+
- If missing: Install with `npm install @umituz/react-native-ai-pruna-provider`.
|
|
13
|
+
- If outdated: Update it to the latest version.
|
|
14
|
+
|
|
15
|
+
## Step 2: Ensure Peer Dependencies
|
|
16
|
+
This module requires the core AI generation content package. Verify and install if missing:
|
|
17
|
+
- `@umituz/react-native-ai-generation-content`
|
|
18
|
+
|
|
19
|
+
## Step 3: Check Environment Variables
|
|
20
|
+
- Ensure that the `PRUNA_API_KEY` environment variable is defined in the project's `.env.example` and `.env` files. If it is missing, politely prompt the user to add it.
|
|
21
|
+
|
|
22
|
+
## Step 4: Inject Provider Initialization
|
|
23
|
+
- Locate the app's initialization sequence (e.g., `App.tsx`, `app/_layout.tsx`, or an initialization module `src/init/index.ts`).
|
|
24
|
+
- Import `initializePrunaProvider` from `@umituz/react-native-ai-pruna-provider`.
|
|
25
|
+
- Configure the provider exactly as follows:
|
|
26
|
+
```typescript
|
|
27
|
+
import { initializePrunaProvider } from '@umituz/react-native-ai-pruna-provider';
|
|
28
|
+
|
|
29
|
+
// Inside initialization logic:
|
|
30
|
+
initializePrunaProvider({
|
|
31
|
+
apiKey: process.env.EXPO_PUBLIC_PRUNA_API_KEY || '',
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Step 5: Summary
|
|
36
|
+
State what changes were made. List any downloaded packages (e.g. `@umituz/react-native-ai-generation-content`), env setups, and which file the `initializePrunaProvider` function was added to.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-pruna-provider",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.60",
|
|
4
4
|
"description": "Pruna AI provider for React Native - implements IAIProvider interface for unified AI generation",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
},
|
|
96
96
|
"files": [
|
|
97
97
|
"src",
|
|
98
|
+
".agents",
|
|
98
99
|
"README.md",
|
|
99
100
|
"LICENSE"
|
|
100
101
|
]
|