@mcp-abap-adt/core 18.1.0 → 19.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/README.md +26 -5
- package/bin/mcp-abap-adt.js +15 -15
- package/dist/StdioServer.d.ts +68 -14
- package/dist/StdioServer.d.ts.map +1 -1
- package/dist/StdioServer.js +101 -31
- package/dist/StdioServer.js.map +1 -1
- package/dist/auth/IAuthBrokerFactory.d.ts +62 -0
- package/dist/auth/IAuthBrokerFactory.d.ts.map +1 -0
- package/dist/auth/IAuthBrokerFactory.js +8 -0
- package/dist/auth/IAuthBrokerFactory.js.map +1 -0
- package/dist/auth/IAuthBrokerFactoryConfig.d.ts +90 -0
- package/dist/auth/IAuthBrokerFactoryConfig.d.ts.map +1 -0
- package/dist/auth/IAuthBrokerFactoryConfig.js +8 -0
- package/dist/auth/IAuthBrokerFactoryConfig.js.map +1 -0
- package/dist/auth/brokerFactory.d.ts +93 -0
- package/dist/auth/brokerFactory.d.ts.map +1 -0
- package/dist/auth/brokerFactory.js +341 -0
- package/dist/auth/brokerFactory.js.map +1 -0
- package/dist/auth/browser.d.ts +60 -0
- package/dist/auth/browser.d.ts.map +1 -0
- package/dist/auth/browser.js +116 -0
- package/dist/auth/browser.js.map +1 -0
- package/dist/auth/countedProvider.d.ts +43 -0
- package/dist/auth/countedProvider.d.ts.map +1 -0
- package/dist/auth/countedProvider.js +105 -0
- package/dist/auth/countedProvider.js.map +1 -0
- package/dist/auth/destinationFailure.d.ts +69 -0
- package/dist/auth/destinationFailure.d.ts.map +1 -0
- package/dist/auth/destinationFailure.js +183 -0
- package/dist/auth/destinationFailure.js.map +1 -0
- package/dist/auth/destinationStores.d.ts +55 -0
- package/dist/auth/destinationStores.d.ts.map +1 -0
- package/dist/auth/destinationStores.js +158 -0
- package/dist/auth/destinationStores.js.map +1 -0
- package/dist/auth/handlers/basic.d.ts +3 -0
- package/dist/auth/handlers/basic.d.ts.map +1 -0
- package/dist/auth/handlers/basic.js +8 -0
- package/dist/auth/handlers/basic.js.map +1 -0
- package/dist/auth/handlers/index.d.ts +15 -0
- package/dist/auth/handlers/index.d.ts.map +1 -0
- package/dist/auth/handlers/index.js +32 -0
- package/dist/auth/handlers/index.js.map +1 -0
- package/dist/auth/handlers/jwtAuthorizationCode.d.ts +8 -0
- package/dist/auth/handlers/jwtAuthorizationCode.d.ts.map +1 -0
- package/dist/auth/handlers/jwtAuthorizationCode.js +32 -0
- package/dist/auth/handlers/jwtAuthorizationCode.js.map +1 -0
- package/dist/auth/handlers/snc.d.ts +3 -0
- package/dist/auth/handlers/snc.d.ts.map +1 -0
- package/dist/auth/handlers/snc.js +14 -0
- package/dist/auth/handlers/snc.js.map +1 -0
- package/dist/auth/handlers/types.d.ts +30 -0
- package/dist/auth/handlers/types.d.ts.map +1 -0
- package/dist/auth/handlers/types.js +3 -0
- package/dist/auth/handlers/types.js.map +1 -0
- package/dist/auth/index.d.ts +15 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +38 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/serverLogin.d.ts +75 -0
- package/dist/auth/serverLogin.d.ts.map +1 -0
- package/dist/auth/serverLogin.js +138 -0
- package/dist/auth/serverLogin.js.map +1 -0
- package/dist/auth/serverSentences.d.ts +39 -0
- package/dist/auth/serverSentences.d.ts.map +1 -0
- package/dist/auth/serverSentences.js +49 -0
- package/dist/auth/serverSentences.js.map +1 -0
- package/dist/auth/vocabulary.d.ts +28 -0
- package/dist/auth/vocabulary.d.ts.map +1 -0
- package/dist/auth/vocabulary.js +67 -0
- package/dist/auth/vocabulary.js.map +1 -0
- package/dist/config/coreParameters.d.ts +125 -0
- package/dist/config/coreParameters.d.ts.map +1 -0
- package/dist/config/coreParameters.js +331 -0
- package/dist/config/coreParameters.js.map +1 -0
- package/dist/config/envFileContext.d.ts +26 -0
- package/dist/config/envFileContext.d.ts.map +1 -0
- package/dist/config/envFileContext.js +90 -0
- package/dist/config/envFileContext.js.map +1 -0
- package/dist/config/envResolver.d.ts +6 -0
- package/dist/config/envResolver.d.ts.map +1 -0
- package/dist/config/envResolver.js +81 -0
- package/dist/config/envResolver.js.map +1 -0
- package/dist/config/platformPaths.d.ts +28 -0
- package/dist/config/platformPaths.d.ts.map +1 -0
- package/dist/config/platformPaths.js +152 -0
- package/dist/config/platformPaths.js.map +1 -0
- package/dist/destinationSource.d.ts +26 -0
- package/dist/destinationSource.d.ts.map +1 -0
- package/dist/destinationSource.js +43 -0
- package/dist/destinationSource.js.map +1 -0
- package/dist/index.d.ts +9 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/dist/launcher.d.ts +102 -59
- package/dist/launcher.d.ts.map +1 -1
- package/dist/launcher.js +419 -286
- package/dist/launcher.js.map +1 -1
- package/dist/shutdown.d.ts +76 -24
- package/dist/shutdown.d.ts.map +1 -1
- package/dist/shutdown.js +114 -57
- package/dist/shutdown.js.map +1 -1
- package/package.json +22 -39
- package/dist/InstancePool.d.ts +0 -87
- package/dist/InstancePool.d.ts.map +0 -1
- package/dist/InstancePool.js +0 -240
- package/dist/InstancePool.js.map +0 -1
- package/dist/SseServer.d.ts +0 -144
- package/dist/SseServer.d.ts.map +0 -1
- package/dist/SseServer.js +0 -359
- package/dist/SseServer.js.map +0 -1
- package/dist/StreamableHttpServer.d.ts +0 -143
- package/dist/StreamableHttpServer.d.ts.map +0 -1
- package/dist/StreamableHttpServer.js +0 -349
- package/dist/StreamableHttpServer.js.map +0 -1
- package/dist/destinationRequest.d.ts +0 -38
- package/dist/destinationRequest.d.ts.map +0 -1
- package/dist/destinationRequest.js +0 -85
- package/dist/destinationRequest.js.map +0 -1
- package/dist/dnsRebindingProtection.d.ts +0 -21
- package/dist/dnsRebindingProtection.d.ts.map +0 -1
- package/dist/dnsRebindingProtection.js +0 -45
- package/dist/dnsRebindingProtection.js.map +0 -1
- package/dist/stateClose.d.ts +0 -8
- package/dist/stateClose.d.ts.map +0 -1
- package/dist/stateClose.js +0 -14
- package/dist/stateClose.js.map +0 -1
- package/dist/tlsUtils.d.ts +0 -19
- package/dist/tlsUtils.d.ts.map +0 -1
- package/dist/tlsUtils.js +0 -77
- package/dist/tlsUtils.js.map +0 -1
package/dist/tlsUtils.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.createServerListener = createServerListener;
|
|
37
|
-
exports.getProtocol = getProtocol;
|
|
38
|
-
const fs = __importStar(require("node:fs"));
|
|
39
|
-
const http = __importStar(require("node:http"));
|
|
40
|
-
const https = __importStar(require("node:https"));
|
|
41
|
-
/**
|
|
42
|
-
* Create HTTP or HTTPS server based on TLS configuration.
|
|
43
|
-
*
|
|
44
|
-
* When `tls` is provided with cert + key paths, creates an HTTPS server.
|
|
45
|
-
* Otherwise creates a plain HTTP server.
|
|
46
|
-
*
|
|
47
|
-
* @param app - Express application (or any http.RequestListener)
|
|
48
|
-
* @param tls - Optional TLS configuration with file paths
|
|
49
|
-
* @returns http.Server or https.Server
|
|
50
|
-
*/
|
|
51
|
-
function createServerListener(app, tls) {
|
|
52
|
-
if (!tls) {
|
|
53
|
-
return http.createServer(app);
|
|
54
|
-
}
|
|
55
|
-
if (!fs.existsSync(tls.cert)) {
|
|
56
|
-
throw new Error(`TLS cert file not found: ${tls.cert}`);
|
|
57
|
-
}
|
|
58
|
-
if (!fs.existsSync(tls.key)) {
|
|
59
|
-
throw new Error(`TLS key file not found: ${tls.key}`);
|
|
60
|
-
}
|
|
61
|
-
if (tls.ca && !fs.existsSync(tls.ca)) {
|
|
62
|
-
throw new Error(`TLS CA file not found: ${tls.ca}`);
|
|
63
|
-
}
|
|
64
|
-
const tlsOptions = {
|
|
65
|
-
cert: fs.readFileSync(tls.cert),
|
|
66
|
-
key: fs.readFileSync(tls.key),
|
|
67
|
-
...(tls.ca && { ca: fs.readFileSync(tls.ca) }),
|
|
68
|
-
};
|
|
69
|
-
return https.createServer(tlsOptions, app);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Returns the protocol string based on TLS configuration.
|
|
73
|
-
*/
|
|
74
|
-
function getProtocol(tls) {
|
|
75
|
-
return tls ? 'https' : 'http';
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=tlsUtils.js.map
|
package/dist/tlsUtils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tlsUtils.js","sourceRoot":"","sources":["../src/tlsUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,oDAyBC;AAKD,kCAEC;AA/CD,4CAA8B;AAC9B,gDAAkC;AAClC,kDAAoC;AAGpC;;;;;;;;;GASG;AACH,SAAgB,oBAAoB,CAClC,GAAyB,EACzB,GAAe;IAEf,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,4BAA4B,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1D,CAAC;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,2BAA2B,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IACxD,CAAC;IACD,IAAI,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,KAAK,CAAC,0BAA0B,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,MAAM,UAAU,GAAwB;QACtC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC;QAC/B,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC;QAC7B,GAAG,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;KAC/C,CAAC;IAEF,OAAO,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AAC7C,CAAC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,GAAe;IACzC,OAAO,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;AAChC,CAAC"}
|