@mcp-abap-adt/compact-modify 20.0.0 → 21.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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
2
|
+
import { type UnitTestRunner } from '@mcp-abap-adt/lib/handlers/write';
|
|
2
3
|
export declare const TOOL_DEFINITION: {
|
|
3
4
|
readonly name: "HandlerUnitTestRun";
|
|
4
5
|
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
-
readonly description: "[read-only] ABAP Unit test run. Required: tests[]{container_class*, test_class*}. Optional: title, context, scope, risk_level, duration. Response: JSON.";
|
|
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
7
|
readonly inputSchema: {
|
|
7
8
|
readonly type: "object";
|
|
8
9
|
readonly properties: {
|
|
@@ -24,13 +25,19 @@ export declare const TOOL_DEFINITION: {
|
|
|
24
25
|
readonly required: readonly ["container_class", "test_class"];
|
|
25
26
|
};
|
|
26
27
|
};
|
|
28
|
+
readonly runner: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly enum: readonly ["async", "sync"];
|
|
31
|
+
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.";
|
|
33
|
+
};
|
|
27
34
|
readonly title: {
|
|
28
35
|
readonly type: "string";
|
|
29
|
-
readonly description: "Run title shown in ABAP Unit test logs.";
|
|
36
|
+
readonly description: "Run title shown in ABAP Unit test logs; sent by the async runner.";
|
|
30
37
|
};
|
|
31
38
|
readonly context: {
|
|
32
39
|
readonly type: "string";
|
|
33
|
-
readonly description: "Run context label.";
|
|
40
|
+
readonly description: "Run context label; sent by the async runner.";
|
|
34
41
|
};
|
|
35
42
|
readonly scope: {
|
|
36
43
|
readonly type: "object";
|
|
@@ -112,6 +119,7 @@ type HandlerUnitTestRunArgs = {
|
|
|
112
119
|
medium?: boolean;
|
|
113
120
|
long?: boolean;
|
|
114
121
|
};
|
|
122
|
+
runner?: UnitTestRunner;
|
|
115
123
|
};
|
|
116
124
|
export declare function handleHandlerUnitTestRun(context: HandlerContext, args: HandlerUnitTestRunArgs): Promise<{
|
|
117
125
|
isError: boolean;
|
|
@@ -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;
|
|
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,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: title, context, scope, risk_level, duration. Response: JSON.',
|
|
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.',
|
|
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":";;;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/compact-modify",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.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>",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"@mcp-abap-adt/interfaces-adt": "^20.1.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@mcp-abap-adt/lib": "^
|
|
57
|
+
"@mcp-abap-adt/lib": "^21.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@mcp-abap-adt/lib": "^
|
|
60
|
+
"@mcp-abap-adt/lib": "^21.0.0",
|
|
61
61
|
"typescript": "^6.0.2",
|
|
62
62
|
"@types/node": "^22.20.5"
|
|
63
63
|
}
|