@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.
- package/LICENSE.md +11 -0
- package/NOTICE.txt +383 -0
- package/README.md +72 -0
- package/WebMcpProvider.d.ts +49 -0
- package/WebMcpProvider.js +8 -0
- package/WebMcpProvider.mjs +138 -0
- package/adapters/aiprompt.d.ts +15 -0
- package/adapters/aiprompt.js +8 -0
- package/adapters/aiprompt.mjs +63 -0
- package/adapters/autocomplete.d.ts +18 -0
- package/adapters/autocomplete.js +8 -0
- package/adapters/autocomplete.mjs +69 -0
- package/adapters/button.d.ts +18 -0
- package/adapters/button.js +8 -0
- package/adapters/button.mjs +46 -0
- package/adapters/calendar.d.ts +16 -0
- package/adapters/calendar.js +8 -0
- package/adapters/calendar.mjs +61 -0
- package/adapters/chart.d.ts +29 -0
- package/adapters/chart.js +8 -0
- package/adapters/chart.mjs +95 -0
- package/adapters/chat.d.ts +16 -0
- package/adapters/chat.js +8 -0
- package/adapters/chat.mjs +66 -0
- package/adapters/colorpicker.d.ts +16 -0
- package/adapters/colorpicker.js +8 -0
- package/adapters/colorpicker.mjs +60 -0
- package/adapters/combobox.d.ts +20 -0
- package/adapters/combobox.js +8 -0
- package/adapters/combobox.mjs +87 -0
- package/adapters/dashboard.d.ts +18 -0
- package/adapters/dashboard.js +8 -0
- package/adapters/dashboard.mjs +41 -0
- package/adapters/datepicker.d.ts +17 -0
- package/adapters/datepicker.js +8 -0
- package/adapters/datepicker.mjs +59 -0
- package/adapters/daterangepicker.d.ts +19 -0
- package/adapters/daterangepicker.js +8 -0
- package/adapters/daterangepicker.mjs +70 -0
- package/adapters/datetimepicker.d.ts +16 -0
- package/adapters/datetimepicker.js +8 -0
- package/adapters/datetimepicker.mjs +59 -0
- package/adapters/dialog.d.ts +15 -0
- package/adapters/dialog.js +8 -0
- package/adapters/dialog.mjs +58 -0
- package/adapters/drawer.d.ts +33 -0
- package/adapters/drawer.js +8 -0
- package/adapters/drawer.mjs +86 -0
- package/adapters/dropdownlist.d.ts +19 -0
- package/adapters/dropdownlist.js +8 -0
- package/adapters/dropdownlist.mjs +74 -0
- package/adapters/dropdowntree.d.ts +22 -0
- package/adapters/dropdowntree.js +8 -0
- package/adapters/dropdowntree.mjs +108 -0
- package/adapters/editor.d.ts +30 -0
- package/adapters/editor.js +8 -0
- package/adapters/editor.mjs +109 -0
- package/adapters/form.d.ts +20 -0
- package/adapters/form.js +10 -0
- package/adapters/form.mjs +115 -0
- package/adapters/gantt.d.ts +65 -0
- package/adapters/gantt.js +8 -0
- package/adapters/gantt.mjs +370 -0
- package/adapters/grid.d.ts +102 -0
- package/adapters/grid.js +8 -0
- package/adapters/grid.mjs +692 -0
- package/adapters/listbox.d.ts +18 -0
- package/adapters/listbox.js +8 -0
- package/adapters/listbox.mjs +87 -0
- package/adapters/listview.d.ts +22 -0
- package/adapters/listview.js +8 -0
- package/adapters/listview.mjs +80 -0
- package/adapters/map.d.ts +32 -0
- package/adapters/map.js +8 -0
- package/adapters/map.mjs +88 -0
- package/adapters/maskedtextbox.d.ts +17 -0
- package/adapters/maskedtextbox.js +8 -0
- package/adapters/maskedtextbox.mjs +57 -0
- package/adapters/menu.d.ts +16 -0
- package/adapters/menu.js +8 -0
- package/adapters/menu.mjs +50 -0
- package/adapters/multiselect.d.ts +19 -0
- package/adapters/multiselect.js +8 -0
- package/adapters/multiselect.mjs +75 -0
- package/adapters/notification.d.ts +17 -0
- package/adapters/notification.js +8 -0
- package/adapters/notification.mjs +57 -0
- package/adapters/numerictextbox.d.ts +19 -0
- package/adapters/numerictextbox.js +8 -0
- package/adapters/numerictextbox.mjs +78 -0
- package/adapters/panelbar.d.ts +17 -0
- package/adapters/panelbar.js +8 -0
- package/adapters/panelbar.mjs +66 -0
- package/adapters/pivotgrid.d.ts +16 -0
- package/adapters/pivotgrid.js +8 -0
- package/adapters/pivotgrid.mjs +126 -0
- package/adapters/rangeslider.d.ts +21 -0
- package/adapters/rangeslider.js +8 -0
- package/adapters/rangeslider.mjs +55 -0
- package/adapters/rating.d.ts +16 -0
- package/adapters/rating.js +8 -0
- package/adapters/rating.mjs +60 -0
- package/adapters/scheduler.d.ts +45 -0
- package/adapters/scheduler.js +8 -0
- package/adapters/scheduler.mjs +165 -0
- package/adapters/scrollview.d.ts +21 -0
- package/adapters/scrollview.js +8 -0
- package/adapters/scrollview.mjs +74 -0
- package/adapters/signature.d.ts +16 -0
- package/adapters/signature.js +8 -0
- package/adapters/signature.mjs +47 -0
- package/adapters/slider.d.ts +19 -0
- package/adapters/slider.js +8 -0
- package/adapters/slider.mjs +47 -0
- package/adapters/sortable.d.ts +17 -0
- package/adapters/sortable.js +8 -0
- package/adapters/sortable.mjs +67 -0
- package/adapters/spreadsheet.d.ts +32 -0
- package/adapters/spreadsheet.js +8 -0
- package/adapters/spreadsheet.mjs +256 -0
- package/adapters/stepper.d.ts +23 -0
- package/adapters/stepper.js +8 -0
- package/adapters/stepper.mjs +47 -0
- package/adapters/switch.d.ts +17 -0
- package/adapters/switch.js +8 -0
- package/adapters/switch.mjs +48 -0
- package/adapters/tabstrip.d.ts +19 -0
- package/adapters/tabstrip.js +8 -0
- package/adapters/tabstrip.mjs +47 -0
- package/adapters/taskboard.d.ts +20 -0
- package/adapters/taskboard.js +8 -0
- package/adapters/taskboard.mjs +104 -0
- package/adapters/textarea.d.ts +16 -0
- package/adapters/textarea.js +8 -0
- package/adapters/textarea.mjs +57 -0
- package/adapters/textbox.d.ts +19 -0
- package/adapters/textbox.js +8 -0
- package/adapters/textbox.mjs +61 -0
- package/adapters/timepicker.d.ts +16 -0
- package/adapters/timepicker.js +8 -0
- package/adapters/timepicker.mjs +59 -0
- package/adapters/treelist.d.ts +81 -0
- package/adapters/treelist.js +8 -0
- package/adapters/treelist.mjs +403 -0
- package/adapters/treeview.d.ts +25 -0
- package/adapters/treeview.js +9 -0
- package/adapters/treeview.mjs +212 -0
- package/adapters/upload.d.ts +15 -0
- package/adapters/upload.js +8 -0
- package/adapters/upload.mjs +52 -0
- package/adapters/utils.d.ts +16 -0
- package/adapters/utils.js +8 -0
- package/adapters/utils.mjs +25 -0
- package/adapters/window.d.ts +17 -0
- package/adapters/window.js +8 -0
- package/adapters/window.mjs +99 -0
- package/commands/aiprompt.d.ts +30 -0
- package/commands/aiprompt.js +8 -0
- package/commands/aiprompt.mjs +54 -0
- package/commands/autocomplete.d.ts +26 -0
- package/commands/autocomplete.js +8 -0
- package/commands/autocomplete.mjs +36 -0
- package/commands/button.d.ts +19 -0
- package/commands/button.js +8 -0
- package/commands/button.mjs +21 -0
- package/commands/calendar.d.ts +29 -0
- package/commands/calendar.js +8 -0
- package/commands/calendar.mjs +52 -0
- package/commands/chart.d.ts +27 -0
- package/commands/chart.js +8 -0
- package/commands/chart.mjs +43 -0
- package/commands/chat.d.ts +22 -0
- package/commands/chat.js +8 -0
- package/commands/chat.mjs +30 -0
- package/commands/checkbox.d.ts +26 -0
- package/commands/checkbox.js +8 -0
- package/commands/checkbox.mjs +36 -0
- package/commands/colorpicker.d.ts +26 -0
- package/commands/colorpicker.js +8 -0
- package/commands/colorpicker.mjs +36 -0
- package/commands/combobox.d.ts +34 -0
- package/commands/combobox.js +8 -0
- package/commands/combobox.mjs +48 -0
- package/commands/dashboard.d.ts +19 -0
- package/commands/dashboard.js +8 -0
- package/commands/dashboard.mjs +21 -0
- package/commands/datepicker.d.ts +26 -0
- package/commands/datepicker.js +8 -0
- package/commands/datepicker.mjs +36 -0
- package/commands/daterangepicker.d.ts +27 -0
- package/commands/daterangepicker.js +8 -0
- package/commands/daterangepicker.mjs +37 -0
- package/commands/datetimepicker.d.ts +26 -0
- package/commands/datetimepicker.js +8 -0
- package/commands/datetimepicker.mjs +36 -0
- package/commands/dialog.d.ts +23 -0
- package/commands/dialog.js +8 -0
- package/commands/dialog.mjs +25 -0
- package/commands/drawer.d.ts +30 -0
- package/commands/drawer.js +8 -0
- package/commands/drawer.mjs +38 -0
- package/commands/dropdownlist.d.ts +30 -0
- package/commands/dropdownlist.js +8 -0
- package/commands/dropdownlist.mjs +42 -0
- package/commands/dropdowntree.d.ts +34 -0
- package/commands/dropdowntree.js +8 -0
- package/commands/dropdowntree.mjs +48 -0
- package/commands/editor.d.ts +26 -0
- package/commands/editor.js +8 -0
- package/commands/editor.mjs +36 -0
- package/commands/form.d.ts +34 -0
- package/commands/form.js +8 -0
- package/commands/form.mjs +54 -0
- package/commands/gantt.d.ts +119 -0
- package/commands/gantt.js +8 -0
- package/commands/gantt.mjs +156 -0
- package/commands/grid.d.ts +209 -0
- package/commands/grid.js +8 -0
- package/commands/grid.mjs +280 -0
- package/commands/index.d.ts +58 -0
- package/commands/listbox.d.ts +31 -0
- package/commands/listbox.js +8 -0
- package/commands/listbox.mjs +69 -0
- package/commands/listview.d.ts +22 -0
- package/commands/listview.js +8 -0
- package/commands/listview.mjs +29 -0
- package/commands/map.d.ts +43 -0
- package/commands/map.js +8 -0
- package/commands/map.mjs +77 -0
- package/commands/maskedtextbox.d.ts +26 -0
- package/commands/maskedtextbox.js +8 -0
- package/commands/maskedtextbox.mjs +36 -0
- package/commands/menu.d.ts +22 -0
- package/commands/menu.js +8 -0
- package/commands/menu.mjs +30 -0
- package/commands/multicolumncombobox.d.ts +34 -0
- package/commands/multicolumncombobox.js +8 -0
- package/commands/multicolumncombobox.mjs +48 -0
- package/commands/multiselect.d.ts +41 -0
- package/commands/multiselect.js +8 -0
- package/commands/multiselect.mjs +57 -0
- package/commands/notification.d.ts +27 -0
- package/commands/notification.js +8 -0
- package/commands/notification.mjs +46 -0
- package/commands/numerictextbox.d.ts +34 -0
- package/commands/numerictextbox.js +8 -0
- package/commands/numerictextbox.mjs +48 -0
- package/commands/panelbar.d.ts +29 -0
- package/commands/panelbar.js +8 -0
- package/commands/panelbar.mjs +43 -0
- package/commands/pivotgrid.d.ts +56 -0
- package/commands/pivotgrid.js +8 -0
- package/commands/pivotgrid.mjs +87 -0
- package/commands/rangeslider.d.ts +23 -0
- package/commands/rangeslider.js +8 -0
- package/commands/rangeslider.mjs +25 -0
- package/commands/rating.d.ts +26 -0
- package/commands/rating.js +8 -0
- package/commands/rating.mjs +36 -0
- package/commands/scheduler.d.ts +45 -0
- package/commands/scheduler.js +8 -0
- package/commands/scheduler.mjs +59 -0
- package/commands/scrollview.d.ts +30 -0
- package/commands/scrollview.js +8 -0
- package/commands/scrollview.mjs +46 -0
- package/commands/signature.d.ts +19 -0
- package/commands/signature.js +8 -0
- package/commands/signature.mjs +21 -0
- package/commands/slider.d.ts +22 -0
- package/commands/slider.js +8 -0
- package/commands/slider.mjs +24 -0
- package/commands/sortable.d.ts +23 -0
- package/commands/sortable.js +8 -0
- package/commands/sortable.mjs +32 -0
- package/commands/spreadsheet.d.ts +92 -0
- package/commands/spreadsheet.js +8 -0
- package/commands/spreadsheet.mjs +181 -0
- package/commands/stepper.d.ts +22 -0
- package/commands/stepper.js +8 -0
- package/commands/stepper.mjs +35 -0
- package/commands/switch.d.ts +26 -0
- package/commands/switch.js +8 -0
- package/commands/switch.mjs +36 -0
- package/commands/tabstrip.d.ts +23 -0
- package/commands/tabstrip.js +8 -0
- package/commands/tabstrip.mjs +30 -0
- package/commands/taskboard.d.ts +48 -0
- package/commands/taskboard.js +8 -0
- package/commands/taskboard.mjs +90 -0
- package/commands/textarea.d.ts +26 -0
- package/commands/textarea.js +8 -0
- package/commands/textarea.mjs +36 -0
- package/commands/textbox.d.ts +26 -0
- package/commands/textbox.js +8 -0
- package/commands/textbox.mjs +36 -0
- package/commands/timepicker.d.ts +26 -0
- package/commands/timepicker.js +8 -0
- package/commands/timepicker.mjs +36 -0
- package/commands/treelist.d.ts +135 -0
- package/commands/treelist.js +8 -0
- package/commands/treelist.mjs +177 -0
- package/commands/treeview.d.ts +44 -0
- package/commands/treeview.js +8 -0
- package/commands/treeview.mjs +84 -0
- package/commands/upload.d.ts +19 -0
- package/commands/upload.js +8 -0
- package/commands/upload.mjs +21 -0
- package/commands/window.d.ts +35 -0
- package/commands/window.js +8 -0
- package/commands/window.mjs +45 -0
- package/dist/cdn/js/kendo-react-webmcp.js +15 -0
- package/grid-mcp-tools.d.ts +26 -0
- package/grid-mcp-tools.js +8 -0
- package/grid-mcp-tools.mjs +75 -0
- package/index.d.mts +68 -0
- package/index.d.ts +68 -0
- package/index.js +8 -0
- package/index.mjs +308 -0
- package/mcp-types.d.ts +12 -0
- package/package.json +64 -0
- package/schemas/common.d.ts +27 -0
- package/schemas/common.js +8 -0
- package/schemas/common.mjs +113 -0
- package/schemas/gantt.d.ts +10 -0
- package/schemas/gantt.js +8 -0
- package/schemas/gantt.mjs +51 -0
- package/schemas/grid.d.ts +10 -0
- package/schemas/grid.js +8 -0
- package/schemas/grid.mjs +46 -0
- package/schemas/index.d.ts +13 -0
- package/schemas/input.d.ts +19 -0
- package/schemas/input.js +8 -0
- package/schemas/input.mjs +137 -0
- package/schemas/scheduler.d.ts +11 -0
- package/schemas/scheduler.js +8 -0
- package/schemas/scheduler.mjs +58 -0
- package/schemas/table.d.ts +12 -0
- package/schemas/table.js +8 -0
- package/schemas/table.mjs +87 -0
- package/types.d.ts +39 -0
|
@@ -0,0 +1,52 @@
|
|
|
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 { UploadCommands as m, getUploadToolSchema as C } from "../commands/upload.mjs";
|
|
9
|
+
const b = {
|
|
10
|
+
componentSuffix: "upload",
|
|
11
|
+
createTools(i, n, c, p) {
|
|
12
|
+
const a = [], d = (e) => `${c.groupName}_${e}`, u = n.current, r = [
|
|
13
|
+
{
|
|
14
|
+
name: "clear",
|
|
15
|
+
description: `Clear all files from the ${c.dataName} upload`,
|
|
16
|
+
commandType: m.Clear,
|
|
17
|
+
enabled: !!u.onRemove
|
|
18
|
+
}
|
|
19
|
+
], t = n.current.webMcp, l = typeof t == "object" && t !== null && typeof t.tools == "function" ? t.tools : void 0, f = l ? l(r) : r, y = async (e, s) => {
|
|
20
|
+
if (e === m.Clear) {
|
|
21
|
+
const o = n.current;
|
|
22
|
+
return o.onRemove && o.onRemove({
|
|
23
|
+
newState: [],
|
|
24
|
+
affectedFiles: [],
|
|
25
|
+
syntheticEvent: null,
|
|
26
|
+
target: i
|
|
27
|
+
}), { content: [{ type: "text", text: "Upload files cleared." }] };
|
|
28
|
+
}
|
|
29
|
+
return { content: [{ type: "text", text: `Unknown command: ${e}` }], isError: !0 };
|
|
30
|
+
};
|
|
31
|
+
for (const e of f) {
|
|
32
|
+
if (!e.enabled)
|
|
33
|
+
continue;
|
|
34
|
+
const s = C(e.commandType), o = e.commandType;
|
|
35
|
+
try {
|
|
36
|
+
a.push(
|
|
37
|
+
p.registerTool({
|
|
38
|
+
name: d(e.name),
|
|
39
|
+
description: e.description,
|
|
40
|
+
inputSchema: s,
|
|
41
|
+
execute: async (x) => y(o, x || {})
|
|
42
|
+
})
|
|
43
|
+
);
|
|
44
|
+
} catch {
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return a;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
b as uploadAdapter
|
|
52
|
+
};
|
|
@@ -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
|
+
/**
|
|
9
|
+
* Shared adapter utilities for the Web MCP package.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Converts an unknown value to a human-readable string suitable for
|
|
13
|
+
* returning in tool results. Primitive values are stringified directly;
|
|
14
|
+
* objects are JSON-serialised; non-serialisable objects fall back to '[object]'.
|
|
15
|
+
*/
|
|
16
|
+
export declare function toText(value: unknown): string;
|
|
@@ -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"});function r(t){if(typeof t=="string")return t;if(t===null)return"null";if(t===void 0)return"undefined";if(typeof t=="number"||typeof t=="boolean")return t.toString();try{return JSON.stringify(t)}catch{return"[object]"}}exports.toText=r;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
function r(t) {
|
|
9
|
+
if (typeof t == "string")
|
|
10
|
+
return t;
|
|
11
|
+
if (t === null)
|
|
12
|
+
return "null";
|
|
13
|
+
if (t === void 0)
|
|
14
|
+
return "undefined";
|
|
15
|
+
if (typeof t == "number" || typeof t == "boolean")
|
|
16
|
+
return t.toString();
|
|
17
|
+
try {
|
|
18
|
+
return JSON.stringify(t);
|
|
19
|
+
} catch {
|
|
20
|
+
return "[object]";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
r as toText
|
|
25
|
+
};
|
|
@@ -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 WindowAdapterProps {
|
|
10
|
+
onOpen?: (event: unknown) => void;
|
|
11
|
+
onClose?: (event: unknown) => void;
|
|
12
|
+
onStageChange?: (event: unknown) => void;
|
|
13
|
+
webMcp?: unknown;
|
|
14
|
+
}
|
|
15
|
+
/** @hidden */
|
|
16
|
+
export declare const windowAdapter: ToolAdapter<unknown, WindowAdapterProps>;
|
|
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 n=require("../commands/window.js");function o(r,i){const a=r[i];if(typeof a=="function")return a;const s=r.webMcp;if(typeof s=="object"&&s!==null&&typeof s[i]=="function")return s[i]}const f={componentSuffix:"window",createTools(r,i,a,s){const p=[],C=t=>`${a.groupName}_${t}`,c=i.current,w=[{name:"open",description:`Open the ${a.dataName} window`,commandType:n.WindowCommands.Open,enabled:!!o(c,"onOpen")},{name:"close",description:`Close the ${a.dataName} window`,commandType:n.WindowCommands.Close,enabled:!!o(c,"onClose")},{name:"minimize",description:`Minimize the ${a.dataName} window`,commandType:n.WindowCommands.Minimize,enabled:!!o(c,"onStageChange")},{name:"maximize",description:`Maximize the ${a.dataName} window`,commandType:n.WindowCommands.Maximize,enabled:!!o(c,"onStageChange")},{name:"restore",description:`Restore the ${a.dataName} window to its default size`,commandType:n.WindowCommands.Restore,enabled:!!o(c,"onStageChange")}],m=i.current.webMcp,l=typeof m=="object"&&m!==null&&typeof m.tools=="function"?m.tools:void 0,g=l?l(w):w,y=async(t,u)=>{const d=i.current;switch(t){case n.WindowCommands.Open:{const e=o(d,"onOpen");return e&&e({}),{content:[{type:"text",text:"Window opened."}]}}case n.WindowCommands.Close:{const e=o(d,"onClose");return e&&e({}),{content:[{type:"text",text:"Window closed."}]}}case n.WindowCommands.Minimize:{const e=o(d,"onStageChange");return e&&e({state:"MINIMIZED"}),{content:[{type:"text",text:"Window minimized."}]}}case n.WindowCommands.Maximize:{const e=o(d,"onStageChange");return e&&e({state:"MAXIMIZED"}),{content:[{type:"text",text:"Window maximized."}]}}case n.WindowCommands.Restore:{const e=o(d,"onStageChange");return e&&e({state:"DEFAULT"}),{content:[{type:"text",text:"Window restored."}]}}default:return{content:[{type:"text",text:`Unknown command: ${t}`}],isError:!0}}};for(const t of g){if(!t.enabled)continue;const u=n.getWindowToolSchema(t.commandType),d=t.commandType;try{p.push(s.registerTool({name:C(t.name),description:t.description,inputSchema:u,execute:async e=>y(d,e||{})}))}catch{}}return p}};exports.windowAdapter=f;
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { WindowCommands as n, getWindowToolSchema as f } from "../commands/window.mjs";
|
|
9
|
+
function o(m, i) {
|
|
10
|
+
const a = m[i];
|
|
11
|
+
if (typeof a == "function")
|
|
12
|
+
return a;
|
|
13
|
+
const s = m.webMcp;
|
|
14
|
+
if (typeof s == "object" && s !== null && typeof s[i] == "function")
|
|
15
|
+
return s[i];
|
|
16
|
+
}
|
|
17
|
+
const C = {
|
|
18
|
+
componentSuffix: "window",
|
|
19
|
+
createTools(m, i, a, s) {
|
|
20
|
+
const p = [], g = (t) => `${a.groupName}_${t}`, r = i.current, l = [
|
|
21
|
+
{
|
|
22
|
+
name: "open",
|
|
23
|
+
description: `Open the ${a.dataName} window`,
|
|
24
|
+
commandType: n.Open,
|
|
25
|
+
enabled: !!o(r, "onOpen")
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "close",
|
|
29
|
+
description: `Close the ${a.dataName} window`,
|
|
30
|
+
commandType: n.Close,
|
|
31
|
+
enabled: !!o(r, "onClose")
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "minimize",
|
|
35
|
+
description: `Minimize the ${a.dataName} window`,
|
|
36
|
+
commandType: n.Minimize,
|
|
37
|
+
enabled: !!o(r, "onStageChange")
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "maximize",
|
|
41
|
+
description: `Maximize the ${a.dataName} window`,
|
|
42
|
+
commandType: n.Maximize,
|
|
43
|
+
enabled: !!o(r, "onStageChange")
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "restore",
|
|
47
|
+
description: `Restore the ${a.dataName} window to its default size`,
|
|
48
|
+
commandType: n.Restore,
|
|
49
|
+
enabled: !!o(r, "onStageChange")
|
|
50
|
+
}
|
|
51
|
+
], d = i.current.webMcp, u = typeof d == "object" && d !== null && typeof d.tools == "function" ? d.tools : void 0, x = u ? u(l) : l, y = async (t, w) => {
|
|
52
|
+
const c = i.current;
|
|
53
|
+
switch (t) {
|
|
54
|
+
case n.Open: {
|
|
55
|
+
const e = o(c, "onOpen");
|
|
56
|
+
return e && e({}), { content: [{ type: "text", text: "Window opened." }] };
|
|
57
|
+
}
|
|
58
|
+
case n.Close: {
|
|
59
|
+
const e = o(c, "onClose");
|
|
60
|
+
return e && e({}), { content: [{ type: "text", text: "Window closed." }] };
|
|
61
|
+
}
|
|
62
|
+
case n.Minimize: {
|
|
63
|
+
const e = o(c, "onStageChange");
|
|
64
|
+
return e && e({ state: "MINIMIZED" }), { content: [{ type: "text", text: "Window minimized." }] };
|
|
65
|
+
}
|
|
66
|
+
case n.Maximize: {
|
|
67
|
+
const e = o(c, "onStageChange");
|
|
68
|
+
return e && e({ state: "MAXIMIZED" }), { content: [{ type: "text", text: "Window maximized." }] };
|
|
69
|
+
}
|
|
70
|
+
case n.Restore: {
|
|
71
|
+
const e = o(c, "onStageChange");
|
|
72
|
+
return e && e({ state: "DEFAULT" }), { content: [{ type: "text", text: "Window restored." }] };
|
|
73
|
+
}
|
|
74
|
+
default:
|
|
75
|
+
return { content: [{ type: "text", text: `Unknown command: ${t}` }], isError: !0 };
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
for (const t of x) {
|
|
79
|
+
if (!t.enabled)
|
|
80
|
+
continue;
|
|
81
|
+
const w = f(t.commandType), c = t.commandType;
|
|
82
|
+
try {
|
|
83
|
+
p.push(
|
|
84
|
+
s.registerTool({
|
|
85
|
+
name: g(t.name),
|
|
86
|
+
description: t.description,
|
|
87
|
+
inputSchema: w,
|
|
88
|
+
execute: async (e) => y(c, e || {})
|
|
89
|
+
})
|
|
90
|
+
);
|
|
91
|
+
} catch {
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return p;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
export {
|
|
98
|
+
C as windowAdapter
|
|
99
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Command constants for the AIPrompt component.
|
|
10
|
+
* These commands allow AI agents to interact with the AIPrompt widget
|
|
11
|
+
* by sending prompts and configuring suggestion lists.
|
|
12
|
+
*/
|
|
13
|
+
export declare const AIPromptCommands: {
|
|
14
|
+
/**
|
|
15
|
+
* Submits a prompt text to the AIPrompt component, triggering the same behavior as a user typing and sending a message.
|
|
16
|
+
*
|
|
17
|
+
* Parameters:
|
|
18
|
+
* - `prompt` *(string, required)* — The prompt text to send.
|
|
19
|
+
*/
|
|
20
|
+
readonly SendPrompt: "AIPromptSendPrompt";
|
|
21
|
+
/**
|
|
22
|
+
* Replaces the current suggestion list displayed in the AIPrompt component with a new set of suggestions.
|
|
23
|
+
*
|
|
24
|
+
* Parameters:
|
|
25
|
+
* - `suggestions` *(string[], required)* — Array of suggestion strings to display.
|
|
26
|
+
*/
|
|
27
|
+
readonly SetSuggestions: "AIPromptSetSuggestions";
|
|
28
|
+
};
|
|
29
|
+
/** @hidden */
|
|
30
|
+
export declare function getAIPromptToolSchema(commandType: string): object;
|
|
@@ -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 o=require("../schemas/common.js"),t={SendPrompt:"AIPromptSendPrompt",SetSuggestions:"AIPromptSetSuggestions"};function r(e){switch(e){case t.SendPrompt:return{type:"object",properties:{prompt:{type:"string",description:"The prompt text to send"}},required:["prompt"]};case t.SetSuggestions:return{type:"object",properties:{suggestions:{type:"array",items:{type:"string"},description:"Array of suggestion strings to display"}},required:["suggestions"]};default:return o.getEmptySchema()}}exports.AIPromptCommands=t;exports.getAIPromptToolSchema=r;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { getEmptySchema as r } from "../schemas/common.mjs";
|
|
9
|
+
const t = {
|
|
10
|
+
/**
|
|
11
|
+
* Submits a prompt text to the AIPrompt component, triggering the same behavior as a user typing and sending a message.
|
|
12
|
+
*
|
|
13
|
+
* Parameters:
|
|
14
|
+
* - `prompt` *(string, required)* — The prompt text to send.
|
|
15
|
+
*/
|
|
16
|
+
SendPrompt: "AIPromptSendPrompt",
|
|
17
|
+
/**
|
|
18
|
+
* Replaces the current suggestion list displayed in the AIPrompt component with a new set of suggestions.
|
|
19
|
+
*
|
|
20
|
+
* Parameters:
|
|
21
|
+
* - `suggestions` *(string[], required)* — Array of suggestion strings to display.
|
|
22
|
+
*/
|
|
23
|
+
SetSuggestions: "AIPromptSetSuggestions"
|
|
24
|
+
};
|
|
25
|
+
function s(e) {
|
|
26
|
+
switch (e) {
|
|
27
|
+
case t.SendPrompt:
|
|
28
|
+
return {
|
|
29
|
+
type: "object",
|
|
30
|
+
properties: {
|
|
31
|
+
prompt: { type: "string", description: "The prompt text to send" }
|
|
32
|
+
},
|
|
33
|
+
required: ["prompt"]
|
|
34
|
+
};
|
|
35
|
+
case t.SetSuggestions:
|
|
36
|
+
return {
|
|
37
|
+
type: "object",
|
|
38
|
+
properties: {
|
|
39
|
+
suggestions: {
|
|
40
|
+
type: "array",
|
|
41
|
+
items: { type: "string" },
|
|
42
|
+
description: "Array of suggestion strings to display"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
required: ["suggestions"]
|
|
46
|
+
};
|
|
47
|
+
default:
|
|
48
|
+
return r();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
t as AIPromptCommands,
|
|
53
|
+
s as getAIPromptToolSchema
|
|
54
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Command constants for the AutoComplete component.
|
|
10
|
+
* These commands allow AI agents to set or clear the text value of an AutoComplete input.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AutoCompleteCommands: {
|
|
13
|
+
/**
|
|
14
|
+
* Sets the text value of the AutoComplete input.
|
|
15
|
+
*
|
|
16
|
+
* Parameters:
|
|
17
|
+
* - `value` *(string, required)* — The text value to set.
|
|
18
|
+
*/
|
|
19
|
+
readonly SetValue: "AutoCompleteSetValue";
|
|
20
|
+
/**
|
|
21
|
+
* Clears the current value of the AutoComplete input.
|
|
22
|
+
*/
|
|
23
|
+
readonly Clear: "AutoCompleteClear";
|
|
24
|
+
};
|
|
25
|
+
/** @hidden */
|
|
26
|
+
export declare function getAutoCompleteToolSchema(commandType: string): object;
|
|
@@ -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 t=require("../schemas/common.js"),u=require("../schemas/input.js"),e={SetValue:"AutoCompleteSetValue",Clear:"AutoCompleteClear"};function m(o){switch(o){case e.SetValue:return u.getStringValueSchema();case e.Clear:return t.getEmptySchema();default:return t.getEmptySchema()}}exports.AutoCompleteCommands=e;exports.getAutoCompleteToolSchema=m;
|
|
@@ -0,0 +1,36 @@
|
|
|
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 { getEmptySchema as e } from "../schemas/common.mjs";
|
|
9
|
+
import { getStringValueSchema as r } from "../schemas/input.mjs";
|
|
10
|
+
const t = {
|
|
11
|
+
/**
|
|
12
|
+
* Sets the text value of the AutoComplete input.
|
|
13
|
+
*
|
|
14
|
+
* Parameters:
|
|
15
|
+
* - `value` *(string, required)* — The text value to set.
|
|
16
|
+
*/
|
|
17
|
+
SetValue: "AutoCompleteSetValue",
|
|
18
|
+
/**
|
|
19
|
+
* Clears the current value of the AutoComplete input.
|
|
20
|
+
*/
|
|
21
|
+
Clear: "AutoCompleteClear"
|
|
22
|
+
};
|
|
23
|
+
function l(o) {
|
|
24
|
+
switch (o) {
|
|
25
|
+
case t.SetValue:
|
|
26
|
+
return r();
|
|
27
|
+
case t.Clear:
|
|
28
|
+
return e();
|
|
29
|
+
default:
|
|
30
|
+
return e();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
t as AutoCompleteCommands,
|
|
35
|
+
l as getAutoCompleteToolSchema
|
|
36
|
+
};
|
|
@@ -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
|
+
/**
|
|
9
|
+
* Command constants for the Button component.
|
|
10
|
+
* These commands allow AI agents to programmatically trigger button actions.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ButtonCommands: {
|
|
13
|
+
/**
|
|
14
|
+
* Programmatically clicks the Button, triggering its click handler.
|
|
15
|
+
*/
|
|
16
|
+
readonly Click: "ButtonClick";
|
|
17
|
+
};
|
|
18
|
+
/** @hidden */
|
|
19
|
+
export declare function getButtonToolSchema(commandType: string): object;
|
|
@@ -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 t=require("../schemas/common.js"),o={Click:"ButtonClick"};function n(e){return e===o.Click,t.getEmptySchema()}exports.ButtonCommands=o;exports.getButtonToolSchema=n;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { getEmptySchema as t } from "../schemas/common.mjs";
|
|
9
|
+
const n = {
|
|
10
|
+
/**
|
|
11
|
+
* Programmatically clicks the Button, triggering its click handler.
|
|
12
|
+
*/
|
|
13
|
+
Click: "ButtonClick"
|
|
14
|
+
};
|
|
15
|
+
function e(o) {
|
|
16
|
+
return o === n.Click ? t() : t();
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
n as ButtonCommands,
|
|
20
|
+
e as getButtonToolSchema
|
|
21
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Command constants for the Calendar component.
|
|
10
|
+
* These commands allow AI agents to navigate to a specific month/year view and select dates.
|
|
11
|
+
*/
|
|
12
|
+
export declare const CalendarCommands: {
|
|
13
|
+
/**
|
|
14
|
+
* Navigates the Calendar view to display the month containing the specified date.
|
|
15
|
+
*
|
|
16
|
+
* Parameters:
|
|
17
|
+
* - `date` *(string, required)* — The date to navigate to (ISO 8601 format, e.g. "2026-05-15").
|
|
18
|
+
*/
|
|
19
|
+
readonly Navigate: "CalendarNavigate";
|
|
20
|
+
/**
|
|
21
|
+
* Selects a specific date in the Calendar.
|
|
22
|
+
*
|
|
23
|
+
* Parameters:
|
|
24
|
+
* - `date` *(string, required)* — The date to select (ISO 8601 format, e.g. "2026-05-15").
|
|
25
|
+
*/
|
|
26
|
+
readonly SelectDate: "CalendarSelectDate";
|
|
27
|
+
};
|
|
28
|
+
/** @hidden */
|
|
29
|
+
export declare function getCalendarToolSchema(commandType: string): object;
|
|
@@ -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 e={Navigate:"CalendarNavigate",SelectDate:"CalendarSelectDate"};function a(t){switch(t){case e.Navigate:return{type:"object",properties:{date:{type:"string",description:'The date to navigate to (ISO 8601 format, e.g. "2026-05-15")'}},required:["date"]};case e.SelectDate:return{type:"object",properties:{date:{type:"string",description:'The date to select (ISO 8601 format, e.g. "2026-05-15")'}},required:["date"]};default:return{type:"object",properties:{}}}}exports.CalendarCommands=e;exports.getCalendarToolSchema=a;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
const e = {
|
|
9
|
+
/**
|
|
10
|
+
* Navigates the Calendar view to display the month containing the specified date.
|
|
11
|
+
*
|
|
12
|
+
* Parameters:
|
|
13
|
+
* - `date` *(string, required)* — The date to navigate to (ISO 8601 format, e.g. "2026-05-15").
|
|
14
|
+
*/
|
|
15
|
+
Navigate: "CalendarNavigate",
|
|
16
|
+
/**
|
|
17
|
+
* Selects a specific date in the Calendar.
|
|
18
|
+
*
|
|
19
|
+
* Parameters:
|
|
20
|
+
* - `date` *(string, required)* — The date to select (ISO 8601 format, e.g. "2026-05-15").
|
|
21
|
+
*/
|
|
22
|
+
SelectDate: "CalendarSelectDate"
|
|
23
|
+
};
|
|
24
|
+
function a(t) {
|
|
25
|
+
switch (t) {
|
|
26
|
+
case e.Navigate:
|
|
27
|
+
return {
|
|
28
|
+
type: "object",
|
|
29
|
+
properties: {
|
|
30
|
+
date: {
|
|
31
|
+
type: "string",
|
|
32
|
+
description: 'The date to navigate to (ISO 8601 format, e.g. "2026-05-15")'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
required: ["date"]
|
|
36
|
+
};
|
|
37
|
+
case e.SelectDate:
|
|
38
|
+
return {
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
date: { type: "string", description: 'The date to select (ISO 8601 format, e.g. "2026-05-15")' }
|
|
42
|
+
},
|
|
43
|
+
required: ["date"]
|
|
44
|
+
};
|
|
45
|
+
default:
|
|
46
|
+
return { type: "object", properties: {} };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
e as CalendarCommands,
|
|
51
|
+
a as getCalendarToolSchema
|
|
52
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Command constants for the Chart component.
|
|
10
|
+
* These commands allow AI agents to drill into chart data and export the chart as an image.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ChartCommands: {
|
|
13
|
+
/**
|
|
14
|
+
* Drills down into a specific chart category to show more detailed data.
|
|
15
|
+
*
|
|
16
|
+
* Parameters:
|
|
17
|
+
* - `category` *(string, required)* — Category value to drill into.
|
|
18
|
+
* - `seriesName` *(string, optional)* — Name of the series to drill down from.
|
|
19
|
+
*/
|
|
20
|
+
readonly Drilldown: "ChartDrilldown";
|
|
21
|
+
/**
|
|
22
|
+
* Exports the Chart as a visual image (PNG).
|
|
23
|
+
*/
|
|
24
|
+
readonly Export: "ChartExport";
|
|
25
|
+
};
|
|
26
|
+
/** @hidden */
|
|
27
|
+
export declare function getChartToolSchema(commandType: string): object;
|
|
@@ -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 e=require("../schemas/common.js"),t={Drilldown:"ChartDrilldown",Export:"ChartExport"};function o(r){switch(r){case t.Drilldown:return{type:"object",properties:{category:{type:"string",description:"Category value to drill into"},seriesName:{type:"string",description:"Name of the series to drill down from"}},required:["category"]};case t.Export:return e.getEmptySchema();default:return e.getEmptySchema()}}exports.ChartCommands=t;exports.getChartToolSchema=o;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { getEmptySchema as r } from "../schemas/common.mjs";
|
|
9
|
+
const t = {
|
|
10
|
+
/**
|
|
11
|
+
* Drills down into a specific chart category to show more detailed data.
|
|
12
|
+
*
|
|
13
|
+
* Parameters:
|
|
14
|
+
* - `category` *(string, required)* — Category value to drill into.
|
|
15
|
+
* - `seriesName` *(string, optional)* — Name of the series to drill down from.
|
|
16
|
+
*/
|
|
17
|
+
Drilldown: "ChartDrilldown",
|
|
18
|
+
/**
|
|
19
|
+
* Exports the Chart as a visual image (PNG).
|
|
20
|
+
*/
|
|
21
|
+
Export: "ChartExport"
|
|
22
|
+
};
|
|
23
|
+
function i(e) {
|
|
24
|
+
switch (e) {
|
|
25
|
+
case t.Drilldown:
|
|
26
|
+
return {
|
|
27
|
+
type: "object",
|
|
28
|
+
properties: {
|
|
29
|
+
category: { type: "string", description: "Category value to drill into" },
|
|
30
|
+
seriesName: { type: "string", description: "Name of the series to drill down from" }
|
|
31
|
+
},
|
|
32
|
+
required: ["category"]
|
|
33
|
+
};
|
|
34
|
+
case t.Export:
|
|
35
|
+
return r();
|
|
36
|
+
default:
|
|
37
|
+
return r();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
t as ChartCommands,
|
|
42
|
+
i as getChartToolSchema
|
|
43
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Command constants for the Chat component.
|
|
10
|
+
* These commands allow AI agents to send messages in the Chat conversation.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ChatCommands: {
|
|
13
|
+
/**
|
|
14
|
+
* Sends a text message to the Chat conversation.
|
|
15
|
+
*
|
|
16
|
+
* Parameters:
|
|
17
|
+
* - `text` *(string, required)* — The message text to send.
|
|
18
|
+
*/
|
|
19
|
+
readonly SendMessage: "ChatSendMessage";
|
|
20
|
+
};
|
|
21
|
+
/** @hidden */
|
|
22
|
+
export declare function getChatToolSchema(commandType: string): object;
|