@babamba2/abap-mcp-adt-powerup 4.8.14 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/CHANGELOG.md +142 -0
  2. package/README.md +2 -2
  3. package/dist/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.d.ts +60 -0
  4. package/dist/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.d.ts.map +1 -0
  5. package/dist/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.js +81 -0
  6. package/dist/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.js.map +1 -0
  7. package/dist/handlers/business/handleBusinessActions.d.ts +134 -0
  8. package/dist/handlers/business/handleBusinessActions.d.ts.map +1 -0
  9. package/dist/handlers/business/handleBusinessActions.js +186 -0
  10. package/dist/handlers/business/handleBusinessActions.js.map +1 -0
  11. package/dist/handlers/data_element/high/handleCreateDataElement.d.ts.map +1 -1
  12. package/dist/handlers/data_element/high/handleCreateDataElement.js +2 -2
  13. package/dist/handlers/data_element/high/handleCreateDataElement.js.map +1 -1
  14. package/dist/handlers/data_element/high/handleDeleteDataElement.d.ts.map +1 -1
  15. package/dist/handlers/data_element/high/handleDeleteDataElement.js +2 -2
  16. package/dist/handlers/data_element/high/handleDeleteDataElement.js.map +1 -1
  17. package/dist/handlers/data_element/high/handleGetDataElement.js +1 -1
  18. package/dist/handlers/data_element/high/handleGetDataElement.js.map +1 -1
  19. package/dist/handlers/data_element/high/handleUpdateDataElement.d.ts.map +1 -1
  20. package/dist/handlers/data_element/high/handleUpdateDataElement.js +2 -2
  21. package/dist/handlers/data_element/high/handleUpdateDataElement.js.map +1 -1
  22. package/dist/handlers/domain/high/handleCreateDomain.d.ts.map +1 -1
  23. package/dist/handlers/domain/high/handleCreateDomain.js +2 -2
  24. package/dist/handlers/domain/high/handleCreateDomain.js.map +1 -1
  25. package/dist/handlers/domain/high/handleDeleteDomain.d.ts.map +1 -1
  26. package/dist/handlers/domain/high/handleDeleteDomain.js +2 -2
  27. package/dist/handlers/domain/high/handleDeleteDomain.js.map +1 -1
  28. package/dist/handlers/domain/high/handleGetDomain.js +1 -1
  29. package/dist/handlers/domain/high/handleGetDomain.js.map +1 -1
  30. package/dist/handlers/domain/high/handleUpdateDomain.d.ts.map +1 -1
  31. package/dist/handlers/domain/high/handleUpdateDomain.js +2 -2
  32. package/dist/handlers/domain/high/handleUpdateDomain.js.map +1 -1
  33. package/dist/handlers/enhancement/readonly/handleGetBadiImplementations.js +1 -1
  34. package/dist/handlers/enhancement/readonly/handleGetBadiImplementations.js.map +1 -1
  35. package/dist/handlers/include/high/handleUpdateInclude.d.ts +9 -0
  36. package/dist/handlers/include/high/handleUpdateInclude.d.ts.map +1 -1
  37. package/dist/handlers/include/high/handleUpdateInclude.js +23 -2
  38. package/dist/handlers/include/high/handleUpdateInclude.js.map +1 -1
  39. package/dist/handlers/interface/high/handleUpdateInterface.d.ts.map +1 -1
  40. package/dist/handlers/interface/high/handleUpdateInterface.js +5 -3
  41. package/dist/handlers/interface/high/handleUpdateInterface.js.map +1 -1
  42. package/dist/handlers/program/readonly/handleGetProgFullCode.d.ts.map +1 -1
  43. package/dist/handlers/program/readonly/handleGetProgFullCode.js +37 -3
  44. package/dist/handlers/program/readonly/handleGetProgFullCode.js.map +1 -1
  45. package/dist/handlers/program/readonly/handleReadProgram.d.ts +1 -1
  46. package/dist/handlers/program/readonly/handleReadProgram.d.ts.map +1 -1
  47. package/dist/handlers/program/readonly/handleReadProgram.js +32 -1
  48. package/dist/handlers/program/readonly/handleReadProgram.js.map +1 -1
  49. package/dist/handlers/search/readonly/handleSearchObject.d.ts +20 -0
  50. package/dist/handlers/search/readonly/handleSearchObject.d.ts.map +1 -1
  51. package/dist/handlers/search/readonly/handleSearchObject.js +115 -0
  52. package/dist/handlers/search/readonly/handleSearchObject.js.map +1 -1
  53. package/dist/handlers/structure/high/handleCreateStructure.d.ts +23 -0
  54. package/dist/handlers/structure/high/handleCreateStructure.d.ts.map +1 -1
  55. package/dist/handlers/structure/high/handleCreateStructure.js +168 -0
  56. package/dist/handlers/structure/high/handleCreateStructure.js.map +1 -1
  57. package/dist/handlers/structure/high/handleDeleteStructure.d.ts.map +1 -1
  58. package/dist/handlers/structure/high/handleDeleteStructure.js +25 -1
  59. package/dist/handlers/structure/high/handleDeleteStructure.js.map +1 -1
  60. package/dist/handlers/structure/high/handleGetStructure.js +1 -1
  61. package/dist/handlers/structure/high/handleGetStructure.js.map +1 -1
  62. package/dist/handlers/system/readonly/handleGetAdobeFormContent.d.ts +53 -0
  63. package/dist/handlers/system/readonly/handleGetAdobeFormContent.d.ts.map +1 -0
  64. package/dist/handlers/system/readonly/handleGetAdobeFormContent.js +67 -0
  65. package/dist/handlers/system/readonly/handleGetAdobeFormContent.js.map +1 -0
  66. package/dist/handlers/system/readonly/handleGetAreaMenu.d.ts +80 -0
  67. package/dist/handlers/system/readonly/handleGetAreaMenu.d.ts.map +1 -0
  68. package/dist/handlers/system/readonly/handleGetAreaMenu.js +383 -0
  69. package/dist/handlers/system/readonly/handleGetAreaMenu.js.map +1 -0
  70. package/dist/handlers/system/readonly/handleGetJobUsage.js +1 -1
  71. package/dist/handlers/system/readonly/handleGetJobUsage.js.map +1 -1
  72. package/dist/handlers/system/readonly/handleGetSqlQuery.d.ts +30 -0
  73. package/dist/handlers/system/readonly/handleGetSqlQuery.d.ts.map +1 -1
  74. package/dist/handlers/system/readonly/handleGetSqlQuery.js +101 -4
  75. package/dist/handlers/system/readonly/handleGetSqlQuery.js.map +1 -1
  76. package/dist/handlers/system/readonly/handleGetStandardText.d.ts +46 -0
  77. package/dist/handlers/system/readonly/handleGetStandardText.d.ts.map +1 -0
  78. package/dist/handlers/system/readonly/handleGetStandardText.js +55 -0
  79. package/dist/handlers/system/readonly/handleGetStandardText.js.map +1 -0
  80. package/dist/handlers/system/readonly/handleGetTcodeUsage.js +1 -1
  81. package/dist/handlers/system/readonly/handleGetTcodeUsage.js.map +1 -1
  82. package/dist/handlers/system/readonly/handleReloadProfile.d.ts.map +1 -1
  83. package/dist/handlers/system/readonly/handleReloadProfile.js +5 -0
  84. package/dist/handlers/system/readonly/handleReloadProfile.js.map +1 -1
  85. package/dist/handlers/system/readonly/handleRenderAdobeForm.d.ts +58 -0
  86. package/dist/handlers/system/readonly/handleRenderAdobeForm.d.ts.map +1 -0
  87. package/dist/handlers/system/readonly/handleRenderAdobeForm.js +71 -0
  88. package/dist/handlers/system/readonly/handleRenderAdobeForm.js.map +1 -0
  89. package/dist/handlers/system/readonly/handleRenderAdobeXdp.d.ts +54 -0
  90. package/dist/handlers/system/readonly/handleRenderAdobeXdp.d.ts.map +1 -0
  91. package/dist/handlers/system/readonly/handleRenderAdobeXdp.js +64 -0
  92. package/dist/handlers/system/readonly/handleRenderAdobeXdp.js.map +1 -0
  93. package/dist/handlers/system/readonly/handleRenderSmartForm.d.ts +1 -1
  94. package/dist/handlers/system/readonly/handleRenderSmartForm.d.ts.map +1 -1
  95. package/dist/handlers/system/readonly/handleRenderSmartForm.js +3 -36
  96. package/dist/handlers/system/readonly/handleRenderSmartForm.js.map +1 -1
  97. package/dist/handlers/system/readonly/handleRuntimeAnalyzeDump.d.ts.map +1 -1
  98. package/dist/handlers/system/readonly/handleRuntimeAnalyzeDump.js +2 -3
  99. package/dist/handlers/system/readonly/handleRuntimeAnalyzeDump.js.map +1 -1
  100. package/dist/handlers/system/readonly/handleRuntimeGetDumpById.d.ts.map +1 -1
  101. package/dist/handlers/system/readonly/handleRuntimeGetDumpById.js +2 -3
  102. package/dist/handlers/system/readonly/handleRuntimeGetDumpById.js.map +1 -1
  103. package/dist/handlers/system/readonly/handleRuntimeListDumps.d.ts +30 -1
  104. package/dist/handlers/system/readonly/handleRuntimeListDumps.d.ts.map +1 -1
  105. package/dist/handlers/system/readonly/handleRuntimeListDumps.js +127 -2
  106. package/dist/handlers/system/readonly/handleRuntimeListDumps.js.map +1 -1
  107. package/dist/handlers/system/readonly/handleRuntimeListFeeds.d.ts.map +1 -1
  108. package/dist/handlers/system/readonly/handleRuntimeListFeeds.js +10 -0
  109. package/dist/handlers/system/readonly/handleRuntimeListFeeds.js.map +1 -1
  110. package/dist/handlers/table/high/handleCreateTable.d.ts +85 -2
  111. package/dist/handlers/table/high/handleCreateTable.d.ts.map +1 -1
  112. package/dist/handlers/table/high/handleCreateTable.js +78 -15
  113. package/dist/handlers/table/high/handleCreateTable.js.map +1 -1
  114. package/dist/handlers/table/high/handleCreateTableEcc.d.ts +46 -0
  115. package/dist/handlers/table/high/handleCreateTableEcc.d.ts.map +1 -0
  116. package/dist/handlers/table/high/handleCreateTableEcc.js +180 -0
  117. package/dist/handlers/table/high/handleCreateTableEcc.js.map +1 -0
  118. package/dist/handlers/table/high/handleDeleteTable.d.ts.map +1 -1
  119. package/dist/handlers/table/high/handleDeleteTable.js +2 -2
  120. package/dist/handlers/table/high/handleDeleteTable.js.map +1 -1
  121. package/dist/handlers/table/high/handleGetTable.js +1 -1
  122. package/dist/handlers/table/high/handleGetTable.js.map +1 -1
  123. package/dist/handlers/table/readonly/handleGetRemoteTableContents.d.ts +52 -0
  124. package/dist/handlers/table/readonly/handleGetRemoteTableContents.d.ts.map +1 -0
  125. package/dist/handlers/table/readonly/handleGetRemoteTableContents.js +315 -0
  126. package/dist/handlers/table/readonly/handleGetRemoteTableContents.js.map +1 -0
  127. package/dist/handlers/table/readonly/handleGetTableContents.d.ts +4 -0
  128. package/dist/handlers/table/readonly/handleGetTableContents.d.ts.map +1 -1
  129. package/dist/handlers/table/readonly/handleGetTableContents.js +21 -3
  130. package/dist/handlers/table/readonly/handleGetTableContents.js.map +1 -1
  131. package/dist/handlers/table_type/high/handleCreateTableType.d.ts +106 -0
  132. package/dist/handlers/table_type/high/handleCreateTableType.d.ts.map +1 -0
  133. package/dist/handlers/table_type/high/handleCreateTableType.js +251 -0
  134. package/dist/handlers/table_type/high/handleCreateTableType.js.map +1 -0
  135. package/dist/handlers/table_type/high/handleDeleteTableType.d.ts +37 -0
  136. package/dist/handlers/table_type/high/handleDeleteTableType.d.ts.map +1 -0
  137. package/dist/handlers/table_type/high/handleDeleteTableType.js +62 -0
  138. package/dist/handlers/table_type/high/handleDeleteTableType.js.map +1 -0
  139. package/dist/handlers/text_element/high/handleReadTextElementsBulk.d.ts +12 -0
  140. package/dist/handlers/text_element/high/handleReadTextElementsBulk.d.ts.map +1 -1
  141. package/dist/handlers/text_element/high/handleReadTextElementsBulk.js +16 -1
  142. package/dist/handlers/text_element/high/handleReadTextElementsBulk.js.map +1 -1
  143. package/dist/handlers/text_element/high/handleWriteTextElementsBulk.d.ts +22 -7
  144. package/dist/handlers/text_element/high/handleWriteTextElementsBulk.d.ts.map +1 -1
  145. package/dist/handlers/text_element/high/handleWriteTextElementsBulk.js +37 -14
  146. package/dist/handlers/text_element/high/handleWriteTextElementsBulk.js.map +1 -1
  147. package/dist/handlers/unit_test/high/handleGetUnitTestResult.d.ts.map +1 -1
  148. package/dist/handlers/unit_test/high/handleGetUnitTestResult.js +4 -0
  149. package/dist/handlers/unit_test/high/handleGetUnitTestResult.js.map +1 -1
  150. package/dist/handlers/unit_test/high/handleRunUnitTest.d.ts +24 -1
  151. package/dist/handlers/unit_test/high/handleRunUnitTest.d.ts.map +1 -1
  152. package/dist/handlers/unit_test/high/handleRunUnitTest.js +118 -3
  153. package/dist/handlers/unit_test/high/handleRunUnitTest.js.map +1 -1
  154. package/dist/lib/adobeForm.d.ts +175 -0
  155. package/dist/lib/adobeForm.d.ts.map +1 -0
  156. package/dist/lib/adobeForm.js +602 -0
  157. package/dist/lib/adobeForm.js.map +1 -0
  158. package/dist/lib/bizRfc.d.ts +35 -0
  159. package/dist/lib/bizRfc.d.ts.map +1 -0
  160. package/dist/lib/bizRfc.js +115 -0
  161. package/dist/lib/bizRfc.js.map +1 -0
  162. package/dist/lib/config/ArgumentsParser.d.ts +0 -1
  163. package/dist/lib/config/ArgumentsParser.d.ts.map +1 -1
  164. package/dist/lib/config/ArgumentsParser.js +5 -3
  165. package/dist/lib/config/ArgumentsParser.js.map +1 -1
  166. package/dist/lib/config/IServerConfig.d.ts +0 -2
  167. package/dist/lib/config/IServerConfig.d.ts.map +1 -1
  168. package/dist/lib/config/ServerConfigManager.d.ts.map +1 -1
  169. package/dist/lib/config/ServerConfigManager.js +0 -8
  170. package/dist/lib/config/ServerConfigManager.js.map +1 -1
  171. package/dist/lib/config.d.ts.map +1 -1
  172. package/dist/lib/config.js +2 -5
  173. package/dist/lib/config.js.map +1 -1
  174. package/dist/lib/connectionType.d.ts +14 -0
  175. package/dist/lib/connectionType.d.ts.map +1 -0
  176. package/dist/lib/connectionType.js +21 -0
  177. package/dist/lib/connectionType.js.map +1 -0
  178. package/dist/lib/handlers/groups/HighLevelHandlersGroup.d.ts.map +1 -1
  179. package/dist/lib/handlers/groups/HighLevelHandlersGroup.js +15 -0
  180. package/dist/lib/handlers/groups/HighLevelHandlersGroup.js.map +1 -1
  181. package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.d.ts.map +1 -1
  182. package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.js +30 -0
  183. package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.js.map +1 -1
  184. package/dist/lib/handlers/groups/SystemHandlersGroup.d.ts.map +1 -1
  185. package/dist/lib/handlers/groups/SystemHandlersGroup.js +18 -0
  186. package/dist/lib/handlers/groups/SystemHandlersGroup.js.map +1 -1
  187. package/dist/lib/handlers/interfaces.d.ts +17 -0
  188. package/dist/lib/handlers/interfaces.d.ts.map +1 -1
  189. package/dist/lib/handlers/interfaces.js +16 -0
  190. package/dist/lib/handlers/interfaces.js.map +1 -1
  191. package/dist/lib/legacyDumps.d.ts +95 -0
  192. package/dist/lib/legacyDumps.d.ts.map +1 -0
  193. package/dist/lib/legacyDumps.js +183 -0
  194. package/dist/lib/legacyDumps.js.map +1 -0
  195. package/dist/lib/legacyTableRead.d.ts +6 -0
  196. package/dist/lib/legacyTableRead.d.ts.map +1 -1
  197. package/dist/lib/legacyTableRead.js +37 -2
  198. package/dist/lib/legacyTableRead.js.map +1 -1
  199. package/dist/lib/ncoRfc.d.ts +46 -0
  200. package/dist/lib/ncoRfc.d.ts.map +1 -0
  201. package/dist/lib/ncoRfc.js +175 -0
  202. package/dist/lib/ncoRfc.js.map +1 -0
  203. package/dist/lib/odataRfc.d.ts +9 -2
  204. package/dist/lib/odataRfc.d.ts.map +1 -1
  205. package/dist/lib/odataRfc.js +10 -1
  206. package/dist/lib/odataRfc.js.map +1 -1
  207. package/dist/lib/policy/maskSecret.d.ts +27 -0
  208. package/dist/lib/policy/maskSecret.d.ts.map +1 -0
  209. package/dist/lib/policy/maskSecret.js +142 -0
  210. package/dist/lib/policy/maskSecret.js.map +1 -0
  211. package/dist/lib/policy/maskedRead.d.ts +48 -0
  212. package/dist/lib/policy/maskedRead.d.ts.map +1 -0
  213. package/dist/lib/policy/maskedRead.js +156 -0
  214. package/dist/lib/policy/maskedRead.js.map +1 -0
  215. package/dist/lib/policy/personalMask.d.ts +82 -0
  216. package/dist/lib/policy/personalMask.d.ts.map +1 -0
  217. package/dist/lib/policy/personalMask.js +938 -0
  218. package/dist/lib/policy/personalMask.js.map +1 -0
  219. package/dist/lib/policy/tableBlocklist.d.ts +20 -6
  220. package/dist/lib/policy/tableBlocklist.d.ts.map +1 -1
  221. package/dist/lib/policy/tableBlocklist.js +158 -16
  222. package/dist/lib/policy/tableBlocklist.js.map +1 -1
  223. package/dist/lib/profile.d.ts.map +1 -1
  224. package/dist/lib/profile.js +19 -2
  225. package/dist/lib/profile.js.map +1 -1
  226. package/dist/lib/readonlyGuard.d.ts +4 -0
  227. package/dist/lib/readonlyGuard.d.ts.map +1 -1
  228. package/dist/lib/readonlyGuard.js +29 -0
  229. package/dist/lib/readonlyGuard.js.map +1 -1
  230. package/dist/lib/removedTransports.d.ts +17 -0
  231. package/dist/lib/removedTransports.d.ts.map +1 -0
  232. package/dist/lib/removedTransports.js +45 -0
  233. package/dist/lib/removedTransports.js.map +1 -0
  234. package/dist/lib/rfcBackend.d.ts +17 -15
  235. package/dist/lib/rfcBackend.d.ts.map +1 -1
  236. package/dist/lib/rfcBackend.js +49 -41
  237. package/dist/lib/rfcBackend.js.map +1 -1
  238. package/dist/lib/sapLanguage.d.ts +7 -0
  239. package/dist/lib/sapLanguage.d.ts.map +1 -0
  240. package/dist/lib/sapLanguage.js +58 -0
  241. package/dist/lib/sapLanguage.js.map +1 -0
  242. package/dist/lib/smartFormContent.d.ts +33 -0
  243. package/dist/lib/smartFormContent.d.ts.map +1 -1
  244. package/dist/lib/smartFormContent.js +166 -23
  245. package/dist/lib/smartFormContent.js.map +1 -1
  246. package/dist/lib/soapRfc.d.ts.map +1 -1
  247. package/dist/lib/soapRfc.js +3 -0
  248. package/dist/lib/soapRfc.js.map +1 -1
  249. package/dist/lib/sourceOutput.d.ts +14 -0
  250. package/dist/lib/sourceOutput.d.ts.map +1 -1
  251. package/dist/lib/sourceOutput.js +103 -3
  252. package/dist/lib/sourceOutput.js.map +1 -1
  253. package/dist/lib/utils.d.ts +0 -5
  254. package/dist/lib/utils.d.ts.map +1 -1
  255. package/dist/lib/utils.js +17 -6
  256. package/dist/lib/utils.js.map +1 -1
  257. package/dist/lib/valuesFile.d.ts +14 -0
  258. package/dist/lib/valuesFile.d.ts.map +1 -0
  259. package/dist/lib/valuesFile.js +167 -0
  260. package/dist/lib/valuesFile.js.map +1 -0
  261. package/dist/server/BaseMcpServer.d.ts.map +1 -1
  262. package/dist/server/BaseMcpServer.js +13 -9
  263. package/dist/server/BaseMcpServer.js.map +1 -1
  264. package/dist/server/launcher.js +12 -14
  265. package/dist/server/launcher.js.map +1 -1
  266. package/docs/configuration/YAML_CONFIG.md +0 -17
  267. package/docs/development/roadmaps/TRANSPORT_CRUD_ISSUE_11.md +2 -0
  268. package/docs/roadmaps/LEGACY_SUPPORT.md +2 -0
  269. package/docs/user-guide/AVAILABLE_TOOLS.md +138 -10
  270. package/docs/user-guide/AVAILABLE_TOOLS_COMPACT.md +1 -1
  271. package/docs/user-guide/AVAILABLE_TOOLS_HIGH.md +71 -5
  272. package/docs/user-guide/AVAILABLE_TOOLS_LEGACY.md +64 -8
  273. package/docs/user-guide/AVAILABLE_TOOLS_LOW.md +1 -1
  274. package/docs/user-guide/AVAILABLE_TOOLS_READONLY.md +67 -5
  275. package/docs/user-guide/CLI_OPTIONS.md +1 -40
  276. package/package.json +3 -4
  277. package/dist/handlers/system/high/handleRuntimeCallDispatch.d.ts +0 -46
  278. package/dist/handlers/system/high/handleRuntimeCallDispatch.d.ts.map +0 -1
  279. package/dist/lib/gatewayRfc.d.ts +0 -47
  280. package/dist/lib/gatewayRfc.d.ts.map +0 -1
  281. package/dist/lib/gatewayRfc.js +0 -138
  282. package/dist/lib/gatewayRfc.js.map +0 -1
  283. package/dist/lib/nativeRfc.d.ts +0 -39
  284. package/dist/lib/nativeRfc.d.ts.map +0 -1
  285. package/dist/lib/nativeRfc.js +0 -165
  286. package/dist/lib/nativeRfc.js.map +0 -1
  287. package/dist/lib/policy/blocklist.d.ts +0 -73
  288. package/dist/lib/policy/blocklist.d.ts.map +0 -1
  289. package/dist/lib/smartForm.d.ts +0 -114
  290. package/dist/lib/smartForm.d.ts.map +0 -1
  291. package/dist/lib/zrfcProxy.d.ts +0 -59
  292. package/dist/lib/zrfcProxy.d.ts.map +0 -1
  293. package/dist/lib/zrfcProxy.js +0 -252
  294. package/dist/lib/zrfcProxy.js.map +0 -1
  295. package/docs/installation/RFC_SETUP.md +0 -101
  296. package/docs/installation/ZRFC_SETUP.md +0 -162
package/CHANGELOG.md CHANGED
@@ -4,6 +4,148 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [4.14.0] - 2026-11-17
8
+
9
+ ### Added
10
+ - **`RenderAdobeXdp`** (read-only): ADS renders an XDP template with an XML data file — no SAP form object, no output. Both files must be inside the MCP output directory or `.sc4sap/work/<alias>` (`.xdp` / `.xml`, no network paths, no secret-like names, contents never echoed); external references in the template are refused before the call.
11
+ - **`CreateAdobeFormFromSmartForm`**: optional `correction_file` (a layout correction spec, size-capped) and `strict`. The result reports every op as applied / not_found / ambiguous / refused. Ops:
12
+ - layout, geometry, margin, font, para, xhtml, picture, border, presence (needs a basis);
13
+ - `datePicture`: replaces exactly one `$.format.picture = DateFmt(n, $.locale)` in a field's initialize script with a checked `date{…}` literal;
14
+ - `bind` (`dataRef` with a `$record` path, `[0]` / `[*]` only, or `none`; needs a basis);
15
+ - `embedLead`: one blank before the value of right- / center-aligned paragraphs that hold embedded values only (ADS aligns them only then);
16
+ - model ops for SmartForm table-event totals: `contextDeactivate` (one program-lines node by its context path) and `initSumByKey` (a COLLECT loop in the interface initialization; names checked against the interface, no free text reaches ABAP).
17
+ These need the matching `ZMCP_FP_MIGRATE` helper (sc4sap `abap/`).
18
+ - **`GetStandardText`** (read-only, DEV systems only): a SAPscript standard text (object TEXT) with its lines; refused on QA / PRD.
19
+ - **Masking for table reads**: `GetTableContents`, `GetSqlQuery` and `GetRemoteTableContents` accept an optional `mask`. With it the server refuses personal / credential tables, accepts a strict single-table SELECT only, and returns rows masked by an allow-list (`MASK_VERSION` hmac-v2; the sc4sap plugin refuses v1 answers): a column prints in clear only when its DDIC data element / domain / type is on an explicit non-personal list and no personal shape matches (names, contacts, phone / fax / mail, address parts, URLs / IPs, birth dates — personal wins); everything else, and any column without DDIC, becomes an HMAC-SHA256 token under a per-profile, owner-only server key. Any failure returns no rows. Without `mask` the tools behave as before.
20
+ - **`RunUnitTest`** runs program and function-group containers on S/4HANA (synchronous ADT call, result inline); a batch with any PROG / FUGR runs fully synchronous.
21
+
22
+ ### Changed
23
+ - **`GetSmartFormContent`**:
24
+ - text-module references (TTYPE R) are read by `REF_NAME` through the form export (`FORMTYPE T`), in the form's language with a fall-back to the module's master language — not as an SO10 text through a stale `TKEY`; a text-module node without `REF_NAME` is listed in `dynamicReferences`;
25
+ - NEWPAGE command nodes keep their target page (`PAGENAME`).
26
+ - **`UpdateInclude`** writes function-group includes through the group's own path (`function_group`, or a `SAPL<fg>` main program).
27
+ - **`RunUnitTest` / `GetUnitTestResult`** report `methods: 0` and a warning when no test method ran.
28
+ - **Legacy `TABLE_READ`** (BASIS < 7.50): with `MCP_BLOCKLIST_PROFILE=off` the dispatcher is asked for all tables (it checks the user's SE16 authority); credential tables stay closed on every profile, with clear refusal messages.
29
+ Known gaps under `off`: the dispatcher's credential guard is a name-prefix list (`USR*`, `UST*`, `SSF_PSE*`, `STRUST*`, `SNC*`, `TRUSTED*`, `RSAU*`, `RFCDES`, `RSECTAB`, `RSECACTB`, most `AGR_*`). It does not cover `USH*` (user change history) or database views over those tables. Keep `off` for systems where SE16 authority already restricts them.
30
+
31
+ ### Fixed
32
+ - Table blocklist: the aggregate exemption covers `COUNT(*)` / `COUNT([DISTINCT] col)` only — never MIN / MAX / SUM, never personal fields, credential / HR / security tables or deny-tier tables.
33
+ - Masking key (Windows): the key file is restricted to its owner with `icacls` and read back; anything else → no rows, with an error that names the cause.
34
+
35
+ ## [4.13.0] - 2026-11-17
36
+
37
+ ### Added
38
+ - **Adobe forms (SFP)**. These need the DEV helper `ZMCP_FP_CONTENT` and its dispatcher actions (sc4sap `abap/`). A system without them gets an install hint.
39
+ - **`GetAdobeFormContent`** (read-only): the form XML, the layout XDP and the interface XML of one form, written under the MCP output directory (`adobe/<form>/`). The name is checked before any call. `include_check` (off by default) adds SAP's own form check messages (`<form>.check.json`).
40
+ - **`RenderAdobeForm`** (runs the form, no output): the PDF that ADS produces for given interface values, with no spool and no device. `get_xml` also returns the data XML the form hands ADS; SmartForm-type interfaces have none. It is refused on QA and PRD.
41
+ - **`CreateAdobeFormFromSmartForm`** (DEV write, high-level group): SAP's own SmartForm → Adobe migration (`FP_MIGRATE`) into new `ZSC4SAP_AFM_*` names in `$TMP`. It never overwrites an existing name. The result reports `complete`, SAP's messages, the context nodes it renamed (duplicate sibling names), the layout `cacheInfo`, and what it `adjusted`. An optional `sender_country` is passed through.
42
+ - Tool docs regenerated (342 tools).
43
+
44
+ ### Changed
45
+ - **`values_file`** (`RenderSmartForm`, `RenderAdobeForm`): the file must be inside the MCP output directory or `.sc4sap/work/<alias>`, checked on its real path.
46
+ - Links and junctions out, UNC paths and secret-like names are refused before the file is read.
47
+ - Only `.json` up to 1 MB is accepted.
48
+ - A missing file and a refused one get the same answer, so the answer does not reveal whether an outside file exists.
49
+ - Output paths are checked on the real path of the existing parent (all output tools).
50
+ - **`GetSmartFormContent`** symbols: `<(>…<)>` protected text is skipped, `&'pre'NAME'post'&` yields `NAME`, and comment lines are ignored.
51
+ - **Table blocklist**: every table of a `FROM` list is checked (commas, aliases, brackets). `AGR_1016` and `AGR_TIMEB` join the role tables in the minimal blocklist.
52
+
53
+ ## [4.12.1] - 2026-11-16
54
+
55
+ ### Fixed
56
+ - **`RuntimeListDumps`** follows the feed's time cursor (`to=`) back to `date_from` instead of stopping at the first page, so a week of dumps on S/4HANA (the feed returns about 100 per page) is complete. The answer carries `paging: { pages, complete, reached, oldest }`; `complete: false` says the page cap stopped it before `date_from`.
57
+
58
+ ## [4.12.0] - 2026-11-13
59
+
60
+ ### Added
61
+ - **`GetRemoteTableContents`** (read-only). Reads rows of one table in another SAP system through an SM59 ABAP destination with the standard `RFC_READ_TABLE`, for realistic test data. Calls the new dispatcher action `REMOTE_READ` (sc4sap `abap/zmcp_adt_dispatch*.abap`); a system whose dispatcher lacks it gets an upload hint. The destination is never guessed: without it the tool lists the destinations saved for the active profile (`config.json` → `remoteDestinations`, most recent first, max 10); a destination is saved after its first successful read. `where` is split into 72-character option lines without cutting quoted literals; `fields`, `max_rows` (default 100, cap 5000), `skip_rows`. Business tables are allowed; the table blocklist applies, and the ABAP side refuses credential / user / authorization tables and sub-queries.
62
+ - Tool docs regenerated (also adds `CreateTableType` / `DeleteTableType`, missing since 4.9.1).
63
+
64
+ ## [4.11.0] - 2026-11-11
65
+
66
+ ### Added
67
+ - **NCo RFC backend `SAP_RFC_BACKEND=nco`** (Windows, SAP .NET Connector 3.x). The sc4sap helper FMs are called over RFC — no OData service, no SOAP ICF node. It reuses the OData backend's functions: their single transport point (`postFunctionImport`) sends the same FunctionImport and `IV_*` parameters to the FM over NCo (`lib/ncoRfc.ts`). Remote-enabled FMs (`ZMCP_ADT_DISPATCH`, `_TEXTPOOL`, `_DDIC_TABL` / `DTEL` / `DOMA` / `ACTIVATE`) are called directly; the others (DDIC reads, `ZMCP_ADT_DDIC_TTYP`, `_BADI`, `ZMCP_WL_*`) through the new dispatcher action `FM_PROXY` (allow list, sc4sap `abap/zmcp_adt_dispatch*.abap`). Business actions go through the dispatcher (`BIZ_EXECUTE`). DDIC writes and reads on ECC accept `nco` next to `odata`.
68
+ - **NCo ADT connection `SAP_CONNECTION_TYPE=nco`**: ADT requests over `SADT_REST_RFC_ENDPOINT` through `@babamba2/mcp-abap-connection` 1.6.0 (`RfcAbapConnection`, now NCo-driven). Lock / write / unlock run in one RFC session. `SAP_CONNECTION_TYPE=rfc` stays removed.
69
+ - Keys `SAP_NCO_ASHOST`, `SAP_NCO_SYSNR` (default from the `SAP_URL` port 80XX), `SAP_NCO_LANG`, `SAP_NCO_BRIDGE_EXE`; cleared on a profile switch like `SAP_RFC_*`. Open NCo connections are closed when the connection cache is invalidated (ReloadProfile).
70
+ - ECC bridge replies report `path: "ecc-nco-rfc"` / "via NCo RFC" on the NCo backend; OData replies keep `ecc-odata-rfc` / "via OData".
71
+
72
+ ### Changed
73
+ - Requires `@babamba2/mcp-abap-connection` ^1.6.0.
74
+
75
+ ## [4.10.0] - 2026-11-11
76
+
77
+ ### Removed
78
+ - **RFC backends `native`, `gateway` and `zrfc`** (`SAP_RFC_BACKEND`). Function modules are reached through `odata` (default) or `soap`. Files removed: `lib/nativeRfc.ts`, `lib/gatewayRfc.ts`, `lib/zrfcProxy.ts`, the ZRFC ICF handler `abap/zcl_mcp_rfc_http_handler.abap`, `docs/installation/ZRFC_SETUP.md`, their tests and the native parity suite. Business actions on `native` called `ZMCP_BIZ_EXECUTE` directly; `soap` still does, `odata` goes through the dispatcher.
79
+ - **RFC connection** `SAP_CONNECTION_TYPE=rfc` / `--connection-type=rfc` (ADT over node-rfc + SAP NW RFC SDK) and `docs/installation/RFC_SETUP.md`. The server connects over HTTP/HTTPS. `node-rfc` is no longer an optional dependency of this package.
80
+
81
+ ### Changed
82
+ - A profile that still selects one of these fails at boot (exit 1) and on `ReloadProfile` with a message naming the fix (`SAP_RFC_BACKEND=odata` or `soap`; drop `SAP_CONNECTION_TYPE`), instead of running over another path (`lib/removedTransports.ts`).
83
+
84
+ ## [4.9.1] - 2026-11-11
85
+
86
+ ### Added
87
+ - **`CreateTableType` / `DeleteTableType`**. Row type is a structure, a data element or another table type (`row_kind`); `access_type`, `key_definition`, `key_kind`. S/4 goes through ADT. ECC goes through the new FM `ZMCP_ADT_DDIC_TTYP` (OData action `DdicTtyp`, sc4sap setup Step 9a.2); only ECC takes `key_components`. A hashed table type without a unique key is refused before any call to SAP.
88
+ - **`CreateTable` on ECC**: `fields`, `includes`, delivery class and data class are written as DD02V / DD03P / DD09L through `ZMCP_ADT_DDIC_TABL`, then activated.
89
+ - **`CreateStructure` on ECC** takes `structure_ref` and `includes`; **`DeleteStructure`** has an ECC branch.
90
+ - **`GetAreaMenu`** (read-only, on-premise). Reads an SE43 area menu (`TTREE` type `BMENU` → `TMENU01` / `TMENU01R` / `TMENU01T`) as a flat list: every transaction with its folder path and menu text, plus the folders and the links to other area menus. Links to customer menus (Z / Y / namespace) are followed by default (`follow_links`: `customer` | `all` | `none`). `menu_pattern` (e.g. `Z*`) lists the menus with master language and last change instead. Texts in the requested language fall back to the master language, then English; texts stored as `#` only are skipped. `output: "file"` writes the result to `<MCP output dir>/areamenu/<menu>-<time>.json`. Works on the ADT SQL path and on the legacy `TABLE_READ` path (ECC; reference rows are read in batches of 60 nodes).
91
+
92
+ ### Docs
93
+ - Tool reference regenerated (`npm run docs:tools`): `GetAreaMenu`, plus descriptions that had drifted from the source (`ReadProgram`, `GetSqlQuery` `output`, `WriteTextElementsBulk` `activate`).
94
+
95
+ ## [4.9.0] - 2026-11-10
96
+
97
+ ### Added
98
+ - **Business-action tools** `ListBusinessActions`, `RunBusinessQuery` (QUERY or PRECHECK), `PreviewBusinessAction` (returns a one-time token) and `ExecuteBusinessAction` (token required). They call the RFC function module `ZMCP_BIZ_EXECUTE` (sc4sap `abap/biz/`): directly on the `soap` and `native` backends, through the new dispatcher action `BIZ_EXECUTE` on `odata` / `gateway` / `zrfc`. A refusal from SAP (subrc 4) is returned as content with `ok: false`, not as a tool error.
99
+ - **`SAP_TOOL_PROFILE`** = `dev` (default, development tools) | `biz` (business-action tools) | `all`. Tools declare `tool_profile`; untagged tools are `dev`.
100
+
101
+ ### Security
102
+ - `PreviewBusinessAction` / `ExecuteBusinessAction` are blocked on PRD-tier profiles (readonly guard + handler); allowed on DEV and QA. SAP also refuses a production client and enforces the preview token.
103
+
104
+ ## [4.8.19] - 2026-11-06
105
+
106
+ ### Added
107
+ - **`GetSqlQuery` `output: "file"`.** The rows are written to `<MCP output dir>/sql/<table>-<time>.json` (with `sql_query`, `row_number`, `columns`) and the answer carries only `path`, `rows` and `truncated`. Works on the ADT path and on the legacy `TABLE_READ` path (ECC).
108
+
109
+ ### Fixed
110
+ - **`GetProgFullCode` `output: "file"` on large function groups.** The answer listed every include with its absolute path and outline; a function group with 170–270 includes reached 54–94k characters, over the client's tool-result limit, so the client dropped the answer although every file had been written. The full listing now always goes to `<folder>/_index.json`, and the answer keeps under 40,000 characters: outlines are left out first (`outline_omitted`), then entries after the first carry only `file` instead of `path` (`paths_shortened`), and as a last resort the list is cut (`code_objects_truncated`). The answer now also carries `folder` and `index_path`. Measured on ECC function groups: 94,248 → 29,186, 58,324 → 39,903 characters.
111
+
112
+ ## [4.8.18] - 2026-11-03
113
+
114
+ ### Added
115
+ - **`CreateStructure` field args `reference_table` / `reference_field`** for CURR / QUAN fields on ECC. The reference table defaults to the structure itself when only `reference_field` is set.
116
+
117
+ ### Fixed
118
+ - **`CreateStructure` on ECC.** ECC systems without the ADT DDIC structure endpoint now create the structure over RFC (`ZMCP_ADT_DDIC_TABL` CREATE with DD02V `INTTAB` + DD03P rows) and activate it with `DDIC_ACTIVATE`. A helper report is no longer needed. Checked on ECC 7.40.
119
+
120
+ ## [4.8.17] - 2026-10-30
121
+
122
+ ### Changed
123
+ - **`WriteTextElementsBulk`: `activate` defaults to `true`.** `activate: false` stages the text pool inactive, but the pool is not added to the inactive worklist, so activating the program afterwards does not promote it (checked on ECC 7.40). The tool description and the staged-rows message now say so.
124
+
125
+ ### Fixed
126
+ - **Selection texts on S/4HANA.** A selection-text row keeps 8 reserved characters (position 1 = `D` for a DDIC reference) before the visible text. The S/4HANA RFC read drops these leading blanks on a non-DDIC row.
127
+ - `ReadTextElementsBulk` strips the prefix only when it is there, so the first 8 characters of the label are no longer cut off. Each selection carries `ddic_reference`.
128
+ - `WriteTextElementsBulk` writes the prefix on new selection texts and puts it back on existing rows during a merge (`replace_existing: false`), so labels do not shift in SE38. A selection text may be up to 124 characters.
129
+ - **`SearchObject` program titles.** Titles of program and include hits (`PROG/*`) are read from TRDIRT, in the logon language first, then English. ECC 7.40 quick search could pair a program with another object's title, and S/4HANA sent no title for programs. When the TRDIRT read fails, the search titles stay as they were.
130
+ - **`ReadProgram` reads includes.** A name that is not a program is retried under `/programs/includes/`; the result carries `object_type` (`PROG/P` or `PROG/I`). An unknown name now returns an error instead of success with empty fields.
131
+
132
+ ## [4.8.16] - 2026-10-29
133
+
134
+ ### Fixed
135
+ - **`MCP_ALLOW_TABLE` from the launching process survives the profile apply.** A script that starts its own server for one audited read (e.g. the PFCG role tables) sets `MCP_ALLOW_TABLE`; applying the active profile wiped it, so the read was blocked again. The launcher value is now kept and merged with the profile's own value on every apply; a previous profile's value is still dropped on a switch.
136
+ - The `TABLE_READ` "not allowed" hint on BASIS < 7.50 now lists delivery class W (readable since the 2026-10-28 dispatcher).
137
+
138
+ ## [4.8.15] - 2026-10-28
139
+
140
+ ### Added
141
+ - **ECC dumps older than 24 hours.** On ECC (BASIS 7.40 / 7.31) the ADT dump feed only returns the last 24 hours, whatever `from` is sent. `RuntimeListDumps` takes `date_from` / `date_to`, and when the range is older than 24 hours (or the feed is empty) both it and `RuntimeListFeeds(dumps)` add an `st22` block: the ST22 list for that range (date, time, host, user, client, runtime error, program, include, line, `dump_id`), from `ZMCP_ADT_DISPATCH` action `DUMP_LIST` (SNAP headers, decoded like `RS_ST22_GET_DUMPS`; needs ST22 display authorization). Without the action the answer carries an install hint.
142
+
143
+ ### Changed
144
+ - `RuntimeGetDumpById` / `RuntimeAnalyzeDump` on ECC: the 404 for one dump (ECC has no ADT resource for it) now says how to get the facts — `include_summary` for the last 24 hours, the `st22` list plus the source for older dumps.
145
+
146
+ ### Fixed
147
+ - SOAP RFC backend (BASIS 7.31): SAP writes `"` in `EV_RESULT` as `&#34;`, which was not decoded, so JSON results failed to parse and came back as 0 rows (e.g. an empty dump list). Numeric character references are now decoded.
148
+
7
149
  ## [4.8.14] - 2026-10-28
8
150
 
9
151
  ### Changed
package/README.md CHANGED
@@ -97,7 +97,7 @@ Verified on ECC 7.40 (SAP_VERSION=ECC, ABAP_RELEASE=740, SAP_SYSTEM_TYPE=onprem)
97
97
  | Enhancements | `GetEnhancements`, `GetEnhancementSpot`, `GetEnhancementImpl` | ❌ | `/sap/bc/adt/enhancements` discovery endpoints return 404 on BASIS < 7.50 — use SE18/SE19 or CMOD/SMOD in SAP GUI |
98
98
  | Transport | `ListTransports`, `GetTransport`, `CreateTransport` | ✅ | CTS endpoints present |
99
99
  | Runtime | `RuntimeListDumps`, `RuntimeAnalyzeDump`, `RuntimeGetDumpById` | ✅ | `/sap/bc/adt/runtime/dumps` present |
100
- | Screen / GUI Status | `GetScreen`, `GetGuiStatus`, `GetTextElement` (+ Create/Update) | ℹ️ | RFC-dispatched via `SAP_RFC_BACKEND` (`odata` default / `soap` / `native` / `gateway` / `zrfc`); the chosen backend's prerequisites (backend classes, SICF node, SDK) must be in place |
100
+ | Screen / GUI Status | `GetScreen`, `GetGuiStatus`, `GetTextElement` (+ Create/Update) | ℹ️ | RFC-dispatched via `SAP_RFC_BACKEND` (`odata` default / `soap` / `nco`); the chosen backend's prerequisites (OData service classes, the SOAP RFC SICF node, or NCo on Windows) must be in place |
101
101
  | RAP / Behavior | `*BehaviorDefinition`, `*BehaviorImplementation` | ❌ | S/4HANA only — RAP does not exist on ECC |
102
102
  | Service binding | `*ServiceDefinition`, `*ServiceBinding` | ❌ | S/4HANA / ABAP Cloud only |
103
103
  | Metadata extensions | `*MetadataExtension` | ❌ | S/4HANA / ABAP Cloud only |
@@ -699,7 +699,7 @@ The server respects SAP authorization — whatever your user cannot do in SE80/A
699
699
  Use `--env <destination>` with per-destination `.env` files, or the YAML config. For HTTP/SSE deployments, pass `x-sap-*` headers per request.
700
700
 
701
701
  **Q. Does it support RFC?**
702
- Yes, for legacy systems where ADT HTTP APIs are unavailable. Set `connection_type: rfc` in the test config (or equivalent env) — requires the SAP NW RFC SDK installed locally.
702
+ Yes, on Windows through SAP .NET Connector (NCo 3.x): `SAP_RFC_BACKEND=nco` calls the helper function modules over RFC, and `SAP_CONNECTION_TYPE=nco` sends the ADT requests over RFC too (`SADT_REST_RFC_ENDPOINT`). The bridge is compiled on first use against the installed NCo. The node-rfc connection (`SAP_CONNECTION_TYPE=rfc`) and the `native` / `gateway` / `zrfc` backends were removed in 4.10.0.
703
703
 
704
704
  ---
705
705
 
@@ -0,0 +1,60 @@
1
+ /**
2
+ * CreateAdobeFormFromSmartForm — SAP's SmartForm → Adobe form migration (CL_SSF_MIGRATION's steps) of a SAP
3
+ * example SmartForm into NEW local objects (ZSC4SAP_AFM_* form and interface, package $TMP), activated, with
4
+ * SAP's migration log. Development systems only: the Create prefix makes the server's tier guard and the
5
+ * plugin hook refuse it on QA / PRD; the SAP helper refuses non-development clients itself.
6
+ *
7
+ * SAP side: ZMCP_ADT_DISPATCH action FP_MIGRATE → FM ZMCP_FP_MIGRATE.
8
+ * Companion ABAP: sc4sap/abap/zmcp_fp_migrate.abap, zmcp_adt_dispatch_fp_migrate_branch.abap.
9
+ */
10
+ import type { HandlerContext } from '../../../lib/handlers/interfaces';
11
+ export declare const TOOL_DEFINITION: {
12
+ readonly name: "CreateAdobeFormFromSmartForm";
13
+ readonly available_in: readonly ["onprem", "legacy"];
14
+ readonly description: "[writes, DEV only] Migrate a SAP-delivered SmartForm into a NEW Adobe form and interface with SAP's own migration (CL_SSF_MIGRATION steps, all options except 'alternative: true branch' and 'text placeholder'), in package $TMP, activated. Target names must match ZSC4SAP_AFM_* and must not exist — nothing is overwritten or deleted. Returns SAP's migration log, the options used and what was saved / activated; `complete` is true only when both objects are active (otherwise `message` says what is not). When SAP's migration raises, the tool fails and its error names the objects left behind (delete them only with the user's approval). Optional correction_file: a layout correction spec (version 1) applied to the migrated layout before it is saved — the result's `correction` reports every op (applied / not_found / ambiguous / refused), `partial` when not all applied; with strict nothing is saved unless every op applies. Needs the ZMCP_FP_MIGRATE FM and the FP_MIGRATE dispatcher action.";
15
+ readonly inputSchema: {
16
+ readonly type: "object";
17
+ readonly properties: {
18
+ readonly source: {
19
+ readonly type: "string";
20
+ readonly description: "SAP SmartForm to migrate (e.g. \"SF_EXAMPLE_01\"); customer forms are refused.";
21
+ };
22
+ readonly form_name: {
23
+ readonly type: "string";
24
+ readonly description: "New Adobe form name, ZSC4SAP_AFM_* (≤ 30).";
25
+ };
26
+ readonly interface_name: {
27
+ readonly type: "string";
28
+ readonly description: "New form interface name, ZSC4SAP_AFM_* (≤ 30).";
29
+ };
30
+ readonly sender_country: {
31
+ readonly type: "string";
32
+ readonly description: "Optional country key (T005, e.g. \"DE\") set as sender country on address nodes that have none — the Adobe check requires one, SmartForms did not. Without it nothing is changed and the check reports the address nodes.";
33
+ };
34
+ readonly correction_file: {
35
+ readonly type: "string";
36
+ readonly description: "Optional .json file (inside the MCP output directory or the profile work folder) with a layout correction spec: {\"version\":1,\"strict\"?:bool,\"ops\":[{\"op\":\"layout|geometry|margin|font|para|xhtml|picture|border|presence|datePicture|bind|embedLead\",\"target\":{\"path\"|\"protoId\"[+\"path\"]|\"xliffId\"},...}]}. bind: match \"dataRef\" + ref \"$record…\" ([0] / [*] only) or \"none\", with a basis. Model ops (no target, with a basis): {\"op\":\"contextDeactivate\",\"node\":\"CONTEXT/MAIN/<program lines>\"} deactivates one program-lines node; {\"op\":\"initSumByKey\",\"source\":\"<table>\",\"target\":\"<global table>\",\"key\":[…],\"sum\":[…]} adds a COLLECT loop to the interface initialization.";
37
+ };
38
+ readonly strict: {
39
+ readonly type: "boolean";
40
+ readonly description: "With correction_file: save nothing unless every op applies (overrides \"strict\" in the spec).";
41
+ };
42
+ };
43
+ readonly required: readonly ["source", "form_name", "interface_name"];
44
+ };
45
+ };
46
+ export declare function handleCreateAdobeFormFromSmartForm(context: HandlerContext, args: {
47
+ source: string;
48
+ form_name: string;
49
+ interface_name: string;
50
+ sender_country?: string;
51
+ correction_file?: string;
52
+ strict?: boolean;
53
+ }): Promise<{
54
+ isError: boolean;
55
+ content: {
56
+ type: string;
57
+ text: any;
58
+ }[];
59
+ }>;
60
+ //# sourceMappingURL=handleCreateAdobeFormFromSmartForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleCreateAdobeFormFromSmartForm.d.ts","sourceRoot":"","sources":["../../../../src/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAQvE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuClB,CAAC;AAEX,wBAAsB,kCAAkC,CACtD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE;IACJ,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;;;;;;GAuCF"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /**
3
+ * CreateAdobeFormFromSmartForm — SAP's SmartForm → Adobe form migration (CL_SSF_MIGRATION's steps) of a SAP
4
+ * example SmartForm into NEW local objects (ZSC4SAP_AFM_* form and interface, package $TMP), activated, with
5
+ * SAP's migration log. Development systems only: the Create prefix makes the server's tier guard and the
6
+ * plugin hook refuse it on QA / PRD; the SAP helper refuses non-development clients itself.
7
+ *
8
+ * SAP side: ZMCP_ADT_DISPATCH action FP_MIGRATE → FM ZMCP_FP_MIGRATE.
9
+ * Companion ABAP: sc4sap/abap/zmcp_fp_migrate.abap, zmcp_adt_dispatch_fp_migrate_branch.abap.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TOOL_DEFINITION = void 0;
13
+ exports.handleCreateAdobeFormFromSmartForm = handleCreateAdobeFormFromSmartForm;
14
+ const adobeForm_1 = require("../../../lib/adobeForm");
15
+ const utils_1 = require("../../../lib/utils");
16
+ const valuesFile_1 = require("../../../lib/valuesFile");
17
+ exports.TOOL_DEFINITION = {
18
+ name: 'CreateAdobeFormFromSmartForm',
19
+ available_in: ['onprem', 'legacy'],
20
+ description: "[writes, DEV only] Migrate a SAP-delivered SmartForm into a NEW Adobe form and interface with SAP's own migration (CL_SSF_MIGRATION steps, all options except 'alternative: true branch' and 'text placeholder'), in package $TMP, activated. Target names must match ZSC4SAP_AFM_* and must not exist — nothing is overwritten or deleted. Returns SAP's migration log, the options used and what was saved / activated; `complete` is true only when both objects are active (otherwise `message` says what is not). When SAP's migration raises, the tool fails and its error names the objects left behind (delete them only with the user's approval). Optional correction_file: a layout correction spec (version 1) applied to the migrated layout before it is saved — the result's `correction` reports every op (applied / not_found / ambiguous / refused), `partial` when not all applied; with strict nothing is saved unless every op applies. Needs the ZMCP_FP_MIGRATE FM and the FP_MIGRATE dispatcher action.",
21
+ inputSchema: {
22
+ type: 'object',
23
+ properties: {
24
+ source: {
25
+ type: 'string',
26
+ description: 'SAP SmartForm to migrate (e.g. "SF_EXAMPLE_01"); customer forms are refused.',
27
+ },
28
+ form_name: {
29
+ type: 'string',
30
+ description: 'New Adobe form name, ZSC4SAP_AFM_* (≤ 30).',
31
+ },
32
+ interface_name: {
33
+ type: 'string',
34
+ description: 'New form interface name, ZSC4SAP_AFM_* (≤ 30).',
35
+ },
36
+ sender_country: {
37
+ type: 'string',
38
+ description: 'Optional country key (T005, e.g. "DE") set as sender country on address nodes that have none — the Adobe check requires one, SmartForms did not. Without it nothing is changed and the check reports the address nodes.',
39
+ },
40
+ correction_file: {
41
+ type: 'string',
42
+ description: 'Optional .json file (inside the MCP output directory or the profile work folder) with a layout correction spec: {"version":1,"strict"?:bool,"ops":[{"op":"layout|geometry|margin|font|para|xhtml|picture|border|presence|datePicture|bind|embedLead","target":{"path"|"protoId"[+"path"]|"xliffId"},...}]}. bind: match "dataRef" + ref "$record…" ([0] / [*] only) or "none", with a basis. Model ops (no target, with a basis): {"op":"contextDeactivate","node":"CONTEXT/MAIN/<program lines>"} deactivates one program-lines node; {"op":"initSumByKey","source":"<table>","target":"<global table>","key":[…],"sum":[…]} adds a COLLECT loop to the interface initialization.',
43
+ },
44
+ strict: {
45
+ type: 'boolean',
46
+ description: 'With correction_file: save nothing unless every op applies (overrides "strict" in the spec).',
47
+ },
48
+ },
49
+ required: ['source', 'form_name', 'interface_name'],
50
+ },
51
+ };
52
+ async function handleCreateAdobeFormFromSmartForm(context, args) {
53
+ const { connection, logger } = context;
54
+ try {
55
+ logger?.info(`CreateAdobeFormFromSmartForm: ${args?.source} → ${args?.form_name}`);
56
+ let correction;
57
+ if (args?.correction_file) {
58
+ const raw = (0, valuesFile_1.readFormInputFile)(args.correction_file, 'correction_file', [
59
+ '.json',
60
+ ]).toString('utf8');
61
+ let spec;
62
+ try {
63
+ spec = JSON.parse(raw.replace(/^\uFEFF/, ''));
64
+ }
65
+ catch {
66
+ throw new Error('correction_file: not valid JSON');
67
+ }
68
+ correction = (0, adobeForm_1.normalizeCorrection)(spec, typeof args.strict === 'boolean' ? args.strict : undefined);
69
+ }
70
+ const result = await (0, adobeForm_1.createAdobeFormFromSmartForm)(connection, args?.source, args?.form_name, args?.interface_name, args?.sender_country, correction);
71
+ return (0, utils_1.return_response)({
72
+ data: JSON.stringify(result, null, 2),
73
+ });
74
+ }
75
+ catch (error) {
76
+ const msg = error instanceof Error ? error.message : String(error);
77
+ logger?.error(`CreateAdobeFormFromSmartForm error: ${msg}`);
78
+ return (0, utils_1.return_error)(new Error(msg));
79
+ }
80
+ }
81
+ //# sourceMappingURL=handleCreateAdobeFormFromSmartForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleCreateAdobeFormFromSmartForm.js","sourceRoot":"","sources":["../../../../src/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAuDH,gFAgDC;AArGD,sDAGgC;AAEhC,8CAI4B;AAC5B,wDAA4D;AAE/C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,8BAA8B;IACpC,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAU;IAC3C,WAAW,EACT,i+BAAi+B;IACn+B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8EAA8E;aACjF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4CAA4C;aAC1D;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gDAAgD;aAC9D;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yNAAyN;aAC5N;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,opBAAopB;aACvpB;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,8FAA8F;aACjG;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,gBAAgB,CAAC;KACpD;CACO,CAAC;AAEJ,KAAK,UAAU,kCAAkC,CACtD,OAAuB,EACvB,IAOC;IAED,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACvC,IAAI,CAAC;QACH,MAAM,EAAE,IAAI,CACV,iCAAiC,IAAI,EAAE,MAAM,MAAM,IAAI,EAAE,SAAS,EAAE,CACrE,CAAC;QACF,IAAI,UAAwC,CAAC;QAC7C,IAAI,IAAI,EAAE,eAAe,EAAE,CAAC;YAC1B,MAAM,GAAG,GAAG,IAAA,8BAAiB,EAAC,IAAI,CAAC,eAAe,EAAE,iBAAiB,EAAE;gBACrE,OAAO;aACR,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YACpB,IAAI,IAAa,CAAC;YAClB,IAAI,CAAC;gBACH,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC;YAChD,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;YACrD,CAAC;YACD,UAAU,GAAG,IAAA,+BAAmB,EAC9B,IAAI,EACJ,OAAO,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAC3D,CAAC;QACJ,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,IAAA,wCAA4B,EAC/C,UAAU,EACV,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,cAAc,EACpB,IAAI,EAAE,cAAc,EACpB,UAAU,CACX,CAAC;QACF,OAAO,IAAA,uBAAe,EAAC;YACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;SACrB,CAAC,CAAC;IACtB,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,MAAM,GAAG,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnE,MAAM,EAAE,KAAK,CAAC,uCAAuC,GAAG,EAAE,CAAC,CAAC;QAC5D,OAAO,IAAA,oBAAY,EAAC,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACtC,CAAC;AACH,CAAC"}
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Business-action tools (tool profile "biz"): ListBusinessActions,
3
+ * RunBusinessQuery, PreviewBusinessAction, ExecuteBusinessAction.
4
+ *
5
+ * All four call ZMCP_BIZ_EXECUTE (see lib/bizRfc.ts). Safety is enforced in
6
+ * SAP (whitelist, AUTHORITY-CHECK, preview token bound to user + parameter
7
+ * hash, production-client block, ZMCP_BIZ_LOG). This layer adds the first
8
+ * block: Preview / Execute are refused on a PRD-tier profile (also in
9
+ * readonlyGuard), and Execute without a token is refused before any call.
10
+ *
11
+ * Companion ABAP: sc4sap/abap/biz/ (ZMCP_BIZ_EXECUTE, ZCL_MCP_BIZ_*).
12
+ */
13
+ import { type BizMode, type BizResult } from '../../lib/bizRfc';
14
+ import type { HandlerContext } from '../../lib/handlers/interfaces';
15
+ export declare const ListBusinessActions_Tool: {
16
+ readonly name: "ListBusinessActions";
17
+ readonly tool_profile: readonly ["biz"];
18
+ readonly description: "[read-only] List the business actions installed and active in SAP (ZMCP_BIZ registry: id, kind query/write, version). Use before offering an action to the user.";
19
+ readonly inputSchema: {
20
+ readonly type: "object";
21
+ readonly properties: {};
22
+ readonly required: readonly [];
23
+ };
24
+ };
25
+ export declare const RunBusinessQuery_Tool: {
26
+ readonly name: "RunBusinessQuery";
27
+ readonly tool_profile: readonly ["biz"];
28
+ readonly description: "[read-only] Run a query business action (e.g. open purchase orders) or a PRECHECK of a write action (configuration / status facts that would block it). Never changes SAP data.";
29
+ readonly inputSchema: {
30
+ readonly type: "object";
31
+ readonly properties: {
32
+ readonly action: {
33
+ readonly type: "string";
34
+ readonly description: "Catalog action id, e.g. MM.PO.LIST_OPEN or MM.PO.SET_DELIVERY_COMPLETE.";
35
+ };
36
+ readonly params: {
37
+ readonly type: "object";
38
+ readonly description: "Flat JSON object of action parameters (values as strings; item lists as arrays of strings), named as in the action catalog (configs/<module>/actions.json). Unknown names are refused by SAP.";
39
+ readonly additionalProperties: true;
40
+ };
41
+ readonly precheck: {
42
+ readonly type: "boolean";
43
+ readonly description: "true = run PRECHECK for a write action instead of QUERY. Default false.";
44
+ };
45
+ };
46
+ readonly required: readonly ["action"];
47
+ };
48
+ };
49
+ export declare const PreviewBusinessAction_Tool: {
50
+ readonly name: "PreviewBusinessAction";
51
+ readonly tool_profile: readonly ["biz"];
52
+ readonly description: "[preview] Simulate a write business action in SAP (BAPI test run or checks only) and return the before/after values plus a one-time confirmation token. Show the preview to the user and get an explicit yes before ExecuteBusinessAction. Blocked on PRD profiles.";
53
+ readonly inputSchema: {
54
+ readonly type: "object";
55
+ readonly properties: {
56
+ readonly action: {
57
+ readonly type: "string";
58
+ readonly description: "Catalog action id, e.g. MM.PO.LIST_OPEN or MM.PO.SET_DELIVERY_COMPLETE.";
59
+ };
60
+ readonly params: {
61
+ readonly type: "object";
62
+ readonly description: "Flat JSON object of action parameters (values as strings; item lists as arrays of strings), named as in the action catalog (configs/<module>/actions.json). Unknown names are refused by SAP.";
63
+ readonly additionalProperties: true;
64
+ };
65
+ };
66
+ readonly required: readonly ["action", "params"];
67
+ };
68
+ };
69
+ export declare const ExecuteBusinessAction_Tool: {
70
+ readonly name: "ExecuteBusinessAction";
71
+ readonly tool_profile: readonly ["biz"];
72
+ readonly description: "[write] Execute a previewed write business action (BAPI + commit) in SAP. Needs the token from PreviewBusinessAction and exactly the same params; the token expires and works once. Only after the user confirmed the preview. Blocked on PRD profiles.";
73
+ readonly inputSchema: {
74
+ readonly type: "object";
75
+ readonly properties: {
76
+ readonly action: {
77
+ readonly type: "string";
78
+ readonly description: "Catalog action id, e.g. MM.PO.LIST_OPEN or MM.PO.SET_DELIVERY_COMPLETE.";
79
+ };
80
+ readonly params: {
81
+ readonly type: "object";
82
+ readonly description: "Flat JSON object of action parameters (values as strings; item lists as arrays of strings), named as in the action catalog (configs/<module>/actions.json). Unknown names are refused by SAP.";
83
+ readonly additionalProperties: true;
84
+ };
85
+ readonly token: {
86
+ readonly type: "string";
87
+ readonly description: "Token returned by PreviewBusinessAction for these params.";
88
+ };
89
+ readonly idem_key: {
90
+ readonly type: "string";
91
+ readonly description: "Optional idempotency key: repeating EXECUTE with the same key returns the stored result instead of posting again.";
92
+ };
93
+ };
94
+ readonly required: readonly ["action", "params", "token"];
95
+ };
96
+ };
97
+ /** Tool names that may change SAP business data (blocked on PRD). */
98
+ export declare const BUSINESS_WRITE_TOOL_NAMES: readonly ["PreviewBusinessAction", "ExecuteBusinessAction"];
99
+ export declare function formatBizResult(mode: BizMode, r: BizResult): {
100
+ isError: boolean;
101
+ content: {
102
+ type: string;
103
+ text: string;
104
+ }[];
105
+ };
106
+ export declare function handleListBusinessActions(context: HandlerContext, _args: any): Promise<{
107
+ isError: boolean;
108
+ content: {
109
+ type: string;
110
+ text: string;
111
+ }[];
112
+ }>;
113
+ export declare function handleRunBusinessQuery(context: HandlerContext, args: any): Promise<{
114
+ isError: boolean;
115
+ content: {
116
+ type: string;
117
+ text: string;
118
+ }[];
119
+ }>;
120
+ export declare function handlePreviewBusinessAction(context: HandlerContext, args: any): Promise<{
121
+ isError: boolean;
122
+ content: {
123
+ type: string;
124
+ text: string;
125
+ }[];
126
+ }>;
127
+ export declare function handleExecuteBusinessAction(context: HandlerContext, args: any): Promise<{
128
+ isError: boolean;
129
+ content: {
130
+ type: string;
131
+ text: string;
132
+ }[];
133
+ }>;
134
+ //# sourceMappingURL=handleBusinessActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleBusinessActions.d.ts","sourceRoot":"","sources":["../../../src/handlers/business/handleBusinessActions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,kBAAkB,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAiBpE,eAAO,MAAM,wBAAwB;;;;;;;;;CAM3B,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;CAkBxB,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;CAU7B,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB7B,CAAC;AAEX,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,6DAG5B,CAAC;AAiBX,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS;;;;;;EAa1D;AA+BD,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,GAAG;;;;;;GAOX;AAED,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,GAAG;;;;;;GAWV;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,GAAG;;;;;;GASV;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,GAAG;;;;;;GAoBV"}