Files
dacli/tools/schemas/dacli-extensions.schema.json
T
sswandClaude 3f1cb3a03b feat(dacli): JNPF7 验证闭环 Stage 0 + P0-6 preview + workflow canvas 回归修复
Stage 0 (验证基础设施):
- 5 层验证工具链 (tools/) + JSON Schema + validate-baseline.sh CI gate
- P0-9: components-whitelist.yaml 单一来源 + parseFlowXml 消漂移 (create.ts tag 改消费 component-map.json)
- E-2: docs/components.md 文档化 6 个 pass-through 组件
- P1-16: validate-baseline 接入 quality-gate.sh
- L3 回归测试 (bs117 / bpmn-bs / antipattern-output) + mock LLM 库

P0-6 (user-in-the-loop):
- form create --ai --preview: 提交前渲染字段表格 (CJK 对齐) + TTY 交互确认 (_preview.ts)

workflow canvas 回归修复 (v0.22+ SSW 迁移引入):
- parseFlowXml 命名空间无关 (flowNodes 缺口)
- _autoLayout 无 DI 时合成完整 BPMNDiagram+Shape+Edge + bpmn2 归一化 (canvas 缺口)
- 真实后端 + 浏览器设计器验证画布渲染; 详见 jnpf7-analysis §14

quality-gate 全绿: tsc 0 · vitest 483 · doc:check · baseline L1-L5

Co-Authored-By: Claude <[email protected]>
2026-07-27 12:49:44 +08:00

34 lines
1.0 KiB
JSON

{
"$schema": "https://json-schema.org/draft-07/schema#",
"title": "Dacli extra rules layered on VisualAiModel",
"description": "dacli-specific rules: f_ prefix on field names, snake_case enforcement, no _fk suffix (we use relationForm), relationForm 7-fields completeness. These go BEYOND the JNPF base schema.",
"type": "object",
"allOf": [
{
"type": "object",
"properties": {
"aiModelList": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fieldName": {
"type": "string",
"pattern": "^f_[a-z][a-z0-9_]*$",
"description": "dacli rule: must start with f_ + snake_case"
}
}
}
}
}
}
}
}
}
]
}