chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:58:18 +08:00
commit 6d5d58c1a9
18293 changed files with 3502153 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# CopilotKit v2 Express Example (Single Route)
This example hosts a CopilotKit v2 runtime using Express and the single-route helper.
## Setup
```bash
pnpm -C ../../ install
```
Create a local env file:
```bash
cp .env.example .env
```
Set `OPENAI_API_KEY` in `.env`.
## Run
```bash
pnpm -C ../../ --filter node-express example-dev
```
The runtime will be available at:
```
http://localhost:4000/api/copilotkit
```
## Build
```bash
pnpm -C ../../ --filter node-express example-build
```
## Notes
- This example uses `createCopilotEndpointSingleRouteExpress`.
- TypeScript uses `moduleResolution: node16` to resolve the `@copilotkit/runtime/express` export correctly.