@camelai/create-run-app 0.11.0 → 0.11.1
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/index.js +1 -1
- package/package.json +2 -2
- package/template/.env.example +2 -2
- package/template/README.md +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,6 @@ cd my-app && npm run dev
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
Options: `--api-key` (default: `CAMELAI_API_KEY`), `--base-url` (a runtime other than
|
|
11
|
-
https://
|
|
11
|
+
https://run.camelai.com), `--no-install`. The app has a chat (`<AgentChat>`), its route
|
|
12
12
|
(`createAgentHandler`, which keeps your key on the server), a tool drawn with its own component, and a
|
|
13
13
|
demo sign-in to replace with yours.
|
package/index.js
CHANGED
|
@@ -59,7 +59,7 @@ const relative = options.directory ?? "agent-app";
|
|
|
59
59
|
console.log(`
|
|
60
60
|
Created ${relative}.
|
|
61
61
|
|
|
62
|
-
cd ${relative}${options.install ? "" : `\n ${manager} install`}${options.apiKey ? "" : "\n # add your API key to .env.local (https://
|
|
62
|
+
cd ${relative}${options.install ? "" : `\n ${manager} install`}${options.apiKey ? "" : "\n # add your API key to .env.local (https://run.camelai.com/console)"}
|
|
63
63
|
${manager === "npm" ? "npm run" : manager} dev
|
|
64
64
|
|
|
65
65
|
Then open http://localhost:3000.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camelai/create-run-app",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Create a Next.js app with a streaming chat to an agent on camelRun: npm create @camelai/run-app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/qaml-ai/run.git",
|
|
10
10
|
"directory": "packages/create-run-app"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://
|
|
12
|
+
"homepage": "https://run.camelai.com",
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"registry": "https://registry.npmjs.org",
|
|
15
15
|
"access": "public"
|
package/template/.env.example
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Your API key from https://
|
|
1
|
+
# Your API key from https://run.camelai.com/console (keep it server-side: never NEXT_PUBLIC_).
|
|
2
2
|
CAMELAI_API_KEY=
|
|
3
3
|
# The agent's model, if not the one in app/api/agent/route.ts (any of GET /v1/models?available=true).
|
|
4
4
|
# AGENT_MODEL=openrouter/anthropic/claude-sonnet-5.5
|
|
5
|
-
# Only to use a runtime other than https://
|
|
5
|
+
# Only to use a runtime other than https://run.camelai.com (e.g. one you run locally).
|
|
6
6
|
# CAMELAI_BASE_URL=http://127.0.0.1:8790
|
|
7
7
|
# Allow anonymous demo users in production (only for a throwaway demo: see the README).
|
|
8
8
|
# DEMO_AUTH=1
|
package/template/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
> you replace `authorize` in `app/api/agent/route.ts` (and `proxy.ts`) with your auth, or opt in to
|
|
7
7
|
> anonymous demo users with `DEMO_AUTH=1`.
|
|
8
8
|
|
|
9
|
-
A Next.js app with a streaming chat to an agent on [camelRun](https://
|
|
9
|
+
A Next.js app with a streaming chat to an agent on [camelRun](https://run.camelai.com).
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
12
|
cp .env.example .env.local # add your CAMELAI_API_KEY
|