Skip to content

Commit 0a1126c

Browse files
authored
Merge pull request #7 from RonnyChan96/main_remove_agent_flow_module
[agent-flow] Remove agent-flow module
2 parents fe8cadf + 55d41dd commit 0a1126c

File tree

472 files changed

+1
-48497
lines changed

Some content is hidden

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

472 files changed

+1
-48497
lines changed

.github/workflows/elsa-compile.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ on:
77
- 'elsa-[0-9]+\.[0-9]+\.x' # 转义小数点,匹配如 elsa-0.1.x
88
paths:
99
- 'elsa/**'
10-
- 'agent-flow/**'
1110
pull_request:
1211
branches:
1312
- 'main'
1413
- 'elsa-[0-9]+\.[0-9]+\.x' # 转义小数点,匹配如 elsa-0.1.x
1514
paths:
1615
- 'elsa/**'
17-
- 'agent-flow/**'
1816

1917
jobs:
2018
build:
@@ -34,9 +32,3 @@ jobs:
3432
run: |
3533
npm install
3634
npm run build
37-
38-
- name: Build agent-flow
39-
working-directory: ./agent-flow
40-
run: |
41-
npm install
42-
npm run build

PUBLISH_GUIDE.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@
3333

3434
## 发布流程
3535

36-
ELSA 项目包含两个模块,发布时需要按照以下顺序进行:
37-
38-
1. **首先发布 @fit-elsa/elsa**(核心框架模块)
39-
2. **然后发布 @fit-elsa/agent-flow**(React前端应用模块)
40-
41-
这是因为 agent-flow 依赖于 elsa,确保依赖的模块先发布可以避免版本冲突。
36+
1. **发布 @fit-elsa/elsa**(核心框架模块)
4237

4338
## 使用发布脚本
4439

@@ -58,22 +53,6 @@ ELSA 项目包含两个模块,发布时需要按照以下顺序进行:
5853
npm publish --access public
5954
```
6055

61-
### 直接发布 @fit-elsa/agent-flow
62-
63-
1. 打开命令行终端
64-
2. 导航到 agent-flow 目录
65-
3. 执行以下命令:
66-
```bash
67-
# 安装依赖
68-
npm install
69-
70-
# 构建项目
71-
npm run build
72-
73-
# 发布到 npm(确保已登录且有发布权限)
74-
npm publish --access public
75-
```
76-
7756
### 脚本流程
7857

7958
运行每个模块的发布脚本后,它将执行以下操作:

README.md

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,11 @@
1212

1313
- 支持图形拖拽和画布拖拽,并提供节点整理和一键显示所有节点的能力
1414

15-
### 前端应用 (agent-flow)
16-
17-
- **集成React能力**
18-
19-
- 基于Context的上下文传递
20-
- 节点渲染缓存:React.memo + 自定义shouldComponentUpdate
21-
- **集成Ant Design能力**
22-
23-
- 基于Form组件的实时校验提示系统
24-
- 基于Tree组件封装的节点上下文观察者机制
25-
2615

2716
## 🚀 核心架构概览
2817
### 1. 分层架构
2918

3019
```markdown
31-
├─ agent-flow/ # React前端应用
32-
│ └─ src/ # 前端源代码
3320
└─ elsa/ # 核心框架
3421
├─ common/ # 通用工具
3522
├─ core/ # 工作流运行时引擎
@@ -54,28 +41,6 @@
5441
| **国际化** | `[email protected]`(多语言支持) |
5542
| **视频处理** | `[email protected]`(视频播放器集成) |
5643

57-
### @elsa/agent-flow(React 前端模块)
58-
#### **核心框架**
59-
| 类别 | 技术栈 |
60-
| ----------- | ----------------------------------------- |
61-
| **前端框架** | React 18 + TypeScript(隐式依赖) |
62-
| **状态管理** | 原生 React Hooks(未显式引入 Redux) |
63-
| **UI 组件库** | Ant [email protected] +`@ant-design/[email protected]` |
64-
65-
#### **开发工具链**
66-
| 类别 | 技术栈 |
67-
| --------- | ------------------------------------------ |
68-
| **构建工具** | Vite@5(替代 Webpack) +`vite-plugin-react@4` |
69-
| **代码规范** | ESLint +`react-hooks`/`refresh`插件 |
70-
| **特殊集成** | `vite-plugin-svgr`(SVG 转 React 组件) |
71-
72-
#### **关键功能依赖**
73-
| 类别 | 技术栈 |
74-
| ------------- | ---------------------------------------------------------------------- |
75-
| **编辑器** | `[email protected]`(代码编辑器) +`@tinymce/[email protected]`(注释节点富文本编辑器) |
76-
| **HTTP 客户端** | `[email protected]`(API 请求) |
77-
| **核心依赖** | `@fit-elsa/elsa`(本地路径引用) |
78-
7944
## 快速开始
8045

8146
所需要的环境:
@@ -95,16 +60,4 @@ npm i
9560

9661
# 编译构建
9762
npm run build
98-
99-
# 进入agent-flow目录
100-
cd ../agent-flow
101-
102-
# 安装依赖
103-
npm i
104-
105-
# 编译构建
106-
npm run build
107-
108-
#启动 fit-agent-flow
109-
npm run dev
11063
```

agent-flow/.eslintrc.cjs

Lines changed: 0 additions & 21 deletions
This file was deleted.

agent-flow/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

agent-flow/.npmrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

agent-flow/README.md

Lines changed: 0 additions & 154 deletions
This file was deleted.

0 commit comments

Comments
 (0)