feat: add typed page schema registry
This commit is contained in:
@@ -97,12 +97,22 @@
|
||||
|
||||
### P4:Typed UI Registry
|
||||
|
||||
状态:第一版完成。
|
||||
|
||||
目标:
|
||||
|
||||
- typed page schema
|
||||
- component/action/event registry
|
||||
- AI 只能选择 registry 中允许的组件和动作
|
||||
|
||||
第一版已落地:
|
||||
|
||||
- `PageComponentRegistry` 提供页面组件能力表,当前覆盖 page/crud/form/operation/button、常用 layout/display 和字段组件。
|
||||
- `TypedPageSchemaValidator` 校验根节点、已注册组件和 actionType 能力。
|
||||
- `GET /api/page/schema/components` 返回组件能力表。
|
||||
- `POST /api/page/schema/validate` 离线校验页面 schema,不写库。
|
||||
- `PUT /api/page/schema/{templateId}/overlay` 保存前会先跑 typed schema 校验,未注册组件或不支持 action 会被 400 阻断。
|
||||
|
||||
### P5:AI tools/skills/employee/ACL
|
||||
|
||||
目标:
|
||||
|
||||
Reference in New Issue
Block a user