rn-ai 0.2.7 → 0.3.0

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.
Files changed (2) hide show
  1. package/cli.js +15 -6
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -105,23 +105,29 @@ COHERE_API_KEY=""
105
105
 
106
106
  # ByteScale secret (optional) https://bytescale.com
107
107
  BYTESCALE_API_KEY=""
108
+
109
+ # Replicate secret (optional) https://replicate.com/
110
+ REPLICATE_KEY=""
108
111
  `
109
112
 
110
113
  if (withEnv === 'yes') {
111
- console.log('Get OpenAI API Key at https://platform.openai.com/')
114
+ console.log('Get OpenAI API Key at https://platform.openai.com')
112
115
  const openai_api_key = await input({ message: "OpenAI API Key" })
113
116
 
114
- console.log('Get Fal API Key at https://www.fal.ai/')
117
+ console.log('Get Fal API Key at https://www.fal.ai')
115
118
  const fal_api_key = await input({ message: "Fal API Key" })
116
119
 
117
- console.log('(optional) Get Anthropic API Key at https://console.anthropic.com/')
120
+ console.log('(optional) Get Anthropic API Key at https://console.anthropic.com')
118
121
  const anthropic_api_key = await input({ message: "Anthropic API Key" })
119
122
 
120
- console.log('(optional) Get Cohere API Key at https://cohere.com/')
123
+ console.log('(optional) Get Cohere API Key at https://cohere.com')
121
124
  const cohere_api_key = await input({ message: "Cohere API Key" })
122
125
 
123
- console.log('(optional) Get Bytescale API Key at https://bytescale.com/')
126
+ console.log('(optional) Get Bytescale API Key at https://bytescale.com')
124
127
  const bytescale_api_key = await input({ message: "Bytescale API Key" })
128
+
129
+ console.log('(optional) Get Replicate API Key at https://replicate.com')
130
+ const replicate_api_key = await input({ message: "Replicate API Key" })
125
131
 
126
132
  envs = `
127
133
  # environment, either PRODUCTION or DEVELOPMENT
@@ -141,6 +147,9 @@ COHERE_API_KEY="${cohere_api_key}"
141
147
 
142
148
  # FAL
143
149
  FAL_API_KEY="${fal_api_key}"
150
+
151
+ # Replicate secret
152
+ REPLICATE_KEY="${replicate_api_key}"
144
153
  `
145
154
  }
146
155
 
@@ -150,7 +159,7 @@ FAL_API_KEY="${fal_api_key}"
150
159
  await execa('git', ['clone', repoUrl, appName])
151
160
  try {
152
161
  await execa('rm', ['-r', `${appName}/cli`])
153
- // await execa('rm', ['-rf', `${appName}/.git`])
162
+ await execa('rm', ['-rf', `${appName}/.git`])
154
163
  } catch (err) {}
155
164
 
156
165
  let packageJson = fs.readFileSync(`${appName}/server/package.json`, 'utf8')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-ai",
3
- "version": "0.2.7",
3
+ "version": "0.3.0",
4
4
  "description": "Full stack mobile framework for building cross-platform mobile AI apps supporting image processing, real-time / streaming text and chat UIs, and image uploads with multiple service providers.",
5
5
  "type": "module",
6
6
  "bin": "cli.js",