rn-ai 0.0.9 → 0.1.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.
- package/README.md +1 -1
- package/cli.js +11 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,9 +7,9 @@ Full stack mobile framework for building cross-platform mobile AI apps supportin
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
9
|
- LLM support for [OpenAI](https://openai.com/) ChatGPT, [Anthropic](https://anthropic.com) Claude, [Cohere](https://cohere.com/) and Cohere Web
|
|
10
|
+
- An array of image models provided by [Fal.ai](https://www.fal.ai/)
|
|
10
11
|
- Image processing with [ByteScale](https://bytescale.com/)
|
|
11
12
|
- Real-time / streaming responses from all providers
|
|
12
|
-
- An array of image models provided by [Fal.ai](https://www.fal.ai/)
|
|
13
13
|
- OpenAI Assistants including code interpreter and retrieval
|
|
14
14
|
- Server proxy to easily enable authentication and authorization with auth provider of choice.
|
|
15
15
|
- Theming (comes out of the box with 4 themes) - easily add additional themes with just a few lines of code.
|
package/cli.js
CHANGED
|
@@ -157,48 +157,50 @@ FAL_API_KEY="${fal_api_key}"
|
|
|
157
157
|
|
|
158
158
|
process.chdir(path.join(process.cwd(), `${appName}/server`))
|
|
159
159
|
spinner.text = ''
|
|
160
|
-
let
|
|
160
|
+
let serverStartCommand = ''
|
|
161
161
|
|
|
162
162
|
if (isBunInstalled()) {
|
|
163
163
|
spinner.text = 'Installing server dependencies'
|
|
164
164
|
await execaCommand('bun install').pipeStdout(process.stdout)
|
|
165
165
|
spinner.text = ''
|
|
166
|
-
|
|
166
|
+
serverStartCommand = 'bun dev'
|
|
167
167
|
console.log('\n')
|
|
168
168
|
} else if (isYarnInstalled()) {
|
|
169
169
|
await execaCommand('yarn').pipeStdout(process.stdout)
|
|
170
|
-
|
|
170
|
+
serverStartCommand = 'yarn dev'
|
|
171
171
|
} else {
|
|
172
172
|
spinner.text = 'Installing server dependencies'
|
|
173
173
|
await execa('npm', ['install', '--verbose']).pipeStdout(process.stdout)
|
|
174
174
|
spinner.text = ''
|
|
175
|
-
|
|
175
|
+
serverStartCommand = 'npm run dev'
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
process.chdir('../')
|
|
179
179
|
process.chdir(path.join(process.cwd(), `app`))
|
|
180
180
|
|
|
181
181
|
spinner.text = ''
|
|
182
|
-
|
|
182
|
+
let appStartCommand = ''
|
|
183
183
|
|
|
184
184
|
if (isBunInstalled()) {
|
|
185
185
|
spinner.text = 'Installing app dependencies'
|
|
186
186
|
await execaCommand('bun install').pipeStdout(process.stdout)
|
|
187
187
|
spinner.text = ''
|
|
188
|
-
|
|
188
|
+
appStartCommand = 'bun start'
|
|
189
189
|
console.log('\n')
|
|
190
190
|
} else if (isYarnInstalled()) {
|
|
191
191
|
await execaCommand('yarn').pipeStdout(process.stdout)
|
|
192
|
-
|
|
192
|
+
appStartCommand = 'yarn start'
|
|
193
193
|
} else {
|
|
194
194
|
spinner.text = 'Installing app dependencies'
|
|
195
195
|
await execa('npm', ['install', '--verbose']).pipeStdout(process.stdout)
|
|
196
196
|
spinner.text = ''
|
|
197
|
-
|
|
197
|
+
appStartCommand = 'npm start'
|
|
198
198
|
}
|
|
199
199
|
spinner.stop()
|
|
200
|
+
process.chdir('../')
|
|
200
201
|
log(`${green.bold('Success!')} Created ${appName} at ${process.cwd()} \n`)
|
|
201
|
-
log(`To get started, change into the
|
|
202
|
+
log(`To get started, change into the server directory and run ${chalk.cyan(serverStartCommand)}\n`)
|
|
203
|
+
log(`In a separate terminal, change into the app directory and run ${chalk.cyan(appStartCommand)}`)
|
|
202
204
|
} catch (err) {
|
|
203
205
|
console.log('eror:', err)
|
|
204
206
|
log('\n')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rn-ai",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.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",
|