@mcp-abap-adt/compact 17.2.2 → 18.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 CHANGED
@@ -45,12 +45,14 @@ list at all, so a client cannot call one). The object-oriented sets
45
45
 
46
46
  **The debugger is opt-in.** `debug` beside `ro` or `rw` (`--exposition=ro,debug`)
47
47
  adds four verbs: `HandlerDebugStart` (`kind: abap|amdp`, the breakpoints, `take_over`,
48
- an optional background `run`; answers a `state_handle`), `HandlerDebugWait`,
49
- `HandlerDebugView` (stack, variables, memory, an AMDP table) and `HandlerDebugStep`
50
- (the steps, `terminate`, and `stop`, which ends the session). `debug` alone is
48
+ an optional background `run`, and for `abap` `request_user`, `debugging_mode` and
49
+ `settings`; answers a `state_handle`), `HandlerDebugWait`, `HandlerDebugView` (stack,
50
+ variables, memory, an AMDP table) and `HandlerDebugStep` (the steps, `detach` and
51
+ `release_debugger`, `terminate`, and `stop`, which ends the session). `debug` alone is
51
52
  refused: it names no half of the facade, and taking `rw` for it would open the write
52
- tools unasked. A breakpoint catches every request of the connected SAP user, which
53
- is why the verbs are never served by default. What a debug session is, what keeps it
53
+ tools unasked. In user mode a breakpoint catches every request of the request
54
+ user (the connected SAP user unless another is named), which is why the verbs are never
55
+ served by default. What a debug session is, what keeps it
54
56
  alive on each transport and what ends it: [Debugger](https://github.com/fr0ster/mcp-abap-adt/blob/main/docs/user-guide/DEBUGGER.md).
55
57
 
56
58
  Configuration — connection, authentication, transports — is the same as
@@ -2,7 +2,7 @@ import type { ArgsOf, HandlerContext } from '@mcp-abap-adt/lib/handlers';
2
2
  export declare const TOOL_DEFINITION: {
3
3
  readonly name: "HandlerDebugStart";
4
4
  readonly available_in: readonly ["onprem", "cloud"];
5
- readonly description: `Debugger start. kind: abap (line, exception, statement or message breakpoints) or amdp (lines in SQLScript methods). Arms the breakpoints, listens (abap) or opens an AMDP session, and optionally runs a class or report in the background. take_over: abap \u2014 ${string}; amdp \u2014 ends an AMDP session of this user left behind. Catches every request of the connected SAP user, not only programs run by this server.`;
5
+ readonly description: `Debugger start. kind: abap (line, exception, statement or message breakpoints) or amdp (lines in SQLScript methods). Arms the breakpoints, listens (abap) or opens an AMDP session, and optionally runs a class or report in the background. request_user, debugging_mode and settings apply to abap only. take_over: abap \u2014 ${string}; amdp \u2014 ends an AMDP session of this user left behind. Without take_over, abap is refused before anything is placed while another debugger listens for that user. abap: ${string} abap: the breakpoints are one set, shared by every IDE of the same SAP user (in user mode, debugging the same request user; in terminal mode, whatever its ids), and each change replaces that set as a whole. amdp: catches every request of the connected SAP user, not only programs run by this server.`;
6
6
  readonly inputSchema: {
7
7
  readonly type: "object";
8
8
  readonly properties: {
@@ -26,6 +26,41 @@ export declare const TOOL_DEFINITION: {
26
26
  };
27
27
  readonly required: readonly ["kind", "name"];
28
28
  };
29
+ readonly settings: {
30
+ readonly type: "object";
31
+ readonly description: "Debugger settings, applied after each attach; a field left out keeps its value.";
32
+ readonly properties: {
33
+ readonly system_debugging: {
34
+ readonly type: "boolean";
35
+ readonly description: "Steps into system programs and stops at breakpoints there.";
36
+ };
37
+ readonly update_debugging: {
38
+ readonly type: "boolean";
39
+ readonly description: "Debugs update tasks.";
40
+ };
41
+ readonly create_exception_object: {
42
+ readonly type: "boolean";
43
+ readonly description: "Creates the exception object even where a CATCH does not ask for it.";
44
+ };
45
+ readonly background_rfc: {
46
+ readonly type: "boolean";
47
+ readonly description: "Debugs background RFC calls.";
48
+ };
49
+ readonly shared_object_debugging: {
50
+ readonly type: "boolean";
51
+ readonly description: "Debugs shared objects.";
52
+ };
53
+ };
54
+ };
55
+ readonly debugging_mode: {
56
+ readonly type: "string";
57
+ readonly enum: readonly ["user", "terminal"];
58
+ readonly description: "user (when omitted) catches the requests of the request user; terminal catches the requests that carry this debug session's ids and needs no configuration: the run it starts carries them, so without run it catches only requests carrying the same ids.";
59
+ };
60
+ readonly request_user: {
61
+ readonly type: "string";
62
+ readonly description: "User mode: the SAP user whose requests are caught; the connected user when omitted. Debugging another user's requests needs the debug authorization for that user. Not taken in terminal mode.";
63
+ };
29
64
  readonly kind: {
30
65
  readonly type: "string";
31
66
  readonly enum: readonly ["abap", "amdp"];
@@ -33,7 +68,7 @@ export declare const TOOL_DEFINITION: {
33
68
  };
34
69
  readonly breakpoints: {
35
70
  readonly minItems: 1;
36
- readonly description: "abap: a line, an exception class, an ABAP statement or a message, each with an optional condition. amdp: object_name (the class) and line of each.";
71
+ readonly description: "abap: a line, an exception class, an ABAP statement or a message; a line breakpoint may carry a condition. amdp: object_name (the class) and line of each.";
37
72
  readonly type: "array";
38
73
  readonly items: {
39
74
  readonly type: "object";
@@ -64,7 +99,7 @@ export declare const TOOL_DEFINITION: {
64
99
  };
65
100
  readonly condition: {
66
101
  readonly type: "string";
67
- readonly description: "Stops only when this ABAP condition holds.";
102
+ readonly description: "A line breakpoint only: stops only when this ABAP condition holds.";
68
103
  };
69
104
  readonly object_type: {
70
105
  readonly type: "string";
@@ -92,7 +127,7 @@ export declare const TOOL_DEFINITION: {
92
127
  readonly take_over: {
93
128
  readonly type: "boolean";
94
129
  readonly default: false;
95
- readonly description: "Takes over from an existing debugger of this user instead of refusing.";
130
+ readonly description: "abap: takes over from another debugger listening for this user instead of refusing; the breakpoints of this SAP user (in user mode, for the same request user) are replaced. amdp: ends an AMDP session of this user left behind instead of refusing.";
96
131
  };
97
132
  };
98
133
  readonly required: readonly ["kind", "breakpoints"];
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerDebugStart.d.ts","sourceRoot":"","sources":["../../src/debug/handleHandlerDebugStart.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGzE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BlB,CAAC;AAEX,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,MAAM,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,yDA8CjD"}
1
+ {"version":3,"file":"handleHandlerDebugStart.d.ts","sourceRoot":"","sources":["../../src/debug/handleHandlerDebugStart.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGzE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BlB,CAAC;AAEX,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,MAAM,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,yDAoDjD"}
@@ -8,7 +8,7 @@ const shared_1 = require("./shared");
8
8
  exports.TOOL_DEFINITION = {
9
9
  name: 'HandlerDebugStart',
10
10
  available_in: ['onprem', 'cloud'],
11
- description: `Debugger start. kind: abap (line, exception, statement or message breakpoints) or amdp (lines in SQLScript methods). Arms the breakpoints, listens (abap) or opens an AMDP session, and optionally runs a class or report in the background. take_over: abap — ${debugger_1.TAKE_OVER_SENTENCE.replace(/\.$/, '')}; amdp — ends an AMDP session of this user left behind. ${debugger_1.USER_MODE_SENTENCE}`,
11
+ description: `Debugger start. kind: abap (line, exception, statement or message breakpoints) or amdp (lines in SQLScript methods). Arms the breakpoints, listens (abap) or opens an AMDP session, and optionally runs a class or report in the background. request_user, debugging_mode and settings apply to abap only. take_over: abap — ${debugger_1.TAKE_OVER_SENTENCE.replace(/\.$/, '')}; amdp — ends an AMDP session of this user left behind. Without take_over, abap is refused before anything is placed while another debugger listens for that user. abap: ${debugger_1.USER_MODE_SENTENCE.replace(/^In/, 'in')} abap: ${debugger_1.SHARED_SET_FACT} amdp: ${debugger_1.AMDP_CATCH_FACT}`,
12
12
  inputSchema: {
13
13
  type: 'object',
14
14
  properties: {
@@ -20,13 +20,14 @@ exports.TOOL_DEFINITION = {
20
20
  breakpoints: {
21
21
  ...debugger_1.BREAKPOINTS_PROPERTY.breakpoints,
22
22
  minItems: 1,
23
- description: 'abap: a line, an exception class, an ABAP statement or a message, each with an optional condition. amdp: object_name (the class) and line of each.',
23
+ description: 'abap: a line, an exception class, an ABAP statement or a message; a line breakpoint may carry a condition. amdp: object_name (the class) and line of each.',
24
24
  },
25
25
  take_over: {
26
26
  type: 'boolean',
27
27
  default: false,
28
- description: 'Takes over from an existing debugger of this user instead of refusing.',
28
+ description: 'abap: takes over from another debugger listening for this user instead of refusing; the breakpoints of this SAP user (in user mode, for the same request user) are replaced. amdp: ends an AMDP session of this user left behind instead of refusing.',
29
29
  },
30
+ ...debugger_1.START_PROPERTIES,
30
31
  ...debugger_1.RUN_PROPERTY,
31
32
  ...compact_shared_1.DETAIL_PROPERTY,
32
33
  },
@@ -36,6 +37,11 @@ exports.TOOL_DEFINITION = {
36
37
  async function handleHandlerDebugStart(context, args) {
37
38
  if (args.kind === 'amdp') {
38
39
  return (0, debugger_1.debugAnswer)(args, async () => {
40
+ // The identity and the settings are the ABAP debugger's; the AMDP session takes none.
41
+ if (args.request_user !== undefined ||
42
+ args.debugging_mode !== undefined ||
43
+ args.settings !== undefined)
44
+ throw new Error('request_user, debugging_mode and settings apply to kind abap only');
39
45
  (0, shared_1.refuseOtherKind)(context, 'amdp');
40
46
  const d = (0, debugger_1.requireDebugger)(context, args, { create: 'amdp' });
41
47
  // The compact items name the class `object_name`; the session takes
@@ -58,11 +64,8 @@ async function handleHandlerDebugStart(context, args) {
58
64
  return d.abap.start(args.take_over ? 'takeOver' : 'refuse', {
59
65
  breakpoints: (0, debugger_1.breakpointsFromArgs)(args.breakpoints),
60
66
  run: (0, debugger_1.runFromArgs)(args.run),
67
+ ...(0, debugger_1.startOptionsFromArgs)(args),
61
68
  });
62
- }, () => ({
63
- state_handle: context.state.handle,
64
- terminal_id: context.debugger().abap.ids.terminalId,
65
- ide_id: context.debugger().abap.ids.ideId,
66
- }), () => (0, debugger_1.heldStateHandle)(context));
69
+ }, () => (0, debugger_1.startedExtra)(context), () => (0, debugger_1.heldStateHandle)(context));
67
70
  }
68
71
  //# sourceMappingURL=handleHandlerDebugStart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerDebugStart.js","sourceRoot":"","sources":["../../src/debug/handleHandlerDebugStart.ts"],"names":[],"mappings":";;;AAiDA,0DAgDC;AAjGD,qEAAmE;AACnE,yDAYoC;AAEpC,qCAA2C;AAE9B,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EAAE,kQAAkQ,6BAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,2DAA2D,6BAAkB,EAAE;IACnY,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;gBACtB,WAAW,EACT,kEAAkE;aACrE;YACD,WAAW,EAAE;gBACX,GAAG,+BAAoB,CAAC,WAAW;gBACnC,QAAQ,EAAE,CAAC;gBACX,WAAW,EACT,oJAAoJ;aACvJ;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACT,wEAAwE;aAC3E;YACD,GAAG,uBAAY;YACf,GAAG,gCAAe;SACnB;QACD,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;KAClC;CACO,CAAC;AAEJ,KAAK,UAAU,uBAAuB,CAC3C,OAAuB,EACvB,IAAgD;IAEhD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAA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YAC1B,GAAG,IAAA,+BAAoB,EAAC,IAAI,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC,EACD,GAAG,EAAE,CAAC,IAAA,uBAAY,EAAC,OAAO,CAAC,EAC3B,GAAG,EAAE,CAAC,IAAA,0BAAe,EAAC,OAAO,CAAC,CAC/B,CAAC;AACJ,CAAC"}
@@ -2,7 +2,7 @@ import type { ArgsOf, HandlerContext } from '@mcp-abap-adt/lib/handlers';
2
2
  export declare const TOOL_DEFINITION: {
3
3
  readonly name: "HandlerDebugStep";
4
4
  readonly available_in: readonly ["onprem", "cloud"];
5
- readonly description: "Moves the stopped debuggee (into, over, return, continue, run or jump to a line), ends it where it stands, or ends the debug session.";
5
+ readonly description: "Moves the stopped debuggee (into, over, return, continue, run or jump to a line), leaves it running (detach, release_debugger), ends it where it stands, or ends the debug session.";
6
6
  readonly inputSchema: {
7
7
  readonly type: "object";
8
8
  readonly properties: {
@@ -34,8 +34,8 @@ export declare const TOOL_DEFINITION: {
34
34
  };
35
35
  readonly action: {
36
36
  readonly type: "string";
37
- readonly enum: readonly ["into", "over", "return", "continue", "run_to_line", "jump_to_line", "terminate", "stop"];
38
- readonly description: "into enters the call, over runs it, return leaves the current one, continue runs to the next stop; run_to_line executes up to the line, jump_to_line moves there without executing what lies between; terminate ends the debuggee where it stands; stop ends the debug session. For AMDP only over, continue, terminate and stop apply.";
37
+ readonly enum: readonly ["into", "over", "return", "continue", "run_to_line", "jump_to_line", "detach", "release_debugger", "terminate", "stop"];
38
+ readonly description: "into enters the call, over runs it, return leaves the current one, continue runs to the next stop; run_to_line executes up to the line, jump_to_line moves there without executing what lies between; detach lets the program run on, the listener and the breakpoints kept; release_debugger frees the debugger and the program runs on; terminate ends the debuggee where it stands; stop ends the debug session. For AMDP only over, continue, terminate and stop apply.";
39
39
  };
40
40
  readonly state_handle: {
41
41
  readonly type: "string";
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerDebugStep.d.ts","sourceRoot":"","sources":["../../src/debug/handleHandlerDebugStep.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGzE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC;AAYX,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,MAAM,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,yDA4FjD"}
1
+ {"version":3,"file":"handleHandlerDebugStep.d.ts","sourceRoot":"","sources":["../../src/debug/handleHandlerDebugStep.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGzE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BlB,CAAC;AAYX,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,MAAM,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,yDAoGjD"}
@@ -8,7 +8,7 @@ const shared_1 = require("./shared");
8
8
  exports.TOOL_DEFINITION = {
9
9
  name: 'HandlerDebugStep',
10
10
  available_in: ['onprem', 'cloud'],
11
- description: 'Moves the stopped debuggee (into, over, return, continue, run or jump to a line), ends it where it stands, or ends the debug session.',
11
+ description: 'Moves the stopped debuggee (into, over, return, continue, run or jump to a line), leaves it running (detach, release_debugger), ends it where it stands, or ends the debug session.',
12
12
  inputSchema: {
13
13
  type: 'object',
14
14
  properties: {
@@ -22,10 +22,12 @@ exports.TOOL_DEFINITION = {
22
22
  'continue',
23
23
  'run_to_line',
24
24
  'jump_to_line',
25
+ 'detach',
26
+ 'release_debugger',
25
27
  'terminate',
26
28
  'stop',
27
29
  ],
28
- description: 'into enters the call, over runs it, return leaves the current one, continue runs to the next stop; run_to_line executes up to the line, jump_to_line moves there without executing what lies between; terminate ends the debuggee where it stands; stop ends the debug session. For AMDP only over, continue, terminate and stop apply.',
30
+ description: 'into enters the call, over runs it, return leaves the current one, continue runs to the next stop; run_to_line executes up to the line, jump_to_line moves there without executing what lies between; detach lets the program run on, the listener and the breakpoints kept; release_debugger frees the debugger and the program runs on; terminate ends the debuggee where it stands; stop ends the debug session. For AMDP only over, continue, terminate and stop apply.',
29
31
  },
30
32
  ...debugger_1.LINE_TARGET_PROPERTIES,
31
33
  ...compact_shared_1.DETAIL_PROPERTY,
@@ -45,8 +47,12 @@ async function handleHandlerDebugStep(context, args) {
45
47
  // The state ends once nothing is held; both kinds are stopped by the instance.
46
48
  const stopped = (d) => (0, debugger_1.debugAnswer)(args, async () => {
47
49
  context.state.endWhenEmpty();
48
- await d.stop();
49
- return { value: { state: 'stopped' }, raw: '' };
50
+ // A note is no debt: SAP's final refusal, reaching the model as it is.
51
+ const notes = await d.stop();
52
+ return {
53
+ value: { state: 'stopped', ...(notes.length ? { notes } : {}) },
54
+ raw: notes.join('\n'),
55
+ };
50
56
  }, (v) => v);
51
57
  const refused = (kind) => (0, debugger_1.debugAnswer)(args, async () => {
52
58
  throw new Error(`action: ${action} does not apply to an ${kind} debug session`);
@@ -96,6 +102,10 @@ async function handleHandlerDebugStep(context, args) {
96
102
  return d.abap.stepToLine(action === 'jump_to_line' ? 'stepJumpToLine' : 'stepRunToLine', (0, debugger_1.lineUriOf)(target, line));
97
103
  });
98
104
  }
105
+ if (action === 'detach')
106
+ return (0, debugger_1.debugStateAnswer)(args, async () => d.abap.detach());
107
+ if (action === 'release_debugger')
108
+ return (0, debugger_1.debugStateAnswer)(args, async () => d.abap.releaseDebugger());
99
109
  if (action === 'terminate') {
100
110
  return (0, debugger_1.debugStateAnswer)(args, async () => d.abap.terminate());
101
111
  }
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerDebugStep.js","sourceRoot":"","sources":["../../src/debug/handleHandlerDebugStep.ts"],"names":[],"mappings":";;;AAuDA,wDA8FC;AArJD,qEAAmE;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CAAC,CACxB,CAAC;gBACJ,CAAC,CAAC,CAAC;YACL,CAAC;YACD,IAAI,MAAM,KAAK,WAAW,EAAE,CAAC;gBAC3B,OAAO,IAAA,2BAAgB,EAAC,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;YAChE,CAAC;YACD,IAAI,MAAM,KAAK,MAAM;gBAAE,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;YACzC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;KACF,EACD,IAAA,qBAAY,EAAC,IAAI,CAAC,CACnB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"handleHandlerDebugStep.js","sourceRoot":"","sources":["../../src/debug/handleHandlerDebugStep.ts"],"names":[],"mappings":";;;AAyDA,wDAsGC;AA/JD,qEAAmE;AACnE,yDASoC;AAEpC,qCAAsD;AAEzC,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,kBAAkB;IACxB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,qLAAqL;IACvL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,gCAAqB;YACxB,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACJ,MAAM;oBACN,MAAM;oBACN,QAAQ;oBACR,UAAU;oBACV,aAAa;oBACb,cAAc;oBACd,QAAQ;oBACR,kBAAkB;oBAClB,WAAW;oBACX,MAAM;iBACP;gBACD,WAAW,EACT,6cAA6c;aAChd;YACD,GAAG,iCAAsB;YACzB,GAAG,gCAAe;SACnB;QACD,QAAQ,EAAE,CAAC,cAAc,EAAE,QAAQ,CAAC;KACrC;CACO,CAAC;AAEX,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,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AAS,EAAE,CAAC,CAAC;YAChE,CAAC;YACD,IAAI,MAAM,KAAK,MAAM;gBAAE,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;YACzC,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;KACF,EACD,IAAA,qBAAY,EAAC,IAAI,CAAC,CACnB,CAAC;AACJ,CAAC"}
@@ -513,15 +513,18 @@ per request.
513
513
 
514
514
  **Half:** debugger verbs of `@mcp-abap-adt/compact` (opt-in: `debug` in `--exposition`)
515
515
 
516
- **Description:** Debugger start. kind: abap (line, exception, statement or message breakpoints) or amdp (lines in SQLScript methods). Arms the breakpoints, listens (abap) or opens an AMDP session, and optionally runs a class or report in the background. take_over: abap — Displaces another debugger listening for the same user; amdp — ends an AMDP session of this user left behind. Catches every request of the connected SAP user, not only programs run by this server.
516
+ **Description:** Debugger start. kind: abap (line, exception, statement or message breakpoints) or amdp (lines in SQLScript methods). Arms the breakpoints, listens (abap) or opens an AMDP session, and optionally runs a class or report in the background. request_user, debugging_mode and settings apply to abap only. take_over: abap — Displaces another debugger listening for the same user; amdp — ends an AMDP session of this user left behind. Without take_over, abap is refused before anything is placed while another debugger listens for that user. abap: in user mode it catches every request of the request user (the connected SAP user unless another is named), not only programs run by this server. abap: the breakpoints are one set, shared by every IDE of the same SAP user (in user mode, debugging the same request user; in terminal mode, whatever its ids), and each change replaces that set as a whole. amdp: catches every request of the connected SAP user, not only programs run by this server.
517
517
 
518
518
  **Available in:** cloud, onprem
519
519
 
520
520
  **Parameters:**
521
521
 
522
522
  - `kind` (required) — abap debugs ABAP code; amdp debugs SQLScript methods of a class.
523
- - `breakpoints` (required) — abap: a line, an exception class, an ABAP statement or a message, each with an optional condition. amdp: object_name (the class) and line of each.
524
- - `take_over` — Takes over from an existing debugger of this user instead of refusing.
523
+ - `breakpoints` (required) — abap: a line, an exception class, an ABAP statement or a message; a line breakpoint may carry a condition. amdp: object_name (the class) and line of each.
524
+ - `take_over` — abap: takes over from another debugger listening for this user instead of refusing; the breakpoints of this SAP user (in user mode, for the same request user) are replaced. amdp: ends an AMDP session of this user left behind instead of refusing.
525
+ - `request_user` — User mode: the SAP user whose requests are caught; the connected user when omitted. Debugging another user's requests needs the debug authorization for that user. Not taken in terminal mode.
526
+ - `debugging_mode` — user (when omitted) catches the requests of the request user; terminal catches the requests that carry this debug session's ids and needs no configuration: the run it starts carries them, so without run it catches only requests carrying the same ids.
527
+ - `settings` — Debugger settings, applied after each attach; a field left out keeps its value.
525
528
  - `run` — A class (as a console application) or a report started in the background once listening; its outcome is reported as the end of the session.
526
529
  - `detail` — How much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it).
527
530
 
@@ -558,14 +561,14 @@ per request.
558
561
 
559
562
  **Half:** debugger verbs of `@mcp-abap-adt/compact` (opt-in: `debug` in `--exposition`)
560
563
 
561
- **Description:** Moves the stopped debuggee (into, over, return, continue, run or jump to a line), ends it where it stands, or ends the debug session.
564
+ **Description:** Moves the stopped debuggee (into, over, return, continue, run or jump to a line), leaves it running (detach, release_debugger), ends it where it stands, or ends the debug session.
562
565
 
563
566
  **Available in:** cloud, onprem
564
567
 
565
568
  **Parameters:**
566
569
 
567
570
  - `state_handle` (required) — Opaque handle identifying the server-held state this operation works on.
568
- - `action` (required) — into enters the call, over runs it, return leaves the current one, continue runs to the next stop; run_to_line executes up to the line, jump_to_line moves there without executing what lies between; terminate ends the debuggee where it stands; stop ends the debug session. For AMDP only over, continue, terminate and stop apply.
571
+ - `action` (required) — into enters the call, over runs it, return leaves the current one, continue runs to the next stop; run_to_line executes up to the line, jump_to_line moves there without executing what lies between; detach lets the program run on, the listener and the breakpoints kept; release_debugger frees the debugger and the program runs on; terminate ends the debuggee where it stands; stop ends the debug session. For AMDP only over, continue, terminate and stop apply.
569
572
  - `object_type` — For a line: CLAS, PROG, INCL or FUNC.
570
573
  - `object_name` — For a line: the object holding it.
571
574
  - `line` — For a line: the line in the object source.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/compact",
3
3
  "mcpName": "io.github.fr0ster/mcp-abap-adt-compact",
4
- "version": "17.2.2",
4
+ "version": "18.0.0",
5
5
  "description": "The compact MCP server for SAP ABAP ADT: one tool per operation with the object in the arguments \u2014 25 tools instead of 370, for a host that cannot build a retrieval pipeline of its own. Connects over HTTP, RFC or SNC, configured as @mcp-abap-adt/core; RFC and SNC need the SAP NW RFC SDK at install time.",
6
6
  "license": "AGPL-3.0-only",
7
7
  "author": "Oleksii Kyslytsia <oleksij.kyslytsja@gmail.com>",
@@ -58,10 +58,10 @@
58
58
  "docs:tools": "node ./tools/generate-docs.js"
59
59
  },
60
60
  "dependencies": {
61
- "@mcp-abap-adt/compact-modify": "^17.0.0",
62
- "@mcp-abap-adt/compact-readonly": "^17.0.0",
63
- "@mcp-abap-adt/core": "^17.2.0",
64
- "@mcp-abap-adt/lib": "^17.2.2"
61
+ "@mcp-abap-adt/compact-modify": "^18.0.0",
62
+ "@mcp-abap-adt/compact-readonly": "^18.0.0",
63
+ "@mcp-abap-adt/core": "^18.0.0",
64
+ "@mcp-abap-adt/lib": "^18.0.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "typescript": "^6.0.2",