refactor: DevTools → ethend 重命名 + 加入生产环境
- 目录 devtools/ → ethend/ - CLI 脚本 devtools.sh/.bat → ethend.sh/.bat - 环境变量 DEVTOOLS_PORT → ETHEND_PORT - docker-compose.yml 新增 ethend 服务(生产部署) - 同步更新全部文档、注释和配置文件 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
- [自定义 Hooks](#44-自定义-hooks)
|
||||
- [API 模块](#45-api-模块)
|
||||
- [WebSocket 消息流](#46-websocket-消息流)
|
||||
5. [DevTools (9090) — 调试工具](#五devtools-9090--调试工具)
|
||||
5. [ethend (9090) — 调试工具](#五ethend-9090--调试工具)
|
||||
6. [对话管线详解](#六对话管线详解)
|
||||
7. [数据库设计](#七数据库设计)
|
||||
8. [安全性](#八安全性)
|
||||
@@ -588,9 +588,9 @@ App
|
||||
|
||||
---
|
||||
|
||||
## 五、DevTools (:9090) — 调试工具
|
||||
## 五、ethend (:9090) — 调试工具
|
||||
|
||||
**目录**:`devtools/`
|
||||
**目录**:`ethend/`
|
||||
**类型**:Node.js Express 应用
|
||||
|
||||
### 5.1 服务管理
|
||||
@@ -616,14 +616,14 @@ App
|
||||
|
||||
### 5.3 关键配置
|
||||
|
||||
**构建命令**([config.js](devtools/src/config.js)):
|
||||
**构建命令**([config.js](ethend/src/config.js)):
|
||||
```javascript
|
||||
buildCommand: 'go',
|
||||
buildArgs: ['build', '-o', isWin ? 'main.exe' : 'main', './cmd/main.go'],
|
||||
goBin: GO_BIN
|
||||
```
|
||||
|
||||
所有 Go 服务统一编译为 `main.exe`(Windows),DevTools 通过 `./main` 启动。**自定义二进制名称不会被 DevTools 识别。**
|
||||
所有 Go 服务统一编译为 `main.exe`(Windows),ethend 通过 `./main` 启动。**自定义二进制名称不会被 ethend 识别。**
|
||||
|
||||
---
|
||||
|
||||
@@ -767,7 +767,7 @@ postgres://cyrene:cyrene_pass@localhost:5432/cyrene_ai?sslmode=disable
|
||||
| Memory | 8091 | net/http + pgvector |
|
||||
| Voice | 8093 | net/http + whisper.cpp |
|
||||
| Frontend (dev) | 5173 | Vite |
|
||||
| DevTools | 9090 | Express |
|
||||
| ethend | 9090 | Express |
|
||||
|
||||
### 常用命令
|
||||
|
||||
@@ -777,7 +777,7 @@ cd backend/ai-core && GOWORK=off go build -o main.exe ./cmd/main.go
|
||||
cd backend/gateway && GOWORK=off go build -o main.exe ./cmd/main.go
|
||||
# ... 其他服务同理
|
||||
|
||||
# 或通过 DevTools API
|
||||
# 或通过 ethend API
|
||||
curl -X POST http://localhost:9090/api/services/ai-core/build
|
||||
curl -X POST http://localhost:9090/api/services/gateway/build
|
||||
|
||||
@@ -845,7 +845,7 @@ Phase 6 新增,位于 `backend/models.json`(`.gitignore` 已排除)。格
|
||||
}
|
||||
```
|
||||
|
||||
**配置管理 API**(Gateway admin,DevTools 代理提供 UI):
|
||||
**配置管理 API**(Gateway admin,ethend 代理提供 UI):
|
||||
|
||||
| Method | Path | Description |
|
||||
|--------|------|-------------|
|
||||
|
||||
Reference in New Issue
Block a user