@mcp-abap-adt/adt-backup 1.0.0 → 1.1.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/dist/lib/run.d.ts.map +1 -1
- package/dist/lib/run.js +10 -1
- package/package.json +2 -2
package/dist/lib/run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/lib/run.ts"],"names":[],"mappings":"AAiDA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/lib/run.ts"],"names":[],"mappings":"AAiDA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAgpBzC"}
|
package/dist/lib/run.js
CHANGED
|
@@ -169,7 +169,16 @@ async function run() {
|
|
|
169
169
|
? logger
|
|
170
170
|
: undefined;
|
|
171
171
|
const connection = (0, connection_1.createAbapConnection)(sapAuth.config, connectionLogger, undefined, sapAuth.tokenRefresher);
|
|
172
|
-
|
|
172
|
+
// Resolve masterSystem/responsible for AdtClient:
|
|
173
|
+
// Cloud (BTP): both from getSystemInformation endpoint
|
|
174
|
+
// On-premise: responsible from connection username, no masterSystem
|
|
175
|
+
const systemInfo = await (0, adt_clients_1.getSystemInformation)(connection);
|
|
176
|
+
const masterSystem = systemInfo?.systemID;
|
|
177
|
+
const responsible = systemInfo?.userName || sapAuth.config.username;
|
|
178
|
+
client = new adt_clients_1.AdtClient(connection, adtLogger, {
|
|
179
|
+
masterSystem,
|
|
180
|
+
responsible,
|
|
181
|
+
});
|
|
173
182
|
}
|
|
174
183
|
}
|
|
175
184
|
if (command === 'tree') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/adt-backup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "ADT backup CLI for SAP ABAP objects (recursive package backups and restores)",
|
|
5
5
|
"main": "dist/bin/adt-backup.js",
|
|
6
6
|
"types": "dist/bin/adt-backup.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"node": ">=18.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@mcp-abap-adt/adt-clients": "^
|
|
51
|
+
"@mcp-abap-adt/adt-clients": "^2.2.0",
|
|
52
52
|
"@mcp-abap-adt/auth-broker": "^1.0.5",
|
|
53
53
|
"@mcp-abap-adt/auth-providers": "^1.0.5",
|
|
54
54
|
"@mcp-abap-adt/auth-stores": "^1.0.2",
|