Files
dacli/docs
sswandClaude 6d785ce9b0 fix(form): wire up autoDetectAndInjectRelationForm (BS-新117 R17 P0)
历史 (2026-07-15 jxcj M1 复盘):
- form/_relationForm_auto.ts:144 函数定义但 0 import/call
- form/create.ts:59 relationFormAuto 选项声明 + --no-relation-form-auto flag
- 文档声称"默认 ON 自动注入"实际未生效
- jxcj topicDirection.f_competition_id 应是 relationForm 但生成 input

修复:
- form/create.ts:295 在 --ai 路径 webBuildFormData 之前
- 真正调 autoDetectAndInjectRelationForm(aiModelListForBfd)
- 默认 ON (除非 --no-relation-form-auto)
- TS cast 解决 strict mode type 不匹配 (aiModelList 含 billRule/unique 等 extra fields)

验证:
- TS compile: 49 errors (baseline) == 49 errors after (0 新错)
- jxcj M1 实战对照: 之前 f_competition_id 是 input, R17+ 应是 relationForm

drift/docs/drift/2026-07-15-round17-plan.md:
- R17 P0 完成 (本 commit)
- R17 P1 待: vm-to-jnpfKey 启发式 + upload 控件不标 required
- R17 P2 待: NCPF backend LLM 修复 (跨团队)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
2026-07-15 16:35:03 +08:00
..