@progress/kendo-angular-mcp 1.5.0-dev.fb926bc2.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -72
- package/dist/index.js +42 -54
- package/package.json +1 -1
- package/proto/service.proto +5 -0
package/README.md
CHANGED
|
@@ -24,89 +24,33 @@ To use the Kendo UI for Angular MCP server, you need:
|
|
|
24
24
|
* A [compatible MCP client (IDE, code editor or app)](https://modelcontextprotocol.io/clients) that supports *MCP tools*.
|
|
25
25
|
* An active [Telerik Subscription license](https://www.telerik.com/kendo-angular-ui/components/ai-tools#license-requirements) that provides access to the Kendo UI for Angular MCP server.
|
|
26
26
|
|
|
27
|
-
## Installation
|
|
28
|
-
|
|
29
|
-
Use the documentation of your AI-powered MCP client to add the Kendo UI for Angular MCP server to a specific workspace or globally. You can see installation tips and examples for some popular MCP clients below.
|
|
30
|
-
|
|
31
|
-
The generic settings of the Kendo UI for Angular MCP server are:
|
|
32
|
-
|
|
33
|
-
* Server name: `kendo-mcp`
|
|
34
|
-
* Type: `stdio` (standard input/output transport)
|
|
35
|
-
* Command: `npx` (the MCP server works through an npm package)
|
|
36
|
-
* Supported arguments: `-y`
|
|
37
|
-
* npm package name: `@progress/kendo-angular-mcp`
|
|
38
|
-
* You also need to add your [Telerik licence key](https://www.telerik.com/kendo-angular-ui/components/licensing) as an `env` parameter in the `mcp.json` file. There are two options:
|
|
39
|
-
* (recommended) Use a `TELERIK_LICENSE_PATH` argument and point to your Telerik license file location.
|
|
40
|
-
* Use a `TELERIK_LICENSE` argument and paste your Telerik license key. Make sure to [update the license key](https://www.telerik.com/kendo-angular-ui/components/licensing) when necessary.
|
|
41
|
-
|
|
42
|
-
> You can ignore the `env` parameter if you have the Telerik license key set up as a global environment variable on your machine. And if the MCP client supports passing global environment variables to MCP servers.
|
|
43
|
-
|
|
44
|
-
## Authentication
|
|
45
27
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
- *(Recommended)* When set globally, the MCP server automatically recognizes the license and you can ignore the `env` parameter in the `mcp.json` setup.
|
|
49
|
-
- When configured locally, you have to define either one of the following variables inside the `mcp.json` file:
|
|
50
|
-
* `TELERIK_LICENSE_PATH`—to point to your license file location.
|
|
51
|
-
* `TELERIK_LICENSE`—to paste your license key directly.
|
|
52
|
-
|
|
53
|
-
For detailed instructions on obtaining and managing your license key, see [Kendo UI for Angular Licensing](https://www.telerik.com/kendo-angular-ui/components/licensing).
|
|
54
|
-
|
|
55
|
-
## Configuration Examples
|
|
56
|
-
|
|
57
|
-
### VSCode - Copilot
|
|
58
|
-
|
|
59
|
-
Refer to [Use MCP servers in VS Code](https://code.visualstudio.com/docs/copilot/chat/mcp-servers).
|
|
28
|
+
## Installation
|
|
60
29
|
|
|
61
|
-
|
|
30
|
+
Use the [Kendo CLI](https://www.npmjs.com/package/@progress/kendo-cli) and the built-in **Getting Started Assistant** to handle the entire setup automatically - whether you are starting a new project or adding Kendo UI for Angular to an existing one.
|
|
62
31
|
|
|
63
|
-
|
|
32
|
+
Follow these steps to set up the Agentic UI Generator and use it in your IDE (VS Code or another supported AI-enabled IDE):
|
|
64
33
|
|
|
65
|
-
|
|
66
|
-
{
|
|
67
|
-
"servers": {
|
|
68
|
-
"kendo-angular-assistant": {
|
|
69
|
-
"type": "stdio",
|
|
70
|
-
"command": "npx",
|
|
71
|
-
"args": ["-y", "@progress/kendo-angular-mcp@latest"],
|
|
72
|
-
"env": {
|
|
73
|
-
"TELERIK_LICENSE_PATH": "THE_PATH_TO_YOUR_LICENSE_FILE",
|
|
74
|
-
// or
|
|
75
|
-
"TELERIK_LICENSE": "YOUR_LICENSE_KEY"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
```
|
|
34
|
+
1. Open your terminal and install the Kendo CLI globally:
|
|
81
35
|
|
|
82
|
-
|
|
36
|
+
```sh
|
|
37
|
+
npm i -g @progress/kendo-cli
|
|
38
|
+
```
|
|
83
39
|
|
|
84
|
-
|
|
40
|
+
1. Configure the Kendo UI for Angular MCP server for your IDE and set up your Telerik license in a single step with the Kendo CLI:
|
|
85
41
|
|
|
86
|
-
|
|
42
|
+
```sh
|
|
43
|
+
npx kendo angular setup
|
|
44
|
+
```
|
|
87
45
|
|
|
88
|
-
|
|
46
|
+
You are now ready to generate components and pages using the Agentic UI Generator in your IDE.
|
|
89
47
|
|
|
90
|
-
|
|
48
|
+
1. Create a new empty folder for your project and open it in your IDE. Then, in the AI chat interface, invoke the **Getting Started Assistant**:
|
|
91
49
|
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"kendo-angular-assistant": {
|
|
96
|
-
"type": "stdio",
|
|
97
|
-
"command": "npx",
|
|
98
|
-
"args": ["-y", "@progress/kendo-angular-mcp@latest"],
|
|
99
|
-
"env": {
|
|
100
|
-
"TELERIK_LICENSE_PATH": "THE_PATH_TO_YOUR_LICENSE_FILE",
|
|
101
|
-
// or
|
|
102
|
-
"TELERIK_LICENSE": "YOUR_LICENSE_KEY"
|
|
103
|
-
},
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
```
|
|
50
|
+
```prompt
|
|
51
|
+
#kendo_getting_started_assistant create a new Angular project
|
|
52
|
+
```
|
|
108
53
|
|
|
109
|
-
> You can ignore the `env` parameter if you have the Telerik license key set up as a global environment variable on your machine. And if the MCP client supports passing global environment variables to MCP servers.
|
|
110
54
|
|
|
111
55
|
## Usage
|
|
112
56
|
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{McpServer as kt}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as
|
|
3
|
-
`,n=G.resolve(E);P.appendFile(n,o,r=>{r&&console.error("Error writing to log file:",r)})}}import tt from"@grpc/proto-loader";import O from"@grpc/grpc-js";import
|
|
2
|
+
import{McpServer as kt}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as Ct}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as ct,join as dt}from"path";import{fileURLToPath as pt}from"url";import{loadLicense as Ze,decodeLicenseKey as Xe,decodeLicenseEvidence as et}from"@progress/kendo-licensing/utils";var q=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function te(e){return e.replace(/^\uFEFF/,"")}async function oe(e){let t=null,s=null;try{let o=Ze();if(!o.success){let n=new q(o.message);throw e&&await e("license_load_failed",{error:o.message}).catch(()=>{}),n}try{t=(await Xe(o.value)).licenses.find(async r=>!!(await et(r)).userId)}catch(n){console.log(n.message),e&&await e("license_load_failed",{error:n.message||"Unknown decoding error"}).catch(()=>{})}if(!t)return[te(o.value),null]}catch(o){return s=o.message||"Unknown error loading license.",e&&await e("license_load_failed",{error:s}).catch(()=>{}),[null,s]}return[te(t),null]}import P from"node:fs";import G from"node:path";var B=!1,E=process.env.DEBUG_LOG_FILE,ne=!!(E&&typeof E=="string");if(ne){let e=G.resolve(E),t=G.dirname(e);if(t!=="."&&t!==process.cwd()&&!P.existsSync(t))try{P.mkdirSync(t,{recursive:!0})}catch(s){console.error("Error creating log directory:",s)}if(!P.existsSync(e))try{P.writeFileSync(e,"")}catch(s){console.error("Error creating log file:",s)}}else B=!1;B=ne&&!!E&&P.existsSync(G.resolve(E));function m(...e){if(B&&E){let o=`${new Date().toISOString()}: ${e.join(" ")}
|
|
3
|
+
`,n=G.resolve(E);P.appendFile(n,o,r=>{r&&console.error("Error writing to log file:",r)})}}import tt from"@grpc/proto-loader";import O from"@grpc/grpc-js";import re from"path";import se from"fs";import{fileURLToPath as ot}from"url";var nt=ot(import.meta.url),st=re.dirname(nt),ie={version:"unknown"},ae=re.resolve(st,"../package.json");se.existsSync(ae)&&(ie=JSON.parse(se.readFileSync(ae,"utf-8")));function at(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var M=class{constructor(t,s,o){this.contextApiUrl=t;this.protoPath=s;this.options=o;this.toolNameHeader="assistant";let n=tt.loadSync(this.protoPath,{keepCase:!0,longs:String,enums:String,defaults:!0,oneofs:!0});this.isDev=this.contextApiUrl?.includes("localhost")||this.contextApiUrl?.includes("127.0.0.1"),m("Using ContextApi URl:",this.contextApiUrl);let r=O.loadPackageDefinition(n);this.client=new r.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?O.credentials.createInsecure():O.credentials.createSsl())}async getMetadata({meta:t}={meta:{}}){let[s,o]=this.isDev?["fake_license",null]:await oe((g,A)=>this.logEvent(g,A)),n=process.env.CONTEXTAPI_API_KEY,r=n&&typeof n=="string",a=s&&typeof s=="string";if(!a&&!r&&o)throw new Error(`Failed to authenticate with API key or License key!
|
|
4
4
|
|
|
5
|
-
License Error: ${o}`);let i=new O.Metadata;if(a)try{i.add("x-license-key",s)}catch(m){throw h("Error adding license key to metadata:",m),new Error(`Failed to use license key: ${m.message}`)}r&&i.add("x-api-key",n),this.options?.libName&&i.add("x-library-name",this.options.libName),i.add("x-tool-name",this.toolNameHeader);let d=JSON.stringify({...t,source:"npm",version:ie.version,os:process.platform,node_version:process.version});return i.add("x-request-metadata",rt(d)),i}async query(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.query(t,o,(a,i)=>{a?r(new Error(a)):n(i)})})}async getApiRefMatches(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.getApiRefMatches(t,o,(a,i)=>{a?r(new Error(a)):n(i)})})}async queryCssUtils(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.cssUtilsSearch(t,o,(a,i)=>{a?(h("Error querying CSS Utils:",a),r(new Error(a))):n(i)})})}async queryIconsSearch(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.iconsSearch(t,o,(a,i)=>{a?(h("Error querying Icons Search:",a),r(new Error(a))):n(i)})})}async queryBuildingBlocks(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.buildingBlocksSearch(t,o,(a,i)=>{a?(h("Error querying Building Blocks:",a),r(new Error(a))):n(i)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((s,o)=>{this.client.validateUserLicense(null,t,(n,r)=>{n?(h("Error validating user license:",n),o(new Error(n))):s(r)})})}async queryThemeGenerate(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.generateTheme(t,o,(a,i)=>{a?(h("Error querying context API/GenerateTheme:",a),r(new Error(a))):n(i)})})}async recordOrchestratorUserRequest({meta:t}){let s=await this.getMetadata({meta:t});return new Promise((o,n)=>{this.client.recordOrchestratorUserRequest(null,s,(r,a)=>{r?(h("Error recording orchestrator user request:",r),n(new Error(r))):o(a)})})}async logEvent(t,s){let o="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq";if(!o||typeof o!="string"){h("LOGGING_API_KEY not configured, skipping log event");return}let n=new O.Metadata;return n.add("x-api-key",o),new Promise((r,a)=>{this.client.logEvent({event_name:t,fields:s||{}},n,(i,d)=>{i?(h("Error logging event:",i),a(new Error(i))):r()})})}};import{z as F}from"zod";var Vt=F.object({user_id:F.string(),user_email:F.string().email()});import{z as k}from"zod";var at=k.object({Product:k.object({Id:k.number().int(),Code:k.string(),Name:k.string()}),License:k.nullable(k.object({Id:k.number().int(),Name:k.string(),Type:k.string(),Active:k.boolean()})),Availability:k.array(k.object({LicenseStart:k.nullable(k.string().datetime()),LicenseEnd:k.nullable(k.string().datetime())})),IsLicenseAvailable:k.optional(k.boolean())}),Yt=k.array(at);async function le(e){let t=process.env.KENDO_MCP_ACCESS;if(t==="true"||t==="1"||t==="full")return"full";if(typeof t=="string"&&(t.toLowerCase()==="agent"||t.toLowerCase()==="assistant"))return t.toLowerCase();let s=await e();return s.toLocaleLowerCase()==="agentic_ui_generator"?"agent":s.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}function ce(){return'**Accessibility Guidelines: WCAG 2.2 Level AA Compliance**\n\n**Core Principles:**\n1. Use semantic HTML and ARIA correctly\n2. Ensure WCAG 2.2 AA compliance\n3. Follow W3C ARIA Authoring Practices\n4. Provide standards-based accessibility fixes\n\n**1. Form Control Labels** (WCAG 1.3.1, 3.3.2, 4.1.2)\nEvery input must have an associated label.\nCORRECT: `<input type="search" aria-label="Search products" placeholder="Search...">`\nWRONG: `<span>Email</span><input type="email">` (no association)\nWRONG: `<input type="email" placeholder="Email">` (placeholder as label)\n\n**2. Button Accessibility** (WCAG 4.1.2, 2.4.6, 2.5.3)\nAll buttons need accessible names describing their purpose.\nCORRECT: `<button type="button">Save Changes</button>`\nCORRECT: `<button aria-label="Close dialog"><svg aria-hidden="true" focusable="false">...</svg></button>`\nWRONG: `<button><svg>...</svg></button>` (no accessible name)\nWRONG: `<button>Click here</button>` (generic text)\n\n**3. Popup/Menu Triggers** (WCAG 4.1.2, 1.3.1)\nIndicate popup purpose and state using aria-haspopup, aria-expanded, aria-controls.\nCORRECT: `<button aria-expanded="false" aria-haspopup="menu" aria-controls="menu-id">Settings</button>`\n\n**4. Image Accessibility** (WCAG 1.1.1)\nInformative: `<img src="chart.png" alt="Sales increased 25% in Q4 2024">`\nFunctional: `<a href="/home"><img src="logo.png" alt="Company Name Home"></a>`\nDecorative: `<img src="border.png" alt="" role="presentation">`\nComplex: `<img src="chart.png" alt="Sales data" aria-describedby="desc-id">`\nWRONG: Missing alt, filename as alt, generic alt for decorative images\n\n**5. Link Accessibility** (WCAG 2.4.4, 2.4.6)\nLinks must be descriptive and understandable out of context.\nCORRECT: `<a href="/products">View All Products</a>`\nCORRECT: `<a href="/article" aria-label="Read more about New Product Launch">Read more</a>`\nWRONG: "Click here", "Read more", "Learn more" without context\n\n**6. Form Validation** (WCAG 3.3.1, 3.3.2, 3.3.3)\nErrors must be identified, associated with inputs, and provide suggestions. Use aria-describedby, aria-invalid="true", and role="alert".\n\n**7. Heading Structure** (WCAG 1.3.1, 2.4.6)\nEach page should have an `<h1>` that describes its content. Use hierarchical, descriptive headings with no skipped levels (h1\u2192h2\u2192h3).\nCORRECT: `<h1>Dashboard</h1> <h2>Sales</h2> <h3>By Region</h3>`\nWRONG: No `<h1>` on the page, or skipping levels (h1\u2192h3)\nIf a heading should look smaller than its semantic level, use CSS: `<h2 class="text-sm">Subtitle</h2>`\n\n**8. Page Component Landmark Rules** (WCAG 1.3.1, 4.1.2)\nPage components (route components) may be rendered inside a layout that already provides `<main>`, `<header>`, or `<footer>`. Since the layout configuration is unknown, avoid using these landmarks in page components to prevent potential duplication and nesting violations. Use `<div>`, `<section>`, or `<article>` as the top-level wrapper instead.\n\n**Quick Checklist:**\n- **Forms:** Associated labels, aria-required on required fields, autocomplete attributes, aria-describedby for errors, aria-invalid for invalid fields, fieldsets with legends\n- **Buttons/Links:** Accessible names, aria-label for icon buttons, aria-hidden on decorative icons, descriptive link text\n- **Popups/Dialogs:** aria-haspopup, aria-expanded, aria-controls, role="dialog", aria-modal="true", aria-labelledby, focus trap, Escape to close\n- **Images:** alt on all images, descriptive alt for informative, empty alt for decorative, aria-describedby for complex\n- **Structure:** One h1, logical heading hierarchy, avoid `<main>`, `<header>`, or `<footer>` in page/route components (the layout may already provide them), use `<section>` or `<div>` as page-level wrappers, semantic HTML\n- **Dynamic Content:** role="status"/aria-live="polite" for updates, role="alert"/aria-live="assertive" for critical alerts\n- **Keyboard/Focus:** All interactive elements keyboard accessible, logical focus order, visible focus indicators, no keyboard traps (except modals)\n- **Color/Contrast:** 4.5:1 text contrast (3:1 large text), 3:1 UI component contrast, no color-only information, 3:1 focus indicator contrast'}var it=1440*60*1e3;function de(e){let{serverName:t,contextApi:s,additionalFields:o={},intervalMs:n=it}=e,r="mcp_server_heartbeat",a=async()=>{try{let d={server_name:t,timestamp:new Date().toISOString(),...o};await s.logEvent(r,d)}catch(d){h(`Failed to send heartbeat for ${t}:`,d)}};a();let i=setInterval(a,n);return()=>{clearInterval(i),h(`Heartbeat stopped for ${t}`)}}import{z as K}from"zod";var lt=["default","bootstrap","material","fluent"];function pe(e,t){return{projectName:K.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:K.boolean().default(!0).describe(`Whether to create a new project before configuring ${e}. Set to true to scaffold a brand-new project, or false if the project already exists and you only want to add ${e} to it.`),theme:K.enum(lt).default("default").describe("The Kendo UI theme to use. Determines which theme package is installed and imported.")}}var c="Kendo UI for Angular",w="angular",N="kendo",$=["AIPrompt","ActionSheet","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","BreadCrumb","Button","ButtonGroup","Calendar","Card","ChartWizard","Charts","CheckBox","Chip","ChipList","ChunkProgressBar","CircularGauge","CircularProgressBar","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","DataQuery","DateInput","DateMath","DatePicker","DateRange","DateTimePicker","Diagram","Dialog","DragandDrop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","ExcelExport","ExpansionPanel","FileSaver","FileSelect","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Forms","FormField","Gantt","Gauges","General","Grid","GridLayout","Icon","InlineAIPrompt","Label","LinearGauge","ListBox","ListView","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OTPInput","Pager","PanelBar","PDFExport","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","PromptBox","QRCode","RadialGauge","RadioButton","RangeSlider","Rating","Ripple","Sankey","Scheduler","ScrollView","Signature","Skeleton","Slider","SmartPasteButton","Sortable","StockChart","Sparkline","SpeechToTextButton","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","SVGIcon","Switch","TabStrip","TextArea","TextBox","TileLayout","Timeline","TimePicker","ToolBar","Tooltip","TreeList","TreeView","Typography","Upload","Window"],ue=new Map([["actionsheet","@progress/kendo-angular-navigation"],["aiprompt","@progress/kendo-angular-conversational-ui"],["appbar","@progress/kendo-angular-navigation"],["arcgauge","@progress/kendo-angular-gauges"],["autocomplete","@progress/kendo-angular-dropdowns"],["avatar","@progress/kendo-angular-layout"],["badge","@progress/kendo-angular-indicators"],["barcode","@progress/kendo-angular-barcodes"],["bottomnavigation","@progress/kendo-angular-navigation"],["breadcrumb","@progress/kendo-angular-navigation"],["button","@progress/kendo-angular-buttons"],["buttongroup","@progress/kendo-angular-buttons"],["calendar","@progress/kendo-angular-dateinputs"],["card","@progress/kendo-angular-layout"],["chartwizard","@progress/kendo-angular-chart-wizard"],["checkbox","@progress/kendo-angular-inputs"],["chip","@progress/kendo-angular-buttons"],["chiplist","@progress/kendo-angular-buttons"],["chunkprogressbar","@progress/kendo-angular-progressbar"],["circulargauge","@progress/kendo-angular-gauges"],["circularprogressbar","@progress/kendo-angular-progressbar"],["colorgradient","@progress/kendo-angular-inputs"],["colorpalette","@progress/kendo-angular-inputs"],["colorpicker","@progress/kendo-angular-inputs"],["combobox","@progress/kendo-angular-dropdowns"],["contextmenu","@progress/kendo-angular-menu"],["dataquery","@progress/kendo-data-query"],["dateinput","@progress/kendo-angular-dateinputs"],["datemath","@progress/kendo-date-math"],["datepicker","@progress/kendo-angular-dateinputs"],["daterangepicker","@progress/kendo-angular-dateinputs"],["datetimepicker","@progress/kendo-angular-dateinputs"],["diagram","@progress/kendo-angular-diagrams"],["dialog","@progress/kendo-angular-dialog"],["drawer","@progress/kendo-angular-layout"],["drawing","@progress/kendo-drawing"],["dropdownbutton","@progress/kendo-angular-buttons"],["dropdownlist","@progress/kendo-angular-dropdowns"],["dropdowntree","@progress/kendo-angular-dropdowns"],["editor","@progress/kendo-angular-editor"],["excelexport","@progress/kendo-angular-excel-export"],["expansionpanel","@progress/kendo-angular-layout"],["filesaver","@progress/kendo-file-saver"],["fileselect","@progress/kendo-angular-upload"],["filter","@progress/kendo-angular-filter"],["flatcolorpicker","@progress/kendo-angular-inputs"],["floatingactionbutton","@progress/kendo-angular-buttons"],["floatinglabel","@progress/kendo-angular-label"],["formfield","@progress/kendo-angular-inputs"],["forms","@progress/kendo-angular-inputs"],["gantt","@progress/kendo-angular-gantt"],["grid","@progress/kendo-angular-grid"],["gridlayout","@progress/kendo-angular-layout"],["icon","@progress/kendo-angular-icons"],["inlineaiprompt","@progress/kendo-angular-conversational-ui"],["label","@progress/kendo-angular-label"],["lineargauge","@progress/kendo-angular-gauges"],["listbox","@progress/kendo-angular-listbox"],["listview","@progress/kendo-angular-listview"],["loader","@progress/kendo-angular-indicators"],["map","@progress/kendo-angular-map"],["maskedtextbox","@progress/kendo-angular-inputs"],["menu","@progress/kendo-angular-menu"],["multicolumncombobox","@progress/kendo-angular-dropdowns"],["multiselect","@progress/kendo-angular-dropdowns"],["multiselecttree","@progress/kendo-angular-dropdowns"],["multiviewcalendar","@progress/kendo-angular-dateinputs"],["notification","@progress/kendo-angular-notification"],["numerictextbox","@progress/kendo-angular-inputs"],["otpinput","@progress/kendo-angular-inputs"],["pager","@progress/kendo-angular-pager"],["panelbar","@progress/kendo-angular-layout"],["pdfexport","@progress/kendo-angular-pdf-export"],["pdfviewer","@progress/kendo-angular-pdfviewer"],["pivotgrid","@progress/kendo-angular-pivotgrid"],["popover","@progress/kendo-angular-tooltip"],["popup","@progress/kendo-angular-popup"],["progressbar","@progress/kendo-angular-progressbar"],["promptbox","@progress/kendo-angular-conversational-ui"],["qrcode","@progress/kendo-angular-barcodes"],["radialgauge","@progress/kendo-angular-gauges"],["radiobutton","@progress/kendo-angular-inputs"],["rangeslider","@progress/kendo-angular-inputs"],["rating","@progress/kendo-angular-inputs"],["ripple","@progress/kendo-angular-ripple"],["sankey","@progress/kendo-angular-charts"],["scheduler","@progress/kendo-angular-scheduler"],["scrollview","@progress/kendo-angular-scrollview"],["signature","@progress/kendo-angular-inputs"],["skeleton","@progress/kendo-angular-indicators"],["slider","@progress/kendo-angular-inputs"],["smartpastebutton","@progress/kendo-angular-buttons"],["sortable","@progress/kendo-angular-sortable"],["sparkline","@progress/kendo-angular-charts"],["speechtotextbutton","@progress/kendo-angular-buttons"],["splitbutton","@progress/kendo-angular-buttons"],["splitter","@progress/kendo-angular-layout"],["spreadsheet","@progress/kendo-angular-spreadsheet"],["stacklayout","@progress/kendo-angular-layout"],["stepper","@progress/kendo-angular-layout"],["stockchart","@progress/kendo-angular-charts"],["svgicon","@progress/kendo-angular-icons"],["switch","@progress/kendo-angular-inputs"],["tabstrip","@progress/kendo-angular-layout"],["textarea","@progress/kendo-angular-inputs"],["textbox","@progress/kendo-angular-inputs"],["tilelayout","@progress/kendo-angular-layout"],["timeline","@progress/kendo-angular-layout"],["timepicker","@progress/kendo-angular-dateinputs"],["toolbar","@progress/kendo-angular-toolbar"],["treelist","@progress/kendo-angular-treelist"],["treeview","@progress/kendo-angular-treeview"],["typography","@progress/kendo-angular-typography"],["upload","@progress/kendo-angular-upload"],["window","@progress/kendo-angular-dialog"],["charts","@progress/kendo-angular-charts"],["conversationalui","@progress/kendo-angular-conversational-ui"],["tooltip","@progress/kendo-angular-tooltip"]]);var ut=dt(ct(pt(import.meta.url)),"../proto/service.proto"),_=new M("contextapi.telerik.com:443",ut,{libName:w});var me=async()=>_.validateUserLicense();import Ct from"fs";import Ye from"path";import{fileURLToPath as vt}from"url";import{z as b}from"zod";var v=class{constructor(t,s,o){this.name=t;this.config=s;this.cb=o}register(t){this.server=t,this.server.registerTool(this.name,this.config,this.cb)}hasAccess(t){return!this.config.requiredAccess||this.config.requiredAccess.length===0?!0:t==="full"||this.config.requiredAccess.includes(t)}};var L=(e,t)=>`# ${e.suiteName} - Code Validation & Quality Assurance
|
|
5
|
+
License Error: ${o}`);let i=new O.Metadata;if(a)try{i.add("x-license-key",s)}catch(g){throw m("Error adding license key to metadata:",g),new Error(`Failed to use license key: ${g.message}`)}r&&i.add("x-api-key",n),this.options?.libName&&i.add("x-library-name",this.options.libName),i.add("x-tool-name",this.toolNameHeader);let d=JSON.stringify({...t,source:"npm",version:ie.version,os:process.platform,node_version:process.version});return i.add("x-request-metadata",at(d)),i}async query(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.query(t,o,(a,i)=>{a?r(new Error(a)):n(i)})})}async getApiRefMatches(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.getApiRefMatches(t,o,(a,i)=>{a?r(new Error(a)):n(i)})})}async queryCssUtils(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.cssUtilsSearch(t,o,(a,i)=>{a?(m("Error querying CSS Utils:",a),r(new Error(a))):n(i)})})}async queryIconsSearch(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.iconsSearch(t,o,(a,i)=>{a?(m("Error querying Icons Search:",a),r(new Error(a))):n(i)})})}async queryBuildingBlocks(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.buildingBlocksSearch(t,o,(a,i)=>{a?(m("Error querying Building Blocks:",a),r(new Error(a))):n(i)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((s,o)=>{this.client.validateUserLicense(null,t,(n,r)=>{n?(m("Error validating user license:",n),o(new Error(n))):s(r)})})}async queryThemeGenerate(t,s){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.generateTheme(t,o,(a,i)=>{a?(m("Error querying context API/GenerateTheme:",a),r(new Error(a))):n(i)})})}async recordOrchestratorUserRequest({meta:t}){let s=await this.getMetadata({meta:t});return new Promise((o,n)=>{this.client.recordOrchestratorUserRequest(null,s,(r,a)=>{r?(m("Error recording orchestrator user request:",r),n(new Error(r))):o(a)})})}async recordToolUserRequest({toolName:t,meta:s}){let o=await this.getMetadata({meta:s});return new Promise((n,r)=>{this.client.recordToolUserRequest({tool_name:t},o,(a,i)=>{a?(m("Error recording tool user request:",a),r(new Error(a))):n(i)})})}async logEvent(t,s){let o="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq";if(!o||typeof o!="string"){m("LOGGING_API_KEY not configured, skipping log event");return}let n=new O.Metadata;return n.add("x-api-key",o),new Promise((r,a)=>{this.client.logEvent({event_name:t,fields:s||{}},n,(i,d)=>{i?(m("Error logging event:",i),a(new Error(i))):r()})})}};import{z as K}from"zod";var Vt=K.object({user_id:K.string(),user_email:K.string().email()});import{z as k}from"zod";var rt=k.object({Product:k.object({Id:k.number().int(),Code:k.string(),Name:k.string()}),License:k.nullable(k.object({Id:k.number().int(),Name:k.string(),Type:k.string(),Active:k.boolean()})),Availability:k.array(k.object({LicenseStart:k.nullable(k.string().datetime()),LicenseEnd:k.nullable(k.string().datetime())})),IsLicenseAvailable:k.optional(k.boolean())}),Yt=k.array(rt);async function le(e){let t=process.env.KENDO_MCP_ACCESS;if(t==="true"||t==="1"||t==="full")return"full";if(typeof t=="string"&&(t.toLowerCase()==="agent"||t.toLowerCase()==="assistant"))return t.toLowerCase();let s=await e();return s.toLocaleLowerCase()==="agentic_ui_generator"?"agent":s.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}function ce(){return'**Accessibility Guidelines: WCAG 2.2 Level AA Compliance**\n\n**Core Principles:**\n1. Use semantic HTML and ARIA correctly\n2. Ensure WCAG 2.2 AA compliance\n3. Follow W3C ARIA Authoring Practices\n4. Provide standards-based accessibility fixes\n\n**1. Form Control Labels** (WCAG 1.3.1, 3.3.2, 4.1.2)\nEvery input must have an associated label.\nCORRECT: `<input type="search" aria-label="Search products" placeholder="Search...">`\nWRONG: `<span>Email</span><input type="email">` (no association)\nWRONG: `<input type="email" placeholder="Email">` (placeholder as label)\n\n**2. Button Accessibility** (WCAG 4.1.2, 2.4.6, 2.5.3)\nAll buttons need accessible names describing their purpose.\nCORRECT: `<button type="button">Save Changes</button>`\nCORRECT: `<button aria-label="Close dialog"><svg aria-hidden="true" focusable="false">...</svg></button>`\nWRONG: `<button><svg>...</svg></button>` (no accessible name)\nWRONG: `<button>Click here</button>` (generic text)\n\n**3. Popup/Menu Triggers** (WCAG 4.1.2, 1.3.1)\nIndicate popup purpose and state using aria-haspopup, aria-expanded, aria-controls.\nCORRECT: `<button aria-expanded="false" aria-haspopup="menu" aria-controls="menu-id">Settings</button>`\n\n**4. Image Accessibility** (WCAG 1.1.1)\nInformative: `<img src="chart.png" alt="Sales increased 25% in Q4 2024">`\nFunctional: `<a href="/home"><img src="logo.png" alt="Company Name Home"></a>`\nDecorative: `<img src="border.png" alt="" role="presentation">`\nComplex: `<img src="chart.png" alt="Sales data" aria-describedby="desc-id">`\nWRONG: Missing alt, filename as alt, generic alt for decorative images\n\n**5. Link Accessibility** (WCAG 2.4.4, 2.4.6)\nLinks must be descriptive and understandable out of context.\nCORRECT: `<a href="/products">View All Products</a>`\nCORRECT: `<a href="/article" aria-label="Read more about New Product Launch">Read more</a>`\nWRONG: "Click here", "Read more", "Learn more" without context\n\n**6. Form Validation** (WCAG 3.3.1, 3.3.2, 3.3.3)\nErrors must be identified, associated with inputs, and provide suggestions. Use aria-describedby, aria-invalid="true", and role="alert".\n\n**7. Heading Structure** (WCAG 1.3.1, 2.4.6)\nEach page should have an `<h1>` that describes its content. Use hierarchical, descriptive headings with no skipped levels (h1\u2192h2\u2192h3).\nCORRECT: `<h1>Dashboard</h1> <h2>Sales</h2> <h3>By Region</h3>`\nWRONG: No `<h1>` on the page, or skipping levels (h1\u2192h3)\nIf a heading should look smaller than its semantic level, use CSS: `<h2 class="text-sm">Subtitle</h2>`\n\n**8. Page Component Landmark Rules** (WCAG 1.3.1, 4.1.2)\nPage components (route components) may be rendered inside a layout that already provides `<main>`, `<header>`, or `<footer>`. Since the layout configuration is unknown, avoid using these landmarks in page components to prevent potential duplication and nesting violations. Use `<div>`, `<section>`, or `<article>` as the top-level wrapper instead.\n\n**Quick Checklist:**\n- **Forms:** Associated labels, aria-required on required fields, autocomplete attributes, aria-describedby for errors, aria-invalid for invalid fields, fieldsets with legends\n- **Buttons/Links:** Accessible names, aria-label for icon buttons, aria-hidden on decorative icons, descriptive link text\n- **Popups/Dialogs:** aria-haspopup, aria-expanded, aria-controls, role="dialog", aria-modal="true", aria-labelledby, focus trap, Escape to close\n- **Images:** alt on all images, descriptive alt for informative, empty alt for decorative, aria-describedby for complex\n- **Structure:** One h1, logical heading hierarchy, avoid `<main>`, `<header>`, or `<footer>` in page/route components (the layout may already provide them), use `<section>` or `<div>` as page-level wrappers, semantic HTML\n- **Dynamic Content:** role="status"/aria-live="polite" for updates, role="alert"/aria-live="assertive" for critical alerts\n- **Keyboard/Focus:** All interactive elements keyboard accessible, logical focus order, visible focus indicators, no keyboard traps (except modals)\n- **Color/Contrast:** 4.5:1 text contrast (3:1 large text), 3:1 UI component contrast, no color-only information, 3:1 focus indicator contrast'}var it=1440*60*1e3;function de(e){let{serverName:t,contextApi:s,additionalFields:o={},intervalMs:n=it}=e,r="mcp_server_heartbeat",a=async()=>{try{let d={server_name:t,timestamp:new Date().toISOString(),...o};await s.logEvent(r,d)}catch(d){m(`Failed to send heartbeat for ${t}:`,d)}};a();let i=setInterval(a,n);return()=>{clearInterval(i),m(`Heartbeat stopped for ${t}`)}}import{z as F}from"zod";var lt=["default","bootstrap","material","fluent"];function pe(e,t){return{projectName:F.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:F.boolean().default(!0).describe(`Whether to create a new project before configuring ${e}. Set to true to scaffold a brand-new project, or false if the project already exists and you only want to add ${e} to it.`),theme:F.enum(lt).default("default").describe("The Kendo UI theme to use. Determines which theme package is installed and imported.")}}var c="Kendo UI for Angular",w="angular",N="kendo",$=["AIPrompt","ActionSheet","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","BreadCrumb","Button","ButtonGroup","Calendar","Card","ChartWizard","Charts","CheckBox","Chip","ChipList","ChunkProgressBar","CircularGauge","CircularProgressBar","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","DataQuery","DateInput","DateMath","DatePicker","DateRange","DateTimePicker","Diagram","Dialog","DragandDrop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","ExcelExport","ExpansionPanel","FileSaver","FileSelect","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Forms","FormField","Gantt","Gauges","General","Grid","GridLayout","Icon","InlineAIPrompt","Label","LinearGauge","ListBox","ListView","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OTPInput","Pager","PanelBar","PDFExport","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","PromptBox","QRCode","RadialGauge","RadioButton","RangeSlider","Rating","Ripple","Sankey","Scheduler","ScrollView","Signature","Skeleton","Slider","SmartPasteButton","Sortable","StockChart","Sparkline","SpeechToTextButton","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","SVGIcon","Switch","TabStrip","TextArea","TextBox","TileLayout","Timeline","TimePicker","ToolBar","Tooltip","TreeList","TreeView","Typography","Upload","Window"],ue=new Map([["actionsheet","@progress/kendo-angular-navigation"],["aiprompt","@progress/kendo-angular-conversational-ui"],["appbar","@progress/kendo-angular-navigation"],["arcgauge","@progress/kendo-angular-gauges"],["autocomplete","@progress/kendo-angular-dropdowns"],["avatar","@progress/kendo-angular-layout"],["badge","@progress/kendo-angular-indicators"],["barcode","@progress/kendo-angular-barcodes"],["bottomnavigation","@progress/kendo-angular-navigation"],["breadcrumb","@progress/kendo-angular-navigation"],["button","@progress/kendo-angular-buttons"],["buttongroup","@progress/kendo-angular-buttons"],["calendar","@progress/kendo-angular-dateinputs"],["card","@progress/kendo-angular-layout"],["chartwizard","@progress/kendo-angular-chart-wizard"],["checkbox","@progress/kendo-angular-inputs"],["chip","@progress/kendo-angular-buttons"],["chiplist","@progress/kendo-angular-buttons"],["chunkprogressbar","@progress/kendo-angular-progressbar"],["circulargauge","@progress/kendo-angular-gauges"],["circularprogressbar","@progress/kendo-angular-progressbar"],["colorgradient","@progress/kendo-angular-inputs"],["colorpalette","@progress/kendo-angular-inputs"],["colorpicker","@progress/kendo-angular-inputs"],["combobox","@progress/kendo-angular-dropdowns"],["contextmenu","@progress/kendo-angular-menu"],["dataquery","@progress/kendo-data-query"],["dateinput","@progress/kendo-angular-dateinputs"],["datemath","@progress/kendo-date-math"],["datepicker","@progress/kendo-angular-dateinputs"],["daterangepicker","@progress/kendo-angular-dateinputs"],["datetimepicker","@progress/kendo-angular-dateinputs"],["diagram","@progress/kendo-angular-diagrams"],["dialog","@progress/kendo-angular-dialog"],["drawer","@progress/kendo-angular-layout"],["drawing","@progress/kendo-drawing"],["dropdownbutton","@progress/kendo-angular-buttons"],["dropdownlist","@progress/kendo-angular-dropdowns"],["dropdowntree","@progress/kendo-angular-dropdowns"],["editor","@progress/kendo-angular-editor"],["excelexport","@progress/kendo-angular-excel-export"],["expansionpanel","@progress/kendo-angular-layout"],["filesaver","@progress/kendo-file-saver"],["fileselect","@progress/kendo-angular-upload"],["filter","@progress/kendo-angular-filter"],["flatcolorpicker","@progress/kendo-angular-inputs"],["floatingactionbutton","@progress/kendo-angular-buttons"],["floatinglabel","@progress/kendo-angular-label"],["formfield","@progress/kendo-angular-inputs"],["forms","@progress/kendo-angular-inputs"],["gantt","@progress/kendo-angular-gantt"],["grid","@progress/kendo-angular-grid"],["gridlayout","@progress/kendo-angular-layout"],["icon","@progress/kendo-angular-icons"],["inlineaiprompt","@progress/kendo-angular-conversational-ui"],["label","@progress/kendo-angular-label"],["lineargauge","@progress/kendo-angular-gauges"],["listbox","@progress/kendo-angular-listbox"],["listview","@progress/kendo-angular-listview"],["loader","@progress/kendo-angular-indicators"],["map","@progress/kendo-angular-map"],["maskedtextbox","@progress/kendo-angular-inputs"],["menu","@progress/kendo-angular-menu"],["multicolumncombobox","@progress/kendo-angular-dropdowns"],["multiselect","@progress/kendo-angular-dropdowns"],["multiselecttree","@progress/kendo-angular-dropdowns"],["multiviewcalendar","@progress/kendo-angular-dateinputs"],["notification","@progress/kendo-angular-notification"],["numerictextbox","@progress/kendo-angular-inputs"],["otpinput","@progress/kendo-angular-inputs"],["pager","@progress/kendo-angular-pager"],["panelbar","@progress/kendo-angular-layout"],["pdfexport","@progress/kendo-angular-pdf-export"],["pdfviewer","@progress/kendo-angular-pdfviewer"],["pivotgrid","@progress/kendo-angular-pivotgrid"],["popover","@progress/kendo-angular-tooltip"],["popup","@progress/kendo-angular-popup"],["progressbar","@progress/kendo-angular-progressbar"],["promptbox","@progress/kendo-angular-conversational-ui"],["qrcode","@progress/kendo-angular-barcodes"],["radialgauge","@progress/kendo-angular-gauges"],["radiobutton","@progress/kendo-angular-inputs"],["rangeslider","@progress/kendo-angular-inputs"],["rating","@progress/kendo-angular-inputs"],["ripple","@progress/kendo-angular-ripple"],["sankey","@progress/kendo-angular-charts"],["scheduler","@progress/kendo-angular-scheduler"],["scrollview","@progress/kendo-angular-scrollview"],["signature","@progress/kendo-angular-inputs"],["skeleton","@progress/kendo-angular-indicators"],["slider","@progress/kendo-angular-inputs"],["smartpastebutton","@progress/kendo-angular-buttons"],["sortable","@progress/kendo-angular-sortable"],["sparkline","@progress/kendo-angular-charts"],["speechtotextbutton","@progress/kendo-angular-buttons"],["splitbutton","@progress/kendo-angular-buttons"],["splitter","@progress/kendo-angular-layout"],["spreadsheet","@progress/kendo-angular-spreadsheet"],["stacklayout","@progress/kendo-angular-layout"],["stepper","@progress/kendo-angular-layout"],["stockchart","@progress/kendo-angular-charts"],["svgicon","@progress/kendo-angular-icons"],["switch","@progress/kendo-angular-inputs"],["tabstrip","@progress/kendo-angular-layout"],["textarea","@progress/kendo-angular-inputs"],["textbox","@progress/kendo-angular-inputs"],["tilelayout","@progress/kendo-angular-layout"],["timeline","@progress/kendo-angular-layout"],["timepicker","@progress/kendo-angular-dateinputs"],["toolbar","@progress/kendo-angular-toolbar"],["treelist","@progress/kendo-angular-treelist"],["treeview","@progress/kendo-angular-treeview"],["typography","@progress/kendo-angular-typography"],["upload","@progress/kendo-angular-upload"],["window","@progress/kendo-angular-dialog"],["charts","@progress/kendo-angular-charts"],["conversationalui","@progress/kendo-angular-conversational-ui"],["tooltip","@progress/kendo-angular-tooltip"]]);var ut=dt(ct(pt(import.meta.url)),"../proto/service.proto"),_=new M("contextapi.telerik.com:443",ut,{libName:w});var me=async()=>_.validateUserLicense();import St from"fs";import Ye from"path";import{fileURLToPath as vt}from"url";import{z as b}from"zod";var v=class{constructor(t,s,o){this.name=t;this.config=s;this.cb=o}register(t){this.server=t,this.server.registerTool(this.name,this.config,this.cb)}hasAccess(t){return!this.config.requiredAccess||this.config.requiredAccess.length===0?!0:t==="full"||this.config.requiredAccess.includes(t)}};var U=(e,t)=>`# ${e.suiteName} - Code Validation & Quality Assurance
|
|
6
6
|
|
|
7
7
|
## Comprehensive Code Validation Checklist
|
|
8
8
|
Execute these validation steps systematically to ensure high-quality, maintainable code:
|
|
@@ -46,7 +46,7 @@ Responsive Design:
|
|
|
46
46
|
- Graceful error handling for all user interactions
|
|
47
47
|
- Meaningful error messages for users
|
|
48
48
|
- Network error handling for API calls
|
|
49
|
-
`;var
|
|
49
|
+
`;var L=(e,t)=>{let s=U({suiteName:e.suiteName,libKey:e.libKey},t.validationSteps),o=e.libKey==="angular"?"- **Drag and Drop**: Consider using the DragandDrop and Sortable components when drag-and-drop functionality is needed.":"",n=e.components?e.components.join(", "):"components";return`# \u{1F3AF} ${e.suiteName} - Execution Plan
|
|
50
50
|
|
|
51
51
|
**Current Goal:**
|
|
52
52
|
|
|
@@ -407,42 +407,42 @@ After gathering information:
|
|
|
407
407
|
- Name: ${r}
|
|
408
408
|
- Type: ${a}
|
|
409
409
|
- Summary: ${i}
|
|
410
|
-
- Syntax: ${d}`);let
|
|
411
|
-
`,l=0;for(let y of A){let
|
|
410
|
+
- Syntax: ${d}`);let g=s.RelatedItemsByType?.return_type;if(g?.length){let p=g[0].Text;p&&n.push(`- Return Type: ${p}`)}let A=o.Examples??[];if(A.length>0){let p=`## Examples
|
|
411
|
+
`,l=0;for(let y of A){let C=(y.Component??"").toLowerCase(),S=t.toLowerCase();if(C&&C!==S&&C!=="general")continue;l+=1;let T=y.Code??"";p+=`### Example ${l}
|
|
412
412
|
\`\`\`
|
|
413
413
|
${T}
|
|
414
414
|
\`\`\`
|
|
415
|
-
`}l>0&&n.push(p)}let
|
|
416
|
-
${
|
|
415
|
+
`}l>0&&n.push(p)}let h=s.RelatedItemsByType??{},f=[];for(let[p,l]of Object.entries(h))if(!(p==="return_type"||p==="render_fragment"))for(let y of l??[]){let C=y.FullName??"",S=y.ShortText??"";f.push(`### ${C} (${p})
|
|
416
|
+
${S}`)}return f.length>0&&n.push(`## Additional Context
|
|
417
417
|
`+f.join(`
|
|
418
418
|
---
|
|
419
419
|
`)),n.join(`
|
|
420
420
|
|
|
421
|
-
`)}function ge(e,t,s){let{name:o,title:n,description:r,layoutAssistantName:a,codeAssistantName:i,styleAssistantName:d,iconAssistantName:
|
|
421
|
+
`)}function ge(e,t,s){let{name:o,title:n,description:r,layoutAssistantName:a,codeAssistantName:i,styleAssistantName:d,iconAssistantName:g,accessibilityAssistantName:A,suiteName:h,libKey:f,components:p}=e,l=new v(o,{title:n,description:r,requiredAccess:e.requiredAccess,inputSchema:{userIntent:b.string().describe(`Detailed description and intent of what the user wants to build. Include the type of page/component, main functionality, visual requirements, and any specific ${h} components you want to use.`),needsComponentsDocsConfidence:b.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:b.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:b.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:b.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:b.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:b.array(b.enum(p)).optional().describe(`Optional list of specific ${h} components needed for the project.`)}},async({userIntent:y,needsComponentsDocsConfidence:C,needsLayoutConfidence:S,needsStylingConfidence:T,needsResponsiveBehaviorConfidence:I,needsIconsConfidence:Z,componentsNeeded:X},{_meta:Qe})=>{m("UI Orchestrator called with:",{userIntent:y,needsComponentsDocsConfidence:C,needsLayoutConfidence:S,needsStylingConfidence:T,needsResponsiveBehaviorConfidence:I,needsIconsConfidence:Z});try{await s.recordOrchestratorUserRequest({meta:{userIntent:y,componentsNeeded:X,_meta:Qe}})}catch(D){throw R(D)}let Je=l.server?.server.getClientCapabilities?.()?.elicitation,ee;if(Je&&T>.3&&T<=.6){let D=await l.server?.server.elicitInput({message:"I was unable to determine if you need custom Kendo Theme assistant. Can you please confirm?",requestedSchema:{type:"object",properties:{includeCustomTheming:{type:"boolean",description:"Whether to include Custom Theming assistance in the workflow."}},required:["includeCustomTheming"]}});D?.action==="accept"&&D.content?.includeCustomTheming&&(ee=!0)}return{content:[{type:"text",text:L({name:o,userIntent:y,includeComponentsDocs:C>.3,includeTheming:T>.6||!!ee,includeLayout:S>.5,includeIcons:Z>.6,includeResponsive:S>.5&&I>.4,layoutAssistantName:a,codeAssistantName:i,styleAssistantName:d,iconAssistantName:g,accessibilityAssistantName:A,suiteName:h,libKey:f,components:X},t)}]}});return l}function he(e,t){let{name:s,title:o,description:n,iconAssistantName:r,codeAssistantName:a,suiteName:i,libKey:d,components:g}=e;return new v(s,{title:o,description:n,inputSchema:{userIntent:b.string().describe(`Describe what you want to build or what components you're looking for. Include the type of functionality, features, or UI elements you need from ${i}.`),needsIconsConfidence:b.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:b.array(b.enum(g)).optional().describe(`Optional list of specific ${i} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:h,needsIconsConfidence:f,componentsNeeded:p},{_meta:l})=>{m("Assistant Orchestrator called with:",{userIntent:h,needsIconsConfidence:f,componentsNeeded:p});try{await t.recordOrchestratorUserRequest({meta:{userIntent:h,componentsNeeded:p,_meta:l}})}catch(C){throw R(C)}return{content:[{type:"text",text:j({name:s,userIntent:h,includeComponentsDocs:!0,includeIcons:f>.5,codeAssistantName:a,iconAssistantName:r,suiteName:i,libKey:d,components:p})}]}})}function fe(e,t){let{name:s,title:o,description:n,suiteName:r,libKey:a,getPreContent:i}=e;return new v(s,{title:o,description:n,requiredAccess:e.requiredAccess,inputSchema:{prompt:b.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:b.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:d,includeBuildingBlockExamples:g},{_meta:A})=>{m("Layout Assistant called with:",{prompt:d,includeBuildingBlockExamples:g});try{let f=(await t.queryCssUtils({query:d},{_meta:A})).values.join(`
|
|
422
422
|
`)||"No CSS utilities found for the given prompt.",p=i?.()??"",l=y=>`${p}
|
|
423
423
|
|
|
424
424
|
# Kendo Design System CSS Utilities
|
|
425
425
|
|
|
426
426
|
${f}
|
|
427
427
|
${y??""}
|
|
428
|
-
`;if(
|
|
428
|
+
`;if(g)try{let y=await t.queryBuildingBlocks({query:d,lib_name:a},{_meta:A}),C="";y.items?.length>0&&(C=`
|
|
429
429
|
## Building Blocks Examples
|
|
430
430
|
|
|
431
431
|
The examples here are for demonstration purpose how CSS utils can be implemented in various building blocks.
|
|
432
432
|
However, consider your own design requirements and specifics in order to implement your templates/building blocks correctly.
|
|
433
433
|
|
|
434
|
-
${y.items.map(
|
|
435
|
-
### ${
|
|
434
|
+
${y.items.map(S=>`
|
|
435
|
+
### ${S.name}
|
|
436
436
|
|
|
437
|
-
${
|
|
437
|
+
${S.description}
|
|
438
438
|
|
|
439
439
|
\`\`\`code
|
|
440
|
-
${
|
|
440
|
+
${S.code}
|
|
441
441
|
\`\`\`
|
|
442
442
|
`).join(`
|
|
443
|
-
`)}`),f=l(
|
|
443
|
+
`)}`),f=l(C)}catch(y){m("Error calling building-blocks service:",y),f=l()}else f=l();return{content:[{type:"text",text:f}]}}catch(h){throw R(h)}})}function ye(e,t){let{name:s,title:o,description:n,libKey:r,getPreContent:a}=e;return new v(s,{title:o,description:n,requiredAccess:e.requiredAccess,inputSchema:{prompt:b.string().describe("A natural language description of the desired visual style or theme. For example: 'Create a modern dark theme with high contrast'.")}},async({prompt:i},{_meta:d})=>{m("Style Assistant called with:",{prompt:i});let g="";try{let f=await t.queryThemeGenerate({prompt:i},{_meta:d});if(f.variables_json){let p=JSON.parse(f.variables_json),l=[];if(p)for(let y of Object.keys(p))typeof p[y]=="string"&&l.push(`${y}: ${p[y]}`);g=l.join(`
|
|
444
444
|
|
|
445
|
-
`)}}catch(f){throw R(f)}let A=a?.()??"";return{content:[{type:"text",text:
|
|
445
|
+
`)}}catch(f){throw R(f)}let A=a?.()??"";return{content:[{type:"text",text:g?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
|
|
446
446
|
Ensure the variables are applied consistently across all relevant elements.
|
|
447
447
|
Do NOT set any inline styles. CSS variables should be defined in global or component-level CSS files, or via supported theming mechanisms.
|
|
448
448
|
|
|
@@ -451,29 +451,29 @@ ${A}
|
|
|
451
451
|
## Generated CSS Variables
|
|
452
452
|
|
|
453
453
|
\`\`\`css
|
|
454
|
-
${
|
|
454
|
+
${g}
|
|
455
455
|
\`\`\`
|
|
456
|
-
`:"No CSS variables were generated for the given prompt."}]}})}function Ae(e,t){let{name:s,title:o,description:n,libKey:r,getPostContent:a}=e;return new v(s,{title:o,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:b.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:b.number().min(.1).max(1).default(.1).describe("The proportion of matching icons to return (0.1 = 1 icon, 0.5 = 5 icons, 1.0 = many icons). Default is 0.1.")}},async({query:i,limit:d},{_meta:
|
|
456
|
+
`:"No CSS variables were generated for the given prompt."}]}})}function Ae(e,t){let{name:s,title:o,description:n,libKey:r,getPostContent:a}=e;return new v(s,{title:o,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:b.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:b.number().min(.1).max(1).default(.1).describe("The proportion of matching icons to return (0.1 = 1 icon, 0.5 = 5 icons, 1.0 = many icons). Default is 0.1.")}},async({query:i,limit:d},{_meta:g})=>{m("Icon Search called with:",{query:i,limit:d});try{let A=await t.queryIconsSearch({query:i,limit:d*100},{_meta:g}),h=a?.()??"";return{content:[{type:"text",text:`${A.values.join(`
|
|
457
457
|
|
|
458
458
|
`)}
|
|
459
459
|
|
|
460
|
-
${
|
|
460
|
+
${h}`}]}}catch(A){throw R(A)}})}function be(e,t){let{name:s,title:o,description:n,libKey:r,suiteName:a,components:i,componentAliases:d,getPostContent:g}=e;return new v(s,{title:o,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:b.string().describe("The query to search for."),component:b.enum(i).describe("The component to search for. If not specified, use General.")}},async({query:A,component:h},{_meta:f})=>{m("Code Assistant called with:",{query:A,component:h});let p=h;if(d){let l=d[h];l&&(p=l)}try{let y=(await t.query({query:A,component:p?.toLowerCase()??"general",lib_name:r,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{_meta:f})).values.map(T=>T.replace(/\0/g,"")),C=g?.({component:h})??"";return{content:[{type:"text",text:`${y.join(`
|
|
461
461
|
|
|
462
462
|
`)}
|
|
463
463
|
|
|
464
|
-
${
|
|
464
|
+
${C}`}]}}catch(l){throw R(l)}})}function ke(e,t){let{name:s,title:o,description:n,libKey:r,suiteName:a,components:i,componentAliases:d}=e;return new v(s,{title:o,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:b.string().describe("The query to search for."),component:b.enum(i).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:b.boolean().default(!1).describe("Set to true only on the first call to include comprehensive WCAG 2.2 Level AA general guidelines. After the first call, set to false to get only component-specific accessibility information. Default is false.")}},async({query:g,component:A,includeGeneralGuidelines:h},{_meta:f})=>{m("Accessibility Assistant called with:",{query:g,component:A,includeGeneralGuidelines:h});let p=A;if(d){let l=d[A];l&&(p=l)}try{let l="";if(h){let I=ce();l+=`# WCAG 2.2 Level AA General Accessibility Guidelines
|
|
465
465
|
|
|
466
466
|
`,l+=I,l+=`
|
|
467
467
|
|
|
468
468
|
---
|
|
469
469
|
|
|
470
|
-
`}let T=(await t.getApiRefMatches({query:
|
|
470
|
+
`}let T=(await t.getApiRefMatches({query:g,component:p?.toLowerCase()??"general",lib_name:r,filters_json:'{"type":{"$in":["accessibility"]}}'},{_meta:f})).values.map(I=>I.replace(/\0/g,"")).map(I=>mt(I,p?.toLowerCase()??"general")).join(`
|
|
471
471
|
|
|
472
|
-
`);return T?(
|
|
472
|
+
`);return T?(h&&(l+=`# Component-Specific Accessibility Information
|
|
473
473
|
|
|
474
|
-
`),l+=T):
|
|
474
|
+
`),l+=T):h||(l="No component-specific accessibility guidelines found."),{content:[{type:"text",text:l}]}}catch(l){throw R(l)}})}function R(e){let t=e;return t.code===16?new Error("Error: You are not authenticated. Please verify the Telerik License Key provided is valid."):t.code===8?new Error(`Error: You have exceeded the extension quota. Upgrade to subscription licensing to unlock full access. Message: ${t.message}.`):t.code===7?new Error("Error: You do not have permission to access this resource. Please verify that you have a valid license."):new Error(`Error: An error occurred while calling the service. Please try again later.
|
|
475
475
|
|
|
476
|
-
Error Code: ${t.code} Error Message: ${t.message}`)}var
|
|
476
|
+
Error Code: ${t.code} Error Message: ${t.message}`)}var Ce=e=>`${e}_ui_generator`,Se=e=>`${e}_assistant`,ve=e=>`${e}_layout_assistant`,Te=e=>`${e}_component_assistant`,we=e=>`${e}_style_assistant`,Ie=e=>`${e}_icon_assistant`,Ne=e=>`${e}_accessibility_assistant`,Ee=e=>`${e}_getting_started_assistant`;var xe=e=>`This is the single entry point for all UI-related tasks. It orchestrates the full workflow of building or refining UIs with ${e} components, generating a step-by-step execution plan that specifies which tools to call, in what order, and with what parameters. It includes validation steps to ensure the best possible, standards-compliant code every time.
|
|
477
477
|
|
|
478
478
|
Use the tool when:
|
|
479
479
|
- Want to build or modify a complete page or section layout
|
|
@@ -514,7 +514,7 @@ Use this tool when the user asks about:
|
|
|
514
514
|
|
|
515
515
|
Set the user's full question as the 'query' parameter.
|
|
516
516
|
If the question refers to a specific ${e} component, include its name in the 'component' parameter.
|
|
517
|
-
`,
|
|
517
|
+
`,Ue=e=>`Retrieves accessibility guidance for ${e} components with optional general WCAG 2.2 Level AA guidelines.
|
|
518
518
|
|
|
519
519
|
Use this tool when:
|
|
520
520
|
- You need component-specific accessibility information and API references
|
|
@@ -609,7 +609,7 @@ ${Y.THEME_AND_STYLING}
|
|
|
609
609
|
- Make sure theme import mechanism is consistent with existing project setup
|
|
610
610
|
|
|
611
611
|
Accessibility
|
|
612
|
-
- Accessibility guidelines retrieved and applied to all components`;var gt={createOrchestrator:ge,createAssistantOrchestrator:he,createLayoutAssistant:fe,createStyleAssistant:ye,createIconSearch:Ae,createCodeAssistant:be,createAccessibilityAssistant:ke},ht={orchestrator:
|
|
612
|
+
- Accessibility guidelines retrieved and applied to all components`;var gt={createOrchestrator:ge,createAssistantOrchestrator:he,createLayoutAssistant:fe,createStyleAssistant:ye,createIconSearch:Ae,createCodeAssistant:be,createAccessibilityAssistant:ke},ht={orchestrator:Ce,assistantOrchestrator:Se,layoutAssistant:ve,codeAssistant:Te,styleAssistant:we,iconAssistant:Ie,accessibilityAssistant:Ne,gettingStartedAssistant:Ee},ft={orchestrator:xe,assistantOrchestrator:Re,layoutAssistant:Pe,styleAssistant:Oe,iconAssistant:$e,codeAssistant:_e,accessibilityAssistant:Ue},yt={Orchestrator:{render:L},Validator:{render:U},SharedValidation:{getSteps:x}},At={Angular:{steps:z,additionalPlan:W},React:{steps:H}},u={Tools:gt,ToolNames:ht,ToolDescriptions:ft,Templates:yt,Validation:At};var bt=u.ToolNames.codeAssistant("kendo"),Le=()=>`# Kendo Design System Guidelines for ${c}
|
|
613
613
|
|
|
614
614
|
## Setting up Styles/CSS
|
|
615
615
|
|
|
@@ -785,7 +785,7 @@ npm install -g @angular/cli@latest
|
|
|
785
785
|
Create a new Angular project using the Angular CLI:
|
|
786
786
|
|
|
787
787
|
\`\`\`bash
|
|
788
|
-
ng new ${e} --style=css --ai-config=none --no-ssr --routing
|
|
788
|
+
ng new ${e} --style=css --ai-config=none --no-ssr --routing --zoneless=false --minimal=true
|
|
789
789
|
\`\`\`
|
|
790
790
|
|
|
791
791
|
Navigate to the project directory:
|
|
@@ -809,23 +809,11 @@ Before you begin, ensure you have:
|
|
|
809
809
|
- **Node.js 18 or later** installed on your machine
|
|
810
810
|
- If Node.js is not available, you need to install the latest Node.js automatically as a preliminary step before installing the Angular CLI tool.
|
|
811
811
|
|
|
812
|
-
${r}## Step ${n++}: Configure
|
|
812
|
+
${r}## Step ${n++}: Configure animations
|
|
813
813
|
|
|
814
|
-
This ensures
|
|
814
|
+
This ensures animations that ${c} components rely on are configurated correctly.
|
|
815
815
|
|
|
816
|
-
1.
|
|
817
|
-
\`\`\`bash
|
|
818
|
-
npm install zone.js
|
|
819
|
-
\`\`\`
|
|
820
|
-
|
|
821
|
-
${c} components rely on ZoneJS to trigger change detection.
|
|
822
|
-
|
|
823
|
-
2. In your \`src/main.ts\`, ensure you import 'zone.js':
|
|
824
|
-
\`\`\` typescript
|
|
825
|
-
import 'zone.js';
|
|
826
|
-
\`\`\`
|
|
827
|
-
|
|
828
|
-
3. Open the \`src/app/app.config.ts\` file and add \`provideZoneChangeDetection\`.
|
|
816
|
+
1. Open the \`src/app/app.config.ts\` file and add animations like this.
|
|
829
817
|
\`\`\`typescript
|
|
830
818
|
import { provideZoneChangeDetection } from '@angular/core';
|
|
831
819
|
import {provideAnimations} from '@angular/platform-browser/animations';
|
|
@@ -839,11 +827,6 @@ export const appConfig: ApplicationConfig = {
|
|
|
839
827
|
};
|
|
840
828
|
\`\`\`
|
|
841
829
|
|
|
842
|
-
In your \`src/main.ts\`, ensure you import 'zone.js':
|
|
843
|
-
\`\`\` typescript
|
|
844
|
-
import 'zone.js';
|
|
845
|
-
\`\`\`
|
|
846
|
-
|
|
847
830
|
## Step ${n++}: Install ${c} Packages
|
|
848
831
|
|
|
849
832
|
Use angular CLI to install grid package. While installing, confirm that you also want to install the underlying npm package with the suggested version from the ng tool.
|
|
@@ -862,6 +845,12 @@ npm install @progress/kendo-angular-barcodes @progress/kendo-angular-chart-wizar
|
|
|
862
845
|
|
|
863
846
|
This step is required to use Kendo UI for Angular components without watermarks and with access to all features. Run the following command to activate your license:
|
|
864
847
|
|
|
848
|
+
1. Clean the Angular cache to remove any cached license from a previous activation:
|
|
849
|
+
\`\`\`bash
|
|
850
|
+
ng cache clean
|
|
851
|
+
\`\`\`
|
|
852
|
+
|
|
853
|
+
2. Activate your license using the Kendo CLI:
|
|
865
854
|
\`\`\`bash
|
|
866
855
|
npx kendo license activate
|
|
867
856
|
\`\`\`
|
|
@@ -886,19 +875,19 @@ It's important to use this exact code for the getting started experience, as it
|
|
|
886
875
|
|
|
887
876
|
\`\`\`typescript
|
|
888
877
|
import { Component } from '@angular/core';
|
|
889
|
-
import {
|
|
878
|
+
import { KENDO_CARD } from '@progress/kendo-angular-layout';
|
|
890
879
|
|
|
891
880
|
@Component({
|
|
892
881
|
selector: 'app-root',
|
|
893
882
|
standalone: true,
|
|
894
|
-
imports: [
|
|
883
|
+
imports: [KENDO_CARD],
|
|
895
884
|
templateUrl: './app.html',
|
|
896
885
|
styleUrl: './app.css'
|
|
897
886
|
})
|
|
898
887
|
export class App {}
|
|
899
888
|
\`\`\`
|
|
900
889
|
|
|
901
|
-
2.
|
|
890
|
+
2. Create \`src/app/app.html\` with the following content:
|
|
902
891
|
|
|
903
892
|
\`\`\`html
|
|
904
893
|
<div class="k-d-flex k-flex-col k-gap-5 k-p-6">
|
|
@@ -992,7 +981,7 @@ export class App {}
|
|
|
992
981
|
</div>
|
|
993
982
|
\`\`\`
|
|
994
983
|
|
|
995
|
-
3.
|
|
984
|
+
3. Create \`src/app/app.css\` file with the following styles:
|
|
996
985
|
|
|
997
986
|
\`\`\`css
|
|
998
987
|
.prompt-box {
|
|
@@ -1015,8 +1004,7 @@ export class App {}
|
|
|
1015
1004
|
**Verification:** Automatically run the application. Do not just inform the user\u2014execute the following command and keep the application running:
|
|
1016
1005
|
|
|
1017
1006
|
\`\`\`bash
|
|
1018
|
-
cd ${e}
|
|
1019
|
-
ng serve
|
|
1007
|
+
cd ${e} && ng serve
|
|
1020
1008
|
\`\`\`
|
|
1021
1009
|
|
|
1022
|
-
`}var
|
|
1010
|
+
`}var Ke=u.ToolNames.layoutAssistant(N),Q=u.ToolNames.codeAssistant(N),Fe=u.ToolNames.styleAssistant(N),J=u.ToolNames.iconAssistant(N),je=u.ToolNames.gettingStartedAssistant(N),Ve=u.ToolNames.accessibilityAssistant(N);function ze(e,t){return[u.Tools.createOrchestrator({name:u.ToolNames.orchestrator(N),title:"Kendo UI Generator",description:u.ToolDescriptions.orchestrator(c),layoutAssistantName:Ke,codeAssistantName:Q,styleAssistantName:Fe,iconAssistantName:J,accessibilityAssistantName:Ve,suiteName:c,libKey:w,components:$,requiredAccess:["agent"]},{validationSteps:u.Validation.Angular.steps,injectedPlan:u.Validation.Angular.additionalPlan},e),u.Tools.createAssistantOrchestrator({name:"kendo_angular_assistant",title:"Kendo UI Assistant",description:u.ToolDescriptions.assistantOrchestrator(c),codeAssistantName:Q,iconAssistantName:J,suiteName:c,libKey:w,components:$,requiredAccess:["assistant"]},e),u.Tools.createLayoutAssistant({name:Ke,title:"Kendo UI Layout Assistant",description:u.ToolDescriptions.layoutAssistant,suiteName:c,libKey:w,getPreContent:Le,requiredAccess:["agent"]},e),u.Tools.createStyleAssistant({name:Fe,title:"Kendo UI Style Assistant",description:u.ToolDescriptions.styleAssistant,libKey:w,getPreContent:De,requiredAccess:["agent"]},e),u.Tools.createIconSearch({name:J,title:"Kendo UI Icon Assistant",description:u.ToolDescriptions.iconAssistant,libKey:w,getPostContent:Me,requiredAccess:["assistant","agent"]},e),u.Tools.createCodeAssistant({name:Q,title:"Kendo UI Component Assistant",description:u.ToolDescriptions.codeAssistant(c),libKey:w,suiteName:c,components:$,getPostContent:({component:o})=>qe({component:o}),requiredAccess:["assistant","agent"]},e),new v(je,{title:"Kendo UI Getting Started",description:`Creates a new Angular project with Angular CLI and provides essential getting started guidance for ${c} including installation, configuration, and setup instructions.`,requiredAccess:["agent"],inputSchema:pe(c,"kendo-angular-app")},async({projectName:o,createNewProject:n,theme:r},{_meta:a})=>{try{await e.recordToolUserRequest({toolName:je,meta:{projectName:o,createNewProject:n,theme:r,_meta:a}})}catch(d){console.error("Error recording tool request:",d)}return{content:[{type:"text",text:Be(o,n,r)}]}}),u.Tools.createAccessibilityAssistant({name:Ve,title:"Kendo UI Accessibility Assistant",description:u.ToolDescriptions.accessibilityAssistant(c),libKey:w,suiteName:c,components:$,requiredAccess:["agent"]},e)].filter(o=>o.hasAccess(t))}var Tt=vt(import.meta.url),wt=Ye.dirname(Tt),It=Ye.resolve(wt,"../package.json"),He=JSON.parse(St.readFileSync(It,"utf-8")),We=new kt({name:"kendo-mcp",title:"Kendo MCP Server",version:He.version});async function Nt(){let e=new Ct;m("Starting server...");let t=await le(async()=>{let o=(await me())?.entitlement;return o?.Product?.Code||o?.product?.code});t!=="none"&&(_.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",ze(_,t).forEach(o=>o.register(We)),de({serverName:"angular",contextApi:_,additionalFields:{version:He.version,access_type:t}})),await We.connect(e)}Nt();
|
package/package.json
CHANGED
package/proto/service.proto
CHANGED
|
@@ -62,6 +62,10 @@ message LogEventRequest {
|
|
|
62
62
|
map<string, string> fields = 2;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
message RecordToolUserRequestMessage {
|
|
66
|
+
string tool_name = 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
65
69
|
message ProductInfo {
|
|
66
70
|
int32 id = 1;
|
|
67
71
|
string code = 2;
|
|
@@ -122,5 +126,6 @@ service ContextQueryService {
|
|
|
122
126
|
rpc GenerateTheme(ThemeGenerateRequest) returns (ThemeGenerateResponse);
|
|
123
127
|
rpc ValidateUserLicense(google.protobuf.Empty) returns (ValidateUserLicenseResponse);
|
|
124
128
|
rpc RecordOrchestratorUserRequest(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
129
|
+
rpc RecordToolUserRequest(RecordToolUserRequestMessage) returns (google.protobuf.Empty);
|
|
125
130
|
rpc LogEvent(LogEventRequest) returns (google.protobuf.Empty);
|
|
126
131
|
}
|