From 4f64499af1725a0f9d56d217454396cf3e45b7ef Mon Sep 17 00:00:00 2001 From: ssw Date: Mon, 22 Jun 2026 19:00:41 +0800 Subject: [PATCH] auto(09213057c521): session end @ 2026-06-22T19:00:39 (+1f) --- CLAUDE.md | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 6b32197..e911aef 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,6 +11,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co 详细设计: `doc/architecture.md` (6 个关键决策)、`doc/plan.md` (6 周路线)、`doc/v0.7-changelog.md` (最新校准)。 +## 现状速览 (v0.10+, 2026-06-22) + +- **24 父命令 / 116 子命令**(已超 Java 版的 24 命令总数 + 5 个 TS 新增) +- **Java 版全部命令已迁移**(报表 / 门户 / portal / codegen 等"边缘场景"无遗漏) +- **三层防御体系**:L1 precheck + L2 guard (22 条高频盲点) + L3 diagnose +- **新会话 4 步流程**:`app context` → `form/dm list` → `--ai-help/--source` → `self-check.sh` +- **权威参照**:web/ 源码是事实,dacli 文档是导航 + ## ⚠️ v0.10+ AI 防御体系 (强制) **任何 AI 使用 dacli 前必读**:根因 G(舍近求远,读文档不读源码)+ B/C/D(盲猜参数/状态)已通过三层防御拦截。 @@ -70,16 +78,20 @@ python3 scripts/extract-web-schema.py ### 入口 → 命令分发 ``` -src/cli.ts # Commander.js 入口, 顶层注册 8 父命令 -└── commands/ - ├── form/ index.ts + list/info/create/release/delete/export/import/clone/validate - ├── dm/ list/create/drop/fields (物理表 CRUD) - ├── dict/ type-list/data-list (字典) - ├── menu/ list/create/delete/unrelease - ├── di/ list (数据接口) - ├── workflow/ list/launch/approve (Flowable) - ├── doc/ list (HTML 文档扫描) - └── apis/ list (JNPF /v3/api-docs 缓存) +src/cli.ts # Commander.js 入口, 顶层注册 24 父命令 (v0.10+) +└── commands/ # 24 父命令 / 116 子命令 + ├── form/ 13 子 (list/info/create/release/delete/export/import/clone/validate/fixcolumndata/codegen/bindflow/lint + ...) + ├── app/ 9 子 (login/status/switch/init/create/clear/info/list/context) + ├── user/ 18 子 + ├── menu/ 7 子 + ├── storage/ 6 子 + ├── schedule/ 5 子 + ├── workflow/ 5 子 + ├── dm/ 4 子 / dict: 4 / datasource: 4 / apis: 4 / portal: 4 / bigscreen: 4 / role: 4 + ├── msg: 3 子 / print: 3 / integration: 3 / monitor: 3 / org: 3 / report: 3 + ├── log: 2 子 / doc: 2 + └── di: 1 子 + + form/_blindspots.ts (BS-23/31/32/15/v2) + _precheck.ts + _blindspot_guards.ts (22 条) ``` 每个父命令 `index.ts` 用 `new Command('xxx')` 构造,链式 addCommand 子命令。**所有命令必带 3 个 flag**: