@progress/kendo-angular-mcp 1.9.0 → 1.9.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.
Files changed (2) hide show
  1. package/dist/index.js +124 -249
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import{McpServer as eo}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as to}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as Pt,join as Et}from"path";import{fileURLToPath as Gt}from"url";import{loadLicense as vt,decodeLicenseKey as wt,decodeLicenseEvidence as At}from"@progress/kendo-licensing/utils";var V=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function oe(e){return e.replace(/^\uFEFF/,"")}async function H(e){let t=null,n=null;try{let o=vt();if(!o.success){let r=new V(o.message);throw e&&await e("license_load_failed",{error:o.message}).catch(()=>{}),r}try{t=(await wt(o.value)).licenses.find(async s=>!!(await At(s)).userId)}catch(r){console.log(r.message),e&&await e("license_load_failed",{error:r.message||"Unknown decoding error"}).catch(()=>{})}if(!t)return[oe(o.value),null]}catch(o){return n=o.message||"Unknown error loading license.",e&&await e("license_load_failed",{error:n}).catch(()=>{}),[null,n]}return[oe(t),null]}import L from"node:fs";import W from"node:path";var Y=!1,E=process.env.DEBUG_LOG_FILE,ne=!!(E&&typeof E=="string");if(ne){let e=W.resolve(E),t=W.dirname(e);if(t!=="."&&t!==process.cwd()&&!L.existsSync(t))try{L.mkdirSync(t,{recursive:!0})}catch(n){console.error("Error creating log directory:",n)}if(!L.existsSync(e))try{L.writeFileSync(e,"")}catch(n){console.error("Error creating log file:",n)}}else Y=!1;Y=ne&&!!E&&L.existsSync(W.resolve(E));function k(...e){if(Y&&E){let o=`${new Date().toISOString()}: ${e.join(" ")}
3
- `,r=W.resolve(E);L.appendFile(r,o,s=>{s&&console.error("Error writing to log file:",s)})}}import Ct from"@grpc/proto-loader";import q from"@grpc/grpc-js";import ae from"path";import re from"fs";import{fileURLToPath as St}from"url";var It=St(import.meta.url),Tt=ae.dirname(It),ie={version:"unknown"},se=ae.resolve(Tt,"../package.json");re.existsSync(se)&&(ie=JSON.parse(re.readFileSync(se,"utf-8")));function Nt(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var j=class{constructor(t,n,o){this.contextApiUrl=t;this.protoPath=n;this.options=o;this.toolNameHeader="assistant";let r=Ct.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"),k("Using ContextApi URl:",this.contextApiUrl);let s=q.loadPackageDefinition(r);this.client=new s.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?q.credentials.createInsecure():q.credentials.createSsl())}buildRequestMetadata(t={}){return Nt(JSON.stringify({...t,source:"npm",version:ie.version,os:process.platform,node_version:process.version,plugin_mode:!!process.env.PLUGIN_MODE,install_source:process.env.INSTALL_SOURCE?.toLowerCase()}))}async getMetadata({meta:t}={meta:{}}){let[n,o]=this.isDev?["fake_license",null]:await H((c,u)=>this.logEvent(c,u)),r=process.env.CONTEXTAPI_API_KEY,s=r&&typeof r=="string",a=n&&typeof n=="string";if(!a&&!s&&o)throw new Error(`Failed to authenticate with API key or License key!
2
+ import{McpServer as Zt}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as eo}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as Et,join as Dt}from"path";import{fileURLToPath as Gt}from"url";import{loadLicense as vt,decodeLicenseKey as wt,decodeLicenseEvidence as At}from"@progress/kendo-licensing/utils";var z=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function oe(e){return e.replace(/^\uFEFF/,"")}async function H(e){let t=null,n=null;try{let o=vt();if(!o.success){let r=new z(o.message);throw e&&await e("license_load_failed",{error:o.message}).catch(()=>{}),r}try{t=(await wt(o.value)).licenses.find(async s=>!!(await At(s)).userId)}catch(r){console.log(r.message),e&&await e("license_load_failed",{error:r.message||"Unknown decoding error"}).catch(()=>{})}if(!t)return[oe(o.value),null]}catch(o){return n=o.message||"Unknown error loading license.",e&&await e("license_load_failed",{error:n}).catch(()=>{}),[null,n]}return[oe(t),null]}import L from"node:fs";import W from"node:path";var Y=!1,D=process.env.DEBUG_LOG_FILE,ne=!!(D&&typeof D=="string");if(ne){let e=W.resolve(D),t=W.dirname(e);if(t!=="."&&t!==process.cwd()&&!L.existsSync(t))try{L.mkdirSync(t,{recursive:!0})}catch(n){console.error("Error creating log directory:",n)}if(!L.existsSync(e))try{L.writeFileSync(e,"")}catch(n){console.error("Error creating log file:",n)}}else Y=!1;Y=ne&&!!D&&L.existsSync(W.resolve(D));function b(...e){if(Y&&D){let o=`${new Date().toISOString()}: ${e.join(" ")}
3
+ `,r=W.resolve(D);L.appendFile(r,o,s=>{s&&console.error("Error writing to log file:",s)})}}import Ct from"@grpc/proto-loader";import $ from"@grpc/grpc-js";import ae from"path";import re from"fs";import{fileURLToPath as St}from"url";var It=St(import.meta.url),Tt=ae.dirname(It),ie={version:"unknown"},se=ae.resolve(Tt,"../package.json");re.existsSync(se)&&(ie=JSON.parse(re.readFileSync(se,"utf-8")));function Nt(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var j=class{constructor(t,n,o){this.contextApiUrl=t;this.protoPath=n;this.options=o;this.toolNameHeader="assistant";let r=Ct.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"),b("Using ContextApi URl:",this.contextApiUrl);let s=$.loadPackageDefinition(r);this.client=new s.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?$.credentials.createInsecure():$.credentials.createSsl())}buildRequestMetadata(t={}){return Nt(JSON.stringify({...t,source:"npm",version:ie.version,os:process.platform,node_version:process.version,plugin_mode:!!process.env.PLUGIN_MODE,install_source:process.env.INSTALL_SOURCE?.toLowerCase()}))}async getMetadata({meta:t}={meta:{}}){let[n,o]=this.isDev?["fake_license",null]:await H((c,u)=>this.logEvent(c,u)),r=process.env.CONTEXTAPI_API_KEY,s=r&&typeof r=="string",a=n&&typeof n=="string";if(!a&&!s&&o)throw new Error(`Failed to authenticate with API key or License key!
4
4
 
5
- License Error: ${o}`);let i=new q.Metadata;if(a)try{i.add("x-license-key",n)}catch(c){throw k("Error adding license key to metadata:",c),new Error(`Failed to use license key: ${c.message}`)}return s&&i.add("x-api-key",r),this.options?.libName&&i.add("x-library-name",this.options.libName),i.add("x-tool-name",this.toolNameHeader),i.add("x-request-metadata",this.buildRequestMetadata(t)),i}async query(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.query(t,o,(a,i)=>{a?s(a):r(i)})})}async getApiRefMatches(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.getApiRefMatches(t,o,(a,i)=>{a?s(a):r(i)})})}async queryCssUtils(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.cssUtilsSearch(t,o,(a,i)=>{a?(k("Error querying CSS Utils:",a),s(a)):r(i)})})}async queryIconsSearch(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.iconsSearch(t,o,(a,i)=>{a?(k("Error querying Icons Search:",a),s(a)):r(i)})})}async queryBuildingBlocks(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.buildingBlocksSearch(t,o,(a,i)=>{a?(k("Error querying Building Blocks:",a),s(a)):r(i)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((n,o)=>{this.client.validateUserLicense({},t,(r,s)=>{r?(k("Error validating user license:",r),o(r)):n(s)})})}async queryThemeGenerate(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.generateTheme(t,o,(a,i)=>{a?(k("Error querying context API/GenerateTheme:",a),s(a)):r(i)})})}async recordOrchestratorUserRequest({meta:t}){let n=await this.getMetadata({meta:t});return new Promise((o,r)=>{this.client.recordOrchestratorUserRequest({},n,(s,a)=>{s?(k("Error recording orchestrator user request:",s),r(s)):o(a)})})}async recordToolUserRequest({toolName:t,meta:n}){let o=await this.getMetadata({meta:n});return new Promise(r=>{this.client.recordToolUserRequest({tool_name:t},o,(s,a)=>{s?(s.code===7?k("recordToolUserRequest: license does not cover Kendo AI Tools, skipping telemetry."):k("Error recording tool user request:",s),r(null)):r(a)})})}async logEvent(t,n,o={}){let r="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq",{enrichWithUserData:s=!1,meta:a={}}=o,i=r&&typeof r=="string",c=null;if(s)try{let[h]=this.isDev?["fake_license",null]:await H();h&&typeof h=="string"&&(c=h)}catch{}if(!i&&!c){k("Neither LOGGING_API_KEY nor license key available, skipping log event");return}let u=new q.Metadata;return i&&u.add("x-api-key",r),c&&(u.add("x-license-key",c),u.add("x-request-metadata",this.buildRequestMetadata(a)),this.options?.libName&&u.add("x-library-name",this.options.libName)),new Promise((h,v)=>{this.client.logEvent({event_name:t,fields:n||{}},u,(g,p)=>{g?(k("Error logging event:",g),v(g)):h()})})}};import{z as Q}from"zod";var So=Q.object({user_id:Q.string(),user_email:Q.string().email()});import{z as A}from"zod";var Rt=A.object({Product:A.object({Id:A.number().int(),Code:A.string(),Name:A.string()}),License:A.nullable(A.object({Id:A.number().int(),Name:A.string(),Type:A.string(),Active:A.boolean()})),Availability:A.array(A.object({LicenseStart:A.nullable(A.string().datetime()),LicenseEnd:A.nullable(A.string().datetime())})),IsLicenseAvailable:A.optional(A.boolean())}),No=A.array(Rt);function I(e,t){let n=e.server?.server.getClientVersion?.(),o=t||{};return n&&(o.clientInfo={name:n.name,version:n.version}),o}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 n=await e();return n?.toLocaleLowerCase()==="agentic_ui_generator"?"agent":n?.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...">`\nCORRECT: `<label for="qty">Quantity</label><input type="number" id="qty">`\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 must 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- Avoid adding `<main>`, `role="main"`, `<header>`, or `<footer>` in page components \u2014 the layout typically provides them. Duplicating them can cause `landmark-no-duplicate-main` and `landmark-main-is-top-level` violations.\n- Avoid adding `role="banner"` or using a semantic `<header>` element in page components \u2014 the layout\'s `<header>` already claims the banner landmark. Adding another causes `landmark-banner-is-top-level` violations.\n- Avoid adding `role="contentinfo"` to elements inside page components \u2014 the contentinfo landmark should be a top-level landmark, not nested inside `<main>` or other landmarks. Nesting it can cause `landmark-contentinfo-is-top-level` violations.\n- When multiple `<section>` or `<nav>` elements exist on a page, give each a unique `aria-label` to avoid `landmark-unique` violations.\n\n**9. ARIA Role and Attribute Restrictions** (WCAG 4.1.2)\nOnly use ARIA roles that are valid for the given HTML element. Avoid adding `aria-label` or `aria-labelledby` to elements that do not permit naming.\n- `<article>` has an implicit `article` role. Do NOT override it with `role="listitem"`, `role="button"`, `role="link"`, or any other role \u2014 none are allowed on `<article>`. Use `<li>` for list items, `<button>` for interactive cards, or `<a>` for clickable cards instead.\n- `<button>` already has an implicit `button` role. Do NOT add `role="listitem"` or other incompatible roles.\n- `<span>` and `<div>` without roles are generic elements. Do NOT add `aria-label` to them \u2014 it is a prohibited attribute on elements with no accessible role and can cause `aria-prohibited-attr` violations. Instead, use `role="img"` + `aria-label` for visual indicators, or use visually hidden text.\n- Do NOT add `aria-label` to non-interactive `<div>` wrappers \u2014 it has no effect and triggers violations.\n- `aria-pressed` is only valid on elements with `role="button"`, `role="checkbox"`, `role="menuitemcheckbox"`, `role="option"`, `role="radio"`, or `role="switch"`. Do NOT use `aria-pressed` on elements with `role="listitem"` or other roles.\nCORRECT: `<ul role="list"><li class="product-card">...</li></ul>` (listitem inside list)\nCORRECT: `<span role="img" aria-label="Status: pending" class="status-dot"></span>` (role added before aria-label)\nCORRECT: `<span class="status-dot" aria-hidden="true"></span><span class="visually-hidden">Pending</span>` (hidden text alternative)\nWRONG: `<article role="listitem">` (listitem not allowed on article)\nWRONG: `<article role="button">` (button not allowed on article \u2014 use `<button>` or `<div role="button">`)\nWRONG: `<span aria-label="pending" class="status-dot"></span>` (aria-label prohibited on generic span)\nWRONG: `<div aria-label="Product badges" class="badges"></div>` (aria-label prohibited on generic div)\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>`, `<footer>`, `role="main"`, `role="contentinfo"`, `role="banner"` in page/route components (the layout may already provide them), use `<section>` or `<div>` as page-level wrappers, unique aria-labels on duplicate landmark types\n- **ARIA Rules:** Avoid adding `aria-label` to generic `<span>`/`<div>` without a role, avoid using `role="listitem"` or `role="button"` on `<article>` \u2014 use `<li>` for list items, add `role="img"` before `aria-label` on visual indicators, `aria-pressed` only on button-like roles\n- **Scrollable Regions:** Any scrollable container must have `tabindex="0"` or contain keyboard-interactive children\n- **Nested Interactive:** Do not add interactive role/tabindex to a container that already has focusable children\n- **List Roles:** `role="list"` containers must have `role="listitem"` children \u2014 prefer `<ul>/<li>` natively\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 Ut=1440*60*1e3;function de(e){let{serverName:t,contextApi:n,additionalFields:o={},intervalMs:r=Ut,enrichWithUserData:s=!1}=e,a="mcp_server_heartbeat",i=async()=>{try{let u={server_name:t,timestamp:new Date().toISOString(),...o};await n.logEvent(a,u,{enrichWithUserData:s})}catch(u){k(`Failed to send heartbeat for ${t}:`,u)}};i();let c=setInterval(i,r);return()=>{clearInterval(c),k(`Heartbeat stopped for ${t}`)}}import{z as J}from"zod";var Dt=["meridian","default","bootstrap","material","fluent"];function pe(e,t){return{projectName:J.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:J.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:J.enum(Dt).default("meridian").describe("The Kendo UI theme to use. Determines which theme package is installed and imported. Available themes: meridian (default), default, bootstrap, material, fluent.")}}var d="Kendo UI for Angular",T="angular",D="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","SegmentedControl","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"],["segmentedcontrol","@progress/kendo-angular-buttons"],["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 Ot=Et(Pt(Gt(import.meta.url)),"../proto/service.proto"),M=new j("contextapi.telerik.com:443",Ot,{libName:T});var me=async()=>M.validateUserLicense();import oo from"fs";import ft from"path";import{fileURLToPath as no}from"url";import{z as w}from"zod";var C=class{constructor(t,n,o){this.name=t;this.config=n;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 F=e=>{let t=[`1. \`${e.accessibilityAssistantName}\`: Call first with \`includeGeneralGuidelines=true\`; use \`false\` for component-specific follow-ups.`];if(e.includeLayout){let r=e.includeResponsive?"structure, responsive behavior, and UX policy":"structure and UX policy";t.push(`${t.length+1}. \`${e.layoutAssistantName}\`: Get Kendo Design System utilities for the requested ${r}. Use only those utilities for styling and layout.`)}if(e.includeTheming&&t.push(`${t.length+1}. \`${e.styleAssistantName}\`: Generate the requested Kendo theme variables.`),e.includeIcons&&t.push(`${t.length+1}. \`${e.iconAssistantName}\`: Find icons only for the required actions and states.`),e.includeComponentsDocs){let r=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation";t.push(`${t.length+1}. \`${e.codeAssistantName}\`: Call once per component (${r}) with a concise, feature-specific query before writing Kendo markup.`)}t.push(`${t.length+1}. Implement the requested UI using ${e.suiteName} components and the gathered guidance.`),t.push(`${t.length+1}. Run \`npm run build\`, resolve failures, and repeat until it succeeds.`);let n=e.libKey==="angular"?"- Before editing, inspect the project for Standalone or NgModule setup, built-in or structural template syntax, and the existing Kendo theme import mechanism. Match those conventions; default to Standalone and built-in control flow for Angular 17+ only when no existing pattern is found.":"- Use React function components, Hooks, typed props where needed, stable list keys, and the project's existing KendoReact theme and package setup.",o=e.libKey==="angular"?`
5
+ License Error: ${o}`);let i=new $.Metadata;if(a)try{i.add("x-license-key",n)}catch(c){throw b("Error adding license key to metadata:",c),new Error(`Failed to use license key: ${c.message}`)}return s&&i.add("x-api-key",r),this.options?.libName&&i.add("x-library-name",this.options.libName),i.add("x-tool-name",this.toolNameHeader),i.add("x-request-metadata",this.buildRequestMetadata(t)),i}async query(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.query(t,o,(a,i)=>{a?s(a):r(i)})})}async getApiRefMatches(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.getApiRefMatches(t,o,(a,i)=>{a?s(a):r(i)})})}async queryCssUtils(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.cssUtilsSearch(t,o,(a,i)=>{a?(b("Error querying CSS Utils:",a),s(a)):r(i)})})}async queryIconsSearch(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.iconsSearch(t,o,(a,i)=>{a?(b("Error querying Icons Search:",a),s(a)):r(i)})})}async queryBuildingBlocks(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.buildingBlocksSearch(t,o,(a,i)=>{a?(b("Error querying Building Blocks:",a),s(a)):r(i)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((n,o)=>{this.client.validateUserLicense({},t,(r,s)=>{r?(b("Error validating user license:",r),o(r)):n(s)})})}async queryThemeGenerate(t,n){let o=await this.getMetadata({meta:n});return new Promise((r,s)=>{this.client.generateTheme(t,o,(a,i)=>{a?(b("Error querying context API/GenerateTheme:",a),s(a)):r(i)})})}async recordOrchestratorUserRequest({meta:t}){let n=await this.getMetadata({meta:t});return new Promise((o,r)=>{this.client.recordOrchestratorUserRequest({},n,(s,a)=>{s?(b("Error recording orchestrator user request:",s),r(s)):o(a)})})}async recordToolUserRequest({toolName:t,meta:n}){let o=await this.getMetadata({meta:n});return new Promise(r=>{this.client.recordToolUserRequest({tool_name:t},o,(s,a)=>{s?(s.code===7?b("recordToolUserRequest: license does not cover Kendo AI Tools, skipping telemetry."):b("Error recording tool user request:",s),r(null)):r(a)})})}async logEvent(t,n,o={}){let r="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq",{enrichWithUserData:s=!1,meta:a={}}=o,i=r&&typeof r=="string",c=null;if(s)try{let[h]=this.isDev?["fake_license",null]:await H();h&&typeof h=="string"&&(c=h)}catch{}if(!i&&!c){b("Neither LOGGING_API_KEY nor license key available, skipping log event");return}let u=new $.Metadata;return i&&u.add("x-api-key",r),c&&(u.add("x-license-key",c),u.add("x-request-metadata",this.buildRequestMetadata(a)),this.options?.libName&&u.add("x-library-name",this.options.libName)),new Promise((h,v)=>{this.client.logEvent({event_name:t,fields:n||{}},u,(g,p)=>{g?(b("Error logging event:",g),v(g)):h()})})}};import{z as Q}from"zod";var Co=Q.object({user_id:Q.string(),user_email:Q.string().email()});import{z as A}from"zod";var Rt=A.object({Product:A.object({Id:A.number().int(),Code:A.string(),Name:A.string()}),License:A.nullable(A.object({Id:A.number().int(),Name:A.string(),Type:A.string(),Active:A.boolean()})),Availability:A.array(A.object({LicenseStart:A.nullable(A.string().datetime()),LicenseEnd:A.nullable(A.string().datetime())})),IsLicenseAvailable:A.optional(A.boolean())}),To=A.array(Rt);function I(e,t){let n=e.server?.server.getClientVersion?.(),o=t||{};return n&&(o.clientInfo={name:n.name,version:n.version}),o}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 n=await e();return n?.toLocaleLowerCase()==="agentic_ui_generator"?"agent":n?.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...">`\nCORRECT: `<label for="qty">Quantity</label><input type="number" id="qty">`\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 must 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- Avoid adding `<main>`, `role="main"`, `<header>`, or `<footer>` in page components \u2014 the layout typically provides them. Duplicating them can cause `landmark-no-duplicate-main` and `landmark-main-is-top-level` violations.\n- Avoid adding `role="banner"` or using a semantic `<header>` element in page components \u2014 the layout\'s `<header>` already claims the banner landmark. Adding another causes `landmark-banner-is-top-level` violations.\n- Avoid adding `role="contentinfo"` to elements inside page components \u2014 the contentinfo landmark should be a top-level landmark, not nested inside `<main>` or other landmarks. Nesting it can cause `landmark-contentinfo-is-top-level` violations.\n- When multiple `<section>` or `<nav>` elements exist on a page, give each a unique `aria-label` to avoid `landmark-unique` violations.\n\n**9. ARIA Role and Attribute Restrictions** (WCAG 4.1.2)\nOnly use ARIA roles that are valid for the given HTML element. Avoid adding `aria-label` or `aria-labelledby` to elements that do not permit naming.\n- `<article>` has an implicit `article` role. Do NOT override it with `role="listitem"`, `role="button"`, `role="link"`, or any other role \u2014 none are allowed on `<article>`. Use `<li>` for list items, `<button>` for interactive cards, or `<a>` for clickable cards instead.\n- `<button>` already has an implicit `button` role. Do NOT add `role="listitem"` or other incompatible roles.\n- `<span>` and `<div>` without roles are generic elements. Do NOT add `aria-label` to them \u2014 it is a prohibited attribute on elements with no accessible role and can cause `aria-prohibited-attr` violations. Instead, use `role="img"` + `aria-label` for visual indicators, or use visually hidden text.\n- Do NOT add `aria-label` to non-interactive `<div>` wrappers \u2014 it has no effect and triggers violations.\n- `aria-pressed` is only valid on elements with `role="button"`, `role="checkbox"`, `role="menuitemcheckbox"`, `role="option"`, `role="radio"`, or `role="switch"`. Do NOT use `aria-pressed` on elements with `role="listitem"` or other roles.\nCORRECT: `<ul role="list"><li class="product-card">...</li></ul>` (listitem inside list)\nCORRECT: `<span role="img" aria-label="Status: pending" class="status-dot"></span>` (role added before aria-label)\nCORRECT: `<span class="status-dot" aria-hidden="true"></span><span class="visually-hidden">Pending</span>` (hidden text alternative)\nWRONG: `<article role="listitem">` (listitem not allowed on article)\nWRONG: `<article role="button">` (button not allowed on article \u2014 use `<button>` or `<div role="button">`)\nWRONG: `<span aria-label="pending" class="status-dot"></span>` (aria-label prohibited on generic span)\nWRONG: `<div aria-label="Product badges" class="badges"></div>` (aria-label prohibited on generic div)\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>`, `<footer>`, `role="main"`, `role="contentinfo"`, `role="banner"` in page/route components (the layout may already provide them), use `<section>` or `<div>` as page-level wrappers, unique aria-labels on duplicate landmark types\n- **ARIA Rules:** Avoid adding `aria-label` to generic `<span>`/`<div>` without a role, avoid using `role="listitem"` or `role="button"` on `<article>` \u2014 use `<li>` for list items, add `role="img"` before `aria-label` on visual indicators, `aria-pressed` only on button-like roles\n- **Scrollable Regions:** Any scrollable container must have `tabindex="0"` or contain keyboard-interactive children\n- **Nested Interactive:** Do not add interactive role/tabindex to a container that already has focusable children\n- **List Roles:** `role="list"` containers must have `role="listitem"` children \u2014 prefer `<ul>/<li>` natively\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 Pt=1440*60*1e3;function de(e){let{serverName:t,contextApi:n,additionalFields:o={},intervalMs:r=Pt,enrichWithUserData:s=!1}=e,a="mcp_server_heartbeat",i=async()=>{try{let u={server_name:t,timestamp:new Date().toISOString(),...o};await n.logEvent(a,u,{enrichWithUserData:s})}catch(u){b(`Failed to send heartbeat for ${t}:`,u)}};i();let c=setInterval(i,r);return()=>{clearInterval(c),b(`Heartbeat stopped for ${t}`)}}import{z as X}from"zod";var Ut=["meridian","default","bootstrap","material","fluent"];function pe(e,t){return{projectName:X.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:X.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:X.enum(Ut).default("meridian").describe("The Kendo UI theme to use. Determines which theme package is installed and imported. Available themes: meridian (default), default, bootstrap, material, fluent.")}}var d="Kendo UI for Angular",T="angular",U="kendo",q=["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","LLMKit","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","SegmentedControl","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"],["segmentedcontrol","@progress/kendo-angular-buttons"],["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 Ot=Dt(Et(Gt(import.meta.url)),"../proto/service.proto"),M=new j("contextapi.telerik.com:443",Ot,{libName:T});var me=async()=>M.validateUserLicense();import to from"fs";import ft from"path";import{fileURLToPath as oo}from"url";import{z as w}from"zod";var C=class{constructor(t,n,o){this.name=t;this.config=n;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 F=e=>{let t=[`1. \`${e.accessibilityAssistantName}\`: Call first with \`includeGeneralGuidelines=true\`; use \`false\` for component-specific follow-ups.`];if(e.includeLayout){let r=e.includeResponsive?"structure, responsive behavior, and UX policy":"structure and UX policy";t.push(`${t.length+1}. \`${e.layoutAssistantName}\`: Get Kendo Design System utilities for the requested ${r}. Use only those utilities for styling and layout.`)}if(e.includeTheming&&t.push(`${t.length+1}. \`${e.styleAssistantName}\`: Generate the requested Kendo theme variables.`),e.includeIcons&&t.push(`${t.length+1}. \`${e.iconAssistantName}\`: Find icons only for the required actions and states.`),e.includeComponentsDocs){let r=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation";t.push(`${t.length+1}. \`${e.codeAssistantName}\`: Call once per component (${r}) with a concise, feature-specific query before writing Kendo markup.`)}t.push(`${t.length+1}. After each assistant call, use the output to decide how to incorporate the guidance into the feature where applicable.`),t.push(`${t.length+1}. Implement the requested UI using ${e.suiteName} components and the gathered guidance.`),t.push(`${t.length+1}. Run \`npm run build\`, resolve failures, and repeat until it succeeds.`);let n=e.libKey==="angular"?"- Before editing, inspect the project for Standalone or NgModule setup, built-in or structural template syntax, and the existing Kendo theme import mechanism. Match those conventions; default to Standalone and built-in control flow for Angular 17+ only when no existing pattern is found.":"- Use React function components, Hooks, typed props where needed, stable list keys, and the project's existing KendoReact theme and package setup.",o=e.libKey==="angular"?`
6
6
  - When drag-and-drop is required, consider the DragAndDrop and Sortable components.`:"";return`# ${e.suiteName} Execution Plan
7
7
 
8
8
  <orchestrator-plan>
@@ -14,16 +14,18 @@ ${t.map(r=>` ${r}`).join(`
14
14
  <required-invariants>
15
15
  - Accessibility guidance is retrieved before implementation; meet WCAG 2.2 Level AA.
16
16
  - Do not generate code until the required tool calls above are complete and their guidance is incorporated.
17
+ - Generate code using tool guidance. Do not inspect \`node_modules\` unless the tools are insufficient and there is conflicting information or runtime errors.
17
18
  - Use focused component queries; do not batch unrelated components.
18
19
  - Build failures block completion and must be fixed before reporting success.
19
20
  ${n}${o}
20
21
  </required-invariants>
21
22
  <completion>
22
23
  - \`npm run build\` succeeds without errors.
24
+ - Every assistant response is reviewed and relevant guidance is applied.
23
25
  - Required Kendo component, accessibility, layout, and framework-specific requirements are implemented.
24
26
  - Do not report completion while either condition is unresolved.
25
27
  </completion>
26
- </orchestrator-plan>`};var X=e=>{let t=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation",n=[`1. \`${e.codeAssistantName}\`: Call once per component (${t}) with a concise, feature-specific query before writing Kendo markup.`];return e.includeIcons&&n.push(`${n.length+1}. \`${e.iconAssistantName}\`: Find icons only for the required actions and states.`),n.push(`${n.length+1}. Implement using the gathered ${e.suiteName} documentation.`),n.push(`${n.length+1}. Run \`npm run build\`, resolve failures, and repeat until it succeeds.`),`# ${e.suiteName} Execution Plan
28
+ </orchestrator-plan>`};var J=e=>{let t=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation",n=[`1. \`${e.codeAssistantName}\`: Call once per component (${t}) with a concise, feature-specific query before writing Kendo markup.`];return e.includeIcons&&n.push(`${n.length+1}. \`${e.iconAssistantName}\`: Find icons only for the required actions and states.`),n.push(`${n.length+1}. Implement using the gathered ${e.suiteName} documentation.`),n.push(`${n.length+1}. Run \`npm run build\`, resolve failures, and repeat until it succeeds.`),`# ${e.suiteName} Execution Plan
27
29
 
28
30
  <assistant-plan>
29
31
  <goal>${e.userIntent}</goal>
@@ -41,106 +43,63 @@ ${n.map(o=>` ${o}`).join(`
41
43
  </completion>
42
44
  </assistant-plan>`};var _=()=>`## UX/UI Design Best Practices
43
45
 
44
- > **These are default guidelines \u2014 follow them when the user has not stated otherwise.** If the user explicitly requests different behavior (e.g., a specific component size, a custom row limit, alternate breakpoints, a different layout pattern), defer to the user's stated preference and disregard the conflicting default below. Only accessibility and WCAG requirements (contrast ratios, focus indicators, semantic HTML, ARIA) apply regardless of user preference.
45
-
46
- Follow these principles when building or reviewing any UI. They apply regardless of the visual style requested.
47
-
48
- ### Visual Hierarchy & Typography
49
- - Use a strict 3-level heading hierarchy: page title (h1) \u2192 section heading (h2) \u2192 component label (h3). Never skip levels.
50
- - Body text line length: 60\u201380 characters maximum. Wider lines reduce readability.
51
- - Numeric and currency columns must use \`font-variant-numeric: tabular-nums\` to keep digits column-aligned.
52
- - Never use more than 2 typefaces in a single interface.
53
-
54
- ### Color & Contrast
55
- - Body text contrast ratio: \u2265 4.5:1 against its background.
56
- - Large text (\u2265 18pt / 14pt bold) and UI component boundaries: \u2265 3:1.
57
- - Use only the 5 semantic color slots \u2014 primary, success, warning, error, info \u2014 for meaning. Do not invent new semantic colors.
58
- - Never use color alone to convey status or meaning (8% of men have color vision deficiency). Always pair color with an icon or text label.
59
- - Never use red and green as the sole distinguishing colors.
60
-
61
- ### Component Sizing & Density
62
- - Never mix size variants within the same form or toolbar. Pick one: \`"small"\`, \`"medium"\`, or \`"large"\` and apply it consistently.
63
- - \`"small"\` (24px) = data-dense tools. \`"medium"\` (32px) = default. \`"large"\` (40px) = comfortable/consumer-facing.
64
-
65
- ### Motion & Animation
66
- - Always support \`prefers-reduced-motion: reduce\` \u2014 set transition durations to \u2264 0.01ms in that media query.
67
- - Micro-interactions (button press, tooltip): 150\u2013250ms. Panel transitions (drawer, sidebar): 300\u2013400ms.
68
- - Never animate layout properties that cause reflow (width, height, margin, padding). Animate transform and opacity instead.
69
-
70
- ### Interaction Patterns
71
- - Never set \`outline: none\` globally. Keyboard focus indicators are required (WCAG 2.4.7).
72
- - Loading states: prefer Skeleton loader for content areas, overlay + ProgressBar for blocking operations, disabled button + inline spinner for async submission.
73
- - Error recovery: inline validation near the field for form errors; notification/toast for API/system errors.
74
- - Every icon-only button must have a visible tooltip and an \`aria-label\`.
75
- - Never show tooltips on disabled elements \u2014 disabled elements cannot receive focus.
76
-
77
- ### Responsive Design
78
- - Breakpoints (defaults \u2014 use the project's breakpoint system if one is already established): Mobile < 640px | Tablet 640\u20131024px | Desktop 1024\u20131440px | Wide > 1440px.
79
- - Constrain max content width to 1440px with \`margin: 0 auto\` on wide viewports, unless a different maximum is already defined by the project.
80
- - On mobile (< 480px), data grids must switch to stacked/card layout \u2014 tabular layout is unusable at that width.
81
- - Schedulers/complex data views are not viable on mobile; provide a simplified alternative or a clear message.
82
-
83
- ### UX Writing
84
- - Input labels describe *what* the field is. Placeholder text hints at *format or example* \u2014 never use placeholder as a substitute for a label.
85
- - Button labels must be specific action verbs: "Save Changes", "Delete Record", "Export CSV" \u2014 not "Submit", "OK", or "Yes".
86
- - Error messages must be specific and actionable: "Email address is already registered" not "Error 409".
87
- - Table/grid column headers: Title Case. Never ALL CAPS.
88
- - Empty states must explain why it's empty and offer a next action (e.g., "No records found. Add your first item.").
89
-
90
- ### Data Presentation
91
- - Numeric and currency values must be right-aligned in table/grid columns.
92
- - Never display raw ISO 8601 date strings (e.g., \`2024-01-15T09:30:00Z\`) \u2014 always format for the locale (e.g., "15 Jan 2024").
93
- - Never render more than 200 rows in a fully-loaded table. Use pagination or virtual scrolling for larger datasets.
94
- - Never leave grid columns without explicit widths \u2014 causes layout jank on load and sort operations.
95
-
96
- ### Chart Type Selection
97
- - **Line / Area**: continuous quantitative data over time (trends, rates).
98
- - **Bar (vertical)**: discrete time periods or ordered categories.
99
- - **Horizontal Bar**: comparing named categories (rankings, survey results).
100
- - **Donut (not Pie)**: part-to-whole proportions with \u2264 6 segments. Avoid Pie charts \u2014 the center hole of a Donut makes area estimation easier.
101
- - **Avoid**: 3D charts, dual-axis charts (misleading), charts with > 7 series in the same view.
102
- - Chart legend placement: below the chart.
103
-
104
- ### Dialog vs Window Decisions
105
- - **Dialog (modal)**: use when the user must respond before continuing. Title should be action-oriented: "Delete this record?" not "Confirmation".
106
- - **Window (non-modal)**: use when content can exist alongside the background (resizable/draggable panels, editors).
107
- - Destructive dialog actions (delete, overwrite) must use the error theme color.
108
- - Every dialog must be closable via Escape key and have a clearly labeled close control.
109
-
110
- ### Form Validation Display Rules
111
- - Show field-level validation errors **after the first blur** (not on initial render, not on every keystroke).
112
- - Display error text inline, directly below the field \u2014 never in a toast or far from the field.
113
- - On form-level submit failure, focus the first invalid field automatically.
114
- - Required fields: mark with an asterisk (*) and include a legend. Do not mark optional fields \u2014 label them "(optional)" only if most fields are required.
115
-
116
- ### Grid Data Volume & Scrolling Strategy
117
- - Never render more than 200 rows without pagination or virtual scrolling.
118
- - Use **pagination** when users need to navigate by page number, see total row count, or perform export/select-all operations.
119
- - Use **virtual scrolling** when the dataset is very large (thousands of rows) and users scroll continuously rather than jumping to pages.
120
- - Default page size: 25 rows. Offer page size options (10, 25, 50) as defaults unless the project specifies otherwise.
121
-
122
- ### Grid Feature Selection
123
- Enable only the Grid features genuinely required for the workflow. Each enabled feature adds UI chrome, event listeners, and DOM nodes. Start with the minimum set and add only when user stories require it:
124
- - \`sortable\` \u2014 when users need to find specific rows in non-obvious order
125
- - \`filterable\` \u2014 for datasets > 50 rows with varied values; skip for small fixed lists
126
- - \`groupable\` \u2014 only when hierarchical analysis is a core workflow
127
- - \`reorderable\` / \`resizable\` \u2014 when user customization of the view is a stated requirement
128
- - \`selectable\` \u2014 only when batch actions exist
129
- - \`editable\` \u2014 only when inline data entry is the primary workflow, not for read-only display
130
-
131
- ### Form Layout Defaults
132
- These are defaults \u2014 respect the project's existing form conventions if established:
133
- - Prefer single-column form layout \u2014 easier to read and complete than multi-column.
134
- - Use two-column layout only for tightly related field pairs (First Name / Last Name, Start Date / End Date).
135
- - Align labels above their fields for complex forms; inline labels work only for very short forms (2\u20133 fields).
136
- - Place the primary action (Save / Submit) at the bottom left; Cancel or secondary actions to its right.
137
-
138
- ### Whitespace Defaults
139
- When no design token system is defined by the project, apply these minimum spacing values:
140
- - Section separators: \u2265 24px vertical gap between distinct content areas.
141
- - Card internal padding: 16\u201324px.
142
- - Form field vertical gap: \u2265 16px between fields (24px for multi-column groups).
143
- - Page left/right margin: 24\u201332px minimum, even at desktop widths.`;var Z=()=>`
46
+ Follow the constraints and conventions unless the prompt or project defines a stronger convention. Accessibility and WCAG rules always override other guidance.
47
+
48
+ ### Core Constraints
49
+ - Headings: use a strict hierarchy - h1 \u2192 h2 \u2192 h3; never skip levels
50
+ - Use at most 2 typefaces
51
+ - Body text line length: 60-80 characters maximum
52
+ - Contrast: body text \u2265 4.5:1 against its background
53
+ - Large text (\u2265 18pt / 14pt bold) and UI boundaries \u2265 3:1
54
+ - Use only semantic colors: primary, success, warning, error, info
55
+ - Never use color alone to convey status or meaning; pair it with text or an icon
56
+ - Pick one size per form or toolbar: \`"small"\` (24px, data-dense), \`"medium"\` (32px, default), or \`"large"\` (40px, comfortable)
57
+ - Animate transform and opacity, not reflow properties such as width, height, margin, or padding
58
+ - Never set \`outline: none\` globally
59
+ - Icon-only buttons require a visible tooltip and an \`aria-label\`
60
+ - Never show tooltips on disabled elements
61
+ - Do not use placeholder text as a label
62
+ - Button labels must use specific action verbs
63
+ - Error messages must be specific and actionable
64
+ - Grid headers use Title Case, not ALL CAPS
65
+ - Empty states must explain why they are empty and offer a next action
66
+ - Right-align numeric and currency grid columns
67
+ - Format dates for the locale; never show raw ISO 8601 strings
68
+ - Give every grid column an explicit width
69
+ - Dialogs must support Escape to close and include a clearly labeled close control
70
+ - Destructive dialog actions use the error theme color
71
+ - Show field validation after first blur, not on initial render or every keystroke
72
+ - Display field error text directly below the field
73
+ - Required fields use an asterisk (*) plus a legend. Mark optional fields only when most fields are required
74
+ - Do not render more than 200 grid rows without pagination or virtual scrolling
75
+ - Support \`prefers-reduced-motion: reduce\` \u2014 set transition durations to \u2264 0.01ms in that media query
76
+
77
+ ### Default Conventions
78
+ - Breakpoints: Mobile < 640px | Tablet 640-1024px | Desktop 1024-1440px | Wide > 1440px
79
+ - Wide layouts: max width 1440px and centered
80
+ - On screens under 480px, grids switch to stacked or card layout
81
+ - Loading: Skeleton for content areas, overlay + ProgressBar for blocking operations, disabled button + inline spinner for async submission
82
+ - Error recovery: inline for form fields, toast/notification for API or system errors
83
+ - Virtual scrolling fits very large datasets where users scroll continuously rather than jump between pages
84
+ - Paging defaults: 25 rows with options 10, 25, 50
85
+ - Prefer single-column forms. Use two columns only for tightly related field pairs
86
+ - For complex forms, place labels above fields. Inline labels fit only very short forms
87
+ - Place the primary action at the bottom left and secondary actions to its right
88
+ - Minimum spacing when no token system exists: section gap between distinct content areas \u2265 24px, card padding 16-24px, form field gap \u2265 16px (24px in multi-column groups), page margins 24-32px
89
+ - Animations on micro-interactions (button press, tooltip): 150-250ms. Panel transitions (drawer, sidebar): 300-400ms
90
+
91
+ ### Chart Selection
92
+ - Line or Area: continuous quantitative data over time (trends, rates)
93
+ - Bar (vertical): discrete time periods or ordered categories
94
+ - Bar (horizontal): comparing named categories (rankings, survey results)
95
+ - Donut (not Pie): part-to-whole proportions with \u2264 6 segments. Prefer Donut over Pie charts
96
+
97
+ ### Avoid
98
+ - 3D charts, dual-axis charts, and charts with more than 7 series
99
+
100
+ ### Dialog vs Window
101
+ - Dialog: blocking choice or confirmation; title should be action-oriented
102
+ - Window: non-modal content that can stay alongside the background(resizable/draggable panels, editors)`;var Z=()=>`
144
103
  **REQUIRED ACTIONS \u2014 apply all fixes directly to the source files:**
145
104
  - Search all .ts files for every outdated API mentioned in the codemod output \u2014 this includes renamed or removed properties, method names, and enum values.
146
105
  - Search all .ts, .css, and .scss files for every outdated CSS class mentioned in the codemod output and update it with an appropriate replacement.
@@ -153,23 +112,23 @@ When no design token system is defined by the project, apply these minimum spaci
153
112
  **OUTPUT REQUIREMENTS:**
154
113
  - For each file you change, briefly describe what was wrong and what fix you applied
155
114
  - If a problem requires a decision from the developer that you cannot make automatically, call it out explicitly with the file path
156
- - If all automated changes look correct and no further fixes are needed, explicitly confirm this`;import{execFile as Lt}from"child_process";import{access as _t}from"fs/promises";import{promisify as Bt}from"util";var ge=Bt(Lt);function qt(e,t){let n;try{n=JSON.parse(e)}catch{return e}let o=n?.Item;if(!o)return e;let r=[],s=o.FullName??o.Name??"",a=o.Type??"",i=o.Summary??"",c=o.SyntaxContent??"";r.push(`## API Reference Item
115
+ - If all automated changes look correct and no further fixes are needed, explicitly confirm this`;import{execFile as Lt}from"child_process";import{access as _t}from"fs/promises";import{promisify as Bt}from"util";var ge=Bt(Lt);function $t(e,t){let n;try{n=JSON.parse(e)}catch{return e}let o=n?.Item;if(!o)return e;let r=[],s=o.FullName??o.Name??"",a=o.Type??"",i=o.Summary??"",c=o.SyntaxContent??"";r.push(`## API Reference Item
157
116
  - Name: ${s}
158
117
  - Type: ${a}
159
118
  - Summary: ${i}
160
119
  - Syntax: ${c}`);let u=n.RelatedItemsByType?.return_type;if(u?.length){let p=u[0].Text;p&&r.push(`- Return Type: ${p}`)}let h=o.Examples??[];if(h.length>0){let p=`## Examples
161
- `,m=0;for(let b of h){let l=(b.Component??"").toLowerCase(),f=t.toLowerCase();if(l&&l!==f&&l!=="general")continue;m+=1;let x=b.Code??"";p+=`### Example ${m}
120
+ `,m=0;for(let y of h){let l=(y.Component??"").toLowerCase(),f=t.toLowerCase();if(l&&l!==f&&l!=="general")continue;m+=1;let x=y.Code??"";p+=`### Example ${m}
162
121
  \`\`\`
163
122
  ${x}
164
123
  \`\`\`
165
- `}m>0&&r.push(p)}let v=n.RelatedItemsByType??{},g=[];for(let[p,m]of Object.entries(v))if(!(p==="return_type"||p==="render_fragment"))for(let b of m??[]){let l=b.FullName??"",f=b.ShortText??"";g.push(`### ${l} (${p})
124
+ `}m>0&&r.push(p)}let v=n.RelatedItemsByType??{},g=[];for(let[p,m]of Object.entries(v))if(!(p==="return_type"||p==="render_fragment"))for(let y of m??[]){let l=y.FullName??"",f=y.ShortText??"";g.push(`### ${l} (${p})
166
125
  ${f}`)}return g.length>0&&r.push(`## Additional Context
167
126
  `+g.join(`
168
127
  ---
169
128
  `)),r.join(`
170
129
 
171
- `)}function fe(e,t){let{name:n,title:o,description:r,layoutAssistantName:s,codeAssistantName:a,styleAssistantName:i,iconAssistantName:c,accessibilityAssistantName:u,suiteName:h,libKey:v,components:g}=e,p=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{userIntent:w.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:w.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:w.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:w.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:w.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:w.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:w.array(w.enum(g)).optional().describe(`Optional list of specific ${h} components needed for the project.`)}},async({userIntent:m,needsComponentsDocsConfidence:b,needsLayoutConfidence:l,needsStylingConfidence:f,needsResponsiveBehaviorConfidence:x,needsIconsConfidence:S,componentsNeeded:N},{_meta:R})=>{let z=I(p,R);k("UI Orchestrator called with:",{userIntent:m,needsComponentsDocsConfidence:b,needsLayoutConfidence:l,needsStylingConfidence:f,needsResponsiveBehaviorConfidence:x,needsIconsConfidence:S});try{await t.recordOrchestratorUserRequest({meta:{userIntent:m,componentsNeeded:N,...z}})}catch(O){throw G(O)}let U=p.server?.server.getClientCapabilities?.()?.elicitation,K;if(U&&f>.3&&f<=.6){let O=await p.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"]}});O?.action==="accept"&&O.content?.includeCustomTheming&&(K=!0)}return{content:[{type:"text",text:F({name:n,userIntent:m,includeComponentsDocs:b>.3,includeTheming:f>.6||!!K,includeLayout:l>.5,includeIcons:S>.6,includeResponsive:l>.5&&x>.4,layoutAssistantName:s,codeAssistantName:a,styleAssistantName:i,iconAssistantName:c,accessibilityAssistantName:u,suiteName:h,libKey:v,components:N})}]}});return p}function ye(e,t){let{name:n,title:o,description:r,iconAssistantName:s,codeAssistantName:a,suiteName:i,libKey:c,components:u}=e,h=new C(n,{title:o,description:r,inputSchema:{userIntent:w.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:w.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:w.array(w.enum(u)).optional().describe(`Optional list of specific ${i} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:v,needsIconsConfidence:g,componentsNeeded:p},{_meta:m})=>{let b=I(h,m);k("Assistant Orchestrator called with:",{userIntent:v,needsIconsConfidence:g,componentsNeeded:p});try{await t.recordOrchestratorUserRequest({meta:{userIntent:v,componentsNeeded:p,...b}})}catch(f){throw G(f)}return{content:[{type:"text",text:X({name:n,userIntent:v,includeComponentsDocs:!0,includeIcons:g>.5,codeAssistantName:a,iconAssistantName:s,suiteName:i,libKey:c,components:p})}]}});return h}function be(e,t){let{name:n,title:o,description:r,suiteName:s,libKey:a,getPreContent:i}=e,c=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{prompt:w.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:w.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:u,includeBuildingBlockExamples:h},{_meta:v})=>{let g=I(c,v);k("Layout Assistant called with:",{prompt:u,includeBuildingBlockExamples:h});try{let m=(await t.queryCssUtils({query:u},{...g})).values.join(`
172
- `)||"No CSS utilities found for the given prompt.",b=i?.()??"",l=f=>`${b}
130
+ `)}function fe(e,t){let{name:n,title:o,description:r,layoutAssistantName:s,codeAssistantName:a,styleAssistantName:i,iconAssistantName:c,accessibilityAssistantName:u,suiteName:h,libKey:v,components:g}=e,p=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{userIntent:w.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:w.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:w.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:w.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:w.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:w.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:w.array(w.enum(g)).optional().describe(`Optional list of specific ${h} components needed for the project.`)}},async({userIntent:m,needsComponentsDocsConfidence:y,needsLayoutConfidence:l,needsStylingConfidence:f,needsResponsiveBehaviorConfidence:x,needsIconsConfidence:S,componentsNeeded:N},{_meta:R})=>{let V=I(p,R);b("UI Orchestrator called with:",{userIntent:m,needsComponentsDocsConfidence:y,needsLayoutConfidence:l,needsStylingConfidence:f,needsResponsiveBehaviorConfidence:x,needsIconsConfidence:S});try{await t.recordOrchestratorUserRequest({meta:{userIntent:m,componentsNeeded:N,...V}})}catch(O){throw G(O)}let P=p.server?.server.getClientCapabilities?.()?.elicitation,K;if(P&&f>.3&&f<=.6){let O=await p.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"]}});O?.action==="accept"&&O.content?.includeCustomTheming&&(K=!0)}return{content:[{type:"text",text:F({name:n,userIntent:m,includeComponentsDocs:y>.3,includeTheming:f>.6||!!K,includeLayout:l>.5,includeIcons:S>.6,includeResponsive:l>.5&&x>.4,layoutAssistantName:s,codeAssistantName:a,styleAssistantName:i,iconAssistantName:c,accessibilityAssistantName:u,suiteName:h,libKey:v,components:N})}]}});return p}function ye(e,t){let{name:n,title:o,description:r,iconAssistantName:s,codeAssistantName:a,suiteName:i,libKey:c,components:u}=e,h=new C(n,{title:o,description:r,inputSchema:{userIntent:w.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:w.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:w.array(w.enum(u)).optional().describe(`Optional list of specific ${i} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:v,needsIconsConfidence:g,componentsNeeded:p},{_meta:m})=>{let y=I(h,m);b("Assistant Orchestrator called with:",{userIntent:v,needsIconsConfidence:g,componentsNeeded:p});try{await t.recordOrchestratorUserRequest({meta:{userIntent:v,componentsNeeded:p,...y}})}catch(f){throw G(f)}return{content:[{type:"text",text:J({name:n,userIntent:v,includeComponentsDocs:!0,includeIcons:g>.5,codeAssistantName:a,iconAssistantName:s,suiteName:i,libKey:c,components:p})}]}});return h}function be(e,t){let{name:n,title:o,description:r,suiteName:s,libKey:a,getPreContent:i}=e,c=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{prompt:w.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:w.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:u,includeBuildingBlockExamples:h},{_meta:v})=>{let g=I(c,v);b("Layout Assistant called with:",{prompt:u,includeBuildingBlockExamples:h});try{let m=(await t.queryCssUtils({query:u},{...g})).values.join(`
131
+ `)||"No CSS utilities found for the given prompt.",y=i?.()??"",l=f=>`${y}
173
132
 
174
133
  # Kendo Design System CSS Utilities
175
134
 
@@ -190,7 +149,7 @@ ${S.description}
190
149
  ${S.code}
191
150
  \`\`\`
192
151
  `).join(`
193
- `)}`),m=l(x)}catch(f){k("Error calling building-blocks service:",f),m=l()}else m=l();return{content:[{type:"text",text:m}]}}catch(p){throw G(p)}});return c}function ke(e,t){let{name:n,title:o,description:r,libKey:s,getPreContent:a}=e,i=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{prompt:w.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:c},{_meta:u})=>{let h=I(i,u);k("Style Assistant called with:",{prompt:c});let v="";try{let m=await t.queryThemeGenerate({prompt:c},{...h});if(m.variables_json){let b=JSON.parse(m.variables_json),l=[];if(b)for(let f of Object.keys(b))typeof b[f]=="string"&&l.push(`${f}: ${b[f]}`);v=l.join(`
152
+ `)}`),m=l(x)}catch(f){b("Error calling building-blocks service:",f),m=l()}else m=l();return{content:[{type:"text",text:m}]}}catch(p){throw G(p)}});return c}function ke(e,t){let{name:n,title:o,description:r,libKey:s,getPreContent:a}=e,i=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{prompt:w.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:c},{_meta:u})=>{let h=I(i,u);b("Style Assistant called with:",{prompt:c});let v="";try{let m=await t.queryThemeGenerate({prompt:c},{...h});if(m.variables_json){let y=JSON.parse(m.variables_json),l=[];if(y)for(let f of Object.keys(y))typeof y[f]=="string"&&l.push(`${f}: ${y[f]}`);v=l.join(`
194
153
 
195
154
  `)}}catch(m){throw G(m)}let g=a?.()??"";return{content:[{type:"text",text:v?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
196
155
  Ensure the variables are applied consistently across all relevant elements.
@@ -203,41 +162,41 @@ ${g}
203
162
  \`\`\`css
204
163
  ${v}
205
164
  \`\`\`
206
- `:"No CSS variables were generated for the given prompt."}]}});return i}function ve(e,t){let{name:n,title:o,description:r,libKey:s,getPostContent:a}=e,i=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{query:w.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:w.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:c,limit:u},{_meta:h})=>{let v=I(i,h);k("Icon Search called with:",{query:c,limit:u});try{let g=await t.queryIconsSearch({query:c,limit:u*100},{...v}),p=a?.()??"";return{content:[{type:"text",text:`${g.values.join(`
165
+ `:"No CSS variables were generated for the given prompt."}]}});return i}function ve(e,t){let{name:n,title:o,description:r,libKey:s,getPostContent:a}=e,i=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{query:w.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:w.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:c,limit:u},{_meta:h})=>{let v=I(i,h);b("Icon Search called with:",{query:c,limit:u});try{let g=await t.queryIconsSearch({query:c,limit:u*100},{...v}),p=a?.()??"";return{content:[{type:"text",text:`${g.values.join(`
207
166
 
208
167
  `)}
209
168
 
210
- ${p}`}]}}catch(g){throw G(g)}});return i}function we(e,t){let{name:n,title:o,description:r,libKey:s,suiteName:a,components:i,componentAliases:c,getPostContent:u}=e,h=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{query:w.string().describe("The query to search for."),component:w.enum(i).describe("The component to search for. If not specified, use General.")}},async({query:v,component:g},{_meta:p})=>{let m=I(h,p);k("Code Assistant called with:",{query:v,component:g});let b=g;if(c){let l=c[g];l&&(b=l)}try{let f=(await t.query({query:v,component:b?.toLowerCase()??"general",lib_name:s,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{...m})).values.map(N=>N.replace(/\0/g,"")),x=u?.({component:g})??"";return{content:[{type:"text",text:`${f.join(`
169
+ ${p}`}]}}catch(g){throw G(g)}});return i}function we(e,t){let{name:n,title:o,description:r,libKey:s,suiteName:a,components:i,componentAliases:c,getPostContent:u}=e,h=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{query:w.string().describe("The query to search for."),component:w.enum(i).describe("The component to search for. If not specified, use General.")}},async({query:v,component:g},{_meta:p})=>{let m=I(h,p);b("Code Assistant called with:",{query:v,component:g});let y=g;if(c){let l=c[g];l&&(y=l)}try{let f=(await t.query({query:v,component:y?.toLowerCase()??"general",lib_name:s,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{...m})).values.map(N=>N.replace(/\0/g,"")),x=u?.({component:g})??"";return{content:[{type:"text",text:`${f.join(`
211
170
 
212
171
  `)}
213
172
 
214
- ${x}`}]}}catch(l){throw G(l)}});return h}function Ae(e,t){let{name:n,title:o,description:r,libKey:s,suiteName:a,components:i,componentAliases:c}=e,u=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{query:w.string().describe("The query to search for."),component:w.enum(i).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:w.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:h,component:v,includeGeneralGuidelines:g},{_meta:p})=>{let m=I(u,p);k("Accessibility Assistant called with:",{query:h,component:v,includeGeneralGuidelines:g});let b=v;if(c){let l=c[v];l&&(b=l)}try{let l="";if(g){let R=ce();l+=`# WCAG 2.2 Level AA General Accessibility Guidelines
173
+ ${x}`}]}}catch(l){throw G(l)}});return h}function Ae(e,t){let{name:n,title:o,description:r,libKey:s,suiteName:a,components:i,componentAliases:c}=e,u=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{query:w.string().describe("The query to search for."),component:w.enum(i).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:w.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:h,component:v,includeGeneralGuidelines:g},{_meta:p})=>{let m=I(u,p);b("Accessibility Assistant called with:",{query:h,component:v,includeGeneralGuidelines:g});let y=v;if(c){let l=c[v];l&&(y=l)}try{let l="";if(g){let R=ce();l+=`# WCAG 2.2 Level AA General Accessibility Guidelines
215
174
 
216
175
  `,l+=R,l+=`
217
176
 
218
177
  ---
219
178
 
220
- `}let N=(await t.getApiRefMatches({query:h,component:b?.toLowerCase()??"general",lib_name:s,filters_json:'{"type":{"$in":["accessibility"]}}'},{...m})).values.map(R=>R.replace(/\0/g,"")).map(R=>qt(R,b?.toLowerCase()??"general")).join(`
179
+ `}let N=(await t.getApiRefMatches({query:h,component:y?.toLowerCase()??"general",lib_name:s,filters_json:'{"type":{"$in":["accessibility"]}}'},{...m})).values.map(R=>R.replace(/\0/g,"")).map(R=>$t(R,y?.toLowerCase()??"general")).join(`
221
180
 
222
181
  `);return N?(g&&(l+=`# Component-Specific Accessibility Information
223
182
 
224
183
  `),l+=N):g||(l="No component-specific accessibility guidelines found."),{content:[{type:"text",text:l}]}}catch(l){throw G(l)}});return u}function G(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.
225
184
 
226
- Error Code: ${t.code} Error Message: ${t.message}`)}var $t=20*1024*1024,xe=1200*1e3;function he(e){return{content:[{type:"text",text:`Upgrade timed out after ${xe/6e4} minutes.
185
+ Error Code: ${t.code} Error Message: ${t.message}`)}var qt=20*1024*1024,xe=1200*1e3;function he(e){return{content:[{type:"text",text:`Upgrade timed out after ${xe/6e4} minutes.
227
186
 
228
187
  **Some codemods may have already been applied to your files.** Review any modified files before proceeding.
229
188
 
230
189
  To complete the upgrade, run this tool again with specific package names via the \`packageNames\` parameter to upgrade one package at a time.${e?`
231
190
 
232
191
  ## Partial output before timeout
233
- `+e:""}`}]}}function Ce(e,t){let{name:n,title:o,description:r,suiteName:s,packagePrefix:a}=e,i=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{workingDirectory:w.string().describe('The absolute path to the project directory where the upgrade should be executed (e.g., "/Users/username/my-app")'),packageNames:w.array(w.string()).optional().describe(`The package names to target for codemod upgrade (e.g., ["${a}grid", "${a}buttons"]). Defaults to upgrading all installed @progress packages if not specified. When specified, skips package installation and only runs codemods \u2014 the packages must already be installed at the target version before calling this tool.`),skipInstall:w.boolean().optional().describe("Skip npm package installation and only run codemods. Use this when package installation has already been done manually.")}},async({workingDirectory:c,packageNames:u,skipInstall:h},{_meta:v})=>{let g=I(i,v);try{await t.recordToolUserRequest({toolName:n,meta:g})}catch(p){console.error("Error recording tool request:",p)}try{try{await _t(c)}catch{return{content:[{type:"text",text:`The working directory does not exist: "${c}". Please provide a valid absolute path to your project.`}]}}let p=!1;try{await ge("npx",["--no","--","kendo","--version"],{cwd:c}),p=!0}catch{p=!1}let m=[],b=async(U,K=!1)=>{try{let P=!K&&p?["--no","--","kendo",...U]:["-y","@progress/kendo-cli",...U],{stdout:O,stderr:kt}=await ge("npx",P,{cwd:c,maxBuffer:$t,timeout:xe});return{timedOut:!1,stdout:O,stderr:kt}}catch(P){return P.killed?{timedOut:!0,partialOutput:P.stdout?.trim()}:{timedOut:!1,stdout:P.stdout||"",stderr:P.stderr||P.message}}},l=["migrate",...u??[],"--codemods","--force","--ai-mode"];(h||u?.length)&&l.push("--no-install");let f=await b(l);if(f.timedOut)return he(f.partialOutput);let x=f.stdout,S=f.stderr;if(S?.includes("Unknown argument")){let U=await b(l,!0);if(U.timedOut)return he(U.partialOutput);x=U.stdout,S=U.stderr}S?.trim()&&m.push(`
192
+ `+e:""}`}]}}function Ce(e,t){let{name:n,title:o,description:r,suiteName:s,packagePrefix:a}=e,i=new C(n,{title:o,description:r,requiredAccess:e.requiredAccess,inputSchema:{workingDirectory:w.string().describe('The absolute path to the project directory where the upgrade should be executed (e.g., "/Users/username/my-app")'),packageNames:w.array(w.string()).optional().describe(`The package names to target for codemod upgrade (e.g., ["${a}grid", "${a}buttons"]). Defaults to upgrading all installed @progress packages if not specified. When specified, skips package installation and only runs codemods \u2014 the packages must already be installed at the target version before calling this tool.`),skipInstall:w.boolean().optional().describe("Skip npm package installation and only run codemods. Use this when package installation has already been done manually.")}},async({workingDirectory:c,packageNames:u,skipInstall:h},{_meta:v})=>{let g=I(i,v);try{await t.recordToolUserRequest({toolName:n,meta:g})}catch(p){console.error("Error recording tool request:",p)}try{try{await _t(c)}catch{return{content:[{type:"text",text:`The working directory does not exist: "${c}". Please provide a valid absolute path to your project.`}]}}let p=!1;try{await ge("npx",["--no","--","kendo","--version"],{cwd:c}),p=!0}catch{p=!1}let m=[],y=async(P,K=!1)=>{try{let E=!K&&p?["--no","--","kendo",...P]:["-y","@progress/kendo-cli",...P],{stdout:O,stderr:kt}=await ge("npx",E,{cwd:c,maxBuffer:qt,timeout:xe});return{timedOut:!1,stdout:O,stderr:kt}}catch(E){return E.killed?{timedOut:!0,partialOutput:E.stdout?.trim()}:{timedOut:!1,stdout:E.stdout||"",stderr:E.stderr||E.message}}},l=["migrate",...u??[],"--codemods","--force","--ai-mode"];(h||u?.length)&&l.push("--no-install");let f=await y(l);if(f.timedOut)return he(f.partialOutput);let x=f.stdout,S=f.stderr;if(S?.includes("Unknown argument")){let P=await y(l,!0);if(P.timedOut)return he(P.partialOutput);x=P.stdout,S=P.stderr}S?.trim()&&m.push(`
234
193
  Errors:
235
- ${S}`),x?.trim()&&m.push(x.trim());let N=x.includes("Packages installed successfully."),R=x.includes("Package installation failed:"),z=x.includes("Running codemod:");return R?m.push(`
194
+ ${S}`),x?.trim()&&m.push(x.trim());let N=x.includes("Packages installed successfully."),R=x.includes("Package installation failed:"),V=x.includes("Running codemod:");return R?m.push(`
236
195
  ## Upgrade Status
237
196
  Package installation failed. The npm packages were not updated. Inform the user of the error and update the package versions in package.json manually to the target version. Once done, call this tool again with skipInstall set to true.`):N&&m.push(`
238
197
  ## Upgrade Status
239
- Upgrade complete. npm packages have been installed and updated in the project.`),z&&m.push(Z()),{content:[{type:"text",text:m.join(`
240
- `)}]}}catch(p){return{content:[{type:"text",text:`Error: ${p.message||p.toString()}`}]}}});return i}var Se=e=>`${e}_ui_generator`,Ie=e=>`${e}_assistant`,Te=e=>`${e}_layout_assistant`,Ne=e=>`${e}_component_assistant`,Re=e=>`${e}_style_assistant`,Ue=e=>`${e}_icon_assistant`,De=e=>`${e}_accessibility_assistant`,Pe=e=>`${e}_getting_started_assistant`,Ee=e=>`${e}_upgrade_assistant`;var Ge=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.
198
+ Upgrade complete. npm packages have been installed and updated in the project.`),V&&m.push(Z()),{content:[{type:"text",text:m.join(`
199
+ `)}]}}catch(p){return{content:[{type:"text",text:`Error: ${p.message||p.toString()}`}]}}});return i}var Se=e=>`${e}_ui_generator`,Ie=e=>`${e}_assistant`,Te=e=>`${e}_layout_assistant`,Ne=e=>`${e}_component_assistant`,Re=e=>`${e}_style_assistant`,Pe=e=>`${e}_icon_assistant`,Ue=e=>`${e}_accessibility_assistant`,Ee=e=>`${e}_getting_started_assistant`,De=e=>`${e}_upgrade_assistant`;var Ge=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.
241
200
 
242
201
  Use the tool when:
243
202
  - Want to build or modify a complete page or section layout
@@ -268,7 +227,7 @@ Use this tool when the user wants to:
268
227
  The tool outputs a set of CSS variable definitions ready to be applied to style files.`,Be=`Searches for icons in the Telerik Icons library.
269
228
  Use this tool when the user needs to find specific icons for UI components or design elements.
270
229
  It supports searching by icon name, category, or keyword and returns matching icons from the Telerik Icons library.
271
- `,qe=e=>`Provides answers and retrieves official documentation for ${e}.
230
+ `,$e=e=>`Provides answers and retrieves official documentation for ${e}.
272
231
 
273
232
  Use this tool when the user asks about:
274
233
  - ${e} features or capabilities
@@ -278,7 +237,7 @@ Use this tool when the user asks about:
278
237
 
279
238
  Set the user's full question as the 'query' parameter.
280
239
  If the question refers to a specific ${e} component, include its name in the 'component' parameter.
281
- `,$e=e=>`Retrieves accessibility guidance for ${e} components with optional general WCAG 2.2 Level AA guidelines.
240
+ `,qe=e=>`Retrieves accessibility guidance for ${e} components with optional general WCAG 2.2 Level AA guidelines.
282
241
 
283
242
  Use this tool when:
284
243
  - You need component-specific accessibility information and API references
@@ -321,111 +280,34 @@ Workflow:
321
280
  1. Run this upgrade tool to apply codemods.
322
281
  2. After the codemods complete, grep the project source files for every outdated value mentioned in the codemod output (e.g. old property names, renamed enum values) to find any remaining occurrences the codemod doesn't handle automatically, and fix them all.
323
282
  3. Follow the additional instructions to complete the upgrade process.
324
- `;var Mt={createOrchestrator:fe,createAssistantOrchestrator:ye,createLayoutAssistant:be,createStyleAssistant:ke,createIconSearch:ve,createCodeAssistant:we,createAccessibilityAssistant:Ae,createUpgrade:Ce},Ft={orchestrator:Se,assistantOrchestrator:Ie,layoutAssistant:Te,codeAssistant:Ne,styleAssistant:Re,iconAssistant:Ue,accessibilityAssistant:De,gettingStartedAssistant:Pe,upgradeAssistant:Ee},Kt={orchestrator:Ge,assistantOrchestrator:Oe,layoutAssistant:Le,styleAssistant:_e,iconAssistant:Be,codeAssistant:qe,accessibilityAssistant:$e,upgradeAssistant:Me},Wt={Orchestrator:{render:F},UX:{getInstructions:_}},y={Tools:Mt,ToolNames:Ft,ToolDescriptions:Kt,Templates:Wt};var jt=y.ToolNames.codeAssistant("kendo"),Fe=()=>`# Kendo Design System Guidelines for ${d}
283
+ `;var Mt={createOrchestrator:fe,createAssistantOrchestrator:ye,createLayoutAssistant:be,createStyleAssistant:ke,createIconSearch:ve,createCodeAssistant:we,createAccessibilityAssistant:Ae,createUpgrade:Ce},Ft={orchestrator:Se,assistantOrchestrator:Ie,layoutAssistant:Te,codeAssistant:Ne,styleAssistant:Re,iconAssistant:Pe,accessibilityAssistant:Ue,gettingStartedAssistant:Ee,upgradeAssistant:De},Kt={orchestrator:Ge,assistantOrchestrator:Oe,layoutAssistant:Le,styleAssistant:_e,iconAssistant:Be,codeAssistant:$e,accessibilityAssistant:qe,upgradeAssistant:Me},Wt={Orchestrator:{render:F},UX:{getInstructions:_}},k={Tools:Mt,ToolNames:Ft,ToolDescriptions:Kt,Templates:Wt};var Fe=()=>`# Kendo Design System Guidelines for ${d}
325
284
 
326
285
  ## Setting up Styles/CSS
327
-
328
- In order to use any of the utility classes from the Kendo Design System, make sure to include a reference to the kendo-theme-utils CSS package.
329
-
330
- **Important**: Include the kendo-theme-utils only once and use the same import mechanism as the existing Kendo theme.
331
-
332
- ### Using NPM
333
-
334
- The CSS Utilities are available as an NPM module that you can install - \`@progress/kendo-theme-utils\`
335
-
286
+ Include a reference to the kendo-theme-utils CSS package and use the same import mechanism as the existing Kendo theme.
287
+ Add \`@progress/kendo-theme-utils/dist/all.css\` to \`angular.json\` styles, or use the existing global stylesheet import path already used by the app.
336
288
  To install: \`npm install --save @progress/kendo-theme-utils\`
289
+ Also available as SCSS - \`@use '@progress/kendo-theme-utils/scss/all.scss' as *;\`
290
+ Alternatively, use CDN: \`<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />\`
337
291
 
338
- The precompiled CSS is available in \`node_modules/@progress/kendo-theme-utils/dist/all.css\`
339
-
340
- Also, available as SCSS and you can include it on your SCSS file - \`@use '@progress/kendo-theme-utils/scss/all.scss' as *;\`
341
-
342
- ### Using CDN
343
-
344
- Alternatively, you can also consume them directly from the Unpkg CDN.
345
-
346
- \`<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />\`
347
-
348
- ## Ready-to-use Layout Components
349
-
350
- In the ${d} there are available components to create layout. Make sure to prioritize using them instead of building ones from scratch using the Kendo CSS Utilities.
351
-
352
- For any Layout component you can also call the ${jt} tool in order to get specific API reference and docs.
292
+ ### Default Behavior
293
+ - Use the Kendo Design System utilities for layout.
294
+ - Use theme utility classes instead of custom CSS whenever a utility exists. Write custom CSS only for properties without a utility equivalent.
295
+ - Do not use \`::ng-deep\` or \`/deep/\` overrides for Kendo internals when a utility or component configuration can express the rule.
296
+ - Prioritize using ${d} components instead of building ones from scratch.
353
297
 
354
298
  - ${d} Card component.
355
- - Generally, it is recommended to use 100% width (e.g., \`<kendo-card width="100%">\`)
356
- - If needed, use specific width based on the layout requirements (e.g., \`<kendo-card width="150px">\`)
357
- - Avoid applying additional styling properties such as \`display\`, \`flex\`, \`grid\`, or other layout-specific CSS to layout components such as GridLayout, Splitter, StackLayout and TileLayout. Use the component's built-in parameters and the Kendo CSS utility classes instead.
358
-
359
- ## Page Shell Patterns
360
-
361
- Choose the pattern that matches the page structure:
362
-
363
- **Pattern A \u2014 Sidebar + Main Content**
364
- \`\`\`css
365
- .app-shell {
366
- display: flex;
367
- height: 100vh;
368
- }
369
- .sidebar {
370
- width: 240px;
371
- flex-shrink: 0;
372
- }
373
- .main-content {
374
- flex: 1;
375
- min-width: 0; /* Critical: prevents flex children from overflowing */
376
- overflow: auto;
377
- }
378
- \`\`\`
379
-
380
- **Pattern B \u2014 Centered Single-Column (forms, detail pages)**
381
- \`\`\`css
382
- .page-container {
383
- max-width: 960px;
384
- margin: 0 auto;
385
- padding: 0 1rem;
386
- }
387
- \`\`\`
388
-
389
- **Pattern C \u2014 Master-Detail Split**
390
- \`\`\`css
391
- .split-container {
392
- display: grid;
393
- grid-template-columns: 420px 1fr;
394
- height: 100%;
395
- }
396
- \`\`\`
397
-
398
- ## Dashboard Layout
399
-
400
- **KPI metric row** (auto-responsive, min 180px per card):
401
- \`\`\`css
402
- .kpi-row {
403
- display: grid;
404
- grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
405
- gap: 1rem;
406
- }
407
- \`\`\`
408
-
409
- **Side-by-side charts** (equal width, no overflow):
410
- \`\`\`css
411
- .chart-row {
412
- display: grid;
413
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
414
- gap: 1rem;
415
- }
416
- \`\`\`
417
-
418
- ## Critical Sizing Rules
299
+ - Generally use 100% width (e.g., \`<kendo-card width="100%">\`)
300
+ - Or set width based on the layout requirements (e.g., \`<kendo-card width="150px">\`)
419
301
 
420
- - **\`min-width: 0\`** on every flex/grid child that contains a Kendo component \u2014 the single most common cause of layout overflow.
421
- - **Grid component** always requires an explicit height (e.g., \`[height]="'500px'"\` or \`flex: 1; min-height: 0\` inside a flex column).
422
- - **Chart component** always requires an explicit height (e.g., \`style="height: 300px"\`).
423
- - Never leave Grid column widths unset \u2014 without a height, Grid renders all rows and expands the page indefinitely..
424
- - Constrain page content to \`max-width: 1440px\` with \`margin: 0 auto\` to prevent unbounded wide-screen stretching, unless the project defines a different maximum content width.
302
+ - **\`min-width: 0\`** on every flex/grid child that contains a Kendo component.
303
+ - Grid and Chart require an explicit height.
304
+ - Grid columns require an explicit width.
305
+ - Custom cards and containers must use \`var(--kendo-component-bg)\` for their background.
306
+ - Dropdowns, DateInputs, Inputs are \`display: inline-block\` by default. Apply \`style="width: 100%"\` or wrap in a layout container to ensure consistent sizing in forms.
307
+ - Avoid \`transform\` on layout ancestors that contain Kendo overlay components.
308
+ - By default constrain page content to \`max-width: 1440px\` with \`margin: 0 auto\` to prevent unbounded wide-screen stretching.
425
309
 
426
- ## Dark Theme Completeness
427
-
428
- Kendo themes style \`.k-*\` component selectors only. Always add these two lines to \`styles.scss\` or the global CSS file after any theme import:
310
+ Always add to \`styles.scss\` or the global CSS file:
429
311
 
430
312
  \`\`\`scss
431
313
  html, body {
@@ -434,29 +316,13 @@ html, body {
434
316
  }
435
317
  \`\`\`
436
318
 
437
- Without this, dark-themed components render on a white page.
438
-
439
319
  ## Surface Hierarchy
440
320
 
441
- Kendo themes define four surface levels \u2014 do not introduce custom surfaces outside this system:
442
- 1. **Page background** (\`var(--kendo-body-bg)\`) \u2014 lowest surface, applied to \`html, body\`
443
- 2. **Component background** (\`var(--kendo-component-bg)\`) \u2014 cards, panels, Grid body
444
- 3. **Header / hover surface** (\`var(--kendo-grid-header-bg)\`) \u2014 Grid headers, highlighted rows
445
- 4. **Active / selected surface** \u2014 managed by the theme automatically
446
-
447
- Custom cards and containers must use \`var(--kendo-component-bg)\` for their background \u2014 never \`#fff\` or other hardcoded values. Hardcoded light colors in custom templates (Grid cell templates, custom component content) break dark mode.
448
-
449
- ## Splitter Usage Boundary
450
-
451
- Use the \`kendo-splitter\` component only for **user-resizable** content areas (e.g., master-detail panels, side-by-side editors). Do **not** use it for static page layout \u2014 CSS Grid and Flexbox handle that with zero JavaScript overhead.
452
-
453
- ## Inline Input Width
454
-
455
- \`kendo-dropdownlist\`, \`kendo-datepicker\`, \`kendo-textbox\`, and similar inline inputs are \`display: inline-block\` by default and will **not** fill their container automatically. Apply \`style="width: 100%"\` or wrap in a layout container to ensure consistent sizing in forms.
456
-
457
- ## Popup Z-Index Trap
458
-
459
- CSS \`transform\` (including \`translate3d(0,0,0)\` GPU-compositing tricks) on any ancestor element creates a new stacking context. This clips Kendo popups (which use \`z-index ~10000\`), causing DropDownList, DatePicker, and ComboBox popups to appear behind other elements. Avoid \`transform\` on layout ancestors that contain Kendo overlay components.
321
+ Use only the four surface levels defined by the Kendo themes
322
+ 1. Page background (\`var(--kendo-body-bg)\`) \u2014 applied to \`html, body\`
323
+ 2. Component background (\`var(--kendo-component-bg)\`) \u2014 cards, panels, Grid body
324
+ 3. Header / hover surface (\`var(--kendo-grid-header-bg)\`) \u2014 Grid headers, highlighted rows
325
+ 4. Active / selected surface \u2014 managed by the theme automatically
460
326
  `;var Ke=()=>`## Design Standards for ${d} Theming
461
327
 
462
328
  ### Color & Contrast Requirements
@@ -557,7 +423,16 @@ export class ThemeService {
557
423
  }
558
424
  }
559
425
  \`\`\`
560
- `;var We=y.ToolNames.codeAssistant("kendo"),je=()=>`## Using ${d} Icons
426
+ `;var We=k.ToolNames.codeAssistant("kendo"),je=()=>`### SVG Icon Export Names
427
+
428
+ For an icon listed above, map its listed value to the SVG export from \`@progress/kendo-svg-icons\` as follows:
429
+ 1. Append \`-icon\` to the listed value.
430
+ 2. Convert the result from kebab case to camel case.
431
+
432
+ ### Font Icon Class Names
433
+ Prepend \`k-i-\` to the listed value to form the font icon CSS class name. Keep the value in kebab case.
434
+
435
+ ## Using ${d} Icons
561
436
 
562
437
  Important: Always prefer SVG icons over font icons. Only fall back to font icons if SVG is explicitly not an option.
563
438
 
@@ -608,7 +483,7 @@ import { KENDO_ICONS } from "@progress/kendo-angular-icons";
608
483
  })
609
484
  export class AppComponent {}
610
485
  \`\`\`
611
- `;var ze=e=>{let t=e.component?.trim().toLowerCase(),n=ue.get(t),o=`## ${d} Implementation Rules
486
+ `;var Ve=e=>{let t=e.component?.trim().toLowerCase(),n=ue.get(t),o=`## ${d} Implementation Rules
612
487
 
613
488
  - Follow the project's existing Angular setup, including Standalone or NgModule conventions.
614
489
  `;return n&&(o+=`
@@ -617,7 +492,7 @@ export class AppComponent {}
617
492
  ## Component-Specific Guidelines
618
493
 
619
494
  ${e.componentInstructions}
620
- `),o};function Ve(e="kendo-angular-app",t=!0,n="meridian"){let o=t?`These instructions will walk you through creating a new Angular project and setting up ${d}.`:`These instructions will walk you through adding ${d} to your existing Angular project.`,r=1,s=t?`## Step ${r++}: Install Angular CLI
495
+ `),o};function ze(e="kendo-angular-app",t=!0,n="meridian"){let o=t?`These instructions will walk you through creating a new Angular project and setting up ${d}.`:`These instructions will walk you through adding ${d} to your existing Angular project.`,r=1,s=t?`## Step ${r++}: Install Angular CLI
621
496
 
622
497
  First, ensure the Angular CLI is installed globally:
623
498
 
@@ -943,7 +818,7 @@ Affected directives:
943
818
 
944
819
  WRONG: <button kendoListViewAddCommand kendoButton>Add</button>
945
820
  CORRECT: <button kendoListViewAddCommand>Add</button>
946
- `;var Je=`
821
+ `;var Xe=`
947
822
  ## kendoButton Must Not Be Combined with Command Directives
948
823
 
949
824
  Never apply kendoButton to the same element as the Scheduler PDF command directive - it renders its own button internally.
@@ -956,7 +831,7 @@ Affected directives:
956
831
 
957
832
  WRONG: <button kendoSchedulerPDFCommand kendoButton>Export to PDF</button>
958
833
  CORRECT: <button kendoSchedulerPDFCommand>Export to PDF</button>
959
- `;var Xe=`
834
+ `;var Je=`
960
835
  ## kendoButton Must Not Be Combined with Action Directives
961
836
 
962
837
  Never apply kendoButton to the same element as any of these Window action directives - they render their own button internally.
@@ -980,7 +855,7 @@ Never bind the Chart's data to a getter property. Using a getter causes the char
980
855
  BAD: get chartData() { return [ /* data items */ ] }
981
856
  GOOD: public chartData = [ /* data items */ ];
982
857
  GOOD: public chartData = this.data.map(...)
983
- `;var et=["combobox","dropdownlist","dropdowntree","multicolumncombobox","multiselect","multiselecttree","autocomplete"],tt=e=>e==="autocomplete"?Vt:e==="dropdowntree"?Ht:e==="multiselecttree"?Yt:e==="multicolumncombobox"?Qt:zt(e),zt=e=>`
858
+ `;var et=["combobox","dropdownlist","dropdowntree","multicolumncombobox","multiselect","multiselecttree","autocomplete"],tt=e=>e==="autocomplete"?Vt:e==="dropdowntree"?zt:e==="multiselecttree"?Ht:e==="multicolumncombobox"?Yt:jt(e),jt=e=>`
984
859
  ## ${e}
985
860
  When implementing or updating the ${e} component, always follow these rules for \`textField\` and \`valueField\`:
986
861
 
@@ -1038,7 +913,7 @@ If the data is an array of primitives (e.g., [data]="['A', 'B']"), never set \`v
1038
913
 
1039
914
  ### Complex Data
1040
915
  If the data is an array of objects (e.g., [data]="[{ id, name }]"), always set \`valueField\` to a string property for value binding (e.g., "id").
1041
- `,Ht='\n## DropDownTree\nWhen implementing or updating the DropDownTree component, always follow these rules:\n\nAlways set both `textField` and `valueField`:\n- `textField` is the property to display (e.g., "name")\n- `valueField` is the property for value binding (e.g., "id")\nWhen `valueField` and `textField` are string[], always specify `valueDepth`.\n\n### Primitive `value`\nIf the `value` is of a primitive type, `valuePrimitive` must be true and `dataItem` is required.\nThe `value` property of the `dataItem` will be associated with the `valueField`.\n',Yt='\n## MultiSelectTree\nWhen implementing or updating the MultiSelectTree component, always follow these rules:\n\nAlways set both `textField` and `valueField`:\n- `textField` is the property to display (e.g., "name")\n- `valueField` is the property for value binding (e.g., "id")\nWhen `valueField` and `textField` are string[], always specify `valueDepth`.\n\n### Primitive `value`\nIf the `value` is of a primitive type, `valuePrimitive` must be true and `dataItems` is required.\nThe `value` property of the `dataItems` will be associated with the `valueField`.\n',Qt='\n## MultiColumnComboBox\nWhen implementing or updating the MultiColumnComboBox component, always follow these rules:\n\nAlways set both `textField` and `valueField`:\n- `textField` is the property to display (e.g., "name")\n- `valueField` is the property for value binding (e.g., "id")\n\n### Primitive `value`\nIf the `value` is of a primitive type, `valuePrimitive` must be true.\n';var ot=`
916
+ `,zt='\n## DropDownTree\nWhen implementing or updating the DropDownTree component, always follow these rules:\n\nAlways set both `textField` and `valueField`:\n- `textField` is the property to display (e.g., "name")\n- `valueField` is the property for value binding (e.g., "id")\nWhen `valueField` and `textField` are string[], always specify `valueDepth`.\n\n### Primitive `value`\nIf the `value` is of a primitive type, `valuePrimitive` must be true and `dataItem` is required.\nThe `value` property of the `dataItem` will be associated with the `valueField`.\n',Ht='\n## MultiSelectTree\nWhen implementing or updating the MultiSelectTree component, always follow these rules:\n\nAlways set both `textField` and `valueField`:\n- `textField` is the property to display (e.g., "name")\n- `valueField` is the property for value binding (e.g., "id")\nWhen `valueField` and `textField` are string[], always specify `valueDepth`.\n\n### Primitive `value`\nIf the `value` is of a primitive type, `valuePrimitive` must be true and `dataItems` is required.\nThe `value` property of the `dataItems` will be associated with the `valueField`.\n',Yt='\n## MultiColumnComboBox\nWhen implementing or updating the MultiColumnComboBox component, always follow these rules:\n\nAlways set both `textField` and `valueField`:\n- `textField` is the property to display (e.g., "name")\n- `valueField` is the property for value binding (e.g., "id")\n\n### Primitive `value`\nIf the `value` is of a primitive type, `valuePrimitive` must be true.\n';var ot=`
1042
917
 
1043
918
  ## Smart Grid (AI-Enhanced) Instructions
1044
919
 
@@ -1057,7 +932,7 @@ Suggestion Examples by Domain:
1057
932
 
1058
933
  Required Disclaimer:
1059
934
  "The examples use a Telerik-hosted AI service for demonstration purposes only. For production applications, use an AI service that understands your specific domain, data, and business requirements."
1060
- `;var nt=["button","buttongroup","splitbutton","dropdownbutton","chip","chiplist","floatingactionbutton","smartpastebutton","speechtotextbutton"],rt=e=>e==="button"||e==="buttongroup"||e==="splitbutton"||e==="dropdownbutton"||e==="chip"?Jt:"",Jt='\n## Deprecated Properties & Modern Replacements\n\nButton `look` property: The `look` property is deprecated. Use `fillMode` instead.\n Type: `ButtonFillMode = "solid" | "flat" | "outline" | "link" | "clear"`\n CORRECT: <button kendoButton fillMode="flat">Button</button>\n WRONG: <button kendoButton look="flat">Button</button>\n\nButton `primary` property: The `primary` property is deprecated. Use `themeColor="primary"` instead.\n CORRECT: <button kendoButton themeColor="primary">Button</button>\n WRONG: <button kendoButton [primary]="true">Button</button>\n';var st=`
935
+ `;var nt=["button","buttongroup","splitbutton","dropdownbutton","chip","chiplist","floatingactionbutton","smartpastebutton","speechtotextbutton"],rt=e=>e==="button"||e==="buttongroup"||e==="splitbutton"||e==="dropdownbutton"||e==="chip"?Qt:"",Qt='\n## Deprecated Properties & Modern Replacements\n\nButton `look` property: The `look` property is deprecated. Use `fillMode` instead.\n Type: `ButtonFillMode = "solid" | "flat" | "outline" | "link" | "clear"`\n CORRECT: <button kendoButton fillMode="flat">Button</button>\n WRONG: <button kendoButton look="flat">Button</button>\n\nButton `primary` property: The `primary` property is deprecated. Use `themeColor="primary"` instead.\n CORRECT: <button kendoButton themeColor="primary">Button</button>\n WRONG: <button kendoButton [primary]="true">Button</button>\n';var st=`
1061
936
  ## Badge container usage
1062
937
 
1063
938
  Use a <kendo-badge> without <kendo-badge-container> only when the host can host content, overflow is enabled, and its CSS \`position\` is not "static".
@@ -1121,6 +996,6 @@ Extended example:
1121
996
  - Keep the label, control, hint and error for one field inside the same \`kendo-formfield\`.
1122
997
  - If using radio buttons, group all related options within a single \`kendo-formfield\`.`;function Xt(e){let t=e?.trim().toLowerCase();if(t==="grid")return[He,ot].join(`
1123
998
 
1124
- `);if(t==="treelist")return Ye;if(t==="listview")return Qe;if(t==="scheduler")return Je;if(t==="window")return Xe;if(t==="charts")return Ze;if(t==="forms")return ct;if(t==="badge")return st;if(t==="pivotgrid")return at;if(t==="label")return it;if(t==="floatinglabel")return lt;if(et.includes(t))return tt(t);if(nt.includes(t))return rt(t)}var B=!!process.env.PLUGIN_MODE,dt=y.ToolNames.layoutAssistant(D),ee=y.ToolNames.codeAssistant(D),pt=y.ToolNames.styleAssistant(D),te=y.ToolNames.iconAssistant(D),ut=y.ToolNames.gettingStartedAssistant(D),mt=y.ToolNames.accessibilityAssistant(D),Zt=y.ToolNames.upgradeAssistant(D);function gt(e,t){return[...B?[]:[y.Tools.createOrchestrator({name:y.ToolNames.orchestrator(D),title:"Kendo UI Generator",description:y.ToolDescriptions.orchestrator(d),layoutAssistantName:dt,codeAssistantName:ee,styleAssistantName:pt,iconAssistantName:te,accessibilityAssistantName:mt,suiteName:d,libKey:T,components:$,requiredAccess:["agent"]},e),y.Tools.createAssistantOrchestrator({name:"kendo_angular_assistant",title:"Kendo UI Assistant",description:y.ToolDescriptions.assistantOrchestrator(d),codeAssistantName:ee,iconAssistantName:te,suiteName:d,libKey:T,components:$,requiredAccess:["assistant"]},e)],y.Tools.createLayoutAssistant({name:dt,title:"Kendo UI Layout Assistant",description:y.ToolDescriptions.layoutAssistant,suiteName:d,libKey:T,getPreContent:B?void 0:()=>`${Fe()}
999
+ `);if(t==="treelist")return Ye;if(t==="listview")return Qe;if(t==="scheduler")return Xe;if(t==="window")return Je;if(t==="charts")return Ze;if(t==="forms")return ct;if(t==="badge")return st;if(t==="pivotgrid")return at;if(t==="label")return it;if(t==="floatinglabel")return lt;if(et.includes(t))return tt(t);if(nt.includes(t))return rt(t)}var B=!!process.env.PLUGIN_MODE,dt=k.ToolNames.layoutAssistant(U),ee=k.ToolNames.codeAssistant(U),pt=k.ToolNames.styleAssistant(U),te=k.ToolNames.iconAssistant(U),ut=k.ToolNames.gettingStartedAssistant(U),mt=k.ToolNames.accessibilityAssistant(U),Jt=k.ToolNames.upgradeAssistant(U);function gt(e,t){return[...B?[]:[k.Tools.createOrchestrator({name:k.ToolNames.orchestrator(U),title:"Kendo UI Generator",description:k.ToolDescriptions.orchestrator(d),layoutAssistantName:dt,codeAssistantName:ee,styleAssistantName:pt,iconAssistantName:te,accessibilityAssistantName:mt,suiteName:d,libKey:T,components:q,requiredAccess:["agent"]},e),k.Tools.createAssistantOrchestrator({name:"kendo_angular_assistant",title:"Kendo UI Assistant",description:k.ToolDescriptions.assistantOrchestrator(d),codeAssistantName:ee,iconAssistantName:te,suiteName:d,libKey:T,components:q,requiredAccess:["assistant"]},e)],k.Tools.createLayoutAssistant({name:dt,title:"Kendo UI Layout Assistant",description:k.ToolDescriptions.layoutAssistant,suiteName:d,libKey:T,getPreContent:B?void 0:()=>`${Fe()}
1125
1000
 
1126
- ${_()}`,requiredAccess:["agent"]},e),y.Tools.createStyleAssistant({name:pt,title:"Kendo UI Style Assistant",description:y.ToolDescriptions.styleAssistant,libKey:T,getPreContent:B?void 0:Ke,requiredAccess:["agent"]},e),y.Tools.createIconSearch({name:te,title:"Kendo UI Icon Assistant",description:y.ToolDescriptions.iconAssistant,libKey:T,getPostContent:B?void 0:je,requiredAccess:["assistant","agent"]},e),y.Tools.createCodeAssistant({name:ee,title:"Kendo UI Component Assistant",description:y.ToolDescriptions.codeAssistant(d),libKey:T,suiteName:d,components:$,getPostContent:B?void 0:({component:o})=>{let r=Xt(o);return ze({component:o,componentInstructions:r})},requiredAccess:["assistant","agent"]},e),...B?[]:[(()=>{let o=new C(ut,{title:"Kendo UI Getting Started",description:`Creates a new Angular project with Angular CLI and provides essential getting started guidance for ${d} including installation, configuration, and setup instructions.`,requiredAccess:["agent"],inputSchema:pe(d,"kendo-angular-app")},async({projectName:r,createNewProject:s,theme:a},{_meta:i})=>{let c=I(o,i);try{await e.recordToolUserRequest({toolName:ut,meta:{projectName:r,createNewProject:s,theme:a,...c}})}catch(h){console.error("Error recording tool request:",h)}return{content:[{type:"text",text:Ve(r,s,a)}]}});return o})()],y.Tools.createAccessibilityAssistant({name:mt,title:"Kendo UI Accessibility Assistant",description:y.ToolDescriptions.accessibilityAssistant(d),libKey:T,suiteName:d,components:$,requiredAccess:["agent"]},e),y.Tools.createUpgrade({name:Zt,title:"Kendo UI Upgrade Assistant",description:y.ToolDescriptions.upgradeAssistant(d,"@progress/kendo-angular-"),suiteName:d,packagePrefix:"@progress/kendo-angular-",requiredAccess:["agent"]},e)].filter(o=>o.hasAccess(t))}var ro=no(import.meta.url),so=ft.dirname(ro),ao=ft.resolve(so,"../package.json"),yt=JSON.parse(oo.readFileSync(ao,"utf-8")),ht=new eo({name:"kendo-mcp",title:"Kendo MCP Server",version:yt.version});async function io(){let e=new to;k("Starting server...");let t=await le(async()=>{let o=(await me())?.entitlement;return o?.Product?.Code||o?.product?.code});t!=="none"&&(M.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",gt(M,t).forEach(o=>o.register(ht)),de({serverName:"angular",contextApi:M,enrichWithUserData:!0,additionalFields:{version:yt.version,access_type:t}})),await ht.connect(e)}io();
1001
+ ${_()}`,requiredAccess:["agent"]},e),k.Tools.createStyleAssistant({name:pt,title:"Kendo UI Style Assistant",description:k.ToolDescriptions.styleAssistant,libKey:T,getPreContent:B?void 0:Ke,requiredAccess:["agent"]},e),k.Tools.createIconSearch({name:te,title:"Kendo UI Icon Assistant",description:k.ToolDescriptions.iconAssistant,libKey:T,getPostContent:B?void 0:je,requiredAccess:["assistant","agent"]},e),k.Tools.createCodeAssistant({name:ee,title:"Kendo UI Component Assistant",description:k.ToolDescriptions.codeAssistant(d),libKey:T,suiteName:d,components:q,getPostContent:B?void 0:({component:o})=>{let r=Xt(o);return Ve({component:o,componentInstructions:r})},requiredAccess:["assistant","agent"]},e),...B?[]:[(()=>{let o=new C(ut,{title:"Kendo UI Getting Started",description:`Creates a new Angular project with Angular CLI and provides essential getting started guidance for ${d} including installation, configuration, and setup instructions.`,requiredAccess:["agent"],inputSchema:pe(d,"kendo-angular-app")},async({projectName:r,createNewProject:s,theme:a},{_meta:i})=>{let c=I(o,i);try{await e.recordToolUserRequest({toolName:ut,meta:{projectName:r,createNewProject:s,theme:a,...c}})}catch(h){console.error("Error recording tool request:",h)}return{content:[{type:"text",text:ze(r,s,a)}]}});return o})()],k.Tools.createAccessibilityAssistant({name:mt,title:"Kendo UI Accessibility Assistant",description:k.ToolDescriptions.accessibilityAssistant(d),libKey:T,suiteName:d,components:q,requiredAccess:["agent"]},e),k.Tools.createUpgrade({name:Jt,title:"Kendo UI Upgrade Assistant",description:k.ToolDescriptions.upgradeAssistant(d,"@progress/kendo-angular-"),suiteName:d,packagePrefix:"@progress/kendo-angular-",requiredAccess:["agent"]},e)].filter(o=>o.hasAccess(t))}var no=oo(import.meta.url),ro=ft.dirname(no),so=ft.resolve(ro,"../package.json"),yt=JSON.parse(to.readFileSync(so,"utf-8")),ht=new Zt({name:"kendo-mcp",title:"Kendo MCP Server",version:yt.version});async function ao(){let e=new eo;b("Starting server...");let t=await le(async()=>{let o=(await me())?.entitlement;return o?.Product?.Code||o?.product?.code});t!=="none"&&(M.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",gt(M,t).forEach(o=>o.register(ht)),de({serverName:"angular",contextApi:M,enrichWithUserData:!0,additionalFields:{version:yt.version,access_type:t}})),await ht.connect(e)}ao();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-mcp",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "type": "module",
5
5
  "bin": "./dist/index.js",
6
6
  "license": "See LICENSE.md",