@cplace/mcp-server 1.9.0 → 1.10.5

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 (235) hide show
  1. package/README.md +12 -13
  2. package/dist/index.js +4 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/plugins/app-catalog.js +1 -1
  5. package/dist/plugins/app-catalog.js.map +1 -1
  6. package/dist/plugins/application-settings.d.ts.map +1 -1
  7. package/dist/plugins/application-settings.js +6 -3
  8. package/dist/plugins/application-settings.js.map +1 -1
  9. package/dist/plugins/core/widget-specifications/cf.cplace.platform.tableWidget/columns.md +6 -0
  10. package/dist/plugins/core.d.ts.map +1 -1
  11. package/dist/plugins/core.js +25 -13
  12. package/dist/plugins/core.js.map +1 -1
  13. package/dist/plugins/forms-wizard.js +2 -2
  14. package/dist/plugins/forms-wizard.js.map +1 -1
  15. package/dist/plugins/history.d.ts.map +1 -1
  16. package/dist/plugins/history.js +6 -3
  17. package/dist/plugins/history.js.map +1 -1
  18. package/dist/plugins/jobs.js +2 -2
  19. package/dist/plugins/jobs.js.map +1 -1
  20. package/dist/plugins/layouts.d.ts.map +1 -1
  21. package/dist/plugins/layouts.js +17 -8
  22. package/dist/plugins/layouts.js.map +1 -1
  23. package/dist/plugins/low-code.d.ts.map +1 -1
  24. package/dist/plugins/low-code.js +48 -15
  25. package/dist/plugins/low-code.js.map +1 -1
  26. package/dist/plugins/project-planning.d.ts.map +1 -1
  27. package/dist/plugins/project-planning.js +6 -3
  28. package/dist/plugins/project-planning.js.map +1 -1
  29. package/dist/plugins/resource-management.d.ts.map +1 -1
  30. package/dist/plugins/resource-management.js +6 -3
  31. package/dist/plugins/resource-management.js.map +1 -1
  32. package/dist/plugins/solution-management.d.ts.map +1 -1
  33. package/dist/plugins/solution-management.js +6 -3
  34. package/dist/plugins/solution-management.js.map +1 -1
  35. package/dist/plugins/types-write.d.ts.map +1 -1
  36. package/dist/plugins/types-write.js +6 -3
  37. package/dist/plugins/types-write.js.map +1 -1
  38. package/dist/plugins/widget-specifications.d.ts.map +1 -1
  39. package/dist/plugins/widget-specifications.js +2 -2
  40. package/dist/plugins/widget-specifications.js.map +1 -1
  41. package/dist/plugins/workspace-admin.d.ts.map +1 -1
  42. package/dist/plugins/workspace-admin.js +6 -3
  43. package/dist/plugins/workspace-admin.js.map +1 -1
  44. package/dist/str-replace-utils.js +1 -1
  45. package/dist/str-replace-utils.js.map +1 -1
  46. package/dist/tools/apps-catalog.d.ts +1 -1
  47. package/dist/tools/apps-catalog.d.ts.map +1 -1
  48. package/dist/tools/apps-catalog.js +16 -12
  49. package/dist/tools/apps-catalog.js.map +1 -1
  50. package/dist/tools/board-widget.d.ts +2 -2
  51. package/dist/tools/board-widget.d.ts.map +1 -1
  52. package/dist/tools/board-widget.js +354 -201
  53. package/dist/tools/board-widget.js.map +1 -1
  54. package/dist/tools/change-listeners.d.ts +2 -2
  55. package/dist/tools/change-listeners.d.ts.map +1 -1
  56. package/dist/tools/change-listeners.js +125 -57
  57. package/dist/tools/change-listeners.js.map +1 -1
  58. package/dist/tools/common-schemas.d.ts +1 -1
  59. package/dist/tools/common-schemas.d.ts.map +1 -1
  60. package/dist/tools/common-schemas.js +5 -3
  61. package/dist/tools/common-schemas.js.map +1 -1
  62. package/dist/tools/csv-export.d.ts +2 -2
  63. package/dist/tools/csv-export.d.ts.map +1 -1
  64. package/dist/tools/csv-export.js +29 -24
  65. package/dist/tools/csv-export.js.map +1 -1
  66. package/dist/tools/documents.d.ts +2 -2
  67. package/dist/tools/documents.d.ts.map +1 -1
  68. package/dist/tools/documents.js +34 -14
  69. package/dist/tools/documents.js.map +1 -1
  70. package/dist/tools/expert-settings.d.ts +3 -3
  71. package/dist/tools/expert-settings.d.ts.map +1 -1
  72. package/dist/tools/expert-settings.js +97 -38
  73. package/dist/tools/expert-settings.js.map +1 -1
  74. package/dist/tools/get-operations.d.ts +2 -2
  75. package/dist/tools/get-operations.d.ts.map +1 -1
  76. package/dist/tools/get-operations.js +29 -21
  77. package/dist/tools/get-operations.js.map +1 -1
  78. package/dist/tools/job-schedule-trigger.d.ts +2 -2
  79. package/dist/tools/job-schedule-trigger.d.ts.map +1 -1
  80. package/dist/tools/job-schedule-trigger.js +19 -10
  81. package/dist/tools/job-schedule-trigger.js.map +1 -1
  82. package/dist/tools/job-scripts.d.ts +2 -2
  83. package/dist/tools/job-scripts.d.ts.map +1 -1
  84. package/dist/tools/job-scripts.js +119 -55
  85. package/dist/tools/job-scripts.js.map +1 -1
  86. package/dist/tools/jobs.d.ts +2 -2
  87. package/dist/tools/jobs.d.ts.map +1 -1
  88. package/dist/tools/jobs.js +68 -38
  89. package/dist/tools/jobs.js.map +1 -1
  90. package/dist/tools/layout-richstring-shared.d.ts +24 -1
  91. package/dist/tools/layout-richstring-shared.d.ts.map +1 -1
  92. package/dist/tools/layout-richstring-shared.js +99 -1
  93. package/dist/tools/layout-richstring-shared.js.map +1 -1
  94. package/dist/tools/layout-richstring-widgets.d.ts +94 -2
  95. package/dist/tools/layout-richstring-widgets.d.ts.map +1 -1
  96. package/dist/tools/layout-richstring-widgets.js +247 -25
  97. package/dist/tools/layout-richstring-widgets.js.map +1 -1
  98. package/dist/tools/layout.d.ts +5 -4
  99. package/dist/tools/layout.d.ts.map +1 -1
  100. package/dist/tools/layout.js +235 -124
  101. package/dist/tools/layout.js.map +1 -1
  102. package/dist/tools/linting.d.ts +2 -2
  103. package/dist/tools/linting.d.ts.map +1 -1
  104. package/dist/tools/linting.js +5 -5
  105. package/dist/tools/linting.js.map +1 -1
  106. package/dist/tools/page-action-simulation.d.ts +18 -0
  107. package/dist/tools/page-action-simulation.d.ts.map +1 -0
  108. package/dist/tools/page-action-simulation.js +88 -0
  109. package/dist/tools/page-action-simulation.js.map +1 -0
  110. package/dist/tools/page-actions.d.ts +60 -0
  111. package/dist/tools/page-actions.d.ts.map +1 -0
  112. package/dist/tools/page-actions.js +284 -0
  113. package/dist/tools/page-actions.js.map +1 -0
  114. package/dist/tools/pages.d.ts +3 -3
  115. package/dist/tools/pages.d.ts.map +1 -1
  116. package/dist/tools/pages.js +237 -112
  117. package/dist/tools/pages.js.map +1 -1
  118. package/dist/tools/ppt-export-schemas.d.ts +1 -1
  119. package/dist/tools/ppt-export-schemas.d.ts.map +1 -1
  120. package/dist/tools/ppt-export-schemas.js +269 -122
  121. package/dist/tools/ppt-export-schemas.js.map +1 -1
  122. package/dist/tools/ppt-export.d.ts +2 -2
  123. package/dist/tools/ppt-export.d.ts.map +1 -1
  124. package/dist/tools/ppt-export.js +82 -43
  125. package/dist/tools/ppt-export.js.map +1 -1
  126. package/dist/tools/profile-management.d.ts +2 -2
  127. package/dist/tools/profile-management.d.ts.map +1 -1
  128. package/dist/tools/profile-management.js +109 -82
  129. package/dist/tools/profile-management.js.map +1 -1
  130. package/dist/tools/references.d.ts +2 -2
  131. package/dist/tools/references.d.ts.map +1 -1
  132. package/dist/tools/references.js +36 -24
  133. package/dist/tools/references.js.map +1 -1
  134. package/dist/tools/resource-planner-widget.d.ts +2 -2
  135. package/dist/tools/resource-planner-widget.d.ts.map +1 -1
  136. package/dist/tools/resource-planner-widget.js +334 -138
  137. package/dist/tools/resource-planner-widget.js.map +1 -1
  138. package/dist/tools/richstring-marker-resolver.d.ts +16 -0
  139. package/dist/tools/richstring-marker-resolver.d.ts.map +1 -0
  140. package/dist/tools/richstring-marker-resolver.js +47 -0
  141. package/dist/tools/richstring-marker-resolver.js.map +1 -0
  142. package/dist/tools/richstring-widgets.d.ts +6 -16
  143. package/dist/tools/richstring-widgets.d.ts.map +1 -1
  144. package/dist/tools/richstring-widgets.js +184 -129
  145. package/dist/tools/richstring-widgets.js.map +1 -1
  146. package/dist/tools/schedule.d.ts +2 -2
  147. package/dist/tools/schedule.d.ts.map +1 -1
  148. package/dist/tools/schedule.js +23 -14
  149. package/dist/tools/schedule.js.map +1 -1
  150. package/dist/tools/script-logs.d.ts +2 -2
  151. package/dist/tools/script-logs.d.ts.map +1 -1
  152. package/dist/tools/script-logs.js +71 -32
  153. package/dist/tools/script-logs.js.map +1 -1
  154. package/dist/tools/script.d.ts +2 -2
  155. package/dist/tools/script.d.ts.map +1 -1
  156. package/dist/tools/script.js +44 -26
  157. package/dist/tools/script.js.map +1 -1
  158. package/dist/tools/search.d.ts +2 -2
  159. package/dist/tools/search.d.ts.map +1 -1
  160. package/dist/tools/search.js +139 -102
  161. package/dist/tools/search.js.map +1 -1
  162. package/dist/tools/solution-packages.d.ts +2 -2
  163. package/dist/tools/solution-packages.d.ts.map +1 -1
  164. package/dist/tools/solution-packages.js +149 -61
  165. package/dist/tools/solution-packages.js.map +1 -1
  166. package/dist/tools/system.d.ts +2 -2
  167. package/dist/tools/system.d.ts.map +1 -1
  168. package/dist/tools/system.js +43 -21
  169. package/dist/tools/system.js.map +1 -1
  170. package/dist/tools/type-layouts.d.ts +2 -2
  171. package/dist/tools/type-layouts.d.ts.map +1 -1
  172. package/dist/tools/type-layouts.js +67 -31
  173. package/dist/tools/type-layouts.js.map +1 -1
  174. package/dist/tools/type-management.d.ts +86 -70
  175. package/dist/tools/type-management.d.ts.map +1 -1
  176. package/dist/tools/type-management.js +410 -138
  177. package/dist/tools/type-management.js.map +1 -1
  178. package/dist/tools/url-resolution.d.ts +2 -2
  179. package/dist/tools/url-resolution.d.ts.map +1 -1
  180. package/dist/tools/url-resolution.js +16 -12
  181. package/dist/tools/url-resolution.js.map +1 -1
  182. package/dist/tools/users.d.ts +2 -2
  183. package/dist/tools/users.d.ts.map +1 -1
  184. package/dist/tools/users.js +24 -14
  185. package/dist/tools/users.js.map +1 -1
  186. package/dist/tools/validators.d.ts +2 -2
  187. package/dist/tools/validators.d.ts.map +1 -1
  188. package/dist/tools/validators.js +68 -35
  189. package/dist/tools/validators.js.map +1 -1
  190. package/dist/tools/version-check.d.ts +2 -2
  191. package/dist/tools/version-check.d.ts.map +1 -1
  192. package/dist/tools/version-check.js +36 -30
  193. package/dist/tools/version-check.js.map +1 -1
  194. package/dist/tools/version-history.d.ts +2 -2
  195. package/dist/tools/version-history.d.ts.map +1 -1
  196. package/dist/tools/version-history.js +72 -41
  197. package/dist/tools/version-history.js.map +1 -1
  198. package/dist/tools/widget-simulation.d.ts +18 -0
  199. package/dist/tools/widget-simulation.d.ts.map +1 -0
  200. package/dist/tools/widget-simulation.js +94 -0
  201. package/dist/tools/widget-simulation.js.map +1 -0
  202. package/dist/tools/widget-tool-helpers.d.ts +17 -1
  203. package/dist/tools/widget-tool-helpers.d.ts.map +1 -1
  204. package/dist/tools/widget-tool-helpers.js +41 -6
  205. package/dist/tools/widget-tool-helpers.js.map +1 -1
  206. package/dist/tools/widgets.d.ts +2 -2
  207. package/dist/tools/widgets.d.ts.map +1 -1
  208. package/dist/tools/widgets.js +62 -43
  209. package/dist/tools/widgets.js.map +1 -1
  210. package/dist/tools/wizards.d.ts +2 -2
  211. package/dist/tools/wizards.d.ts.map +1 -1
  212. package/dist/tools/wizards.js +378 -182
  213. package/dist/tools/wizards.js.map +1 -1
  214. package/dist/tools/workflow-execution.d.ts +2 -2
  215. package/dist/tools/workflow-execution.d.ts.map +1 -1
  216. package/dist/tools/workflow-execution.js +27 -19
  217. package/dist/tools/workflow-execution.js.map +1 -1
  218. package/dist/tools/workflow-scripts.d.ts +2 -2
  219. package/dist/tools/workflow-scripts.d.ts.map +1 -1
  220. package/dist/tools/workflow-scripts.js +168 -81
  221. package/dist/tools/workflow-scripts.js.map +1 -1
  222. package/dist/tools/workflow.d.ts +2 -2
  223. package/dist/tools/workflow.d.ts.map +1 -1
  224. package/dist/tools/workflow.js +185 -74
  225. package/dist/tools/workflow.js.map +1 -1
  226. package/dist/tools/workspace-admin.d.ts +2 -2
  227. package/dist/tools/workspace-admin.d.ts.map +1 -1
  228. package/dist/tools/workspace-admin.js +82 -40
  229. package/dist/tools/workspace-admin.js.map +1 -1
  230. package/dist/tools/workspace-core.d.ts +2 -2
  231. package/dist/tools/workspace-core.d.ts.map +1 -1
  232. package/dist/tools/workspace-core.js +93 -53
  233. package/dist/tools/workspace-core.js.map +1 -1
  234. package/dist/utils/dateValidation.js.map +1 -1
  235. package/package.json +9 -4
@@ -1,53 +1,79 @@
1
- import { z } from "zod";
2
- import { debugLogWithTag } from "../logger.js";
1
+ import { z } from 'zod';
2
+ import { debugLogWithTag } from '../logger.js';
3
3
  const TOOL_LIST_TYPE_ALTERNATIVE_LAYOUTS = 'cplace_list_type_alternative_layouts';
4
4
  const TOOL_CREATE_TYPE_ALTERNATIVE_LAYOUT = 'cplace_create_type_alternative_layout';
5
5
  const TOOL_DELETE_TYPE_ALTERNATIVE_LAYOUT = 'cplace_delete_type_alternative_layout';
6
6
  export const TYPE_LAYOUT_TOOL_DEFINITIONS = {
7
7
  [TOOL_LIST_TYPE_ALTERNATIVE_LAYOUTS]: {
8
- description: "Retrieves a comprehensive list of all available layouts for a specific type definition, including the default layout and all alternative layouts, along with usage statistics.",
8
+ description: 'Retrieves a comprehensive list of all available layouts for a specific type definition, including the default layout and all alternative layouts, along with usage statistics.',
9
9
  inputSchema: {
10
- workspaceId: z.string().describe("The ID of the workspace containing the type definition"),
11
- typeInternalName: z.string().describe("The internal name of the type definition")
10
+ workspaceId: z.string().describe('The ID of the workspace containing the type definition'),
11
+ typeInternalName: z.string().describe('The internal name of the type definition'),
12
12
  },
13
- annotations: { title: "List Type Alternative Layouts" }
13
+ annotations: { title: 'List Type Alternative Layouts' },
14
14
  },
15
15
  [TOOL_CREATE_TYPE_ALTERNATIVE_LAYOUT]: {
16
- description: "Creates a new alternative layout for a specific type definition. Alternative layouts allow types to support different presentation modes or views while maintaining the same underlying data structure. Each alternative layout has its own internal name, localized display names, and optional icon.",
16
+ description: 'Creates a new alternative layout for a specific type definition. Alternative layouts allow types to support different presentation modes or views while maintaining the same underlying data structure. Each alternative layout has its own internal name, localized display names, and optional icon.',
17
17
  inputSchema: {
18
- workspaceId: z.string().describe("Required: ID of the workspace containing the type (e.g., 'workspace/abc123')"),
19
- typeInternalName: z.string().describe("Required: Internal name of the type definition (e.g., 'cf.project.Task')"),
20
- layoutInternalName: z.string().describe("Required: Unique internal name for the new layout (e.g., 'compactView')"),
21
- localizedNames: z.record(z.string()).optional().describe("Optional: Map of language codes to localized display names (e.g., {\"en\": \"Compact View\", \"de\": \"Kompakte Ansicht\"})"),
22
- iconName: z.string().optional().describe("Optional: Font Awesome icon name for the layout (e.g., 'fa-compress')")
18
+ workspaceId: z
19
+ .string()
20
+ .describe("Required: ID of the workspace containing the type (e.g., 'workspace/abc123')"),
21
+ typeInternalName: z
22
+ .string()
23
+ .describe("Required: Internal name of the type definition (e.g., 'cf.project.Task')"),
24
+ layoutInternalName: z
25
+ .string()
26
+ .describe("Required: Unique internal name for the new layout (e.g., 'compactView')"),
27
+ localizedNames: z
28
+ .record(z.string())
29
+ .optional()
30
+ .describe('Optional: Map of language codes to localized display names (e.g., {"en": "Compact View", "de": "Kompakte Ansicht"})'),
31
+ iconName: z
32
+ .string()
33
+ .optional()
34
+ .describe("Optional: Font Awesome icon name for the layout (e.g., 'fa-compress')"),
23
35
  },
24
- annotations: { title: "Create Type Alternative Layout" }
36
+ annotations: { title: 'Create Type Alternative Layout' },
25
37
  },
26
38
  [TOOL_DELETE_TYPE_ALTERNATIVE_LAYOUT]: {
27
- description: "Delete an alternative layout from a type definition. Pages currently using this layout will fall back to the default layout.",
39
+ description: 'Delete an alternative layout from a type definition. Pages currently using this layout will fall back to the default layout.',
28
40
  inputSchema: {
29
- workspaceId: z.string().describe("ID of the workspace containing the type (e.g., 'workspace/abc123')"),
30
- typeInternalName: z.string().describe("Internal name of the type definition (e.g., 'cf.project.Task')"),
31
- layoutInternalName: z.string().describe("Internal name of the alternative layout to delete (e.g., 'compactView')")
41
+ workspaceId: z
42
+ .string()
43
+ .describe("ID of the workspace containing the type (e.g., 'workspace/abc123')"),
44
+ typeInternalName: z
45
+ .string()
46
+ .describe("Internal name of the type definition (e.g., 'cf.project.Task')"),
47
+ layoutInternalName: z
48
+ .string()
49
+ .describe("Internal name of the alternative layout to delete (e.g., 'compactView')"),
32
50
  },
33
- annotations: { title: "Delete Type Alternative Layout" }
34
- }
51
+ annotations: { title: 'Delete Type Alternative Layout' },
52
+ },
35
53
  };
36
54
  export function registerTypeLayoutTools(server, client) {
37
55
  server.registerTool(TOOL_LIST_TYPE_ALTERNATIVE_LAYOUTS, TYPE_LAYOUT_TOOL_DEFINITIONS[TOOL_LIST_TYPE_ALTERNATIVE_LAYOUTS], async ({ workspaceId, typeInternalName }) => {
38
56
  debugLogWithTag('TYPE_LAYOUT', `Listing alternative layouts for type ${typeInternalName} in workspace ${workspaceId}`);
39
57
  try {
40
- const result = await client.makeApiRequest('json/typeLayout/list', 'GET', { workspaceId, typeInternalName });
58
+ const result = await client.makeApiRequest('json/typeLayout/list', 'GET', {
59
+ workspaceId,
60
+ typeInternalName,
61
+ });
41
62
  debugLogWithTag('TYPE_LAYOUT', `Successfully listed layouts for type ${typeInternalName}`);
42
63
  return {
43
- content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
64
+ content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
44
65
  };
45
66
  }
46
67
  catch (error) {
47
68
  debugLogWithTag('TYPE_LAYOUT', `Error listing type layouts: ${error instanceof Error ? error.message : String(error)}`);
48
69
  return {
49
- content: [{ type: "text", text: `Error listing type layouts: ${error instanceof Error ? error.message : String(error)}` }],
50
- isError: true
70
+ content: [
71
+ {
72
+ type: 'text',
73
+ text: `Error listing type layouts: ${error instanceof Error ? error.message : String(error)}`,
74
+ },
75
+ ],
76
+ isError: true,
51
77
  };
52
78
  }
53
79
  });
@@ -57,7 +83,7 @@ export function registerTypeLayoutTools(server, client) {
57
83
  const requestBody = {
58
84
  workspaceId,
59
85
  typeInternalName,
60
- internalName: layoutInternalName
86
+ internalName: layoutInternalName,
61
87
  };
62
88
  if (localizedNames) {
63
89
  requestBody.localizedNames = localizedNames;
@@ -68,14 +94,19 @@ export function registerTypeLayoutTools(server, client) {
68
94
  const result = await client.makeApiRequest('json/typeLayout/create', 'POST', undefined, requestBody);
69
95
  debugLogWithTag('TYPE_LAYOUT', `Successfully created alternative layout '${layoutInternalName}' for type ${typeInternalName}`);
70
96
  return {
71
- content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
97
+ content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
72
98
  };
73
99
  }
74
100
  catch (error) {
75
101
  debugLogWithTag('TYPE_LAYOUT', `Error creating alternative layout: ${error instanceof Error ? error.message : String(error)}`);
76
102
  return {
77
- content: [{ type: "text", text: `Error creating alternative layout: ${error instanceof Error ? error.message : String(error)}` }],
78
- isError: true
103
+ content: [
104
+ {
105
+ type: 'text',
106
+ text: `Error creating alternative layout: ${error instanceof Error ? error.message : String(error)}`,
107
+ },
108
+ ],
109
+ isError: true,
79
110
  };
80
111
  }
81
112
  });
@@ -85,18 +116,23 @@ export function registerTypeLayoutTools(server, client) {
85
116
  const result = await client.makeApiRequest('json/typeLayout', 'DELETE', {
86
117
  workspaceId,
87
118
  typeInternalName,
88
- layoutInternalName
119
+ layoutInternalName,
89
120
  });
90
121
  debugLogWithTag('TYPE_LAYOUT', `Successfully deleted alternative layout '${layoutInternalName}' from type ${typeInternalName}`);
91
122
  return {
92
- content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
123
+ content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
93
124
  };
94
125
  }
95
126
  catch (error) {
96
127
  debugLogWithTag('TYPE_LAYOUT', `Error deleting alternative layout: ${error instanceof Error ? error.message : String(error)}`);
97
128
  return {
98
- content: [{ type: "text", text: `Error deleting alternative layout: ${error instanceof Error ? error.message : String(error)}` }],
99
- isError: true
129
+ content: [
130
+ {
131
+ type: 'text',
132
+ text: `Error deleting alternative layout: ${error instanceof Error ? error.message : String(error)}`,
133
+ },
134
+ ],
135
+ isError: true,
100
136
  };
101
137
  }
102
138
  });
@@ -1 +1 @@
1
- {"version":3,"file":"type-layouts.js","sourceRoot":"","sources":["../../src/tools/type-layouts.ts"],"names":[],"mappings":"AACA,OA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O,KAAK,EAAE,CAAC;YACf,eAAe,CACb,aAAa,EACb,sCAAsC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAC/F,CAAC;YACF,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,sCAAsC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBACrG;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -1,50 +1,58 @@
1
- import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
- import { z } from "zod";
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { z } from 'zod';
3
3
  import { CplaceApiClient } from '../api.js';
4
+ interface CustomConstraintTypeInfo {
5
+ constraintName: string;
6
+ allowedMultiplicities?: string[];
7
+ displayName?: string;
8
+ allowUsageAsNormalTypeConstraint?: boolean;
9
+ }
10
+ export declare function buildManageAttributeDefinitionDescription(customTypes: CustomConstraintTypeInfo[] | null): string;
11
+ export declare function primeCustomConstraintTypeCache(client: CplaceApiClient): Promise<void>;
4
12
  export declare const TYPE_MANAGEMENT_TOOL_DEFINITIONS: {
5
- readonly cplace_manage_type_definition: {
6
- readonly description: "Create or update type definitions in a workspace with comprehensive configuration options. All properties from the enhanced read endpoint are available for both creation and updates to enable complete type configuration.";
7
- readonly inputSchema: {
8
- readonly operation: z.ZodEnum<["create", "update"]>;
9
- readonly workspaceId: z.ZodOptional<z.ZodString>;
10
- readonly typeInternalName: z.ZodOptional<z.ZodString>;
11
- readonly localizedNames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
12
- readonly localizedPlural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13
- readonly description: z.ZodOptional<z.ZodString>;
14
- readonly showInExplorer: z.ZodOptional<z.ZodBoolean>;
15
- readonly readers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
- readonly writers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
- readonly readersAreDefault: z.ZodOptional<z.ZodBoolean>;
18
- readonly writersAreDefault: z.ZodOptional<z.ZodBoolean>;
19
- readonly editorsMayDeletePages: z.ZodOptional<z.ZodBoolean>;
20
- readonly showNewButton: z.ZodOptional<z.ZodBoolean>;
21
- readonly showInGlobalNewDialog: z.ZodOptional<z.ZodBoolean>;
22
- readonly showInGlobalSearch: z.ZodOptional<z.ZodBoolean>;
23
- readonly namesAreUnique: z.ZodOptional<z.ZodBoolean>;
24
- readonly enableIconLink: z.ZodOptional<z.ZodBoolean>;
25
- readonly hideTabVersions: z.ZodOptional<z.ZodBoolean>;
26
- readonly allowDivergentLayouts: z.ZodOptional<z.ZodBoolean>;
27
- readonly iconName: z.ZodOptional<z.ZodString>;
28
- readonly nameGenerationPattern: z.ZodOptional<z.ZodString>;
29
- readonly displayNameGenerationPattern: z.ZodOptional<z.ZodString>;
30
- readonly autocompleteDetailsPattern: z.ZodOptional<z.ZodString>;
31
- readonly internalAttributeNamePrefix: z.ZodOptional<z.ZodString>;
32
- readonly localizedPageNamesMode: z.ZodOptional<z.ZodEnum<["none", "optional", "optional_with_dialog", "mandatory"]>>;
13
+ cplace_manage_type_definition: {
14
+ description: string;
15
+ inputSchema: {
16
+ operation: z.ZodEnum<["create", "update"]>;
17
+ workspaceId: z.ZodOptional<z.ZodString>;
18
+ typeInternalName: z.ZodOptional<z.ZodString>;
19
+ localizedNames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20
+ localizedPlural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ showInExplorer: z.ZodOptional<z.ZodBoolean>;
23
+ readers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24
+ writers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
+ readersAreDefault: z.ZodOptional<z.ZodBoolean>;
26
+ writersAreDefault: z.ZodOptional<z.ZodBoolean>;
27
+ editorsMayDeletePages: z.ZodOptional<z.ZodBoolean>;
28
+ showNewButton: z.ZodOptional<z.ZodBoolean>;
29
+ showInGlobalNewDialog: z.ZodOptional<z.ZodBoolean>;
30
+ showInGlobalSearch: z.ZodOptional<z.ZodBoolean>;
31
+ namesAreUnique: z.ZodOptional<z.ZodBoolean>;
32
+ enableIconLink: z.ZodOptional<z.ZodBoolean>;
33
+ hideTabVersions: z.ZodOptional<z.ZodBoolean>;
34
+ allowDivergentLayouts: z.ZodOptional<z.ZodBoolean>;
35
+ iconName: z.ZodOptional<z.ZodString>;
36
+ nameGenerationPattern: z.ZodOptional<z.ZodString>;
37
+ displayNameGenerationPattern: z.ZodOptional<z.ZodString>;
38
+ autocompleteDetailsPattern: z.ZodOptional<z.ZodString>;
39
+ internalAttributeNamePrefix: z.ZodOptional<z.ZodString>;
40
+ localizedPageNamesMode: z.ZodOptional<z.ZodEnum<["none", "optional", "optional_with_dialog", "mandatory"]>>;
33
41
  };
34
- readonly annotations: {
35
- readonly title: "Manage Type Definition";
42
+ annotations: {
43
+ title: string;
36
44
  };
37
45
  };
38
- readonly cplace_manage_attribute_definition: {
39
- readonly description: "Create or update attribute definitions within existing type definitions. Supports all major constraint types including string, number, boolean, date, reference, enumeration, and specialized types like rich text and colors. Provides comprehensive configuration options for display properties, validation, and low-code integration.";
40
- readonly inputSchema: {
41
- readonly operation: z.ZodEnum<["create", "update"]>;
42
- readonly workspaceId: z.ZodString;
43
- readonly typeInternalName: z.ZodString;
44
- readonly attributeName: z.ZodString;
45
- readonly multiplicity: z.ZodOptional<z.ZodEnum<["exactlyOne", "maximalOne", "atLeastOne", "arbitrary"]>>;
46
- readonly constraintConfig: z.ZodOptional<z.ZodObject<{
47
- constraintType: z.ZodEnum<["string", "longString", "richString", "localizedString", "number", "boolean", "date", "color", "reference", "textEnumeration", "numberEnumeration", "dynamicEnumeration", "workflow", "linkedAttribute"]>;
46
+ cplace_manage_attribute_definition: {
47
+ description: string;
48
+ inputSchema: {
49
+ operation: z.ZodEnum<["create", "update"]>;
50
+ workspaceId: z.ZodString;
51
+ typeInternalName: z.ZodString;
52
+ attributeName: z.ZodString;
53
+ multiplicity: z.ZodOptional<z.ZodEnum<["exactlyOne", "maximalOne", "atLeastOne", "arbitrary"]>>;
54
+ constraintConfig: z.ZodOptional<z.ZodObject<{
55
+ constraintType: z.ZodString;
48
56
  pattern: z.ZodOptional<z.ZodString>;
49
57
  patternErrorMessage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
50
58
  precision: z.ZodOptional<z.ZodNumber>;
@@ -75,7 +83,7 @@ export declare const TYPE_MANAGEMENT_TOOL_DEFINITIONS: {
75
83
  linkedReferenceName: z.ZodOptional<z.ZodString>;
76
84
  linkedPropertyName: z.ZodOptional<z.ZodString>;
77
85
  }, "strip", z.ZodTypeAny, {
78
- constraintType: "string" | "number" | "boolean" | "date" | "reference" | "textEnumeration" | "numberEnumeration" | "dynamicEnumeration" | "localizedString" | "richString" | "color" | "longString" | "workflow" | "linkedAttribute";
86
+ constraintType: string;
79
87
  pattern?: string | undefined;
80
88
  patternErrorMessage?: Record<string, string> | undefined;
81
89
  precision?: number | undefined;
@@ -98,7 +106,7 @@ export declare const TYPE_MANAGEMENT_TOOL_DEFINITIONS: {
98
106
  linkedReferenceName?: string | undefined;
99
107
  linkedPropertyName?: string | undefined;
100
108
  }, {
101
- constraintType: "string" | "number" | "boolean" | "date" | "reference" | "textEnumeration" | "numberEnumeration" | "dynamicEnumeration" | "localizedString" | "richString" | "color" | "longString" | "workflow" | "linkedAttribute";
109
+ constraintType: string;
102
110
  pattern?: string | undefined;
103
111
  patternErrorMessage?: Record<string, string> | undefined;
104
112
  precision?: number | undefined;
@@ -121,41 +129,49 @@ export declare const TYPE_MANAGEMENT_TOOL_DEFINITIONS: {
121
129
  linkedReferenceName?: string | undefined;
122
130
  linkedPropertyName?: string | undefined;
123
131
  }>>;
124
- readonly localizedNames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
125
- readonly localizedShortNames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
126
- readonly localizedShortHelp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
127
- readonly readOnly: z.ZodOptional<z.ZodBoolean>;
128
- readonly showInTables: z.ZodOptional<z.ZodBoolean>;
129
- readonly showInNewDialog: z.ZodOptional<z.ZodBoolean>;
130
- readonly showValuesWithLineBreak: z.ZodOptional<z.ZodBoolean>;
131
- readonly showInAttributesWidget: z.ZodOptional<z.ZodBoolean>;
132
- readonly showInColumnSelection: z.ZodOptional<z.ZodBoolean>;
132
+ localizedNames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
133
+ localizedShortNames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
134
+ localizedShortHelp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
135
+ readOnly: z.ZodOptional<z.ZodBoolean>;
136
+ showInTables: z.ZodOptional<z.ZodBoolean>;
137
+ showInNewDialog: z.ZodOptional<z.ZodBoolean>;
138
+ showValuesWithLineBreak: z.ZodOptional<z.ZodBoolean>;
139
+ showInAttributesWidget: z.ZodOptional<z.ZodBoolean>;
140
+ showInColumnSelection: z.ZodOptional<z.ZodBoolean>;
133
141
  };
134
- readonly annotations: {
135
- readonly title: "Manage Attribute Definition";
142
+ annotations: {
143
+ title: string;
136
144
  };
137
145
  };
138
- readonly cplace_delete_type_definition: {
139
- readonly description: "Delete a type definition and all its attributes, validators, change listeners, and alternative layouts. Cannot delete types that have existing pages or are referenced by other types' attributes.";
140
- readonly inputSchema: {
141
- readonly workspaceId: z.ZodString;
142
- readonly typeInternalName: z.ZodString;
146
+ cplace_delete_type_definition: {
147
+ description: string;
148
+ inputSchema: {
149
+ workspaceId: z.ZodString;
150
+ typeInternalName: z.ZodString;
143
151
  };
144
- readonly annotations: {
145
- readonly title: "Delete Type Definition";
152
+ annotations: {
153
+ title: string;
146
154
  };
147
155
  };
148
- readonly cplace_delete_attribute_definition: {
149
- readonly description: "Delete an attribute definition from a type. Cannot delete attributes referenced by validators or change listeners — delete those first.";
150
- readonly inputSchema: {
151
- readonly workspaceId: z.ZodString;
152
- readonly typeInternalName: z.ZodString;
153
- readonly attributeName: z.ZodString;
156
+ cplace_delete_attribute_definition: {
157
+ description: string;
158
+ inputSchema: {
159
+ workspaceId: z.ZodString;
160
+ typeInternalName: z.ZodString;
161
+ attributeName: z.ZodString;
154
162
  };
155
- readonly annotations: {
156
- readonly title: "Delete Attribute Definition";
163
+ annotations: {
164
+ title: string;
165
+ };
166
+ };
167
+ cplace_list_custom_constraint_types: {
168
+ description: string;
169
+ inputSchema: {};
170
+ annotations: {
171
+ title: string;
157
172
  };
158
173
  };
159
174
  };
160
175
  export declare function registerTypeManagementTools(server: McpServer, client: CplaceApiClient): void;
176
+ export {};
161
177
  //# sourceMappingURL=type-management.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type-management.d.ts","sourceRoot":"","sources":["../../src/tools/type-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAU5C,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+HnC,CAAC;AAEX,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,EAAE,MAA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