@mcp-abap-adt/compact-modify 21.0.0 → 22.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 (40) hide show
  1. package/README.md +3 -0
  2. package/dist/handlers/compactWriteRoutes.d.ts +1 -1
  3. package/dist/handlers/compactWriteRoutes.d.ts.map +1 -1
  4. package/dist/handlers/compactWriteRoutes.js.map +1 -1
  5. package/dist/handlers/handleHandlerActivate.d.ts +137 -12
  6. package/dist/handlers/handleHandlerActivate.d.ts.map +1 -1
  7. package/dist/handlers/handleHandlerActivate.js +64 -86
  8. package/dist/handlers/handleHandlerActivate.js.map +1 -1
  9. package/dist/handlers/handleHandlerCreate.d.ts +317 -8
  10. package/dist/handlers/handleHandlerCreate.d.ts.map +1 -1
  11. package/dist/handlers/handleHandlerCreate.js +26 -3
  12. package/dist/handlers/handleHandlerCreate.js.map +1 -1
  13. package/dist/handlers/handleHandlerDelete.d.ts +173 -5
  14. package/dist/handlers/handleHandlerDelete.d.ts.map +1 -1
  15. package/dist/handlers/handleHandlerDelete.js +4 -2
  16. package/dist/handlers/handleHandlerDelete.js.map +1 -1
  17. package/dist/handlers/handleHandlerLock.d.ts +48 -9
  18. package/dist/handlers/handleHandlerLock.d.ts.map +1 -1
  19. package/dist/handlers/handleHandlerLock.js +14 -8
  20. package/dist/handlers/handleHandlerLock.js.map +1 -1
  21. package/dist/handlers/handleHandlerProfileRun.d.ts +62 -4
  22. package/dist/handlers/handleHandlerProfileRun.d.ts.map +1 -1
  23. package/dist/handlers/handleHandlerProfileRun.js +4 -2
  24. package/dist/handlers/handleHandlerProfileRun.js.map +1 -1
  25. package/dist/handlers/handleHandlerProfileSchedule.d.ts +1 -1
  26. package/dist/handlers/handleHandlerProfileSchedule.js +1 -1
  27. package/dist/handlers/handleHandlerProfileSchedule.js.map +1 -1
  28. package/dist/handlers/handleHandlerUnitTestRun.d.ts +35 -5
  29. package/dist/handlers/handleHandlerUnitTestRun.d.ts.map +1 -1
  30. package/dist/handlers/handleHandlerUnitTestRun.js +1 -1
  31. package/dist/handlers/handleHandlerUnitTestRun.js.map +1 -1
  32. package/dist/handlers/handleHandlerUnlock.d.ts +47 -14
  33. package/dist/handlers/handleHandlerUnlock.d.ts.map +1 -1
  34. package/dist/handlers/handleHandlerUnlock.js +14 -8
  35. package/dist/handlers/handleHandlerUnlock.js.map +1 -1
  36. package/dist/handlers/handleHandlerUpdate.d.ts +267 -8
  37. package/dist/handlers/handleHandlerUpdate.d.ts.map +1 -1
  38. package/dist/handlers/handleHandlerUpdate.js +21 -3
  39. package/dist/handlers/handleHandlerUpdate.js.map +1 -1
  40. package/package.json +4 -4
@@ -1,20 +1,17 @@
1
- import type { CompactObjectType } from '@mcp-abap-adt/lib/compact-shared';
2
- import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
1
+ import { type HandlerContext } from '@mcp-abap-adt/lib/handlers';
3
2
  export declare const TOOL_DEFINITION: {
4
- readonly name: "HandlerLock";
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*), 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: send it as the state_handle argument of every call under this lock, the write and the unlock (or in the x-mcp-state-handle header).";
3
+ readonly description: string;
7
4
  readonly inputSchema: {
8
5
  readonly type: "object";
9
6
  readonly properties: {
10
7
  readonly super_package: {
11
8
  readonly type: "string";
12
- readonly description: "Super package context when relevant.";
9
+ readonly description: "Super package of the package to lock. Required for PACKAGE.";
13
10
  };
14
11
  readonly object_type: {
15
12
  readonly type: "string";
16
- readonly enum: readonly string[];
17
- readonly description: `Object type. Supported: ${string}.`;
13
+ readonly enum: readonly ["CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "TABLE", "STRUCTURE", "DDL", "DOMAIN", "DATA_ELEMENT", "PACKAGE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_DEFINITION", "SERVICE_BINDING"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION")[];
14
+ readonly description: `Object type. ${string}`;
18
15
  };
19
16
  readonly object_name: {
20
17
  readonly type: "string";
@@ -23,9 +20,51 @@ export declare const TOOL_DEFINITION: {
23
20
  };
24
21
  readonly required: readonly ["object_type", "object_name"];
25
22
  };
23
+ readonly variants: {
24
+ readonly onprem: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
25
+ readonly type: "object";
26
+ readonly properties: {
27
+ readonly super_package: {
28
+ readonly type: "string";
29
+ readonly description: "Super package of the package to lock. Required for PACKAGE.";
30
+ };
31
+ readonly object_type: {
32
+ readonly type: "string";
33
+ readonly enum: readonly ["CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "TABLE", "STRUCTURE", "DDL", "DOMAIN", "DATA_ELEMENT", "PACKAGE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_DEFINITION", "SERVICE_BINDING"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION")[];
34
+ readonly description: `Object type. ${string}`;
35
+ };
36
+ readonly object_name: {
37
+ readonly type: "string";
38
+ readonly description: "Object name. A function module is named GROUP|MODULE, its function group first.";
39
+ };
40
+ };
41
+ readonly required: readonly ["object_type", "object_name"];
42
+ }>;
43
+ readonly cloud: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
44
+ readonly type: "object";
45
+ readonly properties: {
46
+ readonly super_package: {
47
+ readonly type: "string";
48
+ readonly description: "Super package of the package to lock. Required for PACKAGE.";
49
+ };
50
+ readonly object_type: {
51
+ readonly type: "string";
52
+ readonly enum: readonly ["CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "TABLE", "STRUCTURE", "DDL", "DOMAIN", "DATA_ELEMENT", "PACKAGE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_DEFINITION", "SERVICE_BINDING"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION")[];
53
+ readonly description: `Object type. ${string}`;
54
+ };
55
+ readonly object_name: {
56
+ readonly type: "string";
57
+ readonly description: "Object name. A function module is named GROUP|MODULE, its function group first.";
58
+ };
59
+ };
60
+ readonly required: readonly ["object_type", "object_name"];
61
+ }>;
62
+ };
63
+ readonly name: "HandlerLock";
64
+ readonly available_in: readonly ["onprem", "cloud"];
26
65
  };
27
66
  type HandlerLockArgs = {
28
- object_type: CompactObjectType;
67
+ object_type: string;
29
68
  object_name: string;
30
69
  super_package?: string;
31
70
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;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"}
1
+ {"version":3,"file":"handleHandlerLock.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerLock.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,4BAA4B,CAAC;AAG5E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC;AAEX,KAAK,eAAe,GAAG;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,eAAe,uBAmBtB;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"}
@@ -3,25 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TOOL_DEFINITION = void 0;
4
4
  exports.handleHandlerLock = handleHandlerLock;
5
5
  const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
6
+ const handlers_1 = require("@mcp-abap-adt/lib/handlers");
6
7
  const write_1 = require("@mcp-abap-adt/lib/handlers/write");
7
8
  exports.TOOL_DEFINITION = {
8
9
  name: 'HandlerLock',
9
10
  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*), 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: send it as the state_handle argument of every call under this lock, the write and the unlock (or in the x-mcp-state-handle header).',
11
- inputSchema: compact_shared_1.compactLockSchema,
11
+ ...(0, compact_shared_1.byVariant)((variant) => ({
12
+ description: (0, compact_shared_1.compactLockDescription)(variant),
13
+ inputSchema: (0, compact_shared_1.compactLockSchemaFor)(compact_shared_1.COMPACT_LOCK[variant]),
14
+ })),
12
15
  };
13
16
  async function handleHandlerLock(context, args) {
14
- const lowType = (0, compact_shared_1.toLockObjectType)(args.object_type);
15
- if (!lowType) {
16
- throw new Error(`Lock is not supported for object_type: ${args.object_type}`);
17
+ // The boundary of object_type: one of the declared variant's members
18
+ // (`COMPACT_LOCK`); past it, the kind is typed (`COMPACT_LOCK_KINDS`).
19
+ const variant = (0, handlers_1.variantOf)(context.connection);
20
+ const member = (0, compact_shared_1.acceptedOf)(args.object_type, compact_shared_1.COMPACT_LOCK[variant]);
21
+ if (member === undefined) {
22
+ throw new Error(`Lock is not supported for object_type: ${args.object_type}. ${(0, compact_shared_1.supported)(compact_shared_1.COMPACT_LOCK[variant])}`);
17
23
  }
18
- const answered = (await (0, write_1.handleLockObject)(context, {
24
+ const answered = (await (0, write_1.lockObject)(context, {
19
25
  object_name: args.object_name,
20
- object_type: lowType,
26
+ object_type: compact_shared_1.COMPACT_LOCK_KINDS[member],
21
27
  super_package: args.super_package,
22
28
  }));
23
29
  // A package lock over RFC lives in a session of its own.
24
- return keptLock(context, answered, args.object_type === 'PACKAGE' ? 'own' : 'main');
30
+ return keptLock(context, answered, member === 'PACKAGE' ? 'own' : 'main');
25
31
  }
26
32
  /**
27
33
  * Where the host keeps locks (Streamable HTTP), the handle a lock answered
@@ -1 +1 @@
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,m1BAAm1B;IACr1B,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;I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rD,GAAG,CAAC,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;SACrC;KACF,CAAC;AACJ,CAAC"}
@@ -1,14 +1,12 @@
1
1
  import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
2
2
  export declare const TOOL_DEFINITION: {
3
- readonly name: "HandlerProfileRun";
4
- readonly available_in: readonly ["onprem", "cloud"];
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.";
3
+ readonly description: string;
6
4
  readonly inputSchema: {
7
5
  readonly type: "object";
8
6
  readonly properties: {
9
7
  readonly target_type: {
10
8
  readonly type: "string";
11
- readonly enum: readonly ["CLASS", "PROGRAM"];
9
+ readonly enum: readonly ["CLASS", "PROGRAM"] | "CLASS"[];
12
10
  readonly description: "Run target kind.";
13
11
  };
14
12
  readonly class_name: {
@@ -31,6 +29,66 @@ export declare const TOOL_DEFINITION: {
31
29
  };
32
30
  readonly required: readonly ["target_type"];
33
31
  };
32
+ 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
+ };
45
+ readonly program_name: {
46
+ readonly type: "string";
47
+ readonly description: "Program to run.";
48
+ };
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
+ };
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
+ };
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
+ };
73
+ readonly program_name: {
74
+ readonly type: "string";
75
+ readonly description: "Program to run.";
76
+ };
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
+ };
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
+ };
86
+ };
87
+ readonly required: readonly ["target_type"];
88
+ }>;
89
+ };
90
+ readonly name: "HandlerProfileRun";
91
+ readonly available_in: readonly ["onprem", "cloud"];
34
92
  };
35
93
  type HandlerProfileRunArgs = {
36
94
  target_type: 'CLASS' | 'PROGRAM';
@@ -1 +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;AAMjE,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,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;AAMjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,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"}
@@ -7,8 +7,10 @@ const write_1 = require("@mcp-abap-adt/lib/handlers/write");
7
7
  exports.TOOL_DEFINITION = {
8
8
  name: 'HandlerProfileRun',
9
9
  available_in: ['onprem', 'cloud'],
10
- 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.',
11
- inputSchema: compact_shared_1.compactProfileRunSchema,
10
+ ...(0, compact_shared_1.byVariant)((variant) => ({
11
+ description: (0, compact_shared_1.compactProfileRunDescription)(variant),
12
+ inputSchema: (0, compact_shared_1.compactProfileRunSchemaFor)(compact_shared_1.COMPACT_PROFILE[variant]),
13
+ })),
12
14
  };
13
15
  const TOOL = 'HandlerProfileRun';
14
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerProfileRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileRun.ts"],"names":[],"mappings":";;;AA8BA,0DAgBC;AA9CD,qEAA2E;AAE3E,4DAG0C;AAE7B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,6bAA6b;IAC/b,WAAW,EAAE,wCAAuB;CAC5B,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":";;;AAoCA,0DAgBC;AApDD,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;KAClE,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"}
@@ -3,7 +3,7 @@ import { type ScheduleProfilerTraceArgs } from '@mcp-abap-adt/lib/handlers/write
3
3
  export declare const TOOL_DEFINITION: {
4
4
  readonly name: "HandlerProfileSchedule";
5
5
  readonly available_in: readonly ["onprem", "cloud"];
6
- readonly description: "[read-only] 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.";
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
7
  readonly inputSchema: {
8
8
  readonly type: "object";
9
9
  readonly properties: {
@@ -7,7 +7,7 @@ const write_1 = require("@mcp-abap-adt/lib/handlers/write");
7
7
  exports.TOOL_DEFINITION = {
8
8
  name: 'HandlerProfileSchedule',
9
9
  available_in: ['onprem', 'cloud'],
10
- description: '[read-only] 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.',
10
+ 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.',
11
11
  inputSchema: compact_shared_1.compactProfileScheduleSchema,
12
12
  };
13
13
  /** The one schedule request; the run that fulfils it takes the profiler id it answers. */
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerProfileSchedule.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileSchedule.ts"],"names":[],"mappings":";;;AAgBA,oEASC;AAzBD,qEAAgF;AAEhF,4DAG0C;AAE7B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,wBAAwB;IAC9B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,sbAAsb;IACxb,WAAW,EAAE,6CAA4B;CACjC,CAAC;AAEX,0FAA0F;AACnF,KAAK,UAAU,4BAA4B,CAChD,OAAuB,EACvB,IAA+B;IAE/B,OAAO,IAAA,uCAA+B,EACpC,OAAO,EACP,IAAI,IAAI,EAAE,EACV,wBAAwB,CACzB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"handleHandlerProfileSchedule.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileSchedule.ts"],"names":[],"mappings":";;;AAgBA,oEASC;AAzBD,qEAAgF;AAEhF,4DAG0C;AAE7B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,wBAAwB;IAC9B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,0aAA0a;IAC5a,WAAW,EAAE,6CAA4B;CACjC,CAAC;AAEX,0FAA0F;AACnF,KAAK,UAAU,4BAA4B,CAChD,OAAuB,EACvB,IAA+B;IAE/B,OAAO,IAAA,uCAA+B,EACpC,OAAO,EACP,IAAI,IAAI,EAAE,EACV,wBAAwB,CACzB,CAAC;AACJ,CAAC"}
@@ -3,13 +3,13 @@ import { type UnitTestRunner } from '@mcp-abap-adt/lib/handlers/write';
3
3
  export declare const TOOL_DEFINITION: {
4
4
  readonly name: "HandlerUnitTestRun";
5
5
  readonly available_in: readonly ["onprem", "cloud"];
6
- readonly description: "[read-only] ABAP Unit test run. Required: tests[]{container_class*, test_class*}. Optional: runner (async | sync, default async), title, context, scope, risk_level, duration. Response: JSON — runner async: { success, run_id }, the status and result read later by run_id, suited to long suites; runner sync: { success, runner, finished, run_result }, the finished result of every test class of each container_class in one request.";
6
+ readonly description: "ABAP Unit test run, for exactly one of tests and target. tests[]{container_class*, test_class*}: chosen local test classes of global classes. target: all tests of one object of any run object type — { kind: object, name, type }, e.g. CLAS/OC a class, PROG/P a report, FUGR/F a function group, DDLS/DF a CDS view (its tests run with scope.foreign_tests true) — or of a package — { kind: package, name, include_subpackages }. Optional: runner (async | sync, default async; sync with tests only), title, context, scope, risk_level, duration. Response: JSON — runner async (tests or target): { success, run_id }, the status and result read later by run_id, suited to long suites; runner sync: { success, runner, finished, run_result }, the finished result of every test class of each container_class in one request.";
7
7
  readonly inputSchema: {
8
8
  readonly type: "object";
9
9
  readonly properties: {
10
10
  readonly tests: {
11
11
  readonly type: "array";
12
- readonly description: "List of test classes to run.";
12
+ readonly description: "Test classes to run, each named by its global class and its local test class (exactly one of tests and target).";
13
13
  readonly items: {
14
14
  readonly type: "object";
15
15
  readonly properties: {
@@ -25,11 +25,36 @@ export declare const TOOL_DEFINITION: {
25
25
  readonly required: readonly ["container_class", "test_class"];
26
26
  };
27
27
  };
28
+ readonly target: {
29
+ readonly type: "object";
30
+ readonly description: "What the run covers: an object (kind object, name, type) or a package (kind package, name, include_subpackages).";
31
+ readonly properties: {
32
+ readonly kind: {
33
+ readonly type: "string";
34
+ readonly enum: readonly ("object" | "package")[];
35
+ readonly description: "object: one object, named by name and type. package: one package, named by name.";
36
+ };
37
+ readonly name: {
38
+ readonly type: "string";
39
+ readonly description: "Name of the object or the package.";
40
+ };
41
+ readonly type: {
42
+ readonly type: "string";
43
+ readonly enum: readonly ("DCLS/DL" | "BDEF/BDO" | "CLAS/OC" | "DDLS/DF" | "FUGR/F" | "FUGR/I" | "FUGR/FF" | "PROG/I" | "DEVC/K" | "PROG/P" | "SRVB/SVB" | "TABL/DT" | "XSLT/VT" | "CLAS" | "DDLS" | "FUGR" | "PROG" | "CMPT" | "FUNC" | "CLAS/OCL" | "CLAS/OCI" | "CLAS/OCP" | "CLAS/OLD" | "PROG/PL" | "PROG/PLM" | "FUGR/PL" | "FUGR/PLM" | "RQRQ/RQ")[];
44
+ readonly description: "Run object type of the object (kind object; required there).";
45
+ };
46
+ readonly include_subpackages: {
47
+ readonly type: "boolean";
48
+ readonly description: "Whether the run covers the package's subpackages too (kind package; required there).";
49
+ };
50
+ };
51
+ readonly required: readonly ["kind", "name"];
52
+ };
28
53
  readonly runner: {
29
54
  readonly type: "string";
30
55
  readonly enum: readonly ["async", "sync"];
31
56
  readonly default: "async";
32
- readonly description: "async (default): starts the run and returns its run_id, whose status and result are read by run_id; suited to long suites. sync: one request that runs every test class of each container_class and returns the finished result.";
57
+ readonly description: "async (default): starts the run and returns its run_id, whose status and result are read by run_id; suited to long suites. sync (tests only): one request that runs every test class of each container_class and returns the finished result. A target run is async.";
33
58
  };
34
59
  readonly title: {
35
60
  readonly type: "string";
@@ -94,14 +119,19 @@ export declare const TOOL_DEFINITION: {
94
119
  };
95
120
  };
96
121
  };
97
- readonly required: readonly ["tests"];
98
122
  };
99
123
  };
100
124
  type HandlerUnitTestRunArgs = {
101
- tests: Array<{
125
+ tests?: Array<{
102
126
  container_class: string;
103
127
  test_class: string;
104
128
  }>;
129
+ target?: {
130
+ kind: 'object' | 'package';
131
+ name: string;
132
+ type?: string;
133
+ include_subpackages?: boolean;
134
+ };
105
135
  title?: string;
106
136
  context?: string;
107
137
  scope?: {
@@ -1 +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;AACjE,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,kCAAkC,CAAC;AAE1C,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,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pB,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;IACF,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,sBAAsB;;;;;;GAG7B"}
@@ -7,7 +7,7 @@ const write_1 = require("@mcp-abap-adt/lib/handlers/write");
7
7
  exports.TOOL_DEFINITION = {
8
8
  name: 'HandlerUnitTestRun',
9
9
  available_in: ['onprem', 'cloud'],
10
- description: '[read-only] ABAP Unit test run. Required: tests[]{container_class*, test_class*}. Optional: runner (async | sync, default async), title, context, scope, risk_level, duration. Response: JSON — runner async: { success, run_id }, the status and result read later by run_id, suited to long suites; runner sync: { success, runner, finished, run_result }, the finished result of every test class of each container_class in one request.',
10
+ description: 'ABAP Unit test run, for exactly one of tests and target. tests[]{container_class*, test_class*}: chosen local test classes of global classes. target: all tests of one object of any run object type — { kind: object, name, type }, e.g. CLAS/OC a class, PROG/P a report, FUGR/F a function group, DDLS/DF a CDS view (its tests run with scope.foreign_tests true) — or of a package — { kind: package, name, include_subpackages }. Optional: runner (async | sync, default async; sync with tests only), title, context, scope, risk_level, duration. Response: JSON — runner async (tests or target): { success, run_id }, the status and result read later by run_id, suited to long suites; runner sync: { success, runner, finished, run_result }, the finished result of every test class of each container_class in one request.',
11
11
  inputSchema: compact_shared_1.compactUnitTestRunSchema,
12
12
  };
13
13
  async function handleHandlerUnitTestRun(context, args) {
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerUnitTestRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnitTestRun.ts"],"names":[],"mappings":";;;AAwCA,4DAKC;AA7CD,qEAA4E;AAE5E,4DAG0C;AAE7B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,+aAA+a;IACjb,WAAW,EAAE,yCAAwB;CAC7B,CAAC;AA2BJ,KAAK,UAAU,wBAAwB,CAC5C,OAAuB,EACvB,IAA4B;IAE5B,OAAO,IAAA,8BAAsB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"handleHandlerUnitTestRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnitTestRun.ts"],"names":[],"mappings":";;;AA8CA,4DAKC;AAnDD,qEAA4E;AAE5E,4DAG0C;AAE7B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,6yBAA6yB;IAC/yB,WAAW,EAAE,yCAAwB;CAC7B,CAAC;AAiCJ,KAAK,UAAU,wBAAwB,CAC5C,OAAuB,EACvB,IAA4B;IAE5B,OAAO,IAAA,8BAAsB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC/C,CAAC"}
@@ -1,9 +1,6 @@
1
- import type { CompactObjectType } from '@mcp-abap-adt/lib/compact-shared';
2
- import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
1
+ import { type HandlerContext } from '@mcp-abap-adt/lib/handlers';
3
2
  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*), PROGRAM(object_name*, lock_handle*) [onprem only], INTERFACE(object_name*, lock_handle*), FUNCTION_GROUP(object_name*, lock_handle*), FUNCTION_MODULE(object_name*, lock_handle*), TABLE(object_name*, lock_handle*), STRUCTURE(object_name*, lock_handle*), DDL(object_name*, lock_handle*), DOMAIN(object_name*, lock_handle*), DATA_ELEMENT(object_name*, lock_handle*), PACKAGE(object_name*, lock_handle*), BEHAVIOR_DEFINITION(object_name*, lock_handle*), BEHAVIOR_IMPLEMENTATION(object_name*, lock_handle*), METADATA_EXTENSION(object_name*, lock_handle*), SERVICE_DEFINITION(object_name*, lock_handle*), SERVICE_BINDING(object_name*, lock_handle*); an empty lock_handle of a SERVICE_BINDING answers that the binding is already unlocked. Over Streamable HTTP the unlock takes the lock's state_handle: send it as the state_handle argument of every call under the lock (or in the x-mcp-state-handle header); the unlock ends the instance's hold on the lock.";
3
+ readonly description: string;
7
4
  readonly inputSchema: {
8
5
  readonly type: "object";
9
6
  readonly properties: {
@@ -13,8 +10,8 @@ export declare const TOOL_DEFINITION: {
13
10
  };
14
11
  readonly object_type: {
15
12
  readonly type: "string";
16
- readonly enum: readonly string[];
17
- readonly description: `Object type. Supported: ${string}.`;
13
+ readonly enum: readonly ["CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "TABLE", "STRUCTURE", "DDL", "DOMAIN", "DATA_ELEMENT", "PACKAGE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_DEFINITION", "SERVICE_BINDING"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION")[];
14
+ readonly description: `Object type. ${string}`;
18
15
  };
19
16
  readonly object_name: {
20
17
  readonly type: "string";
@@ -23,20 +20,56 @@ export declare const TOOL_DEFINITION: {
23
20
  };
24
21
  readonly required: readonly ["object_type", "object_name", "lock_handle"];
25
22
  };
23
+ readonly variants: {
24
+ readonly onprem: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
25
+ readonly type: "object";
26
+ readonly properties: {
27
+ readonly lock_handle: {
28
+ readonly type: "string";
29
+ readonly description: "Lock handle returned by lock.";
30
+ };
31
+ readonly object_type: {
32
+ readonly type: "string";
33
+ readonly enum: readonly ["CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "TABLE", "STRUCTURE", "DDL", "DOMAIN", "DATA_ELEMENT", "PACKAGE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_DEFINITION", "SERVICE_BINDING"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION")[];
34
+ readonly description: `Object type. ${string}`;
35
+ };
36
+ readonly object_name: {
37
+ readonly type: "string";
38
+ readonly description: "Object name. A function module is named GROUP|MODULE, its function group first.";
39
+ };
40
+ };
41
+ readonly required: readonly ["object_type", "object_name", "lock_handle"];
42
+ }>;
43
+ readonly cloud: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
44
+ readonly type: "object";
45
+ readonly properties: {
46
+ readonly lock_handle: {
47
+ readonly type: "string";
48
+ readonly description: "Lock handle returned by lock.";
49
+ };
50
+ readonly object_type: {
51
+ readonly type: "string";
52
+ readonly enum: readonly ["CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "TABLE", "STRUCTURE", "DDL", "DOMAIN", "DATA_ELEMENT", "PACKAGE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "SERVICE_DEFINITION", "SERVICE_BINDING"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION")[];
53
+ readonly description: `Object type. ${string}`;
54
+ };
55
+ readonly object_name: {
56
+ readonly type: "string";
57
+ readonly description: "Object name. A function module is named GROUP|MODULE, its function group first.";
58
+ };
59
+ };
60
+ readonly required: readonly ["object_type", "object_name", "lock_handle"];
61
+ }>;
62
+ };
63
+ readonly name: "HandlerUnlock";
64
+ readonly available_in: readonly ["onprem", "cloud"];
26
65
  };
27
66
  type HandlerUnlockArgs = {
28
- object_type: CompactObjectType;
67
+ object_type: string;
29
68
  object_name: string;
30
69
  lock_handle: string;
31
70
  };
32
71
  export declare function handleHandlerUnlock(context: HandlerContext, args: HandlerUnlockArgs): Promise<{
33
72
  isError?: boolean;
34
- } | {
35
- isError: boolean;
36
- content: {
37
- type: "text";
38
- text: string;
39
- }[];
40
73
  }>;
41
74
  export {};
42
75
  //# sourceMappingURL=handleHandlerUnlock.d.ts.map
@@ -1 +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;AAO1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,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;CACrB,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB;cAwCJ,OAAO;;;;;;;GAI3B"}
1
+ {"version":3,"file":"handleHandlerUnlock.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnlock.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,4BAA4B,CAAC;AAI5E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB;cA2CJ,OAAO;GAI3B"}
@@ -3,22 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TOOL_DEFINITION = void 0;
4
4
  exports.handleHandlerUnlock = handleHandlerUnlock;
5
5
  const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
6
+ const handlers_1 = require("@mcp-abap-adt/lib/handlers");
6
7
  const write_1 = require("@mcp-abap-adt/lib/handlers/write");
7
8
  const utils_1 = require("@mcp-abap-adt/lib/utils");
8
9
  exports.TOOL_DEFINITION = {
9
10
  name: 'HandlerUnlock',
10
11
  available_in: ['onprem', 'cloud'],
11
- description: "Unlock operation. object_type required: CLASS(object_name*, lock_handle*), PROGRAM(object_name*, lock_handle*) [onprem only], INTERFACE(object_name*, lock_handle*), FUNCTION_GROUP(object_name*, lock_handle*), FUNCTION_MODULE(object_name*, lock_handle*), TABLE(object_name*, lock_handle*), STRUCTURE(object_name*, lock_handle*), DDL(object_name*, lock_handle*), DOMAIN(object_name*, lock_handle*), DATA_ELEMENT(object_name*, lock_handle*), PACKAGE(object_name*, lock_handle*), BEHAVIOR_DEFINITION(object_name*, lock_handle*), BEHAVIOR_IMPLEMENTATION(object_name*, lock_handle*), METADATA_EXTENSION(object_name*, lock_handle*), SERVICE_DEFINITION(object_name*, lock_handle*), SERVICE_BINDING(object_name*, lock_handle*); an empty lock_handle of a SERVICE_BINDING answers that the binding is already unlocked. Over Streamable HTTP the unlock takes the lock's state_handle: send it as the state_handle argument of every call under the lock (or in the x-mcp-state-handle header); the unlock ends the instance's hold on the lock.",
12
- inputSchema: compact_shared_1.compactUnlockSchema,
12
+ ...(0, compact_shared_1.byVariant)((variant) => ({
13
+ description: (0, compact_shared_1.compactUnlockDescription)(variant),
14
+ inputSchema: (0, compact_shared_1.compactUnlockSchemaFor)(compact_shared_1.COMPACT_UNLOCK[variant]),
15
+ })),
13
16
  };
14
17
  async function handleHandlerUnlock(context, args) {
15
- const lowType = (0, compact_shared_1.toLockObjectType)(args.object_type);
16
- if (!lowType) {
17
- throw new Error(`Unlock is not supported for object_type: ${args.object_type}`);
18
+ // The boundary of object_type: one of the declared variant's members
19
+ // (`COMPACT_UNLOCK`); past it, the kind is typed (`COMPACT_LOCK_KINDS`).
20
+ const variant = (0, handlers_1.variantOf)(context.connection);
21
+ const member = (0, compact_shared_1.acceptedOf)(args.object_type, compact_shared_1.COMPACT_UNLOCK[variant]);
22
+ if (member === undefined) {
23
+ throw new Error(`Unlock is not supported for object_type: ${args.object_type}. ${(0, compact_shared_1.supported)(compact_shared_1.COMPACT_UNLOCK[variant])}`);
18
24
  }
19
25
  // A service binding locked while open in an editing session holds no
20
26
  // handle: there is nothing to unlock, and nothing is sent.
21
- if (args.object_type === 'SERVICE_BINDING' && args.lock_handle === '') {
27
+ if (member === 'SERVICE_BINDING' && args.lock_handle === '') {
22
28
  return {
23
29
  isError: false,
24
30
  content: [
@@ -38,9 +44,9 @@ async function handleHandlerUnlock(context, args) {
38
44
  if (!(0, compact_shared_1.lockHeldHere)(context.heldLocks, args.lock_handle)) {
39
45
  return (0, utils_1.return_error)(new Error(compact_shared_1.LOCK_NOT_HELD_WORDS));
40
46
  }
41
- const answered = (await (0, write_1.handleUnlockObject)(context, {
47
+ const answered = (await (0, write_1.unlockObject)(context, {
42
48
  object_name: args.object_name,
43
- object_type: lowType,
49
+ object_type: compact_shared_1.COMPACT_LOCK_KINDS[member],
44
50
  lock_handle: args.lock_handle,
45
51
  }));
46
52
  // The UNLOCK answered: the lock is held no more.
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerUnlock.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnlock.ts"],"names":[],"mappings":";;;AAyBA,kDA8CC;AAtED,qEAK0C;AAE1C,4DAAsE;AACtE,mDAAuD;AAE1C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,igCAAigC;IACngC,WAAW,EAAE,oCAAmB;CACxB,CAAC;AAQJ,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,MAAM,OAAO,GAAG,IAAA,iCAAgB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACnD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,4CAA4C,IAAI,CAAC,WAAW,EAAE,CAC/D,CAAC;IACJ,CAAC;IAED,qEAAqE;IACrE,2DAA2D;IAC3D,IAAI,IAAI,CAAC,WAAW,KAAK,iBAAiB,IAAI,IAAI,CAAC,WAAW,KAAK,EAAE,EAAE,CAAC;QACtE,OAAO;YACL,OAAO,EAAE,KAAK;YACd,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB;wBACE,OAAO,EAAE,IAAI;wBACb,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE;wBACzD,WAAW,EAAE,iBA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