feat: add typed page schema registry
This commit is contained in:
@@ -56,6 +56,19 @@ java -jar platform-cli/target/platform-cli-0.1.0-SNAPSHOT.jar ai auto-develop \
|
||||
- `smokeStatus` 为 `PASSED`。
|
||||
- 最终状态为 `READY_FOR_HUMAN_REVIEW`。
|
||||
- 部署包存在且 `requiresHumanApproval=true`。
|
||||
- 页面 schema 只能使用组件能力表中注册的组件和动作。
|
||||
|
||||
## 页面 schema 校验
|
||||
|
||||
```bash
|
||||
curl http://localhost:8084/api/page/schema/components
|
||||
|
||||
curl -X POST http://localhost:8084/api/page/schema/validate \
|
||||
-H "Content-Type: application/json" \
|
||||
--data-binary @target/ai-runs/page-schema.json
|
||||
```
|
||||
|
||||
设计器保存 overlay 时也会执行同一套 typed schema 校验;未注册组件或不支持的 `actionType` 会被拒绝。
|
||||
|
||||
## 失败处理
|
||||
|
||||
@@ -63,4 +76,3 @@ java -jar platform-cli/target/platform-cli-0.1.0-SNAPSHOT.jar ai auto-develop \
|
||||
2. 如果自动修复已尝试但失败,基于 evidence 修改本地代码或元数据生成逻辑。
|
||||
3. 重新运行本地 auto-develop。
|
||||
4. 不直接连接线上库修复。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user