@mcp-abap-adt/compact-modify 14.0.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/LICENSE +202 -0
- package/NOTICE +17 -0
- package/README.md +32 -0
- package/dist/group.d.ts +30 -0
- package/dist/group.d.ts.map +1 -0
- package/dist/group.js +87 -0
- package/dist/group.js.map +1 -0
- package/dist/handlers/compactWriteRoutes.d.ts +16 -0
- package/dist/handlers/compactWriteRoutes.d.ts.map +1 -0
- package/dist/handlers/compactWriteRoutes.js +131 -0
- package/dist/handlers/compactWriteRoutes.js.map +1 -0
- package/dist/handlers/handleHandlerActivate.d.ts +74 -0
- package/dist/handlers/handleHandlerActivate.d.ts.map +1 -0
- package/dist/handlers/handleHandlerActivate.js +112 -0
- package/dist/handlers/handleHandlerActivate.js.map +1 -0
- package/dist/handlers/handleHandlerCreate.d.ts +227 -0
- package/dist/handlers/handleHandlerCreate.d.ts.map +1 -0
- package/dist/handlers/handleHandlerCreate.js +16 -0
- package/dist/handlers/handleHandlerCreate.js.map +1 -0
- package/dist/handlers/handleHandlerDelete.d.ts +92 -0
- package/dist/handlers/handleHandlerDelete.d.ts.map +1 -0
- package/dist/handlers/handleHandlerDelete.js +16 -0
- package/dist/handlers/handleHandlerDelete.js.map +1 -0
- package/dist/handlers/handleHandlerLock.d.ts +68 -0
- package/dist/handlers/handleHandlerLock.d.ts.map +1 -0
- package/dist/handlers/handleHandlerLock.js +26 -0
- package/dist/handlers/handleHandlerLock.js.map +1 -0
- package/dist/handlers/handleHandlerProfileRun.d.ts +115 -0
- package/dist/handlers/handleHandlerProfileRun.d.ts.map +1 -0
- package/dist/handlers/handleHandlerProfileRun.js +70 -0
- package/dist/handlers/handleHandlerProfileRun.js.map +1 -0
- package/dist/handlers/handleHandlerTransportCreate.d.ts +45 -0
- package/dist/handlers/handleHandlerTransportCreate.d.ts.map +1 -0
- package/dist/handlers/handleHandlerTransportCreate.js +16 -0
- package/dist/handlers/handleHandlerTransportCreate.js.map +1 -0
- package/dist/handlers/handleHandlerUnitTestRun.d.ts +124 -0
- package/dist/handlers/handleHandlerUnitTestRun.d.ts.map +1 -0
- package/dist/handlers/handleHandlerUnitTestRun.js +16 -0
- package/dist/handlers/handleHandlerUnitTestRun.js.map +1 -0
- package/dist/handlers/handleHandlerUnlock.d.ts +68 -0
- package/dist/handlers/handleHandlerUnlock.d.ts.map +1 -0
- package/dist/handlers/handleHandlerUnlock.js +26 -0
- package/dist/handlers/handleHandlerUnlock.js.map +1 -0
- package/dist/handlers/handleHandlerUpdate.d.ts +196 -0
- package/dist/handlers/handleHandlerUpdate.d.ts.map +1 -0
- package/dist/handlers/handleHandlerUpdate.js +16 -0
- package/dist/handlers/handleHandlerUpdate.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@mcp-abap-adt/lib
|
|
2
|
+
Copyright 2025-2026 Oleksii Kyslytsia and contributors
|
|
3
|
+
|
|
4
|
+
This product includes software developed as part of the mcp-abap-adt project
|
|
5
|
+
(https://github.com/fr0ster/mcp-abap-adt).
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0. See LICENSE.
|
|
8
|
+
|
|
9
|
+
Portions of this work originate from the mcp-abap-adt project as published by
|
|
10
|
+
mario-andreschak under the MIT License (releases up to and including 8.13.0),
|
|
11
|
+
and are redistributed here under the terms above. The MIT grant covering those
|
|
12
|
+
releases is unaffected: anyone may still obtain 8.13.0 or earlier under MIT.
|
|
13
|
+
See CONTRIBUTORS.md for the full account.
|
|
14
|
+
|
|
15
|
+
The standalone server built on this library is distributed separately as
|
|
16
|
+
@mcp-abap-adt/core under the GNU Affero General Public License v3.0 only. It is
|
|
17
|
+
not part of this package, and nothing here is subject to its terms.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @mcp-abap-adt/compact-modify
|
|
2
|
+
|
|
3
|
+
Compact modifying tools — 9 tools that write, lock, activate or execute.
|
|
4
|
+
|
|
5
|
+
## What compact is
|
|
6
|
+
|
|
7
|
+
A different decomposition of the same ABAP ADT surface: the **operation** is the
|
|
8
|
+
tool and the object moves into the arguments. Where the object-oriented surface has
|
|
9
|
+
`CreateClass`, `CreateDomain`, `CreateDdl` and so on, compact has one
|
|
10
|
+
`HandlerCreate` with `object_type`. Twenty-two tool schemas instead of hundreds.
|
|
11
|
+
|
|
12
|
+
It exists for a host that **cannot build a retrieval pipeline of its own** — a small
|
|
13
|
+
context, no tool-RAG, no way to select tools per request — and must still drive ABAP
|
|
14
|
+
through MCP reliably. A consumer that does select per request (cloud-llm-hub, for
|
|
15
|
+
one) has no use for it and should take `@mcp-abap-adt/lib` instead.
|
|
16
|
+
|
|
17
|
+
## Why two library packages
|
|
18
|
+
|
|
19
|
+
Capability is decided by what you import, not by a flag a caller can pass. A tool
|
|
20
|
+
list assembled from `@mcp-abap-adt/compact-readonly` has **no route to a write
|
|
21
|
+
handler in its module graph** — asserted against the graph, not against a list of
|
|
22
|
+
names, in `compact/src/__tests__/compactCapabilitySplit.test.ts`. The read-only
|
|
23
|
+
half depends on `@mcp-abap-adt/lib/handlers/read`; the modifying half on
|
|
24
|
+
`@mcp-abap-adt/lib/handlers/write`.
|
|
25
|
+
|
|
26
|
+
Note what this is not: both halves depend on `@mcp-abap-adt/lib`, so this is not a
|
|
27
|
+
smaller install, and it is not a sandbox — code that deliberately reaches into
|
|
28
|
+
`lib` can still call anything. It is a facade that offers no way to write.
|
|
29
|
+
|
|
30
|
+
## Licence
|
|
31
|
+
|
|
32
|
+
Apache-2.0. See LICENSE.
|
package/dist/group.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The compact tools that change the system, or run code on it — nine of the
|
|
3
|
+
* twenty-two.
|
|
4
|
+
*
|
|
5
|
+
* The other half of the capability split described in
|
|
6
|
+
* `CompactReadOnlyHandlersGroup`. Everything here either writes to the repository
|
|
7
|
+
* (`HandlerCreate`, `HandlerUpdate`, `HandlerDelete`, `HandlerActivate`,
|
|
8
|
+
* `HandlerTransportCreate`), takes an enqueue (`HandlerLock`, `HandlerUnlock` — a
|
|
9
|
+
* lock changes state and blocks other users), or executes ABAP and leaves traces
|
|
10
|
+
* (`HandlerUnitTestRun`, `HandlerProfileRun`).
|
|
11
|
+
*
|
|
12
|
+
* A consumer that wants the whole compact surface takes this group beside the
|
|
13
|
+
* read-only one, which is what `CompactHandlersGroup` does and what
|
|
14
|
+
* `--exposition=compact` serves.
|
|
15
|
+
*/
|
|
16
|
+
import type { HandlerContext, HandlerEntry } from '@mcp-abap-adt/lib/handlers';
|
|
17
|
+
import { BaseHandlerGroup } from '@mcp-abap-adt/lib/handlers';
|
|
18
|
+
/**
|
|
19
|
+
* The entries, built against a LIVE context rather than a snapshot.
|
|
20
|
+
*
|
|
21
|
+
* Same contract as the read-only half: the context is read per call, from
|
|
22
|
+
* whichever group owns the entry. See `compactReadOnlyEntries` for why a snapshot
|
|
23
|
+
* is wrong.
|
|
24
|
+
*/
|
|
25
|
+
export declare function compactModifyEntries(getContext: () => HandlerContext): HandlerEntry[];
|
|
26
|
+
export declare class CompactModifyHandlersGroup extends BaseHandlerGroup {
|
|
27
|
+
protected groupName: string;
|
|
28
|
+
getHandlers(): HandlerEntry[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../src/group.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAsC9D;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,cAAc,GAC/B,YAAY,EAAE,CA6ChB;AAED,qBAAa,0BAA2B,SAAQ,gBAAgB;IAC9D,SAAS,CAAC,SAAS,SAA2B;IAE9C,WAAW,IAAI,YAAY,EAAE;CAG9B"}
|
package/dist/group.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The compact tools that change the system, or run code on it — nine of the
|
|
4
|
+
* twenty-two.
|
|
5
|
+
*
|
|
6
|
+
* The other half of the capability split described in
|
|
7
|
+
* `CompactReadOnlyHandlersGroup`. Everything here either writes to the repository
|
|
8
|
+
* (`HandlerCreate`, `HandlerUpdate`, `HandlerDelete`, `HandlerActivate`,
|
|
9
|
+
* `HandlerTransportCreate`), takes an enqueue (`HandlerLock`, `HandlerUnlock` — a
|
|
10
|
+
* lock changes state and blocks other users), or executes ABAP and leaves traces
|
|
11
|
+
* (`HandlerUnitTestRun`, `HandlerProfileRun`).
|
|
12
|
+
*
|
|
13
|
+
* A consumer that wants the whole compact surface takes this group beside the
|
|
14
|
+
* read-only one, which is what `CompactHandlersGroup` does and what
|
|
15
|
+
* `--exposition=compact` serves.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CompactModifyHandlersGroup = void 0;
|
|
19
|
+
exports.compactModifyEntries = compactModifyEntries;
|
|
20
|
+
const handlers_1 = require("@mcp-abap-adt/lib/handlers");
|
|
21
|
+
const handleHandlerActivate_1 = require("./handlers/handleHandlerActivate");
|
|
22
|
+
const handleHandlerCreate_1 = require("./handlers/handleHandlerCreate");
|
|
23
|
+
const handleHandlerDelete_1 = require("./handlers/handleHandlerDelete");
|
|
24
|
+
const handleHandlerLock_1 = require("./handlers/handleHandlerLock");
|
|
25
|
+
const handleHandlerProfileRun_1 = require("./handlers/handleHandlerProfileRun");
|
|
26
|
+
const handleHandlerTransportCreate_1 = require("./handlers/handleHandlerTransportCreate");
|
|
27
|
+
const handleHandlerUnitTestRun_1 = require("./handlers/handleHandlerUnitTestRun");
|
|
28
|
+
const handleHandlerUnlock_1 = require("./handlers/handleHandlerUnlock");
|
|
29
|
+
const handleHandlerUpdate_1 = require("./handlers/handleHandlerUpdate");
|
|
30
|
+
/**
|
|
31
|
+
* The entries, built against a LIVE context rather than a snapshot.
|
|
32
|
+
*
|
|
33
|
+
* Same contract as the read-only half: the context is read per call, from
|
|
34
|
+
* whichever group owns the entry. See `compactReadOnlyEntries` for why a snapshot
|
|
35
|
+
* is wrong.
|
|
36
|
+
*/
|
|
37
|
+
function compactModifyEntries(getContext) {
|
|
38
|
+
const withContext = (handler) => {
|
|
39
|
+
return (args) => handler(getContext(), args);
|
|
40
|
+
};
|
|
41
|
+
return [
|
|
42
|
+
{
|
|
43
|
+
toolDefinition: handleHandlerCreate_1.TOOL_DEFINITION,
|
|
44
|
+
handler: withContext(handleHandlerCreate_1.handleHandlerCreate),
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
toolDefinition: handleHandlerUpdate_1.TOOL_DEFINITION,
|
|
48
|
+
handler: withContext(handleHandlerUpdate_1.handleHandlerUpdate),
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
toolDefinition: handleHandlerDelete_1.TOOL_DEFINITION,
|
|
52
|
+
handler: withContext(handleHandlerDelete_1.handleHandlerDelete),
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
toolDefinition: handleHandlerActivate_1.TOOL_DEFINITION,
|
|
56
|
+
handler: withContext(handleHandlerActivate_1.handleHandlerActivate),
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
toolDefinition: handleHandlerTransportCreate_1.TOOL_DEFINITION,
|
|
60
|
+
handler: withContext(handleHandlerTransportCreate_1.handleHandlerTransportCreate),
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
toolDefinition: handleHandlerLock_1.TOOL_DEFINITION,
|
|
64
|
+
handler: withContext(handleHandlerLock_1.handleHandlerLock),
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
toolDefinition: handleHandlerUnlock_1.TOOL_DEFINITION,
|
|
68
|
+
handler: withContext(handleHandlerUnlock_1.handleHandlerUnlock),
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
toolDefinition: handleHandlerUnitTestRun_1.TOOL_DEFINITION,
|
|
72
|
+
handler: withContext(handleHandlerUnitTestRun_1.handleHandlerUnitTestRun),
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
toolDefinition: handleHandlerProfileRun_1.TOOL_DEFINITION,
|
|
76
|
+
handler: withContext(handleHandlerProfileRun_1.handleHandlerProfileRun),
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
class CompactModifyHandlersGroup extends handlers_1.BaseHandlerGroup {
|
|
81
|
+
groupName = 'CompactModifyHandlers';
|
|
82
|
+
getHandlers() {
|
|
83
|
+
return compactModifyEntries(() => this.context);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.CompactModifyHandlersGroup = CompactModifyHandlersGroup;
|
|
87
|
+
//# sourceMappingURL=group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../src/group.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAgDH,oDA+CC;AA5FD,yDAA8D;AAC9D,4EAG0C;AAC1C,wEAGwC;AACxC,wEAGwC;AACxC,oEAGsC;AACtC,gFAG4C;AAC5C,0FAGiD;AACjD,kFAG6C;AAC7C,wEAGwC;AACxC,wEAGwC;AAExC;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAClC,UAAgC;IAEhC,MAAM,WAAW,GAAG,CAClB,OAA0D,EAC1D,EAAE;QACF,OAAO,CAAC,IAAa,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,IAAa,CAAC,CAAC;IACjE,CAAC,CAAC;IAEF,OAAO;QACL;YACE,cAAc,EAAE,qCAAkB;YAClC,OAAO,EAAE,WAAW,CAAC,yCAAmB,CAAC;SAC1C;QACD;YACE,cAAc,EAAE,qCAAkB;YAClC,OAAO,EAAE,WAAW,CAAC,yCAAmB,CAAC;SAC1C;QACD;YACE,cAAc,EAAE,qCAAkB;YAClC,OAAO,EAAE,WAAW,CAAC,yCAAmB,CAAC;SAC1C;QACD;YACE,cAAc,EAAE,uCAAoB;YACpC,OAAO,EAAE,WAAW,CAAC,6CAAqB,CAAC;SAC5C;QACD;YACE,cAAc,EAAE,8CAA2B;YAC3C,OAAO,EAAE,WAAW,CAAC,2DAA4B,CAAC;SACnD;QACD;YACE,cAAc,EAAE,mCAAgB;YAChC,OAAO,EAAE,WAAW,CAAC,qCAAiB,CAAC;SACxC;QACD;YACE,cAAc,EAAE,qCAAkB;YAClC,OAAO,EAAE,WAAW,CAAC,yCAAmB,CAAC;SAC1C;QACD;YACE,cAAc,EAAE,0CAAuB;YACvC,OAAO,EAAE,WAAW,CAAC,mDAAwB,CAAC;SAC/C;QACD;YACE,cAAc,EAAE,yCAAsB;YACtC,OAAO,EAAE,WAAW,CAAC,iDAAuB,CAAC;SAC9C;KACF,CAAC;AACJ,CAAC;AAED,MAAa,0BAA2B,SAAQ,2BAAgB;IACpD,SAAS,GAAG,uBAAuB,CAAC;IAE9C,WAAW;QACT,OAAO,oBAAoB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AAND,gEAMC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The compact WRITE routes: `object_type` to the handlers that change it.
|
|
3
|
+
*
|
|
4
|
+
* `create`, `update` and `delete`, kept apart from the read routes so that
|
|
5
|
+
* importing the read half cannot reach a write handler. Nothing here is reachable
|
|
6
|
+
* from `compactReadRoutes`, and a test asserts that of the module graph, not of
|
|
7
|
+
* the intention.
|
|
8
|
+
*/
|
|
9
|
+
import type { CompactCrudOperation, CompactObjectType } from '@mcp-abap-adt/lib/compact-shared';
|
|
10
|
+
import { type CompactRouterMap, dispatchCompact } from '@mcp-abap-adt/lib/compact-shared';
|
|
11
|
+
export declare const compactWriteRouterMap: CompactRouterMap;
|
|
12
|
+
/** Route a compact write: `create`, `update` or `delete`. */
|
|
13
|
+
export declare function routeCompactWrite(context: Parameters<typeof dispatchCompact>[0], operation: Exclude<CompactCrudOperation, 'get'>, args: {
|
|
14
|
+
object_type: CompactObjectType;
|
|
15
|
+
} & Record<string, unknown>): Promise<unknown>;
|
|
16
|
+
//# sourceMappingURL=compactWriteRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compactWriteRoutes.d.ts","sourceRoot":"","sources":["../../src/handlers/compactWriteRoutes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,KAAK,gBAAgB,EACrB,eAAe,EAChB,MAAM,kCAAkC,CAAC;AAiE1C,eAAO,MAAM,qBAAqB,EAAE,gBA+GnC,CAAC;AAEF,6DAA6D;AAC7D,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,EAC9C,SAAS,EAAE,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAC/C,IAAI,EAAE;IAAE,WAAW,EAAE,iBAAiB,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjE,OAAO,CAAC,OAAO,CAAC,CAElB"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The compact WRITE routes: `object_type` to the handlers that change it.
|
|
4
|
+
*
|
|
5
|
+
* `create`, `update` and `delete`, kept apart from the read routes so that
|
|
6
|
+
* importing the read half cannot reach a write handler. Nothing here is reachable
|
|
7
|
+
* from `compactReadRoutes`, and a test asserts that of the module graph, not of
|
|
8
|
+
* the intention.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.compactWriteRouterMap = void 0;
|
|
12
|
+
exports.routeCompactWrite = routeCompactWrite;
|
|
13
|
+
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
14
|
+
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
15
|
+
exports.compactWriteRouterMap = {
|
|
16
|
+
PACKAGE: {
|
|
17
|
+
create: write_1.handleCreatePackage,
|
|
18
|
+
},
|
|
19
|
+
DOMAIN: {
|
|
20
|
+
create: write_1.handleCreateDomain,
|
|
21
|
+
update: write_1.handleUpdateDomain,
|
|
22
|
+
delete: write_1.handleDeleteDomain,
|
|
23
|
+
},
|
|
24
|
+
DATA_ELEMENT: {
|
|
25
|
+
create: write_1.handleCreateDataElement,
|
|
26
|
+
update: write_1.handleUpdateDataElement,
|
|
27
|
+
delete: write_1.handleDeleteDataElement,
|
|
28
|
+
},
|
|
29
|
+
TRANSPORT: {
|
|
30
|
+
create: write_1.handleCreateTransport,
|
|
31
|
+
},
|
|
32
|
+
TABLE: {
|
|
33
|
+
create: write_1.handleCreateTable,
|
|
34
|
+
update: write_1.handleUpdateTable,
|
|
35
|
+
delete: write_1.handleDeleteTable,
|
|
36
|
+
},
|
|
37
|
+
STRUCTURE: {
|
|
38
|
+
create: write_1.handleCreateStructure,
|
|
39
|
+
update: write_1.handleUpdateStructure,
|
|
40
|
+
delete: write_1.handleDeleteStructure,
|
|
41
|
+
},
|
|
42
|
+
DDL: {
|
|
43
|
+
create: write_1.handleCreateDdl,
|
|
44
|
+
update: write_1.handleUpdateDdl,
|
|
45
|
+
delete: write_1.handleDeleteDdl,
|
|
46
|
+
},
|
|
47
|
+
SERVICE_DEFINITION: {
|
|
48
|
+
create: write_1.handleCreateServiceDefinition,
|
|
49
|
+
update: write_1.handleUpdateServiceDefinition,
|
|
50
|
+
delete: write_1.handleDeleteServiceDefinition,
|
|
51
|
+
},
|
|
52
|
+
SERVICE_BINDING: {
|
|
53
|
+
create: write_1.handleCreateServiceBinding,
|
|
54
|
+
update: write_1.handleUpdateServiceBinding,
|
|
55
|
+
delete: write_1.handleDeleteServiceBinding,
|
|
56
|
+
},
|
|
57
|
+
CLASS: {
|
|
58
|
+
create: write_1.handleCreateClass,
|
|
59
|
+
update: write_1.handleUpdateClass,
|
|
60
|
+
delete: write_1.handleDeleteClass,
|
|
61
|
+
},
|
|
62
|
+
UNIT_TEST: {
|
|
63
|
+
create: write_1.handleCreateUnitTest,
|
|
64
|
+
update: write_1.handleUpdateUnitTest,
|
|
65
|
+
delete: write_1.handleDeleteUnitTest,
|
|
66
|
+
},
|
|
67
|
+
CDS_UNIT_TEST: {
|
|
68
|
+
create: write_1.handleCreateCdsUnitTest,
|
|
69
|
+
update: write_1.handleUpdateCdsUnitTest,
|
|
70
|
+
delete: write_1.handleDeleteCdsUnitTest,
|
|
71
|
+
},
|
|
72
|
+
LOCAL_TEST_CLASS: {
|
|
73
|
+
update: write_1.handleUpdateLocalTestClass,
|
|
74
|
+
delete: write_1.handleDeleteLocalTestClass,
|
|
75
|
+
},
|
|
76
|
+
LOCAL_TYPES: {
|
|
77
|
+
update: write_1.handleUpdateLocalTypes,
|
|
78
|
+
delete: write_1.handleDeleteLocalTypes,
|
|
79
|
+
},
|
|
80
|
+
LOCAL_DEFINITIONS: {
|
|
81
|
+
update: write_1.handleUpdateLocalDefinitions,
|
|
82
|
+
delete: write_1.handleDeleteLocalDefinitions,
|
|
83
|
+
},
|
|
84
|
+
LOCAL_MACROS: {
|
|
85
|
+
update: write_1.handleUpdateLocalMacros,
|
|
86
|
+
delete: write_1.handleDeleteLocalMacros,
|
|
87
|
+
},
|
|
88
|
+
PROGRAM: {
|
|
89
|
+
create: write_1.handleCreateProgram,
|
|
90
|
+
update: write_1.handleUpdateProgram,
|
|
91
|
+
delete: write_1.handleDeleteProgram,
|
|
92
|
+
},
|
|
93
|
+
INTERFACE: {
|
|
94
|
+
create: write_1.handleCreateInterface,
|
|
95
|
+
update: write_1.handleUpdateInterface,
|
|
96
|
+
delete: write_1.handleDeleteInterface,
|
|
97
|
+
},
|
|
98
|
+
FUNCTION_GROUP: {
|
|
99
|
+
create: write_1.handleCreateFunctionGroup,
|
|
100
|
+
update: write_1.handleUpdateFunctionGroup,
|
|
101
|
+
delete: write_1.handleDeleteFunctionGroup,
|
|
102
|
+
},
|
|
103
|
+
FUNCTION_MODULE: {
|
|
104
|
+
create: write_1.handleCreateFunctionModule,
|
|
105
|
+
update: write_1.handleUpdateFunctionModule,
|
|
106
|
+
delete: write_1.handleDeleteFunctionModule,
|
|
107
|
+
},
|
|
108
|
+
BEHAVIOR_DEFINITION: {
|
|
109
|
+
create: write_1.handleCreateBehaviorDefinition,
|
|
110
|
+
update: write_1.handleUpdateBehaviorDefinition,
|
|
111
|
+
delete: write_1.handleDeleteBehaviorDefinition,
|
|
112
|
+
},
|
|
113
|
+
BEHAVIOR_IMPLEMENTATION: {
|
|
114
|
+
create: write_1.handleCreateBehaviorImplementation,
|
|
115
|
+
update: write_1.handleUpdateBehaviorImplementation,
|
|
116
|
+
delete: write_1.handleDeleteBehaviorImplementation,
|
|
117
|
+
},
|
|
118
|
+
METADATA_EXTENSION: {
|
|
119
|
+
create: write_1.handleCreateMetadataExtension,
|
|
120
|
+
update: write_1.handleUpdateMetadataExtension,
|
|
121
|
+
delete: write_1.handleDeleteMetadataExtension,
|
|
122
|
+
},
|
|
123
|
+
// No CRUD: a profiler run and a dump are read through their own tools.
|
|
124
|
+
RUNTIME_PROFILE: {},
|
|
125
|
+
RUNTIME_DUMP: {},
|
|
126
|
+
};
|
|
127
|
+
/** Route a compact write: `create`, `update` or `delete`. */
|
|
128
|
+
async function routeCompactWrite(context, operation, args) {
|
|
129
|
+
return (0, compact_shared_1.dispatchCompact)(context, exports.compactWriteRouterMap, operation, args);
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=compactWriteRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compactWriteRoutes.js","sourceRoot":"","sources":["../../src/handlers/compactWriteRoutes.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { IObjectReference } from '@mcp-abap-adt/interfaces-adt';
|
|
2
|
+
import { type CompactObjectType } from '@mcp-abap-adt/lib/compact-shared';
|
|
3
|
+
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
4
|
+
export declare const TOOL_DEFINITION: {
|
|
5
|
+
readonly name: "HandlerActivate";
|
|
6
|
+
readonly available_in: readonly ["onprem", "cloud"];
|
|
7
|
+
readonly description: "Activate operation. Single mode(object_name*, object_type or object_adt_type*). object_type is enough for CLASS, PROGRAM [onprem only], INTERFACE, FUNCTION_GROUP, TABLE, STRUCTURE, DDL, DOMAIN, DATA_ELEMENT, BEHAVIOR_DEFINITION, METADATA_EXTENSION, PACKAGE, SERVICE_DEFINITION and SERVICE_BINDING; any other type needs object_adt_type (e.g. \"CLAS/OC\"). FUNCTION_MODULE needs the batch mode with objects[].parentName set to its function group, because a module is addressed under the group. Batch mode(objects[].name*, objects[].type*, objects[].parentName, objects[].uri).";
|
|
8
|
+
readonly inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly object_type: {
|
|
12
|
+
readonly description: "ABAP object type for routed compact operation. For single-object activation, this alone is enough \u2014 no ADT type code needed.";
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly enum: import("../../../dist/lib/compact/compactObjectTypes").CompactObjectType[];
|
|
15
|
+
};
|
|
16
|
+
readonly object_name: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly description: "Object name for single-object activation form.";
|
|
19
|
+
};
|
|
20
|
+
readonly object_adt_type: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly description: "ADT object type code (e.g. CLAS/OC, PROG/P), for a type object_type does not cover. Only needed when object_type is not enough; prefer object_type otherwise.";
|
|
23
|
+
};
|
|
24
|
+
readonly objects: {
|
|
25
|
+
readonly type: "array";
|
|
26
|
+
readonly description: "Explicit objects list for batch activation.";
|
|
27
|
+
readonly items: {
|
|
28
|
+
readonly type: "object";
|
|
29
|
+
readonly properties: {
|
|
30
|
+
readonly name: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly description: "Object name.";
|
|
33
|
+
};
|
|
34
|
+
readonly type: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
readonly description: "ADT object type code.";
|
|
37
|
+
};
|
|
38
|
+
readonly uri: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly description: "Optional ADT object URI.";
|
|
41
|
+
};
|
|
42
|
+
readonly parentName: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
readonly description: "Owning object, for a part of one \u2014 a function module needs its function group here, or the address is built under a group named after the module.";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly required: readonly ["name", "type"];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly preaudit: {
|
|
51
|
+
readonly type: "boolean";
|
|
52
|
+
readonly description: "Run pre-audit checks before activation.";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type HandlerActivateArgs = {
|
|
58
|
+
object_type?: CompactObjectType;
|
|
59
|
+
object_name?: string;
|
|
60
|
+
object_adt_type?: string;
|
|
61
|
+
objects?: Array<IObjectReference & {
|
|
62
|
+
uri?: string;
|
|
63
|
+
}>;
|
|
64
|
+
preaudit?: boolean;
|
|
65
|
+
};
|
|
66
|
+
export declare function handleHandlerActivate(context: HandlerContext, args: HandlerActivateArgs): Promise<{
|
|
67
|
+
isError: boolean;
|
|
68
|
+
content: {
|
|
69
|
+
type: string;
|
|
70
|
+
text: string;
|
|
71
|
+
}[];
|
|
72
|
+
}>;
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=handleHandlerActivate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerActivate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerActivate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAgEjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,mBAAmB,GAAG;IACzB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,gBAAgB,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,mBAAmB;;;;;;GAoD1B"}
|