@progress/kendo-react-mcp 1.10.1 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +156 -283
  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 $t}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as qt}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as vt,join as Ct}from"path";import{fileURLToPath as At}from"url";import{loadLicense as it,decodeLicenseKey as lt,decodeLicenseEvidence as ct}from"@progress/kendo-licensing/utils";var z=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function ne(e){return e.replace(/^\uFEFF/,"")}async function Y(e){let t=null,o=null;try{let r=it();if(!r.success){let n=new z(r.message);throw e&&await e("license_load_failed",{error:r.message}).catch(()=>{}),n}try{t=(await lt(r.value)).licenses.find(async a=>!!(await ct(a)).userId)}catch(n){console.log(n.message),e&&await e("license_load_failed",{error:n.message||"Unknown decoding error"}).catch(()=>{})}if(!t)return[ne(r.value),null]}catch(r){return o=r.message||"Unknown error loading license.",e&&await e("license_load_failed",{error:o}).catch(()=>{}),[null,o]}return[ne(t),null]}import _ from"node:fs";import j from"node:path";var V=!1,P=process.env.DEBUG_LOG_FILE,se=!!(P&&typeof P=="string");if(se){let e=j.resolve(P),t=j.dirname(e);if(t!=="."&&t!==process.cwd()&&!_.existsSync(t))try{_.mkdirSync(t,{recursive:!0})}catch(o){console.error("Error creating log directory:",o)}if(!_.existsSync(e))try{_.writeFileSync(e,"")}catch(o){console.error("Error creating log file:",o)}}else V=!1;V=se&&!!P&&_.existsSync(j.resolve(P));function v(...e){if(V&&P){let r=`${new Date().toISOString()}: ${e.join(" ")}
3
- `,n=j.resolve(P);_.appendFile(n,r,a=>{a&&console.error("Error writing to log file:",a)})}}import pt from"@grpc/proto-loader";import O from"@grpc/grpc-js";import le from"path";import ae from"fs";import{fileURLToPath as ut}from"url";var mt=ut(import.meta.url),ht=le.dirname(mt),ce={version:"unknown"},ie=le.resolve(ht,"../package.json");ae.existsSync(ie)&&(ce=JSON.parse(ae.readFileSync(ie,"utf-8")));function gt(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var W=class{constructor(t,o,r){this.contextApiUrl=t;this.protoPath=o;this.options=r;this.toolNameHeader="assistant";let n=pt.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"),v("Using ContextApi URl:",this.contextApiUrl);let a=O.loadPackageDefinition(n);this.client=new a.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?O.credentials.createInsecure():O.credentials.createSsl())}buildRequestMetadata(t={}){return gt(JSON.stringify({...t,source:"npm",version:ce.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[o,r]=this.isDev?["fake_license",null]:await Y((l,p)=>this.logEvent(l,p)),n=process.env.CONTEXTAPI_API_KEY,a=n&&typeof n=="string",s=o&&typeof o=="string";if(!s&&!a&&r)throw new Error(`Failed to authenticate with API key or License key!
2
+ import{McpServer as Gt}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as $t}from"@modelcontextprotocol/sdk/server/stdio.js";import{dirname as Ct,join as vt}from"path";import{fileURLToPath as At}from"url";import{loadLicense as it,decodeLicenseKey as lt,decodeLicenseEvidence as ct}from"@progress/kendo-licensing/utils";var Y=class extends Error{constructor(t){super(t),this.name="LicenseError"}};function oe(e){return e.replace(/^\uFEFF/,"")}async function z(e){let t=null,o=null;try{let s=it();if(!s.success){let n=new Y(s.message);throw e&&await e("license_load_failed",{error:s.message}).catch(()=>{}),n}try{t=(await lt(s.value)).licenses.find(async a=>!!(await ct(a)).userId)}catch(n){console.log(n.message),e&&await e("license_load_failed",{error:n.message||"Unknown decoding error"}).catch(()=>{})}if(!t)return[oe(s.value),null]}catch(s){return o=s.message||"Unknown error loading license.",e&&await e("license_load_failed",{error:o}).catch(()=>{}),[null,o]}return[oe(t),null]}import G from"node:fs";import j from"node:path";var V=!1,D=process.env.DEBUG_LOG_FILE,se=!!(D&&typeof D=="string");if(se){let e=j.resolve(D),t=j.dirname(e);if(t!=="."&&t!==process.cwd()&&!G.existsSync(t))try{G.mkdirSync(t,{recursive:!0})}catch(o){console.error("Error creating log directory:",o)}if(!G.existsSync(e))try{G.writeFileSync(e,"")}catch(o){console.error("Error creating log file:",o)}}else V=!1;V=se&&!!D&&G.existsSync(j.resolve(D));function b(...e){if(V&&D){let s=`${new Date().toISOString()}: ${e.join(" ")}
3
+ `,n=j.resolve(D);G.appendFile(n,s,a=>{a&&console.error("Error writing to log file:",a)})}}import pt from"@grpc/proto-loader";import q from"@grpc/grpc-js";import ae from"path";import ne from"fs";import{fileURLToPath as ut}from"url";var mt=ut(import.meta.url),gt=ae.dirname(mt),ie={version:"unknown"},re=ae.resolve(gt,"../package.json");ne.existsSync(re)&&(ie=JSON.parse(ne.readFileSync(re,"utf-8")));function ht(e){return e.replace(/\u2014/g,"--").replace(/\u2013/g,"-").replace(/[^\x20-\x7E]/g,"")}var W=class{constructor(t,o,s){this.contextApiUrl=t;this.protoPath=o;this.options=s;this.toolNameHeader="assistant";let n=pt.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 a=q.loadPackageDefinition(n);this.client=new a.ContextQueryService(this.contextApiUrl||"contextapi.telerik.com:443",this.isDev?q.credentials.createInsecure():q.credentials.createSsl())}buildRequestMetadata(t={}){return ht(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[o,s]=this.isDev?["fake_license",null]:await z((l,p)=>this.logEvent(l,p)),n=process.env.CONTEXTAPI_API_KEY,a=n&&typeof n=="string",r=o&&typeof o=="string";if(!r&&!a&&s)throw new Error(`Failed to authenticate with API key or License key!
4
4
 
5
- License Error: ${r}`);let i=new O.Metadata;if(s)try{i.add("x-license-key",o)}catch(l){throw v("Error adding license key to metadata:",l),new Error(`Failed to use license key: ${l.message}`)}return a&&i.add("x-api-key",n),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,o){let r=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.query(t,r,(s,i)=>{s?a(s):n(i)})})}async getApiRefMatches(t,o){let r=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.getApiRefMatches(t,r,(s,i)=>{s?a(s):n(i)})})}async queryCssUtils(t,o){let r=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.cssUtilsSearch(t,r,(s,i)=>{s?(v("Error querying CSS Utils:",s),a(s)):n(i)})})}async queryIconsSearch(t,o){let r=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.iconsSearch(t,r,(s,i)=>{s?(v("Error querying Icons Search:",s),a(s)):n(i)})})}async queryBuildingBlocks(t,o){let r=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.buildingBlocksSearch(t,r,(s,i)=>{s?(v("Error querying Building Blocks:",s),a(s)):n(i)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((o,r)=>{this.client.validateUserLicense({},t,(n,a)=>{n?(v("Error validating user license:",n),r(n)):o(a)})})}async queryThemeGenerate(t,o){let r=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.generateTheme(t,r,(s,i)=>{s?(v("Error querying context API/GenerateTheme:",s),a(s)):n(i)})})}async recordOrchestratorUserRequest({meta:t}){let o=await this.getMetadata({meta:t});return new Promise((r,n)=>{this.client.recordOrchestratorUserRequest({},o,(a,s)=>{a?(v("Error recording orchestrator user request:",a),n(a)):r(s)})})}async recordToolUserRequest({toolName:t,meta:o}){let r=await this.getMetadata({meta:o});return new Promise(n=>{this.client.recordToolUserRequest({tool_name:t},r,(a,s)=>{a?(a.code===7?v("recordToolUserRequest: license does not cover Kendo AI Tools, skipping telemetry."):v("Error recording tool user request:",a),n(null)):n(s)})})}async logEvent(t,o,r={}){let n="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq",{enrichWithUserData:a=!1,meta:s={}}=r,i=n&&typeof n=="string",l=null;if(a)try{let[g]=this.isDev?["fake_license",null]:await Y();g&&typeof g=="string"&&(l=g)}catch{}if(!i&&!l){v("Neither LOGGING_API_KEY nor license key available, skipping log event");return}let p=new O.Metadata;return i&&p.add("x-api-key",n),l&&(p.add("x-license-key",l),p.add("x-request-metadata",this.buildRequestMetadata(s)),this.options?.libName&&p.add("x-library-name",this.options.libName)),new Promise((g,C)=>{this.client.logEvent({event_name:t,fields:o||{}},p,(h,u)=>{h?(v("Error logging event:",h),C(h)):g()})})}};import{z as X}from"zod";var io=X.object({user_id:X.string(),user_email:X.string().email()});import{z as x}from"zod";var ft=x.object({Product:x.object({Id:x.number().int(),Code:x.string(),Name:x.string()}),License:x.nullable(x.object({Id:x.number().int(),Name:x.string(),Type:x.string(),Active:x.boolean()})),Availability:x.array(x.object({LicenseStart:x.nullable(x.string().datetime()),LicenseEnd:x.nullable(x.string().datetime())})),IsLicenseAvailable:x.optional(x.boolean())}),po=x.array(ft);function T(e,t){let o=e.server?.server.getClientVersion?.(),r=t||{};return o&&(r.clientInfo={name:o.name,version:o.version}),r}async function de(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 o=await e();return o?.toLocaleLowerCase()==="agentic_ui_generator"?"agent":o?.toLocaleLowerCase()==="ai_coding_assistants"?"assistant":"none"}function pe(){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 yt=1440*60*1e3;function ue(e){let{serverName:t,contextApi:o,additionalFields:r={},intervalMs:n=yt,enrichWithUserData:a=!1}=e,s="mcp_server_heartbeat",i=async()=>{try{let p={server_name:t,timestamp:new Date().toISOString(),...r};await o.logEvent(s,p,{enrichWithUserData:a})}catch(p){v(`Failed to send heartbeat for ${t}:`,p)}};i();let l=setInterval(i,n);return()=>{clearInterval(l),v(`Heartbeat stopped for ${t}`)}}import{z as Q}from"zod";var bt=["meridian","default","bootstrap","material","fluent"];function me(e,t){return{projectName:Q.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:Q.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:Q.enum(bt).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 React",I="react",D="kendo";var M=["ActionSheet","AIPrompt","Animation","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","Breadcrumb","Button","ButtonGroup","BreadCrumb","Calendar","Card","Chart","ChartWizard","Chat","Checkbox","Chip","ChipList","ChunkProgressBar","CircularGauge","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","DataGrid","Grid","DataQuery","DateMath","DateInput","DatePicker","DateRangePicker","DateTimePicker","Dialog","Drag&Drop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","Error","ExcelExport","ExpansionPanel","ExternalDropZone","FileSaver","FileManager","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Form","Gantt","Gauge","General","GridLayout","Hint","Icon","InlineAIPrompt","Input","Label","LinearGauge","ListBox","ListView","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OrgChart","PageTemplates/BuildingBlocks","Pager","PanelBar","PDFProcessing","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","PromptBox","QRCode","RadialGauge","RadioButton","RadioGroup","RangeSlider","Rating","Ripple","Sankey","SegmentedControl","Scheduler","ScrollView","Signature","Skeleton","Slider","Sortable","Sparkline","SpeechToTextButton","SmartPasteButton","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","StockChart","SVGIcon","Switch","TabStrip","TaskBoard","TextArea","TextBox","TileLayout","Timeline","TimePicker","Toolbar","Tooltip","TreeList","TreeView","Typography","Upload","VSCodeExtension","Window"];var xt=Ct(vt(At(import.meta.url)),"../proto/service.proto"),F=new W("contextapi.telerik.com:443",xt,{libName:I});var he=async()=>F.validateUserLicense();import Ot from"fs";import rt from"path";import{fileURLToPath as Mt}from"url";import{z as A}from"zod";var k=class{constructor(t,o,r){this.name=t;this.config=o;this.cb=r}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 B=e=>{let t=[`1. \`${e.accessibilityAssistantName}\`: Call first with \`includeGeneralGuidelines=true\`; use \`false\` for component-specific follow-ups.`];if(e.includeLayout){let n=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 ${n}. 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 n=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation";t.push(`${t.length+1}. \`${e.codeAssistantName}\`: Call once per component (${n}) 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 o=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.",r=e.libKey==="angular"?`
5
+ License Error: ${s}`);let i=new q.Metadata;if(r)try{i.add("x-license-key",o)}catch(l){throw b("Error adding license key to metadata:",l),new Error(`Failed to use license key: ${l.message}`)}return a&&i.add("x-api-key",n),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,o){let s=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.query(t,s,(r,i)=>{r?a(r):n(i)})})}async getApiRefMatches(t,o){let s=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.getApiRefMatches(t,s,(r,i)=>{r?a(r):n(i)})})}async queryCssUtils(t,o){let s=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.cssUtilsSearch(t,s,(r,i)=>{r?(b("Error querying CSS Utils:",r),a(r)):n(i)})})}async queryIconsSearch(t,o){let s=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.iconsSearch(t,s,(r,i)=>{r?(b("Error querying Icons Search:",r),a(r)):n(i)})})}async queryBuildingBlocks(t,o){let s=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.buildingBlocksSearch(t,s,(r,i)=>{r?(b("Error querying Building Blocks:",r),a(r)):n(i)})})}async validateUserLicense(){let t=await this.getMetadata();return new Promise((o,s)=>{this.client.validateUserLicense({},t,(n,a)=>{n?(b("Error validating user license:",n),s(n)):o(a)})})}async queryThemeGenerate(t,o){let s=await this.getMetadata({meta:o});return new Promise((n,a)=>{this.client.generateTheme(t,s,(r,i)=>{r?(b("Error querying context API/GenerateTheme:",r),a(r)):n(i)})})}async recordOrchestratorUserRequest({meta:t}){let o=await this.getMetadata({meta:t});return new Promise((s,n)=>{this.client.recordOrchestratorUserRequest({},o,(a,r)=>{a?(b("Error recording orchestrator user request:",a),n(a)):s(r)})})}async recordToolUserRequest({toolName:t,meta:o}){let s=await this.getMetadata({meta:o});return new Promise(n=>{this.client.recordToolUserRequest({tool_name:t},s,(a,r)=>{a?(a.code===7?b("recordToolUserRequest: license does not cover Kendo AI Tools, skipping telemetry."):b("Error recording tool user request:",a),n(null)):n(r)})})}async logEvent(t,o,s={}){let n="h8utJ6rk4PpIWX4JMn9beQDsjVUri6KV0XYfiVwq",{enrichWithUserData:a=!1,meta:r={}}=s,i=n&&typeof n=="string",l=null;if(a)try{let[h]=this.isDev?["fake_license",null]:await z();h&&typeof h=="string"&&(l=h)}catch{}if(!i&&!l){b("Neither LOGGING_API_KEY nor license key available, skipping log event");return}let p=new q.Metadata;return i&&p.add("x-api-key",n),l&&(p.add("x-license-key",l),p.add("x-request-metadata",this.buildRequestMetadata(r)),this.options?.libName&&p.add("x-library-name",this.options.libName)),new Promise((h,v)=>{this.client.logEvent({event_name:t,fields:o||{}},p,(g,u)=>{g?(b("Error logging event:",g),v(g)):h()})})}};import{z as X}from"zod";var ao=X.object({user_id:X.string(),user_email:X.string().email()});import{z as x}from"zod";var ft=x.object({Product:x.object({Id:x.number().int(),Code:x.string(),Name:x.string()}),License:x.nullable(x.object({Id:x.number().int(),Name:x.string(),Type:x.string(),Active:x.boolean()})),Availability:x.array(x.object({LicenseStart:x.nullable(x.string().datetime()),LicenseEnd:x.nullable(x.string().datetime())})),IsLicenseAvailable:x.optional(x.boolean())}),co=x.array(ft);function T(e,t){let o=e.server?.server.getClientVersion?.(),s=t||{};return o&&(s.clientInfo={name:o.name,version:o.version}),s}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 o=await e();return o?.toLocaleLowerCase()==="agentic_ui_generator"?"agent":o?.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 yt=1440*60*1e3;function de(e){let{serverName:t,contextApi:o,additionalFields:s={},intervalMs:n=yt,enrichWithUserData:a=!1}=e,r="mcp_server_heartbeat",i=async()=>{try{let p={server_name:t,timestamp:new Date().toISOString(),...s};await o.logEvent(r,p,{enrichWithUserData:a})}catch(p){b(`Failed to send heartbeat for ${t}:`,p)}};i();let l=setInterval(i,n);return()=>{clearInterval(l),b(`Heartbeat stopped for ${t}`)}}import{z as Q}from"zod";var bt=["meridian","default","bootstrap","material","fluent"];function pe(e,t){return{projectName:Q.string().default(t).describe("The name of the project. Used as the project folder name when creating a new project."),createNewProject:Q.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:Q.enum(bt).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 React",I="react",U="kendo";var M=["ActionSheet","AIPrompt","Animation","AppBar","ArcGauge","AutoComplete","Avatar","Badge","Barcode","BottomNavigation","Breadcrumb","Button","ButtonGroup","BreadCrumb","Calendar","Card","Chart","ChartWizard","Chat","Checkbox","Chip","ChipList","ChunkProgressBar","CircularGauge","ColorGradient","ColorPalette","ColorPicker","ComboBox","ContextMenu","ConversationalUI","Grid","DataQuery","DateMath","DateInput","DatePicker","DateRangePicker","DateTimePicker","Dialog","Drag&Drop","Drawer","Drawing","DropDownButton","DropDownList","DropDownTree","Editor","Error","ExcelExport","ExpansionPanel","ExternalDropZone","FileSaver","FileManager","Filter","FlatColorPicker","FloatingActionButton","FloatingLabel","Form","Gantt","Gauge","General","GridLayout","Hint","Icon","InlineAIPrompt","Input","Label","LinearGauge","ListBox","ListView","LLMKit","Loader","Map","MaskedTextBox","Menu","MultiColumnComboBox","MultiSelect","MultiSelectTree","MultiViewCalendar","Notification","NumericTextBox","OrgChart","OTPInput","PageTemplates/BuildingBlocks","Pager","PanelBar","PDFProcessing","PDFViewer","PivotGrid","Popover","Popup","ProgressBar","PromptBox","QRCode","RadialGauge","RadioButton","RadioGroup","RangeSlider","Rating","Ripple","Sankey","SegmentedControl","Scheduler","ScrollView","Signature","Skeleton","Slider","Sortable","Sparkline","SpeechToTextButton","SmartPasteButton","SplitButton","Splitter","Spreadsheet","StackLayout","Stepper","StockChart","SVGIcon","Switch","TabStrip","TaskBoard","TextArea","TextBox","TileLayout","Timeline","TimePicker","Toolbar","Tooltip","TreeList","TreeView","Typography","Upload","VSCodeExtension","Window"];var xt=vt(Ct(At(import.meta.url)),"../proto/service.proto"),F=new W("contextapi.telerik.com:443",xt,{libName:I});var ue=async()=>F.validateUserLicense();import Ot from"fs";import st from"path";import{fileURLToPath as qt}from"url";import{z as A}from"zod";var w=class{constructor(t,o,s){this.name=t;this.config=o;this.cb=s}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 B=e=>{let t=[`1. \`${e.accessibilityAssistantName}\`: Call first with \`includeGeneralGuidelines=true\`; use \`false\` for component-specific follow-ups.`];if(e.includeLayout){let n=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 ${n}. 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 n=e.components?.length?e.components.join(", "):"each Kendo component selected for the implementation";t.push(`${t.length+1}. \`${e.codeAssistantName}\`: Call once per component (${n}) 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 o=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.",s=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,12 +14,14 @@ ${t.map(n=>` ${n}`).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
- ${o}${r}
20
+ ${o}${s}
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>
@@ -28,7 +30,7 @@ ${t.map(n=>` ${n}`).join(`
28
30
  <assistant-plan>
29
31
  <goal>${e.userIntent}</goal>
30
32
  <execution-order>
31
- ${o.map(r=>` ${r}`).join(`
33
+ ${o.map(s=>` ${s}`).join(`
32
34
  `)}
33
35
  </execution-order>
34
36
  <required-invariants>
@@ -41,106 +43,63 @@ ${o.map(r=>` ${r}`).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,29 +112,29 @@ 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 wt}from"child_process";import{access as kt}from"fs/promises";import{promisify as St}from"util";var ge=St(wt);function Tt(e,t){let o;try{o=JSON.parse(e)}catch{return e}let r=o?.Item;if(!r)return e;let n=[],a=r.FullName??r.Name??"",s=r.Type??"",i=r.Summary??"",l=r.SyntaxContent??"";n.push(`## API Reference Item
115
+ - If all automated changes look correct and no further fixes are needed, explicitly confirm this`;import{execFile as kt}from"child_process";import{access as wt}from"fs/promises";import{promisify as St}from"util";var me=St(kt);function Tt(e,t){let o;try{o=JSON.parse(e)}catch{return e}let s=o?.Item;if(!s)return e;let n=[],a=s.FullName??s.Name??"",r=s.Type??"",i=s.Summary??"",l=s.SyntaxContent??"";n.push(`## API Reference Item
157
116
  - Name: ${a}
158
- - Type: ${s}
117
+ - Type: ${r}
159
118
  - Summary: ${i}
160
- - Syntax: ${l}`);let p=o.RelatedItemsByType?.return_type;if(p?.length){let u=p[0].Text;u&&n.push(`- Return Type: ${u}`)}let g=r.Examples??[];if(g.length>0){let u=`## Examples
161
- `,m=0;for(let b of g){let c=(b.Component??"").toLowerCase(),f=t.toLowerCase();if(c&&c!==f&&c!=="general")continue;m+=1;let w=b.Code??"";u+=`### Example ${m}
119
+ - Syntax: ${l}`);let p=o.RelatedItemsByType?.return_type;if(p?.length){let u=p[0].Text;u&&n.push(`- Return Type: ${u}`)}let h=s.Examples??[];if(h.length>0){let u=`## Examples
120
+ `,m=0;for(let y of h){let c=(y.Component??"").toLowerCase(),f=t.toLowerCase();if(c&&c!==f&&c!=="general")continue;m+=1;let k=y.Code??"";u+=`### Example ${m}
162
121
  \`\`\`
163
- ${w}
122
+ ${k}
164
123
  \`\`\`
165
- `}m>0&&n.push(u)}let C=o.RelatedItemsByType??{},h=[];for(let[u,m]of Object.entries(C))if(!(u==="return_type"||u==="render_fragment"))for(let b of m??[]){let c=b.FullName??"",f=b.ShortText??"";h.push(`### ${c} (${u})
166
- ${f}`)}return h.length>0&&n.push(`## Additional Context
167
- `+h.join(`
124
+ `}m>0&&n.push(u)}let v=o.RelatedItemsByType??{},g=[];for(let[u,m]of Object.entries(v))if(!(u==="return_type"||u==="render_fragment"))for(let y of m??[]){let c=y.FullName??"",f=y.ShortText??"";g.push(`### ${c} (${u})
125
+ ${f}`)}return g.length>0&&n.push(`## Additional Context
126
+ `+g.join(`
168
127
  ---
169
128
  `)),n.join(`
170
129
 
171
- `)}function ye(e,t){let{name:o,title:r,description:n,layoutAssistantName:a,codeAssistantName:s,styleAssistantName:i,iconAssistantName:l,accessibilityAssistantName:p,suiteName:g,libKey:C,components:h}=e,u=new k(o,{title:r,description:n,requiredAccess:e.requiredAccess,inputSchema:{userIntent:A.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 ${g} components you want to use.`),needsComponentsDocsConfidence:A.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:A.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:A.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:A.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:A.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:A.array(A.enum(h)).optional().describe(`Optional list of specific ${g} components needed for the project.`)}},async({userIntent:m,needsComponentsDocsConfidence:b,needsLayoutConfidence:c,needsStylingConfidence:f,needsResponsiveBehaviorConfidence:w,needsIconsConfidence:S,componentsNeeded:R},{_meta:N})=>{let H=T(u,N);v("UI Orchestrator called with:",{userIntent:m,needsComponentsDocsConfidence:b,needsLayoutConfidence:c,needsStylingConfidence:f,needsResponsiveBehaviorConfidence:w,needsIconsConfidence:S});try{await t.recordOrchestratorUserRequest({meta:{userIntent:m,componentsNeeded:R,...H}})}catch(L){throw G(L)}let E=u.server?.server.getClientCapabilities?.()?.elicitation,K;if(E&&f>.3&&f<=.6){let L=await u.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"]}});L?.action==="accept"&&L.content?.includeCustomTheming&&(K=!0)}return{content:[{type:"text",text:B({name:o,userIntent:m,includeComponentsDocs:b>.3,includeTheming:f>.6||!!K,includeLayout:c>.5,includeIcons:S>.6,includeResponsive:c>.5&&w>.4,layoutAssistantName:a,codeAssistantName:s,styleAssistantName:i,iconAssistantName:l,accessibilityAssistantName:p,suiteName:g,libKey:C,components:R})}]}});return u}function be(e,t){let{name:o,title:r,description:n,iconAssistantName:a,codeAssistantName:s,suiteName:i,libKey:l,components:p}=e,g=new k(o,{title:r,description:n,inputSchema:{userIntent:A.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:A.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:A.array(A.enum(p)).optional().describe(`Optional list of specific ${i} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:C,needsIconsConfidence:h,componentsNeeded:u},{_meta:m})=>{let b=T(g,m);v("Assistant Orchestrator called with:",{userIntent:C,needsIconsConfidence:h,componentsNeeded:u});try{await t.recordOrchestratorUserRequest({meta:{userIntent:C,componentsNeeded:u,...b}})}catch(f){throw G(f)}return{content:[{type:"text",text:J({name:o,userIntent:C,includeComponentsDocs:!0,includeIcons:h>.5,codeAssistantName:s,iconAssistantName:a,suiteName:i,libKey:l,components:u})}]}});return g}function ve(e,t){let{name:o,title:r,description:n,suiteName:a,libKey:s,getPreContent:i}=e,l=new k(o,{title:r,description:n,requiredAccess:e.requiredAccess,inputSchema:{prompt:A.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:A.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:p,includeBuildingBlockExamples:g},{_meta:C})=>{let h=T(l,C);v("Layout Assistant called with:",{prompt:p,includeBuildingBlockExamples:g});try{let m=(await t.queryCssUtils({query:p},{...h})).values.join(`
172
- `)||"No CSS utilities found for the given prompt.",b=i?.()??"",c=f=>`${b}
130
+ `)}function he(e,t){let{name:o,title:s,description:n,layoutAssistantName:a,codeAssistantName:r,styleAssistantName:i,iconAssistantName:l,accessibilityAssistantName:p,suiteName:h,libKey:v,components:g}=e,u=new w(o,{title:s,description:n,requiredAccess:e.requiredAccess,inputSchema:{userIntent:A.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:A.number().min(0).max(1).default(1).describe("Confidence (0-1) to include Component Documentation assistance. Default is 1."),needsLayoutConfidence:A.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Layout assistance. Default is 0."),needsStylingConfidence:A.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Theming/Styling assistance. Default is 0."),needsResponsiveBehaviorConfidence:A.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Responsive Behavior assistance. Default is 0."),needsIconsConfidence:A.number().min(0).max(1).default(0).describe("Confidence (0-1) to include Icons assistance. Default is 0."),componentsNeeded:A.array(A.enum(g)).optional().describe(`Optional list of specific ${h} components needed for the project.`)}},async({userIntent:m,needsComponentsDocsConfidence:y,needsLayoutConfidence:c,needsStylingConfidence:f,needsResponsiveBehaviorConfidence:k,needsIconsConfidence:S,componentsNeeded:R},{_meta:N})=>{let H=T(u,N);b("UI Orchestrator called with:",{userIntent:m,needsComponentsDocsConfidence:y,needsLayoutConfidence:c,needsStylingConfidence:f,needsResponsiveBehaviorConfidence:k,needsIconsConfidence:S});try{await t.recordOrchestratorUserRequest({meta:{userIntent:m,componentsNeeded:R,...H}})}catch(_){throw L(_)}let E=u.server?.server.getClientCapabilities?.()?.elicitation,K;if(E&&f>.3&&f<=.6){let _=await u.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"]}});_?.action==="accept"&&_.content?.includeCustomTheming&&(K=!0)}return{content:[{type:"text",text:B({name:o,userIntent:m,includeComponentsDocs:y>.3,includeTheming:f>.6||!!K,includeLayout:c>.5,includeIcons:S>.6,includeResponsive:c>.5&&k>.4,layoutAssistantName:a,codeAssistantName:r,styleAssistantName:i,iconAssistantName:l,accessibilityAssistantName:p,suiteName:h,libKey:v,components:R})}]}});return u}function fe(e,t){let{name:o,title:s,description:n,iconAssistantName:a,codeAssistantName:r,suiteName:i,libKey:l,components:p}=e,h=new w(o,{title:s,description:n,inputSchema:{userIntent:A.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:A.number().min(0).max(1).default(.7).describe("Confidence (0-1) to include Icons assistance. Default is 0.7."),componentsNeeded:A.array(A.enum(p)).optional().describe(`Optional list of specific ${i} components you want to learn about.`)},requiredAccess:e.requiredAccess},async({userIntent:v,needsIconsConfidence:g,componentsNeeded:u},{_meta:m})=>{let y=T(h,m);b("Assistant Orchestrator called with:",{userIntent:v,needsIconsConfidence:g,componentsNeeded:u});try{await t.recordOrchestratorUserRequest({meta:{userIntent:v,componentsNeeded:u,...y}})}catch(f){throw L(f)}return{content:[{type:"text",text:J({name:o,userIntent:v,includeComponentsDocs:!0,includeIcons:g>.5,codeAssistantName:r,iconAssistantName:a,suiteName:i,libKey:l,components:u})}]}});return h}function ye(e,t){let{name:o,title:s,description:n,suiteName:a,libKey:r,getPreContent:i}=e,l=new w(o,{title:s,description:n,requiredAccess:e.requiredAccess,inputSchema:{prompt:A.string().describe("An enhanced prompt describing the HTML layout structure, design requirements or specific visual effects you want to achieve."),includeBuildingBlockExamples:A.boolean().describe("Whether to include building block examples. Defaults to false.").default(!1)}},async({prompt:p,includeBuildingBlockExamples:h},{_meta:v})=>{let g=T(l,v);b("Layout Assistant called with:",{prompt:p,includeBuildingBlockExamples:h});try{let m=(await t.queryCssUtils({query:p},{...g})).values.join(`
131
+ `)||"No CSS utilities found for the given prompt.",y=i?.()??"",c=f=>`${y}
173
132
 
174
133
  # Kendo Design System CSS Utilities
175
134
 
176
135
  ${m}
177
136
  ${f??""}
178
- `;if(g)try{let f=await t.queryBuildingBlocks({query:p,lib_name:s},{...h}),w="";f.items?.length>0&&(w=`
137
+ `;if(h)try{let f=await t.queryBuildingBlocks({query:p,lib_name:r},{...g}),k="";f.items?.length>0&&(k=`
179
138
  ## Building Blocks Examples
180
139
 
181
140
  The examples here are for demonstration purpose how CSS utils can be implemented in various building blocks.
@@ -190,54 +149,54 @@ ${S.description}
190
149
  ${S.code}
191
150
  \`\`\`
192
151
  `).join(`
193
- `)}`),m=c(w)}catch(f){v("Error calling building-blocks service:",f),m=c()}else m=c();return{content:[{type:"text",text:m}]}}catch(u){throw G(u)}});return l}function Ce(e,t){let{name:o,title:r,description:n,libKey:a,getPreContent:s}=e,i=new k(o,{title:r,description:n,requiredAccess:e.requiredAccess,inputSchema:{prompt:A.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:l},{_meta:p})=>{let g=T(i,p);v("Style Assistant called with:",{prompt:l});let C="";try{let m=await t.queryThemeGenerate({prompt:l},{...g});if(m.variables_json){let b=JSON.parse(m.variables_json),c=[];if(b)for(let f of Object.keys(b))typeof b[f]=="string"&&c.push(`${f}: ${b[f]}`);C=c.join(`
152
+ `)}`),m=c(k)}catch(f){b("Error calling building-blocks service:",f),m=c()}else m=c();return{content:[{type:"text",text:m}]}}catch(u){throw L(u)}});return l}function be(e,t){let{name:o,title:s,description:n,libKey:a,getPreContent:r}=e,i=new w(o,{title:s,description:n,requiredAccess:e.requiredAccess,inputSchema:{prompt:A.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:l},{_meta:p})=>{let h=T(i,p);b("Style Assistant called with:",{prompt:l});let v="";try{let m=await t.queryThemeGenerate({prompt:l},{...h});if(m.variables_json){let y=JSON.parse(m.variables_json),c=[];if(y)for(let f of Object.keys(y))typeof y[f]=="string"&&c.push(`${f}: ${y[f]}`);v=c.join(`
194
153
 
195
- `)}}catch(m){throw G(m)}let h=s?.()??"";return{content:[{type:"text",text:C?`Use the following CSS variables to style the web application, including colors, typography, spacing, and component appearance.
154
+ `)}}catch(m){throw L(m)}let g=r?.()??"";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.
197
156
  Do NOT set any inline styles. CSS variables should be defined in global or component-level CSS files, or via supported theming mechanisms.
198
157
 
199
- ${h}
158
+ ${g}
200
159
 
201
160
  ## Generated CSS Variables
202
161
 
203
162
  \`\`\`css
204
- ${C}
163
+ ${v}
205
164
  \`\`\`
206
- `:"No CSS variables were generated for the given prompt."}]}});return i}function Ae(e,t){let{name:o,title:r,description:n,libKey:a,getPostContent:s}=e,i=new k(o,{title:r,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:A.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:A.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:l,limit:p},{_meta:g})=>{let C=T(i,g);v("Icon Search called with:",{query:l,limit:p});try{let h=await t.queryIconsSearch({query:l,limit:p*100},{...C}),u=s?.()??"";return{content:[{type:"text",text:`${h.values.join(`
165
+ `:"No CSS variables were generated for the given prompt."}]}});return i}function Ce(e,t){let{name:o,title:s,description:n,libKey:a,getPostContent:r}=e,i=new w(o,{title:s,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:A.string().describe("A search query for finding icons. Be specific about the icon purpose, style, or action."),limit:A.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:l,limit:p},{_meta:h})=>{let v=T(i,h);b("Icon Search called with:",{query:l,limit:p});try{let g=await t.queryIconsSearch({query:l,limit:p*100},{...v}),u=r?.()??"";return{content:[{type:"text",text:`${g.values.join(`
207
166
 
208
167
  `)}
209
168
 
210
- ${u}`}]}}catch(h){throw G(h)}});return i}function xe(e,t){let{name:o,title:r,description:n,libKey:a,suiteName:s,components:i,componentAliases:l,getPostContent:p}=e,g=new k(o,{title:r,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:A.string().describe("The query to search for."),component:A.enum(i).describe("The component to search for. If not specified, use General.")}},async({query:C,component:h},{_meta:u})=>{let m=T(g,u);v("Code Assistant called with:",{query:C,component:h});let b=h;if(l){let c=l[h];c&&(b=c)}try{let f=(await t.query({query:C,component:b?.toLowerCase()??"general",lib_name:a,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{...m})).values.map(R=>R.replace(/\0/g,"")),w=p?.({component:h})??"";return{content:[{type:"text",text:`${f.join(`
169
+ ${u}`}]}}catch(g){throw L(g)}});return i}function ve(e,t){let{name:o,title:s,description:n,libKey:a,suiteName:r,components:i,componentAliases:l,getPostContent:p}=e,h=new w(o,{title:s,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:A.string().describe("The query to search for."),component:A.enum(i).describe("The component to search for. If not specified, use General.")}},async({query:v,component:g},{_meta:u})=>{let m=T(h,u);b("Code Assistant called with:",{query:v,component:g});let y=g;if(l){let c=l[g];c&&(y=c)}try{let f=(await t.query({query:v,component:y?.toLowerCase()??"general",lib_name:a,text_matches_count:3,code_matches_count:0,allowed_types:["documentation"]},{...m})).values.map(R=>R.replace(/\0/g,"")),k=p?.({component:g})??"";return{content:[{type:"text",text:`${f.join(`
211
170
 
212
171
  `)}
213
172
 
214
- ${w}`}]}}catch(c){throw G(c)}});return g}function we(e,t){let{name:o,title:r,description:n,libKey:a,suiteName:s,components:i,componentAliases:l}=e,p=new k(o,{title:r,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:A.string().describe("The query to search for."),component:A.enum(i).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:A.boolean().default(!1).describe("Set to true only on the first call to include comprehensive WCAG 2.2 Level AA general guidelines. After the first call, set to false to get only component-specific accessibility information. Default is false.")}},async({query:g,component:C,includeGeneralGuidelines:h},{_meta:u})=>{let m=T(p,u);v("Accessibility Assistant called with:",{query:g,component:C,includeGeneralGuidelines:h});let b=C;if(l){let c=l[C];c&&(b=c)}try{let c="";if(h){let N=pe();c+=`# WCAG 2.2 Level AA General Accessibility Guidelines
173
+ ${k}`}]}}catch(c){throw L(c)}});return h}function Ae(e,t){let{name:o,title:s,description:n,libKey:a,suiteName:r,components:i,componentAliases:l}=e,p=new w(o,{title:s,description:n,requiredAccess:e.requiredAccess,inputSchema:{query:A.string().describe("The query to search for."),component:A.enum(i).describe("The component to search for. If not specified, use General."),includeGeneralGuidelines:A.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:u})=>{let m=T(p,u);b("Accessibility Assistant called with:",{query:h,component:v,includeGeneralGuidelines:g});let y=v;if(l){let c=l[v];c&&(y=c)}try{let c="";if(g){let N=ce();c+=`# WCAG 2.2 Level AA General Accessibility Guidelines
215
174
 
216
175
  `,c+=N,c+=`
217
176
 
218
177
  ---
219
178
 
220
- `}let R=(await t.getApiRefMatches({query:g,component:b?.toLowerCase()??"general",lib_name:a,filters_json:'{"type":{"$in":["accessibility"]}}'},{...m})).values.map(N=>N.replace(/\0/g,"")).map(N=>Tt(N,b?.toLowerCase()??"general")).join(`
179
+ `}let R=(await t.getApiRefMatches({query:h,component:y?.toLowerCase()??"general",lib_name:a,filters_json:'{"type":{"$in":["accessibility"]}}'},{...m})).values.map(N=>N.replace(/\0/g,"")).map(N=>Tt(N,y?.toLowerCase()??"general")).join(`
221
180
 
222
- `);return R?(h&&(c+=`# Component-Specific Accessibility Information
181
+ `);return R?(g&&(c+=`# Component-Specific Accessibility Information
223
182
 
224
- `),c+=R):h||(c="No component-specific accessibility guidelines found."),{content:[{type:"text",text:c}]}}catch(c){throw G(c)}});return p}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.
183
+ `),c+=R):g||(c="No component-specific accessibility guidelines found."),{content:[{type:"text",text:c}]}}catch(c){throw L(c)}});return p}function L(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 It=20*1024*1024,ke=1200*1e3;function fe(e){return{content:[{type:"text",text:`Upgrade timed out after ${ke/6e4} minutes.
185
+ Error Code: ${t.code} Error Message: ${t.message}`)}var It=20*1024*1024,xe=1200*1e3;function ge(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 Se(e,t){let{name:o,title:r,description:n,suiteName:a,packagePrefix:s}=e,i=new k(o,{title:r,description:n,requiredAccess:e.requiredAccess,inputSchema:{workingDirectory:A.string().describe('The absolute path to the project directory where the upgrade should be executed (e.g., "/Users/username/my-app")'),packageNames:A.array(A.string()).optional().describe(`The package names to target for codemod upgrade (e.g., ["${s}grid", "${s}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:A.boolean().optional().describe("Skip npm package installation and only run codemods. Use this when package installation has already been done manually.")}},async({workingDirectory:l,packageNames:p,skipInstall:g},{_meta:C})=>{let h=T(i,C);try{await t.recordToolUserRequest({toolName:o,meta:h})}catch(u){console.error("Error recording tool request:",u)}try{try{await kt(l)}catch{return{content:[{type:"text",text:`The working directory does not exist: "${l}". Please provide a valid absolute path to your project.`}]}}let u=!1;try{await ge("npx",["--no","--","kendo","--version"],{cwd:l}),u=!0}catch{u=!1}let m=[],b=async(E,K=!1)=>{try{let U=!K&&u?["--no","--","kendo",...E]:["-y","@progress/kendo-cli",...E],{stdout:L,stderr:at}=await ge("npx",U,{cwd:l,maxBuffer:It,timeout:ke});return{timedOut:!1,stdout:L,stderr:at}}catch(U){return U.killed?{timedOut:!0,partialOutput:U.stdout?.trim()}:{timedOut:!1,stdout:U.stdout||"",stderr:U.stderr||U.message}}},c=["migrate",...p??[],"--codemods","--force","--ai-mode"];(g||p?.length)&&c.push("--no-install");let f=await b(c);if(f.timedOut)return fe(f.partialOutput);let w=f.stdout,S=f.stderr;if(S?.includes("Unknown argument")){let E=await b(c,!0);if(E.timedOut)return fe(E.partialOutput);w=E.stdout,S=E.stderr}S?.trim()&&m.push(`
192
+ `+e:""}`}]}}function ke(e,t){let{name:o,title:s,description:n,suiteName:a,packagePrefix:r}=e,i=new w(o,{title:s,description:n,requiredAccess:e.requiredAccess,inputSchema:{workingDirectory:A.string().describe('The absolute path to the project directory where the upgrade should be executed (e.g., "/Users/username/my-app")'),packageNames:A.array(A.string()).optional().describe(`The package names to target for codemod upgrade (e.g., ["${r}grid", "${r}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:A.boolean().optional().describe("Skip npm package installation and only run codemods. Use this when package installation has already been done manually.")}},async({workingDirectory:l,packageNames:p,skipInstall:h},{_meta:v})=>{let g=T(i,v);try{await t.recordToolUserRequest({toolName:o,meta:g})}catch(u){console.error("Error recording tool request:",u)}try{try{await wt(l)}catch{return{content:[{type:"text",text:`The working directory does not exist: "${l}". Please provide a valid absolute path to your project.`}]}}let u=!1;try{await me("npx",["--no","--","kendo","--version"],{cwd:l}),u=!0}catch{u=!1}let m=[],y=async(E,K=!1)=>{try{let P=!K&&u?["--no","--","kendo",...E]:["-y","@progress/kendo-cli",...E],{stdout:_,stderr:at}=await me("npx",P,{cwd:l,maxBuffer:It,timeout:xe});return{timedOut:!1,stdout:_,stderr:at}}catch(P){return P.killed?{timedOut:!0,partialOutput:P.stdout?.trim()}:{timedOut:!1,stdout:P.stdout||"",stderr:P.stderr||P.message}}},c=["migrate",...p??[],"--codemods","--force","--ai-mode"];(h||p?.length)&&c.push("--no-install");let f=await y(c);if(f.timedOut)return ge(f.partialOutput);let k=f.stdout,S=f.stderr;if(S?.includes("Unknown argument")){let E=await y(c,!0);if(E.timedOut)return ge(E.partialOutput);k=E.stdout,S=E.stderr}S?.trim()&&m.push(`
234
193
  Errors:
235
- ${S}`),w?.trim()&&m.push(w.trim());let R=w.includes("Packages installed successfully."),N=w.includes("Package installation failed:"),H=w.includes("Running codemod:");return N?m.push(`
194
+ ${S}`),k?.trim()&&m.push(k.trim());let R=k.includes("Packages installed successfully."),N=k.includes("Package installation failed:"),H=k.includes("Running codemod:");return N?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.`):R&&m.push(`
238
197
  ## Upgrade Status
239
198
  Upgrade complete. npm packages have been installed and updated in the project.`),H&&m.push(Z()),{content:[{type:"text",text:m.join(`
240
- `)}]}}catch(u){return{content:[{type:"text",text:`Error: ${u.message||u.toString()}`}]}}});return i}var Te=e=>`${e}_ui_generator`,Ie=e=>`${e}_assistant`,Re=e=>`${e}_layout_assistant`,Ne=e=>`${e}_component_assistant`,Ee=e=>`${e}_style_assistant`,De=e=>`${e}_icon_assistant`,Ue=e=>`${e}_accessibility_assistant`,Pe=e=>`${e}_getting_started_assistant`,Ge=e=>`${e}_upgrade_assistant`;var Le=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.
199
+ `)}]}}catch(u){return{content:[{type:"text",text:`Error: ${u.message||u.toString()}`}]}}});return i}var we=e=>`${e}_ui_generator`,Se=e=>`${e}_assistant`,Te=e=>`${e}_layout_assistant`,Ie=e=>`${e}_component_assistant`,Re=e=>`${e}_style_assistant`,Ne=e=>`${e}_icon_assistant`,Ee=e=>`${e}_accessibility_assistant`,Ue=e=>`${e}_getting_started_assistant`,Pe=e=>`${e}_upgrade_assistant`;var De=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
@@ -246,7 +205,7 @@ Upgrade complete. npm packages have been installed and updated in the project.`)
246
205
  - You want to enforce best practices in styling, performance, and accessibility
247
206
 
248
207
  Returns:
249
- A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,_e=e=>`Provides guidance for discovering and using ${e} components and icons. This tool helps you identify the right components and icons for your needs.
208
+ A detailed execution plan with validated tool calls, parameters, and reasoning \u2014 ensuring consistent, high-quality UI generation.`,Le=e=>`Provides guidance for discovering and using ${e} components and icons. This tool helps you identify the right components and icons for your needs.
250
209
 
251
210
  Use this tool when:
252
211
  - You need to discover which ${e} components are suitable for a specific use case
@@ -255,20 +214,20 @@ Use this tool when:
255
214
  - You want to gather component documentation and examples
256
215
 
257
216
  Returns:
258
- A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools.`,$e=`Retrieves Progress/Kendo Design System CSS utility classes and styling recommendations based on layout and design requirements.
217
+ A focused plan for gathering component documentation and icon suggestions using the Component Assistant and Icon Assistant tools.`,_e=`Retrieves Progress/Kendo Design System CSS utility classes and styling recommendations based on layout and design requirements.
259
218
  Use this tool to find the right CSS utilities for styling Kendo UI components or general web elements.
260
219
  It analyzes the provided design context and returns relevant utility classes with explanations and examples.
261
- Best suited for styling questions related to typography, spacing, colors, layout, transforms, and other utilities in the Progress/Kendo Design System.`,qe=`Generates CSS variables using an external style agent based on the user's styling prompt.
220
+ Best suited for styling questions related to typography, spacing, colors, layout, transforms, and other utilities in the Progress/Kendo Design System.`,Ge=`Generates CSS variables using an external style agent based on the user's styling prompt.
262
221
 
263
222
  Use this tool when the user wants to:
264
223
  - Update the visual theme of an application
265
224
  - Modify color schemes
266
225
  - Restyle the UI with CSS variables
267
226
 
268
- The tool outputs a set of CSS variable definitions ready to be applied to style files.`,Oe=`Searches for icons in the Telerik Icons library.
227
+ The tool outputs a set of CSS variable definitions ready to be applied to style files.`,$e=`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
- `,Me=e=>`Provides answers and retrieves official documentation for ${e}.
230
+ `,Oe=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
- `,Fe=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
@@ -296,7 +255,7 @@ Set 'includeGeneralGuidelines=true' ONLY on the first call to include general WC
296
255
  Returns:
297
256
  - When includeGeneralGuidelines=true: General WCAG 2.2 Level AA guidelines + component-specific recommendations
298
257
  - When includeGeneralGuidelines=false: Only component-specific accessibility recommendations
299
- `,Be=(e,t)=>`Runs codemods to upgrade ${e} code from one version directly to another using @progress/kendo-cli.
258
+ `,Me=(e,t)=>`Runs codemods to upgrade ${e} code from one version directly to another using @progress/kendo-cli.
300
259
 
301
260
  To upgrade to the latest version, call this tool directly. It handles installation automatically.
302
261
 
@@ -321,112 +280,36 @@ 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 Rt={createOrchestrator:ye,createAssistantOrchestrator:be,createLayoutAssistant:ve,createStyleAssistant:Ce,createIconSearch:Ae,createCodeAssistant:xe,createAccessibilityAssistant:we,createUpgrade:Se},Nt={orchestrator:Te,assistantOrchestrator:Ie,layoutAssistant:Re,codeAssistant:Ne,styleAssistant:Ee,iconAssistant:De,accessibilityAssistant:Ue,gettingStartedAssistant:Pe,upgradeAssistant:Ge},Et={orchestrator:Le,assistantOrchestrator:_e,layoutAssistant:$e,styleAssistant:qe,iconAssistant:Oe,codeAssistant:Me,accessibilityAssistant:Fe,upgradeAssistant:Be},Dt={Orchestrator:{render:B},UX:{getInstructions:$}},y={Tools:Rt,ToolNames:Nt,ToolDescriptions:Et,Templates:Dt};var Ut=y.ToolNames.codeAssistant("kendoreact"),Ke=()=>`# Kendo Design System Guidelines for ${d}
325
-
283
+ `;var Rt={createOrchestrator:he,createAssistantOrchestrator:fe,createLayoutAssistant:ye,createStyleAssistant:be,createIconSearch:Ce,createCodeAssistant:ve,createAccessibilityAssistant:Ae,createUpgrade:ke},Nt={orchestrator:we,assistantOrchestrator:Se,layoutAssistant:Te,codeAssistant:Ie,styleAssistant:Re,iconAssistant:Ne,accessibilityAssistant:Ee,gettingStartedAssistant:Ue,upgradeAssistant:Pe},Et={orchestrator:De,assistantOrchestrator:Le,layoutAssistant:_e,styleAssistant:Ge,iconAssistant:$e,codeAssistant:Oe,accessibilityAssistant:qe,upgradeAssistant:Me},Ut={Orchestrator:{render:B},UX:{getInstructions:$}},C={Tools:Rt,ToolNames:Nt,ToolDescriptions:Et,Templates:Ut};var Fe=()=>`# Kendo Design System Guidelines for ${d}
326
284
  ## 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**: To include the kendo-theme-utils always use the same theme import mechanism (noted during the plan phase) as the rest of the Kendo themes in your project.
331
- **Important**: Include the kendo-theme-utils only once in your project. Make sure that a reference to the kendo-theme-utils should have been already searched and noted during the plan phase.
285
+ Include a reference to the kendo-theme-utils CSS package and use the same import mechanism as the existing Kendo theme.
332
286
 
333
287
  ### Using NPM
334
-
335
- The CSS Utilities are available as an NPM module that you can install - \`@progress/kendo-theme-utils\`
336
-
337
288
  To install: \`npm install --save @progress/kendo-theme-utils\`
338
289
 
339
- The precompiled CSS is available in \`node_modules/@progress/kendo-theme-utils/dist/all.css\`
340
-
341
- Also, available as SCSS and you can include it on your SCSS file - \`@use '@progress/kendo-theme-utils/scss/all.scss' as *;\`
342
-
343
- ### Using CDN
290
+ Also available as SCSS - \`@use '@progress/kendo-theme-utils/scss/all.scss' as *;\`
291
+ Alternatively, use CDN: \`<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />\`
344
292
 
345
- Alternatively, you can also consume them directly from the Unpkg CDN.
346
-
347
- \`<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />\`
348
-
349
- ## Ready-to-use Layout Components
350
-
351
- 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.
352
-
353
- For any Layout component you can also call the ${Ut} tool in order to get specific API reference and docs.
293
+ ### Default Behavior
294
+ - Use the Kendo Design System utilities for layout.
295
+ - Use theme utility classes instead of custom CSS whenever a utility exists. Write custom CSS only for properties without a utility equivalent.
296
+ - Do not use overrides for Kendo internals when a utility or component configuration can express the rule.
297
+ - Prioritize using ${d} components instead of building ones from scratch.
354
298
 
355
299
  - ${d} Card component.
356
- - Generally, it is recommended to use 100% width (e.g., \`<Card style={{ width: '100%' }}>\`)
357
- - If needed, use specific width based on the layout requirements (e.g., \`<Card style={{ width: '150px' }}>\`)
358
- - Avoid applying additional styling properties such as \`display\`, \`flex\`, \`grid\`, or other layout-specific CSS to layout components such as Splitter, DockLayout, and TileLayout. Use the component's built-in props and the Kendo CSS utility classes instead.
300
+ - Generally use 100% width (e.g., \`<Card style={{ width: '100%' }}>\`)
301
+ - Or set width based on the layout requirements (e.g., \`<Card style={{ width: '150px' }}>\`)
359
302
 
360
- ## Page Shell Patterns
303
+ - **\`min-width: 0\`** on every flex/grid child that contains a Kendo component.
304
+ - Grid and Chart require an explicit height.
305
+ - Grid columns require an explicit width.
306
+ - Custom cards and containers must use \`var(--kendo-component-bg)\` for their background.
307
+ - 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.
308
+ - Avoid \`transform\` on layout ancestors that contain Kendo overlay components.
309
+ - Avoid applying additional styling properties such as \`display\`, \`flex\`, \`grid\`, or other layout-specific CSS to layout components such as Splitter, DockLayout, and TileLayout. Use the component's built-in props and the Kendo CSS utility classes.
310
+ - By default constrain page content to \`max-width: 1440px\` with \`margin: 0 auto\` to prevent unbounded wide-screen stretching.
361
311
 
362
- Choose the pattern that matches the page structure:
363
-
364
- **Pattern A \u2014 Sidebar + Main Content**
365
- \`\`\`css
366
- .app-shell {
367
- display: flex;
368
- height: 100vh;
369
- }
370
- .sidebar {
371
- width: 240px;
372
- flex-shrink: 0;
373
- }
374
- .main-content {
375
- flex: 1;
376
- min-width: 0; /* Critical: prevents flex children from overflowing */
377
- overflow: auto;
378
- }
379
- \`\`\`
380
-
381
- **Pattern B \u2014 Centered Single-Column (forms, detail pages)**
382
- \`\`\`css
383
- .page-container {
384
- max-width: 960px;
385
- margin: 0 auto;
386
- padding: 0 1rem;
387
- }
388
- \`\`\`
389
-
390
- **Pattern C \u2014 Master-Detail Split**
391
- \`\`\`css
392
- .split-container {
393
- display: grid;
394
- grid-template-columns: 420px 1fr;
395
- height: 100%;
396
- }
397
- \`\`\`
398
-
399
- ## Dashboard Layout
400
-
401
- **KPI metric row** (auto-responsive, min 180px per card):
402
- \`\`\`css
403
- .kpi-row {
404
- display: grid;
405
- grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
406
- gap: 1rem;
407
- }
408
- \`\`\`
409
-
410
- **Side-by-side charts** (equal width, no overflow):
411
- \`\`\`css
412
- .chart-row {
413
- display: grid;
414
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
415
- gap: 1rem;
416
- }
417
- \`\`\`
418
-
419
- ## Critical Sizing Rules
420
-
421
- - **\`min-width: 0\`** on every flex/grid child that contains a Kendo component \u2014 the single most common cause of layout overflow.
422
- - **Grid component** always requires an explicit height (e.g., \`style={{ height: 500 }}\` or \`flex: 1; min-height: 0\` inside a flex column).
423
- - **Chart component** always requires an explicit height (e.g., \`style={{ height: 300 }}\`).
424
- - Never leave Grid column widths unset \u2014 without a height, Grid renders all rows and expands the page indefinitely..
425
- - 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.
426
-
427
- ## Dark Theme Completeness
428
-
429
- Kendo themes style \`.k-*\` component selectors only. Always add these two lines to your global CSS file after any theme import:
312
+ Always add to the global CSS file after any theme import:
430
313
 
431
314
  \`\`\`css
432
315
  html, body {
@@ -435,30 +318,13 @@ html, body {
435
318
  }
436
319
  \`\`\`
437
320
 
438
- Without this, dark-themed components render on a white page.
439
-
440
321
  ## Surface Hierarchy
441
-
442
- Kendo themes define four surface levels \u2014 do not introduce custom surfaces outside this system:
443
- 1. **Page background** (\`var(--kendo-body-bg)\`) \u2014 lowest surface, applied to \`html, body\`
444
- 2. **Component background** (\`var(--kendo-component-bg)\`) \u2014 cards, panels, Grid body
445
- 3. **Header / hover surface** (\`var(--kendo-grid-header-bg)\`) \u2014 Grid headers, highlighted rows
446
- 4. **Active / selected surface** \u2014 managed by the theme automatically
447
-
448
- 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 cell renderers and custom component content break dark mode.
449
-
450
- ## Splitter Usage Boundary
451
-
452
- Use the \`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.
453
-
454
- ## Inline Input Width
455
-
456
- \`DropDownList\`, \`DatePicker\`, \`Input\`, 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.
457
-
458
- ## Popup Z-Index Trap
459
-
460
- 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.
461
- `;var je=()=>`## Design Standards for ${d} Theming
322
+ Use only the four surface levels defined by the Kendo themes
323
+ 1. Page background (\`var(--kendo-body-bg)\`) \u2014 applied to \`html, body\`
324
+ 2. Component background (\`var(--kendo-component-bg)\`) \u2014 cards, panels, Grid body
325
+ 3. Header / hover surface (\`var(--kendo-grid-header-bg)\`) \u2014 Grid headers, highlighted rows
326
+ 4. Active / selected surface \u2014 managed by the theme automatically
327
+ `;var Be=()=>`## Design Standards for ${d} Theming
462
328
 
463
329
  ### Color & Contrast Requirements
464
330
  - Body text contrast: \u2265 4.5:1. Large text / UI component borders: \u2265 3:1.
@@ -585,7 +451,16 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) {
585
451
 
586
452
  export const useTheme = () => useContext(ThemeContext);
587
453
  \`\`\`
588
- `;var We=y.ToolNames.codeAssistant("kendoreact"),He=()=>`## Using ${d} Icons
454
+ `;var Ke=C.ToolNames.codeAssistant("kendoreact"),je=()=>`### SVG Icon Export Names
455
+
456
+ For an icon listed above, map its listed value to the SVG export from \`@progress/kendo-svg-icons\` as follows:
457
+ 1. Append \`-icon\` to the listed value.
458
+ 2. Convert the result from kebab case to camel case.
459
+
460
+ ### Font Icon Class Names
461
+ Prepend \`k-i-\` to the listed value to form the font icon CSS class name. Keep the value in kebab case.
462
+
463
+ ## Using ${d} Icons
589
464
 
590
465
  Important: Attempt to prioritize SVG icons over font icons.
591
466
 
@@ -593,9 +468,9 @@ Important: Attempt to prioritize SVG icons over font icons.
593
468
 
594
469
  - Make sure @progress/kendo-svg-icons is installed: \`npm install @progress/kendo-svg-icons\`
595
470
  - Make sure @progress/kendo-react-common is installed (contains SvgIcon component): \`npm install @progress/kendo-react-common\`
596
- - You can call ${We} tool for ${d} SvgIcon component for docs and API reference.
471
+ - You can call ${Ke} tool for ${d} SvgIcon component for docs and API reference.
597
472
  - [optional] If SVG is not an option fallback to fonticon - make sure \`<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-font-icons/dist/index.css" />\` is added as a reference.
598
- - [optional] If using font icons you can call ${We} tool for ${d} Icon component for docs and API reference.
473
+ - [optional] If using font icons you can call ${Ke} tool for ${d} Icon component for docs and API reference.
599
474
 
600
475
  ### Examples
601
476
 
@@ -643,7 +518,7 @@ Here are some frequently used icons from @progress/kendo-svg-icons:
643
518
  - \`sortAscIcon\`, \`sortDescIcon\` - Sorting
644
519
  - \`chevronUpIcon\`, \`chevronDownIcon\`, \`chevronLeftIcon\`, \`chevronRightIcon\` - Navigation
645
520
  - \`checkIcon\`, \`xIcon\` - Confirmation/Cancel
646
- `;var ze=e=>{let t=`## ${d} Implementation Rules
521
+ `;var We=e=>{let t=`## ${d} Implementation Rules
647
522
 
648
523
  - Follow the project's existing React and ${d} setup; use function components and Hooks for new code.
649
524
  - Before using a component, confirm its required ${d} package is already declared in the project. Install only missing, required packages using the project's approved package-management workflow.
@@ -654,7 +529,7 @@ Here are some frequently used icons from @progress/kendo-svg-icons:
654
529
  ## Component-Specific Guidelines
655
530
 
656
531
  ${e.componentInstructions}
657
- `),t};var Pt={meridian:"@progress/kendo-theme-meridian",default:"@progress/kendo-theme-default",bootstrap:"@progress/kendo-theme-bootstrap",material:"@progress/kendo-theme-material",fluent:"@progress/kendo-theme-fluent"},Gt={meridian:"Meridian",default:"Default",bootstrap:"Bootstrap",material:"Material Design",fluent:"Fluent UI"};function Ye(e="kendo-react-app",t=!0,o="meridian"){let r=Pt[o],n=Gt[o],a=t?`This instructions will walk you through creating a new React project with the Kendo CLI and setting up ${d}.`:`This instructions will walk you through adding ${d} to your existing React project.`,s=1,i=t?`## Step ${s++}: Ensure Kendo CLI is Installed
532
+ `),t};var Pt={meridian:"@progress/kendo-theme-meridian",default:"@progress/kendo-theme-default",bootstrap:"@progress/kendo-theme-bootstrap",material:"@progress/kendo-theme-material",fluent:"@progress/kendo-theme-fluent"},Dt={meridian:"Meridian",default:"Default",bootstrap:"Bootstrap",material:"Material Design",fluent:"Fluent UI"};function He(e="kendo-react-app",t=!0,o="meridian"){let s=Pt[o],n=Dt[o],a=t?`This instructions will walk you through creating a new React project with the Kendo CLI and setting up ${d}.`:`This instructions will walk you through adding ${d} to your existing React project.`,r=1,i=t?`## Step ${r++}: Ensure Kendo CLI is Installed
658
533
 
659
534
  First, ensure the Kendo CLI tool is installed globally:
660
535
 
@@ -664,7 +539,7 @@ npm i -g @progress/kendo-cli@latest
664
539
 
665
540
  This CLI tool will handle the entire project setup including all necessary dependencies and configurations.
666
541
 
667
- ## Step ${s++}: Create the Project
542
+ ## Step ${r++}: Create the Project
668
543
 
669
544
  Create a new Kendo React project using the CLI:
670
545
 
@@ -684,11 +559,11 @@ Navigate to the project directory:
684
559
  cd ${e}
685
560
  \`\`\`
686
561
 
687
- ## Step ${s++}: Remove Dark Color Schema from index.css
562
+ ## Step ${r++}: Remove Dark Color Schema from index.css
688
563
 
689
564
  Open the \`src/index.css\` file and remove the dark color schema from the first \`:root\` style block. Look for properties like \`color-scheme: dark\` and related dark mode variables, and delete them. Keep only the light theme configuration.
690
565
 
691
- `:"",l=t?"":`## Step ${s++}: Install ${d} Packages
566
+ `:"",l=t?"":`## Step ${r++}: Install ${d} Packages
692
567
 
693
568
  Install all required ${d} packages and dependencies:
694
569
 
@@ -696,18 +571,18 @@ Install all required ${d} packages and dependencies:
696
571
  npm i @progress/kendo-data-query @progress/kendo-react-buttons @progress/kendo-react-excel-export @progress/kendo-react-grid @progress/kendo-react-layout @progress/kendo-react-pdf @progress/kendo-svg-icons @progress/kendo-drawing @progress/kendo-licensing @progress/kendo-react-animation @progress/kendo-react-charts @progress/kendo-react-common @progress/kendo-react-conversational-ui @progress/kendo-react-data-tools @progress/kendo-react-dateinputs @progress/kendo-react-dialogs @progress/kendo-react-dropdowns @progress/kendo-react-editor @progress/kendo-react-form @progress/kendo-react-gantt @progress/kendo-react-gauges @progress/kendo-react-indicators @progress/kendo-react-inputs @progress/kendo-react-intl @progress/kendo-react-labels @progress/kendo-react-listbox @progress/kendo-react-listview @progress/kendo-react-map @progress/kendo-react-notification @progress/kendo-react-orgchart @progress/kendo-react-pivotgrid @progress/kendo-react-popup @progress/kendo-react-progressbars @progress/kendo-react-ripple @progress/kendo-react-scheduler @progress/kendo-react-scrollview @progress/kendo-react-sortable @progress/kendo-react-spreadsheet @progress/kendo-react-tooltip @progress/kendo-react-treelist @progress/kendo-react-treeview @progress/kendo-react-upload @progress/kendo-react-pdf-viewer @progress/kendo-react-taskboard
697
572
  \`\`\`
698
573
 
699
- ## Step ${s++}: Install and Import the Theme
574
+ ## Step ${r++}: Install and Import the Theme
700
575
 
701
576
  Install the ${n} theme package:
702
577
 
703
578
  \`\`\`bash
704
- npm i ${r}
579
+ npm i ${s}
705
580
  \`\`\`
706
581
 
707
582
  Import the CSS file in your \`src/Home.tsx\` (before your existing Home.css import):
708
583
 
709
584
  \`\`\`typescript
710
- import '${r}/dist/all.css';
585
+ import '${s}/dist/all.css';
711
586
  \`\`\`
712
587
 
713
588
  Also add the Kendo CSS utilities CDN link in your \`index.html\` \`<head>\`:
@@ -716,7 +591,7 @@ Also add the Kendo CSS utilities CDN link in your \`index.html\` \`<head>\`:
716
591
  <link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-utils/dist/all.css" />
717
592
  \`\`\`
718
593
 
719
- `,p=`## Step ${s++}: Activate Kendo License
594
+ `,p=`## Step ${r++}: Activate Kendo License
720
595
 
721
596
  This step is required to use Kendo React components without watermarks and with access to all features. Run the following command to activate your license:
722
597
 
@@ -737,7 +612,7 @@ Before you begin, ensure you have:
737
612
  - **Node.js 18 or later** installed on your machine
738
613
  - If Node.js is not available, you need to install the latest Node.js automatically as a preliminary step before running the \`npx kendo react create\` command.
739
614
 
740
- ${i}${l}${p}## Step ${s++}: Run Your Application
615
+ ${i}${l}${p}## Step ${r++}: Run Your Application
741
616
 
742
617
  ${t?"The Kendo CLI has set up everything you need. Start the development server:":"Build and run the application:"}
743
618
 
@@ -750,7 +625,7 @@ cd ${t?e:"."} && npm run dev
750
625
 
751
626
  ${t?`The application should start and open your browser to see your ${d} application.`:`The application should start and open in your browser. Verify that the ${d} components are rendering correctly with the theme applied.`}
752
627
 
753
- ## Step ${s++}: Create Sample page
628
+ ## Step ${r++}: Create Sample page
754
629
 
755
630
  Before adding new content to the homepage, clear all existing CSS on the page. Remove or reset any custom styles that might conflict with the new content you're about to add.
756
631
 
@@ -875,7 +750,7 @@ Add the following styles to \`src/Home.css\`:
875
750
  }
876
751
  \`\`\`
877
752
 
878
- `}var Ve=`
753
+ `}var Ye=`
879
754
  ## KendoReact Chart Reliability Instructions
880
755
  Applies to ALL KendoReact chart types. Generate only current, runnable KendoReact Chart APIs with strongly typed data. You MUST follow every rule in addition to the common guidelines. If any rule cannot be satisfied, fix and re-check before emitting code.
881
756
 
@@ -1017,9 +892,9 @@ const pieLabel = (e: { category?: string; percentage?: number }) =>
1017
892
 
1018
893
  ### 11. Expected output behavior
1019
894
  - The generated page MUST compile under strict TypeScript and render the requested chart(s) with correct data shape, required axes/labels for the chosen series family, formatted tooltips/labels, and no forbidden patterns.
1020
- `;var ee=`
1021
- ## DataGrid Deprecated Properties Awareness
1022
- For DataGrid component cases, avoid using deprecated properties and always use their modern replacements. The following properties are deprecated and should not be used:
895
+ `;var ze=`
896
+ ## Grid Deprecated Properties Awareness
897
+ For Grid component cases, avoid using deprecated properties and always use their modern replacements. The following properties are deprecated and should not be used:
1023
898
 
1024
899
  Deprecated properties and their modern replacements:
1025
900
  - selectedField \u2192 use the select state property
@@ -1041,15 +916,15 @@ Additional modern updates:
1041
916
  - Virtual scrolling no longer applies height by default
1042
917
 
1043
918
  Key points:
1044
- - Never suggest or use these deprecated properties in DataGrid examples
919
+ - Never suggest or use these deprecated properties in Grid examples
1045
920
  - Always provide modern alternatives when users ask about these properties
1046
921
  - Explain that these properties are deprecated and provide the specific modern replacement
1047
- - Focus on current DataGrid API patterns using state properties and cells/rows props
922
+ - Focus on current Grid API patterns using state properties and cells/rows props
1048
923
 
1049
924
  Example:
1050
925
  Deprecated: selectedField="isSelected" editField="inEdit"
1051
926
  Modern: Use select and edit state properties with proper configuration
1052
- `;var Xe=`
927
+ `;var Ve=`
1053
928
  ## Editor Tools Awareness
1054
929
  For Editor component cases, always use the proper EditorTools import structure and never define tools as strings. Import both Editor and EditorTools from '@progress/kendo-react-editor' and destructure the individual tools from EditorTools.
1055
930
 
@@ -1081,7 +956,7 @@ Key points:
1081
956
  Example:
1082
957
  Correct: tools={[[Bold, Italic, Underline], [AlignLeft, AlignCenter]]}
1083
958
  Incorrect: tools={[['bold', 'italic', 'underline'], ['alignLeft', 'alignCenter']]}
1084
- `;var te=`
959
+ `;var Xe=`
1085
960
  ## Smart Grid (AI-Enhanced Grid) Implementation Guidelines
1086
961
  **CRITICAL: When users ask about ANY of these AI grid terms, ALWAYS provide GridToolbarAIAssistant implementation (not basic Grid):**
1087
962
 
@@ -1115,10 +990,8 @@ Smart Grid: Complete AI-enhanced setup with GridToolbarAIAssistant, proper callb
1115
990
  Important Disclaimer:
1116
991
  Always include this disclaimer when providing Smart Grid examples:
1117
992
  "The demos in this article use a Telerik-hosted AI service for demonstration purposes only. For production applications, you should implement your own AI service that understands your specific domain, data, and business requirements."
1118
- `;var Lt={datagrid:[ee,te].join(`
1119
-
1120
- `),grid:[ee,te].join(`
993
+ `;var Lt={grid:[ze,Xe].join(`
1121
994
 
1122
- `),editor:Xe,chart:Ve},q=!!process.env.PLUGIN_MODE,Qe=y.ToolNames.layoutAssistant(D),oe=y.ToolNames.codeAssistant(D),Je=y.ToolNames.styleAssistant(D),re=y.ToolNames.iconAssistant(D),Ze=y.ToolNames.gettingStartedAssistant(D),et=y.ToolNames.accessibilityAssistant(D),_t=y.ToolNames.upgradeAssistant(D);function tt(e,t){return[...q?[]:[y.Tools.createOrchestrator({name:y.ToolNames.orchestrator(D),title:"KendoReact Generator",description:y.ToolDescriptions.orchestrator(d),layoutAssistantName:Qe,codeAssistantName:oe,styleAssistantName:Je,iconAssistantName:re,accessibilityAssistantName:et,suiteName:d,libKey:I,components:M,requiredAccess:["agent"]},e),y.Tools.createAssistantOrchestrator({name:"kendo_react_assistant",title:"KendoReact Assistant",description:y.ToolDescriptions.assistantOrchestrator(d),codeAssistantName:oe,iconAssistantName:re,suiteName:d,libKey:I,components:M,requiredAccess:["assistant"]},e)],y.Tools.createLayoutAssistant({name:Qe,title:"KendoReact Layout Assistant",description:y.ToolDescriptions.layoutAssistant,suiteName:d,libKey:I,getPreContent:q?void 0:()=>`${Ke()}
995
+ `),editor:Ve,chart:Ye},O=!!process.env.PLUGIN_MODE,Qe=C.ToolNames.layoutAssistant(U),ee=C.ToolNames.codeAssistant(U),Je=C.ToolNames.styleAssistant(U),te=C.ToolNames.iconAssistant(U),Ze=C.ToolNames.gettingStartedAssistant(U),et=C.ToolNames.accessibilityAssistant(U),_t=C.ToolNames.upgradeAssistant(U);function tt(e,t){return[...O?[]:[C.Tools.createOrchestrator({name:C.ToolNames.orchestrator(U),title:"KendoReact Generator",description:C.ToolDescriptions.orchestrator(d),layoutAssistantName:Qe,codeAssistantName:ee,styleAssistantName:Je,iconAssistantName:te,accessibilityAssistantName:et,suiteName:d,libKey:I,components:M,requiredAccess:["agent"]},e),C.Tools.createAssistantOrchestrator({name:"kendo_react_assistant",title:"KendoReact Assistant",description:C.ToolDescriptions.assistantOrchestrator(d),codeAssistantName:ee,iconAssistantName:te,suiteName:d,libKey:I,components:M,requiredAccess:["assistant"]},e)],C.Tools.createLayoutAssistant({name:Qe,title:"KendoReact Layout Assistant",description:C.ToolDescriptions.layoutAssistant,suiteName:d,libKey:I,getPreContent:O?void 0:()=>`${Fe()}
1123
996
 
1124
- ${$()}`,requiredAccess:["agent"]},e),y.Tools.createStyleAssistant({name:Je,title:"KendoReact Style Assistant",description:y.ToolDescriptions.styleAssistant,libKey:I,getPreContent:q?void 0:je,requiredAccess:["agent"]},e),y.Tools.createIconSearch({name:re,title:"KendoReact Icon Assistant",description:y.ToolDescriptions.iconAssistant,libKey:I,getPostContent:q?void 0:He,requiredAccess:["assistant","agent"]},e),y.Tools.createCodeAssistant({name:oe,title:"KendoReact Component Assistant",description:y.ToolDescriptions.codeAssistant(d),libKey:I,suiteName:d,components:M,componentAliases:{Grid:"DataGrid"},getPostContent:q?void 0:({component:r})=>{let n=r?.trim().toLowerCase(),a=Lt[n];return ze({component:r,componentInstructions:a})},requiredAccess:["assistant","agent"]},e),...q?[]:[(()=>{let r=new k(Ze,{title:"KendoReact Getting Started",description:`Creates a new React project with Kendo CLI and provides essential getting started guidance for ${d} including installation, configuration, and setup instructions.`,requiredAccess:["agent"],inputSchema:me(d,"kendo-react-app")},async({projectName:n,createNewProject:a,theme:s},{_meta:i})=>{let l=T(r,i);try{await e.recordToolUserRequest({toolName:Ze,meta:{projectName:n,createNewProject:a,theme:s,...l}})}catch(g){console.error("Error recording tool request:",g)}return{content:[{type:"text",text:Ye(n,a,s)}]}});return r})()],y.Tools.createAccessibilityAssistant({name:et,title:"KendoReact Accessibility Assistant",description:y.ToolDescriptions.accessibilityAssistant(d),libKey:I,suiteName:d,components:M,componentAliases:{Grid:"DataGrid"},requiredAccess:["agent"]},e),y.Tools.createUpgrade({name:_t,title:"KendoReact Upgrade Assistant",description:y.ToolDescriptions.upgradeAssistant(d,"@progress/kendo-react-"),suiteName:d,packagePrefix:"@progress/kendo-react-",requiredAccess:["agent"]},e)].filter(r=>r.hasAccess(t))}var Ft=Mt(import.meta.url),Bt=rt.dirname(Ft),Kt=rt.resolve(Bt,"../package.json"),nt=JSON.parse(Ot.readFileSync(Kt,"utf-8")),ot=new $t({name:"kendo-mcp",title:"Kendo MCP Server",version:nt.version});async function jt(){let e=new qt;v("Starting server... ");let t=await de(async()=>{let r=(await he())?.entitlement;return r?.Product?.Code||r?.product?.code});t!=="none"&&(F.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",tt(F,t).forEach(r=>r.register(ot)),ue({serverName:"react",contextApi:F,enrichWithUserData:!0,additionalFields:{version:nt.version,access_type:t}})),await ot.connect(e)}jt();
997
+ ${$()}`,requiredAccess:["agent"]},e),C.Tools.createStyleAssistant({name:Je,title:"KendoReact Style Assistant",description:C.ToolDescriptions.styleAssistant,libKey:I,getPreContent:O?void 0:Be,requiredAccess:["agent"]},e),C.Tools.createIconSearch({name:te,title:"KendoReact Icon Assistant",description:C.ToolDescriptions.iconAssistant,libKey:I,getPostContent:O?void 0:je,requiredAccess:["assistant","agent"]},e),C.Tools.createCodeAssistant({name:ee,title:"KendoReact Component Assistant",description:C.ToolDescriptions.codeAssistant(d),libKey:I,suiteName:d,components:M,getPostContent:O?void 0:({component:s})=>{let n=s?.trim().toLowerCase(),a=Lt[n];return We({component:s,componentInstructions:a})},requiredAccess:["assistant","agent"]},e),...O?[]:[(()=>{let s=new w(Ze,{title:"KendoReact Getting Started",description:`Creates a new React project with Kendo CLI and provides essential getting started guidance for ${d} including installation, configuration, and setup instructions.`,requiredAccess:["agent"],inputSchema:pe(d,"kendo-react-app")},async({projectName:n,createNewProject:a,theme:r},{_meta:i})=>{let l=T(s,i);try{await e.recordToolUserRequest({toolName:Ze,meta:{projectName:n,createNewProject:a,theme:r,...l}})}catch(h){console.error("Error recording tool request:",h)}return{content:[{type:"text",text:He(n,a,r)}]}});return s})()],C.Tools.createAccessibilityAssistant({name:et,title:"KendoReact Accessibility Assistant",description:C.ToolDescriptions.accessibilityAssistant(d),libKey:I,suiteName:d,components:M,requiredAccess:["agent"]},e),C.Tools.createUpgrade({name:_t,title:"KendoReact Upgrade Assistant",description:C.ToolDescriptions.upgradeAssistant(d,"@progress/kendo-react-"),suiteName:d,packagePrefix:"@progress/kendo-react-",requiredAccess:["agent"]},e)].filter(s=>s.hasAccess(t))}var Mt=qt(import.meta.url),Ft=st.dirname(Mt),Bt=st.resolve(Ft,"../package.json"),nt=JSON.parse(Ot.readFileSync(Bt,"utf-8")),ot=new Gt({name:"kendo-mcp",title:"Kendo MCP Server",version:nt.version});async function Kt(){let e=new $t;b("Starting server... ");let t=await le(async()=>{let s=(await ue())?.entitlement;return s?.Product?.Code||s?.product?.code});t!=="none"&&(F.toolNameHeader=t==="agent"||t==="full"?"agent":"assistant",tt(F,t).forEach(s=>s.register(ot)),de({serverName:"react",contextApi:F,enrichWithUserData:!0,additionalFields:{version:nt.version,access_type:t}})),await ot.connect(e)}Kt();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-mcp",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "type": "module",
5
5
  "bin": "./dist/index.js",
6
6
  "license": "See LICENSE.md",