@mcp-abap-adt/compact-modify 21.0.0 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,16 +1,13 @@
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: "HandlerCreate";
5
- readonly available_in: readonly ["onprem", "cloud"];
6
- readonly description: "Creates the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the create request for its type with the given parameters, and answers SAP's result. The object is created inactive. object_type required: PACKAGE(package_name*, super_package*), DOMAIN(domain_name*, package_name*), DATA_ELEMENT(data_element_name*, package_name*), TRANSPORT(description*), TABLE(table_name*, package_name*), STRUCTURE(structure_name*, package_name*), DDL(ddl_name*, package_name*), SERVICE_DEFINITION(service_definition_name*, package_name*), SERVICE_BINDING(service_binding_name*, service_definition_name*, package_name*), CLASS(class_name*, package_name*), PROGRAM(program_name*, package_name*) [onprem only], INTERFACE(interface_name*, package_name*), FUNCTION_GROUP(function_group_name*, package_name*), FUNCTION_MODULE(function_module_name*, function_group_name*), BEHAVIOR_DEFINITION(name*, package_name*, implementation_type*), BEHAVIOR_IMPLEMENTATION(class_name*, package_name*), METADATA_EXTENSION(name*, package_name*). Optional for every type: description, transport_request.";
3
+ readonly description: string;
7
4
  readonly inputSchema: {
8
5
  readonly type: "object";
9
6
  readonly properties: {
10
7
  readonly object_type: {
11
8
  readonly type: "string";
12
- readonly enum: import("../../../dist/lib/compact/compactObjectTypes").CompactObjectType[];
13
- readonly description: "ABAP object type for routed compact operation.";
9
+ readonly enum: readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TRANSPORT", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "SERVICE_BINDING", "CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "TRANSPORT")[];
10
+ readonly description: string;
14
11
  };
15
12
  readonly class_name: {
16
13
  readonly type: "string";
@@ -158,9 +155,321 @@ export declare const TOOL_DEFINITION: {
158
155
  };
159
156
  readonly required: readonly ["object_type"];
160
157
  };
158
+ readonly variants: {
159
+ readonly onprem: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
160
+ readonly type: "object";
161
+ readonly properties: {
162
+ readonly object_type: {
163
+ readonly type: "string";
164
+ readonly enum: readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TRANSPORT", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "SERVICE_BINDING", "CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "TRANSPORT")[];
165
+ readonly description: string;
166
+ };
167
+ readonly class_name: {
168
+ readonly type: "string";
169
+ readonly description: "ABAP class name (CLASS, BEHAVIOR_IMPLEMENTATION).";
170
+ };
171
+ readonly program_name: {
172
+ readonly type: "string";
173
+ readonly description: "ABAP program name.";
174
+ };
175
+ readonly domain_name: {
176
+ readonly type: "string";
177
+ readonly description: "ABAP domain name.";
178
+ };
179
+ readonly function_module_name: {
180
+ readonly type: "string";
181
+ readonly description: "ABAP function module name.";
182
+ };
183
+ readonly function_group_name: {
184
+ readonly type: "string";
185
+ readonly description: "ABAP function group name (FUNCTION_GROUP; the group of a FUNCTION_MODULE).";
186
+ };
187
+ readonly package_name: {
188
+ readonly type: "string";
189
+ readonly description: "ABAP package name.";
190
+ };
191
+ readonly ddl_name: {
192
+ readonly type: "string";
193
+ readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
194
+ };
195
+ readonly description: {
196
+ readonly type: "string";
197
+ readonly description: "Human-readable object description.";
198
+ };
199
+ readonly transport_request: {
200
+ readonly type: "string";
201
+ readonly description: "Transport request id (if required by system).";
202
+ };
203
+ readonly master_language: {
204
+ readonly type: "string";
205
+ readonly description: "Original language of the created object; the session language when absent.";
206
+ };
207
+ readonly super_package: {
208
+ readonly type: "string";
209
+ readonly description: "Super package (PACKAGE create).";
210
+ };
211
+ readonly package_type: {
212
+ readonly type: "string";
213
+ readonly description: "Package type (PACKAGE create).";
214
+ };
215
+ readonly software_component: {
216
+ readonly type: "string";
217
+ readonly description: "Software component (PACKAGE create).";
218
+ };
219
+ readonly transport_layer: {
220
+ readonly type: "string";
221
+ readonly description: "Transport layer (PACKAGE create).";
222
+ };
223
+ readonly record_changes: {
224
+ readonly type: "boolean";
225
+ readonly description: "Record changes (PACKAGE create).";
226
+ };
227
+ readonly application_component: {
228
+ readonly type: "string";
229
+ readonly description: "Application component (PACKAGE create).";
230
+ };
231
+ readonly transport_type: {
232
+ readonly type: "string";
233
+ readonly enum: readonly ["workbench", "customizing"];
234
+ readonly description: "Transport request type (TRANSPORT create).";
235
+ };
236
+ readonly target_system: {
237
+ readonly type: "string";
238
+ readonly description: "Target system of the transport request (TRANSPORT create).";
239
+ };
240
+ readonly owner: {
241
+ readonly type: "string";
242
+ readonly description: "Owner of the transport request (TRANSPORT create).";
243
+ };
244
+ readonly superclass: {
245
+ readonly type: "string";
246
+ readonly description: "Superclass name (CLASS create).";
247
+ };
248
+ readonly final: {
249
+ readonly type: "boolean";
250
+ readonly description: "Mark the class final (CLASS create).";
251
+ };
252
+ readonly create_protected: {
253
+ readonly type: "boolean";
254
+ readonly description: "Protected constructor (CLASS create).";
255
+ };
256
+ readonly program_type: {
257
+ readonly type: "string";
258
+ readonly description: "ABAP program type (PROGRAM create).";
259
+ };
260
+ readonly application: {
261
+ readonly type: "string";
262
+ readonly description: "Application area (PROGRAM create).";
263
+ };
264
+ readonly table_name: {
265
+ readonly type: "string";
266
+ readonly description: "Table name.";
267
+ };
268
+ readonly structure_name: {
269
+ readonly type: "string";
270
+ readonly description: "Structure name.";
271
+ };
272
+ readonly data_element_name: {
273
+ readonly type: "string";
274
+ readonly description: "Data element name.";
275
+ };
276
+ readonly interface_name: {
277
+ readonly type: "string";
278
+ readonly description: "Interface name.";
279
+ };
280
+ readonly service_definition_name: {
281
+ readonly type: "string";
282
+ readonly description: "Service definition name (SERVICE_DEFINITION; the definition a SERVICE_BINDING binds).";
283
+ };
284
+ readonly service_binding_name: {
285
+ readonly type: "string";
286
+ readonly description: "Service binding name.";
287
+ };
288
+ readonly service_name: {
289
+ readonly type: "string";
290
+ readonly description: "Service name of the binding (SERVICE_BINDING create); the binding name when absent.";
291
+ };
292
+ readonly service_version: {
293
+ readonly type: "string";
294
+ readonly description: "Service version of the binding (SERVICE_BINDING create); 0001 when absent.";
295
+ };
296
+ readonly binding_variant: {
297
+ readonly type: "string";
298
+ readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
299
+ readonly description: "Binding variant (SERVICE_BINDING create); ODATA_V4_UI when absent.";
300
+ };
301
+ readonly name: {
302
+ readonly type: "string";
303
+ readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
304
+ };
305
+ readonly implementation_type: {
306
+ readonly type: "string";
307
+ readonly enum: readonly ["Managed", "Unmanaged", "Abstract", "Projection"];
308
+ readonly description: "Behavior definition implementation type.";
309
+ };
310
+ };
311
+ readonly required: readonly ["object_type"];
312
+ }>;
313
+ readonly cloud: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
314
+ readonly type: "object";
315
+ readonly properties: {
316
+ readonly object_type: {
317
+ readonly type: "string";
318
+ readonly enum: readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TRANSPORT", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "SERVICE_BINDING", "CLASS", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "TRANSPORT")[];
319
+ readonly description: string;
320
+ };
321
+ readonly class_name: {
322
+ readonly type: "string";
323
+ readonly description: "ABAP class name (CLASS, BEHAVIOR_IMPLEMENTATION).";
324
+ };
325
+ readonly program_name: {
326
+ readonly type: "string";
327
+ readonly description: "ABAP program name.";
328
+ };
329
+ readonly domain_name: {
330
+ readonly type: "string";
331
+ readonly description: "ABAP domain name.";
332
+ };
333
+ readonly function_module_name: {
334
+ readonly type: "string";
335
+ readonly description: "ABAP function module name.";
336
+ };
337
+ readonly function_group_name: {
338
+ readonly type: "string";
339
+ readonly description: "ABAP function group name (FUNCTION_GROUP; the group of a FUNCTION_MODULE).";
340
+ };
341
+ readonly package_name: {
342
+ readonly type: "string";
343
+ readonly description: "ABAP package name.";
344
+ };
345
+ readonly ddl_name: {
346
+ readonly type: "string";
347
+ readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
348
+ };
349
+ readonly description: {
350
+ readonly type: "string";
351
+ readonly description: "Human-readable object description.";
352
+ };
353
+ readonly transport_request: {
354
+ readonly type: "string";
355
+ readonly description: "Transport request id (if required by system).";
356
+ };
357
+ readonly master_language: {
358
+ readonly type: "string";
359
+ readonly description: "Original language of the created object; the session language when absent.";
360
+ };
361
+ readonly super_package: {
362
+ readonly type: "string";
363
+ readonly description: "Super package (PACKAGE create).";
364
+ };
365
+ readonly package_type: {
366
+ readonly type: "string";
367
+ readonly description: "Package type (PACKAGE create).";
368
+ };
369
+ readonly software_component: {
370
+ readonly type: "string";
371
+ readonly description: "Software component (PACKAGE create).";
372
+ };
373
+ readonly transport_layer: {
374
+ readonly type: "string";
375
+ readonly description: "Transport layer (PACKAGE create).";
376
+ };
377
+ readonly record_changes: {
378
+ readonly type: "boolean";
379
+ readonly description: "Record changes (PACKAGE create).";
380
+ };
381
+ readonly application_component: {
382
+ readonly type: "string";
383
+ readonly description: "Application component (PACKAGE create).";
384
+ };
385
+ readonly transport_type: {
386
+ readonly type: "string";
387
+ readonly enum: readonly ["workbench", "customizing"];
388
+ readonly description: "Transport request type (TRANSPORT create).";
389
+ };
390
+ readonly target_system: {
391
+ readonly type: "string";
392
+ readonly description: "Target system of the transport request (TRANSPORT create).";
393
+ };
394
+ readonly owner: {
395
+ readonly type: "string";
396
+ readonly description: "Owner of the transport request (TRANSPORT create).";
397
+ };
398
+ readonly superclass: {
399
+ readonly type: "string";
400
+ readonly description: "Superclass name (CLASS create).";
401
+ };
402
+ readonly final: {
403
+ readonly type: "boolean";
404
+ readonly description: "Mark the class final (CLASS create).";
405
+ };
406
+ readonly create_protected: {
407
+ readonly type: "boolean";
408
+ readonly description: "Protected constructor (CLASS create).";
409
+ };
410
+ readonly program_type: {
411
+ readonly type: "string";
412
+ readonly description: "ABAP program type (PROGRAM create).";
413
+ };
414
+ readonly application: {
415
+ readonly type: "string";
416
+ readonly description: "Application area (PROGRAM create).";
417
+ };
418
+ readonly table_name: {
419
+ readonly type: "string";
420
+ readonly description: "Table name.";
421
+ };
422
+ readonly structure_name: {
423
+ readonly type: "string";
424
+ readonly description: "Structure name.";
425
+ };
426
+ readonly data_element_name: {
427
+ readonly type: "string";
428
+ readonly description: "Data element name.";
429
+ };
430
+ readonly interface_name: {
431
+ readonly type: "string";
432
+ readonly description: "Interface name.";
433
+ };
434
+ readonly service_definition_name: {
435
+ readonly type: "string";
436
+ readonly description: "Service definition name (SERVICE_DEFINITION; the definition a SERVICE_BINDING binds).";
437
+ };
438
+ readonly service_binding_name: {
439
+ readonly type: "string";
440
+ readonly description: "Service binding name.";
441
+ };
442
+ readonly service_name: {
443
+ readonly type: "string";
444
+ readonly description: "Service name of the binding (SERVICE_BINDING create); the binding name when absent.";
445
+ };
446
+ readonly service_version: {
447
+ readonly type: "string";
448
+ readonly description: "Service version of the binding (SERVICE_BINDING create); 0001 when absent.";
449
+ };
450
+ readonly binding_variant: {
451
+ readonly type: "string";
452
+ readonly enum: readonly ["ODATA_V2_UI", "ODATA_V2_WEB_API", "ODATA_V4_UI", "ODATA_V4_WEB_API"];
453
+ readonly description: "Binding variant (SERVICE_BINDING create); ODATA_V4_UI when absent.";
454
+ };
455
+ readonly name: {
456
+ readonly type: "string";
457
+ readonly description: "Object name for handlers that require a generic `name` (behavior definition, metadata extension).";
458
+ };
459
+ readonly implementation_type: {
460
+ readonly type: "string";
461
+ readonly enum: readonly ["Managed", "Unmanaged", "Abstract", "Projection"];
462
+ readonly description: "Behavior definition implementation type.";
463
+ };
464
+ };
465
+ readonly required: readonly ["object_type"];
466
+ }>;
467
+ };
468
+ readonly name: "HandlerCreate";
469
+ readonly available_in: readonly ["onprem", "cloud"];
161
470
  };
162
471
  type HandlerCreateArgs = {
163
- object_type: CompactObjectType;
472
+ object_type: string;
164
473
  } & Record<string, unknown>;
165
474
  /** One request: the type's create alone (`handleCreateOnly`, spec §4.6). */
166
475
  export declare function handleHandlerCreate(context: HandlerContext, args: HandlerCreateArgs): Promise<unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerCreate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerCreate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,iBAAiB,CAAA;CAAE,GAAG,MAAM,CAClE,MAAM,EACN,OAAO,CACR,CAAC;AAEF,4EAA4E;AAC5E,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB,oBAGxB"}
1
+ {"version":3,"file":"handleHandlerCreate.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerCreate.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,4BAA4B,CAAC;AAK5E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3E,4EAA4E;AAC5E,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB,oBAwBxB"}
@@ -3,15 +3,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TOOL_DEFINITION = void 0;
4
4
  exports.handleHandlerCreate = handleHandlerCreate;
5
5
  const compact_shared_1 = require("@mcp-abap-adt/lib/compact-shared");
6
+ const handlers_1 = require("@mcp-abap-adt/lib/handlers");
7
+ const write_1 = require("@mcp-abap-adt/lib/handlers/write");
8
+ const utils_1 = require("@mcp-abap-adt/lib/utils");
6
9
  const compactWriteRoutes_1 = require("./compactWriteRoutes");
7
10
  exports.TOOL_DEFINITION = {
8
11
  name: 'HandlerCreate',
9
12
  available_in: ['onprem', 'cloud'],
10
- description: "Creates the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the create request for its type with the given parameters, and answers SAP's result. The object is created inactive. object_type required: PACKAGE(package_name*, super_package*), DOMAIN(domain_name*, package_name*), DATA_ELEMENT(data_element_name*, package_name*), TRANSPORT(description*), TABLE(table_name*, package_name*), STRUCTURE(structure_name*, package_name*), DDL(ddl_name*, package_name*), SERVICE_DEFINITION(service_definition_name*, package_name*), SERVICE_BINDING(service_binding_name*, service_definition_name*, package_name*), CLASS(class_name*, package_name*), PROGRAM(program_name*, package_name*) [onprem only], INTERFACE(interface_name*, package_name*), FUNCTION_GROUP(function_group_name*, package_name*), FUNCTION_MODULE(function_module_name*, function_group_name*), BEHAVIOR_DEFINITION(name*, package_name*, implementation_type*), BEHAVIOR_IMPLEMENTATION(class_name*, package_name*), METADATA_EXTENSION(name*, package_name*). Optional for every type: description, transport_request.",
11
- inputSchema: compact_shared_1.compactCreateSchema,
13
+ ...(0, compact_shared_1.byVariant)((variant) => ({
14
+ description: (0, compact_shared_1.compactCreateDescription)(variant),
15
+ inputSchema: (0, compact_shared_1.compactCreateSchemaFor)(compact_shared_1.COMPACT_CREATE[variant]),
16
+ })),
12
17
  };
13
18
  /** One request: the type's create alone (`handleCreateOnly`, spec §4.6). */
14
19
  async function handleHandlerCreate(context, args) {
15
- return (0, compactWriteRoutes_1.routeCompactWrite)(context, 'create', args);
20
+ // The boundary of object_type: one of the declared variant's members
21
+ // (`COMPACT_CREATE`); past it, the route is typed by it.
22
+ if (!args.object_type) {
23
+ // The router refuses it, in its own words and through its log.
24
+ return (0, compactWriteRoutes_1.routeCompactWrite)(context, 'create', {
25
+ ...args,
26
+ object_type: undefined,
27
+ });
28
+ }
29
+ const variant = (0, handlers_1.variantOf)(context.connection);
30
+ const member = (0, compact_shared_1.acceptedOf)(args.object_type, compact_shared_1.COMPACT_CREATE[variant]);
31
+ if (member === undefined) {
32
+ // A type created by a chain of requests: the full set's tool, named.
33
+ const chain = (0, write_1.chainCreateRefusal)(args.object_type);
34
+ if (chain !== undefined)
35
+ return chain;
36
+ return (0, utils_1.return_error)(new Error(`Unsupported create for object_type: ${args.object_type}. ${(0, compact_shared_1.supported)(compact_shared_1.COMPACT_CREATE[variant])}`));
37
+ }
38
+ return (0, compactWriteRoutes_1.routeCompactWrite)(context, 'create', { ...args, object_type: member });
16
39
  }
17
40
  //# sourceMappingURL=handleHandlerCreate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerCreate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerCreate.ts"],"names":[],"mappings":";;;AAmBA,kDAKC;AAvBD,qEAAuE;AAEvE,6DAAyD;AAE5C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,umCAAumC;IACzmC,WAAW,EAAE,oCAAmB;CACxB,CAAC;AAOX,4EAA4E;AACrE,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"handleHandlerCreate.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerCreate.ts"],"names":[],"mappings":";;;AAyBA,kDA0BC;AAnDD,qEAO0C;AAC1C,yDAA4E;AAC5E,4DAAsE;AACtE,mDAAuD;AACvD,6DAAyD;AAE5C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,GAAG,IAAA,0BAAS,EAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACzB,WAAW,EAAE,IAAA,yCAAwB,EAAC,OAAO,CAAC;QAC9C,WAAW,EAAE,IAAA,uCAAsB,EAAC,+BAAc,CAAC,OAAO,CAAC,CAAC;KAC7D,CAAC,CAAC;CACK,CAAC;AAIX,4EAA4E;AACrE,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,qEAAqE;IACrE,yDAAyD;IACzD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QACtB,+DAA+D;QAC/D,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE;YAC1C,GAAG,IAAI;YACP,WAAW,EAAE,SAAS;SACvB,CAAC,CAAC;IACL,CAAC;IACD,MAAM,OAAO,GAAG,IAAA,oBAAS,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAG,IAAA,2BAAU,EAAC,IAAI,CAAC,WAAW,EAAE,+BAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACrE,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,qEAAqE;QACrE,MAAM,KAAK,GAAG,IAAA,0BAAkB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACnD,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACtC,OAAO,IAAA,oBAAY,EACjB,IAAI,KAAK,CACP,uCAAuC,IAAI,CAAC,WAAW,KAAK,IAAA,0BAAS,EAAC,+BAAc,CAAC,OAAO,CAAC,CAAC,EAAE,CACjG,CACF,CAAC;IACJ,CAAC;IACD,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;AAChF,CAAC"}
@@ -1,16 +1,14 @@
1
1
  import type { CompactObjectType } from '@mcp-abap-adt/lib/compact-shared';
2
2
  import type { HandlerContext } from '@mcp-abap-adt/lib/handlers';
3
3
  export declare const TOOL_DEFINITION: {
4
- readonly name: "HandlerDelete";
5
- readonly available_in: readonly ["onprem", "cloud"];
6
- readonly description: "Deletes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the deletion request for its type, and answers SAP's result. object_type required: PACKAGE(package_name*, transport_request), DOMAIN(domain_name*, transport_request), DATA_ELEMENT(data_element_name*, transport_request), TABLE(table_name*, transport_request), STRUCTURE(structure_name*, transport_request), DDL(ddl_name*, transport_request), SERVICE_DEFINITION(service_definition_name*, transport_request), SERVICE_BINDING(service_binding_name*, transport_request), CLASS(class_name*, transport_request), CDS_UNIT_TEST(class_name*, transport_request), PROGRAM(program_name*, transport_request) [onprem only], INTERFACE(interface_name*, transport_request), FUNCTION_GROUP(function_group_name*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, transport_request), BEHAVIOR_DEFINITION(behavior_definition_name*, transport_request), BEHAVIOR_IMPLEMENTATION(behavior_implementation_name*, transport_request), METADATA_EXTENSION(metadata_extension_name*, transport_request), LOCAL_TEST_CLASS(class_name*, lock_handle*, transport_request), LOCAL_TYPES(class_name*, lock_handle*, transport_request), LOCAL_DEFINITIONS(class_name*, lock_handle*, transport_request), LOCAL_MACROS(class_name*, lock_handle*, transport_request), UNIT_TEST(class_name*, lock_handle*, transport_request). CDS_UNIT_TEST deletes its test class. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS and LOCAL_MACROS (the class's local includes) and UNIT_TEST (its test classes include) the include is written empty under lock_handle, the class's lock handle. transport_request is sent with the request. Over Streamable HTTP an include write 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); it is sent only under a lock the instance it reaches holds.";
4
+ readonly description: string;
7
5
  readonly inputSchema: {
8
6
  readonly type: "object";
9
7
  readonly properties: {
10
8
  readonly object_type: {
11
9
  readonly type: "string";
12
- readonly enum: readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "SERVICE_BINDING", "CLASS", "CDS_UNIT_TEST", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST"];
13
- readonly description: `Object type. Supported: ${string}.`;
10
+ readonly enum: readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "SERVICE_BINDING", "CLASS", "CDS_UNIT_TEST", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[];
11
+ readonly description: `Object type. ${string}`;
14
12
  };
15
13
  readonly lock_handle: {
16
14
  readonly type: "string";
@@ -87,6 +85,176 @@ export declare const TOOL_DEFINITION: {
87
85
  };
88
86
  readonly required: readonly ["object_type"];
89
87
  };
88
+ readonly variants: {
89
+ readonly onprem: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
90
+ readonly type: "object";
91
+ readonly properties: {
92
+ readonly object_type: {
93
+ readonly type: "string";
94
+ readonly enum: readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "SERVICE_BINDING", "CLASS", "CDS_UNIT_TEST", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[];
95
+ readonly description: `Object type. ${string}`;
96
+ };
97
+ readonly lock_handle: {
98
+ readonly type: "string";
99
+ readonly description: "The lock handle of the class (LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST): the include is written empty under it.";
100
+ };
101
+ readonly package_name: {
102
+ readonly type: "string";
103
+ readonly description: "ABAP package name.";
104
+ };
105
+ readonly class_name: {
106
+ readonly type: "string";
107
+ readonly description: "ABAP class name.";
108
+ };
109
+ readonly program_name: {
110
+ readonly type: "string";
111
+ readonly description: "ABAP program name.";
112
+ };
113
+ readonly domain_name: {
114
+ readonly type: "string";
115
+ readonly description: "ABAP domain name.";
116
+ };
117
+ readonly function_module_name: {
118
+ readonly type: "string";
119
+ readonly description: "ABAP function module name.";
120
+ };
121
+ readonly function_group_name: {
122
+ readonly type: "string";
123
+ readonly description: "ABAP function group name.";
124
+ };
125
+ readonly ddl_name: {
126
+ readonly type: "string";
127
+ readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
128
+ };
129
+ readonly transport_request: {
130
+ readonly type: "string";
131
+ readonly description: "Transport request id, sent with the deletion (or the include write).";
132
+ };
133
+ readonly table_name: {
134
+ readonly type: "string";
135
+ readonly description: "Table name.";
136
+ };
137
+ readonly structure_name: {
138
+ readonly type: "string";
139
+ readonly description: "Structure name.";
140
+ };
141
+ readonly data_element_name: {
142
+ readonly type: "string";
143
+ readonly description: "Data element name.";
144
+ };
145
+ readonly interface_name: {
146
+ readonly type: "string";
147
+ readonly description: "Interface name.";
148
+ };
149
+ readonly service_definition_name: {
150
+ readonly type: "string";
151
+ readonly description: "Service definition name.";
152
+ };
153
+ readonly service_binding_name: {
154
+ readonly type: "string";
155
+ readonly description: "Service binding name.";
156
+ };
157
+ readonly behavior_definition_name: {
158
+ readonly type: "string";
159
+ readonly description: "Behavior definition name.";
160
+ };
161
+ readonly behavior_implementation_name: {
162
+ readonly type: "string";
163
+ readonly description: "Behavior implementation name.";
164
+ };
165
+ readonly metadata_extension_name: {
166
+ readonly type: "string";
167
+ readonly description: "Metadata extension name.";
168
+ };
169
+ };
170
+ readonly required: readonly ["object_type"];
171
+ }>;
172
+ readonly cloud: import("../../../dist/lib/variantDefinition").StatedOnVariant<{
173
+ readonly type: "object";
174
+ readonly properties: {
175
+ readonly object_type: {
176
+ readonly type: "string";
177
+ readonly enum: readonly ["PACKAGE", "DOMAIN", "DATA_ELEMENT", "TABLE", "STRUCTURE", "DDL", "SERVICE_DEFINITION", "SERVICE_BINDING", "CLASS", "CDS_UNIT_TEST", "PROGRAM", "INTERFACE", "FUNCTION_GROUP", "FUNCTION_MODULE", "BEHAVIOR_DEFINITION", "BEHAVIOR_IMPLEMENTATION", "METADATA_EXTENSION", "LOCAL_TEST_CLASS", "LOCAL_TYPES", "LOCAL_DEFINITIONS", "LOCAL_MACROS", "UNIT_TEST"] | ("CLASS" | "INTERFACE" | "FUNCTION_GROUP" | "TABLE" | "STRUCTURE" | "DDL" | "DOMAIN" | "DATA_ELEMENT" | "BEHAVIOR_DEFINITION" | "METADATA_EXTENSION" | "PACKAGE" | "SERVICE_DEFINITION" | "SERVICE_BINDING" | "FUNCTION_MODULE" | "BEHAVIOR_IMPLEMENTATION" | "UNIT_TEST" | "CDS_UNIT_TEST" | "LOCAL_TEST_CLASS" | "LOCAL_TYPES" | "LOCAL_DEFINITIONS" | "LOCAL_MACROS")[];
178
+ readonly description: `Object type. ${string}`;
179
+ };
180
+ readonly lock_handle: {
181
+ readonly type: "string";
182
+ readonly description: "The lock handle of the class (LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS, LOCAL_MACROS, UNIT_TEST): the include is written empty under it.";
183
+ };
184
+ readonly package_name: {
185
+ readonly type: "string";
186
+ readonly description: "ABAP package name.";
187
+ };
188
+ readonly class_name: {
189
+ readonly type: "string";
190
+ readonly description: "ABAP class name.";
191
+ };
192
+ readonly program_name: {
193
+ readonly type: "string";
194
+ readonly description: "ABAP program name.";
195
+ };
196
+ readonly domain_name: {
197
+ readonly type: "string";
198
+ readonly description: "ABAP domain name.";
199
+ };
200
+ readonly function_module_name: {
201
+ readonly type: "string";
202
+ readonly description: "ABAP function module name.";
203
+ };
204
+ readonly function_group_name: {
205
+ readonly type: "string";
206
+ readonly description: "ABAP function group name.";
207
+ };
208
+ readonly ddl_name: {
209
+ readonly type: "string";
210
+ readonly description: "DDL source name (CDS view, AMDP table function, etc.).";
211
+ };
212
+ readonly transport_request: {
213
+ readonly type: "string";
214
+ readonly description: "Transport request id, sent with the deletion (or the include write).";
215
+ };
216
+ readonly table_name: {
217
+ readonly type: "string";
218
+ readonly description: "Table name.";
219
+ };
220
+ readonly structure_name: {
221
+ readonly type: "string";
222
+ readonly description: "Structure name.";
223
+ };
224
+ readonly data_element_name: {
225
+ readonly type: "string";
226
+ readonly description: "Data element name.";
227
+ };
228
+ readonly interface_name: {
229
+ readonly type: "string";
230
+ readonly description: "Interface name.";
231
+ };
232
+ readonly service_definition_name: {
233
+ readonly type: "string";
234
+ readonly description: "Service definition name.";
235
+ };
236
+ readonly service_binding_name: {
237
+ readonly type: "string";
238
+ readonly description: "Service binding name.";
239
+ };
240
+ readonly behavior_definition_name: {
241
+ readonly type: "string";
242
+ readonly description: "Behavior definition name.";
243
+ };
244
+ readonly behavior_implementation_name: {
245
+ readonly type: "string";
246
+ readonly description: "Behavior implementation name.";
247
+ };
248
+ readonly metadata_extension_name: {
249
+ readonly type: "string";
250
+ readonly description: "Metadata extension name.";
251
+ };
252
+ };
253
+ readonly required: readonly ["object_type"];
254
+ }>;
255
+ };
256
+ readonly name: "HandlerDelete";
257
+ readonly available_in: readonly ["onprem", "cloud"];
90
258
  };
91
259
  type HandlerDeleteArgs = {
92
260
  object_type: CompactObjectType;
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerDelete.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerDelete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,iBAAiB,CAAA;CAAE,GAAG,MAAM,CAClE,MAAM,EACN,OAAO,CACR,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB,oBAGxB"}
1
+ {"version":3,"file":"handleHandlerDelete.d.ts","sourceRoot":"","sources":["../../src/handlers/handleHandlerDelete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAO1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOlB,CAAC;AAEX,KAAK,iBAAiB,GAAG;IAAE,WAAW,EAAE,iBAAiB,CAAA;CAAE,GAAG,MAAM,CAClE,MAAM,EACN,OAAO,CACR,CAAC;AAEF,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,cAAc,EACvB,IAAI,EAAE,iBAAiB,oBAGxB"}
@@ -7,8 +7,10 @@ const compactWriteRoutes_1 = require("./compactWriteRoutes");
7
7
  exports.TOOL_DEFINITION = {
8
8
  name: 'HandlerDelete',
9
9
  available_in: ['onprem', 'cloud'],
10
- description: "Deletes the object named by object_type and its name parameter (class_name, program_name, ddl_name, table_name, …): sends the deletion request for its type, and answers SAP's result. object_type required: PACKAGE(package_name*, transport_request), DOMAIN(domain_name*, transport_request), DATA_ELEMENT(data_element_name*, transport_request), TABLE(table_name*, transport_request), STRUCTURE(structure_name*, transport_request), DDL(ddl_name*, transport_request), SERVICE_DEFINITION(service_definition_name*, transport_request), SERVICE_BINDING(service_binding_name*, transport_request), CLASS(class_name*, transport_request), CDS_UNIT_TEST(class_name*, transport_request), PROGRAM(program_name*, transport_request) [onprem only], INTERFACE(interface_name*, transport_request), FUNCTION_GROUP(function_group_name*, transport_request), FUNCTION_MODULE(function_module_name*, function_group_name*, transport_request), BEHAVIOR_DEFINITION(behavior_definition_name*, transport_request), BEHAVIOR_IMPLEMENTATION(behavior_implementation_name*, transport_request), METADATA_EXTENSION(metadata_extension_name*, transport_request), LOCAL_TEST_CLASS(class_name*, lock_handle*, transport_request), LOCAL_TYPES(class_name*, lock_handle*, transport_request), LOCAL_DEFINITIONS(class_name*, lock_handle*, transport_request), LOCAL_MACROS(class_name*, lock_handle*, transport_request), UNIT_TEST(class_name*, lock_handle*, transport_request). CDS_UNIT_TEST deletes its test class. For LOCAL_TEST_CLASS, LOCAL_TYPES, LOCAL_DEFINITIONS and LOCAL_MACROS (the class's local includes) and UNIT_TEST (its test classes include) the include is written empty under lock_handle, the class's lock handle. transport_request is sent with the request. Over Streamable HTTP an include write 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); it is sent only under a lock the instance it reaches holds.",
11
- inputSchema: compact_shared_1.compactDeleteSchema,
10
+ ...(0, compact_shared_1.byVariant)((variant) => ({
11
+ description: (0, compact_shared_1.compactDeleteDescription)(variant),
12
+ inputSchema: (0, compact_shared_1.compactDeleteSchemaFor)(compact_shared_1.COMPACT_DELETE[variant]),
13
+ })),
12
14
  };
13
15
  async function handleHandlerDelete(context, args) {
14
16
  return (0, compactWriteRoutes_1.routeCompactWrite)(context, 'delete', args);
@@ -1 +1 @@
1
- {"version":3,"file":"handleHandlerDelete.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerDelete.ts"],"names":[],"mappings":";;;AAkBA,kDAKC;AAtBD,qEAAuE;AAEvE,6DAAyD;AAE5C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,WAAW,EACT,q6DAAq6D;IACv6D,WAAW,EAAE,oCAAmB;CACxB,CAAC;AAOJ,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"handleHandlerDelete.js","sourceRoot":"","sources":["../../src/handlers/handleHandlerDelete.ts"],"names":[],"mappings":";;;AAwBA,kDAKC;AA5BD,qEAK0C;AAE1C,6DAAyD;AAE5C,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAU;IAC1C,GAAG,IAAA,0BAAS,EAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACzB,WAAW,EAAE,IAAA,yCAAwB,EAAC,OAAO,CAAC;QAC9C,WAAW,EAAE,IAAA,uCAAsB,EAAC,+BAAc,CAAC,OAAO,CAAC,CAAC;KAC7D,CAAC,CAAC;CACK,CAAC;AAOJ,KAAK,UAAU,mBAAmB,CACvC,OAAuB,EACvB,IAAuB;IAEvB,OAAO,IAAA,sCAAiB,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}