27d508ac1106ec599d84b17aa6a6c55a6bc36d30
## 改动 ### src/commands/form/_relationForm_auto.ts (修 BS-18 BUG) - v0.22+: modelId 用 matched.id (formId 数字) 而非 targetEnc (enCode 字符串) - JNPF 后端期望 formId, enCode 是给人看的 - 历史: log 写 'BS-18: 自动注入 1 个 relationForm' 但实际存为 select with empty options ### src/commands/form/_smart_props.ts (加 applyHeuristicRelationForm 失败兜底) - v0.22+: smartProps AI Login expired → BS-新62 失败兜底 - 强匹配: 字段名含 ctx.forms enCode (case-insensitive) → modelId - 弱匹配: label 含 ctx.forms fullName - 0 候选 → 跳过 (user 后续手工补) - 跟 applyHeuristicRequired 并列, 不依赖 AI ### src/commands/form/create.ts - v0.22+: form create 成功后追加 dm list 查物理表状态 log - '✓ 物理表已建: <enCode> (N 列) — form create 走 web 端建表流程' - 缺物理表时 warn 'autoTable 未触发或 web 端跳过' - 集成 applyHeuristicRelationForm 到 smartProps 失败兜底分支 ### src/commands/form/update.ts - v0.22+: form update 成功后对比 --fields 新增 vModel vs 物理表实际字段 - 缺物理表列时 warn + 给修复路径 (form import --autoTable / dm drop + form create 重建 / 手工 ALTER) - 避免 user 不知道 form update 不同步物理表 来源: jxcj M1 阶段 7 重建 2026-07-16 实战教训 + 干净子代理 testspace 验证 详见 .claude/skills/dacli-ts/references/anti-patterns §15 / form-physical-table-sync.md Co-Authored-By: Claude <[email protected]>
Languages
TypeScript
99.4%
Shell
0.4%
Python
0.2%