From 09e032aa36a0e976e245172b3bfe47087d924aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E8=AE=A9=E5=AE=87?= Date: Thu, 10 Sep 2026 23:51:42 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E9=93=81=E5=BE=8B5):=20=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=B7=B2=E6=94=AF=E6=8C=81=E4=B8=89=E5=B1=82=E5=B8=83=E5=B1=80?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E6=89=AB=E6=8F=8F=E8=83=BD=E5=8A=9B?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=EF=BC=9Bversion=202.5.0=20=E2=86=92=202.5.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除「已知工具缺口」表述,改为:init/sync --all 已支持 src/<包>/<类型>,单复数目录名与大小写均接受 - 补函数模块两种命名(子目录式 / ADT .fugr. 式) --- README.md | 2 +- SKILL.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 事故问题总结