@progress/kendo-react-webmcp 15.0.0-develop.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 (340) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +383 -0
  3. package/README.md +72 -0
  4. package/WebMcpProvider.d.ts +49 -0
  5. package/WebMcpProvider.js +8 -0
  6. package/WebMcpProvider.mjs +138 -0
  7. package/adapters/aiprompt.d.ts +15 -0
  8. package/adapters/aiprompt.js +8 -0
  9. package/adapters/aiprompt.mjs +63 -0
  10. package/adapters/autocomplete.d.ts +18 -0
  11. package/adapters/autocomplete.js +8 -0
  12. package/adapters/autocomplete.mjs +69 -0
  13. package/adapters/button.d.ts +18 -0
  14. package/adapters/button.js +8 -0
  15. package/adapters/button.mjs +46 -0
  16. package/adapters/calendar.d.ts +16 -0
  17. package/adapters/calendar.js +8 -0
  18. package/adapters/calendar.mjs +61 -0
  19. package/adapters/chart.d.ts +29 -0
  20. package/adapters/chart.js +8 -0
  21. package/adapters/chart.mjs +95 -0
  22. package/adapters/chat.d.ts +16 -0
  23. package/adapters/chat.js +8 -0
  24. package/adapters/chat.mjs +66 -0
  25. package/adapters/colorpicker.d.ts +16 -0
  26. package/adapters/colorpicker.js +8 -0
  27. package/adapters/colorpicker.mjs +60 -0
  28. package/adapters/combobox.d.ts +20 -0
  29. package/adapters/combobox.js +8 -0
  30. package/adapters/combobox.mjs +87 -0
  31. package/adapters/dashboard.d.ts +18 -0
  32. package/adapters/dashboard.js +8 -0
  33. package/adapters/dashboard.mjs +41 -0
  34. package/adapters/datepicker.d.ts +17 -0
  35. package/adapters/datepicker.js +8 -0
  36. package/adapters/datepicker.mjs +59 -0
  37. package/adapters/daterangepicker.d.ts +19 -0
  38. package/adapters/daterangepicker.js +8 -0
  39. package/adapters/daterangepicker.mjs +70 -0
  40. package/adapters/datetimepicker.d.ts +16 -0
  41. package/adapters/datetimepicker.js +8 -0
  42. package/adapters/datetimepicker.mjs +59 -0
  43. package/adapters/dialog.d.ts +15 -0
  44. package/adapters/dialog.js +8 -0
  45. package/adapters/dialog.mjs +58 -0
  46. package/adapters/drawer.d.ts +33 -0
  47. package/adapters/drawer.js +8 -0
  48. package/adapters/drawer.mjs +86 -0
  49. package/adapters/dropdownlist.d.ts +19 -0
  50. package/adapters/dropdownlist.js +8 -0
  51. package/adapters/dropdownlist.mjs +74 -0
  52. package/adapters/dropdowntree.d.ts +22 -0
  53. package/adapters/dropdowntree.js +8 -0
  54. package/adapters/dropdowntree.mjs +108 -0
  55. package/adapters/editor.d.ts +30 -0
  56. package/adapters/editor.js +8 -0
  57. package/adapters/editor.mjs +109 -0
  58. package/adapters/form.d.ts +20 -0
  59. package/adapters/form.js +10 -0
  60. package/adapters/form.mjs +115 -0
  61. package/adapters/gantt.d.ts +65 -0
  62. package/adapters/gantt.js +8 -0
  63. package/adapters/gantt.mjs +370 -0
  64. package/adapters/grid.d.ts +102 -0
  65. package/adapters/grid.js +8 -0
  66. package/adapters/grid.mjs +692 -0
  67. package/adapters/listbox.d.ts +18 -0
  68. package/adapters/listbox.js +8 -0
  69. package/adapters/listbox.mjs +87 -0
  70. package/adapters/listview.d.ts +22 -0
  71. package/adapters/listview.js +8 -0
  72. package/adapters/listview.mjs +80 -0
  73. package/adapters/map.d.ts +32 -0
  74. package/adapters/map.js +8 -0
  75. package/adapters/map.mjs +88 -0
  76. package/adapters/maskedtextbox.d.ts +17 -0
  77. package/adapters/maskedtextbox.js +8 -0
  78. package/adapters/maskedtextbox.mjs +57 -0
  79. package/adapters/menu.d.ts +16 -0
  80. package/adapters/menu.js +8 -0
  81. package/adapters/menu.mjs +50 -0
  82. package/adapters/multiselect.d.ts +19 -0
  83. package/adapters/multiselect.js +8 -0
  84. package/adapters/multiselect.mjs +75 -0
  85. package/adapters/notification.d.ts +17 -0
  86. package/adapters/notification.js +8 -0
  87. package/adapters/notification.mjs +57 -0
  88. package/adapters/numerictextbox.d.ts +19 -0
  89. package/adapters/numerictextbox.js +8 -0
  90. package/adapters/numerictextbox.mjs +78 -0
  91. package/adapters/panelbar.d.ts +17 -0
  92. package/adapters/panelbar.js +8 -0
  93. package/adapters/panelbar.mjs +66 -0
  94. package/adapters/pivotgrid.d.ts +16 -0
  95. package/adapters/pivotgrid.js +8 -0
  96. package/adapters/pivotgrid.mjs +126 -0
  97. package/adapters/rangeslider.d.ts +21 -0
  98. package/adapters/rangeslider.js +8 -0
  99. package/adapters/rangeslider.mjs +55 -0
  100. package/adapters/rating.d.ts +16 -0
  101. package/adapters/rating.js +8 -0
  102. package/adapters/rating.mjs +60 -0
  103. package/adapters/scheduler.d.ts +45 -0
  104. package/adapters/scheduler.js +8 -0
  105. package/adapters/scheduler.mjs +165 -0
  106. package/adapters/scrollview.d.ts +21 -0
  107. package/adapters/scrollview.js +8 -0
  108. package/adapters/scrollview.mjs +74 -0
  109. package/adapters/signature.d.ts +16 -0
  110. package/adapters/signature.js +8 -0
  111. package/adapters/signature.mjs +47 -0
  112. package/adapters/slider.d.ts +19 -0
  113. package/adapters/slider.js +8 -0
  114. package/adapters/slider.mjs +47 -0
  115. package/adapters/sortable.d.ts +17 -0
  116. package/adapters/sortable.js +8 -0
  117. package/adapters/sortable.mjs +67 -0
  118. package/adapters/spreadsheet.d.ts +32 -0
  119. package/adapters/spreadsheet.js +8 -0
  120. package/adapters/spreadsheet.mjs +256 -0
  121. package/adapters/stepper.d.ts +23 -0
  122. package/adapters/stepper.js +8 -0
  123. package/adapters/stepper.mjs +47 -0
  124. package/adapters/switch.d.ts +17 -0
  125. package/adapters/switch.js +8 -0
  126. package/adapters/switch.mjs +48 -0
  127. package/adapters/tabstrip.d.ts +19 -0
  128. package/adapters/tabstrip.js +8 -0
  129. package/adapters/tabstrip.mjs +47 -0
  130. package/adapters/taskboard.d.ts +20 -0
  131. package/adapters/taskboard.js +8 -0
  132. package/adapters/taskboard.mjs +104 -0
  133. package/adapters/textarea.d.ts +16 -0
  134. package/adapters/textarea.js +8 -0
  135. package/adapters/textarea.mjs +57 -0
  136. package/adapters/textbox.d.ts +19 -0
  137. package/adapters/textbox.js +8 -0
  138. package/adapters/textbox.mjs +61 -0
  139. package/adapters/timepicker.d.ts +16 -0
  140. package/adapters/timepicker.js +8 -0
  141. package/adapters/timepicker.mjs +59 -0
  142. package/adapters/treelist.d.ts +81 -0
  143. package/adapters/treelist.js +8 -0
  144. package/adapters/treelist.mjs +403 -0
  145. package/adapters/treeview.d.ts +25 -0
  146. package/adapters/treeview.js +9 -0
  147. package/adapters/treeview.mjs +212 -0
  148. package/adapters/upload.d.ts +15 -0
  149. package/adapters/upload.js +8 -0
  150. package/adapters/upload.mjs +52 -0
  151. package/adapters/utils.d.ts +16 -0
  152. package/adapters/utils.js +8 -0
  153. package/adapters/utils.mjs +25 -0
  154. package/adapters/window.d.ts +17 -0
  155. package/adapters/window.js +8 -0
  156. package/adapters/window.mjs +99 -0
  157. package/commands/aiprompt.d.ts +30 -0
  158. package/commands/aiprompt.js +8 -0
  159. package/commands/aiprompt.mjs +54 -0
  160. package/commands/autocomplete.d.ts +26 -0
  161. package/commands/autocomplete.js +8 -0
  162. package/commands/autocomplete.mjs +36 -0
  163. package/commands/button.d.ts +19 -0
  164. package/commands/button.js +8 -0
  165. package/commands/button.mjs +21 -0
  166. package/commands/calendar.d.ts +29 -0
  167. package/commands/calendar.js +8 -0
  168. package/commands/calendar.mjs +52 -0
  169. package/commands/chart.d.ts +27 -0
  170. package/commands/chart.js +8 -0
  171. package/commands/chart.mjs +43 -0
  172. package/commands/chat.d.ts +22 -0
  173. package/commands/chat.js +8 -0
  174. package/commands/chat.mjs +30 -0
  175. package/commands/checkbox.d.ts +26 -0
  176. package/commands/checkbox.js +8 -0
  177. package/commands/checkbox.mjs +36 -0
  178. package/commands/colorpicker.d.ts +26 -0
  179. package/commands/colorpicker.js +8 -0
  180. package/commands/colorpicker.mjs +36 -0
  181. package/commands/combobox.d.ts +34 -0
  182. package/commands/combobox.js +8 -0
  183. package/commands/combobox.mjs +48 -0
  184. package/commands/dashboard.d.ts +19 -0
  185. package/commands/dashboard.js +8 -0
  186. package/commands/dashboard.mjs +21 -0
  187. package/commands/datepicker.d.ts +26 -0
  188. package/commands/datepicker.js +8 -0
  189. package/commands/datepicker.mjs +36 -0
  190. package/commands/daterangepicker.d.ts +27 -0
  191. package/commands/daterangepicker.js +8 -0
  192. package/commands/daterangepicker.mjs +37 -0
  193. package/commands/datetimepicker.d.ts +26 -0
  194. package/commands/datetimepicker.js +8 -0
  195. package/commands/datetimepicker.mjs +36 -0
  196. package/commands/dialog.d.ts +23 -0
  197. package/commands/dialog.js +8 -0
  198. package/commands/dialog.mjs +25 -0
  199. package/commands/drawer.d.ts +30 -0
  200. package/commands/drawer.js +8 -0
  201. package/commands/drawer.mjs +38 -0
  202. package/commands/dropdownlist.d.ts +30 -0
  203. package/commands/dropdownlist.js +8 -0
  204. package/commands/dropdownlist.mjs +42 -0
  205. package/commands/dropdowntree.d.ts +34 -0
  206. package/commands/dropdowntree.js +8 -0
  207. package/commands/dropdowntree.mjs +48 -0
  208. package/commands/editor.d.ts +26 -0
  209. package/commands/editor.js +8 -0
  210. package/commands/editor.mjs +36 -0
  211. package/commands/form.d.ts +34 -0
  212. package/commands/form.js +8 -0
  213. package/commands/form.mjs +54 -0
  214. package/commands/gantt.d.ts +119 -0
  215. package/commands/gantt.js +8 -0
  216. package/commands/gantt.mjs +156 -0
  217. package/commands/grid.d.ts +209 -0
  218. package/commands/grid.js +8 -0
  219. package/commands/grid.mjs +280 -0
  220. package/commands/index.d.ts +58 -0
  221. package/commands/listbox.d.ts +31 -0
  222. package/commands/listbox.js +8 -0
  223. package/commands/listbox.mjs +69 -0
  224. package/commands/listview.d.ts +22 -0
  225. package/commands/listview.js +8 -0
  226. package/commands/listview.mjs +29 -0
  227. package/commands/map.d.ts +43 -0
  228. package/commands/map.js +8 -0
  229. package/commands/map.mjs +77 -0
  230. package/commands/maskedtextbox.d.ts +26 -0
  231. package/commands/maskedtextbox.js +8 -0
  232. package/commands/maskedtextbox.mjs +36 -0
  233. package/commands/menu.d.ts +22 -0
  234. package/commands/menu.js +8 -0
  235. package/commands/menu.mjs +30 -0
  236. package/commands/multicolumncombobox.d.ts +34 -0
  237. package/commands/multicolumncombobox.js +8 -0
  238. package/commands/multicolumncombobox.mjs +48 -0
  239. package/commands/multiselect.d.ts +41 -0
  240. package/commands/multiselect.js +8 -0
  241. package/commands/multiselect.mjs +57 -0
  242. package/commands/notification.d.ts +27 -0
  243. package/commands/notification.js +8 -0
  244. package/commands/notification.mjs +46 -0
  245. package/commands/numerictextbox.d.ts +34 -0
  246. package/commands/numerictextbox.js +8 -0
  247. package/commands/numerictextbox.mjs +48 -0
  248. package/commands/panelbar.d.ts +29 -0
  249. package/commands/panelbar.js +8 -0
  250. package/commands/panelbar.mjs +43 -0
  251. package/commands/pivotgrid.d.ts +56 -0
  252. package/commands/pivotgrid.js +8 -0
  253. package/commands/pivotgrid.mjs +87 -0
  254. package/commands/rangeslider.d.ts +23 -0
  255. package/commands/rangeslider.js +8 -0
  256. package/commands/rangeslider.mjs +25 -0
  257. package/commands/rating.d.ts +26 -0
  258. package/commands/rating.js +8 -0
  259. package/commands/rating.mjs +36 -0
  260. package/commands/scheduler.d.ts +45 -0
  261. package/commands/scheduler.js +8 -0
  262. package/commands/scheduler.mjs +59 -0
  263. package/commands/scrollview.d.ts +30 -0
  264. package/commands/scrollview.js +8 -0
  265. package/commands/scrollview.mjs +46 -0
  266. package/commands/signature.d.ts +19 -0
  267. package/commands/signature.js +8 -0
  268. package/commands/signature.mjs +21 -0
  269. package/commands/slider.d.ts +22 -0
  270. package/commands/slider.js +8 -0
  271. package/commands/slider.mjs +24 -0
  272. package/commands/sortable.d.ts +23 -0
  273. package/commands/sortable.js +8 -0
  274. package/commands/sortable.mjs +32 -0
  275. package/commands/spreadsheet.d.ts +92 -0
  276. package/commands/spreadsheet.js +8 -0
  277. package/commands/spreadsheet.mjs +181 -0
  278. package/commands/stepper.d.ts +22 -0
  279. package/commands/stepper.js +8 -0
  280. package/commands/stepper.mjs +35 -0
  281. package/commands/switch.d.ts +26 -0
  282. package/commands/switch.js +8 -0
  283. package/commands/switch.mjs +36 -0
  284. package/commands/tabstrip.d.ts +23 -0
  285. package/commands/tabstrip.js +8 -0
  286. package/commands/tabstrip.mjs +30 -0
  287. package/commands/taskboard.d.ts +48 -0
  288. package/commands/taskboard.js +8 -0
  289. package/commands/taskboard.mjs +90 -0
  290. package/commands/textarea.d.ts +26 -0
  291. package/commands/textarea.js +8 -0
  292. package/commands/textarea.mjs +36 -0
  293. package/commands/textbox.d.ts +26 -0
  294. package/commands/textbox.js +8 -0
  295. package/commands/textbox.mjs +36 -0
  296. package/commands/timepicker.d.ts +26 -0
  297. package/commands/timepicker.js +8 -0
  298. package/commands/timepicker.mjs +36 -0
  299. package/commands/treelist.d.ts +135 -0
  300. package/commands/treelist.js +8 -0
  301. package/commands/treelist.mjs +177 -0
  302. package/commands/treeview.d.ts +44 -0
  303. package/commands/treeview.js +8 -0
  304. package/commands/treeview.mjs +84 -0
  305. package/commands/upload.d.ts +19 -0
  306. package/commands/upload.js +8 -0
  307. package/commands/upload.mjs +21 -0
  308. package/commands/window.d.ts +35 -0
  309. package/commands/window.js +8 -0
  310. package/commands/window.mjs +45 -0
  311. package/dist/cdn/js/kendo-react-webmcp.js +15 -0
  312. package/grid-mcp-tools.d.ts +26 -0
  313. package/grid-mcp-tools.js +8 -0
  314. package/grid-mcp-tools.mjs +75 -0
  315. package/index.d.mts +68 -0
  316. package/index.d.ts +68 -0
  317. package/index.js +8 -0
  318. package/index.mjs +308 -0
  319. package/mcp-types.d.ts +12 -0
  320. package/package.json +64 -0
  321. package/schemas/common.d.ts +27 -0
  322. package/schemas/common.js +8 -0
  323. package/schemas/common.mjs +113 -0
  324. package/schemas/gantt.d.ts +10 -0
  325. package/schemas/gantt.js +8 -0
  326. package/schemas/gantt.mjs +51 -0
  327. package/schemas/grid.d.ts +10 -0
  328. package/schemas/grid.js +8 -0
  329. package/schemas/grid.mjs +46 -0
  330. package/schemas/index.d.ts +13 -0
  331. package/schemas/input.d.ts +19 -0
  332. package/schemas/input.js +8 -0
  333. package/schemas/input.mjs +137 -0
  334. package/schemas/scheduler.d.ts +11 -0
  335. package/schemas/scheduler.js +8 -0
  336. package/schemas/scheduler.mjs +58 -0
  337. package/schemas/table.d.ts +12 -0
  338. package/schemas/table.js +8 -0
  339. package/schemas/table.mjs +87 -0
  340. package/types.d.ts +39 -0
@@ -0,0 +1,256 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { SpreadsheetCommands as n, getSpreadsheetToolSchema as S } from "../commands/spreadsheet.mjs";
9
+ function h(t, r) {
10
+ if (!(r != null && r.instance))
11
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
12
+ const e = t.ref;
13
+ if (!e)
14
+ return { content: [{ type: "text", text: 'Missing required argument: ref (e.g. "A1")' }], isError: !0 };
15
+ const a = r.activeSheet();
16
+ return a ? (a.range(e).value(t.value), { content: [{ type: "text", text: `Set ${e} = ${JSON.stringify(t.value)}.` }] }) : { content: [{ type: "text", text: "No active sheet." }], isError: !0 };
17
+ }
18
+ function y(t, r) {
19
+ if (!(r != null && r.instance))
20
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
21
+ const e = t.cells;
22
+ if (!Array.isArray(e) || e.length === 0)
23
+ return {
24
+ content: [{ type: "text", text: "Missing required argument: cells (array of {ref, value})" }],
25
+ isError: !0
26
+ };
27
+ const a = r.activeSheet();
28
+ if (!a)
29
+ return { content: [{ type: "text", text: "No active sheet." }], isError: !0 };
30
+ for (const o of e)
31
+ o.ref && a.range(o.ref).value(o.value);
32
+ return { content: [{ type: "text", text: `Set ${e.length} cell(s).` }] };
33
+ }
34
+ function v(t, r) {
35
+ if (!r)
36
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
37
+ const e = t.name;
38
+ if (!e)
39
+ return { content: [{ type: "text", text: "Missing required argument: name" }], isError: !0 };
40
+ const o = r.sheets().find((s) => s.name() === e);
41
+ return o ? (r.activeSheet(o), { content: [{ type: "text", text: `Switched to sheet "${e}".` }] }) : { content: [{ type: "text", text: `Sheet "${e}" not found.` }], isError: !0 };
42
+ }
43
+ function b(t, r) {
44
+ if (!(r != null && r.instance))
45
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
46
+ const e = r.instance;
47
+ if (e.insertSheet) {
48
+ const s = t.name;
49
+ e.insertSheet(s ? { name: s } : void 0);
50
+ }
51
+ const a = t.name;
52
+ return { content: [{ type: "text", text: a ? 'Sheet "' + a + '" added.' : "Sheet added." }] };
53
+ }
54
+ function E(t, r) {
55
+ if (!(r != null && r.instance))
56
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
57
+ const e = t.name;
58
+ if (!e)
59
+ return { content: [{ type: "text", text: "Missing required argument: name" }], isError: !0 };
60
+ const a = r.activeSheet();
61
+ if (!a)
62
+ return { content: [{ type: "text", text: "No active sheet." }], isError: !0 };
63
+ const o = r.instance;
64
+ if (o.renameSheet)
65
+ o.renameSheet(a, e);
66
+ else
67
+ return { content: [{ type: "text", text: "Rename sheet is not supported by this instance." }], isError: !0 };
68
+ return { content: [{ type: "text", text: `Sheet renamed to "${e}".` }] };
69
+ }
70
+ function N(t) {
71
+ return t != null && t.instance ? (t.saveAsExcel({}), { content: [{ type: "text", text: "Export triggered." }] }) : { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
72
+ }
73
+ function g(t, r) {
74
+ if (!(r != null && r.instance))
75
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
76
+ const e = t.ref;
77
+ if (!e)
78
+ return { content: [{ type: "text", text: 'Missing required argument: ref (e.g. "A1")' }], isError: !0 };
79
+ const a = r.activeSheet();
80
+ if (!a)
81
+ return { content: [{ type: "text", text: "No active sheet." }], isError: !0 };
82
+ const o = a.range(e).value();
83
+ return { content: [{ type: "text", text: JSON.stringify(o) }] };
84
+ }
85
+ function C(t) {
86
+ if (!t)
87
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
88
+ const r = t.toJSON();
89
+ return { content: [{ type: "text", text: JSON.stringify(r) }] };
90
+ }
91
+ function T(t, r) {
92
+ if (!r)
93
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
94
+ const e = t.data;
95
+ return !e || typeof e != "object" ? { content: [{ type: "text", text: "Missing required argument: data (object)" }], isError: !0 } : (r.fromJSON(e), { content: [{ type: "text", text: "Workbook data loaded." }] });
96
+ }
97
+ function $(t) {
98
+ if (!t)
99
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
100
+ const e = t.sheets().map((a) => a.name());
101
+ return { content: [{ type: "text", text: JSON.stringify(e) }] };
102
+ }
103
+ const w = {
104
+ bold: !0,
105
+ italic: !0,
106
+ underline: !0
107
+ };
108
+ function _(t, r) {
109
+ var a, o;
110
+ if (!r)
111
+ return { content: [{ type: "text", text: "Spreadsheet ref not available." }], isError: !0 };
112
+ const e = t.command;
113
+ if (!e)
114
+ return { content: [{ type: "text", text: "Missing required argument: command" }], isError: !0 };
115
+ if (w[e]) {
116
+ const s = r.activeSheet();
117
+ if (!s)
118
+ return { content: [{ type: "text", text: "No active sheet." }], isError: !0 };
119
+ const m = s.activeCell(), u = m ? (o = (a = s.range(m))[e]) == null ? void 0 : o.call(a) : !1;
120
+ r.executeCommand({
121
+ command: "PropertyChangeCommand",
122
+ options: { property: e, value: !u }
123
+ });
124
+ } else {
125
+ const s = t.options || void 0;
126
+ r.executeCommand(s ? { command: e, ...s } : { command: e });
127
+ }
128
+ return { content: [{ type: "text", text: `Command "${e}" executed.` }] };
129
+ }
130
+ const A = {
131
+ componentSuffix: "spreadsheet",
132
+ createTools(t, r, e, a) {
133
+ const o = [], s = (c) => `${e.groupName}_${c}`, m = [
134
+ {
135
+ name: "set_cell",
136
+ description: `Set a cell value in the ${e.dataName} spreadsheet.`,
137
+ commandType: n.SetCell,
138
+ enabled: !0
139
+ },
140
+ {
141
+ name: "set_cells",
142
+ description: `Set multiple cell values at once in the ${e.dataName} spreadsheet. Preferred over multiple set_cell calls.`,
143
+ commandType: n.SetCells,
144
+ enabled: !0
145
+ },
146
+ {
147
+ name: "get_cell",
148
+ description: `Get the value of a cell in the ${e.dataName} spreadsheet.`,
149
+ commandType: n.GetCell,
150
+ enabled: !0
151
+ },
152
+ {
153
+ name: "get_data",
154
+ description: `Get the full workbook data from the ${e.dataName} spreadsheet as JSON.`,
155
+ commandType: n.GetData,
156
+ enabled: !0
157
+ },
158
+ {
159
+ name: "set_data",
160
+ description: `Load workbook data into the ${e.dataName} spreadsheet from a JSON object.`,
161
+ commandType: n.SetData,
162
+ enabled: !0
163
+ },
164
+ {
165
+ name: "get_sheets",
166
+ description: `Get the names of all sheets in the ${e.dataName} spreadsheet.`,
167
+ commandType: n.GetSheets,
168
+ enabled: !0
169
+ },
170
+ {
171
+ name: "switch_sheet",
172
+ description: `Switch the active sheet in the ${e.dataName} spreadsheet by name.`,
173
+ commandType: n.SwitchSheet,
174
+ enabled: !0
175
+ },
176
+ {
177
+ name: "navigate_sheet",
178
+ description: `Switch the active sheet in the ${e.dataName} spreadsheet.`,
179
+ commandType: n.NavigateSheet,
180
+ enabled: !0
181
+ },
182
+ {
183
+ name: "add_sheet",
184
+ description: `Add a new sheet to the ${e.dataName} spreadsheet.`,
185
+ commandType: n.AddSheet,
186
+ enabled: !0
187
+ },
188
+ {
189
+ name: "rename_sheet",
190
+ description: `Rename the active sheet in the ${e.dataName} spreadsheet.`,
191
+ commandType: n.RenameSheet,
192
+ enabled: !0
193
+ },
194
+ {
195
+ name: "export",
196
+ description: `Export the ${e.dataName} spreadsheet (triggers Excel download).`,
197
+ commandType: n.Export,
198
+ enabled: !0
199
+ },
200
+ {
201
+ name: "execute_command",
202
+ description: `Execute a command (e.g. bold, italic, underline, undo, redo) on the selected cells in the ${e.dataName} spreadsheet.`,
203
+ commandType: n.ExecuteCommand,
204
+ enabled: !0
205
+ }
206
+ ], u = r.current.webMcp, p = typeof u == "object" && u !== null && typeof u.tools == "function" ? u.tools : void 0, d = p ? p(m) : m, x = async (c, i) => {
207
+ switch (c) {
208
+ case n.SetCell:
209
+ return h(i, t);
210
+ case n.SetCells:
211
+ return y(i, t);
212
+ case n.GetCell:
213
+ return g(i, t);
214
+ case n.GetData:
215
+ return C(t);
216
+ case n.SetData:
217
+ return T(i, t);
218
+ case n.GetSheets:
219
+ return $(t);
220
+ case n.SwitchSheet:
221
+ case n.NavigateSheet:
222
+ return v(i, t);
223
+ case n.AddSheet:
224
+ return b(i, t);
225
+ case n.RenameSheet:
226
+ return E(i, t);
227
+ case n.ExecuteCommand:
228
+ return _(i, t);
229
+ case n.Export:
230
+ return N(t);
231
+ default:
232
+ return { content: [{ type: "text", text: `Unknown command: ${c}` }], isError: !0 };
233
+ }
234
+ };
235
+ for (const c of d) {
236
+ if (!c.enabled)
237
+ continue;
238
+ const i = S(c.commandType), l = c.commandType;
239
+ try {
240
+ o.push(
241
+ a.registerTool({
242
+ name: s(c.name),
243
+ description: c.description,
244
+ inputSchema: i,
245
+ execute: async (f) => x(l, f || {})
246
+ })
247
+ );
248
+ } catch {
249
+ }
250
+ }
251
+ return o;
252
+ }
253
+ };
254
+ export {
255
+ A as spreadsheetAdapter
256
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface StepperAdapterProps {
10
+ value?: number;
11
+ items?: Array<{
12
+ label?: string;
13
+ text?: string;
14
+ disabled?: boolean;
15
+ }>;
16
+ onChange?: (event: {
17
+ value: number;
18
+ }) => void;
19
+ webMcp?: unknown;
20
+ }
21
+ /** @hidden */
22
+ export declare const stepperAdapter: ToolAdapter<unknown, StepperAdapterProps>;
23
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../commands/stepper.js"),f={componentSuffix:"stepper",createTools(h,s,i,u){const l=[],g=e=>`${i.groupName}_${e}`,a=s.current,c=a.items?a.items.length-1:void 0,m=[{name:"step",description:`Navigate to a step in the ${i.dataName} stepper.`+(c!==void 0?` Valid values: 0-${c}.`:""),commandType:p.StepperCommands.Step,enabled:!!a.onChange}],t=s.current.webMcp,d=typeof t=="object"&&t!==null&&typeof t.tools=="function"?t.tools:void 0,y=d?d(m):m,S=async(e,r)=>{if(e===p.StepperCommands.Step){const o=r.value,n=s.current;return n.onChange&&n.onChange({value:o}),{content:[{type:"text",text:`Navigated to step ${o}.`}]}}return{content:[{type:"text",text:`Unknown command: ${e}`}],isError:!0}};for(const e of y){if(!e.enabled)continue;const r=p.getStepperToolSchema(e.commandType,c),o=e.commandType;try{l.push(u.registerTool({name:g(e.name),description:e.description,inputSchema:r,execute:async n=>S(o,n||{})}))}catch{}}return l}};exports.stepperAdapter=f;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { StepperCommands as d, getStepperToolSchema as y } from "../commands/stepper.mjs";
9
+ const S = {
10
+ componentSuffix: "stepper",
11
+ createTools(v, c, r, u) {
12
+ const i = [], f = (t) => `${r.groupName}_${t}`, a = c.current, s = a.items ? a.items.length - 1 : void 0, m = [
13
+ {
14
+ name: "step",
15
+ description: `Navigate to a step in the ${r.dataName} stepper.` + (s !== void 0 ? ` Valid values: 0-${s}.` : ""),
16
+ commandType: d.Step,
17
+ enabled: !!a.onChange
18
+ }
19
+ ], e = c.current.webMcp, l = typeof e == "object" && e !== null && typeof e.tools == "function" ? e.tools : void 0, g = l ? l(m) : m, h = async (t, p) => {
20
+ if (t === d.Step) {
21
+ const o = p.value, n = c.current;
22
+ return n.onChange && n.onChange({ value: o }), { content: [{ type: "text", text: `Navigated to step ${o}.` }] };
23
+ }
24
+ return { content: [{ type: "text", text: `Unknown command: ${t}` }], isError: !0 };
25
+ };
26
+ for (const t of g) {
27
+ if (!t.enabled)
28
+ continue;
29
+ const p = y(t.commandType, s), o = t.commandType;
30
+ try {
31
+ i.push(
32
+ u.registerTool({
33
+ name: f(t.name),
34
+ description: t.description,
35
+ inputSchema: p,
36
+ execute: async (n) => h(o, n || {})
37
+ })
38
+ );
39
+ } catch {
40
+ }
41
+ }
42
+ return i;
43
+ }
44
+ };
45
+ export {
46
+ S as stepperAdapter
47
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface SwitchAdapterProps {
10
+ checked?: boolean;
11
+ value?: boolean;
12
+ onChange?: (event: Record<string, unknown>) => void;
13
+ webMcp?: unknown;
14
+ }
15
+ /** @hidden */
16
+ export declare const switchAdapter: ToolAdapter<unknown, SwitchAdapterProps>;
17
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../commands/switch.js"),T={componentSuffix:"switch",createTools(d,r,a,h){const i=[],f=t=>`${a.groupName}_${t}`,l=r.current,u=[{name:"toggle",description:`Toggle the ${a.dataName} switch on or off.`,commandType:s.SwitchCommands.Toggle,enabled:!!l.onChange}],e=l.webMcp,g=typeof e=="object"&&e!==null&&typeof e.tools=="function"?e.tools:void 0,w=g?g(u):u,y=async(t,c)=>{var o,m;if(t===s.SwitchCommands.Toggle){const n=r.current,p=(m=(o=n.checked)!=null?o:n.value)!=null?m:!1;return n.onChange&&n.onChange({value:!p,syntheticEvent:null,target:d}),{content:[{type:"text",text:`Switch toggled to ${p?"off":"on"}.`}]}}return{content:[{type:"text",text:`Unknown command: ${t}`}],isError:!0}};for(const t of w){if(!t.enabled)continue;const c=t.commandType;try{i.push(h.registerTool({name:f(t.name),description:t.description,inputSchema:s.getSwitchToolSchema(c),execute:async o=>y(c,o||{})}))}catch{}}return i}};exports.switchAdapter=T;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { SwitchCommands as u, getSwitchToolSchema as T } from "../commands/switch.mjs";
9
+ const C = {
10
+ componentSuffix: "switch",
11
+ createTools(f, s, r, h) {
12
+ const a = [], d = (t) => `${r.groupName}_${t}`, i = s.current, l = [
13
+ {
14
+ name: "toggle",
15
+ description: `Toggle the ${r.dataName} switch on or off.`,
16
+ commandType: u.Toggle,
17
+ enabled: !!i.onChange
18
+ }
19
+ ], o = i.webMcp, m = typeof o == "object" && o !== null && typeof o.tools == "function" ? o.tools : void 0, y = m ? m(l) : l, w = async (t, c) => {
20
+ var e, p;
21
+ if (t === u.Toggle) {
22
+ const n = s.current, g = (p = (e = n.checked) != null ? e : n.value) != null ? p : !1;
23
+ return n.onChange && n.onChange({ value: !g, syntheticEvent: null, target: f }), { content: [{ type: "text", text: `Switch toggled to ${g ? "off" : "on"}.` }] };
24
+ }
25
+ return { content: [{ type: "text", text: `Unknown command: ${t}` }], isError: !0 };
26
+ };
27
+ for (const t of y) {
28
+ if (!t.enabled)
29
+ continue;
30
+ const c = t.commandType;
31
+ try {
32
+ a.push(
33
+ h.registerTool({
34
+ name: d(t.name),
35
+ description: t.description,
36
+ inputSchema: T(c),
37
+ execute: async (e) => w(c, e || {})
38
+ })
39
+ );
40
+ } catch {
41
+ }
42
+ }
43
+ return a;
44
+ }
45
+ };
46
+ export {
47
+ C as switchAdapter
48
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface TabStripAdapterProps {
10
+ onSelect?: (event: unknown) => void;
11
+ tabs?: Array<{
12
+ title?: string;
13
+ disabled?: boolean;
14
+ }>;
15
+ webMcp?: unknown;
16
+ }
17
+ /** @hidden */
18
+ export declare const tabStripAdapter: ToolAdapter<unknown, TabStripAdapterProps>;
19
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../commands/tabstrip.js"),T={componentSuffix:"tabstrip",createTools(y,c,s,d){const i=[],m=t=>`${s.groupName}_${t}`,b=c.current,l=[{name:"select_tab",description:`Select a tab in the ${s.dataName} tab strip. Tab indices start at 0.`,commandType:r.TabStripCommands.SelectTab,enabled:!!b.onSelect}],e=c.current.webMcp,p=typeof e=="object"&&e!==null&&typeof e.tools=="function"?e.tools:void 0,u=p?p(l):l,S=async(t,a)=>{if(t===r.TabStripCommands.SelectTab){const n=c.current,o=a.index;return n.onSelect&&n.onSelect({selected:o}),{content:[{type:"text",text:`Tab ${o} selected.`}]}}return{content:[{type:"text",text:`Unknown command: ${t}`}],isError:!0}};for(const t of u){if(!t.enabled)continue;const a=r.getTabStripToolSchema(t.commandType),n=t.commandType;try{i.push(d.registerTool({name:m(t.name),description:t.description,inputSchema:a,execute:async o=>S(n,o||{})}))}catch{}}return i}};exports.tabStripAdapter=T;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { TabStripCommands as p, getTabStripToolSchema as S } from "../commands/tabstrip.mjs";
9
+ const y = {
10
+ componentSuffix: "tabstrip",
11
+ createTools(f, c, s, m) {
12
+ const r = [], d = (t) => `${s.groupName}_${t}`, b = c.current, i = [
13
+ {
14
+ name: "select_tab",
15
+ description: `Select a tab in the ${s.dataName} tab strip. Tab indices start at 0.`,
16
+ commandType: p.SelectTab,
17
+ enabled: !!b.onSelect
18
+ }
19
+ ], e = c.current.webMcp, l = typeof e == "object" && e !== null && typeof e.tools == "function" ? e.tools : void 0, u = l ? l(i) : i, T = async (t, a) => {
20
+ if (t === p.SelectTab) {
21
+ const o = c.current, n = a.index;
22
+ return o.onSelect && o.onSelect({ selected: n }), { content: [{ type: "text", text: `Tab ${n} selected.` }] };
23
+ }
24
+ return { content: [{ type: "text", text: `Unknown command: ${t}` }], isError: !0 };
25
+ };
26
+ for (const t of u) {
27
+ if (!t.enabled)
28
+ continue;
29
+ const a = S(t.commandType), o = t.commandType;
30
+ try {
31
+ r.push(
32
+ m.registerTool({
33
+ name: d(t.name),
34
+ description: t.description,
35
+ inputSchema: a,
36
+ execute: async (n) => T(o, n || {})
37
+ })
38
+ );
39
+ } catch {
40
+ }
41
+ }
42
+ return r;
43
+ }
44
+ };
45
+ export {
46
+ y as tabStripAdapter
47
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface TaskBoardAdapterProps {
10
+ columns?: Record<string, unknown>[];
11
+ taskData?: Record<string, unknown>[];
12
+ onCardMove?: (event: Record<string, unknown>) => void;
13
+ onCardAdd?: (event: Record<string, unknown>) => void;
14
+ onCardRemove?: (event: Record<string, unknown>) => void;
15
+ onCardChange?: (event: Record<string, unknown>) => void;
16
+ webMcp?: unknown;
17
+ }
18
+ /** @hidden */
19
+ export declare const taskboardAdapter: ToolAdapter<unknown, TaskBoardAdapterProps>;
20
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../commands/taskboard.js"),h={componentSuffix:"taskboard",createTools(o,d,n,v){const m=[],x=e=>`${n.groupName}_${e}`,r=d.current,l=[{name:"add_card",description:`Add a new card to a column in the ${n.dataName} task board`,commandType:a.TaskBoardCommands.AddCard,enabled:!!r.onCardAdd},{name:"move_card",description:`Move a card to a different column in the ${n.dataName} task board`,commandType:a.TaskBoardCommands.MoveCard,enabled:!!r.onCardMove},{name:"edit_card",description:`Edit a card's details in the ${n.dataName} task board`,commandType:a.TaskBoardCommands.EditCard,enabled:!!r.onCardChange},{name:"delete_card",description:`Delete a card from the ${n.dataName} task board`,commandType:a.TaskBoardCommands.DeleteCard,enabled:!!r.onCardRemove}],c=d.current.webMcp,u=typeof c=="object"&&c!==null&&typeof c.tools=="function"?c.tools:void 0,S=u?u(l):l,$=async(e,t)=>{var s,i,C,p,y,T,b,k;switch(e){case a.TaskBoardCommands.AddCard:return(i=(s=d.current).onCardAdd)==null||i.call(s,{item:{title:t.title,status:t.status,description:t.description},syntheticEvent:null,target:o}),{content:[{type:"text",text:`Card "${String(t.title)}" added to column "${String(t.status)}".`}]};case a.TaskBoardCommands.MoveCard:return(p=(C=d.current).onCardMove)==null||p.call(C,{item:{id:t.cardId},status:t.targetStatus,syntheticEvent:null,target:o}),{content:[{type:"text",text:`Card "${String(t.cardId)}" moved to "${String(t.targetStatus)}".`}]};case a.TaskBoardCommands.EditCard:return(T=(y=d.current).onCardChange)==null||T.call(y,{item:{id:t.cardId,title:t.title,description:t.description},syntheticEvent:null,target:o}),{content:[{type:"text",text:`Card "${String(t.cardId)}" updated.`}]};case a.TaskBoardCommands.DeleteCard:return(k=(b=d.current).onCardRemove)==null||k.call(b,{item:{id:t.cardId},syntheticEvent:null,target:o}),{content:[{type:"text",text:`Card "${String(t.cardId)}" deleted.`}]};default:return{content:[{type:"text",text:`Unknown command: ${e}`}],isError:!0}}};for(const e of S){if(!e.enabled)continue;const t=a.getTaskBoardToolSchema(e.commandType),s=e.commandType;try{m.push(v.registerTool({name:x(e.name),description:e.description,inputSchema:t,execute:async i=>$(s,i||{})}))}catch{}}return m}};exports.taskboardAdapter=h;
@@ -0,0 +1,104 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { TaskBoardCommands as n, getTaskBoardToolSchema as k } from "../commands/taskboard.mjs";
9
+ const M = {
10
+ componentSuffix: "taskboard",
11
+ createTools(o, a, d, $) {
12
+ const m = [], h = (e) => `${d.groupName}_${e}`, r = a.current, l = [
13
+ {
14
+ name: "add_card",
15
+ description: `Add a new card to a column in the ${d.dataName} task board`,
16
+ commandType: n.AddCard,
17
+ enabled: !!r.onCardAdd
18
+ },
19
+ {
20
+ name: "move_card",
21
+ description: `Move a card to a different column in the ${d.dataName} task board`,
22
+ commandType: n.MoveCard,
23
+ enabled: !!r.onCardMove
24
+ },
25
+ {
26
+ name: "edit_card",
27
+ description: `Edit a card's details in the ${d.dataName} task board`,
28
+ commandType: n.EditCard,
29
+ enabled: !!r.onCardChange
30
+ },
31
+ {
32
+ name: "delete_card",
33
+ description: `Delete a card from the ${d.dataName} task board`,
34
+ commandType: n.DeleteCard,
35
+ enabled: !!r.onCardRemove
36
+ }
37
+ ], c = a.current.webMcp, u = typeof c == "object" && c !== null && typeof c.tools == "function" ? c.tools : void 0, T = u ? u(l) : l, S = async (e, t) => {
38
+ var i, s, p, C, y, b, v, x;
39
+ switch (e) {
40
+ case n.AddCard:
41
+ return (s = (i = a.current).onCardAdd) == null || s.call(i, {
42
+ item: { title: t.title, status: t.status, description: t.description },
43
+ syntheticEvent: null,
44
+ target: o
45
+ }), {
46
+ content: [
47
+ {
48
+ type: "text",
49
+ text: `Card "${String(t.title)}" added to column "${String(t.status)}".`
50
+ }
51
+ ]
52
+ };
53
+ case n.MoveCard:
54
+ return (C = (p = a.current).onCardMove) == null || C.call(p, {
55
+ item: { id: t.cardId },
56
+ status: t.targetStatus,
57
+ syntheticEvent: null,
58
+ target: o
59
+ }), {
60
+ content: [
61
+ {
62
+ type: "text",
63
+ text: `Card "${String(t.cardId)}" moved to "${String(t.targetStatus)}".`
64
+ }
65
+ ]
66
+ };
67
+ case n.EditCard:
68
+ return (b = (y = a.current).onCardChange) == null || b.call(y, {
69
+ item: { id: t.cardId, title: t.title, description: t.description },
70
+ syntheticEvent: null,
71
+ target: o
72
+ }), { content: [{ type: "text", text: `Card "${String(t.cardId)}" updated.` }] };
73
+ case n.DeleteCard:
74
+ return (x = (v = a.current).onCardRemove) == null || x.call(v, {
75
+ item: { id: t.cardId },
76
+ syntheticEvent: null,
77
+ target: o
78
+ }), { content: [{ type: "text", text: `Card "${String(t.cardId)}" deleted.` }] };
79
+ default:
80
+ return { content: [{ type: "text", text: `Unknown command: ${e}` }], isError: !0 };
81
+ }
82
+ };
83
+ for (const e of T) {
84
+ if (!e.enabled)
85
+ continue;
86
+ const t = k(e.commandType), i = e.commandType;
87
+ try {
88
+ m.push(
89
+ $.registerTool({
90
+ name: h(e.name),
91
+ description: e.description,
92
+ inputSchema: t,
93
+ execute: async (s) => S(i, s || {})
94
+ })
95
+ );
96
+ } catch {
97
+ }
98
+ }
99
+ return m;
100
+ }
101
+ };
102
+ export {
103
+ M as taskboardAdapter
104
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { ToolAdapter } from '../types';
9
+ interface TextAreaAdapterProps {
10
+ value?: string;
11
+ onChange?: (event: Record<string, unknown>) => void;
12
+ webMcp?: unknown;
13
+ }
14
+ /** @hidden */
15
+ export declare const textAreaAdapter: ToolAdapter<unknown, TextAreaAdapterProps>;
16
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../commands/textarea.js"),T={componentSuffix:"textarea",createTools(s,o,r,d){const l=[],p=e=>`${r.groupName}_${e}`,m=o.current,u=[{name:"set_value",description:`Set text in the ${r.dataName} text area.`,commandType:n.TextAreaCommands.SetValue,enabled:!!m.onChange},{name:"clear",description:`Clear the ${r.dataName} text area.`,commandType:n.TextAreaCommands.Clear,enabled:!!m.onChange}],a=o.current.webMcp,i=typeof a=="object"&&a!==null&&typeof a.tools=="function"?a.tools:void 0,x=i?i(u):u,y=async(e,c)=>{const t=o.current;switch(e){case n.TextAreaCommands.SetValue:return t.onChange&&t.onChange({value:c.value,syntheticEvent:null,target:s}),{content:[{type:"text",text:"Value set."}]};case n.TextAreaCommands.Clear:return t.onChange&&t.onChange({value:"",syntheticEvent:null,target:s}),{content:[{type:"text",text:"Text area cleared."}]};default:return{content:[{type:"text",text:`Unknown command: ${e}`}],isError:!0}}};for(const e of x){if(!e.enabled)continue;const c=n.getTextAreaToolSchema(e.commandType),t=e.commandType;try{l.push(d.registerTool({name:p(e.name),description:e.description,inputSchema:c,execute:async C=>y(t,C||{})}))}catch{}}return l}};exports.textAreaAdapter=T;