8a6c94ebde
feat(cli): eip4 skills list/check + 3 个新 agent skill (G3)
...
- 新增 skill(均基于源码核实过的端点):
- eip4-data-modeling — /api/meta/entity 建实体/加字段/引用列/主子表
- eip4-page-recipe — /api/design/recipe/compile 生成默认页(维护/树/主子表)
- eip4-acl-manage — /api/admin/* 菜单/角色/用户组授权
manifest.json + jar 打包同步,docs/skills 现共 6 个
- CLI 新增 eip4 skills list(列内置 skills)+ skills check --dir(缺失退出非 0)
- TDD 2 个新测试,platform-cli 共 22 单测全绿
- 真实验证:skills list 列 6 个 / init 装 6 个 / skills check 全 installed(exit 0)/ 端口渲染零占位符残留
- serviceflow-diagnose 暂缓:平台无「查看/诊断服务流定义」的 agent 可操作端点(需先补端点)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-22 14:47:31 +08:00
4a2080a4f6
feat(mcp): platform-mcp —— EIP4 MCP server 标准接入 Claude Code/Codex/OpenCode (G2)
...
- 新增 platform-mcp 模块(stdio MCP server,MCP Java SDK 1.1.0 / jackson2 路线)
- 注册 7 个 MCP 工具:eip4_auto_develop / list_page_recipes / validate_page_schema
/ list_components / access_check / list_entities / entity_attributes
忠实转发 EIP4 REST,复用人审红线(产物恒 READY_FOR_HUMAN_REVIEW),不另开权限面
- 工具逻辑 TDD(Eip4McpTools 9 单测,注入 mock REST client)
- 真实 stdio JSON-RPC e2e:initialize 协商 + tools/list 返回 7 工具(schema 正确)
+ tools/call 链路(死端口优雅 isError)
- 坑:父 pom 为 amis 校验钉死 networknt 1.5.2,与 MCP 需要的 2.0.0(含 dialect.Dialects)
冲突 → platform-mcp 显式覆盖 2.0.0(仅本模块)
- 文档:GAP 标记 G2 完成、平台 README + skills/README 加 MCP 接入说明
接入:claude mcp add eip4 -- java -jar platform-mcp/target/platform-mcp-0.1.0-SNAPSHOT.jar --base-url <env>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-22 14:37:02 +08:00
5b06aeceff
feat(cli): eip4 init 一键接入 Claude Code/Codex/OpenCode (G1)
...
- 新增 eip4 init:把 agent skills 装到目标项目
- Claude Code → .claude/skills/<name>/SKILL.md(代码生成 frontmatter)
- Codex/OpenCode → 根 AGENTS.md(EIP4-SKILLS 标记块,内嵌 skill 全文,块外保留,幂等)
- base URL 按 --base-url/--env/current env 渲染
- docs/skills/*.md 的 base URL 改为 {{EIP4_BASE_URL}} 占位符
- 新增 eip4-skills/manifest.json + pom 用 maven-resources-plugin 把 docs/skills 打进 jar(init 默认从 classpath 读,无需仓库在场)
- 文档:AI_AGENT_Nocobase_INTEGRATION_GAP_AND_PLAN(NocoBase 对照 + G1-G3 计划)、skills/README、平台 README
- TDD 5 个新测试,platform-cli 共 20 单测全绿;真实 jar 端到端验证通过
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-22 14:14:26 +08:00
2fc093f25e
Merge branch 'feat/ui-empty-list-fix' into main
...
ci / build-test-parity (push) Has been cancelled
生成页 5 个 UI/UE 缺陷(dogfooding 实测):①空列表红横幅 ②子表<空>占位 ④主子表编辑
子行不回显 ⑤主子表LIST列泄漏成JSON ⑥树加子预填父名。481单测+逐个浏览器复验。
2026-06-22 12:22:37 +08:00
0400d92a15
Merge branch 'feat/p0-ddl-guard' into main
...
P0② net-new 裸 JDBC 旁路收口:CREATE/DROP DDL 守卫白名单(CreateTableSqlGuard/
DropTableSqlGuard),对标已有 AlterTableSqlGuard。TDD+对抗审查(MERGE-ABLE)+478单测+
真库e2e+5浏览器e2e全绿。
2026-06-22 12:22:36 +08:00
f90e11686e
fix(ui): 树页「加子」表单预填父节点名(dogfooding 实测)
...
树页点行级「加子」时,新增子节点表单的「名称」被预填成父节点的名字
(要先清空才能输入)。根因:加子对话框从行级按钮打开会继承父行数据作用域,
业务字段按 name 自动从父行回填。修:PageBlueprintCompiler.addChildAction —
① 表单 data 只播 PARENTID=父主键(从父行求值);② canAccessSuperData:false
关掉按 name 自动取父作用域值。对话框标题仍用外层作用域显「在<父名>下新增」。
验证:481 单测(PageBlueprintCompilerTest 加子表单 data.PARENTID + canAccessSuperData
断言);重启 8094+重生成树页+浏览器实测:加子表单名称空白、标题「在华东区下新增」、
保存后 PARENTID 正确指向父节点(上海分部→华东区,psql 核实)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-22 11:48:56 +08:00
ea69edf18b
fix(ui): 主子表编辑态两个 dogfooding 真 bug(子行不回显 + LIST 列泄漏成 JSON 文本框)
...
实际走完 CRUD 闭环(新增→保存→编辑)揪出,纯功能 e2e 测不到:
1. 编辑态子表子行全空(若保存会丢子行):编辑表单 initApi=_LOAD 返
{data:{result:{TITLE,DETAILS:[子行]}}},但表单字段期望顶层名 → 子表
input-table(name=DETAILS)绑不上 result 内子行数组。主字段"看似"回显仅因选中行
铺进了对话框作用域(非 _LOAD 生效)。修:PageBlueprintCompiler 编辑表单 initApi 加
responseData {"&":"${result}"} 把 result 拆到表单数据顶层。
2. 主子表发布后再 compile,主表单冒出一个显原始 JSON 数组的"明细"文本框 + 列表列 +
查询条件:主子表链接给主实体加了 DETAILS(LIST)列,而 refToApiType("LIST") 因
长度<32 落 default→"string",被当普通字段渲染。修:EntityAttributesService 排除
引擎内部列 LIST/BLOB/STATUS(非可建模标量列,与 appendColumnDdl 跳过集一致),
从源头不进属性表→表单/列表/查询/建模器字段表都干净。
验证:platform-metadata 481 单测 0 失败(PageBlueprintCompilerTest 编辑表单 responseData
断言 + EntityAttributesServiceTest LIST/BLOB/STATUS 不可建模 3 测);重启 8094+重生成页+
浏览器编辑实测:子行 钢筋/3/10/30 正确回显、无 JSON 文本框、列表/查询只剩 标题。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-22 11:20:20 +08:00
5e55f7f37f
fix(ui): 净新生成页空态两个 UI/UE 缺陷(空列表红报错 + 子表「<空>」占位)
...
走查主子表生成页发现并修:
1. 空列表弹红横幅「data.items 必须是数组」(每个 0 行列表页都中):
FlowController.unwrapCrudResult 对空搜索 {result:{}}(空 map,引擎零行
省略 listresult/pagecount)兜底拍平为 {items:[],total:0}。此前 normalize
的空列表特判只认 LIST_RESULT/PAGE_COUNT,{result:{}} 漏网 → amis crud 找不到
items 数组。仅当内层为空 map 才兜,单记录 _LOAD(result 含字段)不受影响。
2. 空子表渲染字面量「<空>」(像占位符泄漏):
PageBlueprintCompiler.childInputTable 给 input-table 加友好 placeholder
「暂无明细,点下方「新增」添加」。
验证:platform-metadata 478 单测 0 失败(新增 FlowControllerTest 5d 空 {result:{}}
→{items:[],total:0}、5e 非空单记录不被误伤);重启 8094 浏览器实测:空列表只显
「暂无数据」无红横幅(console 0 error,原 1)、空子表显友好占位。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-22 10:57:19 +08:00
2da1a0ef29
feat(P0②): net-new 裸 JDBC 旁路收口 —— CREATE/DROP DDL 守卫白名单
...
补齐 DDL 三件套(原仅 ALTER 有 AlterTableSqlGuard):
- CreateTableSqlGuard(legacy-core,纯静态)+ 接入 executeCreateSql:
原 startsWith("CREATE ") 漏过 CREATE TRIGGER/FUNCTION/INDEX/EXTENSION
及单语句 CTAS(CREATE TABLE X AS SELECT...)。守卫收窄为引擎仅有的两条
生成路径:CREATE TABLE(<列>) [+ devDB 的 INSERT INTO order_entity 第二句],
其余(注释/子查询/AS/USING/跨表 DML/LIKE/INHERITS/PARTITION/多语句)一律拒。
- DropTableSqlGuard + DataDicService.executeDropSql,dropEntity 改走它:
原裸拼 "DROP TABLE IF EXISTS "+t 仅 startsWith("EIP4"),对 PathVariable
EIP4X;DROP TABLE SYS_USER 是真实分号注入面。守卫只接表名,整串白名单
matches(EIP4[A-Z0-9_]{0,37}) → 拼安全 DROP,从根上关闭注入。
对抗审查(security-reviewer,40+ payload)收口 3 项:
- PocWriteTestController 检查 executeCreateSql 返回值(原吞掉守卫拒因)
- appendColumnDdl 数值列 DEFAULT 只许数值字面量(防 raw-append 注入)
- LIKE/INHERITS/PARTITION 补入 DENY,与「其余一律拒」契约一致
验证:legacy-core+metadata 478 单测 0 失败(新增 Guard 14+7、生成器 +2);
真库 e2e scripts/p0-createdrop-acceptance.sh 全绿(建表/删表/非EIP4负控),
p0-alter-acceptance.sh 无回归。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-22 10:15:41 +08:00
1d1ae9c717
Merge branch 'feat/p0p1-impl' into main
...
ci / build-test-parity (push) Has been cancelled
P0②引擎ALTER安全通道+安全门enforced+审计 / P1⑥运行时DELETE+菜单授权 / 对抗审查收口4major / 06-21文档对齐
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-21 15:31:52 +08:00
2d1e9d143b
docs: §9/README 回写——已提交分支 + 对抗审查修复 + P1③双重阻塞
...
- §9 实施记录:代码已提交 feat/p0p1-impl(改"未commit");补对抗审查4major修复
+ overlay审计实跑发现 + 部署包下沉调查结论(两生成器现等价无bug)
- §9/README:P1③ framework业务106 标双重阻塞(待S1拍板 + EIP-3.0源码本地未克隆)
- README §4:P0②/P1④/P1⑥/P1⑤ 标✅ 已实施(指向总览§9)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-21 15:29:00 +08:00
46ff5c5779
fix(P0②/P1⑥): 对抗审查收口 4 major + minor
...
对抗审查 workflow(3 lens)揪出并修复:
- [major] AlterTableSqlGuard 移除 ALTER COLUMN TYPE:静态守卫拿不到旧尺寸,无法
保证扩长(varchar(1)/numeric(1,0) 缩短会截断/溢出存量数据),一律拒;扩长须由
MetaController 比对旧列长度后再生成
- [major] addAttributes 校验-写分离 + @Transactional + ALTER 失败抛异常:
杜绝「元数据写了但物理表没加」孤儿(PG 事务性 DDL 一起回滚)
- [major] createEntity 检查 executeCreateSql 返回值 + @Transactional:引擎拒建表
不再静默成功
- [major] AiToolRegistry isLocalEnv/isProductionEnv 改 URI host 精确解析:防
http://127.0.0.1.evil.com / localhost.evil.com 伪本地前缀绕过安全门
- [minor] deleteStandard templateId trim + 菜单查询限 isactive=1(两表口径一致,
不连带删历史同 templateId 菜单/授权)
- [minor] publish roleIds 只接 String 元素(滤 null/非串);warning 改依据
roleIds.isEmpty()(重复发布不误报)
- [minor] menuauth grantToRoles 改 INSERT...WHERE NOT EXISTS(sys_role_menu 无
唯一约束,ON CONFLICT 不去重,重复发布会插重复行)+ columnSqlType 空 refTable 抛错
全单测绿(Failures=0)、p0-alter/p1-6 真库验收绿(含幂等+负控)、浏览器 e2e 6/6 绿
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-21 14:15:29 +08:00
ccbed82498
feat(P0②b/P1⑥): overlay审计+strict分流 + 运行时DELETE + publish菜单授权
...
- PageSchemaController: ?strict分流(白名单外组件可选400,默认warn不破存量)
+ GET /api/page/schema/overlay/audit 白名单对账(只读advisory)
- 运行时DELETE: PageSchemaWriter.deleteStandard + DELETE /api/page/schema/{tpl}/standard
(@Transactional对称撤销:删schema+overlay+软删菜单+清sys_role_menu)
- 菜单授权: MenuRegistrar.grantToRoles(复用sys_role_menu ON CONFLICT范式)
+ PublishOrchestrator.grantMenuRoles + DesignFeatureController.publish透传roleIds(缺省warning)
- 单测 PageSchemaWriter6/MenuRegistrar4/PageSchemaController28/DeploymentPackageBuilder1无回归
scripts/p1-6-acceptance.sh 真库验收(授权落库+负控+DELETE级联+GET404)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-21 13:56:14 +08:00
8b28595f9e
feat(P0②): 引擎ALTER安全通道 + AI安全门enforced
...
- AlterTableSqlGuard(legacy-core,纯静态白名单):只允许 加列/同族扩长/改可空,
拒 DROP COLUMN/RENAME/SET NOT NULL/多语句/跨族/小写绕过;放legacy-core避免反向依赖
- DataDicService.executeAlterSql 受控通道(过Guard再execute,defense-in-depth)
- MetaController POST /api/meta/entity/{table}/attributes 加列端点
(saveAttr元数据+alterAddColumnDdl镜像appendColumnDdl类型映射+evictByTable+补索引,恒可空)
- AiAgentService.applyLocalRelease 织入 AiToolRegistry.check:安全门 advisory→enforced
(local.apply工具身份,非本机/越权写路径403)
- 单测 Guard15/alter2/gate22(112基线无回归);scripts/p0-alter-acceptance.sh 真库验收
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-21 13:56:14 +08:00
624ffe8a15
docs: 06-21 进度文档对齐 + P0/P1 实施记录
...
- 新建 项目进度与路线-总览-2026-06-21(取代06-17版),刷新A/B矩阵+增量交付+下一步+§9实施记录
- README 索引刷新到06-21;旧总览+14份过时/已完成文档加状态横幅;落地路线图回写里程碑
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-21 13:56:14 +08:00
75f942bca0
Merge branch 'feat/human-five-ring' into main
...
ci / build-test-parity (push) Has been cancelled
人走五环建新功能(设计中心新建入口) + 主子表 v1 完整四件:基础 master-detail、
派生字段(金额=数量×单价)、父级汇总(总额=之和)、引用驱动联动(选物料→带出单价/规格)。
platform-metadata 468 单测 + Playwright 真事件 e2e 全绿。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 22:34:52 +08:00
63e6522f3b
feat(主子表): 引用驱动联动(选物料→带出单价/规格) onEvent setValue
...
子表引用列渲染 picker select,选中后 onEvent.change → setValue 按映射把所选引用行的列
自动带出到同行其它子列。隔离 Playwright 钉死正确形态:单选 select 的 selectedItems 是
被选 Option 对象本身(非数组),value=${event.data.selectedItems.<src>} 绝不可加 [0]
(上一会话 fill 失败真因);目标列 id=<col>_${index} 挂列上,needConfirm:false 下仍被命中。
- PageBlueprintChild: Linkage(refColumn,List<Fill>) / Fill(target,source) 模型 + 兼容构造
- PageBlueprintCompiler: 引用子列→select(source=/api/picker/{ref}/list, options=${items},
_label/_id)+onEvent setValue;目标列挂 id;effectiveFills 剔除派生目标/同目标去重/
仅合法引用 refColumn 渲 select(对抗评审加固,防 setValue 落空与串台)
- TypedPageSchemaValidator: 仅 onEvent.<event>.actions[] 锚定放行 setValue 白名单(D3 门收窄)
- DesignFeatureController: childLinkage Object 容错解析 + COLUMN_IDENT 标识符白名单防注入
- 测试: 编译/校验/控制器联动 + 派生冲突/去重/非引用 健壮性 + 防注入 400
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 22:28:24 +08:00
3e4264d9e0
fix(recipe): 表单/列表/查询/子表排除标准审计列,生成页真正可用
...
recipe 编译器此前把标准审计列(主键/VERSION/CREATETIME/UPDATETIME/CREATEBY/UPDATEBY/
ISACTIVE)也渲成可编辑必填表单字段、列表列、查询条件、子表 EditGrid 单元格——致新建出的
页 11 列过宽、表单杂乱不可用(此前 e2e 都走 API 未经表单 UI 故未暴露,影响所有主子表功能)。
PageBlueprintCompiler 在 maintenanceColumns/treeColumns/searchFilter/formControlsExcluding/
masterDetailFormControls/childInputTable 统一排除系统列(SYSTEM_COLUMNS + 主键)。编辑表单仍保留
hidden 主键(_UPDATE 定位)。子表按子表 PK 排除。
+2 单测(维护页 forms/list/查询排除+编辑表单 hidden 主键;主子表主表单/子表排除),
全量测试绿,live 验证维护页+主子表页 schema 系统列全清(仅留编辑表单 hidden 主键)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 21:15:53 +08:00
ba8177e9d4
feat(主子表): 父级汇总(总额=子表金额之和) compute-on-save + SUM 实时预览
...
主表列 = SUM/COUNT/AVG/MIN/MAX(子表某列)。服务端权威:行级派生(__derive)之后再聚合
(?__rollup=主列=AGG:LIST:子列),把子表列聚合写回主 map → 引擎落库;主表单该列只读
static + ${SUM(ARRAYMAP(DETAILS, item => <派生公式或子列>))} 实时预览。
- RecipeDerivedFieldComputer.enrichRollup: 子表列聚合(空集 SUM/COUNT=0,MIN/MAX/AVG 跳过)
- PageBlueprintChild.RollupColumn + 编译器 masterDetailFormControls(汇总列→static SUM 预览,
被聚合子列若派生则用其公式 item 前缀)+ masterDetailFormApi 拼 __derive&__rollup
- RecipePageComposer/DesignFeatureController 贯通 childRollup(Object 容错;主列须主表真实列、
子列须子表真实列、agg 白名单 SUM/COUNT/AVG/MIN/MAX)
- FlowController.executePost 接 __rollup(在 __derive 之后,使派生列已算好)
+5 单测,curl live e2e(TOTAL=SUM(明细金额)=55,服务端先逐行派生再聚合)PASS,Playwright 3/3。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 17:55:49 +08:00
ce544fa65e
feat(主子表): 派生字段(金额=数量×单价) compute-on-save + tpl 实时预览
...
零引擎改动:UI 派生列只读 tpl ${公式} 实时预览(quickEdit:false),服务端权威
经写流 ?__derive= 用安全算术求值器逐行 compute-on-save 落库(复用 ?__egtpl=
同款轨道,绕开 amis input-table 前端竞态)。
- RecipeArithmeticEvaluator: 纯算术递归下降/BigDecimal,无任意代码执行;含递归
深度(64)+表达式长度(512)护栏,防深嵌套 StackOverflowError(Error 逃兜底)DoS
- RecipeDerivedFieldComputer: 子表数组逐行求值写回,逐格错误隔离不阻断保存
- PageBlueprintChild.derived + 编译器派生列(tpl + quickEdit:false + 表单 api
URL 编码 __derive);RecipePageComposer/DesignFeatureController 贯通 childDerived
(Object 容错避免 Jackson 400;公式字符白名单拒 |/=/; 防静默写错值)
- FlowController.executePost 接 __derive(9 参 @Autowired + 反射回归测试)
对抗评审(36 agent)揪修 3 真 bug:amis needConfirm:false 强注 quickEdit 需显式
false 才保留 tpl 预览;求值器深嵌套 Error 逃逐行兜底;公式 | 破坏 spec 切分。
+9 单测,curl live e2e 含负控 PASS,Playwright 3/3。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 17:32:13 +08:00
f18d998337
feat(metadata): createEntity 支持 masterTable(子表自动加 MASTERID 引用列回链主表)
...
主子表向导一步建子表:传 masterTable 时自动加 MASTERID 引用列(=子表回链主表外键),
linkColumn 固定 MASTERID,再由 MasterDetailLinker 接线。已由主子表 Playwright e2e 端到端证明。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 15:37:04 +08:00
6e096dce1d
fix(metadata): MasterDetailLinker 主 LIST 属性 INSERT 补 createtime/updatetime/createby/updateby
...
live e2e 揪出:SYS_ENTITYATTRIBUTE 这4列 NOT NULL 无默认值,原 INSERT 漏列 → 接线失败。
补齐后 master-detail compile→ensureLink→级联保存 端到端通(子行外键自动回填)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 15:29:40 +08:00
c9be9bc125
feat(design): /recipe/compile 支持 master-detail-v1(先接线再编译)
...
DesignFeatureController 注入 MasterDetailLinker(生产+包测构造同步);
CompileRequest 加 childTable/linkColumn/listColumn(默认 DETAILS)/listLabel;
recipe 门禁放行 master-detail-v1。compile() master-detail 分支:先
masterDetailLinker.ensureLink(主表,子表,外键,listColumn,listLabel) 接线
元数据,再 attributeReader.read(子表) 读子列(剔除指回主表的外键列),
装配带 child 的 Spec→compose→严格 typed 校验→upsertStandard 落标准层。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 15:20:17 +08:00
25494efadf
feat(blueprint): master-detail recipe 接入 registry/composer + YAML
...
PageRecipeRegistry.defaults+compile switch 加 master-detail-v1。
RecipePageComposer.Spec 携带 childTable/listColumn/childAttributes
(7-arg 兼容构造保留),toBlueprint 装配 PageBlueprintChild。
新增 page-recipes/master-detail-v1.yaml(镜像 maintenance/tree,
gates 含 typed-page-schema/amis-schema)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 15:18:22 +08:00
8fe377b0c8
feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
...
PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg,
保留 13-arg 兼容构造);新增 PageBlueprintChild record。
PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架,
新增/编辑表单内联 house-style input-table 子表(name=listColumn,
quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。
validate 接受 master-detail 并要求 child 非空/childTable/listColumn
非空/fields 非空。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 15:16:30 +08:00
d71ad6f461
feat(metadata): MasterDetailLinker 主子表元数据接线(幂等)
...
ensureLink(主表,子表,外键列,列表列,标签,ctx) 把已存在子实体接成主表内联子表:
INSERT 一行 SYS_REFERENCEVALUE(entityid=子实体,entityattributeid=子表外键列属性)
+ INSERT 主表一条 LIST 属性(referenceid=LIST,referencevalue=新 RV id)。
接线后 evictByTable(主表),默认流即自动级联(实测无需主子表专属流节点)。
幂等:主表已有同名 LIST 属性 → 返回既有 referencevalue,不重复 INSERT。
TDD: MasterDetailLinkerTest 两测(INSERT 两条 + 失效缓存 / 幂等无 INSERT)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 15:13:06 +08:00
b0daaaab0f
feat(metadata): createEntity 透传 tabletype(子表建模支持)
...
createEntity 接受可选 req.tabletype(Integer),非空时覆盖克隆源的 TABLETYPE。
子表(tabletype=1)+ 指向主表的引用列 = 主子表级联接线前提。
TDD: MetaControllerReferenceTest.createEntityPassesTableTypeThrough 捕获
保存的实体 map 断言 TABLETYPE=1。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 15:10:54 +08:00
f281de1c5a
feat(meta): 建实体支持「所属分类」entitytype + GET /api/meta/entity-types 分类目录
...
用户反馈建模器缺「实体所属分类」。根因:createEntity 克隆 SYS_USERGROUP → 新实体继承其
entitytype(错分类)。修:createEntity 接 entitytype(SYS_ENTITYTYPE.id)覆盖克隆值;
新增 GET /api/meta/entity-types 列 221 个分类供建模器选择器。live 验:建实体 entitytype 正确落库。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 14:45:43 +08:00
4400eabc66
test(e2e): 人走五环端到端验收脚本 + live 验收实证(Section 6 / Task 24)
...
8094+真实DB验收通过:五环①②③④(含引用列 OWNER→SYS_USER)+ AI ①面(READY_FOR_HUMAN_REVIEW)
+ 部署包(requiresHumanApproval) + 红线全守;实证写入脚本头注。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:27:03 +08:00
303b4d0240
fix(design): @Autowired DesignFeatureController 生产构造器 — 修 Spring 多构造器回退无参导致启动崩
...
live e2e 揪出:DesignFeatureController 有「生产构造+包级测试构造」两个构造器,
生产构造未标 @Autowired → Spring 回退找无参构造 → NoSuchMethodException 启动失败。
纯单元测试全 new 对象故漏检;真实 boot 才暴露。补 @Autowired + 回归测试守护此装配模式。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:25:12 +08:00
b5a6388024
feat(design): publish 生成 production 人审部署包(DECISION-2,manifest+rollback)(建物3-Task13)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:10:22 +08:00
c339efcdcb
feat(design): publish 菜单注册 MenuRegistrar(dedup+新功能目录)(建物3-Task12)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:08:41 +08:00
74478f030e
feat(design): POST /api/design/publish 确保默认流落库(幂等)(建物3-Task11)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:07:13 +08:00
9765872382
feat(design): GET /api/design/flows 列出实体默认流预览(建物3-Task10)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:05:30 +08:00
05181d75bf
test(design): 端到端·composer 透传 reference 列→编译显名 <COL>_DISPLAY__
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:55:10 +08:00
869790d04f
feat(design): 编译器引用列渲染显名·list 列 name 指向 <COL>_DISPLAY__(运行时 _SEARCH 注入,白名单安全)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:54:33 +08:00
eabebae361
feat(design): POST /api/design/recipe/compile 单步端点(建物2)·服务端生成 templateId+严格 typed 闸+唯一真相落标准层
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:53:49 +08:00
687ade7513
feat(design): RecipePageComposer 共享蓝图装配器 + PageBlueprintField 引用字段扩展(向后兼容)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:52:13 +08:00
3e24f135ad
chore(meta): 实体描述取请求 description, 默认中性'设计中心创建'(去硬编码 AI 标记)
...
DESCRIPTION 行与 resolveDescription 在 Task 3 即就地实现(§B.9-7 收口),本提交补
resolveDescription 纯函数单测。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:37:10 +08:00
6f34be15eb
fix(meta): 引用列 DDL 外键指向目标表而非自表(DECISION-1)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:36:43 +08:00
8c3f3944be
feat(meta): POST /api/meta/entity 支持 reference 列(find-or-create SYS_REFERENCE 指向目标实体)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:35:14 +08:00
61e51abeb6
feat(meta): GET /api/meta/entity/{table}/attributes 列清单+displayColumn+引用列反解
...
抽出可复用 @Component EntityAttributesService(records Result/Column,读真实表
SYS_ENTITYATTRIBUTE⋈SYS_ENTITY,引用目标经 DataDicService.getReferenceEntityTableName
反解),MetaController.attributes() 委托它(供 Section 2 同源消费)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:33:25 +08:00
4319178b66
feat(meta): GET /api/meta/entities 实体目录端点(引用列选择器数据源)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:31:34 +08:00
418b0b6458
docs(plan): land human five-ring build-new-feature implementation plan (24 TDD tasks, adversarially reviewed)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 09:27:51 +08:00
22d481e1cb
docs(plan): land human five-ring build-new-feature design (NocoBase-style modeler + live designer)
...
Brainstorm output. Locks: NocoBase-style modeler+live-designer (no linear wizard);
v1 builds NEW features only (CREATE proven, ALTER=M4 deferred); recipe auto-generates
wired default page then edit in DesignerPage; AI-assist via external agent+Skills
(no in-platform LLM); single metadata truth SYS_ENTITY/SYS_ENTITYATTRIBUTE.
Companion to 2026-06-19 direction+roadmap. Ready for writing-plans.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 00:16:31 +08:00
6c6038350a
feat(ai-recipe): typed list columns to match converter house-style
...
AI 生成页的列直接显原始值(布尔列显「true/false」),与转换器 house-style 的
「是/否」「日期格式化」不一致——live 验收时 boolean 列肉眼可见 true。本次按
blueprint field type 纯导出列渲染类型(不依赖 colMeta 枚举/引用元数据):
- boolean → type:mapping, map:{true/1:"是", false/0:"否"}
- date → type:date, format:YYYY-MM-DD
- datetime → type:datetime, format:YYYY-MM-DD HH:mm:ss
- string/integer/number 保持纯文本(默认渲染即正确)
同时在 PageComponentRegistry 注册 mapping/date/datetime 三个标准 amis 列渲染器
(display 类,转换页本就用,否则 typed-page-schema 门会拒含 type 的列 → 409)。
maintenance 与 tree 列均应用。
验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 重生成
EIP4AI_HSDEMO,served schema ENABLED 列=mapping,浏览器实证「启用」列显
「是」(原 true),0 console error;已清测试数据。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 19:29:02 +08:00
5f320503ee
feat(ai-recipe): bind tree-crud-v1 writes to backend service flows
...
tree-crud 与 maintenance 同病:AI 已生成 _ADD/_UPDATE/_DELETE 流但树页的增改删
仍绑自创 /api/entity/{表}/save|delete(「页不绑」)。本次把写入对齐保真层服务流:
- 新增顶级 / 加子 表单 → post:/api/flow/<TABLE>_ADD
- 节点编辑 表单 → post:/api/flow/<TABLE>_UPDATE
- 节点删除 → /api/flow/<TABLE>_DELETE,data={ids:"${<PK>}"}(基线 ids 口径)
数据读保留 /api/entity/<TABLE>/tree(层级构建器,无 flow 树端点,非写旁路);
per-node 操作列对树是恰当 house-style(节点操作天生 per-node),不套用 flat
CRUD 的「无操作列」规则。证据:2727 转换页 0 用 crud+childrenColumnName,
基线树走 input-tree/tree 组件,故树 recipe 的对齐核心=写口径而非组件重构。
验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 经 AI pipeline
生成 tree 页 + 浏览器实证渲染(工具栏/节点加子-编辑-删除/entity-tree 取数)
+ served schema 确认写绑定全走 _ADD/_UPDATE/_DELETE,0 console error。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 19:13:48 +08:00
1ff0d334d0
feat(ai-recipe): align maintenance-crud-v1 to converter house-style
...
AI 生成的单表维护页与转换器基线产出存在「陌生感」:缺查询区、走自创
/api/entity REST 而非保真层服务流、动作放 per-row 操作列。本次对齐:
- crud.api → /api/flow/<TABLE>_SEARCH(amis 自动追 page/perPage,无 adaptor)
+ selectable/checkOnItemClick/primaryField
- 补 filter 查询区(string 列 → input-text 文本搜索)
- 新增/编辑/删除挂 headerToolbar 操作 selectedItems(带 id + disabledOn 守卫,
删掉 per-row 操作列);增改 inline 表单绑 _ADD/_UPDATE + reload,编辑用
dialog data:{"&":"${selectedItems[0]}"} 预填 + hidden 主键;删除
data={ids:"${selectedItems|pick:<PK>|join:','}"}(照搬基线,键为 ids)
- 连带:AiFeatureDraftGenerator.expectedPageApi + AiAgentService 的
render-plan 门禁改 recipe-aware(原硬编码 /api/entity + /list? 会让整条
pipeline 409)
证据:2727 转换页聚合 0 用 per-row operation 列 / 1976 headerToolbar /
1211 filter / 1277 _SEARCH。DefaultFlowHelper 流名吻合,AI pipeline 仅生成
list 页无独立表单页 → recipe 保持 inline 自包含。
验证:platform-metadata 397 + platform-ai 61 测试绿;8093 live 经 AI pipeline
重生成页 + 浏览器实证查询区/工具栏/选中守卫/flow 取数/编辑预填全绿,0 console error。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 19:07:39 +08:00
d3b88467e0
feat(page-schema): converge net-new standard writes to single PageSchemaWriter (M3a)
...
sys_page_schema standard layer had two runtime writers: the converter import CLI and AiLocalReleaseExecutor's raw JDBC INSERT (the critic-flagged net-new bypass). Introduce PageSchemaWriter as the single runtime write function (typed-recipe validation warn-not-block + etag + UPSERT), and route both a new admin-gated PUT /api/page/schema/{id}/standard endpoint (net-new producer for the design-center 'new feature' path) and AiLocalReleaseExecutor.applyPageSchema through it. No remaining raw INSERT into sys_page_schema in the AI runtime write path.
Scope: page_schema runtime write only. The deployment-package SQL-text generator (AiAgentService.pageSchemaSql, offline human-apply artifact) and SchemaImportCli (batch converter import) are separate legitimate paths. AiLocalReleaseExecutor sys_serviceflow/sys_menu raw writes remain (follow-on). Completion = code-complete, integration-pending (end-to-end render proof env-gated).
Tests: PageSchemaWriterTest (4) + PageSchemaControllerTest putStandard success/403/split (27 total) + AiLocalReleaseExecutorTest/AiAgentApiPipelineTest unchanged-green. TDD.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 17:21:06 +08:00
da3ad35821
docs(plan): land EIP4 dev-platform direction + reconciled execution roadmap
...
Commit the architecture-direction design doc (D1-D7 locked decisions) and add a companion living execution roadmap reconciling the design with the already-merged AI agent module (main 9aea6c1 ): phase-by-phase delivery account + ordered milestones (M0 component L1 -> render-smoke gate -> 先宽度 M1/M3a/M2/M3b -> 再深度 M4/M5/M7/M8), split autonomous-build vs env-verification.
Roadmap revised after adversarial review: restored the D2-locked P0 prerequisite (component L1), moved the render-smoke correctness gate ahead of real-DB dogfood, split net-new write-path convergence ahead of the new endpoint, marked code-complete vs integration-pending.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 16:59:16 +08:00