@abapify/adt-services 0.0.0 → 0.4.5

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 CHANGED
@@ -1,3 +1,74 @@
1
1
  # @abapify/adt-services
2
2
 
3
- Placeholder. The real release is published via CI/CD.
3
+ Transport-agnostic ADT service layer shared by `@abapify/adt-cli`
4
+ (commander commands) and `@abapify/adt-mcp` (MCP tools).
5
+
6
+ [![npm](https://img.shields.io/npm/v/%40abapify%2Fadt-services.svg)](https://www.npmjs.com/package/@abapify/adt-services)
7
+
8
+ Business logic lives here so both transports delegate to the same code
9
+ paths: no `commander`, no `process.exit`, no interactive prompts, no
10
+ direct user-facing console output. Services return structured results and
11
+ throw `Error`s; transports decide how to present them.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm i @abapify/adt-services
17
+ # or
18
+ bun add @abapify/adt-services
19
+ ```
20
+
21
+ ## What's inside
22
+
23
+ | Export | Purpose |
24
+ | ------------------------- | --------------------------------------------------- |
25
+ | `services/connection` | ADT connection/discovery helpers |
26
+ | `services/source` | Source read/write with the SAP lock protocol |
27
+ | `services/source-history` | Source version history |
28
+ | `services/check` | ATC-style syntax checks |
29
+ | `services/checkin` | Plan/diff/apply local changes to SAP |
30
+ | `services/changeset` | Transactional batch operations |
31
+ | `services/import` | Transport/object import into the filesystem |
32
+ | `services/cts` | CTS transport queries |
33
+ | `services/badi` | BAdI implementation workflows |
34
+ | `services/classic-badi` | Classic BAdI workflows |
35
+ | `utils/adt-client-v2` | `getAdtClientV2()` — authenticated v2 client helper |
36
+ | `utils/auth` | `~/.adt` session/credential bridge |
37
+ | `utils/destinations` | Destination resolution |
38
+ | `utils/format-loader` | Object format plugin loading |
39
+ | `utils/lock-helpers` | Lock/unlock convenience wrappers |
40
+ | `utils/progress-reporter` | Structured progress callbacks for transports |
41
+
42
+ ## Usage
43
+
44
+ ```ts
45
+ import { getAdtClientV2, SourceService } from '@abapify/adt-services';
46
+
47
+ const client = getAdtClientV2();
48
+ const source = new SourceService();
49
+ const result = await source.read(client, '/sap/bc/adt/oo/classes/zcl_test');
50
+ ```
51
+
52
+ ## Architecture
53
+
54
+ ```
55
+ adt-cli (commander) ──┐
56
+ ├──► @abapify/adt-services ──► adt-client / adk / adt-locks
57
+ adt-mcp (MCP tools) ──┘
58
+ ```
59
+
60
+ The reverse direction (`adt-services` → `adt-cli`/`adt-mcp`) is forbidden.
61
+ `@abapify/adt-cli` re-exports these services from its own `index.ts` for
62
+ backwards compatibility.
63
+
64
+ ## Development
65
+
66
+ ```bash
67
+ bunx nx build adt-services
68
+ bunx nx test adt-services
69
+ bunx nx lint adt-services
70
+ ```
71
+
72
+ ## License
73
+
74
+ MIT