Skip to content

Commit b2dccbe

Browse files
committed
new UI and fix some bugs
1 parent e9be65b commit b2dccbe

File tree

986 files changed

+6665
-2780
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

986 files changed

+6665
-2780
lines changed

README.md

Lines changed: 95 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,22 @@
158158

159159
## 📰 News
160160

161+
🎨 **[2025-02] New Web UI Experience Upgrade!**
162+
163+
- 🔄 **User-in-Loop Interaction**: Support real-time user interaction during workflows - AI asks clarifying questions directly in the chat
164+
- 💬 **Inline Interaction Design**: Interaction prompts appear naturally within the chat flow for a seamless experience
165+
- 🚀 **One-Click Launch**: Simply run `deepcode` to start the new UI (cross-platform: Windows/macOS/Linux)
166+
- 🔧 **Improved Process Management**: Enhanced service start/stop mechanism with automatic port cleanup
167+
- 📡 **WebSocket Real-time Communication**: Fixed message loss issues, ensuring proper interaction state synchronization
168+
169+
<div align="center">
170+
<img src="./assets/NewUI.png" alt="DeepCode New UI" width="85%" style="border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);" />
171+
<br/>
172+
<sub><em>DeepCode New Web UI - Modern React-based Interface</em></sub>
173+
</div>
174+
175+
---
176+
161177
🎉 **[2025-10] 🎉 [2025-10-28] DeepCode Achieves SOTA on PaperBench!**
162178

163179
DeepCode sets new benchmarks on OpenAI's PaperBench Code-Dev across all categories:
@@ -525,7 +541,39 @@ Implementation Generation • Testing • Documentation
525541

526542
## 🚀 Quick Start
527543

544+
### 📋 **Prerequisites**
545+
546+
Before installing DeepCode, ensure you have the following:
547+
548+
| Requirement | Version | Purpose |
549+
|-------------|---------|---------|
550+
| **Python** | 3.9+ | Core runtime |
551+
| **Node.js** | 18+ | New UI frontend |
552+
| **npm** | 8+ | Package management |
528553

554+
```bash
555+
# Check your versions
556+
python --version # Should be 3.9+
557+
node --version # Should be 18+
558+
npm --version # Should be 8+
559+
```
560+
561+
<details>
562+
<summary><strong>📥 Install Node.js (if not installed)</strong></summary>
563+
564+
```bash
565+
# macOS (using Homebrew)
566+
brew install node
567+
568+
# Ubuntu/Debian
569+
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
570+
sudo apt-get install -y nodejs
571+
572+
# Windows
573+
# Download from https://nodejs.org/
574+
```
575+
576+
</details>
529577

530578
### 📦 **Step 1: Installation**
531579

@@ -714,28 +762,64 @@ bocha-mcp:
714762

715763
### ⚡ **Step 2: Launch Application**
716764

717-
#### 🚀 **Using Installed Package (Recommended)**
765+
#### 🚀 **Using `deepcode` Command (Recommended)**
718766

719767
```bash
720-
# 🌐 Launch web interface directly
768+
# 🌐 Launch the new React-based web interface
721769
deepcode
722770
723-
# The application will automatically start at http://localhost:8501
771+
# Frontend: http://localhost:5173
772+
# Backend API: http://localhost:8000
773+
# Press Ctrl+C to stop all services
774+
```
775+
<div align="center">
776+
<img src="https://img.shields.io/badge/Frontend-localhost:5173-00d4ff?style=flat-square&logo=react&logoColor=white" alt="Frontend" />
777+
<img src="https://img.shields.io/badge/Backend-localhost:8000-4ecdc4?style=flat-square&logo=fastapi&logoColor=white" alt="Backend" />
778+
</div>
779+
780+
> **📦 Auto Install**: On first run, dependencies are automatically installed (`pip install` for backend, `npm install` for frontend)
781+
782+
> **✨ Features**: User-in-Loop interaction, real-time progress tracking, inline chat interaction
783+
784+
#### 🛠️ **Alternative Launch Methods**
785+
786+
<table>
787+
<tr>
788+
<td><strong>🍎 macOS / 🐧 Linux</strong></td>
789+
<td><strong>🪟 Windows</strong></td>
790+
</tr>
791+
<tr>
792+
<td>
793+
794+
```bash
795+
# Using run.sh
796+
./run.sh
797+
798+
# Or using Python directly
799+
python deepcode.py
724800
```
725801

726-
#### 🛠️ **Using Source Code**
802+
</td>
803+
<td>
804+
805+
```cmd
806+
# Using run.bat
807+
run.bat
808+
809+
# Or using Python directly
810+
python deepcode.py
811+
```
727812

728-
Choose your preferred interface:
813+
</td>
814+
</tr>
815+
</table>
729816

730-
##### 🌐 **Web Interface** (Recommended)
731817
```bash
732-
# Using UV
733-
uv run streamlit run ui/streamlit_app.py
734-
# Or using traditional Python
735-
streamlit run ui/streamlit_app.py
818+
# Classic Streamlit UI (all platforms)
819+
deepcode --classic
736820
```
737821
<div align="center">
738-
<img src="https://img.shields.io/badge/Access-localhost:8501-00d4ff?style=flat-square&logo=streamlit&logoColor=white" alt="Web Access" />
822+
<img src="https://img.shields.io/badge/Classic_UI-localhost:8501-00d4ff?style=flat-square&logo=streamlit&logoColor=white" alt="Classic UI" />
739823
</div>
740824

741825
##### 🖥️ **CLI Interface** (Advanced Users)

README_ZH.md

Lines changed: 95 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,22 @@
156156

157157
## 📰 新闻
158158

159+
🎨 **[2025-02] 全新 Web UI 体验升级!**
160+
161+
- 🔄 **用户交互循环 (User-in-Loop)**: 支持工作流程中的实时用户交互,AI 会在对话中向您提问以澄清需求
162+
- 💬 **内联交互设计**: 交互问题直接显示在对话框中,体验更自然流畅
163+
- 🚀 **一键启动**: 运行 `deepcode` 即可启动新版 UI(跨平台支持:Windows/macOS/Linux)
164+
- 🔧 **优化的进程管理**: 改进了服务启停机制,自动清理端口占用
165+
- 📡 **WebSocket 实时通信**: 修复了消息丢失问题,确保交互状态正确同步
166+
167+
<div align="center">
168+
<img src="./assets/NewUI.png" alt="DeepCode 全新 UI" width="85%" style="border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);" />
169+
<br/>
170+
<sub><em>DeepCode 全新 Web UI - 基于 React 的现代界面</em></sub>
171+
</div>
172+
173+
---
174+
159175
🎉 **[2025-10] 🎉 [2025-10-28] DeepCode在PaperBench上达到最先进水平!**
160176

161177
DeepCode在OpenAI的PaperBench Code-Dev所有类别中创造新基准:
@@ -522,7 +538,39 @@ DeepCode利用**模型上下文协议 (MCP)** 标准与各种工具和服务无
522538

523539
## 🚀 快速开始
524540

541+
### 📋 **前置条件**
542+
543+
在安装 DeepCode 之前,请确保您已安装以下软件:
544+
545+
| 要求 | 版本 | 用途 |
546+
|------|------|------|
547+
| **Python** | 3.9+ | 核心运行环境 |
548+
| **Node.js** | 18+ | 新版 UI 前端 |
549+
| **npm** | 8+ | 包管理工具 |
525550

551+
```bash
552+
# 检查您的版本
553+
python --version # 应为 3.9+
554+
node --version # 应为 18+
555+
npm --version # 应为 8+
556+
```
557+
558+
<details>
559+
<summary><strong>📥 安装 Node.js(如果未安装)</strong></summary>
560+
561+
```bash
562+
# macOS (使用 Homebrew)
563+
brew install node
564+
565+
# Ubuntu/Debian
566+
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
567+
sudo apt-get install -y nodejs
568+
569+
# Windows
570+
# 从 https://nodejs.org/ 下载安装
571+
```
572+
573+
</details>
526574

527575
### 📦 **步骤1: 安装**
528576

@@ -711,28 +759,64 @@ bocha-mcp:
711759

712760
### ⚡ **步骤2: 启动应用程序**
713761

714-
#### 🚀 **使用已安装的包 (推荐)**
762+
#### 🚀 **使用 `deepcode` 命令 (推荐)**
715763

716764
```bash
717-
# 🌐 直接启动Web界面
765+
# 🌐 启动新版 React 界面
718766
deepcode
719767
720-
# 应用程序将自动在 http://localhost:8501 启动
768+
# 前端: http://localhost:5173
769+
# 后端 API: http://localhost:8000
770+
# 按 Ctrl+C 停止所有服务
771+
```
772+
<div align="center">
773+
<img src="https://img.shields.io/badge/前端-localhost:5173-00d4ff?style=flat-square&logo=react&logoColor=white" alt="Frontend" />
774+
<img src="https://img.shields.io/badge/后端-localhost:8000-4ecdc4?style=flat-square&logo=fastapi&logoColor=white" alt="Backend" />
775+
</div>
776+
777+
> **📦 自动安装**: 首次运行时会自动安装依赖(后端 `pip install`,前端 `npm install`)
778+
779+
> **✨ 特性**: 用户交互循环、实时进度跟踪、内联对话交互
780+
781+
#### 🛠️ **其他启动方式**
782+
783+
<table>
784+
<tr>
785+
<td><strong>🍎 macOS / 🐧 Linux</strong></td>
786+
<td><strong>🪟 Windows</strong></td>
787+
</tr>
788+
<tr>
789+
<td>
790+
791+
```bash
792+
# 使用 run.sh
793+
./run.sh
794+
795+
# 或直接使用 Python
796+
python deepcode.py
721797
```
722798

723-
#### 🛠️ **使用源码**
799+
</td>
800+
<td>
801+
802+
```cmd
803+
# 使用 run.bat
804+
run.bat
805+
806+
# 或直接使用 Python
807+
python deepcode.py
808+
```
724809

725-
选择您首选的界面:
810+
</td>
811+
</tr>
812+
</table>
726813

727-
##### 🌐 **Web界面** (推荐)
728814
```bash
729-
# 使用UV
730-
uv run streamlit run ui/streamlit_app.py
731-
# 或使用传统Python
732-
streamlit run ui/streamlit_app.py
815+
# 经典 Streamlit UI (所有平台)
816+
deepcode --classic
733817
```
734818
<div align="center">
735-
<img src="https://img.shields.io/badge/访问-localhost:8501-00d4ff?style=flat-square&logo=streamlit&logoColor=white" alt="Web Access" />
819+
<img src="https://img.shields.io/badge/经典_UI-localhost:8501-00d4ff?style=flat-square&logo=streamlit&logoColor=white" alt="Classic UI" />
736820
</div>
737821

738822
##### 🖥️ **CLI界面** (高级用户)

assets/NewUI.png

306 KB
Loading

0 commit comments

Comments
 (0)