Skip to content

Commit a8d6702

Browse files
authored
Merge branch 'main' into wegent/team-icon-favorites-showcase
2 parents c387c01 + ebce11f commit a8d6702

File tree

11 files changed

+117
-44
lines changed

11 files changed

+117
-44
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
test-executor:
6565
name: Test Executor
6666
runs-on: ubuntu-latest
67+
timeout-minutes: 10
6768

6869
steps:
6970
- name: Checkout code

AGENTS.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Wegent is an open-source AI-native operating system for defining, organizing, an
2626
**Multi-module architecture:**
2727
- **Backend** (FastAPI + SQLAlchemy + MySQL): RESTful API and business logic
2828
- **Frontend** (Next.js 15 + TypeScript + React 19): Web UI with shadcn/ui components
29-
- **Executor**: Task execution engine (Claude Code, Agno)
29+
- **Executor**: Task execution engine (Claude Code, Agno, Dify)
3030
- **Executor Manager**: Task orchestration via Docker
3131
- **Shared**: Common utilities and models
3232

@@ -465,13 +465,21 @@ alembic upgrade head --sql
465465

466466
### Executor
467467

468-
**Tech:** Python, Claude Code SDK, Agno, Docker
468+
**Tech:** Python, Claude Code SDK, Agno, Dify API, Docker
469+
470+
**Supported Agent Types:**
471+
- **ClaudeCode**: For code development tasks with Claude Code SDK
472+
- **Agno**: For dialogue and chat tasks
473+
- **Dify**: For external API integration with Dify platform (chat, workflow, chatflow, agent-chat modes)
469474

470475
**Common tasks:**
471476
- Add agent type: Implement in `agents/`
472477
- Modify execution: Update `tasks/`
473478

474-
**Environment:** `ANTHROPIC_AUTH_TOKEN` (Claude Code) or `ANTHROPIC_API_KEY` (Agno)
479+
**Environment Variables:**
480+
- Claude Code: `ANTHROPIC_AUTH_TOKEN`
481+
- Agno: `ANTHROPIC_API_KEY`
482+
- Dify: `DIFY_API_KEY`, `DIFY_BASE_URL`
475483

476484
### Executor Manager
477485

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ graph LR
160160

161161
- **Claude Code Shell**: Uses `ANTHROPIC_AUTH_TOKEN`
162162
- **Agno Shell**: Uses `ANTHROPIC_API_KEY`
163+
- **Dify Shell**: Uses `DIFY_API_KEY` and `DIFY_BASE_URL`
163164

164165
Please set the correct variable based on your Shell configuration. Check the Shell's documentation or the `executor/agents/` code for specific requirements.
165166

@@ -190,11 +191,11 @@ graph TB
190191
191192
subgraph "🤖 Agent Layer"
192193
Claude["🧠 Claude Code"]
193-
Ango["💻 Agno"]
194-
DifyPlanned["✨ Dify (Planned)"]
194+
Agno["💻 Agno"]
195+
Dify["✨ Dify"]
195196
end
196-
197-
197+
198+
198199
%% System Interactions
199200
Frontend --> API
200201
API --> Backend
@@ -203,11 +204,11 @@ graph TB
203204
ExecutorManager --> Executor1
204205
ExecutorManager --> Executor2
205206
ExecutorManager --> ExecutorN
206-
207-
%% AI Program Integration (Currently only supports Claude Code)
207+
208+
%% AI Program Integration
208209
Executor1 --> Claude
209-
Executor2 --> Claude
210-
ExecutorN --> Ango
210+
Executor2 --> Agno
211+
ExecutorN --> Dify
211212
```
212213

213214
## 🛠️ Development

README_zh.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ graph LR
162162

163163
- **Claude Code Shell**: 使用 `ANTHROPIC_AUTH_TOKEN`
164164
- **Agno Shell**: 使用 `ANTHROPIC_API_KEY`
165+
- **Dify Shell**: 使用 `DIFY_API_KEY``DIFY_BASE_URL`
165166

166167
请根据您的 Shell 配置设置正确的环境变量。具体要求请查看 Shell 文档或 `executor/agents/` 代码。
167168

@@ -192,8 +193,8 @@ graph TB
192193
193194
subgraph "🤖 智能体层"
194195
Claude["🧠 Claude Code"]
195-
Ango["💻 Agno"]
196-
DifyPlanned["✨ Dify(计划中)"]
196+
Agno["💻 Agno"]
197+
Dify["✨ Dify"]
197198
end
198199
199200
@@ -206,10 +207,10 @@ graph TB
206207
ExecutorManager --> Executor2
207208
ExecutorManager --> ExecutorN
208209
209-
%% AI 程序集成(目前仅支持 Claude Code)
210+
%% AI 程序集成
210211
Executor1 --> Claude
211-
Executor2 --> Claude
212-
ExecutorN --> Ango
212+
Executor2 --> Agno
213+
ExecutorN --> Dify
213214
```
214215

215216
## 🛠️ 开发

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ services:
4545
backend:
4646
# build:
4747
# dockerfile: docker/backend/Dockerfile
48-
image: ghcr.io/wecode-ai/wegent-backend:1.0.11
48+
image: ghcr.io/wecode-ai/wegent-backend:1.0.12
4949
container_name: wegent-backend
5050
restart: always
5151
ports:
@@ -79,7 +79,7 @@ services:
7979
frontend:
8080
# build:
8181
# dockerfile: docker/frontend/Dockerfile
82-
image: ghcr.io/wecode-ai/wegent-web:1.0.11
82+
image: ghcr.io/wecode-ai/wegent-web:1.0.12
8383
container_name: wegent-frontend
8484
restart: always
8585
ports:
@@ -96,7 +96,7 @@ services:
9696
executor_manager:
9797
#build:
9898
#dockerfile: docker/frontend/Dockerfile
99-
image: ghcr.io/wecode-ai/wegent-executor-manager:1.0.11
99+
image: ghcr.io/wecode-ai/wegent-executor-manager:1.0.12
100100
extra_hosts:
101101
- "host.docker.internal:host-gateway"
102102
container_name: wegent-executor-manager
@@ -109,7 +109,7 @@ services:
109109
- PORT=8001
110110
- CALLBACK_HOST=http://executor_manager:8001
111111
- NETWORK=wegent-network
112-
- EXECUTOR_IMAGE=ghcr.io/wecode-ai/wegent-executor:1.0.11
112+
- EXECUTOR_IMAGE=ghcr.io/wecode-ai/wegent-executor:1.0.12
113113
- EXECUTOR_PORT_RANGE_MIN=10001
114114
- EXECUTOR_PORT_RANGE_MAX=10100
115115
- EXECUTOR_WORKSPCE=${HOME}/wecode-bot

docs/en/concepts/architecture.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ graph TB
4444
subgraph "🤖 Agent Layer"
4545
Claude["🧠 Claude Code<br/>Coding Agent"]
4646
Agno["💻 Agno<br/>Chat Agent"]
47-
DifyPlanned["✨ Dify<br/>Planned"]
47+
Dify["✨ Dify<br/>External API Agent"]
4848
end
4949
5050
@@ -60,8 +60,8 @@ graph TB
6060
6161
%% AI Program Integration
6262
Executor1 --> Claude
63-
Executor2 --> Claude
64-
ExecutorN --> Agno
63+
Executor2 --> Agno
64+
ExecutorN --> Dify
6565
6666
%% Styling
6767
classDef platform fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
@@ -72,7 +72,7 @@ graph TB
7272
class Frontend,Backend,API platform
7373
class MySQL,Redis data
7474
class ExecutorManager,Executor1,Executor2,ExecutorN execution
75-
class Claude,Agno,DifyPlanned agent
75+
class Claude,Agno,Dify agent
7676
```
7777

7878
### Architecture Layers
@@ -82,7 +82,7 @@ graph TB
8282
| **Management Platform Layer** | User interaction, resource management, API services | Next.js 15, FastAPI, React 19 |
8383
| **Data Layer** | Data persistence, cache management | MySQL 9.4, Redis 7 |
8484
| **Execution Layer** | Task scheduling, container orchestration, resource isolation | Docker, Python |
85-
| **Agent Layer** | AI capabilities, code execution, chat processing | Claude Code, Agno |
85+
| **Agent Layer** | AI capabilities, code execution, chat processing, external API integration | Claude Code, Agno, Dify |
8686

8787
---
8888

@@ -206,7 +206,7 @@ EXECUTOR_IMAGE: wegent-executor:1.0.5 # Executor image
206206
207207
**Technology Stack**:
208208
- **Container**: Docker
209-
- **Runtime**: Claude Code, Agno
209+
- **Runtime**: Claude Code, Agno, Dify
210210
- **Version Control**: Git
211211
212212
**Core Features**:
@@ -389,8 +389,8 @@ container:
389389

390390
executor_engines:
391391
- "Claude Code (Anthropic)"
392-
- "Agno (experimental)"
393-
- "Dify (planned)"
392+
- "Agno"
393+
- "Dify"
394394
```
395395
396396
---

docs/en/guides/user/creating-bots.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Bot = Ghost (soul) + Shell (container) + Model (AI model)
4040
| Component | Description | Example |
4141
|-----------|-------------|---------|
4242
| **Ghost** | Defines agent's personality and capabilities | "Frontend development expert" |
43-
| **Shell** | Runtime environment | ClaudeCode, Agno |
43+
| **Shell** | Runtime environment | ClaudeCode, Agno, Dify |
4444
| **Model** | AI model configuration | Claude Sonnet 4, GPT-4 |
4545

4646
### Bot vs Ghost
@@ -103,6 +103,7 @@ Clarify what this Bot will be used for:
103103
**Choosing Shell**:
104104
- ClaudeCode: Suitable for code development tasks
105105
- Agno: Suitable for dialogue and interaction tasks
106+
- Dify: Suitable for external API integration with Dify platform (supports chat, workflow, chatflow, agent-chat modes)
106107

107108
**Choosing Model**:
108109
- Sonnet: Balance performance and cost
@@ -449,6 +450,9 @@ shellRef: ClaudeCode
449450

450451
# Dialogue interaction tasks
451452
shellRef: Agno
453+
454+
# External API integration with Dify
455+
shellRef: Dify
452456
```
453457
454458
### 3. Reuse Strategy

docs/zh/concepts/architecture.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ graph TB
4444
subgraph "🤖 智能体层"
4545
Claude["🧠 Claude Code<br/>代码智能体"]
4646
Agno["💻 Agno<br/>对话智能体"]
47-
DifyPlanned["✨ Dify<br/>计划中"]
47+
Dify["✨ Dify<br/>外部 API 智能体"]
4848
end
4949
5050
@@ -60,8 +60,8 @@ graph TB
6060
6161
%% AI 程序集成
6262
Executor1 --> Claude
63-
Executor2 --> Claude
64-
ExecutorN --> Agno
63+
Executor2 --> Agno
64+
ExecutorN --> Dify
6565
6666
%% 样式
6767
classDef platform fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
@@ -72,7 +72,7 @@ graph TB
7272
class Frontend,Backend,API platform
7373
class MySQL,Redis data
7474
class ExecutorManager,Executor1,Executor2,ExecutorN execution
75-
class Claude,Agno,DifyPlanned agent
75+
class Claude,Agno,Dify agent
7676
```
7777

7878
### 架构层次说明
@@ -82,7 +82,7 @@ graph TB
8282
| **管理平台层** | 用户交互、资源管理、API 服务 | Next.js 15, FastAPI, React 19 |
8383
| **数据层** | 数据持久化、缓存管理 | MySQL 9.4, Redis 7 |
8484
| **执行层** | 任务调度、容器编排、资源隔离 | Docker, Python |
85-
| **智能体层** | AI 能力提供、代码执行、对话处理 | Claude Code, Agno |
85+
| **智能体层** | AI 能力提供、代码执行、对话处理、外部 API 集成 | Claude Code, Agno, Dify |
8686

8787
---
8888

@@ -206,7 +206,7 @@ EXECUTOR_IMAGE: wegent-executor:1.0.5 # 执行器镜像
206206
207207
**技术栈**:
208208
- **容器**: Docker
209-
- **运行时**: Claude Code, Agno
209+
- **运行时**: Claude Code, Agno, Dify
210210
- **版本控制**: Git
211211
212212
**核心特性**:
@@ -389,8 +389,8 @@ container:
389389

390390
executor_engines:
391391
- "Claude Code (Anthropic)"
392-
- "Agno (experimental)"
393-
- "Dify (planned)"
392+
- "Agno"
393+
- "Dify"
394394
```
395395
396396
---

docs/zh/guides/user/creating-bots.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Bot = Ghost (灵魂) + Shell (容器) + Model (AI 模型)
4040
| 组件 | 说明 | 示例 |
4141
|------|------|------|
4242
| **Ghost** | 定义智能体的个性和能力 | "前端开发专家" |
43-
| **Shell** | 运行时环境 | ClaudeCode, Agno |
43+
| **Shell** | 运行时环境 | ClaudeCode, Agno, Dify |
4444
| **Model** | AI 模型配置 | Claude Sonnet 4, GPT-4 |
4545

4646
### Bot vs Ghost
@@ -103,6 +103,7 @@ Bot 通过 `Ref` (引用) 来组合资源,而不是直接包含配置。这样
103103
**选择 Shell**:
104104
- ClaudeCode: 适合代码开发任务
105105
- Agno: 适合对话和交互任务
106+
- Dify: 适合与 Dify 平台的外部 API 集成(支持 chat、workflow、chatflow、agent-chat 模式)
106107

107108
**选择 Model**:
108109
- Sonnet: 平衡性能和成本
@@ -449,6 +450,9 @@ shellRef: ClaudeCode
449450

450451
# 对话交互任务
451452
shellRef: Agno
453+
454+
# 与 Dify 外部 API 集成
455+
shellRef: Dify
452456
```
453457
454458
### 3. 复用策略

0 commit comments

Comments
 (0)