@mcp-abap-adt/interfaces-adt 27.1.0 → 27.2.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 +15 -0
- package/README.md +8 -1
- package/dist/adt/IAdtResponse.d.ts +20 -1
- package/dist/adt/IAdtResponse.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [27.2.0] - 2026-11-12
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **`IAdtError.rfc?: IRfcErrorInfo | undefined`**: what the RFC SDK said
|
|
15
|
+
when an `origin: 'connection'` failure was thrown by an RFC call carrying it
|
|
16
|
+
(the connection's `rfc`: `key`, `group`, `code`, `codeString`), so a
|
|
17
|
+
consumer reads, say, `RFC_CLOSED` from the field rather than the message.
|
|
18
|
+
Optional: an error built for 27.1.0 still conforms.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- `@mcp-abap-adt/interfaces-adt-connection` is now `^4.1.0`, the release that
|
|
23
|
+
declares `IRfcErrorInfo`.
|
|
24
|
+
|
|
10
25
|
## [27.1.0] - 2026-11-10
|
|
11
26
|
|
|
12
27
|
### Added
|
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ 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` `^
|
|
32
|
+
- Depends on `@mcp-abap-adt/interfaces-adt-connection` `^4.1.0` (since 27.2.0: `IAdtError.rfc` is its `IRfcErrorInfo`, first declared in 4.1.0), and on nothing else. Types and constants; no implementation.
|
|
33
33
|
|
|
34
34
|
## Install
|
|
35
35
|
|
|
@@ -440,6 +440,13 @@ The list holds no TLS codes: they are `interfaces-auth`'s
|
|
|
440
440
|
alone. The field is optional, so a strategy that does not name the cause still
|
|
441
441
|
conforms. `src/__typechecks__/connectionCause.ts` holds these shapes.
|
|
442
442
|
|
|
443
|
+
An `IAdtError` of `origin: 'connection'` thrown by an RFC call may also carry
|
|
444
|
+
`rfc`: what the RFC SDK said, as `interfaces-adt-connection`'s
|
|
445
|
+
`IRfcErrorInfo` (`key`, `group`, `code`, `codeString`). A consumer reads the
|
|
446
|
+
outcome from `rfc.codeString` (`RFC_CLOSED`, say), never from `message`. The
|
|
447
|
+
field is absent for an HTTP failure and for a refusal, and optional, like
|
|
448
|
+
`connectionCause`. `src/__typechecks__/rfcField.ts` holds these shapes.
|
|
449
|
+
|
|
443
450
|
## Migrating to 27.0.0
|
|
444
451
|
|
|
445
452
|
- **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 { 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
|
*
|
|
@@ -190,6 +190,25 @@ export interface IAdtError {
|
|
|
190
190
|
* `exactOptionalPropertyTypes`.
|
|
191
191
|
*/
|
|
192
192
|
readonly connectionCause?: AdtConnectionCause | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* What the RFC SDK said, when an `origin: 'connection'` failure was thrown
|
|
195
|
+
* by an RFC call that carried it ({@link IRfcErrorInfo}, the connection's
|
|
196
|
+
* `rfc`); absent for an HTTP failure, for a refusal, and when the thrown
|
|
197
|
+
* value carried no such fields.
|
|
198
|
+
*
|
|
199
|
+
* Read the outcome from its fields, never from `message`:
|
|
200
|
+
*
|
|
201
|
+
* ```typescript
|
|
202
|
+
* const answer = await debuggerApi.terminateDebugger();
|
|
203
|
+
* if (!answer.ok && answer.getError().rfc?.codeString === 'RFC_CLOSED') {
|
|
204
|
+
* // the system closed the RFC conversation
|
|
205
|
+
* }
|
|
206
|
+
* ```
|
|
207
|
+
*
|
|
208
|
+
* Optional, like `connectionCause`: a strategy that does not carry it still
|
|
209
|
+
* conforms; `| undefined` for `exactOptionalPropertyTypes`.
|
|
210
|
+
*/
|
|
211
|
+
readonly rfc?: IRfcErrorInfo | undefined;
|
|
193
212
|
}
|
|
194
213
|
/**
|
|
195
214
|
* The answer to a call: a result **or** a failure, never both and never neither.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtResponse.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,
|
|
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,O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EAAE,EAAE,IAAI,CAAC;IAClB,SAAS,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;CACjC;AAaD,wEAAwE;AACxE,MAAM,WAAW,WAAW,CAAC,MAAM,SAAS,SAAS,GAAG,SAAS;IAC/D,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,IAAI,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,KAAK,CAAC,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,YAAY,CAAC,MAAM,EAAE,MAAM,SAAS,SAAS,GAAG,SAAS,IACjE,WAAW,CAAC,MAAM,CAAC,GACnB,WAAW,CAAC,MAAM,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/interfaces-adt",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.2.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": "^
|
|
39
|
+
"@mcp-abap-adt/interfaces-adt-connection": "^4.1.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^24.2.1",
|