1.6 KiB
1.6 KiB
Handoff Boot
用途:新一轮接手时先读本文件,再读 CURRENT-STATE.md 和 PROJECT-MAP.md。
开工顺序
- 运行
rtk git status --short,确认当前工作区改动。 - 阅读
docx/handoff/CURRENT-STATE.md。 - 阅读
docx/handoff/PROJECT-MAP.md。 - 涉及 SQL 时,先阅读
docx/design/上线初始化SQL基线说明_20260624.md。 - 修改代码前按 GitNexus 规则做 impact;提交前做
detect_changes(scope="all")。如 MCP 返回Transport closed,记录原因并用git diff和测试结果兜底。
当前 SQL 规则
- 唯一初始化 SQL:
scripts/sql/init/FingertipDesigner.sql。 - 开发、测试、上线空库初始化只执行该文件。
scripts/sql/migrations当前不保留历史迁移 SQL。- 后续新增表、字段、索引或运行必需种子数据时,必须同步更新初始化 SQL。
- 生产已部署库升级不直接复用初始化 SQL;如需升级已有库,必须单独制定迁移方案并经人工确认。
常用验证
rtk git --no-pager diff --check
rtk mvn -f FD-Core/pom.xml test
rtk mvn -f FD-Gateway/pom.xml test
小程序静态语法检查可使用:
rtk node -e "const fs=require('fs');const path=require('path');let n=0;function walk(d){for(const e of fs.readdirSync(d,{withFileTypes:true})){const p=path.join(d,e.name);if(e.isDirectory())walk(p);else if(e.isFile()&&p.endsWith('.js')){new Function(fs.readFileSync(p,'utf8'));n++;}}}['FM-Wechat-Fronted/api','FM-Wechat-Fronted/utils','FM-Wechat-Fronted/pages'].forEach(walk);console.log('checked '+n+' js files')"