@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.
- package/README.md +3 -3
- package/dist/group.d.ts +9 -7
- package/dist/group.d.ts.map +1 -1
- package/dist/group.js +24 -7
- package/dist/group.js.map +1 -1
- package/dist/handlers/compactConfirmWith.d.ts +17 -0
- package/dist/handlers/compactConfirmWith.d.ts.map +1 -0
- package/dist/handlers/compactConfirmWith.js +39 -0
- package/dist/handlers/compactConfirmWith.js.map +1 -0
- package/dist/handlers/compactWriteRoutes.d.ts.map +1 -1
- package/dist/handlers/compactWriteRoutes.js +80 -61
- package/dist/handlers/compactWriteRoutes.js.map +1 -1
- package/dist/handlers/handleHandlerActivate.d.ts +6 -6
- package/dist/handlers/handleHandlerActivate.js +4 -4
- package/dist/handlers/handleHandlerActivate.js.map +1 -1
- package/dist/handlers/handleHandlerCreate.d.ts +64 -109
- package/dist/handlers/handleHandlerCreate.d.ts.map +1 -1
- package/dist/handlers/handleHandlerCreate.js +2 -1
- package/dist/handlers/handleHandlerCreate.js.map +1 -1
- package/dist/handlers/handleHandlerDelete.d.ts +12 -4
- package/dist/handlers/handleHandlerDelete.d.ts.map +1 -1
- package/dist/handlers/handleHandlerDelete.js +1 -1
- package/dist/handlers/handleHandlerDelete.js.map +1 -1
- package/dist/handlers/handleHandlerLock.d.ts +11 -38
- package/dist/handlers/handleHandlerLock.d.ts.map +1 -1
- package/dist/handlers/handleHandlerLock.js +39 -6
- package/dist/handlers/handleHandlerLock.js.map +1 -1
- package/dist/handlers/handleHandlerProfileRun.d.ts +16 -76
- package/dist/handlers/handleHandlerProfileRun.d.ts.map +1 -1
- package/dist/handlers/handleHandlerProfileRun.js +10 -54
- package/dist/handlers/handleHandlerProfileRun.js.map +1 -1
- package/dist/handlers/handleHandlerProfileSchedule.d.ts +72 -0
- package/dist/handlers/handleHandlerProfileSchedule.d.ts.map +1 -0
- package/dist/handlers/handleHandlerProfileSchedule.js +17 -0
- package/dist/handlers/handleHandlerProfileSchedule.js.map +1 -0
- package/dist/handlers/handleHandlerTransportCreate.d.ts +1 -1
- package/dist/handlers/handleHandlerTransportCreate.js +1 -1
- package/dist/handlers/handleHandlerTransportCreate.js.map +1 -1
- package/dist/handlers/handleHandlerTransportMoveObjects.d.ts +67 -0
- package/dist/handlers/handleHandlerTransportMoveObjects.d.ts.map +1 -0
- package/dist/handlers/handleHandlerTransportMoveObjects.js +17 -0
- package/dist/handlers/handleHandlerTransportMoveObjects.js.map +1 -0
- package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts +28 -0
- package/dist/handlers/handleHandlerTransportSortAndCompress.d.ts.map +1 -0
- package/dist/handlers/handleHandlerTransportSortAndCompress.js +17 -0
- package/dist/handlers/handleHandlerTransportSortAndCompress.js.map +1 -0
- package/dist/handlers/handleHandlerUnitTestRun.d.ts +1 -1
- package/dist/handlers/handleHandlerUnitTestRun.js +1 -1
- package/dist/handlers/handleHandlerUnitTestRun.js.map +1 -1
- package/dist/handlers/handleHandlerUnlock.d.ts +8 -34
- package/dist/handlers/handleHandlerUnlock.d.ts.map +1 -1
- package/dist/handlers/handleHandlerUnlock.js +31 -6
- package/dist/handlers/handleHandlerUnlock.js.map +1 -1
- package/dist/handlers/handleHandlerUpdate.d.ts +18 -67
- package/dist/handlers/handleHandlerUpdate.d.ts.map +1 -1
- package/dist/handlers/handleHandlerUpdate.js +2 -1
- package/dist/handlers/handleHandlerUpdate.js.map +1 -1
- package/package.json +4 -4
|
@@ -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;
|
|
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"}
|
|
@@ -7,64 +7,20 @@ 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: '
|
|
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
11
|
inputSchema: compact_shared_1.compactProfileRunSchema,
|
|
12
12
|
};
|
|
13
|
+
const TOOL = 'HandlerProfileRun';
|
|
14
|
+
/**
|
|
15
|
+
* The one run of a class or a program (spec §4.6, one ADT request per tool
|
|
16
|
+
* call): under the caller's `profiler_id` when given, plain without it. The
|
|
17
|
+
* schedule is `HandlerProfileSchedule`'s request, and finding the trace the
|
|
18
|
+
* run wrote is the caller's, by `HandlerProfileList`.
|
|
19
|
+
*/
|
|
13
20
|
async function handleHandlerProfileRun(context, args) {
|
|
14
|
-
const profiling = args.profiling ?? true;
|
|
15
21
|
if (args.target_type === 'CLASS') {
|
|
16
|
-
|
|
17
|
-
throw new Error('class_name is required when target_type is CLASS');
|
|
18
|
-
}
|
|
19
|
-
if (!profiling) {
|
|
20
|
-
return (0, write_1.handleRuntimeRunClass)(context, {
|
|
21
|
-
class_name: args.class_name,
|
|
22
|
-
profile: false,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
return (0, write_1.handleRuntimeRunClassWithProfiling)(context, {
|
|
26
|
-
class_name: args.class_name,
|
|
27
|
-
description: args.description,
|
|
28
|
-
all_procedural_units: args.all_procedural_units,
|
|
29
|
-
all_misc_abap_statements: args.all_misc_abap_statements,
|
|
30
|
-
all_internal_table_events: args.all_internal_table_events,
|
|
31
|
-
all_dynpro_events: args.all_dynpro_events,
|
|
32
|
-
aggregate: args.aggregate,
|
|
33
|
-
explicit_on_off: args.explicit_on_off,
|
|
34
|
-
with_rfc_tracing: args.with_rfc_tracing,
|
|
35
|
-
all_system_kernel_events: args.all_system_kernel_events,
|
|
36
|
-
sql_trace: args.sql_trace,
|
|
37
|
-
all_db_events: args.all_db_events,
|
|
38
|
-
max_size_for_trace_file: args.max_size_for_trace_file,
|
|
39
|
-
amdp_trace: args.amdp_trace,
|
|
40
|
-
max_time_for_tracing: args.max_time_for_tracing,
|
|
41
|
-
});
|
|
22
|
+
return (0, write_1.handleRuntimeRunClassUnderProfiler)(context, { class_name: args.class_name, profiler_id: args.profiler_id }, TOOL);
|
|
42
23
|
}
|
|
43
|
-
|
|
44
|
-
throw new Error('program_name is required when target_type is PROGRAM');
|
|
45
|
-
}
|
|
46
|
-
if (!profiling) {
|
|
47
|
-
return (0, write_1.handleRuntimeRunProgram)(context, {
|
|
48
|
-
program_name: args.program_name,
|
|
49
|
-
profile: false,
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return (0, write_1.handleRuntimeRunProgramWithProfiling)(context, {
|
|
53
|
-
program_name: args.program_name,
|
|
54
|
-
description: args.description,
|
|
55
|
-
all_procedural_units: args.all_procedural_units,
|
|
56
|
-
all_misc_abap_statements: args.all_misc_abap_statements,
|
|
57
|
-
all_internal_table_events: args.all_internal_table_events,
|
|
58
|
-
all_dynpro_events: args.all_dynpro_events,
|
|
59
|
-
aggregate: args.aggregate,
|
|
60
|
-
explicit_on_off: args.explicit_on_off,
|
|
61
|
-
with_rfc_tracing: args.with_rfc_tracing,
|
|
62
|
-
all_system_kernel_events: args.all_system_kernel_events,
|
|
63
|
-
sql_trace: args.sql_trace,
|
|
64
|
-
all_db_events: args.all_db_events,
|
|
65
|
-
max_size_for_trace_file: args.max_size_for_trace_file,
|
|
66
|
-
amdp_trace: args.amdp_trace,
|
|
67
|
-
max_time_for_tracing: args.max_time_for_tracing,
|
|
68
|
-
});
|
|
24
|
+
return (0, write_1.handleRuntimeRunProgramUnderProfiler)(context, { program_name: args.program_name, profiler_id: args.profiler_id }, TOOL);
|
|
69
25
|
}
|
|
70
26
|
//# sourceMappingURL=handleHandlerProfileRun.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHandlerProfileRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerProfileRun.ts"],"names":[],"mappings":";;;
|
|
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"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
2
|
+
import { type ScheduleProfilerTraceArgs } from '@mcp-abap-adt/lib/handlers/write';
|
|
3
|
+
export declare const TOOL_DEFINITION: {
|
|
4
|
+
readonly name: "HandlerProfileSchedule";
|
|
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.";
|
|
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
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/** The one schedule request; the run that fulfils it takes the profiler id it answers. */
|
|
71
|
+
export declare function handleHandlerProfileSchedule(context: HandlerContext, args: ScheduleProfilerTraceArgs): Promise<import("../../../dist/lib/answer").McpResult>;
|
|
72
|
+
//# sourceMappingURL=handleHandlerProfileSchedule.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_DEFINITION = void 0;
|
|
4
|
+
exports.handleHandlerProfileSchedule = handleHandlerProfileSchedule;
|
|
5
|
+
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
6
|
+
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
7
|
+
exports.TOOL_DEFINITION = {
|
|
8
|
+
name: 'HandlerProfileSchedule',
|
|
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.',
|
|
11
|
+
inputSchema: compact_shared_1.compactProfileScheduleSchema,
|
|
12
|
+
};
|
|
13
|
+
/** The one schedule request; the run that fulfils it takes the profiler id it answers. */
|
|
14
|
+
async function handleHandlerProfileSchedule(context, args) {
|
|
15
|
+
return (0, write_1.handleScheduleProfilerTraceOnce)(context, args ?? {}, 'HandlerProfileSchedule');
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=handleHandlerProfileSchedule.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -2,7 +2,7 @@ import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
|
2
2
|
export declare const TOOL_DEFINITION: {
|
|
3
3
|
readonly name: "HandlerTransportCreate";
|
|
4
4
|
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
-
readonly description: "Transport create.
|
|
5
|
+
readonly description: "Transport create. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner. Response: JSON.";
|
|
6
6
|
readonly inputSchema: {
|
|
7
7
|
readonly type: "object";
|
|
8
8
|
readonly properties: {
|
|
@@ -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.
|
|
10
|
+
description: 'Transport create. Required: description*. Optional: transport_type(workbench|customizing), target_system, owner. Response: JSON.',
|
|
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,
|
|
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"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
2
|
+
export declare const TOOL_DEFINITION: {
|
|
3
|
+
readonly name: "HandlerTransportMoveObjects";
|
|
4
|
+
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
+
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
|
+
};
|
|
48
|
+
};
|
|
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
|
+
}>;
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=handleHandlerTransportMoveObjects.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_DEFINITION = void 0;
|
|
4
|
+
exports.handleHandlerTransportMoveObjects = handleHandlerTransportMoveObjects;
|
|
5
|
+
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
6
|
+
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
7
|
+
const compactConfirmWith_1 = require("./compactConfirmWith");
|
|
8
|
+
exports.TOOL_DEFINITION = {
|
|
9
|
+
name: 'HandlerTransportMoveObjects',
|
|
10
|
+
available_in: ['onprem', 'cloud'],
|
|
11
|
+
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.",
|
|
12
|
+
inputSchema: compact_shared_1.compactTransportMoveObjectsSchema,
|
|
13
|
+
};
|
|
14
|
+
async function handleHandlerTransportMoveObjects(context, args) {
|
|
15
|
+
return (0, compactConfirmWith_1.namingHandlerGet)(await (0, write_1.handleMoveTransportObjects)(context, args));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=handleHandlerTransportMoveObjects.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
2
|
+
export declare const TOOL_DEFINITION: {
|
|
3
|
+
readonly name: "HandlerTransportSortAndCompress";
|
|
4
|
+
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
+
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
|
+
};
|
|
16
|
+
};
|
|
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
|
+
}>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=handleHandlerTransportSortAndCompress.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TOOL_DEFINITION = void 0;
|
|
4
|
+
exports.handleHandlerTransportSortAndCompress = handleHandlerTransportSortAndCompress;
|
|
5
|
+
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
6
|
+
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
7
|
+
const compactConfirmWith_1 = require("./compactConfirmWith");
|
|
8
|
+
exports.TOOL_DEFINITION = {
|
|
9
|
+
name: 'HandlerTransportSortAndCompress',
|
|
10
|
+
available_in: ['onprem', 'cloud'],
|
|
11
|
+
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.",
|
|
12
|
+
inputSchema: compact_shared_1.compactTransportSortAndCompressSchema,
|
|
13
|
+
};
|
|
14
|
+
async function handleHandlerTransportSortAndCompress(context, args) {
|
|
15
|
+
return (0, compactConfirmWith_1.namingHandlerGet)(await (0, write_1.handleSortAndCompressTransportTask)(context, args));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=handleHandlerTransportSortAndCompress.js.map
|
|
@@ -0,0 +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"}
|
|
@@ -2,7 +2,7 @@ import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
|
2
2
|
export declare const TOOL_DEFINITION: {
|
|
3
3
|
readonly name: "HandlerUnitTestRun";
|
|
4
4
|
readonly available_in: readonly ["onprem", "cloud"];
|
|
5
|
-
readonly description: "ABAP Unit test run.
|
|
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
6
|
readonly inputSchema: {
|
|
7
7
|
readonly type: "object";
|
|
8
8
|
readonly properties: {
|
|
@@ -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: 'ABAP Unit test run.
|
|
10
|
+
description: '[read-only] ABAP Unit test run. Required: tests[]{container_class*, test_class*}. Optional: title, context, scope, risk_level, duration. Response: JSON.',
|
|
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":";;;AAoCA,4DAKC;AAzCD,qEAA4E;AAE5E,4DAA0E;AAE7D,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"handleHandlerUnitTestRun.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnitTestRun.ts"],"names":[],"mappings":";;;AAoCA,4DAKC;AAzCD,qEAA4E;AAE5E,4DAA0E;AAE7D,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,0JAA0J;IAC5J,WAAW,EAAE,yCAAwB;CAC7B,CAAC;AA0BJ,KAAK,UAAU,wBAAwB,CAC5C,OAAuB,EACvB,IAA4B;IAE5B,OAAO,IAAA,8BAAsB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
|
|
|
3
3
|
export declare const TOOL_DEFINITION: {
|
|
4
4
|
readonly name: "HandlerUnlock";
|
|
5
5
|
readonly available_in: readonly ["onprem", "cloud"];
|
|
6
|
-
readonly description: "Unlock operation. object_type required: CLASS(object_name*, lock_handle
|
|
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 request carries the lock's state_handle in the x-mcp-state-handle header; the unlock ends the instance's hold on the lock.";
|
|
7
7
|
readonly inputSchema: {
|
|
8
8
|
readonly type: "object";
|
|
9
9
|
readonly properties: {
|
|
@@ -11,56 +11,30 @@ export declare const TOOL_DEFINITION: {
|
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
readonly description: "Lock handle returned by lock.";
|
|
13
13
|
};
|
|
14
|
-
readonly session_id: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
readonly description: "ADT session id used during lock.";
|
|
17
|
-
};
|
|
18
|
-
readonly session_state: {
|
|
19
|
-
readonly type: "object";
|
|
20
|
-
readonly description: "Optional ADT session state container (cookies/CSRF) for stateful unlock flow.";
|
|
21
|
-
readonly properties: {
|
|
22
|
-
readonly cookies: {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly description: "Serialized Cookie header to reuse server session.";
|
|
25
|
-
};
|
|
26
|
-
readonly csrf_token: {
|
|
27
|
-
readonly type: "string";
|
|
28
|
-
readonly description: "CSRF token to reuse server session.";
|
|
29
|
-
};
|
|
30
|
-
readonly cookie_store: {
|
|
31
|
-
readonly type: "object";
|
|
32
|
-
readonly description: "Cookie key/value map to reuse server session.";
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
14
|
readonly object_type: {
|
|
37
15
|
readonly type: "string";
|
|
38
|
-
readonly enum:
|
|
39
|
-
readonly description:
|
|
16
|
+
readonly enum: readonly string[];
|
|
17
|
+
readonly description: `Object type. Supported: ${string}.`;
|
|
40
18
|
};
|
|
41
19
|
readonly object_name: {
|
|
42
20
|
readonly type: "string";
|
|
43
|
-
readonly description: "
|
|
21
|
+
readonly description: "Object name. A function module is named GROUP|MODULE, its function group first.";
|
|
44
22
|
};
|
|
45
23
|
};
|
|
46
|
-
readonly required: readonly ["object_type", "object_name", "lock_handle"
|
|
24
|
+
readonly required: readonly ["object_type", "object_name", "lock_handle"];
|
|
47
25
|
};
|
|
48
26
|
};
|
|
49
27
|
type HandlerUnlockArgs = {
|
|
50
28
|
object_type: CompactObjectType;
|
|
51
29
|
object_name: string;
|
|
52
30
|
lock_handle: string;
|
|
53
|
-
session_id: string;
|
|
54
|
-
session_state?: {
|
|
55
|
-
cookies?: string;
|
|
56
|
-
csrf_token?: string;
|
|
57
|
-
cookie_store?: Record<string, string>;
|
|
58
|
-
};
|
|
59
31
|
};
|
|
60
32
|
export declare function handleHandlerUnlock(context: HandlerContext, args: HandlerUnlockArgs): Promise<{
|
|
33
|
+
isError?: boolean;
|
|
34
|
+
} | {
|
|
61
35
|
isError: boolean;
|
|
62
36
|
content: {
|
|
63
|
-
type:
|
|
37
|
+
type: "text";
|
|
64
38
|
text: string;
|
|
65
39
|
}[];
|
|
66
40
|
}>;
|
|
@@ -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;
|
|
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"}
|
|
@@ -4,23 +4,48 @@ exports.TOOL_DEFINITION = void 0;
|
|
|
4
4
|
exports.handleHandlerUnlock = handleHandlerUnlock;
|
|
5
5
|
const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
|
|
6
6
|
const write_1 = require("@mcp-abap-adt/lib/handlers/write");
|
|
7
|
+
const utils_1 = require("@mcp-abap-adt/lib/utils");
|
|
7
8
|
exports.TOOL_DEFINITION = {
|
|
8
9
|
name: 'HandlerUnlock',
|
|
9
10
|
available_in: ['onprem', 'cloud'],
|
|
10
|
-
description:
|
|
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 request carries the lock's state_handle in the x-mcp-state-handle header; the unlock ends the instance's hold on the lock.",
|
|
11
12
|
inputSchema: compact_shared_1.compactUnlockSchema,
|
|
12
13
|
};
|
|
13
14
|
async function handleHandlerUnlock(context, args) {
|
|
14
|
-
const lowType = (0, compact_shared_1.
|
|
15
|
+
const lowType = (0, compact_shared_1.toLockObjectType)(args.object_type);
|
|
15
16
|
if (!lowType) {
|
|
16
17
|
throw new Error(`Unlock is not supported for object_type: ${args.object_type}`);
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
+
// A service binding locked while open in an editing session holds no
|
|
20
|
+
// handle: there is nothing to unlock, and nothing is sent.
|
|
21
|
+
if (args.object_type === 'SERVICE_BINDING' && args.lock_handle === '') {
|
|
22
|
+
return {
|
|
23
|
+
isError: false,
|
|
24
|
+
content: [
|
|
25
|
+
{
|
|
26
|
+
type: 'text',
|
|
27
|
+
text: JSON.stringify({
|
|
28
|
+
success: true,
|
|
29
|
+
object_name: String(args.object_name ?? '').toUpperCase(),
|
|
30
|
+
object_type: 'service_binding',
|
|
31
|
+
unlocked: false,
|
|
32
|
+
message: 'Nothing to unlock: the service binding holds no lock handle.',
|
|
33
|
+
}, null, 2),
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
if (!(0, compact_shared_1.lockHeldHere)(context.heldLocks, args.lock_handle)) {
|
|
39
|
+
return (0, utils_1.return_error)(new Error(compact_shared_1.LOCK_NOT_HELD_WORDS));
|
|
40
|
+
}
|
|
41
|
+
const answered = (await (0, write_1.handleUnlockObject)(context, {
|
|
19
42
|
object_name: args.object_name,
|
|
20
43
|
object_type: lowType,
|
|
21
44
|
lock_handle: args.lock_handle,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
45
|
+
}));
|
|
46
|
+
// The UNLOCK answered: the lock is held no more.
|
|
47
|
+
if (!answered?.isError)
|
|
48
|
+
context.heldLocks?.release(args.lock_handle);
|
|
49
|
+
return answered;
|
|
25
50
|
}
|
|
26
51
|
//# sourceMappingURL=handleHandlerUnlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleHandlerUnlock.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerUnlock.ts"],"names":[],"mappings":";;;
|
|
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,47BAA47B;IAC97B,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,iBAAiB;wBAC9B,QAAQ,EAAE,KAAK;wBACf,OAAO,EACL,8DAA8D;qBACjE,EACD,IAAI,EACJ,CAAC,CACF;iBACF;aACF;SACF,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,IAAA,6BAAY,EAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QACvD,OAAO,IAAA,oBAAY,EAAC,IAAI,KAAK,CAAC,oCAAmB,CAAC,CAAC,CAAC;IACtD,CAAC;IACD,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAA,0BAAkB,EAAC,OAAO,EAAE;QAClD,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,WAAW,EAAE,OAAO;QACpB,WAAW,EAAE,IAAI,CAAC,WAAW;KAC9B,CAAC,CAA0B,CAAC;IAC7B,iDAAiD;IACjD,IAAI,CAAC,QAAQ,EAAE,OAAO;QAAE,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACrE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|