@babamba2/abap-mcp-adt-powerup 4.13.0 → 4.15.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.
- package/CHANGELOG.md +44 -1
- package/dist/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.d.ts +11 -1
- package/dist/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.d.ts.map +1 -1
- package/dist/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.js +25 -2
- package/dist/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.js.map +1 -1
- package/dist/handlers/adobeform/high/handleDeleteAdobeForm.d.ts +50 -0
- package/dist/handlers/adobeform/high/handleDeleteAdobeForm.d.ts.map +1 -0
- package/dist/handlers/adobeform/high/handleDeleteAdobeForm.js +91 -0
- package/dist/handlers/adobeform/high/handleDeleteAdobeForm.js.map +1 -0
- package/dist/handlers/common/high/handleActivateObjects.d.ts.map +1 -1
- package/dist/handlers/common/high/handleActivateObjects.js +4 -1
- package/dist/handlers/common/high/handleActivateObjects.js.map +1 -1
- package/dist/handlers/include/high/handleUpdateInclude.d.ts +11 -0
- package/dist/handlers/include/high/handleUpdateInclude.d.ts.map +1 -1
- package/dist/handlers/include/high/handleUpdateInclude.js +30 -21
- package/dist/handlers/include/high/handleUpdateInclude.js.map +1 -1
- package/dist/handlers/system/readonly/handleGetJobUsage.d.ts +6 -3
- package/dist/handlers/system/readonly/handleGetJobUsage.d.ts.map +1 -1
- package/dist/handlers/system/readonly/handleGetJobUsage.js +12 -8
- package/dist/handlers/system/readonly/handleGetJobUsage.js.map +1 -1
- package/dist/handlers/system/readonly/handleGetSqlQuery.d.ts +18 -0
- package/dist/handlers/system/readonly/handleGetSqlQuery.d.ts.map +1 -1
- package/dist/handlers/system/readonly/handleGetSqlQuery.js +35 -5
- package/dist/handlers/system/readonly/handleGetSqlQuery.js.map +1 -1
- package/dist/handlers/system/readonly/handleGetStandardText.d.ts +46 -0
- package/dist/handlers/system/readonly/handleGetStandardText.d.ts.map +1 -0
- package/dist/handlers/system/readonly/handleGetStandardText.js +55 -0
- package/dist/handlers/system/readonly/handleGetStandardText.js.map +1 -0
- package/dist/handlers/system/readonly/handleGetTcodeUsage.d.ts +6 -3
- package/dist/handlers/system/readonly/handleGetTcodeUsage.d.ts.map +1 -1
- package/dist/handlers/system/readonly/handleGetTcodeUsage.js +13 -12
- package/dist/handlers/system/readonly/handleGetTcodeUsage.js.map +1 -1
- package/dist/handlers/system/readonly/handleRenderAdobeXdp.d.ts +54 -0
- package/dist/handlers/system/readonly/handleRenderAdobeXdp.d.ts.map +1 -0
- package/dist/handlers/system/readonly/handleRenderAdobeXdp.js +64 -0
- package/dist/handlers/system/readonly/handleRenderAdobeXdp.js.map +1 -0
- package/dist/handlers/table/readonly/handleGetRemoteTableContents.d.ts +4 -0
- package/dist/handlers/table/readonly/handleGetRemoteTableContents.d.ts.map +1 -1
- package/dist/handlers/table/readonly/handleGetRemoteTableContents.js +43 -0
- package/dist/handlers/table/readonly/handleGetRemoteTableContents.js.map +1 -1
- package/dist/handlers/table/readonly/handleGetTableContents.d.ts +4 -0
- package/dist/handlers/table/readonly/handleGetTableContents.d.ts.map +1 -1
- package/dist/handlers/table/readonly/handleGetTableContents.js +21 -3
- package/dist/handlers/table/readonly/handleGetTableContents.js.map +1 -1
- package/dist/handlers/table_type/high/handleCreateTableType.d.ts +1 -1
- package/dist/handlers/unit_test/high/handleGetUnitTestResult.d.ts.map +1 -1
- package/dist/handlers/unit_test/high/handleGetUnitTestResult.js +4 -0
- package/dist/handlers/unit_test/high/handleGetUnitTestResult.js.map +1 -1
- package/dist/handlers/unit_test/high/handleRunUnitTest.d.ts +51 -1
- package/dist/handlers/unit_test/high/handleRunUnitTest.d.ts.map +1 -1
- package/dist/handlers/unit_test/high/handleRunUnitTest.js +197 -5
- package/dist/handlers/unit_test/high/handleRunUnitTest.js.map +1 -1
- package/dist/lib/adobeForm.d.ts +61 -1
- package/dist/lib/adobeForm.d.ts.map +1 -1
- package/dist/lib/adobeForm.js +289 -2
- package/dist/lib/adobeForm.js.map +1 -1
- package/dist/lib/handlers/base/BaseHandlerGroup.d.ts.map +1 -1
- package/dist/lib/handlers/base/BaseHandlerGroup.js +12 -7
- package/dist/lib/handlers/base/BaseHandlerGroup.js.map +1 -1
- package/dist/lib/handlers/groups/HighLevelHandlersGroup.d.ts.map +1 -1
- package/dist/lib/handlers/groups/HighLevelHandlersGroup.js +5 -0
- package/dist/lib/handlers/groups/HighLevelHandlersGroup.js.map +1 -1
- package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.d.ts.map +1 -1
- package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.js +10 -0
- package/dist/lib/handlers/groups/ReadOnlyHandlersGroup.js.map +1 -1
- package/dist/lib/legacyTableRead.d.ts +6 -0
- package/dist/lib/legacyTableRead.d.ts.map +1 -1
- package/dist/lib/legacyTableRead.js +39 -2
- package/dist/lib/legacyTableRead.js.map +1 -1
- package/dist/lib/policy/maskSecret.d.ts +27 -0
- package/dist/lib/policy/maskSecret.d.ts.map +1 -0
- package/dist/lib/policy/maskSecret.js +142 -0
- package/dist/lib/policy/maskSecret.js.map +1 -0
- package/dist/lib/policy/maskedRead.d.ts +48 -0
- package/dist/lib/policy/maskedRead.d.ts.map +1 -0
- package/dist/lib/policy/maskedRead.js +156 -0
- package/dist/lib/policy/maskedRead.js.map +1 -0
- package/dist/lib/policy/personalMask.d.ts +82 -0
- package/dist/lib/policy/personalMask.d.ts.map +1 -0
- package/dist/lib/policy/personalMask.js +938 -0
- package/dist/lib/policy/personalMask.js.map +1 -0
- package/dist/lib/policy/tableBlocklist.d.ts +15 -5
- package/dist/lib/policy/tableBlocklist.d.ts.map +1 -1
- package/dist/lib/policy/tableBlocklist.js +105 -12
- package/dist/lib/policy/tableBlocklist.js.map +1 -1
- package/dist/lib/readonlyGuard.d.ts +1 -0
- package/dist/lib/readonlyGuard.d.ts.map +1 -1
- package/dist/lib/readonlyGuard.js +9 -0
- package/dist/lib/readonlyGuard.js.map +1 -1
- package/dist/lib/smartFormContent.d.ts +29 -0
- package/dist/lib/smartFormContent.d.ts.map +1 -1
- package/dist/lib/smartFormContent.js +174 -21
- package/dist/lib/smartFormContent.js.map +1 -1
- package/dist/lib/sourceFileInput.d.ts +15 -0
- package/dist/lib/sourceFileInput.d.ts.map +1 -0
- package/dist/lib/sourceFileInput.js +63 -0
- package/dist/lib/sourceFileInput.js.map +1 -0
- package/dist/lib/sourcePatchInput.d.ts +160 -0
- package/dist/lib/sourcePatchInput.d.ts.map +1 -0
- package/dist/lib/sourcePatchInput.js +701 -0
- package/dist/lib/sourcePatchInput.js.map +1 -0
- package/dist/lib/sqlLineWrap.d.ts +17 -0
- package/dist/lib/sqlLineWrap.d.ts.map +1 -0
- package/dist/lib/sqlLineWrap.js +72 -0
- package/dist/lib/sqlLineWrap.js.map +1 -0
- package/dist/lib/valuesFile.d.ts +8 -0
- package/dist/lib/valuesFile.d.ts.map +1 -1
- package/dist/lib/valuesFile.js +41 -1
- package/dist/lib/valuesFile.js.map +1 -1
- package/dist/lib/wlUsageS4.d.ts +47 -0
- package/dist/lib/wlUsageS4.d.ts.map +1 -0
- package/dist/lib/wlUsageS4.js +132 -0
- package/dist/lib/wlUsageS4.js.map +1 -0
- package/dist/server/BaseMcpServer.d.ts.map +1 -1
- package/dist/server/BaseMcpServer.js +30 -15
- package/dist/server/BaseMcpServer.js.map +1 -1
- package/docs/user-guide/AVAILABLE_TOOLS.md +54 -5
- package/docs/user-guide/AVAILABLE_TOOLS_COMPACT.md +1 -1
- package/docs/user-guide/AVAILABLE_TOOLS_HIGH.md +21 -3
- package/docs/user-guide/AVAILABLE_TOOLS_LEGACY.md +59 -5
- package/docs/user-guide/AVAILABLE_TOOLS_LOW.md +1 -1
- package/docs/user-guide/AVAILABLE_TOOLS_READONLY.md +33 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,49 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [4.15.0] - 2026-11-24
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **`source_patches` on the source-patch tools** (`UpdateProgram`, `UpdateInclude`, `UpdateClass`, `UpdateInterface`, `UpdateFunctionModule`, `UpdateLocalTypes`, `UpdateLocalDefinitions`, `UpdateLocalMacros`, `UpdateLocalTestClass`): exact `old_string` → `new_string` replacements applied on the server to the newest saved source, so an unchanged source never travels through the model. A replacement that is missing or not unique is refused and nothing is uploaded; sources of test classes (local test classes, `FOR TESTING`) are refused. `source_file` (on the `Create*` and `Update*` source tools) uploads a whole source from a file instead.
|
|
11
|
+
- **Undo of a failed patch**: when a `source_patches` call fails after the upload (for example at activation), the previous source is saved again — and activated again when the object had no inactive version before the patch; otherwise it stays the inactive version it was (ECC and S/4HANA). The answer says whether the undo was confirmed.
|
|
12
|
+
- **`RunUnitTest` `result_format`**: `"summary"` returns the counts plus only the failing methods and class alerts; `"full"` (default) keeps the whole result. Applies to runs that finish in one call (programs, function groups, legacy systems).
|
|
13
|
+
- **`DeleteAdobeForm`**: deletes an Adobe form (SFP) in `$TMP` through the sc4sap helper `ZMCP_FP_DELETE`; dry run by default, refused while an interface is still in use by another form.
|
|
14
|
+
- **`GetTcodeUsage` / `GetJobUsage` on S/4HANA** through the dispatcher's FM proxy (helper FMs of function group `ZMCP_WL`).
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- **`GetSqlQuery`**: lines longer than 255 characters are wrapped for the ADT freestyle preview (it answered HTTP 400 on S/4HANA); the result, the policy checks and the legacy `TABLE_READ` fallback keep the original statement.
|
|
18
|
+
- **`GetSmartFormContent`**: a cell side with a width but no colour is reported in `bordersUnset` (SAP prints it in the pen colour of the side before); `borderColors` lists side colours that are not black; global fields carry their default value.
|
|
19
|
+
- Legacy `TABLE_READ` refusals name the paths the dispatcher allows (customer tables behind the SE16 check) and the personal-data refusal.
|
|
20
|
+
- `ActivateObjects` and ADT write errors return the error body detail.
|
|
21
|
+
|
|
22
|
+
## [4.14.0] - 2026-11-17
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
- **`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.
|
|
26
|
+
- **`CreateAdobeFormFromSmartForm`**: optional `correction_file` (a layout correction spec, size-capped) and `strict`. The result reports every op as applied / not_found / ambiguous / refused. Ops:
|
|
27
|
+
- layout, geometry, margin, font, para, xhtml, picture, border, presence (needs a basis);
|
|
28
|
+
- `datePicture`: replaces exactly one `$.format.picture = DateFmt(n, $.locale)` in a field's initialize script with a checked `date{…}` literal;
|
|
29
|
+
- `bind` (`dataRef` with a `$record` path, `[0]` / `[*]` only, or `none`; needs a basis);
|
|
30
|
+
- `embedLead`: one blank before the value of right- / center-aligned paragraphs that hold embedded values only (ADS aligns them only then);
|
|
31
|
+
- 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).
|
|
32
|
+
These need the matching `ZMCP_FP_MIGRATE` helper (sc4sap `abap/`).
|
|
33
|
+
- **`GetStandardText`** (read-only, DEV systems only): a SAPscript standard text (object TEXT) with its lines; refused on QA / PRD.
|
|
34
|
+
- **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.
|
|
35
|
+
- **`RunUnitTest`** runs program and function-group containers on S/4HANA (synchronous ADT call, result inline); a batch with any PROG / FUGR runs fully synchronous.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
- **`GetSmartFormContent`**:
|
|
39
|
+
- 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`;
|
|
40
|
+
- NEWPAGE command nodes keep their target page (`PAGENAME`).
|
|
41
|
+
- **`UpdateInclude`** writes function-group includes through the group's own path (`function_group`, or a `SAPL<fg>` main program).
|
|
42
|
+
- **`RunUnitTest` / `GetUnitTestResult`** report `methods: 0` and a warning when no test method ran.
|
|
43
|
+
- **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.
|
|
44
|
+
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.
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
- 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.
|
|
48
|
+
- 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.
|
|
49
|
+
|
|
7
50
|
## [4.13.0] - 2026-11-17
|
|
8
51
|
|
|
9
52
|
### Added
|
|
@@ -252,7 +295,7 @@
|
|
|
252
295
|
## [4.8.4] - 2026-04-29
|
|
253
296
|
|
|
254
297
|
### Added
|
|
255
|
-
- ECC 7.40 DDIC **read** fallback via OData RFC. 4 handlers (`GetTable / GetStructure / GetDataElement / GetDomain`) activate on `SAP_VERSION=ECC`, routing DDIC reads through server-side FMs (`ZMCP_ADT_DDIC_TABL_READ / _DTEL_READ / _DOMA_READ`) invoked via OData FunctionImports on `ZMCP_ADT_SRV`. `TABL_READ` covers both Table and Structure (TABL/STRU share TABL DDIC category). Validated 2026-04-29 on
|
|
298
|
+
- ECC 7.40 DDIC **read** fallback via OData RFC. 4 handlers (`GetTable / GetStructure / GetDataElement / GetDomain`) activate on `SAP_VERSION=ECC`, routing DDIC reads through server-side FMs (`ZMCP_ADT_DDIC_TABL_READ / _DTEL_READ / _DOMA_READ`) invoked via OData FunctionImports on `ZMCP_ADT_SRV`. `TABL_READ` covers both Table and Structure (TABL/STRU share TABL DDIC category). Validated 2026-04-29 on an ECC 7.40 development system (path=ecc-odata-rfc).
|
|
256
299
|
- `GetBadiImplementations` — new read-only handler to find Z/Y implementations of classic BAdI definitions. ECC-only: routes through `ZMCP_ADT_DDIC_BADI` bridge FM (SXS_ATTR-based lookup). Returns `kind=classic` with implementation list (`impl_name`, `impl_class`, `package`, `methods_redefined`) or `kind=unknown` for kernel BAdIs / non-existent definitions. Use during symptom analysis when a standard BAdI is implicated.
|
|
257
300
|
- `lib/odataRfc.ts`: 4 new adapters (`callDdicTablRead / DdicDtelRead / DdicDomaRead / DdicBadi`) + `DdicReadResult` / `DdicBadiResult` types.
|
|
258
301
|
- `lib/rfcBackend.ts`: 4 new wrappers + informative error for non-odata backends.
|
|
@@ -11,7 +11,7 @@ import type { HandlerContext } from '../../../lib/handlers/interfaces';
|
|
|
11
11
|
export declare const TOOL_DEFINITION: {
|
|
12
12
|
readonly name: "CreateAdobeFormFromSmartForm";
|
|
13
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). Needs the ZMCP_FP_MIGRATE FM and the FP_MIGRATE dispatcher action.";
|
|
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
15
|
readonly inputSchema: {
|
|
16
16
|
readonly type: "object";
|
|
17
17
|
readonly properties: {
|
|
@@ -31,6 +31,14 @@ export declare const TOOL_DEFINITION: {
|
|
|
31
31
|
readonly type: "string";
|
|
32
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
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
|
+
};
|
|
34
42
|
};
|
|
35
43
|
readonly required: readonly ["source", "form_name", "interface_name"];
|
|
36
44
|
};
|
|
@@ -40,6 +48,8 @@ export declare function handleCreateAdobeFormFromSmartForm(context: HandlerConte
|
|
|
40
48
|
form_name: string;
|
|
41
49
|
interface_name: string;
|
|
42
50
|
sender_country?: string;
|
|
51
|
+
correction_file?: string;
|
|
52
|
+
strict?: boolean;
|
|
43
53
|
}): Promise<{
|
|
44
54
|
isError: boolean;
|
|
45
55
|
content: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleCreateAdobeFormFromSmartForm.d.ts","sourceRoot":"","sources":["../../../../src/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
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"}
|
|
@@ -13,10 +13,11 @@ exports.TOOL_DEFINITION = void 0;
|
|
|
13
13
|
exports.handleCreateAdobeFormFromSmartForm = handleCreateAdobeFormFromSmartForm;
|
|
14
14
|
const adobeForm_1 = require("../../../lib/adobeForm");
|
|
15
15
|
const utils_1 = require("../../../lib/utils");
|
|
16
|
+
const valuesFile_1 = require("../../../lib/valuesFile");
|
|
16
17
|
exports.TOOL_DEFINITION = {
|
|
17
18
|
name: 'CreateAdobeFormFromSmartForm',
|
|
18
19
|
available_in: ['onprem', 'legacy'],
|
|
19
|
-
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). Needs the ZMCP_FP_MIGRATE FM and the FP_MIGRATE dispatcher action.",
|
|
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.",
|
|
20
21
|
inputSchema: {
|
|
21
22
|
type: 'object',
|
|
22
23
|
properties: {
|
|
@@ -36,6 +37,14 @@ exports.TOOL_DEFINITION = {
|
|
|
36
37
|
type: 'string',
|
|
37
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.',
|
|
38
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
|
+
},
|
|
39
48
|
},
|
|
40
49
|
required: ['source', 'form_name', 'interface_name'],
|
|
41
50
|
},
|
|
@@ -44,7 +53,21 @@ async function handleCreateAdobeFormFromSmartForm(context, args) {
|
|
|
44
53
|
const { connection, logger } = context;
|
|
45
54
|
try {
|
|
46
55
|
logger?.info(`CreateAdobeFormFromSmartForm: ${args?.source} → ${args?.form_name}`);
|
|
47
|
-
|
|
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);
|
|
48
71
|
return (0, utils_1.return_response)({
|
|
49
72
|
data: JSON.stringify(result, null, 2),
|
|
50
73
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleCreateAdobeFormFromSmartForm.js","sourceRoot":"","sources":["../../../../src/handlers/adobeform/high/handleCreateAdobeFormFromSmartForm.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;
|
|
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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BAAe,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,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeleteAdobeForm — delete a local Z/Y Adobe form (SFPF, with its layout and
|
|
3
|
+
* generated function module) or form interface (SFPI). Dry run unless
|
|
4
|
+
* `confirm` is true.
|
|
5
|
+
*
|
|
6
|
+
* SAP side: ZMCP_ADT_DISPATCH action FP_DELETE → FM ZMCP_FP_DELETE.
|
|
7
|
+
* Only objects in package $TMP are deleted (SAP removes the TADIR entry only
|
|
8
|
+
* for $TMP; other packages are refused — use SFP). An interface a form still
|
|
9
|
+
* uses is refused with the list of forms; a form delete keeps its interface.
|
|
10
|
+
* Development clients only.
|
|
11
|
+
* Companion ABAP source: sc4sap/abap/zmcp_fp_delete.abap
|
|
12
|
+
*/
|
|
13
|
+
import type { HandlerContext } from '../../../lib/handlers/interfaces';
|
|
14
|
+
export declare const FP_DELETE_INSTALL_HINT: string;
|
|
15
|
+
export declare const TOOL_DEFINITION: {
|
|
16
|
+
readonly name: "DeleteAdobeForm";
|
|
17
|
+
readonly available_in: readonly ["onprem", "legacy"];
|
|
18
|
+
readonly description: "[writes, destructive] Delete a Z/Y Adobe form (with its layout and generated function module) or form interface of package $TMP. Without confirm: true only reports what would be deleted (dry run). Objects of any other package are refused; an interface still used by a form is refused with the forms listed; a form delete keeps its interface (delete it afterwards with kind INTERFACE). Development clients only. Needs the ZMCP_FP_DELETE FM and the FP_DELETE dispatcher action.";
|
|
19
|
+
readonly inputSchema: {
|
|
20
|
+
readonly type: "object";
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly name: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly description: "Form or interface name, Z* or Y* (letters, digits, _ and /, at most 30 characters).";
|
|
25
|
+
};
|
|
26
|
+
readonly kind: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
readonly enum: readonly ["FORM", "INTERFACE"];
|
|
29
|
+
readonly description: "FORM (SFPF) or INTERFACE (SFPI).";
|
|
30
|
+
};
|
|
31
|
+
readonly confirm: {
|
|
32
|
+
readonly type: "boolean";
|
|
33
|
+
readonly description: "true = really delete. Default false (dry run).";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly required: readonly ["name", "kind"];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare function handleDeleteAdobeForm(context: HandlerContext, args: {
|
|
40
|
+
name: string;
|
|
41
|
+
kind: string;
|
|
42
|
+
confirm?: boolean;
|
|
43
|
+
}): Promise<{
|
|
44
|
+
isError: boolean;
|
|
45
|
+
content: {
|
|
46
|
+
type: string;
|
|
47
|
+
text: any;
|
|
48
|
+
}[];
|
|
49
|
+
}>;
|
|
50
|
+
//# sourceMappingURL=handleDeleteAdobeForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleDeleteAdobeForm.d.ts","sourceRoot":"","sources":["../../../../src/handlers/adobeform/high/handleDeleteAdobeForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAQvE,eAAO,MAAM,sBAAsB,QAGwC,CAAC;AAE5E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;CAyBlB,CAAC;AAIX,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE;;;;;;GAoDxD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* DeleteAdobeForm — delete a local Z/Y Adobe form (SFPF, with its layout and
|
|
4
|
+
* generated function module) or form interface (SFPI). Dry run unless
|
|
5
|
+
* `confirm` is true.
|
|
6
|
+
*
|
|
7
|
+
* SAP side: ZMCP_ADT_DISPATCH action FP_DELETE → FM ZMCP_FP_DELETE.
|
|
8
|
+
* Only objects in package $TMP are deleted (SAP removes the TADIR entry only
|
|
9
|
+
* for $TMP; other packages are refused — use SFP). An interface a form still
|
|
10
|
+
* uses is refused with the list of forms; a form delete keeps its interface.
|
|
11
|
+
* Development clients only.
|
|
12
|
+
* Companion ABAP source: sc4sap/abap/zmcp_fp_delete.abap
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.TOOL_DEFINITION = exports.FP_DELETE_INSTALL_HINT = void 0;
|
|
16
|
+
exports.handleDeleteAdobeForm = handleDeleteAdobeForm;
|
|
17
|
+
const rfcBackend_1 = require("../../../lib/rfcBackend");
|
|
18
|
+
const utils_1 = require("../../../lib/utils");
|
|
19
|
+
exports.FP_DELETE_INSTALL_HINT = 'The SAP side of DeleteAdobeForm is not installed on this system: it needs FM ZMCP_FP_DELETE ' +
|
|
20
|
+
'(function group ZMCP_FP) and the FP_DELETE branch in ZMCP_ADT_DISPATCH. ' +
|
|
21
|
+
'Sources and install steps: sc4sap/abap/README.md (zmcp_fp_delete.abap).';
|
|
22
|
+
exports.TOOL_DEFINITION = {
|
|
23
|
+
name: 'DeleteAdobeForm',
|
|
24
|
+
available_in: ['onprem', 'legacy'],
|
|
25
|
+
description: '[writes, destructive] Delete a Z/Y Adobe form (with its layout and generated function module) or form interface of package $TMP. Without confirm: true only reports what would be deleted (dry run). Objects of any other package are refused; an interface still used by a form is refused with the forms listed; a form delete keeps its interface (delete it afterwards with kind INTERFACE). Development clients only. Needs the ZMCP_FP_DELETE FM and the FP_DELETE dispatcher action.',
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {
|
|
29
|
+
name: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Form or interface name, Z* or Y* (letters, digits, _ and /, at most 30 characters).',
|
|
32
|
+
},
|
|
33
|
+
kind: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
enum: ['FORM', 'INTERFACE'],
|
|
36
|
+
description: 'FORM (SFPF) or INTERFACE (SFPI).',
|
|
37
|
+
},
|
|
38
|
+
confirm: {
|
|
39
|
+
type: 'boolean',
|
|
40
|
+
description: 'true = really delete. Default false (dry run).',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
required: ['name', 'kind'],
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
const NAME_RE = /^[ZY][A-Z0-9_/]{0,29}$/;
|
|
47
|
+
async function handleDeleteAdobeForm(context, args) {
|
|
48
|
+
const { connection, logger } = context;
|
|
49
|
+
try {
|
|
50
|
+
const name = String(args?.name ?? '')
|
|
51
|
+
.trim()
|
|
52
|
+
.toUpperCase();
|
|
53
|
+
if (!NAME_RE.test(name))
|
|
54
|
+
return (0, utils_1.return_error)(new Error('name must start with Z or Y and use only letters, digits, _ and / (at most 30 characters)'));
|
|
55
|
+
const kind = String(args?.kind ?? '')
|
|
56
|
+
.trim()
|
|
57
|
+
.toUpperCase();
|
|
58
|
+
if (kind !== 'FORM' && kind !== 'INTERFACE')
|
|
59
|
+
return (0, utils_1.return_error)(new Error('kind must be FORM or INTERFACE'));
|
|
60
|
+
const confirm = args?.confirm === true;
|
|
61
|
+
logger?.info(`DeleteAdobeForm: ${kind} ${name} (confirm=${confirm})`);
|
|
62
|
+
let resp;
|
|
63
|
+
try {
|
|
64
|
+
resp = await (0, rfcBackend_1.callDispatch)(connection, 'FP_DELETE', {
|
|
65
|
+
name,
|
|
66
|
+
kind,
|
|
67
|
+
confirm: confirm ? 'X' : '',
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
72
|
+
if (/Unknown action:\s*FP_DELETE/i.test(msg) ||
|
|
73
|
+
/ZMCP_FP_DELETE[\s\S]*not found/i.test(msg))
|
|
74
|
+
throw new Error(`${exports.FP_DELETE_INSTALL_HINT} (SAP said: ${msg})`);
|
|
75
|
+
throw error;
|
|
76
|
+
}
|
|
77
|
+
const { result, message } = resp ?? {};
|
|
78
|
+
return (0, utils_1.return_response)({
|
|
79
|
+
data: JSON.stringify({
|
|
80
|
+
...(typeof result === 'object' && result !== null ? result : {}),
|
|
81
|
+
message: message || undefined,
|
|
82
|
+
}, null, 2),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
87
|
+
logger?.error(`DeleteAdobeForm error: ${errorMessage}`);
|
|
88
|
+
return (0, utils_1.return_error)(new Error(errorMessage));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=handleDeleteAdobeForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleDeleteAdobeForm.js","sourceRoot":"","sources":["../../../../src/handlers/adobeform/high/handleDeleteAdobeForm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AA4CH,sDAsDC;AA/FD,wDAAuD;AACvD,8CAI4B;AAEf,QAAA,sBAAsB,GACjC,8FAA8F;IAC9F,0EAA0E;IAC1E,yEAAyE,CAAC;AAE/D,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,iBAAiB;IACvB,YAAY,EAAE,CAAC,QAAQ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AY,EAAC,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleActivateObjects.d.ts","sourceRoot":"","sources":["../../../../src/handlers/common/high/handleActivateObjects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"handleActivateObjects.d.ts","sourceRoot":"","sources":["../../../../src/handlers/common/high/handleActivateObjects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAWvE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDlB,CAAC;AAEX,UAAU,mBAAmB;IAC3B,OAAO,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,mBAAmB;;;;;;GA6E1B"}
|
|
@@ -116,7 +116,10 @@ async function handleActivateObjects(context, args) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
catch (error) {
|
|
119
|
-
|
|
119
|
+
// Keep SAP's response body: a bare "status code 500/403" hides why
|
|
120
|
+
// activation failed (e.g. object locked by another session).
|
|
121
|
+
const status = error?.response?.status;
|
|
122
|
+
const message = `${status ? `[${status}] ` : ''}${(0, utils_1.extractAdtErrorMessage)(error, error?.message || String(error))}`;
|
|
120
123
|
logger?.error(`ActivateObjects failed: ${message}`);
|
|
121
124
|
return (0, utils_1.return_error)(new Error(`ActivateObjects failed: ${message}`));
|
|
122
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleActivateObjects.js","sourceRoot":"","sources":["../../../../src/handlers/common/high/handleActivateObjects.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;
|
|
1
|
+
{"version":3,"file":"handleActivateObjects.js","sourceRoot":"","sources":["../../../../src/handlers/common/high/handleActivateObjects.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AA6EH,sDA+EC;AAzJD,4EAG2C;AAC3C,8CAI4B;AAEf,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,iBAAiB;IACvB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU;IACpD,WAAW,EACT,0WAA0W;IAC5W,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,CAAC;gBACX,WAAW,EACT,mHAAmH;gBACrH,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;4BACd,WAAW,EAAE,mCAAmC;yBACjD;wBACD,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,oHAAoH;yBACvH;wBACD,GAAG,EAAE;4BACH,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,uEAAuE;yBAC1E;wBACD,WAAW,EAAE;4BACX,IAAI,EAAE,QAAQ;4BACd,WAAW,EACT,0FAA0F;yBAC7F;qBACF;oBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;iBACnB;aACF;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,oDAAoD;aAClE;YACD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,mEAAmE;QACnE,6DAA6D;QAC7D,MAAM,MAAM,GAAG,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;QACvC,MAAM,OAAO,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,IAAA,8BAAsB,EACtE,KAAK,EACL,KAAK,EAAE,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,CAChC,EAAE,CAAC;QACJ,MAAM,EAAE,KAAK,CAAC,2BAA2B,OAAO,EAAE,CAAC,CAAC;QACpD,OAAO,IAAA,oBAAY,EAAC,IAAI,KAAK,CAAC,2BAA2B,OAAO,EAAE,CAAC,CAAC,CAAC;IACvE,CAAC;AACH,CAAC"}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* Workflow: lock -> update source -> unlock -> (activate)
|
|
7
7
|
*/
|
|
8
8
|
import type { HandlerContext } from '../../../lib/handlers/interfaces';
|
|
9
|
+
/** Failed-activation advice; source_patches drops it after a successful undo (sourcePatchInput.withUndoNote). */
|
|
10
|
+
export declare const INCLUDE_STAGED_ADVICE = "Active version on SAP is unchanged; broken source is staged as inactive and must be replaced via a second UpdateInclude call.";
|
|
9
11
|
export declare const TOOL_DEFINITION: {
|
|
10
12
|
readonly name: "UpdateInclude";
|
|
11
13
|
readonly available_in: readonly ["onprem", "legacy"];
|
|
@@ -25,6 +27,10 @@ export declare const TOOL_DEFINITION: {
|
|
|
25
27
|
readonly type: "string";
|
|
26
28
|
readonly description: "Name of the parent/master program that contains this include. When provided, a program-wide syntax check is run after the source is uploaded to catch ABAP errors in the new include code. Highly recommended.";
|
|
27
29
|
};
|
|
30
|
+
readonly function_group: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly description: "Function group that owns the include (e.g. ZMM_FG for LZMM_FGTOP). Needed for function-group includes; taken from main_program when that is SAPL<group>.";
|
|
33
|
+
};
|
|
28
34
|
readonly transport_request: {
|
|
29
35
|
readonly type: "string";
|
|
30
36
|
readonly description: "Transport request number. Required for transportable packages.";
|
|
@@ -37,6 +43,11 @@ export declare const TOOL_DEFINITION: {
|
|
|
37
43
|
readonly required: readonly ["include_name", "source_code"];
|
|
38
44
|
};
|
|
39
45
|
};
|
|
46
|
+
/** The function group of a function-group include: explicit, or from main_program SAPL<group>. */
|
|
47
|
+
export declare function functionGroupOf(args: {
|
|
48
|
+
function_group?: string;
|
|
49
|
+
main_program?: string;
|
|
50
|
+
}): string | null;
|
|
40
51
|
export declare function handleUpdateInclude(context: HandlerContext, params: any): Promise<{
|
|
41
52
|
isError: boolean;
|
|
42
53
|
content: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleUpdateInclude.d.ts","sourceRoot":"","sources":["../../../../src/handlers/include/high/handleUpdateInclude.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"handleUpdateInclude.d.ts","sourceRoot":"","sources":["../../../../src/handlers/include/high/handleUpdateInclude.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAevE,iHAAiH;AACjH,eAAO,MAAM,qBAAqB,kIAC+F,CAAC;AAKlI,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyClB,CAAC;AAWX,kGAAkG;AAClG,wBAAgB,eAAe,CAAC,IAAI,EAAE;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,MAAM,GAAG,IAAI,CAOhB;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,GAAG;;;;;;GA4WZ"}
|
|
@@ -7,11 +7,14 @@
|
|
|
7
7
|
* Workflow: lock -> update source -> unlock -> (activate)
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.TOOL_DEFINITION = void 0;
|
|
10
|
+
exports.TOOL_DEFINITION = exports.INCLUDE_STAGED_ADVICE = void 0;
|
|
11
|
+
exports.functionGroupOf = functionGroupOf;
|
|
11
12
|
exports.handleUpdateInclude = handleUpdateInclude;
|
|
12
13
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
13
14
|
const preCheckBeforeActivation_1 = require("../../../lib/preCheckBeforeActivation");
|
|
14
15
|
const utils_1 = require("../../../lib/utils");
|
|
16
|
+
/** Failed-activation advice; source_patches drops it after a successful undo (sourcePatchInput.withUndoNote). */
|
|
17
|
+
exports.INCLUDE_STAGED_ADVICE = 'Active version on SAP is unchanged; broken source is staged as inactive and must be replaced via a second UpdateInclude call.';
|
|
15
18
|
const ACCEPT_LOCK = 'application/vnd.sap.as+xml;charset=UTF-8;dataname=com.sap.adt.lock.result;q=0.8, application/vnd.sap.as+xml;charset=UTF-8;dataname=com.sap.adt.lock.result2;q=0.9';
|
|
16
19
|
exports.TOOL_DEFINITION = {
|
|
17
20
|
name: 'UpdateInclude',
|
|
@@ -32,6 +35,10 @@ exports.TOOL_DEFINITION = {
|
|
|
32
35
|
type: 'string',
|
|
33
36
|
description: 'Name of the parent/master program that contains this include. When provided, a program-wide syntax check is run after the source is uploaded to catch ABAP errors in the new include code. Highly recommended.',
|
|
34
37
|
},
|
|
38
|
+
function_group: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
description: 'Function group that owns the include (e.g. ZMM_FG for LZMM_FGTOP). Needed for function-group includes; taken from main_program when that is SAPL<group>.',
|
|
41
|
+
},
|
|
35
42
|
transport_request: {
|
|
36
43
|
type: 'string',
|
|
37
44
|
description: 'Transport request number. Required for transportable packages.',
|
|
@@ -44,6 +51,16 @@ exports.TOOL_DEFINITION = {
|
|
|
44
51
|
required: ['include_name', 'source_code'],
|
|
45
52
|
},
|
|
46
53
|
};
|
|
54
|
+
/** The function group of a function-group include: explicit, or from main_program SAPL<group>. */
|
|
55
|
+
function functionGroupOf(args) {
|
|
56
|
+
const explicit = String(args.function_group ?? '').trim();
|
|
57
|
+
if (explicit)
|
|
58
|
+
return explicit.toUpperCase();
|
|
59
|
+
const main = String(args.main_program ?? '')
|
|
60
|
+
.trim()
|
|
61
|
+
.toUpperCase();
|
|
62
|
+
return main.startsWith('SAPL') && main.length > 4 ? main.slice(4) : null;
|
|
63
|
+
}
|
|
47
64
|
async function handleUpdateInclude(context, params) {
|
|
48
65
|
const { connection, logger } = context;
|
|
49
66
|
const args = params;
|
|
@@ -55,7 +72,12 @@ async function handleUpdateInclude(context, params) {
|
|
|
55
72
|
}
|
|
56
73
|
const includeName = args.include_name.toUpperCase();
|
|
57
74
|
const encodedName = (0, utils_1.encodeSapObjectName)(includeName);
|
|
58
|
-
|
|
75
|
+
// A function-group include lives under its group (/functions/groups/<fg>/includes/<inc>);
|
|
76
|
+
// locking it through /programs/includes fails ("This syntax cannot be used for an object name").
|
|
77
|
+
const functionGroup = functionGroupOf(args);
|
|
78
|
+
const baseUrl = functionGroup
|
|
79
|
+
? `/sap/bc/adt/functions/groups/${(0, utils_1.encodeSapObjectName)(functionGroup).toLowerCase()}/includes/${encodedName.toLowerCase()}`
|
|
80
|
+
: `/sap/bc/adt/programs/includes/${encodedName}`;
|
|
59
81
|
const shouldActivate = args.activate === true;
|
|
60
82
|
logger?.info(`Starting include source update: ${includeName} (activate=${shouldActivate})`);
|
|
61
83
|
let lockHandle;
|
|
@@ -68,7 +90,8 @@ async function handleUpdateInclude(context, params) {
|
|
|
68
90
|
// in a single SAP call and returns ALL errors it can detect (with
|
|
69
91
|
// line numbers), without writing anything to the server. Only fires
|
|
70
92
|
// when main_program is provided.
|
|
71
|
-
|
|
93
|
+
// (function-group includes: activation below is the check)
|
|
94
|
+
if (args.main_program && !functionGroup) {
|
|
72
95
|
currentStep = 'check_new_code';
|
|
73
96
|
const mainProgram = args.main_program.toUpperCase();
|
|
74
97
|
const programUri = `/sap/bc/adt/programs/programs/${(0, utils_1.encodeSapObjectName)(mainProgram).toLowerCase()}`;
|
|
@@ -227,7 +250,7 @@ async function handleUpdateInclude(context, params) {
|
|
|
227
250
|
const full = activationErrors
|
|
228
251
|
.map((e) => `${e.line ? `[L${e.line}] ` : ''}${e.text}`)
|
|
229
252
|
.join(' | ');
|
|
230
|
-
const err = new Error(`Include ${includeName} activation failed (${activationErrors.length} error${activationErrors.length === 1 ? '' : 's'}): ${full}.
|
|
253
|
+
const err = new Error(`Include ${includeName} activation failed (${activationErrors.length} error${activationErrors.length === 1 ? '' : 's'}): ${full}. ${exports.INCLUDE_STAGED_ADVICE}`);
|
|
231
254
|
err.isPreCheckFailure = true;
|
|
232
255
|
err.checkErrors = activationErrors;
|
|
233
256
|
err.checkWarnings = activationWarnings;
|
|
@@ -278,23 +301,9 @@ async function handleUpdateInclude(context, params) {
|
|
|
278
301
|
logger?.warn(`Failed to unlock include after error: ${unlockErr instanceof Error ? unlockErr.message : String(unlockErr)}`);
|
|
279
302
|
}
|
|
280
303
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
ignoreAttributes: false,
|
|
285
|
-
attributeNamePrefix: '@_',
|
|
286
|
-
});
|
|
287
|
-
const errorData = error?.response?.data
|
|
288
|
-
? parser.parse(error.response.data)
|
|
289
|
-
: null;
|
|
290
|
-
const errorMsg = errorData?.['exc:exception']?.message?.['#text'] ||
|
|
291
|
-
errorData?.['exc:exception']?.message;
|
|
292
|
-
if (errorMsg)
|
|
293
|
-
errorMessage = `SAP Error: ${errorMsg}`;
|
|
294
|
-
}
|
|
295
|
-
catch {
|
|
296
|
-
// ignore parse errors
|
|
297
|
-
}
|
|
304
|
+
// exc:exception text when present, else the raw SAP response body
|
|
305
|
+
// (e.g. a checkrun 400 that carries no exc:exception), else error.message.
|
|
306
|
+
const errorMessage = (0, utils_1.extractAdtErrorMessage)(error, error instanceof Error ? error.message : String(error));
|
|
298
307
|
const statusCode = error.response?.status;
|
|
299
308
|
const statusPart = statusCode ? ` [${statusCode}]` : '';
|
|
300
309
|
logger?.error(`Error updating include ${includeName} at step=${currentStep}${statusPart}: ${errorMessage}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleUpdateInclude.js","sourceRoot":"","sources":["../../../../src/handlers/include/high/handleUpdateInclude.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAkEH,kDAkXC;AAlbD,qDAA4C;AAE5C,oFAG+C;AAC/C,8CAO4B;AAE5B,MAAM,WAAW,GACf,mKAAmK,CAAC;AAEzJ,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAU;IAC3C,WAAW,EACT,6NAA6N;IAC/N,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oEAAoE;aACvE;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,+HAA+H;aAClI;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gNAAgN;aACnN;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gEAAgE;aACnE;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,4FAA4F;aAC/F;SACF;QACD,QAAQ,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC;KAC1C;CACO,CAAC;AAUJ,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,MAAW;IAEX,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACvC,MAAM,IAAI,GAAsB,MAAM,CAAC;IAEvC,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QAC5C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,CAAC;QAEF,gEAAgE;QAChE,IAAI,KAAK,EAAE,iBAAiB,EAAE,CAAC;YAC7B,MAAM,cAAc,GAAQ,IAAI,KAAK,CACnC,4BAA4B,WAAW,YAAY,WAAW,KAAK,YAAY,EAAE,CAClF,CAAC;YACF,cAAc,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;YAC/C,cAAc,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;YACnD,OAAO,IAAA,oBAAY,EAAC,cAAc,CAAC,CAAC;QACtC,CAAC;QAED,OAAO,IAAA,oBAAY,EACjB,IAAI,KAAK,CACP,4BAA4B,WAAW,YAAY,WAAW,GAAG,UAAU,KAAK,YAAY,EAAE,CAC/F,CACF,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -7,15 +7,18 @@
|
|
|
7
7
|
* cancelled inside the window. Dialog runs (SE38/SA38) do not count. No user
|
|
8
8
|
* names leave SAP — the FM returns one boolean per program.
|
|
9
9
|
*
|
|
10
|
-
* Backend: ECC
|
|
10
|
+
* Backend: ECC — OData FunctionImport `WlJobUsage` on ZMCP_ADT_SRV (or NCo
|
|
11
|
+
* FM_PROXY). S/4HANA — the same FM through ZMCP_ADT_DISPATCH action FM_PROXY
|
|
12
|
+
* (lib/wlUsageS4.ts).
|
|
11
13
|
*
|
|
12
|
-
* Companion ABAP
|
|
14
|
+
* Companion ABAP sources: sc4sap/abap/zmcp_wl_job_usage_ecc.abap (ECC),
|
|
15
|
+
* sc4sap/abap/zmcp_wl_job_usage_s4.abap (S/4HANA)
|
|
13
16
|
*/
|
|
14
17
|
import type { HandlerContext } from '../../../lib/handlers/interfaces';
|
|
15
18
|
export declare const TOOL_DEFINITION: {
|
|
16
19
|
readonly name: "GetJobUsage";
|
|
17
20
|
readonly available_in: readonly ["onprem", "legacy"];
|
|
18
|
-
readonly description: "[read-only] Check whether programs are used as background job steps (SM37 jobs, TBTCO/TBTCP): true when the program is a step of a job that is scheduled now (released/ready/active, incl. periodic) or that finished/was cancelled in the last N months. SE38/SA38 dialog runs do not count. `oldest` = start date of the oldest finished job still kept; job reorganization deletes older ones, so when `complete` is false a false means \"no job since <oldest>\". No user names are returned.
|
|
21
|
+
readonly description: "[read-only] Check whether programs are used as background job steps (SM37 jobs, TBTCO/TBTCP): true when the program is a step of a job that is scheduled now (released/ready/active, incl. periodic) or that finished/was cancelled in the last N months. SE38/SA38 dialog runs do not count. `oldest` = start date of the oldest finished job still kept; job reorganization deletes older ones, so when `complete` is false a false means \"no job since <oldest>\". No user names are returned. Reads ZMCP_WL_JOB_USAGE: ECC through the OData / NCo bridge, S/4HANA through the ZMCP_ADT_DISPATCH FM_PROXY action.";
|
|
19
22
|
readonly inputSchema: {
|
|
20
23
|
readonly type: "object";
|
|
21
24
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleGetJobUsage.d.ts","sourceRoot":"","sources":["../../../../src/handlers/system/readonly/handleGetJobUsage.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"handleGetJobUsage.d.ts","sourceRoot":"","sources":["../../../../src/handlers/system/readonly/handleGetJobUsage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAavE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;CAsBlB,CAAC;AAUX,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;GAgD9C"}
|