From 984421aa68cbe6cc13e75f071a3328b600f7f9d6 Mon Sep 17 00:00:00 2001 From: KQL Date: Sun, 24 Aug 2025 14:27:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=8B=E9=9A=86=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=97=AE=E9=A2=98=EF=BC=8C=E6=9B=B4=E6=96=B0=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新所有文档中的克隆命令 - 添加两种克隆方式:克隆到当前目录或指定文件夹 - 避免默认创建agent子文件夹导致的路径问题 - 添加部署注意事项说明 - 确保项目结构与克隆后一致 --- .claude/settings.local.json | 8 ++++++-- DEPLOYMENT.md | 32 ++++++++++++++++++++------------ README.md | 24 ++++++++++++++++++++++-- 3 files changed, 48 insertions(+), 16 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 79da42e..8d39852 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -12,9 +12,13 @@ "Bash(git push:*)", "Bash(chmod:*)", "Bash(lsof:*)", - "Bash(kill:*)" + "Bash(kill:*)", + "Bash(cat:*)" ], "deny": [], - "ask": [] + "ask": [], + "additionalDirectories": [ + "/Users/apple/Documents/cursor/1111111/agent" + ] } } \ No newline at end of file diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index c301412..3f86f56 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -6,9 +6,13 @@ #### Mac/Linux 用户 ```bash -# 克隆项目 -git clone http://123.60.55.248:3000/Duguay/agent.git -cd agent +# 方法1:克隆到当前目录 +mkdir ai-workflow && cd ai-workflow +git clone http://123.60.55.248:3000/Duguay/agent.git . + +# 方法2:克隆到指定文件夹 +git clone http://123.60.55.248:3000/Duguay/agent.git ai-workflow +cd ai-workflow # 运行快速启动脚本 ./quick-start.sh @@ -16,9 +20,13 @@ cd agent #### Windows 用户 ```bash -# 克隆项目 -git clone http://123.60.55.248:3000/Duguay/agent.git -cd agent +# 方法1:克隆到当前目录 +mkdir ai-workflow && cd ai-workflow +git clone http://123.60.55.248:3000/Duguay/agent.git . + +# 方法2:克隆到指定文件夹 +git clone http://123.60.55.248:3000/Duguay/agent.git ai-workflow +cd ai-workflow # 运行快速启动脚本 quick-start.bat @@ -47,11 +55,13 @@ git --version # 确保 Git 已安装 ### 2. 获取代码 ```bash -# 使用 Git 克隆 -git clone http://123.60.55.248:3000/Duguay/agent.git +# 方法1:克隆到当前目录 +mkdir my-project && cd my-project +git clone http://123.60.55.248:3000/Duguay/agent.git . -# 进入项目目录 -cd agent +# 方法2:克隆到指定目录 +git clone http://123.60.55.248:3000/Duguay/agent.git my-project +cd my-project ``` ### 3. 安装依赖 @@ -85,13 +95,11 @@ npm run serve #### Python 3 ```bash -cd agent python3 -m http.server 5175 --bind 127.0.0.1 ``` #### Python 2 ```bash -cd agent python -m SimpleHTTPServer 5175 ``` diff --git a/README.md b/README.md index f847f42..5fb8bd3 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,10 @@ ### 克隆仓库 ```bash -git clone http://123.60.55.248:3000/Duguay/agent.git -cd agent +git clone http://123.60.55.248:3000/Duguay/agent.git . +# 或者 +git clone http://123.60.55.248:3000/Duguay/agent.git ai-workflow +cd ai-workflow ``` ### 安装依赖 @@ -140,6 +142,24 @@ A: 支持所有现代浏览器,建议使用 Chrome 或 Firefox 的最新版本 - 添加交互式节点导航 - 集成图片预览功能 +## 部署注意事项 + +### 克隆方式说明 + +由于项目文件直接在仓库根目录,建议使用以下方式克隆: + +```bash +# 推荐:克隆到指定文件夹 +git clone http://123.60.55.248:3000/Duguay/agent.git my-workflow +cd my-workflow + +# 或克隆到当前空目录 +mkdir my-workflow && cd my-workflow +git clone http://123.60.55.248:3000/Duguay/agent.git . +``` + +避免直接使用 `git clone url` 以防止路径混乱。 + ## 联系方式 如有问题或建议,请提交 Issue 到: