@mcp-abap-adt/compact-modify 18.0.0 → 19.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/README.md +3 -3
- package/dist/group.d.ts +9 -7
- package/dist/group.d.ts.map +1 -1
- package/dist/group.js +24 -7
- package/dist/group.js.map +1 -1
- package/dist/handlers/compactConfirmWith.d.ts +17 -0
- package/dist/handlers/compactConfirmWith.d.ts.map +1 -0
- package/dist/handlers/compactConfirmWith.js +39 -0
- package/dist/handlers/compactConfirmWith.js.map +1 -0
- package/dist/handlers/compactWriteRoutes.d.ts.map +1 -1
- package/dist/handlers/compactWriteRoutes.js +80 -61
- package/dist/handlers/compactWriteRoutes.js.map +1 -1
- package/dist/handlers/handleHandlerActivate.d.ts +6 -6
- package/dist/handlers/handleHandlerActivate.js +4 -4
- package/dist/handlers/handleHandlerActivate.js.map +1 -1
- package/dist/handlers/handleHandlerCreate.d.ts +64 -109
- package/dist/handlers/handleHandlerCreate.d.ts.map +1 -1
- package/dist/handlers/handleHandlerCreate.js +2 -1
- package/dist/handlers/handleHandlerCreate.js.map +1 -1
- package/dist/handlers/handleHandlerDelete.d.ts +12 -4
- package/dist/handlers/handleHandlerDelete.d.ts.map +1 -1
- package/dist/handlers/handleHandlerDelete.js +1 -1
- package/dist/handlers/handleHandlerDelete.js.map +1 -1
- package/dist/handlers/handleHandlerLock.d.ts +11 -38
- package/dist/handlers/handleHandlerLock.d.ts.map +1 -1
- package/dist/handlers/handleHandlerLock.js +39 -6
- package/dist/handlers/handleHandlerLock.js.map +1 -1
- package/dist/handlers/handleHandlerProfileRun.d.ts +16 -76
- package/dist/handlers/handleHandlerProfileRun.d.ts.map +1 -1
- package/dist/handlers/handleHandlerProfileRun.js +10 -54
- package/dist/handlers/handleHandlerProfileRun.js.map +1 -1
- package/dist/handlers/handleHandlerProfileSchedule.d.ts +72 -0
- package/dist/handlers/handleHandlerProfileSchedule.d.ts.map +1 -0
- package/dist/handlers/handleHandlerProfileSchedule.js +17 -0
- package/dist/handlers/handleHandlerProfileSchedule.js.map +1 -0
- package/dist/handlers/handleHandlerTransportCreate.d.ts +1 -1
- package/dist/handlers/handleHandlerTransportCreate.js +1 -1
- package/dist/handlers/handleHandlerTransportCreate.js.map +1 -1
- package/dist/handlers/handleHandlerTransportMoveObjects.d.ts +67 -0
- package/dist/handlers/handleHandlerTransportMoveObjects.d.ts.map +1 -0
- package/dist/handlers/handleHandlerTransportMoveObjects.js +17 -0
- package/dist/handlers/handleHandlerTransportMoveObjects.js.map +1 -0
- package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts +28 -0
- package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts.map +1 -0
- package/dist/handlers/handleHandlerTransportSortAndCompress.js +17 -0
- package/dist/handlers/handleHandlerTransportSortAndCompress.js.map +1 -0
- package/dist/handlers/handleHandlerUnitTestRun.d.ts +1 -1
- package/dist/handlers/handleHandlerUnitTestRun.js +1 -1
- package/dist/handlers/handleHandlerUnitTestRun.js.map +1 -1
- package/dist/handlers/handleHandlerUnlock.d.ts +8 -34
- package/dist/handlers/handleHandlerUnlock.d.ts.map +1 -1
- package/dist/handlers/handleHandlerUnlock.js +31 -6
- package/dist/handlers/handleHandlerUnlock.js.map +1 -1
- package/dist/handlers/handleHandlerUpdate.d.ts +18 -67
- package/dist/handlers/handleHandlerUpdate.d.ts.map +1 -1
- package/dist/handlers/handleHandlerUpdate.js +2 -1
- package/dist/handlers/handleHandlerUpdate.js.map +1 -1
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
|
3
3
|
export declare const TOOL_DEFINITION: {
|
|
4
4
|
readonly name: "HandlerCreate";
|
|
5
5
|
readonly available_in: readonly ["onprem", "cloud"];
|
|
6
|
-
readonly description: "
|
|
6
|
+
readonly description: "Creates the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the create request for its type with the given parameters, and answers SAP's result. The object is created inactive. object_type required: PACKAGE(package_name*, super_package*), DOMAIN(domain_name*, package_name*), DATA_ELEMENT(data_element_name*, package_name*), TRANSPORT(description*), TABLE(table_name*, package_name*), STRUCTURE(structure_name*, package_name*), DDL(ddl_name*, package_name*), SERVICE_DEFINITION(service_definition_name*, package_name*), SERVICE_BINDING(service_binding_name*, service_definition_name*, package_name*), CLASS(class_name*, package_name*), PROGRAM(program_name*, package_name*) [onprem only], INTERFACE(interface_name*, package_name*), FUNCTION_GROUP(function_group_name*, package_name*), FUNCTION_MODULE(function_module_name*, function_group_name*), BEHAVIOR_DEFINITION(name*, package_name*, implementation_type*), BEHAVIOR_IMPLEMENTATION(class_name*, package_name*), METADATA_EXTENSION(name*, package_name*). Optional for every type: description, transport_request.";
|
|
7
7
|
readonly inputSchema: {
|
|
8
8
|
readonly type: "object";
|
|
9
9
|
readonly properties: {
|
|
@@ -14,7 +14,7 @@ export declare const TOOL_DEFINITION: {
|
|
|
14
14
|
};
|
|
15
15
|
readonly class_name: {
|
|
16
16
|
readonly type: "string";
|
|
17
|
-
readonly description: "ABAP class name.";
|
|
17
|
+
readonly description: "ABAP class name (CLASS, BEHAVIOR_IMPLEMENTATION).";
|
|
18
18
|
};
|
|
19
19
|
readonly program_name: {
|
|
20
20
|
readonly type: "string";
|
|
@@ -30,7 +30,7 @@ export declare const TOOL_DEFINITION: {
|
|
|
30
30
|
};
|
|
31
31
|
readonly function_group_name: {
|
|
32
32
|
readonly type: "string";
|
|
33
|
-
readonly description: "ABAP function group name.";
|
|
33
|
+
readonly description: "ABAP function group name (FUNCTION_GROUP; the group of a FUNCTION_MODULE).";
|
|
34
34
|
};
|
|
35
35
|
readonly package_name: {
|
|
36
36
|
readonly type: "string";
|
|
@@ -48,63 +48,66 @@ export declare const TOOL_DEFINITION: {
|
|
|
48
48
|
readonly type: "string";
|
|
49
49
|
readonly description: "Transport request id (if required by system).";
|
|
50
50
|
};
|
|
51
|
-
readonly
|
|
52
|
-
readonly type: "
|
|
53
|
-
readonly description: "
|
|
51
|
+
readonly master_language: {
|
|
52
|
+
readonly type: "string";
|
|
53
|
+
readonly description: "Original language of the created object; the session language when absent.";
|
|
54
54
|
};
|
|
55
|
-
readonly
|
|
55
|
+
readonly super_package: {
|
|
56
56
|
readonly type: "string";
|
|
57
|
-
readonly description: "
|
|
57
|
+
readonly description: "Super package (PACKAGE create).";
|
|
58
58
|
};
|
|
59
|
-
readonly
|
|
59
|
+
readonly package_type: {
|
|
60
60
|
readonly type: "string";
|
|
61
|
-
readonly description: "
|
|
61
|
+
readonly description: "Package type (PACKAGE create).";
|
|
62
62
|
};
|
|
63
|
-
readonly
|
|
63
|
+
readonly software_component: {
|
|
64
64
|
readonly type: "string";
|
|
65
|
-
readonly description: "
|
|
65
|
+
readonly description: "Software component (PACKAGE create).";
|
|
66
66
|
};
|
|
67
|
-
readonly
|
|
68
|
-
readonly type: "
|
|
69
|
-
readonly description: "
|
|
67
|
+
readonly transport_layer: {
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
readonly description: "Transport layer (PACKAGE create).";
|
|
70
|
+
};
|
|
71
|
+
readonly record_changes: {
|
|
72
|
+
readonly type: "boolean";
|
|
73
|
+
readonly description: "Record changes (PACKAGE create).";
|
|
70
74
|
};
|
|
71
|
-
readonly
|
|
72
|
-
readonly type: "
|
|
73
|
-
readonly description: "
|
|
75
|
+
readonly application_component: {
|
|
76
|
+
readonly type: "string";
|
|
77
|
+
readonly description: "Application component (PACKAGE create).";
|
|
74
78
|
};
|
|
75
|
-
readonly
|
|
79
|
+
readonly transport_type: {
|
|
76
80
|
readonly type: "string";
|
|
77
|
-
readonly
|
|
81
|
+
readonly enum: readonly ["workbench", "customizing"];
|
|
82
|
+
readonly description: "Transport request type (TRANSPORT create).";
|
|
78
83
|
};
|
|
79
|
-
readonly
|
|
84
|
+
readonly target_system: {
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly description: "Target system of the transport request (TRANSPORT create).";
|
|
87
|
+
};
|
|
88
|
+
readonly owner: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
readonly description: "Owner of the transport request (TRANSPORT create).";
|
|
91
|
+
};
|
|
92
|
+
readonly superclass: {
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
readonly description: "Superclass name (CLASS create).";
|
|
95
|
+
};
|
|
96
|
+
readonly final: {
|
|
80
97
|
readonly type: "boolean";
|
|
81
|
-
readonly description: "
|
|
98
|
+
readonly description: "Mark the class final (CLASS create).";
|
|
82
99
|
};
|
|
83
|
-
readonly
|
|
100
|
+
readonly create_protected: {
|
|
84
101
|
readonly type: "boolean";
|
|
85
|
-
readonly description: "
|
|
86
|
-
};
|
|
87
|
-
readonly
|
|
88
|
-
readonly type: "string";
|
|
89
|
-
readonly description: "
|
|
90
|
-
};
|
|
91
|
-
readonly
|
|
92
|
-
readonly type: "
|
|
93
|
-
readonly description: "
|
|
94
|
-
readonly items: {
|
|
95
|
-
readonly type: "object";
|
|
96
|
-
readonly properties: {
|
|
97
|
-
readonly low: {
|
|
98
|
-
readonly type: "string";
|
|
99
|
-
readonly description: "Fixed value key.";
|
|
100
|
-
};
|
|
101
|
-
readonly text: {
|
|
102
|
-
readonly type: "string";
|
|
103
|
-
readonly description: "Fixed value text.";
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
readonly required: readonly ["low", "text"];
|
|
107
|
-
};
|
|
102
|
+
readonly description: "Protected constructor (CLASS create).";
|
|
103
|
+
};
|
|
104
|
+
readonly program_type: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly description: "ABAP program type (PROGRAM create).";
|
|
107
|
+
};
|
|
108
|
+
readonly application: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
readonly description: "Application area (PROGRAM create).";
|
|
108
111
|
};
|
|
109
112
|
readonly table_name: {
|
|
110
113
|
readonly type: "string";
|
|
@@ -124,83 +127,34 @@ export declare const TOOL_DEFINITION: {
|
|
|
124
127
|
};
|
|
125
128
|
readonly service_definition_name: {
|
|
126
129
|
readonly type: "string";
|
|
127
|
-
readonly description: "Service definition name.";
|
|
130
|
+
readonly description: "Service definition name (SERVICE_DEFINITION; the definition a SERVICE_BINDING binds).";
|
|
128
131
|
};
|
|
129
132
|
readonly service_binding_name: {
|
|
130
133
|
readonly type: "string";
|
|
131
134
|
readonly description: "Service binding name.";
|
|
132
135
|
};
|
|
133
|
-
readonly
|
|
136
|
+
readonly service_name: {
|
|
134
137
|
readonly type: "string";
|
|
135
|
-
readonly description: "
|
|
138
|
+
readonly description: "Service name of the binding (SERVICE_BINDING create); the binding name when absent.";
|
|
136
139
|
};
|
|
137
|
-
readonly
|
|
140
|
+
readonly service_version: {
|
|
138
141
|
readonly type: "string";
|
|
139
|
-
readonly description: "
|
|
142
|
+
readonly description: "Service version of the binding (SERVICE_BINDING create); 0001 when absent.";
|
|
143
|
+
};
|
|
144
|
+
readonly binding_variant: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
|
|
147
|
+
readonly description: "Binding variant (SERVICE_BINDING create); ODATA_V4_UI when absent.";
|
|
148
|
+
};
|
|
149
|
+
readonly name: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
|
|
140
152
|
};
|
|
141
153
|
readonly implementation_type: {
|
|
142
154
|
readonly type: "string";
|
|
143
155
|
readonly enum: readonly ["Managed", "Unmanaged", "Abstract", "Projection"];
|
|
144
156
|
readonly description: "Behavior definition implementation type.";
|
|
145
157
|
};
|
|
146
|
-
readonly behavior_definition: {
|
|
147
|
-
readonly type: "string";
|
|
148
|
-
readonly description: "Referenced behavior definition name (behavior implementation create).";
|
|
149
|
-
};
|
|
150
|
-
readonly cds_view_name: {
|
|
151
|
-
readonly type: "string";
|
|
152
|
-
readonly description: "CDS view name to validate for unit test doubles.";
|
|
153
|
-
};
|
|
154
|
-
readonly fields: {
|
|
155
|
-
readonly type: "array";
|
|
156
|
-
readonly description: "Structure fields (for STRUCTURE create).";
|
|
157
|
-
readonly items: {
|
|
158
|
-
readonly type: "object";
|
|
159
|
-
readonly properties: {
|
|
160
|
-
readonly name: {
|
|
161
|
-
readonly type: "string";
|
|
162
|
-
readonly description: "Field name.";
|
|
163
|
-
};
|
|
164
|
-
readonly data_type: {
|
|
165
|
-
readonly type: "string";
|
|
166
|
-
readonly description: "Field data type.";
|
|
167
|
-
};
|
|
168
|
-
readonly length: {
|
|
169
|
-
readonly type: "number";
|
|
170
|
-
readonly description: "Field length.";
|
|
171
|
-
};
|
|
172
|
-
readonly decimals: {
|
|
173
|
-
readonly type: "number";
|
|
174
|
-
readonly description: "Decimal places.";
|
|
175
|
-
};
|
|
176
|
-
readonly domain: {
|
|
177
|
-
readonly type: "string";
|
|
178
|
-
readonly description: "Domain reference.";
|
|
179
|
-
};
|
|
180
|
-
readonly data_element: {
|
|
181
|
-
readonly type: "string";
|
|
182
|
-
readonly description: "Data element reference.";
|
|
183
|
-
};
|
|
184
|
-
readonly structure_ref: {
|
|
185
|
-
readonly type: "string";
|
|
186
|
-
readonly description: "Included structure reference.";
|
|
187
|
-
};
|
|
188
|
-
readonly table_ref: {
|
|
189
|
-
readonly type: "string";
|
|
190
|
-
readonly description: "Table type reference.";
|
|
191
|
-
};
|
|
192
|
-
readonly description: {
|
|
193
|
-
readonly type: "string";
|
|
194
|
-
readonly description: "Field description.";
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
readonly required: readonly ["name"];
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
readonly test_class_source: {
|
|
201
|
-
readonly type: "string";
|
|
202
|
-
readonly description: "ABAP source of the local test classes (UNIT_TEST and CDS_UNIT_TEST create).";
|
|
203
|
-
};
|
|
204
158
|
};
|
|
205
159
|
readonly required: readonly ["object_type"];
|
|
206
160
|
};
|
|
@@ -208,6 +162,7 @@ export declare const TOOL_DEFINITION: {
|
|
|
208
162
|
type HandlerCreateArgs = {
|
|
209
163
|
object_type: CompactObjectType;
|
|
210
164
|
} & Record<string, unknown>;
|
|
165
|
+
/** One request: the type's create alone (`handleCreateOnly`, spec §4.6). */
|
|
211
166
|
export declare function handleHandlerCreate(context: HandlerContext, args: HandlerCreateArgs): Promise<unknown>;
|
|
212
167
|
export {};
|
|
213
168
|
//# sourceMappingURL=handleHandlerCreate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHandlerCreate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerCreate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"handleHandlerCreate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerCreate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,iBAAiB,CAAA;CAAE,GAAG,MAAM,CAClE,MAAM,EACN,OAAO,CACR,CAAC;AAEF,4EAA4E;AAC5E,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB,oBAGxB"}
|
|
@@ -7,9 +7,10 @@ const compactWriteRoutes_1 = require("./compactWriteRoutes");
|
|
|
7
7
|
exports.TOOL_DEFINITION = {
|
|
8
8
|
name: 'HandlerCreate',
|
|
9
9
|
available_in: ['onprem', 'cloud'],
|
|
10
|
-
description: '
|
|
10
|
+
description: "Creates the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the create request for its type with the given parameters, and answers SAP's result. The object is created inactive. object_type required: PACKAGE(package_name*, super_package*), DOMAIN(domain_name*, package_name*), DATA_ELEMENT(data_element_name*, package_name*), TRANSPORT(description*), TABLE(table_name*, package_name*), STRUCTURE(structure_name*, package_name*), DDL(ddl_name*, package_name*), SERVICE_DEFINITION(service_definition_name*, package_name*), SERVICE_BINDING(service_binding_name*, service_definition_name*, package_name*), CLASS(class_name*, package_name*), PROGRAM(program_name*, package_name*) [onprem only], INTERFACE(interface_name*, package_name*), FUNCTION_GROUP(function_group_name*, package_name*), FUNCTION_MODULE(function_module_name*, function_group_name*), BEHAVIOR_DEFINITION(name*, package_name*, implementation_type*), BEHAVIOR_IMPLEMENTATION(class_name*, package_name*), METADATA_EXTENSION(name*, package_name*). Optional for every type: description, transport_request.",
|
|
11
11
|
inputSchema: compact_shared_1.compactCreateSchema,
|
|
12
12
|
};
|
|
13
|
+
/** One request: the type's create alone (`handleCreateOnly`, spec §4.6). */
|
|
13
14
|
async function handleHandlerCreate(context, args) {
|
|
14
15
|
return (0, compactWriteRoutes_1.routeCompactWrite)(context, 'create', args);
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHandlerCreate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerCreate.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"handleHandlerCreate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerCreate.ts"],"names":[],"mappings":";;;AAmBA,kDAKC;AAvBD,qEAAuE;AAEvE,6DAAyD;AAE5C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,umCAAumC;IACzmC,WAAW,EAAE,oCAAmB;CACxB,CAAC;AAOX,4EAA4E;AACrE,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -3,14 +3,22 @@ import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
|
3
3
|
export declare const TOOL_DEFINITION: {
|
|
4
4
|
readonly name: "HandlerDelete";
|
|
5
5
|
readonly available_in: readonly ["onprem", "cloud"];
|
|
6
|
-
readonly description: "
|
|
6
|
+
readonly description: "Deletes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the deletion request for its type, and answers SAP's result. object_type required: PACKAGE(package_name*, transport_request), DOMAIN(domain_name*, transport_request), DATA_ELEMENT(data_element_name*, transport_request), TABLE(table_name*, transport_request), STRUCTURE(structure_name*, transport_request), DDL(ddl_name*, transport_request), SERVICE_DEFINITION(service_definition_name*, transport_request), SERVICE_BINDING(service_binding_name*, transport_request), CLASS(class_name*, transport_request), CDS_UNIT_TEST(class_name*, transport_request), PROGRAM(program_name*, transport_request) [onprem only], INTERFACE(interface_name*, transport_request), FUNCTION_GROUP(function_group_name*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, transport_request), BEHAVIOR_DEFINITION(behavior_definition_name*, transport_request), BEHAVIOR_IMPLEMENTATION(behavior_implementation_name*, transport_request), METADATA_EXTENSION(metadata_extension_name*, transport_request), LOCAL_TEST_CLASS(class_name*, lock_handle*, transport_request), LOCAL_TYPES(class_name*, lock_handle*, transport_request), LOCAL_DEFINITIONS(class_name*, lock_handle*, transport_request), LOCAL_MACROS(class_name*, lock_handle*, transport_request), UNIT_TEST(class_name*, lock_handle*, transport_request). CDS_UNIT_TEST deletes its test class. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS and LOCAL_MACROS (the class's local includes) and UNIT_TEST (its test classes include) the include is written empty under lock_handle, the class's lock handle. transport_request is sent with the request. Over Streamable HTTP an include write carries the lock's state_handle in the x-mcp-state-handle header: it is sent only under a lock the instance it reaches holds.";
|
|
7
7
|
readonly inputSchema: {
|
|
8
8
|
readonly type: "object";
|
|
9
9
|
readonly properties: {
|
|
10
10
|
readonly object_type: {
|
|
11
11
|
readonly type: "string";
|
|
12
|
-
readonly enum:
|
|
13
|
-
readonly description:
|
|
12
|
+
readonly enum: readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "SERVICE_BINDING", "CLASS", "CDS_UNIT_TEST", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST"];
|
|
13
|
+
readonly description: `Object type. Supported: ${string}.`;
|
|
14
|
+
};
|
|
15
|
+
readonly lock_handle: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly description: "The lock handle of the class (LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST): the include is written empty under it.";
|
|
18
|
+
};
|
|
19
|
+
readonly package_name: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly description: "ABAP package name.";
|
|
14
22
|
};
|
|
15
23
|
readonly class_name: {
|
|
16
24
|
readonly type: "string";
|
|
@@ -38,7 +46,7 @@ export declare const TOOL_DEFINITION: {
|
|
|
38
46
|
};
|
|
39
47
|
readonly transport_request: {
|
|
40
48
|
readonly type: "string";
|
|
41
|
-
readonly description: "Transport request id (
|
|
49
|
+
readonly description: "Transport request id, sent with the deletion (or the include write).";
|
|
42
50
|
};
|
|
43
51
|
readonly table_name: {
|
|
44
52
|
readonly type: "string";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHandlerDelete.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerDelete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"handleHandlerDelete.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerDelete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,iBAAiB,CAAA;CAAE,GAAG,MAAM,CAClE,MAAM,EACN,OAAO,CACR,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB,oBAGxB"}
|
|
@@ -7,7 +7,7 @@ const compactWriteRoutes_1 = require("./compactWriteRoutes");
|
|
|
7
7
|
exports.TOOL_DEFINITION = {
|
|
8
8
|
name: 'HandlerDelete',
|
|
9
9
|
available_in: ['onprem', 'cloud'],
|
|
10
|
-
description: '
|
|
10
|
+
description: "Deletes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the deletion request for its type, and answers SAP's result. object_type required: PACKAGE(package_name*, transport_request), DOMAIN(domain_name*, transport_request), DATA_ELEMENT(data_element_name*, transport_request), TABLE(table_name*, transport_request), STRUCTURE(structure_name*, transport_request), DDL(ddl_name*, transport_request), SERVICE_DEFINITION(service_definition_name*, transport_request), SERVICE_BINDING(service_binding_name*, transport_request), CLASS(class_name*, transport_request), CDS_UNIT_TEST(class_name*, transport_request), PROGRAM(program_name*, transport_request) [onprem only], INTERFACE(interface_name*, transport_request), FUNCTION_GROUP(function_group_name*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, transport_request), BEHAVIOR_DEFINITION(behavior_definition_name*, transport_request), BEHAVIOR_IMPLEMENTATION(behavior_implementation_name*, transport_request), METADATA_EXTENSION(metadata_extension_name*, transport_request), LOCAL_TEST_CLASS(class_name*, lock_handle*, transport_request), LOCAL_TYPES(class_name*, lock_handle*, transport_request), LOCAL_DEFINITIONS(class_name*, lock_handle*, transport_request), LOCAL_MACROS(class_name*, lock_handle*, transport_request), UNIT_TEST(class_name*, lock_handle*, transport_request). CDS_UNIT_TEST deletes its test class. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS and LOCAL_MACROS (the class's local includes) and UNIT_TEST (its test classes include) the include is written empty under lock_handle, the class's lock handle. transport_request is sent with the request. Over Streamable HTTP an include write carries the lock's state_handle in the x-mcp-state-handle header: it is sent only under a lock the instance it reaches holds.",
|
|
11
11
|
inputSchema: compact_shared_1.compactDeleteSchema,
|
|
12
12
|
};
|
|
13
13
|
async function handleHandlerDelete(context, args) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHandlerDelete.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerDelete.ts"],"names":[],"mappings":";;;AAkBA,kDAKC;AAtBD,qEAAuE;AAEvE,6DAAyD;AAE5C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,+
|
|
1
|
+
{"version":3,"file":"handleHandlerDelete.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerDelete.ts"],"names":[],"mappings":";;;AAkBA,kDAKC;AAtBD,qEAAuE;AAEvE,6DAAyD;AAE5C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,+1DAA+1D;IACj2D,WAAW,EAAE,oCAAmB;CACxB,CAAC;AAOJ,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
|
3
3
|
export declare const TOOL_DEFINITION: {
|
|
4
4
|
readonly name: "HandlerLock";
|
|
5
5
|
readonly available_in: readonly ["onprem", "cloud"];
|
|
6
|
-
readonly description: "Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name*), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*), BEHAVIOR_DEFINITION(object_name*), BEHAVIOR_IMPLEMENTATION(object_name*), METADATA_EXTENSION(object_name*).";
|
|
6
|
+
readonly description: "Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name*), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*), BEHAVIOR_DEFINITION(object_name*), BEHAVIOR_IMPLEMENTATION(object_name*), METADATA_EXTENSION(object_name*), SERVICE_DEFINITION(object_name*), SERVICE_BINDING(object_name*). Answers the lock_handle; a SERVICE_BINDING open in an editing session answers an empty one, under which its publication runs. Over Streamable HTTP the answer also carries the state_handle of the instance that holds the lock: the write and the unlock under this lock send it in the x-mcp-state-handle header.";
|
|
7
7
|
readonly inputSchema: {
|
|
8
8
|
readonly type: "object";
|
|
9
9
|
readonly properties: {
|
|
@@ -11,36 +11,14 @@ export declare const TOOL_DEFINITION: {
|
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
readonly description: "Super package context when relevant.";
|
|
13
13
|
};
|
|
14
|
-
readonly session_id: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
readonly description: "Optional ADT session id for stateful lock flow.";
|
|
17
|
-
};
|
|
18
|
-
readonly session_state: {
|
|
19
|
-
readonly type: "object";
|
|
20
|
-
readonly description: "Optional ADT session state container (cookies/CSRF) for stateful lock flow.";
|
|
21
|
-
readonly properties: {
|
|
22
|
-
readonly cookies: {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly description: "Serialized Cookie header to reuse server session.";
|
|
25
|
-
};
|
|
26
|
-
readonly csrf_token: {
|
|
27
|
-
readonly type: "string";
|
|
28
|
-
readonly description: "CSRF token to reuse server session.";
|
|
29
|
-
};
|
|
30
|
-
readonly cookie_store: {
|
|
31
|
-
readonly type: "object";
|
|
32
|
-
readonly description: "Cookie key/value map to reuse server session.";
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
14
|
readonly object_type: {
|
|
37
15
|
readonly type: "string";
|
|
38
|
-
readonly enum:
|
|
39
|
-
readonly description:
|
|
16
|
+
readonly enum: readonly string[];
|
|
17
|
+
readonly description: `Object type. Supported: ${string}.`;
|
|
40
18
|
};
|
|
41
19
|
readonly object_name: {
|
|
42
20
|
readonly type: "string";
|
|
43
|
-
readonly description: "
|
|
21
|
+
readonly description: "Object name. A function module is named GROUP|MODULE, its function group first.";
|
|
44
22
|
};
|
|
45
23
|
};
|
|
46
24
|
readonly required: readonly ["object_type", "object_name"];
|
|
@@ -50,19 +28,14 @@ type HandlerLockArgs = {
|
|
|
50
28
|
object_type: CompactObjectType;
|
|
51
29
|
object_name: string;
|
|
52
30
|
super_package?: string;
|
|
53
|
-
session_id?: string;
|
|
54
|
-
session_state?: {
|
|
55
|
-
cookies?: string;
|
|
56
|
-
csrf_token?: string;
|
|
57
|
-
cookie_store?: Record<string, string>;
|
|
58
|
-
};
|
|
59
31
|
};
|
|
60
|
-
export declare function handleHandlerLock(context: HandlerContext, args: HandlerLockArgs): Promise<
|
|
61
|
-
|
|
62
|
-
|
|
32
|
+
export declare function handleHandlerLock(context: HandlerContext, args: HandlerLockArgs): Promise<LockAnswer>;
|
|
33
|
+
type LockAnswer = {
|
|
34
|
+
isError?: boolean;
|
|
35
|
+
content?: Array<{
|
|
63
36
|
type: string;
|
|
64
|
-
text
|
|
65
|
-
}
|
|
66
|
-
}
|
|
37
|
+
text?: string;
|
|
38
|
+
}>;
|
|
39
|
+
};
|
|
67
40
|
export {};
|
|
68
41
|
//# sourceMappingURL=handleHandlerLock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHandlerLock.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerLock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAK1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"handleHandlerLock.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerLock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAK1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,eAAe,GAAG;IACrB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,eAAe,uBAoBtB;AAED,KAAK,UAAU,GAAG;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD,CAAC"}
|
|
@@ -7,20 +7,53 @@ const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
|
7
7
|
exports.TOOL_DEFINITION = {
|
|
8
8
|
name: 'HandlerLock',
|
|
9
9
|
available_in: ['onprem', 'cloud'],
|
|
10
|
-
description: 'Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name*), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*), BEHAVIOR_DEFINITION(object_name*), BEHAVIOR_IMPLEMENTATION(object_name*), METADATA_EXTENSION(object_name*).',
|
|
10
|
+
description: 'Lock operation. object_type required: CLASS(object_name*), PROGRAM(object_name*) [onprem only], INTERFACE(object_name*), FUNCTION_GROUP(object_name*), FUNCTION_MODULE(object_name*), TABLE(object_name*), STRUCTURE(object_name*), DDL(object_name*), DOMAIN(object_name*), DATA_ELEMENT(object_name*), PACKAGE(object_name*), BEHAVIOR_DEFINITION(object_name*), BEHAVIOR_IMPLEMENTATION(object_name*), METADATA_EXTENSION(object_name*), SERVICE_DEFINITION(object_name*), SERVICE_BINDING(object_name*). Answers the lock_handle; a SERVICE_BINDING open in an editing session answers an empty one, under which its publication runs. Over Streamable HTTP the answer also carries the state_handle of the instance that holds the lock: the write and the unlock under this lock send it in the x-mcp-state-handle header.',
|
|
11
11
|
inputSchema: compact_shared_1.compactLockSchema,
|
|
12
12
|
};
|
|
13
13
|
async function handleHandlerLock(context, args) {
|
|
14
|
-
const lowType = (0, compact_shared_1.
|
|
14
|
+
const lowType = (0, compact_shared_1.toLockObjectType)(args.object_type);
|
|
15
15
|
if (!lowType) {
|
|
16
16
|
throw new Error(`Lock is not supported for object_type: ${args.object_type}`);
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
const answered = (await (0, write_1.handleLockObject)(context, {
|
|
19
19
|
object_name: args.object_name,
|
|
20
20
|
object_type: lowType,
|
|
21
21
|
super_package: args.super_package,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
}));
|
|
23
|
+
// A package lock over RFC lives in a session of its own.
|
|
24
|
+
return keptLock(context, answered, args.object_type === 'PACKAGE' ? 'own' : 'main');
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Where the host keeps locks (Streamable HTTP), the handle a lock answered
|
|
28
|
+
* is kept as the instance's state and the answer names the instance's
|
|
29
|
+
* `state_handle`. An empty handle (a service binding open in an editing
|
|
30
|
+
* session) holds nothing.
|
|
31
|
+
*/
|
|
32
|
+
function keptLock(context, answered, session) {
|
|
33
|
+
const locks = context.heldLocks;
|
|
34
|
+
const text = answered?.content?.[0]?.text;
|
|
35
|
+
if (locks === undefined || answered?.isError || text === undefined) {
|
|
36
|
+
return answered;
|
|
37
|
+
}
|
|
38
|
+
let body;
|
|
39
|
+
try {
|
|
40
|
+
body = JSON.parse(text);
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
return answered;
|
|
44
|
+
}
|
|
45
|
+
const handle = body.lock_handle;
|
|
46
|
+
if (typeof handle !== 'string' || handle === '')
|
|
47
|
+
return answered;
|
|
48
|
+
locks.hold(handle, session);
|
|
49
|
+
if (context.state !== undefined)
|
|
50
|
+
body.state_handle = context.state.handle;
|
|
51
|
+
return {
|
|
52
|
+
...answered,
|
|
53
|
+
content: [
|
|
54
|
+
{ type: 'text', text: JSON.stringify(body, null, 2) },
|
|
55
|
+
...(answered.content ?? []).slice(1),
|
|
56
|
+
],
|
|
57
|
+
};
|
|
25
58
|
}
|
|
26
59
|
//# sourceMappingURL=handleHandlerLock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHandlerLock.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerLock.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"handleHandlerLock.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerLock.ts"],"names":[],"mappings":";;;AAsBA,8CAsBC;AA3CD,qEAG0C;AAE1C,4DAAoE;AAEvD,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,kyBAAkyB;IACpyB,WAAW,EAAE,kCAAiB;CACtB,CAAC;AAQJ,KAAK,UAAU,iBAAiB,CACrC,OAAuB,EACvB,IAAqB;IAErB,MAAM,OAAO,GAAG,IAAA,iCAAgB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACnD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,0CAA0C,IAAI,CAAC,WAAW,EAAE,CAC7D,CAAC;IACJ,CAAC;IAED,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAA,wBAAgB,EAAC,OAAO,EAAE;QAChD,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,WAAW,EAAE,OAAO;QACpB,aAAa,EAAE,IAAI,CAAC,aAAa;KAClC,CAAC,CAAe,CAAC;IAClB,yDAAyD;IACzD,OAAO,QAAQ,CACb,OAAO,EACP,QAAQ,EACR,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAChD,CAAC;AACJ,CAAC;AAOD;;;;;GAKG;AACH,SAAS,QAAQ,CACf,OAAuB,EACvB,QAAoB,EACpB,OAAuB;IAEvB,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC;IAChC,MAAM,IAAI,GAAG,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;IAC1C,IAAI,KAAK,KAAK,SAAS,IAAI,QAAQ,EAAE,OAAO,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACnE,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,IAAI,IAA6B,CAAC;IAClC,IAAI,CAAC;QACH,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAA4B,CAAC;IACrD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC;IAChC,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,EAAE;QAAE,OAAO,QAAQ,CAAC;IACjE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5B,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS;QAAE,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;IAC1E,OAAO;QACL,GAAG,QAAQ;QACX,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;YACrD,GAAG,CAAC,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;SACrC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -2,83 +2,31 @@ import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
|
2
2
|
export declare const TOOL_DEFINITION: {
|
|
3
3
|
readonly name: "HandlerProfileRun";
|
|
4
4
|
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
-
readonly description: "
|
|
5
|
+
readonly description: "[read-only] Runs a class or a program in one request. Required: target_type*(CLASS|PROGRAM) + class_name* for CLASS or program_name* for PROGRAM [onprem only — programs exist on premise]. Optional: profiler_id (the profiler id of a scheduled trace; given, the run goes under that trace; absent, the run is plain), background. Response: JSON { success, class_name | program_name, output }, plus profile: { profiler_id } for a run under a trace.";
|
|
6
6
|
readonly inputSchema: {
|
|
7
7
|
readonly type: "object";
|
|
8
8
|
readonly properties: {
|
|
9
9
|
readonly target_type: {
|
|
10
10
|
readonly type: "string";
|
|
11
11
|
readonly enum: readonly ["CLASS", "PROGRAM"];
|
|
12
|
-
readonly description: "
|
|
12
|
+
readonly description: "Run target kind.";
|
|
13
13
|
};
|
|
14
14
|
readonly class_name: {
|
|
15
15
|
readonly type: "string";
|
|
16
|
-
readonly description: "Class
|
|
16
|
+
readonly description: "Class to run.";
|
|
17
17
|
};
|
|
18
18
|
readonly program_name: {
|
|
19
19
|
readonly type: "string";
|
|
20
|
-
readonly description: "Program
|
|
20
|
+
readonly description: "Program to run.";
|
|
21
21
|
};
|
|
22
|
-
readonly
|
|
23
|
-
readonly type: "boolean";
|
|
24
|
-
readonly default: true;
|
|
25
|
-
readonly description: "Whether to capture a profiler trace while running. Default true. Set false for a plain run with no tracing \u2014 the profiling flags below are then ignored.";
|
|
26
|
-
};
|
|
27
|
-
readonly description: {
|
|
22
|
+
readonly profiler_id: {
|
|
28
23
|
readonly type: "string";
|
|
29
|
-
readonly
|
|
30
|
-
|
|
31
|
-
readonly all_procedural_units: {
|
|
32
|
-
readonly type: "boolean";
|
|
33
|
-
readonly description: "Trace all procedural units.";
|
|
34
|
-
};
|
|
35
|
-
readonly all_misc_abap_statements: {
|
|
36
|
-
readonly type: "boolean";
|
|
37
|
-
readonly description: "Trace miscellaneous ABAP statements.";
|
|
38
|
-
};
|
|
39
|
-
readonly all_internal_table_events: {
|
|
40
|
-
readonly type: "boolean";
|
|
41
|
-
readonly description: "Trace internal table events.";
|
|
42
|
-
};
|
|
43
|
-
readonly all_dynpro_events: {
|
|
44
|
-
readonly type: "boolean";
|
|
45
|
-
readonly description: "Trace dynpro events.";
|
|
46
|
-
};
|
|
47
|
-
readonly aggregate: {
|
|
48
|
-
readonly type: "boolean";
|
|
49
|
-
readonly description: "Aggregate profiling data.";
|
|
24
|
+
readonly minLength: 1;
|
|
25
|
+
readonly description: "The profiler id of a scheduled trace. Given, the run goes under that trace; absent, the run is plain.";
|
|
50
26
|
};
|
|
51
|
-
readonly
|
|
27
|
+
readonly background: {
|
|
52
28
|
readonly type: "boolean";
|
|
53
|
-
readonly description: "
|
|
54
|
-
};
|
|
55
|
-
readonly with_rfc_tracing: {
|
|
56
|
-
readonly type: "boolean";
|
|
57
|
-
readonly description: "Enable RFC tracing.";
|
|
58
|
-
};
|
|
59
|
-
readonly all_system_kernel_events: {
|
|
60
|
-
readonly type: "boolean";
|
|
61
|
-
readonly description: "Trace system kernel events.";
|
|
62
|
-
};
|
|
63
|
-
readonly sql_trace: {
|
|
64
|
-
readonly type: "boolean";
|
|
65
|
-
readonly description: "Enable SQL trace.";
|
|
66
|
-
};
|
|
67
|
-
readonly all_db_events: {
|
|
68
|
-
readonly type: "boolean";
|
|
69
|
-
readonly description: "Trace all DB events.";
|
|
70
|
-
};
|
|
71
|
-
readonly max_size_for_trace_file: {
|
|
72
|
-
readonly type: "number";
|
|
73
|
-
readonly description: "Maximum trace file size.";
|
|
74
|
-
};
|
|
75
|
-
readonly amdp_trace: {
|
|
76
|
-
readonly type: "boolean";
|
|
77
|
-
readonly description: "Enable AMDP tracing.";
|
|
78
|
-
};
|
|
79
|
-
readonly max_time_for_tracing: {
|
|
80
|
-
readonly type: "number";
|
|
81
|
-
readonly description: "Maximum tracing time.";
|
|
29
|
+
readonly description: "When true, the run goes on in the background on an ABAP session of its own and the call answers at once with a run_handle; read its answer later with HandlerBackgroundRunGet, and remove it with HandlerBackgroundRunDiscard. A started run cannot be stopped. No default: without it the call waits for the run to end.";
|
|
82
30
|
};
|
|
83
31
|
};
|
|
84
32
|
readonly required: readonly ["target_type"];
|
|
@@ -88,22 +36,14 @@ type HandlerProfileRunArgs = {
|
|
|
88
36
|
target_type: 'CLASS' | 'PROGRAM';
|
|
89
37
|
class_name?: string;
|
|
90
38
|
program_name?: string;
|
|
91
|
-
|
|
92
|
-
description?: string;
|
|
93
|
-
all_procedural_units?: boolean;
|
|
94
|
-
all_misc_abap_statements?: boolean;
|
|
95
|
-
all_internal_table_events?: boolean;
|
|
96
|
-
all_dynpro_events?: boolean;
|
|
97
|
-
aggregate?: boolean;
|
|
98
|
-
explicit_on_off?: boolean;
|
|
99
|
-
with_rfc_tracing?: boolean;
|
|
100
|
-
all_system_kernel_events?: boolean;
|
|
101
|
-
sql_trace?: boolean;
|
|
102
|
-
all_db_events?: boolean;
|
|
103
|
-
max_size_for_trace_file?: number;
|
|
104
|
-
amdp_trace?: boolean;
|
|
105
|
-
max_time_for_tracing?: number;
|
|
39
|
+
profiler_id?: string;
|
|
106
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* The one run of a class or a program (spec §4.6, one ADT request per tool
|
|
43
|
+
* call): under the caller's `profiler_id` when given, plain without it. The
|
|
44
|
+
* schedule is `HandlerProfileSchedule`'s request, and finding the trace the
|
|
45
|
+
* run wrote is the caller's, by `HandlerProfileList`.
|
|
46
|
+
*/
|
|
107
47
|
export declare function handleHandlerProfileRun(context: HandlerContext, args: HandlerProfileRunArgs): Promise<{
|
|
108
48
|
isError: boolean;
|
|
109
49
|
content: {
|