diff --git a/README.md b/README.md index 534ce8b..7dfc468 100644 --- a/README.md +++ b/README.md @@ -37,5 +37,5 @@ SAP-CLI-SKILL 是一个让 AI 助手直接操作 SAP ABAP 系统的技能。 --- -**当前版本**: 2.5.0 +**当前版本**: 2.5.1 **维护者**: SwiftCode Creative Technology \ No newline at end of file diff --git a/SKILL.md b/SKILL.md index 022d2c4..a69b232 100644 --- a/SKILL.md +++ b/SKILL.md @@ -1,7 +1,7 @@ --- name: sap-cli description: "SAP ABAP ADT CLI for AI agents. Trigger when: operating ABAP objects, syncing code to/from SAP, managing transports, querying DDIC, running ABAP programs, reading SAP tables, or any SAP development task via terminal." -version: "2.5.0" +version: "2.5.1" author: WuRangyu license: MIT triggers: @@ -169,7 +169,8 @@ src/ - **禁止**:`.abap` 平铺在 `src/` 根下;禁止跳过开发包层直接把对象类型目录放 `src/` 下;禁止在对象类型目录下再嵌套子目录(函数模块的命名按下方结构图 `function/ZGROUP_ZFUNC.abap`) - **`download --path` 要给到对象类型目录**:该命令只把文件写进给定目录,**不会自动建开发包层/对象层**。`--path ./src/TMP/class` 正确;`--path ./src` 会产出平铺目录,不合格 - 反例(2026-09-10 实测):`sap-cem-bip/src/` 25 个 `.abap` 平铺在根下,既无开发包层也无对象类型层 → 不合格,需归位 -- ⚠️ 已知工具缺口:`init` / `sync --all` 的扫描器(`sapcli/scanner.py`)只认**项目根目录下**的**复数**类型目录(`classes/` `reports/` `functions/<组名>/…`),不认 `src/<开发包>/<对象类型>/` 三层。用批量功能前须先对齐工具,否则扫不到对象;逐对象 `download` / `sync` 不受影响 +- 批量功能(`init` / `sync --all`)**已支持三层结构**:扫描器(`sapcli/scanner.py`)会扫项目根下的类型目录,也会下钻 `src/<开发包>/` 找类型目录;目录名**单复数均接受、大小写不敏感**(`class/` = `classes/`)。旧的扁平布局仍兼容 +- 函数模块两种命名均可:`function/<函数组>/<函数模块>.abap` 或 ADT 式 `function/<函数组>.fugr.<函数模块>.abap`,对象名统一解析为 `函数组/函数模块` ### 2026-09-10 S4T 事故问题总结