@mcp-abap-adt/interfaces-adt 27.1.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 CHANGED
@@ -7,6 +7,50 @@ 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
+
39
+ ## [27.2.0] - 2026-11-12
40
+
41
+ ### Added
42
+
43
+ - **`IAdtError.rfc?: IRfcErrorInfo | undefined`**: what the RFC SDK said
44
+ when an `origin: 'connection'` failure was thrown by an RFC call carrying it
45
+ (the connection's `rfc`: `key`, `group`, `code`, `codeString`), so a
46
+ consumer reads, say, `RFC_CLOSED` from the field rather than the message.
47
+ Optional: an error built for 27.1.0 still conforms.
48
+
49
+ ### Changed
50
+
51
+ - `@mcp-abap-adt/interfaces-adt-connection` is now `^4.1.0`, the release that
52
+ declares `IRfcErrorInfo`.
53
+
10
54
  ## [27.1.0] - 2026-11-10
11
55
 
12
56
  ### 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
- - Depends on `@mcp-abap-adt/interfaces-adt-connection` `^3.0.0 || ^4.0.0` (since 26.1.0; 4.0.0's `getBaseUrl()` answering `undefined` reaches none of this package's types), and on nothing else. Types and constants; no implementation.
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 40 files that compile shapes this contract must and must not accept, and ships in no tarball.
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` — typed
435
- `AdtConnectionCause`. Any other code, or none, leaves the field absent. A
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
@@ -440,6 +442,46 @@ The list holds no TLS codes: they are `interfaces-auth`'s
440
442
  alone. The field is optional, so a strategy that does not name the cause still
441
443
  conforms. `src/__typechecks__/connectionCause.ts` holds these shapes.
442
444
 
445
+ An `IAdtError` of `origin: 'connection'` thrown by an RFC call may also carry
446
+ `rfc`: what the RFC SDK said, as `interfaces-adt-connection`'s
447
+ `IRfcErrorInfo` (`key`, `group`, `code`, `codeString`). A consumer reads the
448
+ outcome from `rfc.codeString` (`RFC_CLOSED`, say), never from `message`. The
449
+ field is absent for an HTTP failure and for a refusal, and optional, like
450
+ `connectionCause`. `src/__typechecks__/rfcField.ts` holds these shapes.
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
+
443
485
  ## Migrating to 27.0.0
444
486
 
445
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 } 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, or no route reached the host.
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
  /**
@@ -190,6 +192,62 @@ export interface IAdtError {
190
192
  * `exactOptionalPropertyTypes`.
191
193
  */
192
194
  readonly connectionCause?: AdtConnectionCause | undefined;
195
+ /**
196
+ * What the RFC SDK said, when an `origin: 'connection'` failure was thrown
197
+ * by an RFC call that carried it ({@link IRfcErrorInfo}, the connection's
198
+ * `rfc`); absent for an HTTP failure, for a refusal, and when the thrown
199
+ * value carried no such fields.
200
+ *
201
+ * Read the outcome from its fields, never from `message`:
202
+ *
203
+ * ```typescript
204
+ * const answer = await debuggerApi.terminateDebugger();
205
+ * if (!answer.ok && answer.getError().rfc?.codeString === 'RFC_CLOSED') {
206
+ * // the system closed the RFC conversation
207
+ * }
208
+ * ```
209
+ *
210
+ * Optional, like `connectionCause`: a strategy that does not carry it still
211
+ * conforms; `| undefined` for `exactOptionalPropertyTypes`.
212
+ */
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;
193
251
  }
194
252
  /**
195
253
  * The answer to a call: a result **or** a failure, never both and never neither.
@@ -236,7 +294,7 @@ export interface IAdtFailure<TError extends IAdtError = IAdtError> {
236
294
  *
237
295
  * **The two halves are not symmetric in how they vary, and saying otherwise was
238
296
  * wrong.** An error strategy varies the *fullness of one contract*: `IAdtError`
239
- * has two required fields and five optional ones, so `brief` and `full` are
297
+ * has two required fields and the rest optional, so `brief` and `full` are
240
298
  * genuinely two amounts of it. A result cannot work that way: a hit shape with
241
299
  * a required `description` cannot be returned with fewer fields without the
242
300
  * compiler refusing.
@@ -251,10 +309,11 @@ export interface IAdtFailure<TError extends IAdtError = IAdtError> {
251
309
  * at the call. They do not any more — a per-call parser is a second signature
252
310
  * every implementer owes whether or not their callers use it.
253
311
  *
254
- * So what does this interface buy, if it holds one field? It is the **named half
255
- * of an answer**, the counterpart to `IAdtError`, and it is where anything a
256
- * result needs to say *about itself* goes when a case for one appears — stated
257
- * as a contract, which is decision 19's rule for what a result may carry. What it must never hold is the
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
258
317
  * transport frame: a `response` field was in the first draft and put `status`,
259
318
  * `headers` and `data` back inside every result under one more layer of nesting.
260
319
  *
@@ -270,6 +329,26 @@ export interface IAdtFailure<TError extends IAdtError = IAdtError> {
270
329
  export interface IAdtResult<T> {
271
330
  /** What the member promised — whatever this implementation reads. */
272
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;
273
352
  }
274
353
  /**
275
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,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAEhF;;;;;;;;;;;;;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;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,qBAAqB,+GAQxB,CAAC;AAEX,4CAA4C;AAC5C,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,SAAS;IACxB,gCAAgC;IAChC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAElC;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAErC;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE;QACjB,QAA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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, or no route reached the host.
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.1.0",
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": "^3.0.0 || ^4.0.0"
39
+ "@mcp-abap-adt/interfaces-adt-connection": "^4.2.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^24.2.1",