@mcp-abap-adt/calm-server 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/README.md +48 -25
  3. package/dist/bin/stdio.js +9 -6
  4. package/dist/bin/stdio.js.map +1 -1
  5. package/dist/server/config.d.ts.map +1 -1
  6. package/dist/server/config.js +7 -1
  7. package/dist/server/config.js.map +1 -1
  8. package/dist/server/runStdio.d.ts +2 -4
  9. package/dist/server/runStdio.d.ts.map +1 -1
  10. package/dist/server/runStdio.js +15 -5
  11. package/dist/server/runStdio.js.map +1 -1
  12. package/dist/server/stderrLogger.d.ts +24 -0
  13. package/dist/server/stderrLogger.d.ts.map +1 -0
  14. package/dist/server/stderrLogger.js +44 -0
  15. package/dist/server/stderrLogger.js.map +1 -0
  16. package/dist/tools/documents/createDocument.d.ts +5 -0
  17. package/dist/tools/documents/createDocument.d.ts.map +1 -0
  18. package/dist/tools/documents/createDocument.js +48 -0
  19. package/dist/tools/documents/createDocument.js.map +1 -0
  20. package/dist/tools/documents/deleteDocument.d.ts +10 -0
  21. package/dist/tools/documents/deleteDocument.d.ts.map +1 -0
  22. package/dist/tools/documents/deleteDocument.js +35 -0
  23. package/dist/tools/documents/deleteDocument.js.map +1 -0
  24. package/dist/tools/documents/index.d.ts +10 -0
  25. package/dist/tools/documents/index.d.ts.map +1 -1
  26. package/dist/tools/documents/index.js +21 -1
  27. package/dist/tools/documents/index.js.map +1 -1
  28. package/dist/tools/documents/listDocumentStatuses.d.ts +7 -0
  29. package/dist/tools/documents/listDocumentStatuses.d.ts.map +1 -0
  30. package/dist/tools/documents/listDocumentStatuses.js +23 -0
  31. package/dist/tools/documents/listDocumentStatuses.js.map +1 -0
  32. package/dist/tools/documents/listDocumentTypes.d.ts +7 -0
  33. package/dist/tools/documents/listDocumentTypes.d.ts.map +1 -0
  34. package/dist/tools/documents/listDocumentTypes.js +23 -0
  35. package/dist/tools/documents/listDocumentTypes.js.map +1 -0
  36. package/dist/tools/documents/updateDocument.d.ts +7 -0
  37. package/dist/tools/documents/updateDocument.d.ts.map +1 -0
  38. package/dist/tools/documents/updateDocument.js +43 -0
  39. package/dist/tools/documents/updateDocument.js.map +1 -0
  40. package/dist/tools/features/createExternalReference.d.ts +5 -0
  41. package/dist/tools/features/createExternalReference.d.ts.map +1 -0
  42. package/dist/tools/features/createExternalReference.js +49 -0
  43. package/dist/tools/features/createExternalReference.js.map +1 -0
  44. package/dist/tools/features/deleteExternalReference.d.ts +12 -0
  45. package/dist/tools/features/deleteExternalReference.d.ts.map +1 -0
  46. package/dist/tools/features/deleteExternalReference.js +44 -0
  47. package/dist/tools/features/deleteExternalReference.js.map +1 -0
  48. package/dist/tools/features/index.d.ts +6 -0
  49. package/dist/tools/features/index.d.ts.map +1 -1
  50. package/dist/tools/features/index.js +13 -1
  51. package/dist/tools/features/index.js.map +1 -1
  52. package/dist/tools/features/listExternalReferences.d.ts +11 -0
  53. package/dist/tools/features/listExternalReferences.d.ts.map +1 -0
  54. package/dist/tools/features/listExternalReferences.js +47 -0
  55. package/dist/tools/features/listExternalReferences.js.map +1 -0
  56. package/dist/tools/hierarchy/createHierarchyNode.d.ts +5 -0
  57. package/dist/tools/hierarchy/createHierarchyNode.d.ts.map +1 -0
  58. package/dist/tools/hierarchy/createHierarchyNode.js +46 -0
  59. package/dist/tools/hierarchy/createHierarchyNode.js.map +1 -0
  60. package/dist/tools/hierarchy/deleteHierarchyNode.d.ts +10 -0
  61. package/dist/tools/hierarchy/deleteHierarchyNode.d.ts.map +1 -0
  62. package/dist/tools/hierarchy/deleteHierarchyNode.js +35 -0
  63. package/dist/tools/hierarchy/deleteHierarchyNode.js.map +1 -0
  64. package/dist/tools/hierarchy/index.d.ts +6 -0
  65. package/dist/tools/hierarchy/index.d.ts.map +1 -1
  66. package/dist/tools/hierarchy/index.js +13 -1
  67. package/dist/tools/hierarchy/index.js.map +1 -1
  68. package/dist/tools/hierarchy/listHierarchy.d.ts.map +1 -1
  69. package/dist/tools/hierarchy/listHierarchy.js +4 -2
  70. package/dist/tools/hierarchy/listHierarchy.js.map +1 -1
  71. package/dist/tools/hierarchy/updateHierarchyNode.d.ts +7 -0
  72. package/dist/tools/hierarchy/updateHierarchyNode.d.ts.map +1 -0
  73. package/dist/tools/hierarchy/updateHierarchyNode.js +38 -0
  74. package/dist/tools/hierarchy/updateHierarchyNode.js.map +1 -0
  75. package/dist/tools/logs/index.d.ts +2 -0
  76. package/dist/tools/logs/index.d.ts.map +1 -1
  77. package/dist/tools/logs/index.js +8 -2
  78. package/dist/tools/logs/index.js.map +1 -1
  79. package/dist/tools/logs/postLogs.d.ts +10 -0
  80. package/dist/tools/logs/postLogs.d.ts.map +1 -0
  81. package/dist/tools/logs/postLogs.js +58 -0
  82. package/dist/tools/logs/postLogs.js.map +1 -0
  83. package/dist/tools/projects/createProject.d.ts +5 -0
  84. package/dist/tools/projects/createProject.d.ts.map +1 -0
  85. package/dist/tools/projects/createProject.js +42 -0
  86. package/dist/tools/projects/createProject.js.map +1 -0
  87. package/dist/tools/projects/getProgram.d.ts +7 -0
  88. package/dist/tools/projects/getProgram.d.ts.map +1 -0
  89. package/dist/tools/projects/getProgram.js +32 -0
  90. package/dist/tools/projects/getProgram.js.map +1 -0
  91. package/dist/tools/projects/index.d.ts +10 -0
  92. package/dist/tools/projects/index.d.ts.map +1 -1
  93. package/dist/tools/projects/index.js +21 -1
  94. package/dist/tools/projects/index.js.map +1 -1
  95. package/dist/tools/projects/listPrograms.d.ts +10 -0
  96. package/dist/tools/projects/listPrograms.d.ts.map +1 -0
  97. package/dist/tools/projects/listPrograms.js +36 -0
  98. package/dist/tools/projects/listPrograms.js.map +1 -0
  99. package/dist/tools/projects/listTeamMembers.d.ts +11 -0
  100. package/dist/tools/projects/listTeamMembers.d.ts.map +1 -0
  101. package/dist/tools/projects/listTeamMembers.js +49 -0
  102. package/dist/tools/projects/listTeamMembers.js.map +1 -0
  103. package/dist/tools/projects/listTimeboxes.d.ts +11 -0
  104. package/dist/tools/projects/listTimeboxes.d.ts.map +1 -0
  105. package/dist/tools/projects/listTimeboxes.js +49 -0
  106. package/dist/tools/projects/listTimeboxes.js.map +1 -0
  107. package/dist/tools/tasks/createTask.d.ts +5 -0
  108. package/dist/tools/tasks/createTask.d.ts.map +1 -0
  109. package/dist/tools/tasks/createTask.js +58 -0
  110. package/dist/tools/tasks/createTask.js.map +1 -0
  111. package/dist/tools/tasks/createTaskComment.d.ts +7 -0
  112. package/dist/tools/tasks/createTaskComment.d.ts.map +1 -0
  113. package/dist/tools/tasks/createTaskComment.js +36 -0
  114. package/dist/tools/tasks/createTaskComment.js.map +1 -0
  115. package/dist/tools/tasks/deleteTask.d.ts +10 -0
  116. package/dist/tools/tasks/deleteTask.d.ts.map +1 -0
  117. package/dist/tools/tasks/deleteTask.js +35 -0
  118. package/dist/tools/tasks/deleteTask.js.map +1 -0
  119. package/dist/tools/tasks/index.d.ts +14 -0
  120. package/dist/tools/tasks/index.d.ts.map +1 -1
  121. package/dist/tools/tasks/index.js +29 -1
  122. package/dist/tools/tasks/index.js.map +1 -1
  123. package/dist/tools/tasks/listDeliverables.d.ts +11 -0
  124. package/dist/tools/tasks/listDeliverables.d.ts.map +1 -0
  125. package/dist/tools/tasks/listDeliverables.js +49 -0
  126. package/dist/tools/tasks/listDeliverables.js.map +1 -0
  127. package/dist/tools/tasks/listTaskReferences.d.ts +11 -0
  128. package/dist/tools/tasks/listTaskReferences.d.ts.map +1 -0
  129. package/dist/tools/tasks/listTaskReferences.js +46 -0
  130. package/dist/tools/tasks/listTaskReferences.js.map +1 -0
  131. package/dist/tools/tasks/listWorkstreams.d.ts +11 -0
  132. package/dist/tools/tasks/listWorkstreams.d.ts.map +1 -0
  133. package/dist/tools/tasks/listWorkstreams.js +49 -0
  134. package/dist/tools/tasks/listWorkstreams.js.map +1 -0
  135. package/dist/tools/tasks/updateTask.d.ts +7 -0
  136. package/dist/tools/tasks/updateTask.d.ts.map +1 -0
  137. package/dist/tools/tasks/updateTask.js +44 -0
  138. package/dist/tools/tasks/updateTask.js.map +1 -0
  139. package/dist/tools/testCases/createTestAction.d.ts +5 -0
  140. package/dist/tools/testCases/createTestAction.d.ts.map +1 -0
  141. package/dist/tools/testCases/createTestAction.js +54 -0
  142. package/dist/tools/testCases/createTestAction.js.map +1 -0
  143. package/dist/tools/testCases/createTestActivity.d.ts +5 -0
  144. package/dist/tools/testCases/createTestActivity.d.ts.map +1 -0
  145. package/dist/tools/testCases/createTestActivity.js +46 -0
  146. package/dist/tools/testCases/createTestActivity.js.map +1 -0
  147. package/dist/tools/testCases/createTestCase.d.ts +5 -0
  148. package/dist/tools/testCases/createTestCase.d.ts.map +1 -0
  149. package/dist/tools/testCases/createTestCase.js +42 -0
  150. package/dist/tools/testCases/createTestCase.js.map +1 -0
  151. package/dist/tools/testCases/deleteTestCase.d.ts +10 -0
  152. package/dist/tools/testCases/deleteTestCase.d.ts.map +1 -0
  153. package/dist/tools/testCases/deleteTestCase.js +35 -0
  154. package/dist/tools/testCases/deleteTestCase.js.map +1 -0
  155. package/dist/tools/testCases/index.d.ts +14 -0
  156. package/dist/tools/testCases/index.d.ts.map +1 -1
  157. package/dist/tools/testCases/index.js +29 -1
  158. package/dist/tools/testCases/index.js.map +1 -1
  159. package/dist/tools/testCases/listTestActions.d.ts +11 -0
  160. package/dist/tools/testCases/listTestActions.d.ts.map +1 -0
  161. package/dist/tools/testCases/listTestActions.js +45 -0
  162. package/dist/tools/testCases/listTestActions.js.map +1 -0
  163. package/dist/tools/testCases/listTestActivities.d.ts +11 -0
  164. package/dist/tools/testCases/listTestActivities.d.ts.map +1 -0
  165. package/dist/tools/testCases/listTestActivities.js +45 -0
  166. package/dist/tools/testCases/listTestActivities.js.map +1 -0
  167. package/dist/tools/testCases/listTestCases.d.ts.map +1 -1
  168. package/dist/tools/testCases/listTestCases.js +5 -7
  169. package/dist/tools/testCases/listTestCases.js.map +1 -1
  170. package/dist/tools/testCases/updateTestCase.d.ts +7 -0
  171. package/dist/tools/testCases/updateTestCase.d.ts.map +1 -0
  172. package/dist/tools/testCases/updateTestCase.js +38 -0
  173. package/dist/tools/testCases/updateTestCase.js.map +1 -0
  174. package/package.json +3 -3
@@ -1,16 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DOCUMENTS_GROUP = exports.DOCUMENTS_HANDLERS = exports.listDocumentsTool = exports.getDocumentTool = void 0;
3
+ exports.DOCUMENTS_GROUP = exports.DOCUMENTS_HANDLERS = exports.updateDocumentTool = exports.listDocumentTypesTool = exports.listDocumentsTool = exports.listDocumentStatusesTool = exports.getDocumentTool = exports.deleteDocumentTool = exports.createDocumentTool = void 0;
4
4
  const HandlerGroup_1 = require("../../registry/HandlerGroup");
5
+ const createDocument_1 = require("./createDocument");
6
+ const deleteDocument_1 = require("./deleteDocument");
5
7
  const getDocument_1 = require("./getDocument");
8
+ const listDocumentStatuses_1 = require("./listDocumentStatuses");
6
9
  const listDocuments_1 = require("./listDocuments");
10
+ const listDocumentTypes_1 = require("./listDocumentTypes");
11
+ const updateDocument_1 = require("./updateDocument");
12
+ var createDocument_2 = require("./createDocument");
13
+ Object.defineProperty(exports, "createDocumentTool", { enumerable: true, get: function () { return createDocument_2.createDocumentTool; } });
14
+ var deleteDocument_2 = require("./deleteDocument");
15
+ Object.defineProperty(exports, "deleteDocumentTool", { enumerable: true, get: function () { return deleteDocument_2.deleteDocumentTool; } });
7
16
  var getDocument_2 = require("./getDocument");
8
17
  Object.defineProperty(exports, "getDocumentTool", { enumerable: true, get: function () { return getDocument_2.getDocumentTool; } });
18
+ var listDocumentStatuses_2 = require("./listDocumentStatuses");
19
+ Object.defineProperty(exports, "listDocumentStatusesTool", { enumerable: true, get: function () { return listDocumentStatuses_2.listDocumentStatusesTool; } });
9
20
  var listDocuments_2 = require("./listDocuments");
10
21
  Object.defineProperty(exports, "listDocumentsTool", { enumerable: true, get: function () { return listDocuments_2.listDocumentsTool; } });
22
+ var listDocumentTypes_2 = require("./listDocumentTypes");
23
+ Object.defineProperty(exports, "listDocumentTypesTool", { enumerable: true, get: function () { return listDocumentTypes_2.listDocumentTypesTool; } });
24
+ var updateDocument_2 = require("./updateDocument");
25
+ Object.defineProperty(exports, "updateDocumentTool", { enumerable: true, get: function () { return updateDocument_2.updateDocumentTool; } });
11
26
  exports.DOCUMENTS_HANDLERS = [
12
27
  listDocuments_1.listDocumentsTool,
13
28
  getDocument_1.getDocumentTool,
29
+ createDocument_1.createDocumentTool,
30
+ updateDocument_1.updateDocumentTool,
31
+ deleteDocument_1.deleteDocumentTool,
32
+ listDocumentStatuses_1.listDocumentStatusesTool,
33
+ listDocumentTypes_1.listDocumentTypesTool,
14
34
  ];
15
35
  exports.DOCUMENTS_GROUP = new HandlerGroup_1.HandlerGroup('documents', exports.DOCUMENTS_HANDLERS);
16
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/documents/index.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAE3D,+CAAgD;AAChD,mDAAoD;AAGpD,6CAAgD;AAAvC,8GAAA,eAAe,OAAA;AAExB,iDAAoD;AAA3C,kHAAA,iBAAiB,OAAA;AAEb,QAAA,kBAAkB,GAAiC;IAC9D,iCAAiB;IACjB,6BAAe;CAChB,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,2BAAY,CAC7C,WAAW,EACX,0BAAkB,CACnB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/documents/index.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAE3D,qDAAsD;AACtD,qDAAsD;AACtD,+CAAgD;AAChD,iEAAkE;AAClE,mDAAoD;AACpD,2DAA4D;AAC5D,qDAAsD;AAGtD,mDAAsD;AAA7C,oHAAA,kBAAkB,OAAA;AAK3B,mDAAsD;AAA7C,oHAAA,kBAAkB,OAAA;AAE3B,6CAAgD;AAAvC,8GAAA,eAAe,OAAA;AAExB,+DAAkE;AAAzD,gIAAA,wBAAwB,OAAA;AAEjC,iDAAoD;AAA3C,kHAAA,iBAAiB,OAAA;AAE1B,yDAA4D;AAAnD,0HAAA,qBAAqB,OAAA;AAE9B,mDAAsD;AAA7C,oHAAA,kBAAkB,OAAA;AAEd,QAAA,kBAAkB,GAAiC;IAC9D,iCAAiB;IACjB,6BAAe;IACf,mCAAkB;IAClB,mCAAkB;IAClB,mCAAkB;IAClB,+CAAwB;IACxB,yCAAqB;CACtB,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,2BAAY,CAC7C,WAAW,EACX,0BAAkB,CACnB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IDocumentStatus } from '@mcp-abap-adt/calm-client';
2
+ import type { ICalmHandlerEntry } from '../../registry/types';
3
+ export interface IListDocumentStatusesResult {
4
+ items: IDocumentStatus[];
5
+ }
6
+ export declare const listDocumentStatusesTool: ICalmHandlerEntry<unknown, IListDocumentStatusesResult>;
7
+ //# sourceMappingURL=listDocumentStatuses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listDocumentStatuses.d.ts","sourceRoot":"","sources":["../../../src/tools/documents/listDocumentStatuses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B;AAoBD,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CACtD,OAAO,EACP,2BAA2B,CAI5B,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listDocumentStatusesTool = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const definition = {
6
+ name: 'calm_documents_list_statuses',
7
+ description: 'List the valid status codes for Cloud ALM documents (tenant-wide lookup). Use to discover the vocabulary for the `statusCode` filter / write argument.',
8
+ inputSchema: { type: 'object', properties: {} },
9
+ };
10
+ const handler = async (ctx) => {
11
+ try {
12
+ const collection = await ctx.calm.getDocuments().listStatuses();
13
+ return { items: collection.value ?? [] };
14
+ }
15
+ catch (err) {
16
+ throw (0, utils_1.mapCalmErrorForTool)(err);
17
+ }
18
+ };
19
+ exports.listDocumentStatusesTool = {
20
+ toolDefinition: definition,
21
+ handler,
22
+ };
23
+ //# sourceMappingURL=listDocumentStatuses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listDocumentStatuses.js","sourceRoot":"","sources":["../../../src/tools/documents/listDocumentStatuses.ts"],"names":[],"mappings":";;;AAMA,uCAAkD;AAMlD,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE,8BAA8B;IACpC,WAAW,EACT,wJAAwJ;IAC1J,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;CAChD,CAAC;AAEF,MAAM,OAAO,GAA0D,KAAK,EAC1E,GAAG,EACH,EAAE;IACF,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,YAAY,EAAE,CAAC;QAChE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;IAC3C,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,wBAAwB,GAGjC;IACF,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IDocumentType } from '@mcp-abap-adt/calm-client';
2
+ import type { ICalmHandlerEntry } from '../../registry/types';
3
+ export interface IListDocumentTypesResult {
4
+ items: IDocumentType[];
5
+ }
6
+ export declare const listDocumentTypesTool: ICalmHandlerEntry<unknown, IListDocumentTypesResult>;
7
+ //# sourceMappingURL=listDocumentTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listDocumentTypes.d.ts","sourceRoot":"","sources":["../../../src/tools/documents/listDocumentTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAoBD,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,CACnD,OAAO,EACP,wBAAwB,CAIzB,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listDocumentTypesTool = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const definition = {
6
+ name: 'calm_documents_list_types',
7
+ description: 'List the valid document type codes (tenant-wide lookup). Read-side returns each entry as `documentTypeCode`; on write a document tool takes `typeCode`. Use to discover the vocabulary.',
8
+ inputSchema: { type: 'object', properties: {} },
9
+ };
10
+ const handler = async (ctx) => {
11
+ try {
12
+ const collection = await ctx.calm.getDocuments().listTypes();
13
+ return { items: collection.value ?? [] };
14
+ }
15
+ catch (err) {
16
+ throw (0, utils_1.mapCalmErrorForTool)(err);
17
+ }
18
+ };
19
+ exports.listDocumentTypesTool = {
20
+ toolDefinition: definition,
21
+ handler,
22
+ };
23
+ //# sourceMappingURL=listDocumentTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listDocumentTypes.js","sourceRoot":"","sources":["../../../src/tools/documents/listDocumentTypes.ts"],"names":[],"mappings":";;;AAMA,uCAAkD;AAMlD,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACT,yLAAyL;IAC3L,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;CAChD,CAAC;AAEF,MAAM,OAAO,GAAuD,KAAK,EACvE,GAAG,EACH,EAAE;IACF,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,SAAS,EAAE,CAAC;QAC7D,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;IAC3C,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,qBAAqB,GAG9B;IACF,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { IDocument, IUpdateDocumentParams } from '@mcp-abap-adt/calm-client';
2
+ import type { ICalmHandlerEntry } from '../../registry/types';
3
+ export interface IUpdateDocumentArgs extends IUpdateDocumentParams {
4
+ uuid: string;
5
+ }
6
+ export declare const updateDocumentTool: ICalmHandlerEntry<IUpdateDocumentArgs, IDocument>;
7
+ //# sourceMappingURL=updateDocument.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateDocument.d.ts","sourceRoot":"","sources":["../../../src/tools/documents/updateDocument.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,qBAAqB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB;IAChE,IAAI,EAAE,MAAM,CAAC;CACd;AAyCD,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,CAChD,mBAAmB,EACnB,SAAS,CAIV,CAAC"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateDocumentTool = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const definition = {
6
+ name: 'calm_documents_update',
7
+ description: 'Update fields on an existing Cloud ALM document (PATCH — only fields you pass are modified). Destructive. Identify by `uuid`. Returns the updated document.',
8
+ inputSchema: {
9
+ type: 'object',
10
+ required: ['uuid'],
11
+ properties: {
12
+ uuid: { type: 'string', description: 'Document UUID.' },
13
+ title: { type: 'string', description: 'New title.' },
14
+ content: { type: 'string', description: 'New content.' },
15
+ statusCode: { type: 'string', description: 'New status code.' },
16
+ priorityCode: { type: 'string', description: 'New priority.' },
17
+ typeCode: {
18
+ type: 'string',
19
+ description: 'New document type code (write-side spelling).',
20
+ },
21
+ },
22
+ },
23
+ };
24
+ const handler = async (ctx, args) => {
25
+ if (!args?.uuid) {
26
+ throw new utils_1.CalmToolError({
27
+ code: 'INVALID_ARGUMENT',
28
+ message: 'uuid is required',
29
+ });
30
+ }
31
+ const { uuid, ...patch } = args;
32
+ try {
33
+ return await ctx.calm.getDocuments().update(uuid, patch);
34
+ }
35
+ catch (err) {
36
+ throw (0, utils_1.mapCalmErrorForTool)(err);
37
+ }
38
+ };
39
+ exports.updateDocumentTool = {
40
+ toolDefinition: definition,
41
+ handler,
42
+ };
43
+ //# sourceMappingURL=updateDocument.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateDocument.js","sourceRoot":"","sources":["../../../src/tools/documents/updateDocument.ts"],"names":[],"mappings":";;;AASA,uCAAiE;AAMjE,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,6JAA6J;IAC/J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE;YACvD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE;YACpD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;YACxD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE;YAC/D,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;YAC9D,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;CACF,CAAC;AAEF,MAAM,OAAO,GAAoD,KAAK,EACpE,GAAG,EACH,IAAI,EACJ,EAAE;IACF,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;QAChB,MAAM,IAAI,qBAAa,CAAC;YACtB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;IACL,CAAC;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC;IAChC,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,kBAAkB,GAG3B;IACF,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ICreateExternalReferenceParams, IExternalReference } from '@mcp-abap-adt/calm-client';
2
+ import type { ICalmHandlerEntry } from '../../registry/types';
3
+ export type ICreateExternalReferenceArgs = ICreateExternalReferenceParams;
4
+ export declare const createExternalReferenceTool: ICalmHandlerEntry<ICreateExternalReferenceArgs, IExternalReference>;
5
+ //# sourceMappingURL=createExternalReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createExternalReference.d.ts","sourceRoot":"","sources":["../../../src/tools/features/createExternalReference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,MAAM,4BAA4B,GAAG,8BAA8B,CAAC;AA+C1E,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CACzD,4BAA4B,EAC5B,kBAAkB,CAInB,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createExternalReferenceTool = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const definition = {
6
+ name: 'calm_features_create_external_reference',
7
+ description: 'Attach an external reference (link to a record in another system) to a Cloud ALM feature. Destructive. Requires `id` (caller-supplied external id, e.g. a Jira key), `parentUuid` (the feature UUID), and `name`. Returns the created reference.',
8
+ inputSchema: {
9
+ type: 'object',
10
+ required: ['id', 'parentUuid', 'name'],
11
+ properties: {
12
+ id: {
13
+ type: 'string',
14
+ description: 'External system id (e.g. Jira issue key).',
15
+ },
16
+ parentUuid: {
17
+ type: 'string',
18
+ description: 'UUID of the feature the reference attaches to.',
19
+ },
20
+ name: {
21
+ type: 'string',
22
+ description: 'Human-readable name for the link.',
23
+ },
24
+ url: {
25
+ type: 'string',
26
+ description: 'Optional URL pointing to the external record.',
27
+ },
28
+ },
29
+ },
30
+ };
31
+ const handler = async (ctx, args) => {
32
+ if (!args?.id || !args?.parentUuid || !args?.name) {
33
+ throw new utils_1.CalmToolError({
34
+ code: 'INVALID_ARGUMENT',
35
+ message: 'id, parentUuid and name are required',
36
+ });
37
+ }
38
+ try {
39
+ return await ctx.calm.getFeatures().createExternalReference(args);
40
+ }
41
+ catch (err) {
42
+ throw (0, utils_1.mapCalmErrorForTool)(err);
43
+ }
44
+ };
45
+ exports.createExternalReferenceTool = {
46
+ toolDefinition: definition,
47
+ handler,
48
+ };
49
+ //# sourceMappingURL=createExternalReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createExternalReference.js","sourceRoot":"","sources":["../../../src/tools/features/createExternalReference.ts"],"names":[],"mappings":";;;AASA,uCAAiE;AAIjE,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EACT,kPAAkP;IACpP,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC;QACtC,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gDAAgD;aAC9D;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mCAAmC;aACjD;YACD,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;SACF;KACF;CACF,CAAC;AAEF,MAAM,OAAO,GAGT,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;IACtB,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;QAClD,MAAM,IAAI,qBAAa,CAAC;YACtB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,sCAAsC;SAChD,CAAC,CAAC;IACL,CAAC;IACD,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACpE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,2BAA2B,GAGpC;IACF,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ICalmHandlerEntry } from '../../registry/types';
2
+ export interface IDeleteExternalReferenceArgs {
3
+ id: string;
4
+ parentUuid: string;
5
+ }
6
+ export interface IDeleteExternalReferenceResult {
7
+ deleted: true;
8
+ id: string;
9
+ parentUuid: string;
10
+ }
11
+ export declare const deleteExternalReferenceTool: ICalmHandlerEntry<IDeleteExternalReferenceArgs, IDeleteExternalReferenceResult>;
12
+ //# sourceMappingURL=deleteExternalReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteExternalReference.d.ts","sourceRoot":"","sources":["../../../src/tools/features/deleteExternalReference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,IAAI,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACpB;AA0CD,eAAO,MAAM,2BAA2B,EAAE,iBAAiB,CACzD,4BAA4B,EAC5B,8BAA8B,CAI/B,CAAC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteExternalReferenceTool = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const definition = {
6
+ name: 'calm_features_delete_external_reference',
7
+ description: 'Detach an external reference from a Cloud ALM feature. Destructive. Identify the reference by its `id` and the owning feature `parentUuid`. Raises NOT_FOUND if the reference does not exist.',
8
+ inputSchema: {
9
+ type: 'object',
10
+ required: ['id', 'parentUuid'],
11
+ properties: {
12
+ id: {
13
+ type: 'string',
14
+ description: 'External reference id to detach.',
15
+ },
16
+ parentUuid: {
17
+ type: 'string',
18
+ description: 'UUID of the feature owning the reference.',
19
+ },
20
+ },
21
+ },
22
+ };
23
+ const handler = async (ctx, args) => {
24
+ if (!args?.id || !args?.parentUuid) {
25
+ throw new utils_1.CalmToolError({
26
+ code: 'INVALID_ARGUMENT',
27
+ message: 'id and parentUuid are required',
28
+ });
29
+ }
30
+ try {
31
+ await ctx.calm
32
+ .getFeatures()
33
+ .deleteExternalReference(args.id, args.parentUuid);
34
+ return { deleted: true, id: args.id, parentUuid: args.parentUuid };
35
+ }
36
+ catch (err) {
37
+ throw (0, utils_1.mapCalmErrorForTool)(err);
38
+ }
39
+ };
40
+ exports.deleteExternalReferenceTool = {
41
+ toolDefinition: definition,
42
+ handler,
43
+ };
44
+ //# sourceMappingURL=deleteExternalReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteExternalReference.js","sourceRoot":"","sources":["../../../src/tools/features/deleteExternalReference.ts"],"names":[],"mappings":";;;AAKA,uCAAiE;AAajE,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EACT,+LAA+L;IACjM,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC;QAC9B,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;aAChD;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;SACF;KACF;CACF,CAAC;AAEF,MAAM,OAAO,GAGT,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;IACtB,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC;QACnC,MAAM,IAAI,qBAAa,CAAC;YACtB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,gCAAgC;SAC1C,CAAC,CAAC;IACL,CAAC;IACD,IAAI,CAAC;QACH,MAAM,GAAG,CAAC,IAAI;aACX,WAAW,EAAE;aACb,uBAAuB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACrD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC;IACrE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,2BAA2B,GAGpC;IACF,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
@@ -1,13 +1,19 @@
1
1
  import { HandlerGroup } from '../../registry/HandlerGroup';
2
2
  import type { ICalmHandlerEntry } from '../../registry/types';
3
+ export type { ICreateExternalReferenceArgs } from './createExternalReference';
4
+ export { createExternalReferenceTool } from './createExternalReference';
3
5
  export type { ICreateFeatureArgs } from './createFeature';
4
6
  export { createFeatureTool } from './createFeature';
7
+ export type { IDeleteExternalReferenceArgs, IDeleteExternalReferenceResult, } from './deleteExternalReference';
8
+ export { deleteExternalReferenceTool } from './deleteExternalReference';
5
9
  export type { IDeleteFeatureArgs, IDeleteFeatureResult, } from './deleteFeature';
6
10
  export { deleteFeatureTool } from './deleteFeature';
7
11
  export type { IGetFeatureArgs } from './getFeature';
8
12
  export { getFeatureTool } from './getFeature';
9
13
  export type { IGetFeatureByDisplayIdArgs } from './getFeatureByDisplayId';
10
14
  export { getFeatureByDisplayIdTool } from './getFeatureByDisplayId';
15
+ export type { IListExternalReferencesArgs } from './listExternalReferences';
16
+ export { listExternalReferencesTool } from './listExternalReferences';
11
17
  export type { IListFeaturePrioritiesResult } from './listFeaturePriorities';
12
18
  export { listFeaturePrioritiesTool } from './listFeaturePriorities';
13
19
  export type { IListFeatureStatusesResult } from './listFeatureStatuses';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/features/index.ts"],"names":[],"mappings":"AAAA,O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B,EAAE,SAAS,iBAAiB,EAYzD,CAAC;AAEF,eAAO,MAAM,cAAc,cAAkD,CAAC"}
@@ -1,23 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FEATURES_GROUP = exports.FEATURES_HANDLERS = exports.updateFeatureTool = exports.listFeaturesTool = exports.listFeatureStatusesTool = exports.listFeaturePrioritiesTool = exports.getFeatureByDisplayIdTool = exports.getFeatureTool = exports.deleteFeatureTool = exports.createFeatureTool = void 0;
3
+ exports.FEATURES_GROUP = exports.FEATURES_HANDLERS = exports.updateFeatureTool = exports.listFeaturesTool = exports.listFeatureStatusesTool = exports.listFeaturePrioritiesTool = exports.listExternalReferencesTool = exports.getFeatureByDisplayIdTool = exports.getFeatureTool = exports.deleteFeatureTool = exports.deleteExternalReferenceTool = exports.createFeatureTool = exports.createExternalReferenceTool = void 0;
4
4
  const HandlerGroup_1 = require("../../registry/HandlerGroup");
5
+ const createExternalReference_1 = require("./createExternalReference");
5
6
  const createFeature_1 = require("./createFeature");
7
+ const deleteExternalReference_1 = require("./deleteExternalReference");
6
8
  const deleteFeature_1 = require("./deleteFeature");
7
9
  const getFeature_1 = require("./getFeature");
8
10
  const getFeatureByDisplayId_1 = require("./getFeatureByDisplayId");
11
+ const listExternalReferences_1 = require("./listExternalReferences");
9
12
  const listFeaturePriorities_1 = require("./listFeaturePriorities");
10
13
  const listFeatureStatuses_1 = require("./listFeatureStatuses");
11
14
  const listFeatures_1 = require("./listFeatures");
12
15
  const updateFeature_1 = require("./updateFeature");
16
+ var createExternalReference_2 = require("./createExternalReference");
17
+ Object.defineProperty(exports, "createExternalReferenceTool", { enumerable: true, get: function () { return createExternalReference_2.createExternalReferenceTool; } });
13
18
  var createFeature_2 = require("./createFeature");
14
19
  Object.defineProperty(exports, "createFeatureTool", { enumerable: true, get: function () { return createFeature_2.createFeatureTool; } });
20
+ var deleteExternalReference_2 = require("./deleteExternalReference");
21
+ Object.defineProperty(exports, "deleteExternalReferenceTool", { enumerable: true, get: function () { return deleteExternalReference_2.deleteExternalReferenceTool; } });
15
22
  var deleteFeature_2 = require("./deleteFeature");
16
23
  Object.defineProperty(exports, "deleteFeatureTool", { enumerable: true, get: function () { return deleteFeature_2.deleteFeatureTool; } });
17
24
  var getFeature_2 = require("./getFeature");
18
25
  Object.defineProperty(exports, "getFeatureTool", { enumerable: true, get: function () { return getFeature_2.getFeatureTool; } });
19
26
  var getFeatureByDisplayId_2 = require("./getFeatureByDisplayId");
20
27
  Object.defineProperty(exports, "getFeatureByDisplayIdTool", { enumerable: true, get: function () { return getFeatureByDisplayId_2.getFeatureByDisplayIdTool; } });
28
+ var listExternalReferences_2 = require("./listExternalReferences");
29
+ Object.defineProperty(exports, "listExternalReferencesTool", { enumerable: true, get: function () { return listExternalReferences_2.listExternalReferencesTool; } });
21
30
  var listFeaturePriorities_2 = require("./listFeaturePriorities");
22
31
  Object.defineProperty(exports, "listFeaturePrioritiesTool", { enumerable: true, get: function () { return listFeaturePriorities_2.listFeaturePrioritiesTool; } });
23
32
  var listFeatureStatuses_2 = require("./listFeatureStatuses");
@@ -33,6 +42,9 @@ exports.FEATURES_HANDLERS = [
33
42
  createFeature_1.createFeatureTool,
34
43
  updateFeature_1.updateFeatureTool,
35
44
  deleteFeature_1.deleteFeatureTool,
45
+ createExternalReference_1.createExternalReferenceTool,
46
+ deleteExternalReference_1.deleteExternalReferenceTool,
47
+ listExternalReferences_1.listExternalReferencesTool,
36
48
  listFeatureStatuses_1.listFeatureStatusesTool,
37
49
  listFeaturePriorities_1.listFeaturePrioritiesTool,
38
50
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/features/index.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAE3D,mDAAoD;AACpD,mDAAoD;AACpD,6CAA8C;AAC9C,mEAAoE;AACpE,mEAAoE;AACpE,+DAAgE;AAChE,iDAAkD;AAClD,mDAAoD;AAGpD,iDAAoD;AAA3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AA,gBAAgB,OAAA;AAEzB,iDAAoD;AAA3C,kHAAA,iBAAiB,OAAA;AAEb,QAAA,iBAAiB,GAAiC;IAC7D,+BAAgB;IAChB,2BAAc;IACd,iDAAyB;IACzB,iCAAiB;IACjB,iCAAiB;IACjB,iCAAiB;IACjB,qDAA2B;IAC3B,qDAA2B;IAC3B,mDAA0B;IAC1B,6CAAuB;IACvB,iDAAyB;CAC1B,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,2BAAY,CAAC,UAAU,EAAE,yBAAiB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type IExternalReference } from '@mcp-abap-adt/calm-client';
2
+ import type { ICalmHandlerEntry } from '../../registry/types';
3
+ import { type IListResponse } from '../../utils';
4
+ export interface IListExternalReferencesArgs {
5
+ parentUuid?: string;
6
+ limit?: number;
7
+ offset?: number;
8
+ withCount?: boolean;
9
+ }
10
+ export declare const listExternalReferencesTool: ICalmHandlerEntry<IListExternalReferencesArgs, IListResponse<IExternalReference>>;
11
+ //# sourceMappingURL=listExternalReferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listExternalReferences.d.ts","sourceRoot":"","sources":["../../../src/tools/features/listExternalReferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAc,MAAM,2BAA2B,CAAC;AAChF,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,KAAK,aAAa,EAKnB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AA4CD,eAAO,MAAM,0BAA0B,EAAE,iBAAiB,CACxD,2BAA2B,EAC3B,aAAa,CAAC,kBAAkB,CAAC,CAIlC,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listExternalReferencesTool = void 0;
4
+ const calm_client_1 = require("@mcp-abap-adt/calm-client");
5
+ const utils_1 = require("../../utils");
6
+ const definition = {
7
+ name: 'calm_features_list_external_references',
8
+ description: 'List external references attached to features (links to other systems like Jira). Optionally filter by `parentUuid` to scope to a single feature.',
9
+ inputSchema: {
10
+ type: 'object',
11
+ properties: {
12
+ parentUuid: {
13
+ type: 'string',
14
+ description: 'Optional feature UUID — scope to that feature only.',
15
+ },
16
+ limit: { type: 'integer', minimum: 1, maximum: utils_1.MAX_LIST_LIMIT },
17
+ offset: { type: 'integer', minimum: 0 },
18
+ withCount: { type: 'boolean' },
19
+ },
20
+ },
21
+ };
22
+ const handler = async (ctx, args) => {
23
+ const limit = (0, utils_1.clampListLimit)(args?.limit);
24
+ const offset = args?.offset && args.offset > 0 ? Math.floor(args.offset) : 0;
25
+ const filter = (0, utils_1.joinAndFilters)(args?.parentUuid
26
+ ? `parentUuid eq '${(0, utils_1.escapeODataString)(args.parentUuid)}'`
27
+ : undefined);
28
+ let query = calm_client_1.ODataQuery.new().top(limit).skip(offset);
29
+ if (filter)
30
+ query = query.filter(filter);
31
+ if (args?.withCount)
32
+ query = query.count();
33
+ try {
34
+ const collection = await ctx.calm
35
+ .getFeatures()
36
+ .listExternalReferences(query);
37
+ return (0, utils_1.toListResponse)(collection, { limit, offset });
38
+ }
39
+ catch (err) {
40
+ throw (0, utils_1.mapCalmErrorForTool)(err);
41
+ }
42
+ };
43
+ exports.listExternalReferencesTool = {
44
+ toolDefinition: definition,
45
+ handler,
46
+ };
47
+ //# sourceMappingURL=listExternalReferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listExternalReferences.js","sourceRoot":"","sources":["../../../src/tools/features/listExternalReferences.ts"],"names":[],"mappings":";;;AAAA,2DAAgF;AAMhF,uCAQqB;AASrB,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE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,IAAI;aAC9B,WAAW,EAAE;aACb,sBAAsB,CAAC,KAAK,CAAC,CAAC;QACjC,OAAO,IAAA,sBAAc,EAAC,UAAU,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,0BAA0B,GAGnC;IACF,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ICreateHierarchyNodeParams, IHierarchyNode } from '@mcp-abap-adt/calm-client';
2
+ import type { ICalmHandlerEntry } from '../../registry/types';
3
+ export type ICreateHierarchyNodeArgs = ICreateHierarchyNodeParams;
4
+ export declare const createHierarchyNodeTool: ICalmHandlerEntry<ICreateHierarchyNodeArgs, IHierarchyNode>;
5
+ //# sourceMappingURL=createHierarchyNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createHierarchyNode.d.ts","sourceRoot":"","sources":["../../../src/tools/hierarchy/createHierarchyNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,cAAc,EACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AA4ClE,eAAO,MAAM,uBAAuB,EAAE,iBAAiB,CACrD,wBAAwB,EACxB,cAAc,CAIf,CAAC"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createHierarchyNodeTool = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const definition = {
6
+ name: 'calm_hierarchy_create_node',
7
+ description: 'Create a new process hierarchy node. Destructive. Requires `title`; pass `parentNodeUuid` to nest under an existing node (omit to create a root). Returns the newly created node.',
8
+ inputSchema: {
9
+ type: 'object',
10
+ required: ['title'],
11
+ properties: {
12
+ title: { type: 'string', description: 'Node title.' },
13
+ description: {
14
+ type: 'string',
15
+ description: 'Optional long-form description.',
16
+ },
17
+ parentNodeUuid: {
18
+ type: 'string',
19
+ description: 'Optional parent node UUID (omit for a root node).',
20
+ },
21
+ sequence: {
22
+ type: 'integer',
23
+ description: 'Optional ordering integer among siblings.',
24
+ },
25
+ },
26
+ },
27
+ };
28
+ const handler = async (ctx, args) => {
29
+ if (!args?.title) {
30
+ throw new utils_1.CalmToolError({
31
+ code: 'INVALID_ARGUMENT',
32
+ message: 'title is required',
33
+ });
34
+ }
35
+ try {
36
+ return await ctx.calm.getHierarchy().create(args);
37
+ }
38
+ catch (err) {
39
+ throw (0, utils_1.mapCalmErrorForTool)(err);
40
+ }
41
+ };
42
+ exports.createHierarchyNodeTool = {
43
+ toolDefinition: definition,
44
+ handler,
45
+ };
46
+ //# sourceMappingURL=createHierarchyNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createHierarchyNode.js","sourceRoot":"","sources":["../../../src/tools/hierarchy/createHierarchyNode.ts"],"names":[],"mappings":";;;AASA,uCAAiE;AAIjE,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE,4BAA4B;IAClC,WAAW,EACT,mLAAmL;IACrL,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE;YACrD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mDAAmD;aACjE;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,2CAA2C;aACzD;SACF;KACF;CACF,CAAC;AAEF,MAAM,OAAO,GAGT,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;IACtB,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QACjB,MAAM,IAAI,qBAAa,CAAC;YACtB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,mBAAmB;SAC7B,CAAC,CAAC;IACL,CAAC;IACD,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,uBAAuB,GAGhC;IACF,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ICalmHandlerEntry } from '../../registry/types';
2
+ export interface IDeleteHierarchyNodeArgs {
3
+ uuid: string;
4
+ }
5
+ export interface IDeleteHierarchyNodeResult {
6
+ deleted: true;
7
+ uuid: string;
8
+ }
9
+ export declare const deleteHierarchyNodeTool: ICalmHandlerEntry<IDeleteHierarchyNodeArgs, IDeleteHierarchyNodeResult>;
10
+ //# sourceMappingURL=deleteHierarchyNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteHierarchyNode.d.ts","sourceRoot":"","sources":["../../../src/tools/hierarchy/deleteHierarchyNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAiCD,eAAO,MAAM,uBAAuB,EAAE,iBAAiB,CACrD,wBAAwB,EACxB,0BAA0B,CAI3B,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteHierarchyNodeTool = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const definition = {
6
+ name: 'calm_hierarchy_delete_node',
7
+ description: 'Delete a hierarchy node by UUID. Destructive. Does not cascade to children — clean those up explicitly first. Raises NOT_FOUND if the node does not exist.',
8
+ inputSchema: {
9
+ type: 'object',
10
+ required: ['uuid'],
11
+ properties: {
12
+ uuid: { type: 'string', description: 'Hierarchy node UUID to delete.' },
13
+ },
14
+ },
15
+ };
16
+ const handler = async (ctx, args) => {
17
+ if (!args?.uuid) {
18
+ throw new utils_1.CalmToolError({
19
+ code: 'INVALID_ARGUMENT',
20
+ message: 'uuid is required',
21
+ });
22
+ }
23
+ try {
24
+ await ctx.calm.getHierarchy().delete(args.uuid);
25
+ return { deleted: true, uuid: args.uuid };
26
+ }
27
+ catch (err) {
28
+ throw (0, utils_1.mapCalmErrorForTool)(err);
29
+ }
30
+ };
31
+ exports.deleteHierarchyNodeTool = {
32
+ toolDefinition: definition,
33
+ handler,
34
+ };
35
+ //# sourceMappingURL=deleteHierarchyNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteHierarchyNode.js","sourceRoot":"","sources":["../../../src/tools/hierarchy/deleteHierarchyNode.ts"],"names":[],"mappings":";;;AAKA,uCAAiE;AAWjE,MAAM,UAAU,GAAwB;IACtC,IAAI,EAAE,4BAA4B;IAClC,WAAW,EACT,4JAA4J;IAC9J,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gCAAgC,EAAE;SACxE;KACF;CACF,CAAC;AAEF,MAAM,OAAO,GAGT,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;IACtB,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;QAChB,MAAM,IAAI,qBAAa,CAAC;YACtB,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;IACL,CAAC;IACD,IAAI,CAAC;QACH,MAAM,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5C,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAA,2BAAmB,EAAC,GAAG,CAAC,CAAC;IACjC,CAAC;AACH,CAAC,CAAC;AAEW,QAAA,uBAAuB,GAGhC;IACF,cAAc,EAAE,UAAU;IAC1B,OAAO;CACR,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { HandlerGroup } from '../../registry/HandlerGroup';
2
2
  import type { ICalmHandlerEntry } from '../../registry/types';
3
+ export type { ICreateHierarchyNodeArgs } from './createHierarchyNode';
4
+ export { createHierarchyNodeTool } from './createHierarchyNode';
5
+ export type { IDeleteHierarchyNodeArgs, IDeleteHierarchyNodeResult, } from './deleteHierarchyNode';
6
+ export { deleteHierarchyNodeTool } from './deleteHierarchyNode';
3
7
  export type { IGetHierarchyWithChildrenArgs, IGetHierarchyWithChildrenResult, } from './getHierarchyWithChildren';
4
8
  export { getHierarchyWithChildrenTool } from './getHierarchyWithChildren';
5
9
  export type { IListHierarchyArgs } from './listHierarchy';
6
10
  export { listHierarchyTool } from './listHierarchy';
11
+ export type { IUpdateHierarchyNodeArgs } from './updateHierarchyNode';
12
+ export { updateHierarchyNodeTool } from './updateHierarchyNode';
7
13
  export declare const HIERARCHY_HANDLERS: readonly ICalmHandlerEntry[];
8
14
  export declare const HIERARCHY_GROUP: HandlerGroup;
9
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/hierarchy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9D,YAAY,EACV,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,kBAAkB,EAAE,SAAS,iBAAiB,EAG1D,CAAC;AAEF,eAAO,MAAM,eAAe,cAG3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/hierarchy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAO9D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EACV,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,YAAY,EACV,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAE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