@mcp-abap-adt/compact-modify 18.1.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.
Files changed (58) hide show
  1. package/README.md +3 -3
  2. package/dist/group.d.ts +9 -7
  3. package/dist/group.d.ts.map +1 -1
  4. package/dist/group.js +24 -7
  5. package/dist/group.js.map +1 -1
  6. package/dist/handlers/compactConfirmWith.d.ts +17 -0
  7. package/dist/handlers/compactConfirmWith.d.ts.map +1 -0
  8. package/dist/handlers/compactConfirmWith.js +39 -0
  9. package/dist/handlers/compactConfirmWith.js.map +1 -0
  10. package/dist/handlers/compactWriteRoutes.d.ts.map +1 -1
  11. package/dist/handlers/compactWriteRoutes.js +80 -61
  12. package/dist/handlers/compactWriteRoutes.js.map +1 -1
  13. package/dist/handlers/handleHandlerActivate.d.ts +6 -6
  14. package/dist/handlers/handleHandlerActivate.js +4 -4
  15. package/dist/handlers/handleHandlerActivate.js.map +1 -1
  16. package/dist/handlers/handleHandlerCreate.d.ts +64 -109
  17. package/dist/handlers/handleHandlerCreate.d.ts.map +1 -1
  18. package/dist/handlers/handleHandlerCreate.js +2 -1
  19. package/dist/handlers/handleHandlerCreate.js.map +1 -1
  20. package/dist/handlers/handleHandlerDelete.d.ts +12 -4
  21. package/dist/handlers/handleHandlerDelete.d.ts.map +1 -1
  22. package/dist/handlers/handleHandlerDelete.js +1 -1
  23. package/dist/handlers/handleHandlerDelete.js.map +1 -1
  24. package/dist/handlers/handleHandlerLock.d.ts +11 -38
  25. package/dist/handlers/handleHandlerLock.d.ts.map +1 -1
  26. package/dist/handlers/handleHandlerLock.js +39 -6
  27. package/dist/handlers/handleHandlerLock.js.map +1 -1
  28. package/dist/handlers/handleHandlerProfileRun.d.ts +16 -76
  29. package/dist/handlers/handleHandlerProfileRun.d.ts.map +1 -1
  30. package/dist/handlers/handleHandlerProfileRun.js +10 -54
  31. package/dist/handlers/handleHandlerProfileRun.js.map +1 -1
  32. package/dist/handlers/handleHandlerProfileSchedule.d.ts +72 -0
  33. package/dist/handlers/handleHandlerProfileSchedule.d.ts.map +1 -0
  34. package/dist/handlers/handleHandlerProfileSchedule.js +17 -0
  35. package/dist/handlers/handleHandlerProfileSchedule.js.map +1 -0
  36. package/dist/handlers/handleHandlerTransportCreate.d.ts +1 -1
  37. package/dist/handlers/handleHandlerTransportCreate.js +1 -1
  38. package/dist/handlers/handleHandlerTransportCreate.js.map +1 -1
  39. package/dist/handlers/handleHandlerTransportMoveObjects.d.ts +67 -0
  40. package/dist/handlers/handleHandlerTransportMoveObjects.d.ts.map +1 -0
  41. package/dist/handlers/handleHandlerTransportMoveObjects.js +17 -0
  42. package/dist/handlers/handleHandlerTransportMoveObjects.js.map +1 -0
  43. package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts +28 -0
  44. package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts.map +1 -0
  45. package/dist/handlers/handleHandlerTransportSortAndCompress.js +17 -0
  46. package/dist/handlers/handleHandlerTransportSortAndCompress.js.map +1 -0
  47. package/dist/handlers/handleHandlerUnitTestRun.d.ts +1 -1
  48. package/dist/handlers/handleHandlerUnitTestRun.js +1 -1
  49. package/dist/handlers/handleHandlerUnitTestRun.js.map +1 -1
  50. package/dist/handlers/handleHandlerUnlock.d.ts +8 -34
  51. package/dist/handlers/handleHandlerUnlock.d.ts.map +1 -1
  52. package/dist/handlers/handleHandlerUnlock.js +31 -6
  53. package/dist/handlers/handleHandlerUnlock.js.map +1 -1
  54. package/dist/handlers/handleHandlerUpdate.d.ts +18 -67
  55. package/dist/handlers/handleHandlerUpdate.d.ts.map +1 -1
  56. package/dist/handlers/handleHandlerUpdate.js +2 -1
  57. package/dist/handlers/handleHandlerUpdate.js.map +1 -1
  58. 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: "HandlerUpdate";
5
5
  readonly available_in: readonly ["onprem", "cloud"];
6
- readonly description: "Update operation. object_type required: PACKAGE(package_name*), DOMAIN(domain_name*), DATA_ELEMENT(data_element_name*), TABLE(table_name*), STRUCTURE(structure_name*), DDL(ddl_name*), SERVICE_DEFINITION(service_definition_name*), SERVICE_BINDING(service_binding_name*), CLASS(class_name*), LOCAL_TEST_CLASS(class_name*), LOCAL_TYPES(class_name*), LOCAL_DEFINITIONS(class_name*), LOCAL_MACROS(class_name*), PROGRAM(program_name*) [onprem only], INTERFACE(interface_name*), FUNCTION_GROUP(function_group_name*), FUNCTION_MODULE(function_module_name*, function_group_name*), BEHAVIOR_DEFINITION(name*, source_code*), BEHAVIOR_IMPLEMENTATION(class_name*, behavior_definition*, implementation_code*), METADATA_EXTENSION(name*, source_code*), UNIT_TEST(class_name*, test_class_source*), CDS_UNIT_TEST(class_name*, test_class_source*).";
6
+ readonly description: "Writes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …) under its lock: sends the one write request of its type under lock_handle, the lock handle of the object, and answers SAP's result. The write sets the whole content to the one given. lock_handle and object_type required: PACKAGE(package_name*, source_code*, transport_request), DOMAIN(domain_name*, source_code*, transport_request), DATA_ELEMENT(data_element_name*, source_code*, transport_request), FUNCTION_GROUP(function_group_name*, source_code*, transport_request), TABLE(table_name*, ddl_code*, transport_request), STRUCTURE(structure_name*, ddl_code*, transport_request), DDL(ddl_name*, ddl_source*, transport_request), SERVICE_DEFINITION(service_definition_name*, source_code*, transport_request), CLASS(class_name*, source_code*, transport_request), LOCAL_TEST_CLASS(class_name*, test_class_code*, transport_request), LOCAL_TYPES(class_name*, local_types_code*, transport_request), LOCAL_DEFINITIONS(class_name*, definitions_code*, transport_request), LOCAL_MACROS(class_name*, macros_code*, transport_request), UNIT_TEST(class_name*, test_class_source*, transport_request), CDS_UNIT_TEST(class_name*, test_class_source*, transport_request), PROGRAM(program_name*, source_code*, transport_request) [onprem only], INTERFACE(interface_name*, source_code*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, source_code*, transport_request), BEHAVIOR_DEFINITION(name*, source_code*, transport_request), BEHAVIOR_IMPLEMENTATION(class_name*, implementation_code*, transport_request), METADATA_EXTENSION(name*, source_code*, transport_request), SERVICE_BINDING(service_binding_name*, desired_publication_state*, binding_variant*, service_name, service_version). For PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP, source_code is the whole metadata document, sent as given. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST, CDS_UNIT_TEST and BEHAVIOR_IMPLEMENTATION, lock_handle is the class's lock handle. For SERVICE_BINDING the write is its publication request, sent under the lock_handle given, an empty one included; service_name and service_version (default 0001) name the service of an OData V2 binding. transport_request is sent as the write's corrNr. Over Streamable HTTP the request carries the lock's state_handle in the x-mcp-state-handle header: the write is sent only under a lock the instance it reaches holds.";
7
7
  readonly inputSchema: {
8
8
  readonly type: "object";
9
9
  readonly properties: {
@@ -12,6 +12,14 @@ export declare const TOOL_DEFINITION: {
12
12
  readonly enum: import("../../../dist/lib/compact/compactObjectTypes").CompactObjectType[];
13
13
  readonly description: "ABAP object type for routed compact operation.";
14
14
  };
15
+ readonly lock_handle: {
16
+ readonly type: "string";
17
+ readonly description: "The lock handle of the object (for a class include, of the class): the write is sent under it.";
18
+ };
19
+ readonly transport_request: {
20
+ readonly type: "string";
21
+ readonly description: "Transport request id, sent as the write's corrNr (the types whose description names it).";
22
+ };
15
23
  readonly class_name: {
16
24
  readonly type: "string";
17
25
  readonly description: "ABAP class name.";
@@ -42,70 +50,12 @@ export declare const TOOL_DEFINITION: {
42
50
  };
43
51
  readonly source_code: {
44
52
  readonly type: "string";
45
- readonly description: "ABAP source code payload.";
53
+ readonly description: "The content written: the source, or for PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP the whole metadata document.";
46
54
  };
47
55
  readonly ddl_source: {
48
56
  readonly type: "string";
49
57
  readonly description: "Complete DDL source code (for DDL update).";
50
58
  };
51
- readonly transport_request: {
52
- readonly type: "string";
53
- readonly description: "Transport request id (if required by system).";
54
- };
55
- readonly activate: {
56
- readonly type: "boolean";
57
- readonly description: "Activate object after update.";
58
- };
59
- readonly description: {
60
- readonly type: "string";
61
- readonly description: "Human-readable object description.";
62
- };
63
- readonly datatype: {
64
- readonly type: "string";
65
- readonly description: "ABAP data type.";
66
- };
67
- readonly length: {
68
- readonly type: "number";
69
- readonly description: "Length for typed artifacts.";
70
- };
71
- readonly decimals: {
72
- readonly type: "number";
73
- readonly description: "Decimal places.";
74
- };
75
- readonly conversion_exit: {
76
- readonly type: "string";
77
- readonly description: "Conversion exit name.";
78
- };
79
- readonly lowercase: {
80
- readonly type: "boolean";
81
- readonly description: "Allow lowercase values (domain setting).";
82
- };
83
- readonly sign_exists: {
84
- readonly type: "boolean";
85
- readonly description: "Allow signed values (domain setting).";
86
- };
87
- readonly value_table: {
88
- readonly type: "string";
89
- readonly description: "Foreign key value table.";
90
- };
91
- readonly fixed_values: {
92
- readonly type: "array";
93
- readonly description: "Domain fixed values list.";
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
- };
108
- };
109
59
  readonly table_name: {
110
60
  readonly type: "string";
111
61
  readonly description: "Table name.";
@@ -132,15 +82,15 @@ export declare const TOOL_DEFINITION: {
132
82
  };
133
83
  readonly service_name: {
134
84
  readonly type: "string";
135
- readonly description: "Published service name (service binding update).";
85
+ readonly description: "Published service name (SERVICE_BINDING, an OData V2 binding).";
136
86
  };
137
- readonly name: {
87
+ readonly service_version: {
138
88
  readonly type: "string";
139
- readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
89
+ readonly description: "Published service version (SERVICE_BINDING, an OData V2 binding). Default 0001.";
140
90
  };
141
- readonly behavior_definition: {
91
+ readonly name: {
142
92
  readonly type: "string";
143
- readonly description: "Referenced behavior definition name (behavior implementation update).";
93
+ readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
144
94
  };
145
95
  readonly ddl_code: {
146
96
  readonly type: "string";
@@ -177,16 +127,17 @@ export declare const TOOL_DEFINITION: {
177
127
  };
178
128
  readonly desired_publication_state: {
179
129
  readonly type: "string";
180
- readonly enum: readonly ["published", "unpublished", "unchanged"];
130
+ readonly enum: readonly ["published", "unpublished"];
181
131
  readonly description: "Target publication state (service binding update).";
182
132
  };
183
133
  };
184
- readonly required: readonly ["object_type"];
134
+ readonly required: readonly ["object_type", "lock_handle"];
185
135
  };
186
136
  };
187
137
  type HandlerUpdateArgs = {
188
138
  object_type: CompactObjectType;
189
139
  } & Record<string, unknown>;
140
+ /** One request: the type's write under `lock_handle` (`handleUpdateUnderLock`, spec §4.6). */
190
141
  export declare function handleHandlerUpdate(context: HandlerContext, args: HandlerUpdateArgs): Promise<unknown>;
191
142
  export {};
192
143
  //# sourceMappingURL=handleHandlerUpdate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerUpdate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerUpdate.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"}
1
+ {"version":3,"file":"handleHandlerUpdate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerUpdate.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,8FAA8F;AAC9F,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: 'HandlerUpdate',
9
9
  available_in: ['onprem', 'cloud'],
10
- description: 'Update operation. object_type required: PACKAGE(package_name*), DOMAIN(domain_name*), DATA_ELEMENT(data_element_name*), TABLE(table_name*), STRUCTURE(structure_name*), DDL(ddl_name*), SERVICE_DEFINITION(service_definition_name*), SERVICE_BINDING(service_binding_name*), CLASS(class_name*), LOCAL_TEST_CLASS(class_name*), LOCAL_TYPES(class_name*), LOCAL_DEFINITIONS(class_name*), LOCAL_MACROS(class_name*), PROGRAM(program_name*) [onprem only], INTERFACE(interface_name*), FUNCTION_GROUP(function_group_name*), FUNCTION_MODULE(function_module_name*, function_group_name*), BEHAVIOR_DEFINITION(name*, source_code*), BEHAVIOR_IMPLEMENTATION(class_name*, behavior_definition*, implementation_code*), METADATA_EXTENSION(name*, source_code*), UNIT_TEST(class_name*, test_class_source*), CDS_UNIT_TEST(class_name*, test_class_source*).',
10
+ description: "Writes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …) under its lock: sends the one write request of its type under lock_handle, the lock handle of the object, and answers SAP's result. The write sets the whole content to the one given. lock_handle and object_type required: PACKAGE(package_name*, source_code*, transport_request), DOMAIN(domain_name*, source_code*, transport_request), DATA_ELEMENT(data_element_name*, source_code*, transport_request), FUNCTION_GROUP(function_group_name*, source_code*, transport_request), TABLE(table_name*, ddl_code*, transport_request), STRUCTURE(structure_name*, ddl_code*, transport_request), DDL(ddl_name*, ddl_source*, transport_request), SERVICE_DEFINITION(service_definition_name*, source_code*, transport_request), CLASS(class_name*, source_code*, transport_request), LOCAL_TEST_CLASS(class_name*, test_class_code*, transport_request), LOCAL_TYPES(class_name*, local_types_code*, transport_request), LOCAL_DEFINITIONS(class_name*, definitions_code*, transport_request), LOCAL_MACROS(class_name*, macros_code*, transport_request), UNIT_TEST(class_name*, test_class_source*, transport_request), CDS_UNIT_TEST(class_name*, test_class_source*, transport_request), PROGRAM(program_name*, source_code*, transport_request) [onprem only], INTERFACE(interface_name*, source_code*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, source_code*, transport_request), BEHAVIOR_DEFINITION(name*, source_code*, transport_request), BEHAVIOR_IMPLEMENTATION(class_name*, implementation_code*, transport_request), METADATA_EXTENSION(name*, source_code*, transport_request), SERVICE_BINDING(service_binding_name*, desired_publication_state*, binding_variant*, service_name, service_version). For PACKAGE, DOMAIN, DATA_ELEMENT and FUNCTION_GROUP, source_code is the whole metadata document, sent as given. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST, CDS_UNIT_TEST and BEHAVIOR_IMPLEMENTATION, lock_handle is the class's lock handle. For SERVICE_BINDING the write is its publication request, sent under the lock_handle given, an empty one included; service_name and service_version (default 0001) name the service of an OData V2 binding. transport_request is sent as the write's corrNr. Over Streamable HTTP the request carries the lock's state_handle in the x-mcp-state-handle header: the write is sent only under a lock the instance it reaches holds.",
11
11
  inputSchema: compact_shared_1.compactUpdateSchema,
12
12
  };
13
+ /** One request: the type's write under `lock_handle` (`handleUpdateUnderLock`, spec §4.6). */
13
14
  async function handleHandlerUpdate(context, args) {
14
15
  return (0, compactWriteRoutes_1.routeCompactWrite)(context, 'update', args);
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerUpdate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUpdate.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,8zBAA8zB;IACh0B,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"}
1
+ {"version":3,"file":"handleHandlerUpdate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUpdate.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,w8EAAw8E;IAC18E,WAAW,EAAE,oCAAmB;CACxB,CAAC;AAOX,8FAA8F;AACvF,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/compact-modify",
3
- "version": "18.1.0",
3
+ "version": "19.0.0",
4
4
  "description": "The compact ABAP ADT tools that write, lock, activate or execute: one tool per operation, the object in the arguments.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Oleksii Kyslytsia <oleksij.kyslytsja@gmail.com>",
@@ -46,13 +46,13 @@
46
46
  "scripts": {
47
47
  "prebuild": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
48
48
  "build": "npx tsc -p tsconfig.json",
49
- "test": "jest --passWithNoTests",
49
+ "test": "npm --prefix .. test -- --roots compact-modify/src",
50
50
  "lint:check": "npx biome check src",
51
51
  "prepublishOnly": "npm run build"
52
52
  },
53
53
  "dependencies": {
54
- "@mcp-abap-adt/interfaces-adt": "^15.3.0",
55
- "@mcp-abap-adt/lib": "^18.1.0"
54
+ "@mcp-abap-adt/interfaces-adt": "^20.0.0",
55
+ "@mcp-abap-adt/lib": "^19.0.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "typescript": "^6.0.2",