@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
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
2
|
+
export declare const TOOL_DEFINITION: {
|
|
3
|
+
readonly name: "HandlerProfileRun";
|
|
4
|
+
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
+
readonly description: "Runtime profiling run. object_type: not used. Required: target_type*(CLASS|PROGRAM) + class_name* for CLASS or program_name* for PROGRAM [onprem only — ABAP Cloud has no programs]. Optional: profiling(default true; set false for a plain run with no trace), profiling flags, description. Response: JSON.";
|
|
6
|
+
readonly inputSchema: {
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly target_type: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly enum: readonly ["CLASS", "PROGRAM"];
|
|
12
|
+
readonly description: "Profile execution target kind.";
|
|
13
|
+
};
|
|
14
|
+
readonly class_name: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly description: "Class name for profiling.";
|
|
17
|
+
};
|
|
18
|
+
readonly program_name: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly description: "Program name for profiling.";
|
|
21
|
+
};
|
|
22
|
+
readonly profiling: {
|
|
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: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly description: "Profiler run description.";
|
|
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.";
|
|
50
|
+
};
|
|
51
|
+
readonly explicit_on_off: {
|
|
52
|
+
readonly type: "boolean";
|
|
53
|
+
readonly description: "Use explicit on/off trace sections.";
|
|
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.";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly required: readonly ["target_type"];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
type HandlerProfileRunArgs = {
|
|
88
|
+
target_type: 'CLASS' | 'PROGRAM';
|
|
89
|
+
class_name?: string;
|
|
90
|
+
program_name?: string;
|
|
91
|
+
profiling?: boolean;
|
|
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;
|
|
106
|
+
};
|
|
107
|
+
export declare function handleHandlerProfileRun(context: HandlerContext, args: HandlerProfileRunArgs): Promise<{
|
|
108
|
+
isError: boolean;
|
|
109
|
+
content: {
|
|
110
|
+
type: string;
|
|
111
|
+
text: string;
|
|
112
|
+
}[];
|
|
113
|
+
}>;
|
|
114
|
+
export {};
|
|
115
|
+
//# sourceMappingURL=handleHandlerProfileRun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerProfileRun.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileRun.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAQjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,qBAAqB;;;;;;GA+D5B"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_DEFINITION = void 0;
|
|
4
|
+
exports.handleHandlerProfileRun = handleHandlerProfileRun;
|
|
5
|
+
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
6
|
+
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
7
|
+
exports.TOOL_DEFINITION = {
|
|
8
|
+
name: 'HandlerProfileRun',
|
|
9
|
+
available_in: ['onprem', 'cloud'],
|
|
10
|
+
description: 'Runtime profiling run. object_type: not used. Required: target_type*(CLASS|PROGRAM) + class_name* for CLASS or program_name* for PROGRAM [onprem only — ABAP Cloud has no programs]. Optional: profiling(default true; set false for a plain run with no trace), profiling flags, description. Response: JSON.',
|
|
11
|
+
inputSchema: compact_shared_1.compactProfileRunSchema,
|
|
12
|
+
};
|
|
13
|
+
async function handleHandlerProfileRun(context, args) {
|
|
14
|
+
const profiling = args.profiling ?? true;
|
|
15
|
+
if (args.target_type === 'CLASS') {
|
|
16
|
+
if (!args.class_name) {
|
|
17
|
+
throw new Error('class_name is required when target_type is CLASS');
|
|
18
|
+
}
|
|
19
|
+
if (!profiling) {
|
|
20
|
+
return (0, write_1.handleRuntimeRunClass)(context, {
|
|
21
|
+
class_name: args.class_name,
|
|
22
|
+
profile: false,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return (0, write_1.handleRuntimeRunClassWithProfiling)(context, {
|
|
26
|
+
class_name: args.class_name,
|
|
27
|
+
description: args.description,
|
|
28
|
+
all_procedural_units: args.all_procedural_units,
|
|
29
|
+
all_misc_abap_statements: args.all_misc_abap_statements,
|
|
30
|
+
all_internal_table_events: args.all_internal_table_events,
|
|
31
|
+
all_dynpro_events: args.all_dynpro_events,
|
|
32
|
+
aggregate: args.aggregate,
|
|
33
|
+
explicit_on_off: args.explicit_on_off,
|
|
34
|
+
with_rfc_tracing: args.with_rfc_tracing,
|
|
35
|
+
all_system_kernel_events: args.all_system_kernel_events,
|
|
36
|
+
sql_trace: args.sql_trace,
|
|
37
|
+
all_db_events: args.all_db_events,
|
|
38
|
+
max_size_for_trace_file: args.max_size_for_trace_file,
|
|
39
|
+
amdp_trace: args.amdp_trace,
|
|
40
|
+
max_time_for_tracing: args.max_time_for_tracing,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
if (!args.program_name) {
|
|
44
|
+
throw new Error('program_name is required when target_type is PROGRAM');
|
|
45
|
+
}
|
|
46
|
+
if (!profiling) {
|
|
47
|
+
return (0, write_1.handleRuntimeRunProgram)(context, {
|
|
48
|
+
program_name: args.program_name,
|
|
49
|
+
profile: false,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return (0, write_1.handleRuntimeRunProgramWithProfiling)(context, {
|
|
53
|
+
program_name: args.program_name,
|
|
54
|
+
description: args.description,
|
|
55
|
+
all_procedural_units: args.all_procedural_units,
|
|
56
|
+
all_misc_abap_statements: args.all_misc_abap_statements,
|
|
57
|
+
all_internal_table_events: args.all_internal_table_events,
|
|
58
|
+
all_dynpro_events: args.all_dynpro_events,
|
|
59
|
+
aggregate: args.aggregate,
|
|
60
|
+
explicit_on_off: args.explicit_on_off,
|
|
61
|
+
with_rfc_tracing: args.with_rfc_tracing,
|
|
62
|
+
all_system_kernel_events: args.all_system_kernel_events,
|
|
63
|
+
sql_trace: args.sql_trace,
|
|
64
|
+
all_db_events: args.all_db_events,
|
|
65
|
+
max_size_for_trace_file: args.max_size_for_trace_file,
|
|
66
|
+
amdp_trace: args.amdp_trace,
|
|
67
|
+
max_time_for_tracing: args.max_time_for_tracing,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=handleHandlerProfileRun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerProfileRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileRun.ts"],"names":[],"mappings":";;;AAsCA,0DAiEC;AAvGD,qEAA2E;AAE3E,4DAK0C;AAE7B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,gTAAgT;IAClT,WAAW,EAAE,wCAAuB;CAC5B,CAAC;AAuBJ,KAAK,UAAU,uBAAuB,CAC3C,OAAuB,EACvB,IAA2B;IAE3B,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC;IAEzC,IAAI,IAAI,CAAC,WAAW,KAAK,OAAO,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;QACtE,CAAC;QAED,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,IAAA,6BAAqB,EAAC,OAAO,EAAE;gBACpC,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,OAAO,EAAE,KAAK;aACf,CAAC,CAAC;QACL,CAAC;QAED,OAAO,IAAA,0CAAkC,EAAC,OAAO,EAAE;YACjD,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;YAC/C,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,yBAAyB,EAAE,IAAI,CAAC,yBAAyB;YACzD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;YACrD,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;SAChD,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,IAAA,+BAAuB,EAAC,OAAO,EAAE;YACtC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAA,4CAAoC,EAAC,OAAO,EAAE;QACnD,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;QAC/C,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;QACvD,yBAAyB,EAAE,IAAI,CAAC,yBAAyB;QACzD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;QACzC,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,eAAe,EAAE,IAAI,CAAC,eAAe;QACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QACvC,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;QACvD,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;QACrD,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;KAChD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
2
|
+
export declare const TOOL_DEFINITION: {
|
|
3
|
+
readonly name: "HandlerTransportCreate";
|
|
4
|
+
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
+
readonly description: "Transport create. object_type: not used. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner. Response: JSON.";
|
|
6
|
+
readonly inputSchema: {
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly transport_type: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly enum: readonly ["workbench", "customizing"];
|
|
12
|
+
readonly default: "workbench";
|
|
13
|
+
readonly description: "Transport type.";
|
|
14
|
+
};
|
|
15
|
+
readonly description: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly description: "Transport description.";
|
|
18
|
+
};
|
|
19
|
+
readonly target_system: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly description: "Target system id.";
|
|
22
|
+
};
|
|
23
|
+
readonly owner: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly description: "Transport owner user.";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly required: readonly ["description"];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type HandlerTransportCreateArgs = {
|
|
32
|
+
transport_type?: 'workbench' | 'customizing';
|
|
33
|
+
description: string;
|
|
34
|
+
target_system?: string;
|
|
35
|
+
owner?: string;
|
|
36
|
+
};
|
|
37
|
+
export declare function handleHandlerTransportCreate(context: HandlerContext, args: HandlerTransportCreateArgs): Promise<{
|
|
38
|
+
isError: boolean;
|
|
39
|
+
content: {
|
|
40
|
+
type: string;
|
|
41
|
+
text: string;
|
|
42
|
+
}[];
|
|
43
|
+
}>;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=handleHandlerTransportCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerTransportCreate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportCreate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,0BAA0B,GAAG;IAChC,cAAc,CAAC,EAAE,WAAW,GAAG,aAAa,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,0BAA0B;;;;;;GAGjC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_DEFINITION = void 0;
|
|
4
|
+
exports.handleHandlerTransportCreate = handleHandlerTransportCreate;
|
|
5
|
+
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
6
|
+
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
7
|
+
exports.TOOL_DEFINITION = {
|
|
8
|
+
name: 'HandlerTransportCreate',
|
|
9
|
+
available_in: ['onprem', 'cloud'],
|
|
10
|
+
description: 'Transport create. object_type: not used. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner. Response: JSON.',
|
|
11
|
+
inputSchema: compact_shared_1.compactTransportCreateSchema,
|
|
12
|
+
};
|
|
13
|
+
async function handleHandlerTransportCreate(context, args) {
|
|
14
|
+
return (0, write_1.handleCreateTransport)(context, args);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=handleHandlerTransportCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerTransportCreate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportCreate.ts"],"names":[],"mappings":";;;AAmBA,oEAKC;AAxBD,qEAAgF;AAEhF,4DAAyE;AAE5D,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,wBAAwB;IAC9B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,yJAAyJ;IAC3J,WAAW,EAAE,6CAA4B;CACjC,CAAC;AASJ,KAAK,UAAU,4BAA4B,CAChD,OAAuB,EACvB,IAAgC;IAEhC,OAAO,IAAA,6BAAqB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
2
|
+
export declare const TOOL_DEFINITION: {
|
|
3
|
+
readonly name: "HandlerUnitTestRun";
|
|
4
|
+
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
+
readonly description: "ABAP Unit run. object_type: not used. Required: tests[]{container_class*, test_class*}. Optional: title, context, scope, risk_level, duration. Response: JSON.";
|
|
6
|
+
readonly inputSchema: {
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly tests: {
|
|
10
|
+
readonly type: "array";
|
|
11
|
+
readonly description: "List of test classes to run.";
|
|
12
|
+
readonly items: {
|
|
13
|
+
readonly type: "object";
|
|
14
|
+
readonly properties: {
|
|
15
|
+
readonly container_class: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly description: "Productive class containing tests.";
|
|
18
|
+
};
|
|
19
|
+
readonly test_class: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly description: "Local/unit test class.";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
readonly required: readonly ["container_class", "test_class"];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly title: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly description: "Run title shown in ABAP Unit logs.";
|
|
30
|
+
};
|
|
31
|
+
readonly context: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
readonly description: "Run context label.";
|
|
34
|
+
};
|
|
35
|
+
readonly scope: {
|
|
36
|
+
readonly type: "object";
|
|
37
|
+
readonly description: "ABAP Unit scope flags.";
|
|
38
|
+
readonly properties: {
|
|
39
|
+
readonly own_tests: {
|
|
40
|
+
readonly type: "boolean";
|
|
41
|
+
readonly description: "Include own tests.";
|
|
42
|
+
};
|
|
43
|
+
readonly foreign_tests: {
|
|
44
|
+
readonly type: "boolean";
|
|
45
|
+
readonly description: "Include foreign tests.";
|
|
46
|
+
};
|
|
47
|
+
readonly add_foreign_tests_as_preview: {
|
|
48
|
+
readonly type: "boolean";
|
|
49
|
+
readonly description: "Preview foreign tests without full inclusion.";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly risk_level: {
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly description: "Allowed risk levels.";
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly harmless: {
|
|
58
|
+
readonly type: "boolean";
|
|
59
|
+
readonly description: "Allow harmless tests.";
|
|
60
|
+
};
|
|
61
|
+
readonly dangerous: {
|
|
62
|
+
readonly type: "boolean";
|
|
63
|
+
readonly description: "Allow dangerous tests.";
|
|
64
|
+
};
|
|
65
|
+
readonly critical: {
|
|
66
|
+
readonly type: "boolean";
|
|
67
|
+
readonly description: "Allow critical tests.";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly duration: {
|
|
72
|
+
readonly type: "object";
|
|
73
|
+
readonly description: "Allowed duration classes.";
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly short: {
|
|
76
|
+
readonly type: "boolean";
|
|
77
|
+
readonly description: "Allow short tests.";
|
|
78
|
+
};
|
|
79
|
+
readonly medium: {
|
|
80
|
+
readonly type: "boolean";
|
|
81
|
+
readonly description: "Allow medium tests.";
|
|
82
|
+
};
|
|
83
|
+
readonly long: {
|
|
84
|
+
readonly type: "boolean";
|
|
85
|
+
readonly description: "Allow long tests.";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly required: readonly ["tests"];
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
type HandlerUnitTestRunArgs = {
|
|
94
|
+
tests: Array<{
|
|
95
|
+
container_class: string;
|
|
96
|
+
test_class: string;
|
|
97
|
+
}>;
|
|
98
|
+
title?: string;
|
|
99
|
+
context?: string;
|
|
100
|
+
scope?: {
|
|
101
|
+
own_tests?: boolean;
|
|
102
|
+
foreign_tests?: boolean;
|
|
103
|
+
add_foreign_tests_as_preview?: boolean;
|
|
104
|
+
};
|
|
105
|
+
risk_level?: {
|
|
106
|
+
harmless?: boolean;
|
|
107
|
+
dangerous?: boolean;
|
|
108
|
+
critical?: boolean;
|
|
109
|
+
};
|
|
110
|
+
duration?: {
|
|
111
|
+
short?: boolean;
|
|
112
|
+
medium?: boolean;
|
|
113
|
+
long?: boolean;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export declare function handleHandlerUnitTestRun(context: HandlerContext, args: HandlerUnitTestRunArgs): Promise<{
|
|
117
|
+
isError: boolean;
|
|
118
|
+
content: {
|
|
119
|
+
type: string;
|
|
120
|
+
text: string;
|
|
121
|
+
}[];
|
|
122
|
+
}>;
|
|
123
|
+
export {};
|
|
124
|
+
//# sourceMappingURL=handleHandlerUnitTestRun.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerUnitTestRun.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnitTestRun.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,KAAK,CAAC;QACX,eAAe,EAAE,MAAM,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,4BAA4B,CAAC,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,UAAU,CAAC,EAAE;QACX,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,sBAAsB;;;;;;GAG7B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_DEFINITION = void 0;
|
|
4
|
+
exports.handleHandlerUnitTestRun = handleHandlerUnitTestRun;
|
|
5
|
+
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
6
|
+
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
7
|
+
exports.TOOL_DEFINITION = {
|
|
8
|
+
name: 'HandlerUnitTestRun',
|
|
9
|
+
available_in: ['onprem', 'cloud'],
|
|
10
|
+
description: 'ABAP Unit run. object_type: not used. Required: tests[]{container_class*, test_class*}. Optional: title, context, scope, risk_level, duration. Response: JSON.',
|
|
11
|
+
inputSchema: compact_shared_1.compactUnitTestRunSchema,
|
|
12
|
+
};
|
|
13
|
+
async function handleHandlerUnitTestRun(context, args) {
|
|
14
|
+
return (0, write_1.handleRunUnitTest)(context, args);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=handleHandlerUnitTestRun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerUnitTestRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnitTestRun.ts"],"names":[],"mappings":";;;AAoCA,4DAKC;AAzCD,qEAA4E;AAE5E,4DAAqE;AAExD,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,gKAAgK;IAClK,WAAW,EAAE,yCAAwB;CAC7B,CAAC;AA0BJ,KAAK,UAAU,wBAAwB,CAC5C,OAAuB,EACvB,IAA4B;IAE5B,OAAO,IAAA,yBAAiB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { CompactObjectType } from '@mcp-abap-adt/lib/compact-shared';
|
|
2
|
+
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
3
|
+
export declare const TOOL_DEFINITION: {
|
|
4
|
+
readonly name: "HandlerUnlock";
|
|
5
|
+
readonly available_in: readonly ["onprem", "cloud"];
|
|
6
|
+
readonly description: "Unlock operation. object_type required: CLASS(object_name*, lock_handle*, session_id*), PROGRAM(object_name*, lock_handle*, session_id*) [onprem only], INTERFACE(object_name*, lock_handle*, session_id*), FUNCTION_GROUP(object_name*, lock_handle*, session_id*), FUNCTION_MODULE(object_name*, lock_handle*, session_id*), TABLE(object_name*, lock_handle*, session_id*), STRUCTURE(object_name*, lock_handle*, session_id*), DDL(object_name*, lock_handle*, session_id*), DOMAIN(object_name*, lock_handle*, session_id*), DATA_ELEMENT(object_name*, lock_handle*, session_id*), PACKAGE(object_name*, lock_handle*, session_id*), BEHAVIOR_DEFINITION(object_name*, lock_handle*, session_id*), BEHAVIOR_IMPLEMENTATION(object_name*, lock_handle*, session_id*), METADATA_EXTENSION(object_name*, lock_handle*, session_id*).";
|
|
7
|
+
readonly inputSchema: {
|
|
8
|
+
readonly type: "object";
|
|
9
|
+
readonly properties: {
|
|
10
|
+
readonly lock_handle: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly description: "Lock handle returned by lock.";
|
|
13
|
+
};
|
|
14
|
+
readonly session_id: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
readonly description: "ADT session id used during lock.";
|
|
17
|
+
};
|
|
18
|
+
readonly session_state: {
|
|
19
|
+
readonly type: "object";
|
|
20
|
+
readonly description: "Optional ADT session state container (cookies/CSRF) for stateful unlock 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
|
+
readonly object_type: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly enum: import("../../../dist/lib/compact/compactObjectTypes").CompactObjectType[];
|
|
39
|
+
readonly description: "ABAP object type for routed compact operation.";
|
|
40
|
+
};
|
|
41
|
+
readonly object_name: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly description: "Primary object name for lifecycle operation.";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly required: readonly ["object_type", "object_name", "lock_handle", "session_id"];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
type HandlerUnlockArgs = {
|
|
50
|
+
object_type: CompactObjectType;
|
|
51
|
+
object_name: string;
|
|
52
|
+
lock_handle: string;
|
|
53
|
+
session_id: string;
|
|
54
|
+
session_state?: {
|
|
55
|
+
cookies?: string;
|
|
56
|
+
csrf_token?: string;
|
|
57
|
+
cookie_store?: Record<string, string>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare function handleHandlerUnlock(context: HandlerContext, args: HandlerUnlockArgs): Promise<{
|
|
61
|
+
isError: boolean;
|
|
62
|
+
content: {
|
|
63
|
+
type: string;
|
|
64
|
+
text: string;
|
|
65
|
+
}[];
|
|
66
|
+
}>;
|
|
67
|
+
export {};
|
|
68
|
+
//# sourceMappingURL=handleHandlerUnlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerUnlock.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnlock.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,iBAAiB,GAAG;IACvB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACvC,CAAC;CACH,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB;;;;;;GAgBxB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_DEFINITION = void 0;
|
|
4
|
+
exports.handleHandlerUnlock = handleHandlerUnlock;
|
|
5
|
+
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
6
|
+
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
7
|
+
exports.TOOL_DEFINITION = {
|
|
8
|
+
name: 'HandlerUnlock',
|
|
9
|
+
available_in: ['onprem', 'cloud'],
|
|
10
|
+
description: 'Unlock operation. object_type required: CLASS(object_name*, lock_handle*, session_id*), PROGRAM(object_name*, lock_handle*, session_id*) [onprem only], INTERFACE(object_name*, lock_handle*, session_id*), FUNCTION_GROUP(object_name*, lock_handle*, session_id*), FUNCTION_MODULE(object_name*, lock_handle*, session_id*), TABLE(object_name*, lock_handle*, session_id*), STRUCTURE(object_name*, lock_handle*, session_id*), DDL(object_name*, lock_handle*, session_id*), DOMAIN(object_name*, lock_handle*, session_id*), DATA_ELEMENT(object_name*, lock_handle*, session_id*), PACKAGE(object_name*, lock_handle*, session_id*), BEHAVIOR_DEFINITION(object_name*, lock_handle*, session_id*), BEHAVIOR_IMPLEMENTATION(object_name*, lock_handle*, session_id*), METADATA_EXTENSION(object_name*, lock_handle*, session_id*).',
|
|
11
|
+
inputSchema: compact_shared_1.compactUnlockSchema,
|
|
12
|
+
};
|
|
13
|
+
async function handleHandlerUnlock(context, args) {
|
|
14
|
+
const lowType = (0, compact_shared_1.toLowObjectType)(args.object_type);
|
|
15
|
+
if (!lowType) {
|
|
16
|
+
throw new Error(`Unlock is not supported for object_type: ${args.object_type}`);
|
|
17
|
+
}
|
|
18
|
+
return (0, write_1.handleUnlockObject)(context, {
|
|
19
|
+
object_name: args.object_name,
|
|
20
|
+
object_type: lowType,
|
|
21
|
+
lock_handle: args.lock_handle,
|
|
22
|
+
session_id: args.session_id,
|
|
23
|
+
session_state: args.session_state,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=handleHandlerUnlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleHandlerUnlock.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnlock.ts"],"names":[],"mappings":";;;AA4BA,kDAkBC;AA7CD,qEAG0C;AAE1C,4DAAsE;AAEzD,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,yyBAAyyB;IAC3yB,WAAW,EAAE,oCAAmB;CACxB,CAAC;AAcJ,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,MAAM,OAAO,GAAG,IAAA,gCAAe,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAClD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,4CAA4C,IAAI,CAAC,WAAW,EAAE,CAC/D,CAAC;IACJ,CAAC;IAED,OAAO,IAAA,0BAAkB,EAAC,OAAO,EAAE;QACjC,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,WAAW,EAAE,OAAO;QACpB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;KAClC,CAAC,CAAC;AACL,CAAC"}
|