@babamba2/abap-mcp-adt-powerup 4.8.1 → 4.8.2
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/dist/handlers/transport/readonly/handleGetTransport.d.ts +22 -11
- package/dist/handlers/transport/readonly/handleGetTransport.d.ts.map +1 -1
- package/dist/handlers/transport/readonly/handleGetTransport.js +159 -65
- package/dist/handlers/transport/readonly/handleGetTransport.js.map +1 -1
- package/dist/handlers/transport/readonly/handleListTransports.d.ts.map +1 -1
- package/dist/handlers/transport/readonly/handleListTransports.js +40 -4
- package/dist/handlers/transport/readonly/handleListTransports.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GetTransport Handler - Retrieve ABAP transport request information via ADT API
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* - Transport metadata (number, description, type, status)
|
|
6
|
-
* - Owner and target system information
|
|
7
|
-
* - Included objects and tasks
|
|
8
|
-
* - Change history
|
|
4
|
+
* ADT exposes TWO transport endpoints with different semantics per backend:
|
|
9
5
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
6
|
+
* 1. Path-based single-TR read: GET /sap/bc/adt/cts/transportrequests/<NUMBER>
|
|
7
|
+
* Accept: application/vnd.sap.adt.transportorganizer.v1+xml
|
|
8
|
+
* S/4HANA: returns the TR natively ({tm:root adtcore:name=<NUMBER> > tm:request}).
|
|
9
|
+
* ECC: path segment is effectively ignored — response is a user-scoped LIST
|
|
10
|
+
* ({tm:root adtcore:name=<USER> > tm:workbench > tm:modifiable > tm:request[]}).
|
|
11
|
+
*
|
|
12
|
+
* 2. List-by-user: GET /sap/bc/adt/cts/transportrequests?user=<OWNER>
|
|
13
|
+
* Accept: application/vnd.sap.adt.transportorganizertree.v1+xml
|
|
14
|
+
* Both: list scoped to the owning user.
|
|
15
|
+
*
|
|
16
|
+
* Strategy: path URL first (native on S/4, acceptable fallback on ECC). If the TR is
|
|
17
|
+
* not found in the path response AND `owner` was supplied, retry with the list URL
|
|
18
|
+
* (handles cross-user queries, especially on ECC where the path URL only reveals the
|
|
19
|
+
* session user's list).
|
|
15
20
|
*/
|
|
16
21
|
import type { HandlerContext } from '../../../lib/handlers/interfaces';
|
|
17
22
|
export declare const TOOL_DEFINITION: {
|
|
@@ -25,6 +30,10 @@ export declare const TOOL_DEFINITION: {
|
|
|
25
30
|
readonly type: "string";
|
|
26
31
|
readonly description: "Transport request number (e.g., E19K905635, DEVK905123)";
|
|
27
32
|
};
|
|
33
|
+
readonly owner: {
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
readonly description: "SAP user who owns the transport. On ECC the session-user-scoped path endpoint silently filters out other users' TRs — pass `owner` to retry via the list endpoint. On S/4 usually unnecessary, but provide it if the path read is rejected by authorization.";
|
|
36
|
+
};
|
|
28
37
|
readonly include_objects: {
|
|
29
38
|
readonly type: "boolean";
|
|
30
39
|
readonly description: "Include list of objects in transport (default: true)";
|
|
@@ -41,11 +50,13 @@ export declare const TOOL_DEFINITION: {
|
|
|
41
50
|
};
|
|
42
51
|
interface GetTransportArgs {
|
|
43
52
|
transport_number: string;
|
|
53
|
+
owner?: string;
|
|
44
54
|
include_objects?: boolean;
|
|
45
55
|
include_tasks?: boolean;
|
|
46
56
|
}
|
|
47
57
|
/**
|
|
48
|
-
* Main handler for GetTransport MCP tool
|
|
58
|
+
* Main handler for GetTransport MCP tool.
|
|
59
|
+
* Strategy: path-based read first, list-by-user fallback when owner is supplied.
|
|
49
60
|
*/
|
|
50
61
|
export declare function handleGetTransport(context: HandlerContext, args: GetTransportArgs): Promise<{
|
|
51
62
|
isError: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleGetTransport.d.ts","sourceRoot":"","sources":["../../../../src/handlers/transport/readonly/handleGetTransport.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"handleGetTransport.d.ts","sourceRoot":"","sources":["../../../../src/handlers/transport/readonly/handleGetTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAavE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BlB,CAAC;AAEX,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAkLD;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,gBAAgB;;;;;;GAgGvB"}
|
|
@@ -2,23 +2,30 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* GetTransport Handler - Retrieve ABAP transport request information via ADT API
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* - Transport metadata (number, description, type, status)
|
|
7
|
-
* - Owner and target system information
|
|
8
|
-
* - Included objects and tasks
|
|
9
|
-
* - Change history
|
|
5
|
+
* ADT exposes TWO transport endpoints with different semantics per backend:
|
|
10
6
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
7
|
+
* 1. Path-based single-TR read: GET /sap/bc/adt/cts/transportrequests/<NUMBER>
|
|
8
|
+
* Accept: application/vnd.sap.adt.transportorganizer.v1+xml
|
|
9
|
+
* S/4HANA: returns the TR natively ({tm:root adtcore:name=<NUMBER> > tm:request}).
|
|
10
|
+
* ECC: path segment is effectively ignored — response is a user-scoped LIST
|
|
11
|
+
* ({tm:root adtcore:name=<USER> > tm:workbench > tm:modifiable > tm:request[]}).
|
|
12
|
+
*
|
|
13
|
+
* 2. List-by-user: GET /sap/bc/adt/cts/transportrequests?user=<OWNER>
|
|
14
|
+
* Accept: application/vnd.sap.adt.transportorganizertree.v1+xml
|
|
15
|
+
* Both: list scoped to the owning user.
|
|
16
|
+
*
|
|
17
|
+
* Strategy: path URL first (native on S/4, acceptable fallback on ECC). If the TR is
|
|
18
|
+
* not found in the path response AND `owner` was supplied, retry with the list URL
|
|
19
|
+
* (handles cross-user queries, especially on ECC where the path URL only reveals the
|
|
20
|
+
* session user's list).
|
|
16
21
|
*/
|
|
17
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
23
|
exports.TOOL_DEFINITION = void 0;
|
|
19
24
|
exports.handleGetTransport = handleGetTransport;
|
|
20
25
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
26
|
+
const systemContext_1 = require("../../../lib/systemContext");
|
|
21
27
|
const utils_1 = require("../../../lib/utils");
|
|
28
|
+
const ACCEPT_ORGANIZER_V1 = 'application/vnd.sap.adt.transportorganizer.v1+xml, application/vnd.sap.adt.transportorganizertree.v1+xml';
|
|
22
29
|
exports.TOOL_DEFINITION = {
|
|
23
30
|
name: 'GetTransport',
|
|
24
31
|
available_in: ['onprem', 'cloud'],
|
|
@@ -30,6 +37,10 @@ exports.TOOL_DEFINITION = {
|
|
|
30
37
|
type: 'string',
|
|
31
38
|
description: 'Transport request number (e.g., E19K905635, DEVK905123)',
|
|
32
39
|
},
|
|
40
|
+
owner: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: "SAP user who owns the transport. On ECC the session-user-scoped path endpoint silently filters out other users' TRs — pass `owner` to retry via the list endpoint. On S/4 usually unnecessary, but provide it if the path read is rejected by authorization.",
|
|
43
|
+
},
|
|
33
44
|
include_objects: {
|
|
34
45
|
type: 'boolean',
|
|
35
46
|
description: 'Include list of objects in transport (default: true)',
|
|
@@ -44,51 +55,123 @@ exports.TOOL_DEFINITION = {
|
|
|
44
55
|
required: ['transport_number'],
|
|
45
56
|
},
|
|
46
57
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
*/
|
|
50
|
-
function parseTransportXml(xmlData, includeObjects = true, includeTasks = true) {
|
|
51
|
-
const parser = new fast_xml_parser_1.XMLParser({
|
|
58
|
+
function makeParser() {
|
|
59
|
+
return new fast_xml_parser_1.XMLParser({
|
|
52
60
|
ignoreAttributes: false,
|
|
53
61
|
attributeNamePrefix: '',
|
|
54
62
|
textNodeName: '_text',
|
|
55
63
|
parseAttributeValue: true,
|
|
56
64
|
isArray: (name, _jpath, _isLeafNode, _isAttribute) => {
|
|
57
|
-
|
|
58
|
-
|
|
65
|
+
return [
|
|
66
|
+
'tm:request',
|
|
67
|
+
'tm:task',
|
|
68
|
+
'tm:abap_object',
|
|
69
|
+
'tm:object',
|
|
70
|
+
'object',
|
|
71
|
+
'task',
|
|
72
|
+
].includes(name);
|
|
59
73
|
},
|
|
60
74
|
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Find a specific tm:request inside a list-view response
|
|
78
|
+
* (tm:root > tm:workbench|tm:customizing > tm:modifiable|tm:released > tm:request[]).
|
|
79
|
+
*/
|
|
80
|
+
function findRequestInListView(root, number) {
|
|
81
|
+
if (!root)
|
|
82
|
+
return null;
|
|
83
|
+
for (const catKey of ['tm:workbench', 'tm:customizing']) {
|
|
84
|
+
const category = root[catKey];
|
|
85
|
+
if (!category)
|
|
86
|
+
continue;
|
|
87
|
+
for (const statusKey of ['tm:modifiable', 'tm:released']) {
|
|
88
|
+
const group = category[statusKey];
|
|
89
|
+
if (!group)
|
|
90
|
+
continue;
|
|
91
|
+
const reqs = group['tm:request'];
|
|
92
|
+
if (!reqs)
|
|
93
|
+
continue;
|
|
94
|
+
const arr = Array.isArray(reqs) ? reqs : [reqs];
|
|
95
|
+
for (const req of arr) {
|
|
96
|
+
if (req && req['tm:number'] === number)
|
|
97
|
+
return req;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// Back-compat: some SAP versions flatten requests directly under root
|
|
102
|
+
const direct = root['tm:request'];
|
|
103
|
+
if (direct) {
|
|
104
|
+
const arr = Array.isArray(direct) ? direct : [direct];
|
|
105
|
+
for (const req of arr) {
|
|
106
|
+
if (req && req['tm:number'] === number)
|
|
107
|
+
return req;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Pick the tm:request node from either a single-TR or list-view response.
|
|
114
|
+
* Returns { request, viewType } or null when the requested TR isn't present.
|
|
115
|
+
*/
|
|
116
|
+
function extractRequest(xmlData, requestedNumber) {
|
|
117
|
+
const parser = makeParser();
|
|
61
118
|
const result = parser.parse(xmlData);
|
|
62
119
|
const root = result['tm:root'] || result.root;
|
|
63
120
|
if (!root) {
|
|
64
121
|
throw new utils_1.McpError(utils_1.ErrorCode.InternalError, 'Invalid transport XML structure - no tm:root found');
|
|
65
122
|
}
|
|
66
|
-
//
|
|
67
|
-
|
|
68
|
-
|
|
123
|
+
// S/4 native path response: adtcore:name is the TR number and tm:request is a direct child.
|
|
124
|
+
if (root['adtcore:name'] === requestedNumber && root['tm:request']) {
|
|
125
|
+
const r = Array.isArray(root['tm:request'])
|
|
126
|
+
? root['tm:request'][0]
|
|
127
|
+
: root['tm:request'];
|
|
128
|
+
if (r && r['tm:number'] === requestedNumber) {
|
|
129
|
+
return { request: r, viewType: 'single-tr' };
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
// Otherwise treat as list view (ECC path response, or list URL response).
|
|
133
|
+
const hit = findRequestInListView(root, requestedNumber);
|
|
134
|
+
if (hit)
|
|
135
|
+
return { request: hit, viewType: 'list' };
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
138
|
+
function buildTransportData(request, includeObjects, includeTasks) {
|
|
69
139
|
const transportInfo = {
|
|
70
|
-
number:
|
|
71
|
-
description: request['tm:desc'] || request
|
|
72
|
-
type: request['tm:type']
|
|
73
|
-
status: request['tm:status']
|
|
140
|
+
number: request['tm:number'],
|
|
141
|
+
description: request['tm:desc'] || request['tm:description'],
|
|
142
|
+
type: request['tm:type'],
|
|
143
|
+
status: request['tm:status'],
|
|
74
144
|
status_text: request['tm:status_text'],
|
|
75
|
-
owner: request['tm:owner']
|
|
76
|
-
target_system: request['tm:target']
|
|
145
|
+
owner: request['tm:owner'],
|
|
146
|
+
target_system: request['tm:target'],
|
|
77
147
|
target_desc: request['tm:target_desc'],
|
|
78
|
-
created_at:
|
|
79
|
-
created_by:
|
|
80
|
-
changed_at:
|
|
81
|
-
changed_by:
|
|
82
|
-
release_date: request['tm:releaseDate']
|
|
83
|
-
client: request['tm:source_client']
|
|
148
|
+
created_at: request['tm:createdAt'] || request['tm:lastchanged_timestamp'],
|
|
149
|
+
created_by: request['tm:createdBy'] || request['tm:owner'],
|
|
150
|
+
changed_at: request['tm:changedAt'] || request['tm:lastchanged_timestamp'],
|
|
151
|
+
changed_by: request['tm:changedBy'],
|
|
152
|
+
release_date: request['tm:releaseDate'],
|
|
153
|
+
client: request['tm:source_client'],
|
|
84
154
|
cts_project: request['tm:cts_project'],
|
|
85
155
|
cts_project_desc: request['tm:cts_project_desc'],
|
|
86
156
|
};
|
|
87
|
-
// Extract objects if requested
|
|
88
157
|
let objects = [];
|
|
89
|
-
if (includeObjects
|
|
90
|
-
|
|
91
|
-
|
|
158
|
+
if (includeObjects) {
|
|
159
|
+
if (request['tm:all_objects']) {
|
|
160
|
+
const objectList = request['tm:all_objects']['tm:abap_object'] || [];
|
|
161
|
+
objects = Array.isArray(objectList) ? [...objectList] : [objectList];
|
|
162
|
+
}
|
|
163
|
+
if (objects.length === 0 && request['tm:task']) {
|
|
164
|
+
const taskList = Array.isArray(request['tm:task'])
|
|
165
|
+
? request['tm:task']
|
|
166
|
+
: [request['tm:task']];
|
|
167
|
+
for (const task of taskList) {
|
|
168
|
+
const taskObjs = task && task['tm:abap_object'];
|
|
169
|
+
if (!taskObjs)
|
|
170
|
+
continue;
|
|
171
|
+
const arr = Array.isArray(taskObjs) ? taskObjs : [taskObjs];
|
|
172
|
+
objects.push(...arr);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
92
175
|
objects = objects.map((obj) => ({
|
|
93
176
|
name: obj['tm:name'],
|
|
94
177
|
type: obj['tm:type'],
|
|
@@ -100,7 +183,6 @@ function parseTransportXml(xmlData, includeObjects = true, includeTasks = true)
|
|
|
100
183
|
info: obj['tm:obj_info'],
|
|
101
184
|
}));
|
|
102
185
|
}
|
|
103
|
-
// Extract tasks if requested
|
|
104
186
|
let tasks = [];
|
|
105
187
|
if (includeTasks && request['tm:task']) {
|
|
106
188
|
const taskList = Array.isArray(request['tm:task'])
|
|
@@ -140,50 +222,62 @@ function parseTransportXml(xmlData, includeObjects = true, includeTasks = true)
|
|
|
140
222
|
};
|
|
141
223
|
}
|
|
142
224
|
/**
|
|
143
|
-
* Main handler for GetTransport MCP tool
|
|
225
|
+
* Main handler for GetTransport MCP tool.
|
|
226
|
+
* Strategy: path-based read first, list-by-user fallback when owner is supplied.
|
|
144
227
|
*/
|
|
145
228
|
async function handleGetTransport(context, args) {
|
|
146
229
|
const { connection, logger } = context;
|
|
147
230
|
try {
|
|
148
|
-
// Validate required parameters
|
|
149
231
|
if (!args?.transport_number) {
|
|
150
232
|
throw new utils_1.McpError(utils_1.ErrorCode.InvalidParams, 'Transport number is required');
|
|
151
233
|
}
|
|
152
234
|
const typedArgs = args;
|
|
153
235
|
const includeObjects = typedArgs.include_objects !== false;
|
|
154
236
|
const includeTasks = typedArgs.include_tasks !== false;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
237
|
+
const trNumber = typedArgs.transport_number;
|
|
238
|
+
const sessionUser = (0, systemContext_1.getSystemContext)().responsible || process.env.SAP_USERNAME || '';
|
|
239
|
+
const owner = typedArgs.owner || '';
|
|
240
|
+
const headers = { Accept: ACCEPT_ORGANIZER_V1 };
|
|
241
|
+
// Attempt 1: path-based single-TR read.
|
|
242
|
+
const pathUrl = `/sap/bc/adt/cts/transportrequests/${encodeURIComponent(trNumber)}`;
|
|
243
|
+
logger?.debug(`GetTransport: path URL attempt — ${pathUrl}`);
|
|
244
|
+
const pathResp = await (0, utils_1.makeAdtRequestWithTimeout)(connection, pathUrl, 'GET', 'default', undefined, undefined, headers);
|
|
245
|
+
let found = extractRequest(pathResp.data, trNumber);
|
|
246
|
+
let resolvedVia = 'path';
|
|
247
|
+
let usedOwner = sessionUser;
|
|
248
|
+
let lastResponse = pathResp;
|
|
249
|
+
// Attempt 2: list-by-owner fallback. Triggered when path read didn't locate the TR
|
|
250
|
+
// and the caller supplied an explicit owner (most common on ECC for cross-user queries).
|
|
251
|
+
if (!found && owner && owner !== sessionUser) {
|
|
252
|
+
const query = new URLSearchParams({ user: owner });
|
|
253
|
+
const listUrl = `/sap/bc/adt/cts/transportrequests?${query.toString()}`;
|
|
254
|
+
logger?.debug(`GetTransport: list-by-owner fallback — ${listUrl}`);
|
|
255
|
+
const listResp = await (0, utils_1.makeAdtRequestWithTimeout)(connection, listUrl, 'GET', 'default', undefined, undefined, headers);
|
|
256
|
+
found = extractRequest(listResp.data, trNumber);
|
|
257
|
+
if (found) {
|
|
258
|
+
resolvedVia = 'list';
|
|
259
|
+
usedOwner = owner;
|
|
260
|
+
lastResponse = listResp;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (!found) {
|
|
264
|
+
throw new utils_1.McpError(utils_1.ErrorCode.InvalidParams, `Transport ${trNumber} not found via path read${owner ? ` or owner=${owner} list` : ''}. If this TR belongs to a different user, pass 'owner'.`);
|
|
166
265
|
}
|
|
167
|
-
const
|
|
168
|
-
Accept: 'application/vnd.sap.adt.transportorganizer.v1+xml',
|
|
169
|
-
};
|
|
170
|
-
logger?.debug(`GET from: ${url}`);
|
|
171
|
-
// Get transport request
|
|
172
|
-
const response = await (0, utils_1.makeAdtRequestWithTimeout)(connection, url, 'GET', 'default', undefined, undefined, headers);
|
|
173
|
-
logger?.debug(`GetTransport response status: ${response.status}`);
|
|
174
|
-
// Parse XML response
|
|
175
|
-
const transportData = parseTransportXml(response.data, includeObjects, includeTasks);
|
|
266
|
+
const transportData = buildTransportData(found.request, includeObjects, includeTasks);
|
|
176
267
|
return (0, utils_1.return_response)({
|
|
177
268
|
data: JSON.stringify({
|
|
178
269
|
success: true,
|
|
179
|
-
transport_number:
|
|
270
|
+
transport_number: trNumber,
|
|
271
|
+
resolved_via: resolvedVia,
|
|
272
|
+
view_type: found.viewType,
|
|
273
|
+
owner_scope: usedOwner,
|
|
180
274
|
...transportData,
|
|
181
|
-
message: `Transport ${
|
|
275
|
+
message: `Transport ${trNumber} retrieved successfully (${resolvedVia} read, ${found.viewType} view)`,
|
|
182
276
|
}, null, 2),
|
|
183
|
-
status:
|
|
184
|
-
statusText:
|
|
185
|
-
headers:
|
|
186
|
-
config:
|
|
277
|
+
status: lastResponse.status,
|
|
278
|
+
statusText: lastResponse.statusText,
|
|
279
|
+
headers: lastResponse.headers,
|
|
280
|
+
config: lastResponse.config,
|
|
187
281
|
});
|
|
188
282
|
}
|
|
189
283
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleGetTransport.js","sourceRoot":"","sources":["../../../../src/handlers/transport/readonly/handleGetTransport.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"handleGetTransport.js","sourceRoot":"","sources":["../../../../src/handlers/transport/readonly/handleGetTransport.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AA2OH,gDAkGC;AA3UD,qDAA4C;AAE5C,8DAA8D;AAC9D,8CAM4B;AAE5B,MAAM,mBAAmB,GACvB,0GAA0G,CAAC;AAEhG,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,cAAc;IACpB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,2HAA2H;IAC7H,WAAW,EAAE;QACX,IAAI,EAA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,CAAC,MAAM;SAC5B,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,gBAAQ,EAAE,CAAC;YAC9B,MAAM,KAAK,CAAC;QACd,CAAC;QACD,OAAO,IAAA,oBAAY,EAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleListTransports.d.ts","sourceRoot":"","sources":["../../../../src/handlers/transport/readonly/handleListTransports.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAqBlB,CAAC;AAEX,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;
|
|
1
|
+
{"version":3,"file":"handleListTransports.d.ts","sourceRoot":"","sources":["../../../../src/handlers/transport/readonly/handleListTransports.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAqBlB,CAAC;AAEX,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAkFD,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,kBAAkB;;;;;;GA6CzB"}
|
|
@@ -31,6 +31,45 @@ exports.TOOL_DEFINITION = {
|
|
|
31
31
|
required: [],
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
|
+
// ADT /sap/bc/adt/cts/transportrequests response structure:
|
|
35
|
+
// tm:root
|
|
36
|
+
// tm:workbench (category, for workbench requests)
|
|
37
|
+
// tm:modifiable (status group)
|
|
38
|
+
// tm:request[] (one per TR)
|
|
39
|
+
// tm:released
|
|
40
|
+
// tm:request[]
|
|
41
|
+
// tm:customizing
|
|
42
|
+
// tm:modifiable / tm:released → tm:request[]
|
|
43
|
+
//
|
|
44
|
+
// The previous implementation only looked at root['tm:workbench']['tm:request'], missing
|
|
45
|
+
// the tm:modifiable / tm:released middle layer, so it silently returned 0 transports.
|
|
46
|
+
function collectRequests(root) {
|
|
47
|
+
const out = [];
|
|
48
|
+
if (!root)
|
|
49
|
+
return out;
|
|
50
|
+
for (const catKey of ['tm:workbench', 'tm:customizing']) {
|
|
51
|
+
const category = root[catKey];
|
|
52
|
+
if (!category)
|
|
53
|
+
continue;
|
|
54
|
+
for (const statusKey of ['tm:modifiable', 'tm:released']) {
|
|
55
|
+
const group = category[statusKey];
|
|
56
|
+
if (!group)
|
|
57
|
+
continue;
|
|
58
|
+
const reqs = group['tm:request'];
|
|
59
|
+
if (!reqs)
|
|
60
|
+
continue;
|
|
61
|
+
const arr = Array.isArray(reqs) ? reqs : [reqs];
|
|
62
|
+
out.push(...arr);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
// Back-compat fallback: flat structures (rare)
|
|
66
|
+
if (out.length === 0 && root['tm:request']) {
|
|
67
|
+
const direct = root['tm:request'];
|
|
68
|
+
const arr = Array.isArray(direct) ? direct : [direct];
|
|
69
|
+
out.push(...arr);
|
|
70
|
+
}
|
|
71
|
+
return out;
|
|
72
|
+
}
|
|
34
73
|
function parseTransportListXml(xmlData) {
|
|
35
74
|
const parser = new fast_xml_parser_1.XMLParser({
|
|
36
75
|
ignoreAttributes: false,
|
|
@@ -40,11 +79,8 @@ function parseTransportListXml(xmlData) {
|
|
|
40
79
|
},
|
|
41
80
|
});
|
|
42
81
|
const result = parser.parse(xmlData);
|
|
43
|
-
// Response can be under different roots depending on SAP version
|
|
44
82
|
const root = result['tm:root'] || result['tm:roots'] || result;
|
|
45
|
-
|
|
46
|
-
const requests = root?.['tm:request'] || root?.['tm:workbench']?.['tm:request'] || [];
|
|
47
|
-
const requestList = Array.isArray(requests) ? requests : [requests];
|
|
83
|
+
const requestList = collectRequests(root);
|
|
48
84
|
return requestList
|
|
49
85
|
.filter((req) => req)
|
|
50
86
|
.map((req) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleListTransports.js","sourceRoot":"","sources":["../../../../src/handlers/transport/readonly/handleListTransports.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"handleListTransports.js","sourceRoot":"","sources":["../../../../src/handlers/transport/readonly/handleListTransports.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAoHH,oDA+CC;AAjKD,qDAA4C;AAC5C,kDAAuD;AAEvD,8DAA8D;AAC9D,8CAAkD;AAErC,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,gBAAgB;IACtB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,+IAA+I;IACjJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0EAA0E;aAC7E;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,sEAAsE;aACzE;SACF;QACD,QAAQ,EAAE,EAAE;KACb;CACO,CAAC;AAgBX,4DAA4D;AAC5D,YAAY;AACZ,uDAAuD;AACvD,sCAAsC;AACtC,qCAAqC;AACrC,oBAAoB;AACpB,uBAAuB;AACvB,qBAAqB;AACrB,mDAAmD;AACnD,EAAE;AACF,yFAAyF;AACzF,sFAAsF;AACtF,SAAS,eAAe,CACtB,IAAgD;IAEhD,MAAM,GAAG,GAA8B,EAAE,CAAC;IAC1C,IAAI,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC;IACtB,KAAK,MAAM,MAAM,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,EAAE,C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