feat: vibe-registry M1 — 万物皆注册框架骨架

- core: registerLayout/Widget/Action(泛型)/Schema + 校验闸门
- definePage: 页面只管业务,结构来自注册表
- presets: admin / app-shell 预设布局(vr add 物化)
- cli: vr list/add/update 防覆盖
- examples/qa-orchestrator: 实战编排验证(workspace:* 依赖)
This commit is contained in:
hellow-da-sb
2026-09-03 00:48:10 +08:00
commit 8c93bde5f6
30 changed files with 1289 additions and 0 deletions
@@ -0,0 +1,17 @@
/**
* test-case-fields —— 测试用例字段 schema
* 用例表格/表单的列定义来源(万物皆注册:连列都是注册的)
*/
import { registerSchema } from 'vibe-registry'
export const testCaseFields = registerSchema({
kind: 'schema',
id: 'test-case-fields',
description: '测试用例字段:名称 / 优先级 / 状态 / 耗时',
fields: [
{ key: 'name', label: '用例名' },
{ key: 'priority', label: '优先级', type: 'P0|P1|P2' },
{ key: 'status', label: '状态', type: 'passed|failed|running|skipped' },
{ key: 'durationMs', label: '耗时(ms)', type: 'number' },
],
})