@mcp-abap-adt/interfaces-adt 27.2.0 → 27.3.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 +29 -0
- package/README.md +39 -4
- package/dist/adt/IAdtResponse.d.ts +68 -8
- package/dist/adt/IAdtResponse.d.ts.map +1 -1
- package/dist/adt/IAdtResponse.js +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [27.3.0] - 2026-11-12
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **`IAdtError.sessionError?: AdtSessionErrorCode | undefined`**: the
|
|
15
|
+
connection's session error code an `origin: 'connection'` failure was thrown
|
|
16
|
+
with (`ADT_SESSION_ERROR`: `ADT_NOT_CONNECTED`, `ADT_SESSION_REPLACED`,
|
|
17
|
+
`ADT_RELEASE_PENDING`), so a consumer reads which session failure it was
|
|
18
|
+
from the field, never from the message. Separate from `code`, the
|
|
19
|
+
strategy's failure code.
|
|
20
|
+
- **`IAdtError.sessionLost?` and `IAdtResult.sessionLost?:
|
|
21
|
+
AdtSessionLoss | undefined`**: the request the answer answers was answered
|
|
22
|
+
with the SAP session replaced (the connection's `sessionLost`); the answer is
|
|
23
|
+
SAP's, and the connection's session is gone with it. On the result it sits
|
|
24
|
+
beside `value`, so it reaches the caller whatever result strategy made the
|
|
25
|
+
value.
|
|
26
|
+
- Each optional, `| undefined`: an error or a result built for 27.2.0 still
|
|
27
|
+
conforms.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- **`ADT_CONNECTION_CAUSES` lists `EPIPE`** (appended; every other entry keeps
|
|
32
|
+
its index): a write to a socket the server had reset, measured on an
|
|
33
|
+
established connection in the mcp-abap-adt CI on macOS (85 of 500 runs on
|
|
34
|
+
Node 22, 34 of 500 on Node 24). `AdtConnectionCause` gains it. Code that
|
|
35
|
+
asserts the list's exact length or members sees eight entries.
|
|
36
|
+
- `@mcp-abap-adt/interfaces-adt-connection` is now `^4.2.0`, the release that
|
|
37
|
+
declares `AdtSessionLoss`.
|
|
38
|
+
|
|
10
39
|
## [27.2.0] - 2026-11-12
|
|
11
40
|
|
|
12
41
|
### Added
|
package/README.md
CHANGED
|
@@ -29,7 +29,8 @@ ADT contracts: object operations, runtime analysis, execution, feeds and service
|
|
|
29
29
|
- Since 15.3.0 `IAdtTransportMoveObjects` moves entries from one task to another, each identified by its position in the source.
|
|
30
30
|
- Since 15.2.0 `IAdtTransportSortAndCompress` sorts and compresses a task's object list, the remedy SAP names when `removeObject` is refused for a duplicated entry.
|
|
31
31
|
- Since 13.0.0 `IResultStrategy`, `IAnalyse` and `IAdtFailure.response` hand over an `IAdtWireResponse` whose `data` is `unknown`, not `any` (`interfaces-adt-connection` 2.0.0): narrow it before reading. The CHANGELOG has the migration note.
|
|
32
|
-
-
|
|
32
|
+
- Since 27.3.0 `IAdtError` carries what the connection said about the SAP session — `sessionError` (an `ADT_SESSION_ERROR` code) and `sessionLost` — and `IAdtResult` carries `sessionLost` beside `value`; `ADT_CONNECTION_CAUSES` lists `EPIPE`. Additions only, apart from the list's length. See "A connection failure's cause" and "The SAP session".
|
|
33
|
+
- Depends on `@mcp-abap-adt/interfaces-adt-connection` `^4.2.0` (since 27.3.0: `IAdtError.sessionError`, `IAdtError.sessionLost` and `IAdtResult.sessionLost` are its `AdtSessionErrorCode` and `AdtSessionLoss`, the latter first declared in 4.2.0), and on nothing else. Types and constants; no implementation.
|
|
33
34
|
|
|
34
35
|
## Install
|
|
35
36
|
|
|
@@ -48,7 +49,7 @@ npm install @mcp-abap-adt/interfaces-adt
|
|
|
48
49
|
| `service/` | 1 | service definitions and bindings |
|
|
49
50
|
| `shared/` | 1 | what more than one object type needs |
|
|
50
51
|
|
|
51
|
-
Six directories, all ADT. `connection/` left for `interfaces-adt-connection` in 11.0.0. `sap/`, `auth/`, `token/`, `session/`, `serviceKey/`, `store/`, `validation/` and `Headers.ts` were here until 9.0.0 and are listed above under what left; `__typechecks__/` holds
|
|
52
|
+
Six directories, all ADT. `connection/` left for `interfaces-adt-connection` in 11.0.0. `sap/`, `auth/`, `token/`, `session/`, `serviceKey/`, `store/`, `validation/` and `Headers.ts` were here until 9.0.0 and are listed above under what left; `__typechecks__/` holds 43 files that compile shapes this contract must and must not accept, and ships in no tarball.
|
|
52
53
|
|
|
53
54
|
The contract rules — what a member answers, how a strategy is supplied, how a contract is built — are in [`docs/architecture/ARCHITECTURE.md`](../../docs/architecture/ARCHITECTURE.md). Domain-by-domain documentation with examples used to sit in the facade's README; the facade is deleted, and each package documents its own contracts.
|
|
54
55
|
|
|
@@ -431,8 +432,9 @@ for every member and every overload.
|
|
|
431
432
|
An `IAdtError` of `origin: 'connection'` may carry `connectionCause`: the
|
|
432
433
|
network code the request was thrown with, when it is one of
|
|
433
434
|
`ADT_CONNECTION_CAUSES` — `ECONNREFUSED`, `ECONNRESET`, `ENOTFOUND`,
|
|
434
|
-
`EAI_AGAIN`, `ETIMEDOUT`, `EHOSTUNREACH`, `ENETUNREACH`
|
|
435
|
-
|
|
435
|
+
`EAI_AGAIN`, `ETIMEDOUT`, `EHOSTUNREACH`, `ENETUNREACH`, `EPIPE` (since
|
|
436
|
+
27.3.0: a write to a socket the server had reset, on an established
|
|
437
|
+
connection) — typed `AdtConnectionCause`. Any other code, or none, leaves the field absent. A
|
|
436
438
|
consumer answers "no connection" from the code, without reading `message`.
|
|
437
439
|
|
|
438
440
|
The list holds no TLS codes: they are `interfaces-auth`'s
|
|
@@ -447,6 +449,39 @@ outcome from `rfc.codeString` (`RFC_CLOSED`, say), never from `message`. The
|
|
|
447
449
|
field is absent for an HTTP failure and for a refusal, and optional, like
|
|
448
450
|
`connectionCause`. `src/__typechecks__/rfcField.ts` holds these shapes.
|
|
449
451
|
|
|
452
|
+
## The SAP session
|
|
453
|
+
|
|
454
|
+
Since 27.3.0 an answer says, by field, what the connection said about the SAP
|
|
455
|
+
session, so a consumer never reads it from `message`:
|
|
456
|
+
|
|
457
|
+
- `IAdtError.sessionError` — the connection's session error code an
|
|
458
|
+
`origin: 'connection'` failure was thrown with, one of `ADT_SESSION_ERROR`
|
|
459
|
+
(`ADT_NOT_CONNECTED`, `ADT_SESSION_REPLACED`, `ADT_RELEASE_PENDING`), typed
|
|
460
|
+
`AdtSessionErrorCode`. Separate from `code`, the strategy's failure code.
|
|
461
|
+
- `IAdtError.sessionLost` and `IAdtResult.sessionLost` — present when the
|
|
462
|
+
request the answer answers was answered with the SAP session replaced
|
|
463
|
+
(`interfaces-adt-connection`'s `sessionLost`, typed `AdtSessionLoss`). The
|
|
464
|
+
answer is SAP's, failure or value; the connection's session is gone with it.
|
|
465
|
+
|
|
466
|
+
```typescript
|
|
467
|
+
if (!answer.ok) {
|
|
468
|
+
const error = answer.getError();
|
|
469
|
+
if (
|
|
470
|
+
error.sessionError === ADT_SESSION_ERROR.NOT_CONNECTED ||
|
|
471
|
+
error.sessionLost !== undefined
|
|
472
|
+
) {
|
|
473
|
+
// this connection is spent
|
|
474
|
+
}
|
|
475
|
+
} else if (answer.getResult().sessionLost !== undefined) {
|
|
476
|
+
// the value stands; the next request needs a new connection
|
|
477
|
+
}
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
Each field is optional, `| undefined` for `exactOptionalPropertyTypes`, so an
|
|
481
|
+
error or a result built for 27.2.0 still conforms.
|
|
482
|
+
`src/__typechecks__/sessionError.ts` and `src/__typechecks__/sessionLost.ts`
|
|
483
|
+
hold these shapes.
|
|
484
|
+
|
|
450
485
|
## Migrating to 27.0.0
|
|
451
486
|
|
|
452
487
|
- **A result set for the utilities adds `objectActivation`.** `IUtilResults`
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* `@mcp-abap-adt/adt-clients`, where a consumer takes them from if they want
|
|
32
32
|
* `instanceof` as a convenience.
|
|
33
33
|
*/
|
|
34
|
-
import type { IAdtWireResponse, IRfcErrorInfo } from '@mcp-abap-adt/interfaces-adt-connection';
|
|
34
|
+
import type { AdtSessionErrorCode, AdtSessionLoss, IAdtWireResponse, IRfcErrorInfo } from '@mcp-abap-adt/interfaces-adt-connection';
|
|
35
35
|
/**
|
|
36
36
|
* What an error strategy answers when the answer is **not** a failure.
|
|
37
37
|
*
|
|
@@ -73,7 +73,9 @@ export type AdtFailureOrigin =
|
|
|
73
73
|
* The network codes a request may fail with when no connection carried it to
|
|
74
74
|
* an answer: the system refused or reset the connection, its name did not
|
|
75
75
|
* resolve (`ENOTFOUND`, or `EAI_AGAIN` while the resolver could not answer),
|
|
76
|
-
* the connection timed out,
|
|
76
|
+
* the connection timed out, no route reached the host, or a write went to a
|
|
77
|
+
* socket the server had already reset (`EPIPE` — measured on an established
|
|
78
|
+
* connection, where the request's write met the reset before any answer).
|
|
77
79
|
*
|
|
78
80
|
* A closed list: an `origin: 'connection'` failure names its cause only when
|
|
79
81
|
* the code it was thrown with is one of these ({@link IAdtError.connectionCause}),
|
|
@@ -85,7 +87,7 @@ export type AdtFailureOrigin =
|
|
|
85
87
|
* `@mcp-abap-adt/interfaces-auth` (`TLS_FAILURE_CODES`), which this package
|
|
86
88
|
* does not depend on.
|
|
87
89
|
*/
|
|
88
|
-
export declare const ADT_CONNECTION_CAUSES: readonly ["ECONNREFUSED", "ECONNRESET", "ENOTFOUND", "EAI_AGAIN", "ETIMEDOUT", "EHOSTUNREACH", "ENETUNREACH"];
|
|
90
|
+
export declare const ADT_CONNECTION_CAUSES: readonly ["ECONNREFUSED", "ECONNRESET", "ENOTFOUND", "EAI_AGAIN", "ETIMEDOUT", "EHOSTUNREACH", "ENETUNREACH", "EPIPE"];
|
|
89
91
|
/** One of {@link ADT_CONNECTION_CAUSES}. */
|
|
90
92
|
export type AdtConnectionCause = (typeof ADT_CONNECTION_CAUSES)[number];
|
|
91
93
|
/**
|
|
@@ -209,6 +211,43 @@ export interface IAdtError {
|
|
|
209
211
|
* conforms; `| undefined` for `exactOptionalPropertyTypes`.
|
|
210
212
|
*/
|
|
211
213
|
readonly rfc?: IRfcErrorInfo | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* The connection's session error code an `origin: 'connection'` failure was
|
|
216
|
+
* thrown with, when it is one of `ADT_SESSION_ERROR`
|
|
217
|
+
* (`@mcp-abap-adt/interfaces-adt-connection`); absent for any other code,
|
|
218
|
+
* for no code, and for a refusal.
|
|
219
|
+
*
|
|
220
|
+
* Read which session failure it was from the field, never from `message`:
|
|
221
|
+
*
|
|
222
|
+
* ```typescript
|
|
223
|
+
* const answer = await debuggerApi.terminateDebugger();
|
|
224
|
+
* if (
|
|
225
|
+
* !answer.ok &&
|
|
226
|
+
* answer.getError().sessionError === ADT_SESSION_ERROR.NOT_CONNECTED
|
|
227
|
+
* ) {
|
|
228
|
+
* // the connection has no usable session: the instance is spent
|
|
229
|
+
* }
|
|
230
|
+
* ```
|
|
231
|
+
*
|
|
232
|
+
* Separate from {@link code}, which is the strategy's failure code. Optional,
|
|
233
|
+
* like `connectionCause`; `| undefined` for `exactOptionalPropertyTypes`.
|
|
234
|
+
*/
|
|
235
|
+
readonly sessionError?: AdtSessionErrorCode | undefined;
|
|
236
|
+
/**
|
|
237
|
+
* Present when the request this failure answers was answered with the SAP
|
|
238
|
+
* session replaced — the connection's `sessionLost` on its refusal or on the
|
|
239
|
+
* answer the refusal was read from: the answer is SAP's, and the
|
|
240
|
+
* connection's session is gone with it. Absent otherwise.
|
|
241
|
+
*
|
|
242
|
+
* ```typescript
|
|
243
|
+
* if (!answer.ok && answer.getError().sessionLost !== undefined) {
|
|
244
|
+
* // SAP's answer stands; this connection cannot be used again
|
|
245
|
+
* }
|
|
246
|
+
* ```
|
|
247
|
+
*
|
|
248
|
+
* Optional; `| undefined` for `exactOptionalPropertyTypes`.
|
|
249
|
+
*/
|
|
250
|
+
readonly sessionLost?: AdtSessionLoss | undefined;
|
|
212
251
|
}
|
|
213
252
|
/**
|
|
214
253
|
* The answer to a call: a result **or** a failure, never both and never neither.
|
|
@@ -255,7 +294,7 @@ export interface IAdtFailure<TError extends IAdtError = IAdtError> {
|
|
|
255
294
|
*
|
|
256
295
|
* **The two halves are not symmetric in how they vary, and saying otherwise was
|
|
257
296
|
* wrong.** An error strategy varies the *fullness of one contract*: `IAdtError`
|
|
258
|
-
* has two required fields and
|
|
297
|
+
* has two required fields and the rest optional, so `brief` and `full` are
|
|
259
298
|
* genuinely two amounts of it. A result cannot work that way: a hit shape with
|
|
260
299
|
* a required `description` cannot be returned with fewer fields without the
|
|
261
300
|
* compiler refusing.
|
|
@@ -270,10 +309,11 @@ export interface IAdtFailure<TError extends IAdtError = IAdtError> {
|
|
|
270
309
|
* at the call. They do not any more — a per-call parser is a second signature
|
|
271
310
|
* every implementer owes whether or not their callers use it.
|
|
272
311
|
*
|
|
273
|
-
* So what does this interface buy
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
312
|
+
* So what does this interface buy beyond `value`? It is the **named half of an
|
|
313
|
+
* answer**, the counterpart to `IAdtError`, and it is where anything a result
|
|
314
|
+
* needs to say *about itself* goes — since 27.3.0 `sessionLost`, the
|
|
315
|
+
* connection's word about the request the value was read from — stated as a
|
|
316
|
+
* contract, which is decision 19's rule for what a result may carry. What it must never hold is the
|
|
277
317
|
* transport frame: a `response` field was in the first draft and put `status`,
|
|
278
318
|
* `headers` and `data` back inside every result under one more layer of nesting.
|
|
279
319
|
*
|
|
@@ -289,6 +329,26 @@ export interface IAdtFailure<TError extends IAdtError = IAdtError> {
|
|
|
289
329
|
export interface IAdtResult<T> {
|
|
290
330
|
/** What the member promised — whatever this implementation reads. */
|
|
291
331
|
readonly value: T;
|
|
332
|
+
/**
|
|
333
|
+
* Present when the request whose answer this result was read from was
|
|
334
|
+
* answered with the SAP session replaced — the connection's `sessionLost` on
|
|
335
|
+
* that answer. SAP's answer stands — `value` is what the result strategy read
|
|
336
|
+
* from it — and the connection's session is gone with it, so the next
|
|
337
|
+
* request on it fails. Absent otherwise.
|
|
338
|
+
*
|
|
339
|
+
* The connection's word about the request, not a reading of the document, so
|
|
340
|
+
* it is here and not in `value`: it reaches the caller whatever result
|
|
341
|
+
* strategy made `value`.
|
|
342
|
+
*
|
|
343
|
+
* ```typescript
|
|
344
|
+
* if (answer.ok && answer.getResult().sessionLost !== undefined) {
|
|
345
|
+
* // use the value; open a new connection for what comes next
|
|
346
|
+
* }
|
|
347
|
+
* ```
|
|
348
|
+
*
|
|
349
|
+
* Optional; `| undefined` for `exactOptionalPropertyTypes`.
|
|
350
|
+
*/
|
|
351
|
+
readonly sessionLost?: AdtSessionLoss | undefined;
|
|
292
352
|
}
|
|
293
353
|
/**
|
|
294
354
|
* How an answer becomes a value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtResponse.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACd,MAAM,yCAAyC,CAAC;AAEjD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,EAAG,gBAAyB,CAAC;AAExD,sEAAsE;AACtE,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAC;AAEjD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,gBAAgB;AAC1B,iFAAiF;AAC/E,YAAY;AACd,oDAAoD;GAClD,SAAS,CAAC;AAEd
|
|
1
|
+
{"version":3,"file":"IAdtResponse.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtResponse.ts"],"names":[],"mappings":"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"}
|
package/dist/adt/IAdtResponse.js
CHANGED
|
@@ -53,7 +53,9 @@ exports.ADT_NO_FAILURE = 'adt:no-failure';
|
|
|
53
53
|
* The network codes a request may fail with when no connection carried it to
|
|
54
54
|
* an answer: the system refused or reset the connection, its name did not
|
|
55
55
|
* resolve (`ENOTFOUND`, or `EAI_AGAIN` while the resolver could not answer),
|
|
56
|
-
* the connection timed out,
|
|
56
|
+
* the connection timed out, no route reached the host, or a write went to a
|
|
57
|
+
* socket the server had already reset (`EPIPE` — measured on an established
|
|
58
|
+
* connection, where the request's write met the reset before any answer).
|
|
57
59
|
*
|
|
58
60
|
* A closed list: an `origin: 'connection'` failure names its cause only when
|
|
59
61
|
* the code it was thrown with is one of these ({@link IAdtError.connectionCause}),
|
|
@@ -73,4 +75,5 @@ exports.ADT_CONNECTION_CAUSES = [
|
|
|
73
75
|
'ETIMEDOUT',
|
|
74
76
|
'EHOSTUNREACH',
|
|
75
77
|
'ENETUNREACH',
|
|
78
|
+
'EPIPE',
|
|
76
79
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/interfaces-adt",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.3.0",
|
|
4
4
|
"description": "ADT contracts: object operations, runtime analysis, execution, feeds and service bindings",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"node": ">=18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mcp-abap-adt/interfaces-adt-connection": "^4.
|
|
39
|
+
"@mcp-abap-adt/interfaces-adt-connection": "^4.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^24.2.1",
|