Add assistant-ui data agent frontend

This commit is contained in:
武阳
2026-05-06 16:18:32 +08:00
parent d6a2359dc1
commit 7d4ae3e7ba
119 changed files with 14330 additions and 14420 deletions
+21 -15
View File
@@ -1,21 +1,27 @@
# Claw Code Agent Frontend
This frontend is based on the official [assistant-ui](https://github.com/assistant-ui/assistant-ui) starter project.
This frontend is based on the MIT-licensed `langchain-ai/agent-chat-ui` project and will be adapted into the Claw Code Agent data workbench.
The current goal is to keep the upstream assistant-ui visual structure intact, then add Claw Code Agent backend adapters in small, reviewable steps.
Current scope:
## Getting Started
- Keep the upstream chat UI foundation.
- Preserve the artifact side-panel pattern for review and dataset outputs.
- Replace the LangGraph client integration with Claw Code Agent FastAPI endpoints in later steps.
First, add your OpenAI API key to `.env.local` file:
Upstream license attribution is kept in `LICENSE.agent-chat-ui`.
## Development
```bash
corepack enable
pnpm install
pnpm dev
```
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
The default Next.js dev server runs on `http://localhost:3000`.
Then, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.