From fa29ec12eab2fbb56fa6830a6cda3dacb6100967 Mon Sep 17 00:00:00 2001 From: ssw Date: Thu, 25 Jun 2026 12:55:25 +0800 Subject: [PATCH] =?UTF-8?q?docs(.claude):=20form-type-rules.json=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=20v0.11+=20=E6=B3=A8=20+=20=E4=BF=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 第 48 行: form-type-rules.json 加 ~~已删除 v0.11+~~ 注 + 说明现在由 webapi/_buildformdata.ts 替代 - 第 273 行: '修 form-type-rules.json' 删除 (文件已不存在) Co-Authored-By: Claude --- CLAUDE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index a68f830..a6dc8cb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -45,7 +45,7 @@ > 2. **三层防御体系**:L1 `_precheck.ts` 静态检查 + L2 `_blindspot_guards.ts` 22 条运行时 guard + L3 `client.diagnoseError()` 错误诊断 > 3. **web/ 源码权威参照**:SKILL.md 顶部强制规则——参数/API 不确定时,**优先读 `web/.../views/onlineDev/` + `web/.../api/`,不读 dacli 文档** > 4. **`web-source-map.md`**:dacli 命令 → web/ 源码精确定位速查表(149 行) -> 5. **`form-type-rules.json`**:7 个 type×webType 合法组合 + 6 类常见错误(从 web/ 源码提取,非凭空编写) +> 5. **`form-type-rules.json`** ~~(已删除 v0.11+)~~:7 个 type×webType 合法组合 + 6 类常见错误(从 web/ 源码提取,非凭空编写)— 现由 `webapi/_buildformdata.ts` 直接 import web 端 `buildFormData` 内置规则保证 > 6. **`webapi/` 镜像架构 (v0.11+)**:`dacli/src/webapi/_loader.ts` 直接 dynamic import `web/.../api/onlineDev/visualDev.ts` + `web/.../helper/formUtils.ts`,0 复刻 0 快照 0 漂移(已替换 extract-web-schema.py + extract-all.mjs + data/*.json) > 7. **长任务自检脚本** `scripts/self-check.sh`:每 5 步强制 TS 编译 + form validate + 后端错误日志 > 8. **`errors.md` 决策树**:26 段按错误关键词分类的修复步骤(v0.10+ 吸收了 troubleshooting.md 全部 36 条历史错误) @@ -270,7 +270,7 @@ python3 .claude/skills/design-jnpf-execute/scripts/create_workflow_form.py # 工 **正确做法**: - ✅ 停主任务,保留重现步骤 + 期望输出 + 实际输出 -- ✅ 派子代理到 `$ccWorkDir/dacli/` 修复(修命令 / 修 `.claude/skills/dacli-ts/` 文档 / 修 `webapi/` 模块 / 修 `form-type-rules.json`) +- ✅ 派子代理到 `$ccWorkDir/dacli/` 修复(修命令 / 修 `.claude/skills/dacli-ts/` 文档 / 修 `webapi/` 模块) - ✅ 在 developSystem / workSystem 跑通验证后再回到主任务(§13) - ✅ 记入 MEMORY(盲点编号 + dacli 候选)