@mcp-abap-adt/compact-modify 23.1.0 → 24.0.1

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.
Files changed (55) hide show
  1. package/dist/group.d.ts +5 -9
  2. package/dist/group.d.ts.map +1 -1
  3. package/dist/group.js +21 -53
  4. package/dist/group.js.map +1 -1
  5. package/dist/handlers/compactConfirmWith.d.ts.map +1 -1
  6. package/dist/handlers/compactConfirmWith.js +14 -15
  7. package/dist/handlers/compactConfirmWith.js.map +1 -1
  8. package/dist/handlers/compactWriteRoutes.d.ts +3 -2
  9. package/dist/handlers/compactWriteRoutes.d.ts.map +1 -1
  10. package/dist/handlers/compactWriteRoutes.js +21 -3
  11. package/dist/handlers/compactWriteRoutes.js.map +1 -1
  12. package/dist/handlers/handleHandlerActivate.d.ts +45 -189
  13. package/dist/handlers/handleHandlerActivate.d.ts.map +1 -1
  14. package/dist/handlers/handleHandlerActivate.js +1 -1
  15. package/dist/handlers/handleHandlerActivate.js.map +1 -1
  16. package/dist/handlers/handleHandlerCreate.d.ts +192 -490
  17. package/dist/handlers/handleHandlerCreate.d.ts.map +1 -1
  18. package/dist/handlers/handleHandlerCreate.js.map +1 -1
  19. package/dist/handlers/handleHandlerDelete.d.ts +72 -278
  20. package/dist/handlers/handleHandlerDelete.d.ts.map +1 -1
  21. package/dist/handlers/handleHandlerDelete.js.map +1 -1
  22. package/dist/handlers/handleHandlerLock.d.ts +19 -62
  23. package/dist/handlers/handleHandlerLock.d.ts.map +1 -1
  24. package/dist/handlers/handleHandlerLock.js +21 -16
  25. package/dist/handlers/handleHandlerLock.js.map +1 -1
  26. package/dist/handlers/handleHandlerProfileRun.d.ts +24 -97
  27. package/dist/handlers/handleHandlerProfileRun.d.ts.map +1 -1
  28. package/dist/handlers/handleHandlerProfileRun.js.map +1 -1
  29. package/dist/handlers/handleHandlerProfileSchedule.d.ts +16 -62
  30. package/dist/handlers/handleHandlerProfileSchedule.d.ts.map +1 -1
  31. package/dist/handlers/handleHandlerTransportCreate.d.ts +18 -38
  32. package/dist/handlers/handleHandlerTransportCreate.d.ts.map +1 -1
  33. package/dist/handlers/handleHandlerTransportCreate.js +1 -1
  34. package/dist/handlers/handleHandlerTransportCreate.js.map +1 -1
  35. package/dist/handlers/handleHandlerTransportMoveObjects.d.ts +13 -59
  36. package/dist/handlers/handleHandlerTransportMoveObjects.d.ts.map +1 -1
  37. package/dist/handlers/handleHandlerTransportMoveObjects.js.map +1 -1
  38. package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts +6 -20
  39. package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts.map +1 -1
  40. package/dist/handlers/handleHandlerTransportSortAndCompress.js.map +1 -1
  41. package/dist/handlers/handleHandlerUnitTestRun.d.ts +68 -154
  42. package/dist/handlers/handleHandlerUnitTestRun.d.ts.map +1 -1
  43. package/dist/handlers/handleHandlerUnitTestRun.js.map +1 -1
  44. package/dist/handlers/handleHandlerUnlock.d.ts +18 -65
  45. package/dist/handlers/handleHandlerUnlock.d.ts.map +1 -1
  46. package/dist/handlers/handleHandlerUnlock.js +26 -3
  47. package/dist/handlers/handleHandlerUnlock.js.map +1 -1
  48. package/dist/handlers/handleHandlerUpdate.d.ts +141 -430
  49. package/dist/handlers/handleHandlerUpdate.d.ts.map +1 -1
  50. package/dist/handlers/handleHandlerUpdate.js.map +1 -1
  51. package/dist/handlers/heldLockOf.d.ts +8 -0
  52. package/dist/handlers/heldLockOf.d.ts.map +1 -0
  53. package/dist/handlers/heldLockOf.js +41 -0
  54. package/dist/handlers/heldLockOf.js.map +1 -0
  55. package/package.json +4 -4
@@ -1,113 +1,40 @@
1
1
  import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
2
+ import type * as z from 'zod';
2
3
  export declare const TOOL_DEFINITION: {
3
4
  readonly description: string;
4
- readonly inputSchema: {
5
- readonly type: "object";
6
- readonly properties: {
7
- readonly target_type: {
8
- readonly type: "string";
9
- readonly enum: readonly ["CLASS", "PROGRAM"] | "CLASS"[];
10
- readonly description: "Run target kind.";
11
- };
12
- readonly class_name?: {
13
- readonly type: "string";
14
- readonly description: "Class to run.";
15
- } | undefined;
16
- readonly program_name?: {
17
- readonly type: "string";
18
- readonly description: "Program to run.";
19
- } | undefined;
20
- readonly profiler_id?: {
21
- readonly type: "string";
22
- readonly minLength: 1;
23
- readonly description: "The profiler id of a scheduled trace. Given, the run goes under that trace; absent, the run is plain.";
24
- } | undefined;
25
- readonly background?: {
26
- readonly type: "boolean";
27
- 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.";
28
- } | undefined;
29
- };
30
- readonly required: readonly ["target_type"];
31
- };
5
+ readonly inputSchema: z.ZodObject<{
6
+ target_type: z.ZodType<"CLASS" | "PROGRAM", unknown, z.core.$ZodTypeInternals<"CLASS" | "PROGRAM", unknown>>;
7
+ class_name: z.ZodOptional<z.ZodString>;
8
+ program_name: z.ZodOptional<z.ZodString>;
9
+ profiler_id: z.ZodOptional<z.ZodString>;
10
+ background: z.ZodOptional<z.ZodBoolean>;
11
+ }, z.core.$strip>;
32
12
  readonly variants: {
33
- readonly onprem: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
34
- readonly type: "object";
35
- readonly properties: {
36
- readonly target_type: {
37
- readonly type: "string";
38
- readonly enum: readonly ["CLASS", "PROGRAM"] | "CLASS"[];
39
- readonly description: "Run target kind.";
40
- };
41
- readonly class_name?: {
42
- readonly type: "string";
43
- readonly description: "Class to run.";
44
- } | undefined;
45
- readonly program_name?: {
46
- readonly type: "string";
47
- readonly description: "Program to run.";
48
- } | undefined;
49
- readonly profiler_id?: {
50
- readonly type: "string";
51
- readonly minLength: 1;
52
- readonly description: "The profiler id of a scheduled trace. Given, the run goes under that trace; absent, the run is plain.";
53
- } | undefined;
54
- readonly background?: {
55
- readonly type: "boolean";
56
- 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.";
57
- } | undefined;
58
- };
59
- readonly required: readonly ["target_type"];
60
- }>;
61
- readonly cloud: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
62
- readonly type: "object";
63
- readonly properties: {
64
- readonly target_type: {
65
- readonly type: "string";
66
- readonly enum: readonly ["CLASS", "PROGRAM"] | "CLASS"[];
67
- readonly description: "Run target kind.";
68
- };
69
- readonly class_name?: {
70
- readonly type: "string";
71
- readonly description: "Class to run.";
72
- } | undefined;
73
- readonly program_name?: {
74
- readonly type: "string";
75
- readonly description: "Program to run.";
76
- } | undefined;
77
- readonly profiler_id?: {
78
- readonly type: "string";
79
- readonly minLength: 1;
80
- readonly description: "The profiler id of a scheduled trace. Given, the run goes under that trace; absent, the run is plain.";
81
- } | undefined;
82
- readonly background?: {
83
- readonly type: "boolean";
84
- 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.";
85
- } | undefined;
86
- };
87
- readonly required: readonly ["target_type"];
88
- }>;
13
+ readonly onprem: import("../../../dist/lib/variantDefinition").StatedOnVariant<z.ZodObject<{
14
+ target_type: z.ZodType<"CLASS" | "PROGRAM", unknown, z.core.$ZodTypeInternals<"CLASS" | "PROGRAM", unknown>>;
15
+ class_name: z.ZodOptional<z.ZodString>;
16
+ program_name: z.ZodOptional<z.ZodString>;
17
+ profiler_id: z.ZodOptional<z.ZodString>;
18
+ background: z.ZodOptional<z.ZodBoolean>;
19
+ }, z.core.$strip>>;
20
+ readonly cloud: import("../../../dist/lib/variantDefinition").StatedOnVariant<z.ZodObject<{
21
+ target_type: z.ZodType<"CLASS" | "PROGRAM", unknown, z.core.$ZodTypeInternals<"CLASS" | "PROGRAM", unknown>>;
22
+ class_name: z.ZodOptional<z.ZodString>;
23
+ program_name: z.ZodOptional<z.ZodString>;
24
+ profiler_id: z.ZodOptional<z.ZodString>;
25
+ background: z.ZodOptional<z.ZodBoolean>;
26
+ }, z.core.$strip>>;
89
27
  };
90
28
  readonly name: "HandlerProfileRun";
91
29
  readonly available_in: readonly ["onprem", "cloud"];
92
30
  };
93
- type HandlerProfileRunArgs = {
94
- target_type: 'CLASS' | 'PROGRAM';
95
- class_name?: string;
96
- program_name?: string;
97
- profiler_id?: string;
98
- };
31
+ type HandlerProfileRunArgs = z.output<typeof TOOL_DEFINITION.inputSchema>;
99
32
  /**
100
33
  * The one run of a class or a program (spec §4.6, one ADT request per tool
101
34
  * call): under the caller's `profiler_id` when given, plain without it. The
102
35
  * schedule is `HandlerProfileSchedule`'s request, and finding the trace the
103
36
  * run wrote is the caller's, by `HandlerProfileList`.
104
37
  */
105
- export declare function handleHandlerProfileRun(context: HandlerContext, args: HandlerProfileRunArgs): Promise<{
106
- isError: boolean;
107
- content: {
108
- type: string;
109
- text: string;
110
- }[];
111
- }>;
38
+ export declare function handleHandlerProfileRun(context: HandlerContext, args: HandlerProfileRunArgs): Promise<import("../../../dist/lib/answer").McpResult>;
112
39
  export {};
113
40
  //# sourceMappingURL=handleHandlerProfileRun.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerProfileRun.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileRun.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAMjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQlB,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,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAIF;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,qBAAqB;;;;;;GAc5B"}
1
+ {"version":3,"file":"handleHandlerProfileRun.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileRun.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAKjE,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAC;AAE9B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQlB,CAAC;AAEX,KAAK,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,CAAC;AAI1E;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,qBAAqB,yDAc5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerProfileRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileRun.ts"],"names":[],"mappings":";;;AAqCA,0DAgBC;AArDD,qEAK0C;AAE1C,4DAG0C;AAE7B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,GAAG,IAAA,0BAAS,EAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACzB,WAAW,EAAE,IAAA,6CAA4B,EAAC,OAAO,CAAC;QAClD,WAAW,EAAE,IAAA,2CAA0B,EAAC,gCAAe,CAAC,OAAO,CAAC,CAAC;QACjE,OAAO,EAAE,gCAAe,CAAC,OAAO,CAAC;KAClC,CAAC,CAAC;CACK,CAAC;AASX,MAAM,IAAI,GAAG,mBAAmB,CAAC;AAEjC;;;;;GAKG;AACI,KAAK,UAAU,uBAAuB,CAC3C,OAAuB,EACvB,IAA2B;IAE3B,IAAI,IAAI,CAAC,WAAW,KAAK,OAAO,EAAE,CAAC;QACjC,OAAO,IAAA,0CAAkC,EACvC,OAAO,EACP,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAC9D,IAAI,CACL,CAAC;IACJ,CAAC;IACD,OAAO,IAAA,4CAAoC,EACzC,OAAO,EACP,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAClE,IAAI,CACL,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"handleHandlerProfileRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileRun.ts"],"names":[],"mappings":";;;AAiCA,0DAgBC;AAjDD,qEAK0C;AAE1C,4DAG0C;AAG7B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,GAAG,IAAA,0BAAS,EAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACzB,WAAW,EAAE,IAAA,6CAA4B,EAAC,OAAO,CAAC;QAClD,WAAW,EAAE,IAAA,2CAA0B,EAAC,gCAAe,CAAC,OAAO,CAAC,CAAC;QACjE,OAAO,EAAE,gCAAe,CAAC,OAAO,CAAC;KAClC,CAAC,CAAC;CACK,CAAC;AAIX,MAAM,IAAI,GAAG,mBAAmB,CAAC;AAEjC;;;;;GAKG;AACI,KAAK,UAAU,uBAAuB,CAC3C,OAAuB,EACvB,IAA2B;IAE3B,IAAI,IAAI,CAAC,WAAW,KAAK,OAAO,EAAE,CAAC;QACjC,OAAO,IAAA,0CAAkC,EACvC,OAAO,EACP,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAC9D,IAAI,CACL,CAAC;IACJ,CAAC;IACD,OAAO,IAAA,4CAAoC,EACzC,OAAO,EACP,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAClE,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -4,68 +4,22 @@ export declare const TOOL_DEFINITION: {
4
4
  readonly name: "HandlerProfileSchedule";
5
5
  readonly available_in: readonly ["onprem", "cloud"];
6
6
  readonly description: "Schedules an ABAP profiler trace in one request. Optional: description, profiling flags (all_procedural_units, all_misc_abap_statements, all_internal_table_events, all_dynpro_events, aggregate, explicit_on_off, with_rfc_tracing, all_system_kernel_events, sql_trace, all_db_events, max_size_for_trace_file, amdp_trace, max_time_for_tracing). Response: JSON { success, profiler_id }, profiler_id the id of the scheduled trace.";
7
- readonly inputSchema: {
8
- readonly type: "object";
9
- readonly properties: {
10
- readonly description: {
11
- readonly type: "string";
12
- readonly description: "Profiler trace description.";
13
- };
14
- readonly all_procedural_units: {
15
- readonly type: "boolean";
16
- readonly description: "Trace all procedural units.";
17
- };
18
- readonly all_misc_abap_statements: {
19
- readonly type: "boolean";
20
- readonly description: "Trace miscellaneous ABAP statements.";
21
- };
22
- readonly all_internal_table_events: {
23
- readonly type: "boolean";
24
- readonly description: "Trace internal table events.";
25
- };
26
- readonly all_dynpro_events: {
27
- readonly type: "boolean";
28
- readonly description: "Trace dynpro events.";
29
- };
30
- readonly aggregate: {
31
- readonly type: "boolean";
32
- readonly description: "Aggregate profiling data.";
33
- };
34
- readonly explicit_on_off: {
35
- readonly type: "boolean";
36
- readonly description: "Use explicit on/off trace sections.";
37
- };
38
- readonly with_rfc_tracing: {
39
- readonly type: "boolean";
40
- readonly description: "Enable RFC tracing.";
41
- };
42
- readonly all_system_kernel_events: {
43
- readonly type: "boolean";
44
- readonly description: "Trace system kernel events.";
45
- };
46
- readonly sql_trace: {
47
- readonly type: "boolean";
48
- readonly description: "Enable SQL trace.";
49
- };
50
- readonly all_db_events: {
51
- readonly type: "boolean";
52
- readonly description: "Trace all DB events.";
53
- };
54
- readonly max_size_for_trace_file: {
55
- readonly type: "number";
56
- readonly description: "Maximum trace file size.";
57
- };
58
- readonly amdp_trace: {
59
- readonly type: "boolean";
60
- readonly description: "Enable AMDP tracing.";
61
- };
62
- readonly max_time_for_tracing: {
63
- readonly type: "number";
64
- readonly description: "Maximum tracing time.";
65
- };
66
- };
67
- readonly required: readonly [];
68
- };
7
+ readonly inputSchema: import("zod").ZodObject<{
8
+ description: import("zod").ZodOptional<import("zod").ZodString>;
9
+ all_procedural_units: import("zod").ZodOptional<import("zod").ZodBoolean>;
10
+ all_misc_abap_statements: import("zod").ZodOptional<import("zod").ZodBoolean>;
11
+ all_internal_table_events: import("zod").ZodOptional<import("zod").ZodBoolean>;
12
+ all_dynpro_events: import("zod").ZodOptional<import("zod").ZodBoolean>;
13
+ aggregate: import("zod").ZodOptional<import("zod").ZodBoolean>;
14
+ explicit_on_off: import("zod").ZodOptional<import("zod").ZodBoolean>;
15
+ with_rfc_tracing: import("zod").ZodOptional<import("zod").ZodBoolean>;
16
+ all_system_kernel_events: import("zod").ZodOptional<import("zod").ZodBoolean>;
17
+ sql_trace: import("zod").ZodOptional<import("zod").ZodBoolean>;
18
+ all_db_events: import("zod").ZodOptional<import("zod").ZodBoolean>;
19
+ max_size_for_trace_file: import("zod").ZodOptional<import("zod").ZodNumber>;
20
+ amdp_trace: import("zod").ZodOptional<import("zod").ZodBoolean>;
21
+ max_time_for_tracing: import("zod").ZodOptional<import("zod").ZodNumber>;
22
+ }, import("zod/v4/core").$strip>;
69
23
  };
70
24
  /** The one schedule request; the run that fulfils it takes the profiler id it answers. */
71
25
  export declare function handleHandlerProfileSchedule(context: HandlerContext, args: ScheduleProfilerTraceArgs): Promise<import("../../../dist/lib/answer").McpResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerProfileSchedule.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileSchedule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,0FAA0F;AAC1F,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,yBAAyB,yDAOhC"}
1
+ {"version":3,"file":"handleHandlerProfileSchedule.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileSchedule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,0FAA0F;AAC1F,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,yBAAyB,yDAOhC"}
@@ -1,45 +1,25 @@
1
1
  import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
2
+ import type * as z from 'zod';
2
3
  export declare const TOOL_DEFINITION: {
3
4
  readonly name: "HandlerTransportCreate";
4
5
  readonly available_in: readonly ["onprem", "cloud"];
5
- readonly description: "Transport create. 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
- };
6
+ readonly description: "Creates a transport request and gives its task the type task_type. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner, task_type(S|R|X, default S). Response: JSON with transport_number, task_number and task_type.";
7
+ readonly inputSchema: z.ZodObject<{
8
+ transport_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
9
+ workbench: "workbench";
10
+ customizing: "customizing";
11
+ }>>>;
12
+ description: z.ZodString;
13
+ target_system: z.ZodOptional<z.ZodString>;
14
+ owner: z.ZodOptional<z.ZodString>;
15
+ task_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
16
+ S: "S";
17
+ X: "X";
18
+ R: "R";
19
+ }>>>;
20
+ }, z.core.$strip>;
30
21
  };
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
- }>;
22
+ type HandlerTransportCreateArgs = z.output<typeof TOOL_DEFINITION.inputSchema>;
23
+ export declare function handleHandlerTransportCreate(context: HandlerContext, args: HandlerTransportCreateArgs): Promise<import("../../../dist/lib/answer").McpResult>;
44
24
  export {};
45
25
  //# sourceMappingURL=handleHandlerTransportCreate.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"handleHandlerTransportCreate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportCreate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAC;AAE9B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,CAAC;AAE/E,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,0BAA0B,yDAGjC"}
@@ -7,7 +7,7 @@ const write_1 = require("@mcp-abap-adt/lib/handlers/write");
7
7
  exports.TOOL_DEFINITION = {
8
8
  name: 'HandlerTransportCreate',
9
9
  available_in: ['onprem', 'cloud'],
10
- description: 'Transport create. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner. Response: JSON.',
10
+ description: 'Creates a transport request and gives its task the type task_type. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner, task_type(S|R|X, default S). Response: JSON with transport_number, task_number and task_type.',
11
11
  inputSchema: compact_shared_1.compactTransportCreateSchema,
12
12
  };
13
13
  async function handleHandlerTransportCreate(context, args) {
@@ -1 +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,kIAAkI;IACpI,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"}
1
+ {"version":3,"file":"handleHandlerTransportCreate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportCreate.ts"],"names":[],"mappings":";;;AAeA,oEAKC;AApBD,qEAAgF;AAEhF,4DAAyE;AAG5D,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,wBAAwB;IAC9B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,iQAAiQ;IACnQ,WAAW,EAAE,6CAA4B;CACjC,CAAC;AAIJ,KAAK,UAAU,4BAA4B,CAChD,OAAuB,EACvB,IAAgC;IAEhC,OAAO,IAAA,6BAAqB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC"}
@@ -1,67 +1,21 @@
1
1
  import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
2
+ import type * as z from 'zod';
2
3
  export declare const TOOL_DEFINITION: {
3
4
  readonly name: "HandlerTransportMoveObjects";
4
5
  readonly available_in: readonly ["onprem", "cloud"];
5
6
  readonly description: "Moves the object entries named by objects from the transport task named by transport_number to the task named by target_number. Required: transport_number* (the source task), target_number* (the target task), objects* (at least one: object_name*, object_type*, position* in the source task's object list, pgmid). The positions come from a read of the source task's objects (object_type TRANSPORT). Response: JSON — acceptance only; a re-read of both tasks' objects (object_type TRANSPORT) confirms it.";
6
- readonly inputSchema: {
7
- readonly type: "object";
8
- readonly properties: {
9
- readonly transport_number: {
10
- readonly type: "string";
11
- readonly description: "Number of the transport task that holds the entries.";
12
- };
13
- readonly target_number: {
14
- readonly type: "string";
15
- readonly description: "Number of the transport task the entries move to.";
16
- };
17
- readonly objects: {
18
- readonly type: "array";
19
- readonly minItems: 1;
20
- readonly description: "The entries to move, at least one \u2014 each with object_name, object_type, position (in the source task) and an optional pgmid.";
21
- readonly items: {
22
- readonly type: "object";
23
- readonly properties: {
24
- readonly object_name: {
25
- readonly type: "string";
26
- readonly description: "Object name.";
27
- };
28
- readonly object_type: {
29
- readonly type: "string";
30
- readonly description: "Object-directory type \u2014 CLAS, FUGR, TABL, DOMA \u2014 not an ADT type code like CLAS/OC.";
31
- };
32
- readonly position: {
33
- readonly type: "string";
34
- readonly description: "Position of the object's entry in the source task's object list.";
35
- };
36
- readonly pgmid: {
37
- readonly type: "string";
38
- readonly description: "Program id. Defaults to R3TR, a workbench object's.";
39
- readonly default: "R3TR";
40
- };
41
- };
42
- readonly required: readonly ["object_name", "object_type", "position"];
43
- };
44
- };
45
- };
46
- readonly required: readonly ["transport_number", "target_number", "objects"];
47
- };
7
+ readonly inputSchema: z.ZodObject<{
8
+ transport_number: z.ZodString;
9
+ target_number: z.ZodString;
10
+ objects: z.ZodArray<z.ZodObject<{
11
+ object_name: z.ZodString;
12
+ object_type: z.ZodString;
13
+ position: z.ZodString;
14
+ pgmid: z.ZodOptional<z.ZodDefault<z.ZodString>>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
48
17
  };
49
- type HandlerTransportMoveObjectsArgs = {
50
- transport_number: string;
51
- target_number: string;
52
- objects: {
53
- object_name: string;
54
- object_type: string;
55
- position: string;
56
- pgmid?: string;
57
- }[];
58
- };
59
- export declare function handleHandlerTransportMoveObjects(context: HandlerContext, args: HandlerTransportMoveObjectsArgs): Promise<{
60
- isError: boolean;
61
- content: {
62
- type: string;
63
- text: string;
64
- }[];
65
- }>;
18
+ type HandlerTransportMoveObjectsArgs = z.output<typeof TOOL_DEFINITION.inputSchema>;
19
+ export declare function handleHandlerTransportMoveObjects(context: HandlerContext, args: HandlerTransportMoveObjectsArgs): Promise<import("../../../dist/lib/answer").McpResult>;
66
20
  export {};
67
21
  //# sourceMappingURL=handleHandlerTransportMoveObjects.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerTransportMoveObjects.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportMoveObjects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,+BAA+B,GAAG;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,EAAE,CAAC;CACL,CAAC;AAEF,wBAAsB,iCAAiC,CACrD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,+BAA+B;;;;;;GAGtC"}
1
+ {"version":3,"file":"handleHandlerTransportMoveObjects.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportMoveObjects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAC;AAG9B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,eAAe,CAAC,WAAW,CACnC,CAAC;AAEF,wBAAsB,iCAAiC,CACrD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,+BAA+B,yDAGtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerTransportMoveObjects.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportMoveObjects.ts"],"names":[],"mappings":";;;AAwBA,8EAKC;AA7BD,qEAAqF;AAErF,4DAA8E;AAC9E,6DAAwD;AAE3C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,6BAA6B;IACnC,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,ufAAuf;IACzf,WAAW,EAAE,kDAAiC;CACtC,CAAC;AAaJ,KAAK,UAAU,iCAAiC,CACrD,OAAuB,EACvB,IAAqC;IAErC,OAAO,IAAA,qCAAgB,EAAC,MAAM,IAAA,kCAA0B,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC"}
1
+ {"version":3,"file":"handleHandlerTransportMoveObjects.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportMoveObjects.ts"],"names":[],"mappings":";;;AAkBA,8EAKC;AAvBD,qEAAqF;AAErF,4DAA8E;AAE9E,6DAAwD;AAE3C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,6BAA6B;IACnC,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,ufAAuf;IACzf,WAAW,EAAE,kDAAiC;CACtC,CAAC;AAMJ,KAAK,UAAU,iCAAiC,CACrD,OAAuB,EACvB,IAAqC;IAErC,OAAO,IAAA,qCAAgB,EAAC,MAAM,IAAA,kCAA0B,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC"}
@@ -1,28 +1,14 @@
1
1
  import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
2
+ import type * as z from 'zod';
2
3
  export declare const TOOL_DEFINITION: {
3
4
  readonly name: "HandlerTransportSortAndCompress";
4
5
  readonly available_in: readonly ["onprem", "cloud"];
5
6
  readonly description: "Sorts the object list of the transport task named by transport_number and merges its duplicate entries. Required: transport_number* (a task). A task holding the same entry twice refuses removing an entry until this has run. Response: JSON — acceptance only; a re-read of the task's objects (object_type TRANSPORT) confirms it.";
6
- readonly inputSchema: {
7
- readonly type: "object";
8
- readonly properties: {
9
- readonly transport_number: {
10
- readonly type: "string";
11
- readonly description: "Number of the transport task to sort and compress.";
12
- };
13
- };
14
- readonly required: readonly ["transport_number"];
15
- };
7
+ readonly inputSchema: z.ZodObject<{
8
+ transport_number: z.ZodString;
9
+ }, z.core.$strip>;
16
10
  };
17
- type HandlerTransportSortAndCompressArgs = {
18
- transport_number: string;
19
- };
20
- export declare function handleHandlerTransportSortAndCompress(context: HandlerContext, args: HandlerTransportSortAndCompressArgs): Promise<{
21
- isError: boolean;
22
- content: {
23
- type: string;
24
- text: string;
25
- }[];
26
- }>;
11
+ type HandlerTransportSortAndCompressArgs = z.output<typeof TOOL_DEFINITION.inputSchema>;
12
+ export declare function handleHandlerTransportSortAndCompress(context: HandlerContext, args: HandlerTransportSortAndCompressArgs): Promise<import("../../../dist/lib/answer").McpResult>;
27
13
  export {};
28
14
  //# sourceMappingURL=handleHandlerTransportSortAndCompress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerTransportSortAndCompress.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportSortAndCompress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,mCAAmC,GAAG;IACzC,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,wBAAsB,qCAAqC,CACzD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,mCAAmC;;;;;;GAK1C"}
1
+ {"version":3,"file":"handleHandlerTransportSortAndCompress.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportSortAndCompress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAC;AAG9B,eAAO,MAAM,eAAe;;;;;;;CAMlB,CAAC;AAEX,KAAK,mCAAmC,GAAG,CAAC,CAAC,MAAM,CACjD,OAAO,eAAe,CAAC,WAAW,CACnC,CAAC;AAEF,wBAAsB,qCAAqC,CACzD,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,mCAAmC,yDAK1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerTransportSortAndCompress.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportSortAndCompress.ts"],"names":[],"mappings":";;;AAiBA,sFAOC;AAxBD,qEAAyF;AAEzF,4DAAsF;AACtF,6DAAwD;AAE3C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,iCAAiC;IACvC,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,wUAAwU;IAC1U,WAAW,EAAE,sDAAqC;CAC1C,CAAC;AAMJ,KAAK,UAAU,qCAAqC,CACzD,OAAuB,EACvB,IAAyC;IAEzC,OAAO,IAAA,qCAAgB,EACrB,MAAM,IAAA,0CAAkC,EAAC,OAAO,EAAE,IAAI,CAAC,CACxD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"handleHandlerTransportSortAndCompress.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerTransportSortAndCompress.ts"],"names":[],"mappings":";;;AAkBA,sFAOC;AAzBD,qEAAyF;AAEzF,4DAAsF;AAEtF,6DAAwD;AAE3C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,iCAAiC;IACvC,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,wUAAwU;IAC1U,WAAW,EAAE,sDAAqC;CAC1C,CAAC;AAMJ,KAAK,UAAU,qCAAqC,CACzD,OAAuB,EACvB,IAAyC;IAEzC,OAAO,IAAA,qCAAgB,EACrB,MAAM,IAAA,0CAAkC,EAAC,OAAO,EAAE,IAAI,CAAC,CACxD,CAAC;AACJ,CAAC"}