@cplace/mcp-server 2.2.0 → 2.2.2

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 (130) hide show
  1. package/dist/api.d.ts.map +1 -1
  2. package/dist/api.js +0 -1
  3. package/dist/api.js.map +1 -1
  4. package/dist/capability-gating.d.ts +8 -4
  5. package/dist/capability-gating.d.ts.map +1 -1
  6. package/dist/capability-gating.js +50 -29
  7. package/dist/capability-gating.js.map +1 -1
  8. package/dist/index.js +8 -2
  9. package/dist/index.js.map +1 -1
  10. package/dist/local-mode.d.ts +3 -0
  11. package/dist/local-mode.d.ts.map +1 -0
  12. package/dist/local-mode.js +8 -0
  13. package/dist/local-mode.js.map +1 -0
  14. package/dist/logger.d.ts +1 -0
  15. package/dist/logger.d.ts.map +1 -1
  16. package/dist/logger.js +5 -1
  17. package/dist/logger.js.map +1 -1
  18. package/dist/plugins/core/app-catalog/README.md +4 -1
  19. package/dist/plugins/core/app-catalog/cf.cplace.lowCodeWidgetBuilder/README.md +117 -0
  20. package/dist/plugins/core/app-catalog/cf.cplace.lowCodeWidgetRenderer/README.md +37 -0
  21. package/dist/plugins/core/app-catalog/cf.cplace.lowcode.ai/README.md +62 -9
  22. package/dist/plugins/core/widget-specifications/cf.cplace.workflow.widget/_meta.json +1 -1
  23. package/dist/plugins/resource-management/app-catalog/cf.cplace.resourceManagement/README.md +42 -30
  24. package/dist/plugins/resource-management/app-catalog/cf.cplace.resourceManagement.predefinedValueTypes/README.md +67 -0
  25. package/dist/searchSchema.d.ts +244 -3152
  26. package/dist/searchSchema.d.ts.map +1 -1
  27. package/dist/strict-schemas.d.ts +3 -2
  28. package/dist/strict-schemas.d.ts.map +1 -1
  29. package/dist/strict-schemas.js +72 -70
  30. package/dist/strict-schemas.js.map +1 -1
  31. package/dist/tools/board-widget.d.ts +45 -387
  32. package/dist/tools/board-widget.d.ts.map +1 -1
  33. package/dist/tools/board-widget.js +1 -1
  34. package/dist/tools/board-widget.js.map +1 -1
  35. package/dist/tools/change-listeners.d.ts +10 -3
  36. package/dist/tools/change-listeners.d.ts.map +1 -1
  37. package/dist/tools/change-listeners.js +1 -1
  38. package/dist/tools/change-listeners.js.map +1 -1
  39. package/dist/tools/common-schemas.d.ts +4 -4
  40. package/dist/tools/common-schemas.d.ts.map +1 -1
  41. package/dist/tools/csv-export.d.ts +247 -3623
  42. package/dist/tools/csv-export.d.ts.map +1 -1
  43. package/dist/tools/documents.d.ts.map +1 -1
  44. package/dist/tools/documents.js +77 -14
  45. package/dist/tools/documents.js.map +1 -1
  46. package/dist/tools/embedded-widget-layout.d.ts +9 -57
  47. package/dist/tools/embedded-widget-layout.d.ts.map +1 -1
  48. package/dist/tools/embedded-widget-layout.js +1 -1
  49. package/dist/tools/embedded-widget-layout.js.map +1 -1
  50. package/dist/tools/enum-providers.d.ts +4 -1
  51. package/dist/tools/enum-providers.d.ts.map +1 -1
  52. package/dist/tools/expert-settings.d.ts +6 -1
  53. package/dist/tools/expert-settings.d.ts.map +1 -1
  54. package/dist/tools/get-operations.d.ts +2 -2
  55. package/dist/tools/job-scripts.d.ts +5 -2
  56. package/dist/tools/job-scripts.d.ts.map +1 -1
  57. package/dist/tools/job-scripts.js +1 -1
  58. package/dist/tools/job-scripts.js.map +1 -1
  59. package/dist/tools/jobs.d.ts +10 -3
  60. package/dist/tools/jobs.d.ts.map +1 -1
  61. package/dist/tools/layout-richstring-widgets.d.ts +9 -81
  62. package/dist/tools/layout-richstring-widgets.d.ts.map +1 -1
  63. package/dist/tools/layout.d.ts +19 -163
  64. package/dist/tools/layout.d.ts.map +1 -1
  65. package/dist/tools/page-actions.d.ts +4 -1
  66. package/dist/tools/page-actions.d.ts.map +1 -1
  67. package/dist/tools/page-actions.js +2 -2
  68. package/dist/tools/page-actions.js.map +1 -1
  69. package/dist/tools/pages.d.ts +10 -4
  70. package/dist/tools/pages.d.ts.map +1 -1
  71. package/dist/tools/ppt-export-schemas.d.ts +343 -1647
  72. package/dist/tools/ppt-export-schemas.d.ts.map +1 -1
  73. package/dist/tools/ppt-export-schemas.js +1 -1
  74. package/dist/tools/ppt-export-schemas.js.map +1 -1
  75. package/dist/tools/ppt-export.d.ts +242 -1264
  76. package/dist/tools/ppt-export.d.ts.map +1 -1
  77. package/dist/tools/references.d.ts +3 -19
  78. package/dist/tools/references.d.ts.map +1 -1
  79. package/dist/tools/resource-planner-widget.d.ts +33 -192
  80. package/dist/tools/resource-planner-widget.d.ts.map +1 -1
  81. package/dist/tools/resource-planner-widget.js +1 -1
  82. package/dist/tools/resource-planner-widget.js.map +1 -1
  83. package/dist/tools/richstring-widgets.js +2 -2
  84. package/dist/tools/richstring-widgets.js.map +1 -1
  85. package/dist/tools/schedule.d.ts +5 -1
  86. package/dist/tools/schedule.d.ts.map +1 -1
  87. package/dist/tools/script-logs.d.ts +16 -3
  88. package/dist/tools/script-logs.d.ts.map +1 -1
  89. package/dist/tools/search.d.ts +259 -3629
  90. package/dist/tools/search.d.ts.map +1 -1
  91. package/dist/tools/solution-packages.d.ts +12 -20
  92. package/dist/tools/solution-packages.d.ts.map +1 -1
  93. package/dist/tools/system.js +2 -2
  94. package/dist/tools/system.js.map +1 -1
  95. package/dist/tools/type-layouts.js +1 -1
  96. package/dist/tools/type-layouts.js.map +1 -1
  97. package/dist/tools/type-management.d.ts +74 -96
  98. package/dist/tools/type-management.d.ts.map +1 -1
  99. package/dist/tools/type-management.js +9 -9
  100. package/dist/tools/type-management.js.map +1 -1
  101. package/dist/tools/type-messages.d.ts +4 -1
  102. package/dist/tools/type-messages.d.ts.map +1 -1
  103. package/dist/tools/type-messages.js +1 -1
  104. package/dist/tools/type-messages.js.map +1 -1
  105. package/dist/tools/validators.d.ts +4 -1
  106. package/dist/tools/validators.d.ts.map +1 -1
  107. package/dist/tools/version-history.d.ts +4 -4
  108. package/dist/tools/widget-simulation.d.ts +6 -1
  109. package/dist/tools/widget-simulation.d.ts.map +1 -1
  110. package/dist/tools/widgets.d.ts +9 -5
  111. package/dist/tools/widgets.d.ts.map +1 -1
  112. package/dist/tools/wizards.d.ts +26 -23
  113. package/dist/tools/wizards.d.ts.map +1 -1
  114. package/dist/tools/wizards.js +4 -4
  115. package/dist/tools/wizards.js.map +1 -1
  116. package/dist/tools/workflow-scripts.d.ts +27 -6
  117. package/dist/tools/workflow-scripts.d.ts.map +1 -1
  118. package/dist/tools/workflow.d.ts +8 -2
  119. package/dist/tools/workflow.d.ts.map +1 -1
  120. package/dist/tools/workflow.js +2 -2
  121. package/dist/tools/workflow.js.map +1 -1
  122. package/dist/tools/workspace-admin.d.ts +14 -7
  123. package/dist/tools/workspace-admin.d.ts.map +1 -1
  124. package/dist/tools/workspace-core.d.ts +8 -4
  125. package/dist/tools/workspace-core.d.ts.map +1 -1
  126. package/dist/utils/fileIO.d.ts +3 -0
  127. package/dist/utils/fileIO.d.ts.map +1 -1
  128. package/dist/utils/fileIO.js +14 -0
  129. package/dist/utils/fileIO.js.map +1 -1
  130. package/package.json +3 -3
@@ -5,39 +5,15 @@ declare const BOARD_TOOL_DEFINITIONS: {
5
5
  readonly cplace_board_get_configuration: {
6
6
  readonly description: "Get current board widget configuration in a structured format suitable for modification.\n\nReturns the current state of:\n- cards: Card sources (searches) with display attribute mappings\n- columns: Column structure (static or dynamic mode)\n- swimlanes: Swimlane structure (if enabled)\n- visualComponents: UI settings and toggles\n\nWORKFLOW: Use this tool first, then modify the relevant section and pass to the corresponding configure tool.";
7
7
  readonly inputSchema: {
8
- readonly context: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
8
+ readonly context: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodObject<{
9
9
  type: z.ZodLiteral<"page">;
10
10
  pageUID: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- type: "page";
13
- pageUID: string;
14
- }, {
15
- type: "page";
16
- pageUID: string;
17
- }>, z.ZodObject<{
11
+ }, z.core.$strip>, z.ZodObject<{
18
12
  type: z.ZodLiteral<"type">;
19
13
  workspaceId: z.ZodString;
20
14
  typeInternalName: z.ZodString;
21
15
  alternativeLayoutName: z.ZodOptional<z.ZodString>;
22
- }, "strip", z.ZodTypeAny, {
23
- type: "type";
24
- workspaceId: string;
25
- typeInternalName: string;
26
- alternativeLayoutName?: string | undefined;
27
- }, {
28
- type: "type";
29
- workspaceId: string;
30
- typeInternalName: string;
31
- alternativeLayoutName?: string | undefined;
32
- }>]>, {
33
- type: "page";
34
- pageUID: string;
35
- } | {
36
- type: "type";
37
- workspaceId: string;
38
- typeInternalName: string;
39
- alternativeLayoutName?: string | undefined;
40
- }, unknown>;
16
+ }, z.core.$strip>]>, unknown>;
41
17
  readonly widgetId: z.ZodString;
42
18
  };
43
19
  readonly annotations: {
@@ -47,39 +23,15 @@ declare const BOARD_TOOL_DEFINITIONS: {
47
23
  readonly cplace_board_configure_cards: {
48
24
  readonly description: "Configure card sources for a board widget. Declares the complete set of card sources - existing sources not in the array will be removed.\n\nIMPORTANT: Configure cards BEFORE columns/swimlanes, as they reference cards via searchId.\n\nEach card source defines:\n- searchId: Unique identifier used by columns/swimlanes to reference this source\n- search: cplaceJson from cplace_search_pages (defines which pages become cards)\n- cardDisplay: Visual card appearance (date footer, tag badges, border color, icon indicators)\n\n**WARNING**: Do not manually construct search JSON! The search parameter requires a specific format with a \"filters\" array.\n\n**Correct Usage**: Use the cplaceJson field from cplace_search_pages response\n\n**Search JSON Workflow**:\n1. Call cplace_search_pages with your desired filter (e.g., types, workspace)\n2. Take the cplaceJson field from the response\n3. Use that value for the search parameter\n\nExample of CORRECT format: {\"filters\":[{\"relativeSpace\":\"true\"},{\"types\":[\"cf.myApp.myType\"]}]}\nExample of WRONG format: {\"types\":[\"cf.myApp.myType\"]} (missing filters array - will cause \"No value for filters\" error)\n\nWORKFLOW:\n1. Get current config: cplace_board_get_configuration\n2. Modify the cards array\n3. Call this tool with the complete desired cards array";
49
25
  readonly inputSchema: {
50
- readonly context: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
26
+ readonly context: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodObject<{
51
27
  type: z.ZodLiteral<"page">;
52
28
  pageUID: z.ZodString;
53
- }, "strip", z.ZodTypeAny, {
54
- type: "page";
55
- pageUID: string;
56
- }, {
57
- type: "page";
58
- pageUID: string;
59
- }>, z.ZodObject<{
29
+ }, z.core.$strip>, z.ZodObject<{
60
30
  type: z.ZodLiteral<"type">;
61
31
  workspaceId: z.ZodString;
62
32
  typeInternalName: z.ZodString;
63
33
  alternativeLayoutName: z.ZodOptional<z.ZodString>;
64
- }, "strip", z.ZodTypeAny, {
65
- type: "type";
66
- workspaceId: string;
67
- typeInternalName: string;
68
- alternativeLayoutName?: string | undefined;
69
- }, {
70
- type: "type";
71
- workspaceId: string;
72
- typeInternalName: string;
73
- alternativeLayoutName?: string | undefined;
74
- }>]>, {
75
- type: "page";
76
- pageUID: string;
77
- } | {
78
- type: "type";
79
- workspaceId: string;
80
- typeInternalName: string;
81
- alternativeLayoutName?: string | undefined;
82
- }, unknown>;
34
+ }, z.core.$strip>]>, unknown>;
83
35
  readonly widgetId: z.ZodString;
84
36
  readonly cards: z.ZodArray<z.ZodObject<{
85
37
  searchId: z.ZodString;
@@ -87,83 +39,17 @@ declare const BOARD_TOOL_DEFINITIONS: {
87
39
  typeId: z.ZodOptional<z.ZodString>;
88
40
  cardDisplay: z.ZodOptional<z.ZodObject<{
89
41
  dateAttribute: z.ZodOptional<z.ZodString>;
90
- tagAttributes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ tagAttributes: z.ZodOptional<z.ZodArray<z.ZodString>>;
91
43
  colorAttribute: z.ZodOptional<z.ZodObject<{
92
44
  attribute: z.ZodString;
93
45
  colorMapping: z.ZodRecord<z.ZodString, z.ZodString>;
94
- }, "strip", z.ZodTypeAny, {
95
- attribute: string;
96
- colorMapping: Record<string, string>;
97
- }, {
98
- attribute: string;
99
- colorMapping: Record<string, string>;
100
- }>>;
46
+ }, z.core.$strip>>;
101
47
  iconAttributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
48
  attribute: z.ZodString;
103
49
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
104
- }, "strip", z.ZodTypeAny, {
105
- attribute: string;
106
- enabled: boolean;
107
- }, {
108
- attribute: string;
109
- enabled?: boolean | undefined;
110
- }>, "many">>;
111
- }, "strip", z.ZodTypeAny, {
112
- dateAttribute?: string | undefined;
113
- tagAttributes?: string[] | undefined;
114
- colorAttribute?: {
115
- attribute: string;
116
- colorMapping: Record<string, string>;
117
- } | undefined;
118
- iconAttributes?: {
119
- attribute: string;
120
- enabled: boolean;
121
- }[] | undefined;
122
- }, {
123
- dateAttribute?: string | undefined;
124
- tagAttributes?: string[] | undefined;
125
- colorAttribute?: {
126
- attribute: string;
127
- colorMapping: Record<string, string>;
128
- } | undefined;
129
- iconAttributes?: {
130
- attribute: string;
131
- enabled?: boolean | undefined;
132
- }[] | undefined;
133
- }>>;
134
- }, "strip", z.ZodTypeAny, {
135
- search: string;
136
- searchId: string;
137
- typeId?: string | undefined;
138
- cardDisplay?: {
139
- dateAttribute?: string | undefined;
140
- tagAttributes?: string[] | undefined;
141
- colorAttribute?: {
142
- attribute: string;
143
- colorMapping: Record<string, string>;
144
- } | undefined;
145
- iconAttributes?: {
146
- attribute: string;
147
- enabled: boolean;
148
- }[] | undefined;
149
- } | undefined;
150
- }, {
151
- search: string;
152
- searchId: string;
153
- typeId?: string | undefined;
154
- cardDisplay?: {
155
- dateAttribute?: string | undefined;
156
- tagAttributes?: string[] | undefined;
157
- colorAttribute?: {
158
- attribute: string;
159
- colorMapping: Record<string, string>;
160
- } | undefined;
161
- iconAttributes?: {
162
- attribute: string;
163
- enabled?: boolean | undefined;
164
- }[] | undefined;
165
- } | undefined;
166
- }>, "many">;
50
+ }, z.core.$strip>>>;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strip>>;
167
53
  };
168
54
  readonly annotations: {
169
55
  readonly title: "Configure Board Cards";
@@ -172,142 +58,43 @@ declare const BOARD_TOOL_DEFINITIONS: {
172
58
  readonly cplace_board_configure_columns: {
173
59
  readonly description: "Configure column structure for a board widget. Declares the complete column configuration.\n\nMODES:\n- static: Explicitly define columns with value mappings (most common)\n- dynamic: Auto-generate columns from attribute values\n\nVALID ATTRIBUTE TYPES for column mapping: Enumeration, Reference, Date, or linked attributes of these types.\nNOT valid: Workflow (excluded despite resembling enumerations), Number, Boolean, Color (these are only valid for card display attributes).\n\nVALUE MAPPING FIELDS (mutually exclusive per mapping):\n- values: For enumeration attributes (string values like \"Open\", \"Closed\")\n- referenceValues: For reference attributes (page UIDs like \"6a0pydt3gd31ea3d42hdhqf4t\")\n- dateRange: For date attributes ({start, end} date strings)\n\nIMPORTANT: All searchId references must exist in the board's card configurations.\nConfigure cards first if adding new card sources.\n\nSTATIC MODE: Array order = column order (left to right)\nDYNAMIC MODE: Columns auto-generated from enumeration attribute values. Date-based dynamic columns are not supported.\n\nWORKFLOW:\n1. Ensure cards are configured with desired searchIds\n2. Get current config: cplace_board_get_configuration\n3. Modify or replace columns configuration\n4. Call this tool with complete desired state";
174
60
  readonly inputSchema: {
175
- readonly context: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
61
+ readonly context: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodObject<{
176
62
  type: z.ZodLiteral<"page">;
177
63
  pageUID: z.ZodString;
178
- }, "strip", z.ZodTypeAny, {
179
- type: "page";
180
- pageUID: string;
181
- }, {
182
- type: "page";
183
- pageUID: string;
184
- }>, z.ZodObject<{
64
+ }, z.core.$strip>, z.ZodObject<{
185
65
  type: z.ZodLiteral<"type">;
186
66
  workspaceId: z.ZodString;
187
67
  typeInternalName: z.ZodString;
188
68
  alternativeLayoutName: z.ZodOptional<z.ZodString>;
189
- }, "strip", z.ZodTypeAny, {
190
- type: "type";
191
- workspaceId: string;
192
- typeInternalName: string;
193
- alternativeLayoutName?: string | undefined;
194
- }, {
195
- type: "type";
196
- workspaceId: string;
197
- typeInternalName: string;
198
- alternativeLayoutName?: string | undefined;
199
- }>]>, {
200
- type: "page";
201
- pageUID: string;
202
- } | {
203
- type: "type";
204
- workspaceId: string;
205
- typeInternalName: string;
206
- alternativeLayoutName?: string | undefined;
207
- }, unknown>;
69
+ }, z.core.$strip>]>, unknown>;
208
70
  readonly widgetId: z.ZodString;
209
- readonly mode: z.ZodEnum<["static", "dynamic"]>;
71
+ readonly mode: z.ZodEnum<{
72
+ static: "static";
73
+ dynamic: "dynamic";
74
+ }>;
210
75
  readonly columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
211
76
  columnId: z.ZodString;
212
77
  names: z.ZodObject<{
213
78
  en: z.ZodString;
214
79
  de: z.ZodOptional<z.ZodString>;
215
- }, "strip", z.ZodTypeAny, {
216
- en: string;
217
- de?: string | undefined;
218
- }, {
219
- en: string;
220
- de?: string | undefined;
221
- }>;
80
+ }, z.core.$strip>;
222
81
  mappings: z.ZodArray<z.ZodObject<{
223
82
  searchId: z.ZodString;
224
83
  attribute: z.ZodString;
225
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
226
- referenceValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
+ referenceValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
227
86
  dateRange: z.ZodOptional<z.ZodObject<{
228
87
  start: z.ZodString;
229
88
  end: z.ZodString;
230
- }, "strip", z.ZodTypeAny, {
231
- start: string;
232
- end: string;
233
- }, {
234
- start: string;
235
- end: string;
236
- }>>;
237
- }, "strip", z.ZodTypeAny, {
238
- attribute: string;
239
- searchId: string;
240
- values?: string[] | undefined;
241
- referenceValues?: string[] | undefined;
242
- dateRange?: {
243
- start: string;
244
- end: string;
245
- } | undefined;
246
- }, {
247
- attribute: string;
248
- searchId: string;
249
- values?: string[] | undefined;
250
- referenceValues?: string[] | undefined;
251
- dateRange?: {
252
- start: string;
253
- end: string;
254
- } | undefined;
255
- }>, "many">;
256
- }, "strip", z.ZodTypeAny, {
257
- columnId: string;
258
- names: {
259
- en: string;
260
- de?: string | undefined;
261
- };
262
- mappings: {
263
- attribute: string;
264
- searchId: string;
265
- values?: string[] | undefined;
266
- referenceValues?: string[] | undefined;
267
- dateRange?: {
268
- start: string;
269
- end: string;
270
- } | undefined;
271
- }[];
272
- }, {
273
- columnId: string;
274
- names: {
275
- en: string;
276
- de?: string | undefined;
277
- };
278
- mappings: {
279
- attribute: string;
280
- searchId: string;
281
- values?: string[] | undefined;
282
- referenceValues?: string[] | undefined;
283
- dateRange?: {
284
- start: string;
285
- end: string;
286
- } | undefined;
287
- }[];
288
- }>, "many">>;
89
+ }, z.core.$strip>>;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>>>;
289
92
  readonly dynamicConfig: z.ZodOptional<z.ZodObject<{
290
93
  mappedAttributes: z.ZodArray<z.ZodObject<{
291
94
  searchId: z.ZodString;
292
95
  attribute: z.ZodString;
293
- }, "strip", z.ZodTypeAny, {
294
- attribute: string;
295
- searchId: string;
296
- }, {
297
- attribute: string;
298
- searchId: string;
299
- }>, "many">;
300
- }, "strip", z.ZodTypeAny, {
301
- mappedAttributes: {
302
- attribute: string;
303
- searchId: string;
304
- }[];
305
- }, {
306
- mappedAttributes: {
307
- attribute: string;
308
- searchId: string;
309
- }[];
310
- }>>;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>>;
311
98
  };
312
99
  readonly annotations: {
313
100
  readonly title: "Configure Board Columns";
@@ -316,143 +103,44 @@ declare const BOARD_TOOL_DEFINITIONS: {
316
103
  readonly cplace_board_configure_swimlanes: {
317
104
  readonly description: "Configure swimlane structure for a board widget. Swimlanes create horizontal groupings within columns.\n\nSET enabled: false to remove all swimlanes (flat board).\n\nMODES (when enabled):\n- static: Explicitly define swimlanes with value mappings\n- dynamic: Auto-generate swimlanes from enumeration attribute values. Date-based dynamic swimlanes are not supported.\n\nVALID ATTRIBUTE TYPES for swimlane mapping: Enumeration, Reference, Date, or linked attributes of these types.\nNOT valid: Workflow (excluded despite resembling enumerations), Number, Boolean, Color (these are only valid for card display attributes).\n\nVALUE MAPPING FIELDS (mutually exclusive per mapping):\n- values: For enumeration attributes (string values like \"Open\", \"Closed\")\n- referenceValues: For reference attributes (page UIDs like \"6a0pydt3gd31ea3d42hdhqf4t\")\n- dateRange: For date attributes ({start, end} date strings)\n\nIMPORTANT: All searchId references must exist in the board's card configurations.\n\nWORKFLOW:\n1. Ensure cards are configured with desired searchIds\n2. Get current config: cplace_board_get_configuration\n3. Modify or replace swimlanes configuration\n4. Call this tool with complete desired state";
318
105
  readonly inputSchema: {
319
- readonly context: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
106
+ readonly context: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodObject<{
320
107
  type: z.ZodLiteral<"page">;
321
108
  pageUID: z.ZodString;
322
- }, "strip", z.ZodTypeAny, {
323
- type: "page";
324
- pageUID: string;
325
- }, {
326
- type: "page";
327
- pageUID: string;
328
- }>, z.ZodObject<{
109
+ }, z.core.$strip>, z.ZodObject<{
329
110
  type: z.ZodLiteral<"type">;
330
111
  workspaceId: z.ZodString;
331
112
  typeInternalName: z.ZodString;
332
113
  alternativeLayoutName: z.ZodOptional<z.ZodString>;
333
- }, "strip", z.ZodTypeAny, {
334
- type: "type";
335
- workspaceId: string;
336
- typeInternalName: string;
337
- alternativeLayoutName?: string | undefined;
338
- }, {
339
- type: "type";
340
- workspaceId: string;
341
- typeInternalName: string;
342
- alternativeLayoutName?: string | undefined;
343
- }>]>, {
344
- type: "page";
345
- pageUID: string;
346
- } | {
347
- type: "type";
348
- workspaceId: string;
349
- typeInternalName: string;
350
- alternativeLayoutName?: string | undefined;
351
- }, unknown>;
114
+ }, z.core.$strip>]>, unknown>;
352
115
  readonly widgetId: z.ZodString;
353
116
  readonly enabled: z.ZodBoolean;
354
- readonly mode: z.ZodOptional<z.ZodEnum<["static", "dynamic"]>>;
117
+ readonly mode: z.ZodOptional<z.ZodEnum<{
118
+ static: "static";
119
+ dynamic: "dynamic";
120
+ }>>;
355
121
  readonly swimlanes: z.ZodOptional<z.ZodArray<z.ZodObject<{
356
122
  swimlaneId: z.ZodString;
357
123
  names: z.ZodObject<{
358
124
  en: z.ZodString;
359
125
  de: z.ZodOptional<z.ZodString>;
360
- }, "strip", z.ZodTypeAny, {
361
- en: string;
362
- de?: string | undefined;
363
- }, {
364
- en: string;
365
- de?: string | undefined;
366
- }>;
126
+ }, z.core.$strip>;
367
127
  mappings: z.ZodArray<z.ZodObject<{
368
128
  searchId: z.ZodString;
369
129
  attribute: z.ZodString;
370
- values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
371
- referenceValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
131
+ referenceValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
372
132
  dateRange: z.ZodOptional<z.ZodObject<{
373
133
  start: z.ZodString;
374
134
  end: z.ZodString;
375
- }, "strip", z.ZodTypeAny, {
376
- start: string;
377
- end: string;
378
- }, {
379
- start: string;
380
- end: string;
381
- }>>;
382
- }, "strip", z.ZodTypeAny, {
383
- attribute: string;
384
- searchId: string;
385
- values?: string[] | undefined;
386
- referenceValues?: string[] | undefined;
387
- dateRange?: {
388
- start: string;
389
- end: string;
390
- } | undefined;
391
- }, {
392
- attribute: string;
393
- searchId: string;
394
- values?: string[] | undefined;
395
- referenceValues?: string[] | undefined;
396
- dateRange?: {
397
- start: string;
398
- end: string;
399
- } | undefined;
400
- }>, "many">;
401
- }, "strip", z.ZodTypeAny, {
402
- names: {
403
- en: string;
404
- de?: string | undefined;
405
- };
406
- mappings: {
407
- attribute: string;
408
- searchId: string;
409
- values?: string[] | undefined;
410
- referenceValues?: string[] | undefined;
411
- dateRange?: {
412
- start: string;
413
- end: string;
414
- } | undefined;
415
- }[];
416
- swimlaneId: string;
417
- }, {
418
- names: {
419
- en: string;
420
- de?: string | undefined;
421
- };
422
- mappings: {
423
- attribute: string;
424
- searchId: string;
425
- values?: string[] | undefined;
426
- referenceValues?: string[] | undefined;
427
- dateRange?: {
428
- start: string;
429
- end: string;
430
- } | undefined;
431
- }[];
432
- swimlaneId: string;
433
- }>, "many">>;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strip>>;
137
+ }, z.core.$strip>>>;
434
138
  readonly dynamicConfig: z.ZodOptional<z.ZodObject<{
435
139
  mappedAttributes: z.ZodArray<z.ZodObject<{
436
140
  searchId: z.ZodString;
437
141
  attribute: z.ZodString;
438
- }, "strip", z.ZodTypeAny, {
439
- attribute: string;
440
- searchId: string;
441
- }, {
442
- attribute: string;
443
- searchId: string;
444
- }>, "many">;
445
- }, "strip", z.ZodTypeAny, {
446
- mappedAttributes: {
447
- attribute: string;
448
- searchId: string;
449
- }[];
450
- }, {
451
- mappedAttributes: {
452
- attribute: string;
453
- searchId: string;
454
- }[];
455
- }>>;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>>;
456
144
  };
457
145
  readonly annotations: {
458
146
  readonly title: "Configure Board Swimlanes";
@@ -461,39 +149,15 @@ declare const BOARD_TOOL_DEFINITIONS: {
461
149
  readonly cplace_board_configure_visual: {
462
150
  readonly description: "Configure visual settings for a board widget. Controls UI features and display options.\n\nAvailable settings:\n- showCardCount: Show card count in column headers\n- enableQuickAdd: Show \"+\" button to create new cards\n- showUnmappedContainer: Show container for cards without valid column mapping\n- enableCardDetailsView: Show card details inline instead of navigation\n- showSpaceAfterLastColumn: Add visual spacing after last column\n- enableRecentHistory: Show button to highlight recently changed cards\n- recentHistoryWeeks: Time range for \"recent\" cards (default: 2)\n\nOmitted settings retain their current values (this tool does partial updates for visual settings).";
463
151
  readonly inputSchema: {
464
- readonly context: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
152
+ readonly context: z.ZodPreprocess<z.ZodUnion<readonly [z.ZodObject<{
465
153
  type: z.ZodLiteral<"page">;
466
154
  pageUID: z.ZodString;
467
- }, "strip", z.ZodTypeAny, {
468
- type: "page";
469
- pageUID: string;
470
- }, {
471
- type: "page";
472
- pageUID: string;
473
- }>, z.ZodObject<{
155
+ }, z.core.$strip>, z.ZodObject<{
474
156
  type: z.ZodLiteral<"type">;
475
157
  workspaceId: z.ZodString;
476
158
  typeInternalName: z.ZodString;
477
159
  alternativeLayoutName: z.ZodOptional<z.ZodString>;
478
- }, "strip", z.ZodTypeAny, {
479
- type: "type";
480
- workspaceId: string;
481
- typeInternalName: string;
482
- alternativeLayoutName?: string | undefined;
483
- }, {
484
- type: "type";
485
- workspaceId: string;
486
- typeInternalName: string;
487
- alternativeLayoutName?: string | undefined;
488
- }>]>, {
489
- type: "page";
490
- pageUID: string;
491
- } | {
492
- type: "type";
493
- workspaceId: string;
494
- typeInternalName: string;
495
- alternativeLayoutName?: string | undefined;
496
- }, unknown>;
160
+ }, z.core.$strip>]>, unknown>;
497
161
  readonly widgetId: z.ZodString;
498
162
  readonly showCardCount: z.ZodOptional<z.ZodBoolean>;
499
163
  readonly enableQuickAdd: z.ZodOptional<z.ZodBoolean>;
@@ -501,13 +165,7 @@ declare const BOARD_TOOL_DEFINITIONS: {
501
165
  readonly unmappedContainerNames: z.ZodOptional<z.ZodObject<{
502
166
  en: z.ZodString;
503
167
  de: z.ZodOptional<z.ZodString>;
504
- }, "strip", z.ZodTypeAny, {
505
- en: string;
506
- de?: string | undefined;
507
- }, {
508
- en: string;
509
- de?: string | undefined;
510
- }>>;
168
+ }, z.core.$strip>>;
511
169
  readonly enableCardDetailsView: z.ZodOptional<z.ZodBoolean>;
512
170
  readonly showSpaceAfterLastColumn: z.ZodOptional<z.ZodBoolean>;
513
171
  readonly enableRecentHistory: z.ZodOptional<z.ZodBoolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"board-widget.d.ts","sourceRoot":"","sources":["../../src/tools/board-widget.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;AAgK5C,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2KlB,CAAC;AA+cX,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,QAyhBlF;AAGD,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"board-widget.d.ts","sourceRoot":"","sources":["../../src/tools/board-widget.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;AAgK5C,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2KlB,CAAC;AA+cX,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,QAyhBlF;AAGD,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -24,7 +24,7 @@ const CardDisplaySchema = z
24
24
  .string()
25
25
  .describe("Enumeration attribute for dynamic left-border color (e.g., 'cf.myType.status')"),
26
26
  colorMapping: z
27
- .record(z.string())
27
+ .record(z.string(), z.string())
28
28
  .describe('Map of enumeration values to hex colors (e.g., {"Open": "#4CAF50", "Closed": "#F44336"})'),
29
29
  })
30
30
  .optional()