feat: add AI feature package revisions

This commit is contained in:
2026-06-17 07:56:45 +08:00
parent 5bf641838a
commit c5bfbd3ca3
20 changed files with 597 additions and 14 deletions

View File

@@ -13,15 +13,36 @@
## 发布前检查
1. 确认本地 auto-develop 已通过。
2. 确认部署包包含:
2. 使用 CLI 生成 AI 功能包快照:
```bash
java -jar platform-cli/target/platform-cli-0.1.0-SNAPSHOT.jar ai feature-package \
--base-url http://localhost:8084 \
--task-id ait-xxx \
--change-set-id aics-xxx \
--output target/ai-runs/feature-package.json
```
3. 保存里程碑 revision:
```bash
java -jar platform-cli/target/platform-cli-0.1.0-SNAPSHOT.jar ai revision \
--base-url http://localhost:8084 \
--task-id ait-xxx \
--package-id aipkg-xxx \
--note "本地门禁通过,待人工部署" \
--output target/ai-runs/revision.json
```
4. 确认部署包包含:
- manifest
- SQL 草案
- rollback SQL
- 本地 apply evidence
- smoke evidence
- repair evidence
3. 确认部署包需要人工审批。
4. 如果包含 `${parentMenuId}` 等占位符,必须人工替换并复核。
5. 确认部署包需要人工审批。
6. 如果包含 `${parentMenuId}` 等占位符,必须人工替换并复核。
## 线上 bug 修复路径
@@ -36,4 +57,3 @@
- 不让 Agent 默认直接写线上数据库。
- 不绕过部署包和人审。
- 不把 smoke 失败的变更包交给发布流程。