feat: HESUPIPE 公司事实卡(官网硬事实+防编造规则)
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
- Create: 整个项目骨架(从参考项目拷贝)
|
||||
- Delete: `static/blog.html`、redis 相关配置
|
||||
|
||||
- [ ] **Step 1: 拷贝项目(排除密钥/数据/缓存)**
|
||||
- [x] **Step 1: 拷贝项目(排除密钥/数据/缓存)**
|
||||
|
||||
```bash
|
||||
cd /d/refactor
|
||||
@@ -43,7 +43,7 @@ robocopy 返回码 0-7 都算成功(1=有文件拷贝),≥8 才是失败
|
||||
robocopy 的 `/XD .git` 只排除源目录的 .git,不影响目标已有仓库。Step 6 前用
|
||||
`git rev-parse --is-inside-work-tree` 确认输出 `true` 即可(若在全新环境重跑本计划则先 `git init`)。
|
||||
|
||||
- [ ] **Step 2: 验证拷贝结果**
|
||||
- [x] **Step 2: 验证拷贝结果**
|
||||
|
||||
```bash
|
||||
cd /d/refactor/ai-kefu-jc && ls app/ static/ tests/ scripts/
|
||||
@@ -52,7 +52,7 @@ test ! -f .env && echo OK-no-env
|
||||
mkdir -p data
|
||||
```
|
||||
|
||||
- [ ] **Step 3: 清理无用件**
|
||||
- [x] **Step 3: 清理无用件**
|
||||
|
||||
```bash
|
||||
rm static/blog.html
|
||||
@@ -63,7 +63,7 @@ rm static/blog.html
|
||||
2. `docker-compose.yml` 删除整个 redis service 块(`cc-ai-kefu-redis`)
|
||||
3. `.env.example` 删除 `REDIS_URL`/`REDIS_PASSWORD` 行及注释
|
||||
|
||||
- [ ] **Step 4: 安装依赖并建 .env 占位**
|
||||
- [x] **Step 4: 安装依赖并建 .env 占位**
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt -r requirements-dev.txt
|
||||
@@ -72,7 +72,7 @@ cp .env.example .env
|
||||
|
||||
`.env` 中 `ZHIPU_API_KEY` 先留占位(跑测试不需真实 Key,LLM 全 mock)。
|
||||
|
||||
- [ ] **Step 5: 基线测试——未改任何代码前必须全绿**
|
||||
- [x] **Step 5: 基线测试——未改任何代码前必须全绿**
|
||||
|
||||
```bash
|
||||
python -m pytest -q
|
||||
@@ -80,7 +80,7 @@ python -m pytest -q
|
||||
|
||||
预期:170+ passed(参考项目全绿,拷贝后应同样全绿)。若有 Windows 环境性失败,先修复环境再继续(参考项目 conftest.py 头部有 Windows aiosqlite 清理说明)。
|
||||
|
||||
- [ ] **Step 6: Commit**
|
||||
- [x] **Step 6: Commit**
|
||||
|
||||
```bash
|
||||
git add -A && git commit -m "chore: 从汽车AI客服项目拷贝骨架并清理(blog页/redis)"
|
||||
|
||||
Reference in New Issue
Block a user